fabro/packages/arc-api-client/src/models
Bryan Helmkamp f0c97a2739 Add server-mode support for arc llm chat via session endpoints
Implement the server-side session handlers (create, retrieve, send message,
stream events, list) with in-memory storage and LLM generation, wire them
into the router replacing not_implemented stubs, add run_chat_via_server
CLI function with SSE streaming, and add mode dispatch so `arc llm chat
--mode server` delegates to the API server.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:34:15 -05:00
..
aggregate-usage-totals.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
aggregate-usage.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
api-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
api-question-option.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
api-question.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
assistant-stage-turn.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
assistant-turn.ts Enrich Sessions API: timestamps on all turns, SSE event docs, richer responses 2026-03-06 09:32:49 -05:00
auth-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
board-column.ts Clean up API spec: remove redundant response types, add pagination, fix naming 2026-03-06 12:44:39 -05:00
check-run-status.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
check-run.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
code-location.ts Fix 10 OpenAPI review items for HITL, run outputs, and verifications 2026-03-06 15:13:06 -05:00
completion-response.ts Add POST /completions endpoint with Anthropic-style SSE streaming 2026-03-07 18:06:58 -05:00
completion-usage.ts Add POST /completions endpoint with Anthropic-style SSE streaming 2026-03-07 18:06:58 -05:00
control-detail.ts Fix 8 OpenAPI review items for verifications and insights 2026-03-06 14:56:07 -05:00
control-info.ts Rename verification API: categories → criteria, separate controls endpoints 2026-03-07 09:49:18 -05:00
control-performance.ts Fix 8 OpenAPI review items for verifications and insights 2026-03-06 14:56:07 -05:00
create-completion-request.ts Add POST /completions endpoint with Anthropic-style SSE streaming 2026-03-07 18:06:58 -05:00
create-session-request.ts Add server-mode support for arc llm chat via session endpoints 2026-03-07 18:34:15 -05:00
create-session-response.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
criterion-reference.ts Rename verification API: categories → criteria, separate controls endpoints 2026-03-07 09:49:18 -05:00
daytona-configuration-network-one-of.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
daytona-configuration-network.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
daytona-configuration.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
daytona-snapshot-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
diff-file.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
diff-stats.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
error-response-entry.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
error-response.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
execute-query-request.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
execute-query-response-rows-inner-inner.ts Fix 8 OpenAPI review items for verifications and insights 2026-03-06 14:56:07 -05:00
execute-query-response.ts Fix 8 OpenAPI review items for verifications and insights 2026-03-06 14:56:07 -05:00
feature-flags.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
file-checkpoint.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
file-diff.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
friction-kind.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
friction-point.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
git-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
health-response.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
history-entry.ts Replace fake relative time strings with ISO 8601 timestamps in API 2026-03-06 13:35:36 -05:00
hook-definition.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
index.ts Remove Start Workflow Run endpoint (duplicates Start Run) 2026-03-07 18:06:58 -05:00
learning-category.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
learning.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
llm-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
model-costs.ts Restructure ModelInfo into nested shape with new fields 2026-03-07 10:44:25 -05:00
model-features.ts Restructure ModelInfo into nested shape with new fields 2026-03-07 10:44:25 -05:00
model-limits.ts Restructure ModelInfo into nested shape with new fields 2026-03-07 10:44:25 -05:00
model-reference.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
model-test-result.ts Add POST /models/{id}/test endpoint for server-mode model testing 2026-03-07 11:17:10 -05:00
model.ts Restructure ModelInfo into nested shape with new fields 2026-03-07 10:44:25 -05:00
open-item-kind.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
open-item.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
paginated-api-question-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-history-entry-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-model-list.ts Add GET /models endpoint returning paginated LLM catalog 2026-03-07 10:12:21 -05:00
paginated-retro-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-run-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-run-stage-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-run-verification-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-saved-query-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-session-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-stage-turn-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
paginated-verification-control-list.ts Rename verification API: categories → criteria, separate controls endpoints 2026-03-07 09:49:18 -05:00
paginated-verification-criterion-list.ts Rename verification API: categories → criteria, separate controls endpoints 2026-03-07 09:49:18 -05:00
paginated-workflow-list.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
pagination-meta.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
preview-url-request.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
preview-url-response.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
question-type.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
recent-control-result.ts Fix 8 OpenAPI review items for verifications and insights 2026-03-06 14:56:07 -05:00
repository-reference.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
retro-detail.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
retro-list-item.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
retro-stats.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
root-response-urls.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
root-response.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
run-checkpoint.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
run-compare.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
run-configuration.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
run-error.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
run-list-item.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
run-pull-request.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
run-question.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
run-reference.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
run-sandbox.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
run-stage.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
run-status-response.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
run-status.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
run-timings.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
run-usage.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
run-verification-control.ts Fix 10 OpenAPI review items for HITL, run outputs, and verifications 2026-03-06 15:13:06 -05:00
run-verification.ts Fix 8 OpenAPI review items for verifications and insights 2026-03-06 14:56:07 -05:00
sandbox-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
sandbox-resources.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
save-query-request.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
saved-query.ts Fix 8 OpenAPI review items for verifications and insights 2026-03-06 14:56:07 -05:00
send-message-request.ts Enrich Sessions API: add ToolUse fields, timestamps, descriptions, and flatten list endpoint 2026-03-06 08:01:55 -05:00
send-message-response.ts Improve Sessions API schema: discriminated turns, date-time formats, consistent naming 2026-03-06 08:33:51 -05:00
server-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
session-detail.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
session-list-item.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
session-turn.ts Improve Sessions API schema: discriminated turns, date-time formats, consistent naming 2026-03-06 08:33:51 -05:00
setup-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
sibling-control.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
smoothness-rating.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
stage-retro.ts Add typed RetroDetail schema and filtering to retros API 2026-03-06 15:54:17 -05:00
stage-status.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
stage-turn.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
start-run-request.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
steer-request.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
submit-answer-request.ts Fix 10 OpenAPI review items for HITL, run outputs, and verifications 2026-03-06 15:13:06 -05:00
system-stage-turn.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
tls-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
token-usage.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
tool-stage-turn.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
tool-turn.ts Enrich Sessions API: timestamps on all turns, SSE event docs, richer responses 2026-03-06 09:32:49 -05:00
tool-use.ts Enrich Sessions API: add ToolUse fields, timestamps, descriptions, and flatten list endpoint 2026-03-06 08:01:55 -05:00
usage-by-model.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
usage-stage-ref.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
usage-stage.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
usage-totals.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
user-response.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
user-turn.ts Improve Sessions API schema: discriminated turns, date-time formats, consistent naming 2026-03-06 08:33:51 -05:00
verification-control-list-item.ts Rename verification API: categories → criteria, separate controls endpoints 2026-03-07 09:49:18 -05:00
verification-control.ts Fix 10 OpenAPI review items for HITL, run outputs, and verifications 2026-03-06 15:13:06 -05:00
verification-criterion-detail.ts Rename verification API: categories → criteria, separate controls endpoints 2026-03-07 09:49:18 -05:00
verification-criterion.ts Rename verification API: categories → criteria, separate controls endpoints 2026-03-07 09:49:18 -05:00
verification-detail-response.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
verification-mode.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
verification-result.ts Fix 10 OpenAPI review items for HITL, run outputs, and verifications 2026-03-06 15:13:06 -05:00
verification-type.ts Apply API design guidelines to all non-Session endpoints 2026-03-06 10:30:33 -05:00
web-configuration.ts Return structured JSON for run config and server config 2026-03-06 14:04:57 -05:00
workflow-detail.ts Fix 9 OpenAPI review items for run internals, workflows, and configuration 2026-03-06 15:31:54 -05:00
workflow-last-run.ts Replace fake relative time strings with ISO 8601 timestamps in API 2026-03-06 13:35:36 -05:00
workflow-list-item.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
workflow-reference.ts Update TypeScript client and frontend for nested API schemas 2026-03-06 13:11:36 -05:00
workflow-schedule.ts Replace fake relative time strings with ISO 8601 timestamps in API 2026-03-06 13:35:36 -05:00