@abot-ai/runtime 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/src/bridge/request-steering.d.ts +2 -1
- package/dist/src/bridge/request-steering.js +4 -2
- package/dist/src/bridge/runtime-replay.js +2 -19
- package/dist/src/bridge/start-agent-bridge.js +1 -1
- package/dist/src/capabilities/normal-invocation/validator.js +1 -1
- package/dist/src/capabilities/tool-definition-validator/event-presentation.js +3 -0
- package/dist/src/capabilities/tool-definition-validator/event-result-metadata.d.ts +2 -0
- package/dist/src/capabilities/tool-definition-validator/event-result-metadata.js +74 -0
- package/dist/src/capabilities/tool-event-metadata.js +3 -0
- package/dist/src/capabilities/tool-result-event-projection.d.ts +3 -0
- package/dist/src/capabilities/tool-result-event-projection.js +82 -0
- package/dist/src/capabilities/tool-types.d.ts +5 -0
- package/dist/src/cli/abot.js +2 -11
- package/dist/src/runtime/adapters/in-memory-session-store.js +1 -0
- package/dist/src/runtime/adapters/long-term-memory/file-lock/acquisition.js +11 -2
- package/dist/src/runtime/adapters/long-term-memory/file-lock/contracts.d.ts +2 -0
- package/dist/src/runtime/adapters/long-term-memory/file-lock/synchronous-release.d.ts +2 -0
- package/dist/src/runtime/adapters/long-term-memory/file-lock/synchronous-release.js +40 -0
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/execution/approval.d.ts +3 -0
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/execution/approval.js +9 -0
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/execution/rejection-event.d.ts +13 -0
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/execution/rejection-event.js +25 -0
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/execution/run.js +18 -2
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/executor.js +8 -0
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/payload/lifecycle.js +7 -3
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/shared/contracts.d.ts +17 -2
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/shared/event-metadata.d.ts +9 -0
- package/dist/src/runtime/adapters/registered-tool-normal-invocations/shared/event-metadata.js +8 -0
- package/dist/src/runtime/adapters/registered-tool-worker-capabilities/execution.js +16 -1
- package/dist/src/runtime/adapters/registered-tool-worker-capabilities/payload-observability.js +2 -2
- package/dist/src/runtime/adapters/scheduled-request-outcome.d.ts +11 -0
- package/dist/src/runtime/adapters/scheduled-request-outcome.js +41 -0
- package/dist/src/runtime/adapters/scheduler-runtime.d.ts +19 -0
- package/dist/src/runtime/adapters/scheduler-runtime.js +138 -0
- package/dist/src/runtime/capabilities/scheduling/create-operations.d.ts +55 -0
- package/dist/src/runtime/capabilities/scheduling/create-operations.js +30 -0
- package/dist/src/runtime/capabilities/scheduling/create-time-zone.d.ts +1 -0
- package/dist/src/runtime/capabilities/scheduling/create-time-zone.js +11 -0
- package/dist/src/runtime/capabilities/scheduling/job-list-page.d.ts +25 -0
- package/dist/src/runtime/capabilities/scheduling/job-list-page.js +40 -0
- package/dist/src/runtime/capabilities/scheduling/model-validation.d.ts +2 -0
- package/dist/src/runtime/capabilities/scheduling/model-validation.js +15 -0
- package/dist/src/runtime/capabilities/scheduling/tool-contract.d.ts +2 -0
- package/dist/src/runtime/capabilities/scheduling/tool-contract.js +35 -0
- package/dist/src/runtime/capabilities/scheduling/tool-input-properties.d.ts +43 -0
- package/dist/src/runtime/capabilities/scheduling/tool-input-properties.js +27 -0
- package/dist/src/runtime/capabilities/scheduling/tool-module.d.ts +4 -0
- package/dist/src/runtime/capabilities/scheduling/tool-module.js +158 -0
- package/dist/src/runtime/capabilities/scheduling/update-operations.d.ts +2 -0
- package/dist/src/runtime/capabilities/scheduling/update-operations.js +49 -0
- package/dist/src/runtime/composition.d.ts +23 -3
- package/dist/src/runtime/composition.js +12 -17
- package/dist/src/runtime/config/environment-paths.d.ts +10 -0
- package/dist/src/runtime/config/environment-paths.js +31 -0
- package/dist/src/runtime/config/environment-storage.d.ts +9 -0
- package/dist/src/runtime/config/environment-storage.js +65 -0
- package/dist/src/runtime/config/fields.js +7 -0
- package/dist/src/runtime/config/long-term-memory.js +15 -0
- package/dist/src/runtime/config/schema.js +8 -0
- package/dist/src/runtime/config.js +9 -5
- package/dist/src/runtime/context/scheduled-execution-context.d.ts +10 -0
- package/dist/src/runtime/context/scheduled-execution-context.js +52 -0
- package/dist/src/runtime/default-adapters.d.ts +3 -32
- package/dist/src/runtime/default-adapters.js +3 -270
- package/dist/src/runtime/default-environment-adapters.d.ts +19 -0
- package/dist/src/runtime/default-environment-adapters.js +144 -0
- package/dist/src/runtime/index.d.ts +5 -0
- package/dist/src/runtime/index.js +4 -0
- package/dist/src/runtime/local-application.d.ts +22 -0
- package/dist/src/runtime/local-application.js +81 -0
- package/dist/src/runtime/local-host/app-memory-dispatch.d.ts +11 -0
- package/dist/src/runtime/local-host/app-memory-dispatch.js +103 -0
- package/dist/src/runtime/local-host/app-owner.d.ts +4 -0
- package/dist/src/runtime/local-host/app-owner.js +119 -0
- package/dist/src/runtime/local-host/app-request-control.d.ts +24 -0
- package/dist/src/runtime/local-host/app-request-control.js +135 -0
- package/dist/src/runtime/local-host/app-service-dispatch.d.ts +5 -0
- package/dist/src/runtime/local-host/app-service-dispatch.js +64 -0
- package/dist/src/runtime/local-host/client-identity.d.ts +3 -0
- package/dist/src/runtime/local-host/client-identity.js +17 -0
- package/dist/src/runtime/local-host/client-memory.d.ts +7 -0
- package/dist/src/runtime/local-host/client-memory.js +54 -0
- package/dist/src/runtime/local-host/client-requests.d.ts +19 -0
- package/dist/src/runtime/local-host/client-requests.js +145 -0
- package/dist/src/runtime/local-host/client-services.d.ts +10 -0
- package/dist/src/runtime/local-host/client-services.js +14 -0
- package/dist/src/runtime/local-host/contracts.d.ts +36 -0
- package/dist/src/runtime/local-host/contracts.js +1 -0
- package/dist/src/runtime/local-host/endpoint.d.ts +7 -0
- package/dist/src/runtime/local-host/endpoint.js +79 -0
- package/dist/src/runtime/local-host/owner-activity.d.ts +10 -0
- package/dist/src/runtime/local-host/owner-activity.js +30 -0
- package/dist/src/runtime/local-host/owner-retirement.d.ts +3 -0
- package/dist/src/runtime/local-host/owner-retirement.js +15 -0
- package/dist/src/runtime/local-host/owner-server.d.ts +6 -0
- package/dist/src/runtime/local-host/owner-server.js +88 -0
- package/dist/src/runtime/local-host/private-access.d.ts +2 -0
- package/dist/src/runtime/local-host/private-access.js +16 -0
- package/dist/src/runtime/local-host/private-directory.d.ts +1 -0
- package/dist/src/runtime/local-host/private-directory.js +57 -0
- package/dist/src/runtime/local-host/rpc-peer.d.ts +22 -0
- package/dist/src/runtime/local-host/rpc-peer.js +168 -0
- package/dist/src/runtime/local-host/rpc-protocol.d.ts +21 -0
- package/dist/src/runtime/local-host/rpc-protocol.js +46 -0
- package/dist/src/runtime/local-host/startup-connection.d.ts +5 -0
- package/dist/src/runtime/local-host/startup-connection.js +72 -0
- package/dist/src/runtime/local-host/transport.d.ts +3 -0
- package/dist/src/runtime/local-host/transport.js +88 -0
- package/dist/src/runtime/local-host/windows-private-access.d.ts +1 -0
- package/dist/src/runtime/local-host/windows-private-access.js +51 -0
- package/dist/src/runtime/long-term-memory/onboarding/configuration.js +6 -0
- package/dist/src/runtime/long-term-memory/recall-binding.d.ts +3 -0
- package/dist/src/runtime/long-term-memory/recall-binding.js +27 -0
- package/dist/src/runtime/long-term-memory/recall-context.d.ts +20 -0
- package/dist/src/runtime/long-term-memory/recall-context.js +101 -0
- package/dist/src/runtime/long-term-memory/recall-continuation.d.ts +8 -0
- package/dist/src/runtime/long-term-memory/recall-continuation.js +36 -0
- package/dist/src/runtime/long-term-memory/recall-policy.d.ts +7 -0
- package/dist/src/runtime/long-term-memory/recall-policy.js +14 -0
- package/dist/src/runtime/long-term-memory/recall-result.d.ts +5 -0
- package/dist/src/runtime/long-term-memory/recall-result.js +54 -0
- package/dist/src/runtime/long-term-memory/repository-state.d.ts +2 -1
- package/dist/src/runtime/long-term-memory/repository-state.js +2 -2
- package/dist/src/runtime/model/invoke-raw-step.d.ts +1 -0
- package/dist/src/runtime/model/invoke-raw-step.js +1 -0
- package/dist/src/runtime/model/invoke-step.js +6 -0
- package/dist/src/runtime/model/invoke-structured-step.d.ts +1 -0
- package/dist/src/runtime/model/invoke-structured-step.js +1 -0
- package/dist/src/runtime/model/model-step-port.d.ts +2 -0
- package/dist/src/runtime/model/model-step-steering.d.ts +8 -0
- package/dist/src/runtime/model/model-step-steering.js +19 -0
- package/dist/src/runtime/orchestration/final-response/authoring-contract.js +1 -1
- package/dist/src/runtime/orchestration/final-response/invoke.d.ts +1 -0
- package/dist/src/runtime/orchestration/final-response/invoke.js +1 -0
- package/dist/src/runtime/orchestration/role-calls/activation-budget.js +1 -0
- package/dist/src/runtime/orchestration/role-calls/candidate-validation.js +9 -49
- package/dist/src/runtime/orchestration/role-calls/capability-selection-reconsideration.d.ts +9 -0
- package/dist/src/runtime/orchestration/role-calls/capability-selection-reconsideration.js +17 -8
- package/dist/src/runtime/orchestration/role-calls/capability-selection-supervision-validation.d.ts +2 -0
- package/dist/src/runtime/orchestration/role-calls/capability-selection-supervision-validation.js +62 -0
- package/dist/src/runtime/orchestration/role-calls/command-decoder.js +4 -0
- package/dist/src/runtime/orchestration/role-calls/command-dispatch/memory-recall-transitions.d.ts +4 -0
- package/dist/src/runtime/orchestration/role-calls/command-dispatch/memory-recall-transitions.js +89 -0
- package/dist/src/runtime/orchestration/role-calls/command-dispatch.js +5 -0
- package/dist/src/runtime/orchestration/role-calls/contracts.d.ts +9 -7
- package/dist/src/runtime/orchestration/role-calls/contracts.js +2 -2
- package/dist/src/runtime/orchestration/role-calls/diagnostics.js +3 -0
- package/dist/src/runtime/orchestration/role-calls/index.d.ts +1 -0
- package/dist/src/runtime/orchestration/role-calls/index.js +1 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-contract.d.ts +51 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-contract.js +4 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-decoder.d.ts +6 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-decoder.js +147 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-diagnostics.d.ts +5 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-diagnostics.js +27 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-state-validation.d.ts +3 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-state-validation.js +121 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-transactions.d.ts +3 -0
- package/dist/src/runtime/orchestration/role-calls/memory-recall-transactions.js +44 -0
- package/dist/src/runtime/orchestration/role-calls/reducer.js +1 -0
- package/dist/src/runtime/orchestration/role-calls/transaction-effect.d.ts +5 -0
- package/dist/src/runtime/orchestration/role-calls/transaction-effect.js +14 -0
- package/dist/src/runtime/orchestration/role-calls/transactions.js +3 -24
- package/dist/src/runtime/plugins/manifest-validator.js +4 -1
- package/dist/src/runtime/ports.d.ts +4 -0
- package/dist/src/runtime/request/bound-runtime-handler.d.ts +2 -0
- package/dist/src/runtime/request/bound-runtime-handler.js +25 -0
- package/dist/src/runtime/request/contracts.d.ts +6 -0
- package/dist/src/runtime/request/execution-agent-root-execution.js +12 -0
- package/dist/src/runtime/request/execution-facets.js +6 -0
- package/dist/src/runtime/request/execution-scope-surfaces.js +10 -0
- package/dist/src/runtime/request/execution-scope.d.ts +1 -1
- package/dist/src/runtime/request/handler.js +6 -0
- package/dist/src/runtime/request/root-contract.d.ts +7 -1
- package/dist/src/runtime/request/root-execution-kernel.js +33 -37
- package/dist/src/runtime/request/root-memory-recall.d.ts +11 -0
- package/dist/src/runtime/request/root-memory-recall.js +71 -0
- package/dist/src/runtime/request/root-observation-handoff.d.ts +17 -0
- package/dist/src/runtime/request/root-observation-handoff.js +44 -0
- package/dist/src/runtime/request/scheduled-execution.d.ts +9 -0
- package/dist/src/runtime/request/scheduled-execution.js +32 -0
- package/dist/src/runtime/request/session-admission.d.ts +17 -0
- package/dist/src/runtime/request/session-admission.js +88 -0
- package/dist/src/runtime/request/supervisor-root-execution-diagnostics.d.ts +1 -1
- package/dist/src/runtime/request/supervisor-root-execution.js +8 -0
- package/dist/src/runtime/runtime-environment.d.ts +31 -0
- package/dist/src/runtime/runtime-environment.js +102 -0
- package/dist/src/runtime/runtime-host-environment.d.ts +8 -0
- package/dist/src/runtime/runtime-host-environment.js +57 -0
- package/dist/src/runtime/runtime-host-lifecycle.d.ts +4 -0
- package/dist/src/runtime/runtime-host-lifecycle.js +64 -0
- package/dist/src/runtime/runtime-host-scheduler-ownership.d.ts +5 -0
- package/dist/src/runtime/runtime-host-scheduler-ownership.js +67 -0
- package/dist/src/runtime/runtime-host.d.ts +19 -0
- package/dist/src/runtime/runtime-host.js +63 -0
- package/dist/src/runtime/scheduler/calendar-time.d.ts +10 -0
- package/dist/src/runtime/scheduler/calendar-time.js +58 -0
- package/dist/src/runtime/scheduler/contracts.d.ts +143 -0
- package/dist/src/runtime/scheduler/contracts.js +1 -0
- package/dist/src/runtime/scheduler/file-store.d.ts +2 -0
- package/dist/src/runtime/scheduler/file-store.js +76 -0
- package/dist/src/runtime/scheduler/instant-validation.d.ts +4 -0
- package/dist/src/runtime/scheduler/instant-validation.js +69 -0
- package/dist/src/runtime/scheduler/interval-range.d.ts +8 -0
- package/dist/src/runtime/scheduler/interval-range.js +24 -0
- package/dist/src/runtime/scheduler/job-management.d.ts +8 -0
- package/dist/src/runtime/scheduler/job-management.js +212 -0
- package/dist/src/runtime/scheduler/journal-checkpoint.d.ts +9 -0
- package/dist/src/runtime/scheduler/journal-checkpoint.js +45 -0
- package/dist/src/runtime/scheduler/journal-durability.d.ts +8 -0
- package/dist/src/runtime/scheduler/journal-durability.js +59 -0
- package/dist/src/runtime/scheduler/journal-files.d.ts +14 -0
- package/dist/src/runtime/scheduler/journal-files.js +59 -0
- package/dist/src/runtime/scheduler/journal-head.d.ts +21 -0
- package/dist/src/runtime/scheduler/journal-head.js +81 -0
- package/dist/src/runtime/scheduler/journal-index-state.d.ts +31 -0
- package/dist/src/runtime/scheduler/journal-index-state.js +137 -0
- package/dist/src/runtime/scheduler/journal-index.d.ts +22 -0
- package/dist/src/runtime/scheduler/journal-index.js +195 -0
- package/dist/src/runtime/scheduler/journal-store.d.ts +21 -0
- package/dist/src/runtime/scheduler/journal-store.js +184 -0
- package/dist/src/runtime/scheduler/journal-transaction.d.ts +14 -0
- package/dist/src/runtime/scheduler/journal-transaction.js +104 -0
- package/dist/src/runtime/scheduler/next-occurrence.d.ts +3 -0
- package/dist/src/runtime/scheduler/next-occurrence.js +39 -0
- package/dist/src/runtime/scheduler/run-completion.d.ts +12 -0
- package/dist/src/runtime/scheduler/run-completion.js +77 -0
- package/dist/src/runtime/scheduler/run-list-query.d.ts +5 -0
- package/dist/src/runtime/scheduler/run-list-query.js +38 -0
- package/dist/src/runtime/scheduler/run-records.d.ts +6 -0
- package/dist/src/runtime/scheduler/run-records.js +41 -0
- package/dist/src/runtime/scheduler/schedule-update.d.ts +3 -0
- package/dist/src/runtime/scheduler/schedule-update.js +22 -0
- package/dist/src/runtime/scheduler/schedule-validation.d.ts +10 -0
- package/dist/src/runtime/scheduler/schedule-validation.js +132 -0
- package/dist/src/runtime/scheduler/scheduler-engine.d.ts +2 -0
- package/dist/src/runtime/scheduler/scheduler-engine.js +174 -0
- package/dist/src/runtime/scheduler/scheduler-service.d.ts +10 -0
- package/dist/src/runtime/scheduler/scheduler-service.js +115 -0
- package/dist/src/runtime/scheduler/service-context.d.ts +21 -0
- package/dist/src/runtime/scheduler/service-context.js +26 -0
- package/dist/src/runtime/scheduler/session-deletion-state.d.ts +9 -0
- package/dist/src/runtime/scheduler/session-deletion-state.js +30 -0
- package/dist/src/runtime/scheduler/snapshot-validation.d.ts +4 -0
- package/dist/src/runtime/scheduler/snapshot-validation.js +112 -0
- package/dist/src/runtime/scheduler/startup-recovery.d.ts +2 -0
- package/dist/src/runtime/scheduler/startup-recovery.js +38 -0
- package/dist/src/runtime/scheduler/validation-error.d.ts +4 -0
- package/dist/src/runtime/scheduler/validation-error.js +8 -0
- package/dist/src/runtime/scheduler/working-store.d.ts +3 -0
- package/dist/src/runtime/scheduler/working-store.js +8 -0
- package/dist/src/runtime/session/request-session.d.ts +1 -0
- package/dist/src/runtime/session/request-session.js +14 -1
- package/dist/src/runtime/session/session-attachment-deletion.d.ts +8 -0
- package/dist/src/runtime/session/session-attachment-deletion.js +87 -0
- package/dist/src/runtime/session/session-deletion-boundary.d.ts +10 -0
- package/dist/src/runtime/session/session-deletion-boundary.js +39 -0
- package/dist/src/runtime/session/session-deletion-cleanup.d.ts +7 -0
- package/dist/src/runtime/session/session-deletion-cleanup.js +62 -0
- package/dist/src/runtime/session/session-deletion-finalization.d.ts +7 -0
- package/dist/src/runtime/session/session-deletion-finalization.js +34 -0
- package/dist/src/runtime/session/session-deletion-receipts.d.ts +7 -0
- package/dist/src/runtime/session/session-deletion-receipts.js +18 -0
- package/dist/src/runtime/session/session-lifecycle-store.d.ts +21 -0
- package/dist/src/runtime/session/session-lifecycle-store.js +72 -0
- package/dist/src/runtime/session/session-mutation-queue.d.ts +3 -0
- package/dist/src/runtime/session/session-mutation-queue.js +15 -0
- package/dist/src/runtime/steps/execution-agent/capability-decision-parsing.d.ts +16 -0
- package/dist/src/runtime/steps/execution-agent/capability-decision-parsing.js +165 -0
- package/dist/src/runtime/steps/execution-agent/contracts.d.ts +3 -1
- package/dist/src/runtime/steps/execution-agent/decision-parsing.d.ts +2 -0
- package/dist/src/runtime/steps/execution-agent/decision-parsing.js +195 -0
- package/dist/src/runtime/steps/execution-agent/decision-validation.d.ts +30 -0
- package/dist/src/runtime/steps/execution-agent/decision-validation.js +127 -0
- package/dist/src/runtime/steps/execution-agent/format.d.ts +1 -0
- package/dist/src/runtime/steps/execution-agent/format.js +12 -0
- package/dist/src/runtime/steps/execution-agent/input.d.ts +2 -1
- package/dist/src/runtime/steps/execution-agent/input.js +17 -2
- package/dist/src/runtime/steps/execution-agent/parser.d.ts +1 -2
- package/dist/src/runtime/steps/execution-agent/parser.js +1 -472
- package/dist/src/runtime/steps/execution-agent/prompt.d.ts +2 -0
- package/dist/src/runtime/steps/execution-agent/prompt.js +2 -0
- package/dist/src/runtime/steps/execution-agent/reconsideration-context.js +4 -3
- package/dist/src/runtime/steps/execution-agent/response-input.js +5 -4
- package/dist/src/runtime/steps/execution-agent/response-run.d.ts +3 -0
- package/dist/src/runtime/steps/execution-agent/response-run.js +7 -3
- package/dist/src/runtime/steps/execution-agent/run.d.ts +2 -0
- package/dist/src/runtime/steps/execution-agent/run.js +2 -0
- package/dist/src/runtime/steps/execution-agent/state-context.d.ts +2 -1
- package/dist/src/runtime/steps/execution-agent/state-context.js +13 -5
- package/dist/src/runtime/steps/memory-recall-decision.d.ts +30 -0
- package/dist/src/runtime/steps/memory-recall-decision.js +101 -0
- package/dist/src/runtime/steps/memory-recall-prompt.d.ts +1 -0
- package/dist/src/runtime/steps/memory-recall-prompt.js +15 -0
- package/dist/src/runtime/steps/supervisor-decision/contracts.d.ts +4 -2
- package/dist/src/runtime/steps/supervisor-decision/diagnostics.d.ts +2 -0
- package/dist/src/runtime/steps/supervisor-decision/diagnostics.js +13 -6
- package/dist/src/runtime/steps/supervisor-decision/format.d.ts +2 -0
- package/dist/src/runtime/steps/supervisor-decision/format.js +41 -2
- package/dist/src/runtime/steps/supervisor-decision/input.d.ts +5 -1
- package/dist/src/runtime/steps/supervisor-decision/input.js +25 -5
- package/dist/src/runtime/steps/supervisor-decision/memory-recall-continuation.d.ts +10 -0
- package/dist/src/runtime/steps/supervisor-decision/memory-recall-continuation.js +32 -0
- package/dist/src/runtime/steps/supervisor-decision/parser.d.ts +2 -0
- package/dist/src/runtime/steps/supervisor-decision/parser.js +36 -1
- package/dist/src/runtime/steps/supervisor-decision/prompt.d.ts +3 -0
- package/dist/src/runtime/steps/supervisor-decision/prompt.js +16 -8
- package/dist/src/runtime/steps/supervisor-decision/response-recommendation.d.ts +13 -0
- package/dist/src/runtime/steps/supervisor-decision/response-recommendation.js +32 -0
- package/dist/src/runtime/steps/supervisor-decision/resume.d.ts +2 -0
- package/dist/src/runtime/steps/supervisor-decision/resume.js +13 -0
- package/dist/src/runtime/steps/supervisor-decision/run.d.ts +3 -0
- package/dist/src/runtime/steps/supervisor-decision/run.js +19 -0
- package/dist/src/runtime/steps/supervisor-decision/working-directory.js +7 -1
- package/dist/src/runtime/steps/supervisor-response/diagnostics.d.ts +1 -0
- package/dist/src/runtime/steps/supervisor-response/diagnostics.js +1 -0
- package/dist/src/runtime/steps/supervisor-response/input.d.ts +2 -1
- package/dist/src/runtime/steps/supervisor-response/input.js +17 -4
- package/dist/src/runtime/steps/supervisor-response/memory-authoring.d.ts +1 -0
- package/dist/src/runtime/steps/supervisor-response/memory-authoring.js +4 -0
- package/dist/src/runtime/steps/supervisor-response/prompt.d.ts +1 -0
- package/dist/src/runtime/steps/supervisor-response/prompt.js +8 -2
- package/dist/src/runtime/steps/supervisor-response/response-recommendation.d.ts +10 -0
- package/dist/src/runtime/steps/supervisor-response/response-recommendation.js +25 -0
- package/dist/src/runtime/steps/supervisor-response/run.d.ts +6 -1
- package/dist/src/runtime/steps/supervisor-response/run.js +26 -7
- package/dist/src/sessions/record/projection.js +1 -0
- package/dist/src/sessions/schedule-metadata.d.ts +8 -0
- package/dist/src/sessions/schedule-metadata.js +1 -0
- package/dist/src/sessions/session-service.d.ts +1 -0
- package/dist/src/sessions/session-service.js +1 -0
- package/dist/src/sessions/types.d.ts +2 -0
- package/dist/src/shared/http-server-shutdown.d.ts +4 -0
- package/dist/src/shared/http-server-shutdown.js +17 -0
- package/dist/src/shared/public-http/aggregate-gate.d.ts +3 -0
- package/dist/src/shared/public-http/aggregate-gate.js +87 -0
- package/dist/src/shared/public-http/deadline.d.ts +2 -0
- package/dist/src/shared/public-http/deadline.js +29 -0
- package/dist/src/shared/public-http/errors.d.ts +6 -0
- package/dist/src/shared/public-http/errors.js +11 -0
- package/dist/src/shared/public-http/limits.d.ts +8 -0
- package/dist/src/shared/public-http/limits.js +8 -0
- package/dist/src/shared/public-http/network-policy.d.ts +11 -0
- package/dist/src/shared/public-http/network-policy.js +178 -0
- package/dist/src/shared/public-http/public-http.d.ts +24 -0
- package/dist/src/shared/public-http/public-http.js +85 -0
- package/dist/src/shared/public-http/request-hop.d.ts +18 -0
- package/dist/src/shared/public-http/request-hop.js +140 -0
- package/dist/src/web-ui/app/ARCHITECTURE.md +66 -4
- package/dist/src/web-ui/app/app-bootstrap.js +53 -0
- package/dist/src/web-ui/app/app-dom.js +80 -0
- package/dist/src/web-ui/app/app.js +195 -212
- package/dist/src/web-ui/app/components/conversation-activity.d.ts +2 -0
- package/dist/src/web-ui/app/components/conversation-activity.js +34 -7
- package/dist/src/web-ui/app/components/conversation-role-cards.d.ts +1 -0
- package/dist/src/web-ui/app/components/conversation-role-cards.js +61 -5
- package/dist/src/web-ui/app/components/conversation-schedule.js +71 -0
- package/dist/src/web-ui/app/components/conversation-status.js +65 -0
- package/dist/src/web-ui/app/components/conversation-tools.d.ts +13 -0
- package/dist/src/web-ui/app/components/conversation-tools.js +284 -0
- package/dist/src/web-ui/app/components/conversation-view.js +39 -11
- package/dist/src/web-ui/app/components/dashboard/activity.js +61 -0
- package/dist/src/web-ui/app/components/dashboard/icons.js +23 -0
- package/dist/src/web-ui/app/components/dashboard/recent-conversations.js +64 -0
- package/dist/src/web-ui/app/components/dashboard/workspace.js +107 -0
- package/dist/src/web-ui/app/components/message-link-previews.d.ts +16 -0
- package/dist/src/web-ui/app/components/message-link-previews.js +179 -0
- package/dist/src/web-ui/app/components/schedules/details.js +101 -0
- package/dist/src/web-ui/app/components/schedules/form.d.ts +13 -0
- package/dist/src/web-ui/app/components/schedules/form.js +246 -0
- package/dist/src/web-ui/app/components/schedules/workspace-state.js +59 -0
- package/dist/src/web-ui/app/components/schedules/workspace.js +165 -0
- package/dist/src/web-ui/app/components/workspace-shell.js +48 -2
- package/dist/src/web-ui/app/configuration-feature.js +72 -0
- package/dist/src/web-ui/app/controllers/composer-attachments-controller.d.ts +1 -0
- package/dist/src/web-ui/app/controllers/composer-attachments-controller.js +17 -6
- package/dist/src/web-ui/app/controllers/composer-submit-controller.d.ts +2 -0
- package/dist/src/web-ui/app/controllers/composer-submit-controller.js +15 -1
- package/dist/src/web-ui/app/controllers/composer-surface-controller.js +58 -0
- package/dist/src/web-ui/app/controllers/composer-workspace-controller.d.ts +53 -0
- package/dist/src/web-ui/app/controllers/composer-workspace-controller.js +180 -0
- package/dist/src/web-ui/app/controllers/conversation-read-state-controller.d.ts +23 -0
- package/dist/src/web-ui/app/controllers/conversation-read-state-controller.js +82 -0
- package/dist/src/web-ui/app/controllers/conversation-session-controller.d.ts +8 -0
- package/dist/src/web-ui/app/controllers/conversation-session-controller.js +28 -39
- package/dist/src/web-ui/app/controllers/dashboard-controller.js +127 -0
- package/dist/src/web-ui/app/controllers/home-composer-feature.d.ts +40 -0
- package/dist/src/web-ui/app/controllers/home-composer-feature.js +119 -0
- package/dist/src/web-ui/app/controllers/home-conversation-activation.js +37 -0
- package/dist/src/web-ui/app/controllers/realtime-event-controller.d.ts +1 -0
- package/dist/src/web-ui/app/controllers/realtime-event-controller.js +74 -3
- package/dist/src/web-ui/app/controllers/runtime-selection-controller.d.ts +2 -1
- package/dist/src/web-ui/app/controllers/runtime-selection-controller.js +15 -14
- package/dist/src/web-ui/app/controllers/schedule-realtime.js +118 -0
- package/dist/src/web-ui/app/controllers/schedules-controller.js +421 -0
- package/dist/src/web-ui/app/controllers/session-controller.js +30 -3
- package/dist/src/web-ui/app/dashboard-feature.js +44 -0
- package/dist/src/web-ui/app/index.html +53 -1
- package/dist/src/web-ui/app/lib/composer-submission-scope.d.ts +21 -0
- package/dist/src/web-ui/app/lib/composer-submission-scope.js +13 -0
- package/dist/src/web-ui/app/lib/context-window-snapshot-order.d.ts +15 -0
- package/dist/src/web-ui/app/lib/context-window-snapshot-order.js +31 -0
- package/dist/src/web-ui/app/lib/conversation-role-model.d.ts +10 -1
- package/dist/src/web-ui/app/lib/conversation-role-model.js +97 -15
- package/dist/src/web-ui/app/lib/conversation-status-model.d.ts +12 -0
- package/dist/src/web-ui/app/lib/conversation-status-model.js +116 -0
- package/dist/src/web-ui/app/lib/dashboard-job-templates.js +41 -0
- package/dist/src/web-ui/app/lib/dashboard-presentation.js +126 -0
- package/dist/src/web-ui/app/lib/message-markdown.d.ts +5 -0
- package/dist/src/web-ui/app/lib/message-markdown.js +99 -0
- package/dist/src/web-ui/app/lib/message-url-policy.d.ts +1 -0
- package/dist/src/web-ui/app/lib/message-url-policy.js +13 -0
- package/dist/src/web-ui/app/lib/schedule-errors.js +29 -0
- package/dist/src/web-ui/app/lib/schedule-message.js +30 -0
- package/dist/src/web-ui/app/lib/schedule-presentation.js +81 -0
- package/dist/src/web-ui/app/lib/session-read-state.d.ts +22 -0
- package/dist/src/web-ui/app/lib/session-read-state.js +63 -0
- package/dist/src/web-ui/app/lib/text-format.js +2 -143
- package/dist/src/web-ui/app/lib/tool-activity-event.d.ts +26 -0
- package/dist/src/web-ui/app/lib/tool-activity-event.js +228 -0
- package/dist/src/web-ui/app/lib/tool-activity-model.d.ts +41 -0
- package/dist/src/web-ui/app/lib/tool-activity-model.js +255 -0
- package/dist/src/web-ui/app/lib/tool-timeline.d.ts +3 -0
- package/dist/src/web-ui/app/lib/tool-timeline.js +18 -0
- package/dist/src/web-ui/app/schedules-feature.js +87 -0
- package/dist/src/web-ui/app/services/message-link-preview-client.d.ts +14 -0
- package/dist/src/web-ui/app/services/message-link-preview-client.js +96 -0
- package/dist/src/web-ui/app/services/runtime-web-client/schedules.js +51 -0
- package/dist/src/web-ui/app/services/runtime-web-client.d.ts +37 -0
- package/dist/src/web-ui/app/services/runtime-web-client.js +13 -8
- package/dist/src/web-ui/app/styles/00-tokens-base.css +11 -11
- package/dist/src/web-ui/app/styles/18-dashboard.css +384 -0
- package/dist/src/web-ui/app/styles/20-chat-composer.css +1 -130
- package/dist/src/web-ui/app/styles/26-message-content.css +295 -0
- package/dist/src/web-ui/app/styles/27-conversation-tools.css +266 -0
- package/dist/src/web-ui/app/styles/28-conversation-status.css +52 -0
- package/dist/src/web-ui/app/styles/38-schedule-workspace.css +263 -0
- package/dist/src/web-ui/app/styles/38-schedules.css +352 -0
- package/dist/src/web-ui/app/styles/90-responsive.css +14 -0
- package/dist/src/web-ui/app/styles/91-schedules-responsive.css +72 -0
- package/dist/src/web-ui/app/styles/92-dashboard-responsive.css +88 -0
- package/dist/src/web-ui/app/styles.css +8 -0
- package/dist/src/web-ui/app/ui-behavior.d.ts +1 -1
- package/dist/src/web-ui/app/ui-behavior.js +3 -1
- package/dist/src/web-ui/app/vendor/README.md +15 -0
- package/dist/src/web-ui/app/vendor/markdown-it.LICENSE +22 -0
- package/dist/src/web-ui/app/vendor/markdown-it.js +3003 -0
- package/dist/src/web-ui/link-preview/metadata.d.ts +9 -0
- package/dist/src/web-ui/link-preview/metadata.js +97 -0
- package/dist/src/web-ui/link-preview/preview-cache.d.ts +4 -0
- package/dist/src/web-ui/link-preview/preview-cache.js +23 -0
- package/dist/src/web-ui/link-preview/raster-response.d.ts +9 -0
- package/dist/src/web-ui/link-preview/raster-response.js +49 -0
- package/dist/src/web-ui/link-preview/routes.d.ts +3 -0
- package/dist/src/web-ui/link-preview/routes.js +97 -0
- package/dist/src/web-ui/link-preview/service.d.ts +11 -0
- package/dist/src/web-ui/link-preview/service.js +117 -0
- package/dist/src/web-ui/local-runtime/api-router.d.ts +4 -1
- package/dist/src/web-ui/local-runtime/api-router.js +42 -73
- package/dist/src/web-ui/local-runtime/contracts.d.ts +2 -2
- package/dist/src/web-ui/local-runtime/environment-registry.d.ts +12 -1
- package/dist/src/web-ui/local-runtime/environment-registry.js +38 -3
- package/dist/src/web-ui/local-runtime/realtime-controller.js +3 -1
- package/dist/src/web-ui/local-runtime/request-execution.d.ts +5 -1
- package/dist/src/web-ui/local-runtime/request-execution.js +38 -2
- package/dist/src/web-ui/local-runtime/schedule-job-creation.d.ts +7 -0
- package/dist/src/web-ui/local-runtime/schedule-job-creation.js +62 -0
- package/dist/src/web-ui/local-runtime/schedule-management-routes.d.ts +30 -0
- package/dist/src/web-ui/local-runtime/schedule-management-routes.js +134 -0
- package/dist/src/web-ui/local-runtime/schedule-run-page.d.ts +5 -0
- package/dist/src/web-ui/local-runtime/schedule-run-page.js +23 -0
- package/dist/src/web-ui/local-runtime/session-routes.d.ts +17 -0
- package/dist/src/web-ui/local-runtime/session-routes.js +74 -0
- package/dist/src/web-ui/local-runtime-backend.d.ts +2 -0
- package/dist/src/web-ui/local-runtime-backend.js +11 -1
- package/dist/src/web-ui/schedule-creation-contract.d.ts +7 -0
- package/dist/src/web-ui/schedule-creation-contract.js +1 -0
- package/dist/src/web-ui/server-shutdown.d.ts +4 -0
- package/dist/src/web-ui/server-shutdown.js +32 -0
- package/dist/src/web-ui/server.js +13 -10
- package/dist/src/web-ui/session-read-state/availability.d.ts +16 -0
- package/dist/src/web-ui/session-read-state/availability.js +20 -0
- package/dist/src/web-ui/session-read-state/projection.d.ts +17 -0
- package/dist/src/web-ui/session-read-state/projection.js +71 -0
- package/dist/src/web-ui/session-read-state/service.d.ts +86 -0
- package/dist/src/web-ui/session-read-state/service.js +89 -0
- package/dist/src/web-ui/session-read-state/store.d.ts +22 -0
- package/dist/src/web-ui/session-read-state/store.js +110 -0
- package/docs/configuration.md +41 -1
- package/docs/long-term-memory.md +46 -5
- package/docs/runtime-invariant-coverage.md +1 -1
- package/docs/runtime-library.md +23 -0
- package/docs/runtime-public-contracts.md +32 -1
- package/package.json +3 -1
- package/plugins/code-outline/plugin.json +15 -0
- package/plugins/document-reader/plugin.json +17 -0
- package/plugins/filesystem/plugin.json +17 -2
- package/plugins/json-inspector/plugin.json +12 -0
- package/plugins/local-search/plugin.json +12 -0
- package/plugins/memory/plugin.json +26 -1
- package/plugins/memory/source/index.ts +10 -6
- package/plugins/memory/src/index.cjs +11 -7
- package/plugins/project-orientation/plugin.json +14 -0
- package/plugins/web/source/aggregate-gate.ts +8 -130
- package/plugins/web/source/deadline.ts +14 -50
- package/plugins/web/source/errors.ts +17 -11
- package/plugins/web/source/limits.ts +3 -6
- package/plugins/web/source/network-policy.ts +28 -226
- package/plugins/web/source/public-http.ts +17 -142
- package/plugins/web/source/request-hop.ts +11 -191
- package/plugins/web/src/index.cjs +119 -59
- package/runtime.config.schema.json +7 -0
- package/src/runtime/README.md +105 -1
- package/src/runtime/local-host/README.md +86 -0
- package/src/runtime/scheduler/README.md +166 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { titleCaseEventValue } from "./event-presentation.js";
|
|
2
|
+
import { projectToolActivityEvent } from "./tool-activity-event.js";
|
|
3
|
+
|
|
4
|
+
const TITLES = Object.freeze({
|
|
5
|
+
dev_view: "Read",
|
|
6
|
+
read_file: "Read file",
|
|
7
|
+
write_file: "Write file",
|
|
8
|
+
edit_file: "Edit file",
|
|
9
|
+
local_search: "Search files",
|
|
10
|
+
document_reader: "Read document",
|
|
11
|
+
inspect_project: "Inspect project",
|
|
12
|
+
inspect_json: "Inspect JSON",
|
|
13
|
+
inspect_code_outline: "Outline code",
|
|
14
|
+
memory_search: "Search memory",
|
|
15
|
+
memory_get: "Read memory",
|
|
16
|
+
memory_add: "Save memory",
|
|
17
|
+
memory_delete: "Delete memory",
|
|
18
|
+
web_search: "Search the web",
|
|
19
|
+
web_fetch: "Read web page",
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const PHASES = Object.freeze({
|
|
23
|
+
"tool.payload.started": [1, "preparing", "Preparing"],
|
|
24
|
+
"tool.payload.completed": [2, "preparing", "Ready"],
|
|
25
|
+
"tool.approval.required": [3, "awaiting_approval", "Awaiting approval"],
|
|
26
|
+
"tool.approval.granted": [4, "preparing", "Approved"],
|
|
27
|
+
"tool.started": [5, "running", "Running"],
|
|
28
|
+
"tool.payload.failed": [6, "failed", "Preparation failed"],
|
|
29
|
+
"tool.approval.rejected": [6, "failed", "Not approved"],
|
|
30
|
+
"tool.failed": [6, "failed", "Failed"],
|
|
31
|
+
"tool.completed": [6, "completed", "Completed"],
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const SETTLED_LABELS = Object.freeze({
|
|
35
|
+
completed: "Completed",
|
|
36
|
+
empty: "No results",
|
|
37
|
+
unchanged: "No change",
|
|
38
|
+
failed: "Failed",
|
|
39
|
+
incomplete: "Outcome not recorded",
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
function isSettledToolEvent(event) {
|
|
43
|
+
return PHASES[event.name]?.[0] === 6;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function mergeFields(previous, incoming) {
|
|
47
|
+
const fields = new Map(previous.map((field) => [field.label, field]));
|
|
48
|
+
for (const field of incoming) fields.set(field.label, field);
|
|
49
|
+
return [...fields.values()];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function initialAction(id, evidence, count) {
|
|
53
|
+
return {
|
|
54
|
+
id,
|
|
55
|
+
tool: evidence.tool,
|
|
56
|
+
executorRole: evidence.executorRole || "",
|
|
57
|
+
roleCallId: evidence.roleCallId || "",
|
|
58
|
+
title: TITLES[evidence.tool] || titleCaseEventValue(evidence.tool),
|
|
59
|
+
target: "",
|
|
60
|
+
status: "preparing",
|
|
61
|
+
statusLabel: "Preparing",
|
|
62
|
+
intent: "",
|
|
63
|
+
sent: [],
|
|
64
|
+
received: [],
|
|
65
|
+
preview: "",
|
|
66
|
+
previewTruncated: false,
|
|
67
|
+
partial: false,
|
|
68
|
+
executed: false,
|
|
69
|
+
legacy: !evidence.executionId,
|
|
70
|
+
count,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function completionStatus(evidence) {
|
|
75
|
+
if (evidence.ok === false) return "failed";
|
|
76
|
+
if (evidence.ok !== true) return "incomplete";
|
|
77
|
+
return evidence.outcome;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function applyPhase(action, evidence) {
|
|
81
|
+
const [, status, label] = PHASES[evidence.name];
|
|
82
|
+
action.status = status;
|
|
83
|
+
action.statusLabel = label;
|
|
84
|
+
if (evidence.name !== "tool.completed") return;
|
|
85
|
+
action.status = completionStatus(evidence);
|
|
86
|
+
action.statusLabel = SETTLED_LABELS[action.status];
|
|
87
|
+
if (evidence.tool === "memory_delete" && action.status === "empty") {
|
|
88
|
+
action.statusLabel = "No matching record";
|
|
89
|
+
}
|
|
90
|
+
if (evidence.tool === "dev_view" && action.status === "empty") {
|
|
91
|
+
action.statusLabel = "No match in scanned range";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function applyEvidence(action, evidence) {
|
|
96
|
+
if (evidence.executorRole) action.executorRole = evidence.executorRole;
|
|
97
|
+
if (evidence.roleCallId) action.roleCallId = evidence.roleCallId;
|
|
98
|
+
if (isExecutedToolEvent(evidence)) action.executed = true;
|
|
99
|
+
if (evidence.target) action.target = evidence.target;
|
|
100
|
+
if (evidence.intent) action.intent = evidence.intent;
|
|
101
|
+
action.sent =
|
|
102
|
+
evidence.name === "tool.completed"
|
|
103
|
+
? mergeFields(evidence.sent, action.sent)
|
|
104
|
+
: mergeFields(action.sent, evidence.sent);
|
|
105
|
+
action.received = mergeFields(action.received, evidence.received);
|
|
106
|
+
if (evidence.error) {
|
|
107
|
+
action.received = mergeFields(action.received, [
|
|
108
|
+
{ label: "Error", value: evidence.error },
|
|
109
|
+
]);
|
|
110
|
+
}
|
|
111
|
+
if (evidence.preview) action.preview = evidence.preview;
|
|
112
|
+
if (evidence.name === "tool.completed")
|
|
113
|
+
action.previewTruncated = evidence.previewTruncated;
|
|
114
|
+
if (evidence.name === "tool.completed") action.partial = evidence.partial;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function isExecutedToolEvent(evidence) {
|
|
118
|
+
const { name, beforeExternalExecution } = evidence;
|
|
119
|
+
if (name === "tool.failed" && beforeExternalExecution) return false;
|
|
120
|
+
return (
|
|
121
|
+
name === "tool.started" ||
|
|
122
|
+
name === "tool.completed" ||
|
|
123
|
+
name === "tool.failed"
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function eventSequence(event) {
|
|
128
|
+
if (Number.isSafeInteger(event.eventSequence) && event.eventSequence > 0)
|
|
129
|
+
return event.eventSequence;
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function orderGroupEvents(entries) {
|
|
134
|
+
const sequenced = entries
|
|
135
|
+
.filter((entry) => entry.sequence !== null)
|
|
136
|
+
.sort((a, b) => a.sequence - b.sequence);
|
|
137
|
+
let next = 0;
|
|
138
|
+
return entries.map((entry) =>
|
|
139
|
+
entry.sequence === null ? entry : sequenced[next++],
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function canAdvanceToolPhase(phase, evidence, nextRank) {
|
|
144
|
+
if (nextRank > 2) return nextRank >= phase.rank;
|
|
145
|
+
if (phase.rank > 2) return false;
|
|
146
|
+
if (!phase.payloadStage) return nextRank >= phase.rank;
|
|
147
|
+
if (!evidence.payloadStage) return nextRank >= phase.rank;
|
|
148
|
+
if (evidence.payloadStageCount !== phase.payloadStageCount) return false;
|
|
149
|
+
if (evidence.payloadStage !== phase.payloadStage) {
|
|
150
|
+
return evidence.payloadStage > phase.payloadStage;
|
|
151
|
+
}
|
|
152
|
+
return nextRank >= phase.rank;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function finishAction(group, streaming) {
|
|
156
|
+
const action = initialAction(
|
|
157
|
+
group.id,
|
|
158
|
+
group.entries[0].evidence,
|
|
159
|
+
group.count,
|
|
160
|
+
);
|
|
161
|
+
const phase = { rank: 0, payloadStage: 0, payloadStageCount: 0 };
|
|
162
|
+
for (const { evidence } of orderGroupEvents(group.entries)) {
|
|
163
|
+
applyEvidence(action, evidence);
|
|
164
|
+
const nextRank = PHASES[evidence.name][0];
|
|
165
|
+
if (!canAdvanceToolPhase(phase, evidence, nextRank)) continue;
|
|
166
|
+
phase.rank = nextRank;
|
|
167
|
+
if (evidence.payloadStage) {
|
|
168
|
+
phase.payloadStage = evidence.payloadStage;
|
|
169
|
+
phase.payloadStageCount = evidence.payloadStageCount;
|
|
170
|
+
}
|
|
171
|
+
applyPhase(action, evidence);
|
|
172
|
+
}
|
|
173
|
+
if (!streaming && phase.rank < 6) {
|
|
174
|
+
action.status = "incomplete";
|
|
175
|
+
action.statusLabel = "Completion not recorded";
|
|
176
|
+
}
|
|
177
|
+
return action;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** Lifecycle correlation is exact. Older, uncorrelated history supplies outcome rows only. */
|
|
181
|
+
export function buildConversationToolActions({
|
|
182
|
+
requestId,
|
|
183
|
+
events = [],
|
|
184
|
+
streaming = false,
|
|
185
|
+
}) {
|
|
186
|
+
const groups = new Map();
|
|
187
|
+
const seen = new Set();
|
|
188
|
+
for (const [index, event] of events.entries()) {
|
|
189
|
+
if (event.requestId !== requestId) continue;
|
|
190
|
+
const evidence = event.toolActivity || projectToolActivityEvent(event);
|
|
191
|
+
if (!evidence) continue;
|
|
192
|
+
const sequence = eventSequence(event);
|
|
193
|
+
if (sequence !== null && seen.has(sequence)) continue;
|
|
194
|
+
if (sequence !== null) seen.add(sequence);
|
|
195
|
+
if (!evidence.executionId && !isSettledToolEvent(evidence)) continue;
|
|
196
|
+
const id = evidence.executionId
|
|
197
|
+
? JSON.stringify([requestId, evidence.executionId])
|
|
198
|
+
: JSON.stringify([
|
|
199
|
+
requestId,
|
|
200
|
+
"recorded",
|
|
201
|
+
sequence ?? event.lastSeqNo ?? event.seqNo ?? index,
|
|
202
|
+
]);
|
|
203
|
+
const count = evidence.executionId
|
|
204
|
+
? 1
|
|
205
|
+
: Math.max(1, Number(event.count) || 1);
|
|
206
|
+
const group = groups.get(id) || { id, count, entries: [] };
|
|
207
|
+
group.entries.push({ evidence, sequence });
|
|
208
|
+
groups.set(id, group);
|
|
209
|
+
}
|
|
210
|
+
return [...groups.values()].map((group) => finishAction(group, streaming));
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const CATEGORIES = Object.freeze({
|
|
214
|
+
dev_view: "read",
|
|
215
|
+
read_file: "read",
|
|
216
|
+
document_reader: "read",
|
|
217
|
+
inspect_project: "project inspection",
|
|
218
|
+
inspect_json: "JSON inspection",
|
|
219
|
+
inspect_code_outline: "code outline",
|
|
220
|
+
write_file: "write",
|
|
221
|
+
edit_file: "edit",
|
|
222
|
+
local_search: "file search",
|
|
223
|
+
memory_search: "memory search",
|
|
224
|
+
memory_get: "memory lookup",
|
|
225
|
+
memory_add: "memory save",
|
|
226
|
+
memory_delete: "memory deletion",
|
|
227
|
+
web_search: "web search",
|
|
228
|
+
web_fetch: "web read",
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
export function summarizeConversationTools(actions) {
|
|
232
|
+
const counts = new Map();
|
|
233
|
+
for (const action of actions) {
|
|
234
|
+
const category = CATEGORIES[action.tool] || "tool action";
|
|
235
|
+
counts.set(category, (counts.get(category) || 0) + action.count);
|
|
236
|
+
}
|
|
237
|
+
const categories = [...counts];
|
|
238
|
+
const summary = categories
|
|
239
|
+
.slice(0, 3)
|
|
240
|
+
.map(
|
|
241
|
+
([category, count]) =>
|
|
242
|
+
`${count} ${category}${count === 1 ? "" : pluralSuffix(category)}`,
|
|
243
|
+
)
|
|
244
|
+
.join(" · ");
|
|
245
|
+
const remaining = categories
|
|
246
|
+
.slice(3)
|
|
247
|
+
.reduce((total, [, count]) => total + count, 0);
|
|
248
|
+
return remaining
|
|
249
|
+
? `${summary} · ${remaining} other action${remaining === 1 ? "" : "s"}`
|
|
250
|
+
: summary;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function pluralSuffix(category) {
|
|
254
|
+
return category.endsWith("search") ? "es" : "s";
|
|
255
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { projectToolActivityEvent } from "./tool-activity-event.js";
|
|
2
|
+
|
|
3
|
+
/** Tool lifecycle belongs to the action rows; other diagnostics retain their timeline. */
|
|
4
|
+
export function isNonToolTimelineEvent(event) {
|
|
5
|
+
const evidence = event.toolActivity || projectToolActivityEvent(event);
|
|
6
|
+
if (!evidence) return true;
|
|
7
|
+
if (evidence.executionId) return false;
|
|
8
|
+
return !isRecordedToolOutcome(evidence.name);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function isRecordedToolOutcome(name) {
|
|
12
|
+
return (
|
|
13
|
+
name === "tool.completed" ||
|
|
14
|
+
name === "tool.failed" ||
|
|
15
|
+
name === "tool.payload.failed" ||
|
|
16
|
+
name === "tool.approval.rejected"
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { createSchedulesController } from "./controllers/schedules-controller.js";
|
|
2
|
+
import { createSchedulesWorkspace } from "./components/schedules/workspace.js";
|
|
3
|
+
|
|
4
|
+
export function createSchedulesFeature({
|
|
5
|
+
dom,
|
|
6
|
+
client,
|
|
7
|
+
shell,
|
|
8
|
+
selectedEnvironmentId,
|
|
9
|
+
getCurrentSessionId,
|
|
10
|
+
getAgentModes,
|
|
11
|
+
openSession,
|
|
12
|
+
}) {
|
|
13
|
+
let view;
|
|
14
|
+
let active = false;
|
|
15
|
+
const controller = createSchedulesController({
|
|
16
|
+
client,
|
|
17
|
+
getEnvironmentId: selectedEnvironmentId,
|
|
18
|
+
render: (snapshot) => view?.render(snapshot),
|
|
19
|
+
openConversation: async (sessionId, requestId) => {
|
|
20
|
+
if (!shell.activateWorkspace("chat")) return;
|
|
21
|
+
if (!sessionId) return;
|
|
22
|
+
try {
|
|
23
|
+
await openSession(sessionId);
|
|
24
|
+
if (!requestId) return;
|
|
25
|
+
requestAnimationFrame(() => {
|
|
26
|
+
const messages = [
|
|
27
|
+
...dom.messagesList.querySelectorAll("[data-request-id]"),
|
|
28
|
+
];
|
|
29
|
+
const message = messages.find(
|
|
30
|
+
(node) => node.dataset.requestId === requestId,
|
|
31
|
+
);
|
|
32
|
+
message?.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
33
|
+
});
|
|
34
|
+
} catch (error) {
|
|
35
|
+
shell.showToast(
|
|
36
|
+
error instanceof Error ? error.message : String(error),
|
|
37
|
+
"failed",
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
view = createSchedulesWorkspace({
|
|
43
|
+
root: dom.schedulesRoot,
|
|
44
|
+
actions: controller,
|
|
45
|
+
getCurrentSessionId,
|
|
46
|
+
getAgentModes,
|
|
47
|
+
});
|
|
48
|
+
view.render(controller.snapshot());
|
|
49
|
+
refreshAvailability();
|
|
50
|
+
dom.environmentSelect.addEventListener("change", () => {
|
|
51
|
+
queueMicrotask(() => {
|
|
52
|
+
if (active) void controller.load();
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
return {
|
|
56
|
+
refreshAvailability,
|
|
57
|
+
isWorkspaceAvailable(destination) {
|
|
58
|
+
if (destination !== "schedules") return true;
|
|
59
|
+
return client.supportsSchedules();
|
|
60
|
+
},
|
|
61
|
+
prepareLeave: view.prepareLeave,
|
|
62
|
+
setActive(value) {
|
|
63
|
+
active = value && client.supportsSchedules();
|
|
64
|
+
controller.setActive(active);
|
|
65
|
+
},
|
|
66
|
+
openJob(jobId) {
|
|
67
|
+
if (!client.supportsSchedules()) return;
|
|
68
|
+
if (!shell.activateWorkspace("schedules")) return;
|
|
69
|
+
void controller.openJob(jobId);
|
|
70
|
+
},
|
|
71
|
+
createJob(initialValues) {
|
|
72
|
+
if (!client.supportsSchedules()) return;
|
|
73
|
+
if (!shell.activateWorkspace("schedules")) return;
|
|
74
|
+
void controller.openCreate(initialValues);
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
function refreshAvailability() {
|
|
79
|
+
const available = client.supportsSchedules();
|
|
80
|
+
dom.schedulesWorkspaceButton.hidden = !available;
|
|
81
|
+
dom.schedulesWorkspaceButton.disabled = !available;
|
|
82
|
+
if (available) return;
|
|
83
|
+
controller.setActive(false);
|
|
84
|
+
if (active) shell.activateWorkspace("chat", { focus: false });
|
|
85
|
+
active = false;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface MessageLinkPreview {
|
|
2
|
+
url: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
imageUrl: string;
|
|
6
|
+
siteName: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare function createMessageLinkPreviewClient(options?: {
|
|
10
|
+
fetchImpl?: typeof fetch | null;
|
|
11
|
+
}): {
|
|
12
|
+
get(url: string): Promise<MessageLinkPreview | null>;
|
|
13
|
+
cancelQueued(): void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
const MAX_ACTIVE_REQUESTS = 3;
|
|
2
|
+
const MAX_QUEUED_REQUESTS = 64;
|
|
3
|
+
const MAX_CACHED_PREVIEWS = 100;
|
|
4
|
+
const PREVIEW_CACHE_LIFETIME_MS = 4 * 60 * 1_000;
|
|
5
|
+
const PREVIEW_REQUEST_TIMEOUT_MS = 10_000;
|
|
6
|
+
|
|
7
|
+
async function fetchLinkPreview(fetchImpl, url) {
|
|
8
|
+
if (typeof fetchImpl !== "function") return null;
|
|
9
|
+
const controller = new AbortController();
|
|
10
|
+
const timer = setTimeout(
|
|
11
|
+
() => controller.abort(),
|
|
12
|
+
PREVIEW_REQUEST_TIMEOUT_MS,
|
|
13
|
+
);
|
|
14
|
+
try {
|
|
15
|
+
const response = await fetchImpl(
|
|
16
|
+
`/web-link-preview?url=${encodeURIComponent(url)}`,
|
|
17
|
+
{
|
|
18
|
+
headers: { "X-Abot-Link-Preview": "1" },
|
|
19
|
+
credentials: "same-origin",
|
|
20
|
+
signal: controller.signal,
|
|
21
|
+
},
|
|
22
|
+
);
|
|
23
|
+
if (!response.ok) return null;
|
|
24
|
+
const payload = await response.json();
|
|
25
|
+
if (payload?.ok !== true) return null;
|
|
26
|
+
if (!payload.preview || typeof payload.preview !== "object") return null;
|
|
27
|
+
return payload.preview;
|
|
28
|
+
} catch {
|
|
29
|
+
return null;
|
|
30
|
+
} finally {
|
|
31
|
+
clearTimeout(timer);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function createMessageLinkPreviewClient({
|
|
36
|
+
fetchImpl = globalThis.fetch,
|
|
37
|
+
} = {}) {
|
|
38
|
+
const cache = new Map();
|
|
39
|
+
const pending = new Map();
|
|
40
|
+
const queue = [];
|
|
41
|
+
let activeRequests = 0;
|
|
42
|
+
|
|
43
|
+
function rememberPreview(url, preview) {
|
|
44
|
+
cache.delete(url);
|
|
45
|
+
cache.set(url, {
|
|
46
|
+
preview,
|
|
47
|
+
expiresAt: Date.now() + PREVIEW_CACHE_LIFETIME_MS,
|
|
48
|
+
});
|
|
49
|
+
if (cache.size > MAX_CACHED_PREVIEWS) {
|
|
50
|
+
cache.delete(cache.keys().next().value);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function startQueuedRequests() {
|
|
55
|
+
while (activeRequests < MAX_ACTIVE_REQUESTS && queue.length > 0) {
|
|
56
|
+
const job = queue.shift();
|
|
57
|
+
activeRequests += 1;
|
|
58
|
+
void fetchLinkPreview(fetchImpl, job.url).then((preview) => {
|
|
59
|
+
activeRequests -= 1;
|
|
60
|
+
pending.delete(job.url);
|
|
61
|
+
rememberPreview(job.url, preview);
|
|
62
|
+
job.resolve(preview);
|
|
63
|
+
startQueuedRequests();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function get(url) {
|
|
69
|
+
const cached = cache.get(url);
|
|
70
|
+
if (cached && cached.expiresAt > Date.now()) {
|
|
71
|
+
cache.delete(url);
|
|
72
|
+
cache.set(url, cached);
|
|
73
|
+
return Promise.resolve(cached.preview);
|
|
74
|
+
}
|
|
75
|
+
cache.delete(url);
|
|
76
|
+
if (pending.has(url)) return pending.get(url);
|
|
77
|
+
if (queue.length >= MAX_QUEUED_REQUESTS) return Promise.resolve(null);
|
|
78
|
+
let resolve;
|
|
79
|
+
const promise = new Promise((settle) => {
|
|
80
|
+
resolve = settle;
|
|
81
|
+
});
|
|
82
|
+
pending.set(url, promise);
|
|
83
|
+
queue.push({ url, resolve });
|
|
84
|
+
startQueuedRequests();
|
|
85
|
+
return promise;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function cancelQueued() {
|
|
89
|
+
for (const job of queue.splice(0)) {
|
|
90
|
+
pending.delete(job.url);
|
|
91
|
+
job.resolve(null);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return { get, cancelQueued };
|
|
96
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export function createScheduleRequests({
|
|
2
|
+
requestApi,
|
|
3
|
+
getEnvironmentId,
|
|
4
|
+
getConfig,
|
|
5
|
+
}) {
|
|
6
|
+
const supportsSchedules = () => getConfig()?.backend === "runtime";
|
|
7
|
+
const requestSchedules = async (url, options) => {
|
|
8
|
+
if (!supportsSchedules())
|
|
9
|
+
throw new Error("Schedules require the local Runtime backend.");
|
|
10
|
+
return requestApi(url, options);
|
|
11
|
+
};
|
|
12
|
+
const path = (suffix = "", environmentId = getEnvironmentId()) =>
|
|
13
|
+
`/schedules${suffix}?environment=${encodeURIComponent(environmentId)}`;
|
|
14
|
+
const runPagePath = (resourceSuffix, environmentId, page = {}) => {
|
|
15
|
+
const query = new URLSearchParams();
|
|
16
|
+
if (page.cursor !== undefined) query.set("cursor", page.cursor);
|
|
17
|
+
if (page.limit !== undefined) query.set("limit", String(page.limit));
|
|
18
|
+
const suffix = query.size ? `&${query}` : "";
|
|
19
|
+
return path(resourceSuffix, environmentId) + suffix;
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
supportsSchedules,
|
|
23
|
+
listSchedules: (environmentId) => requestSchedules(path("", environmentId)),
|
|
24
|
+
getSchedule: (jobId, environmentId) =>
|
|
25
|
+
requestSchedules(path(`/${encodeURIComponent(jobId)}`, environmentId)),
|
|
26
|
+
listScheduleRuns: (jobId, environmentId, page) =>
|
|
27
|
+
requestSchedules(
|
|
28
|
+
runPagePath(`/${encodeURIComponent(jobId)}/runs`, environmentId, page),
|
|
29
|
+
),
|
|
30
|
+
listRecentScheduleRuns: (environmentId, page) =>
|
|
31
|
+
requestSchedules(runPagePath("/runs", environmentId, page)),
|
|
32
|
+
createSchedule: (input, environmentId) =>
|
|
33
|
+
requestSchedules(path("", environmentId), {
|
|
34
|
+
method: "POST",
|
|
35
|
+
body: JSON.stringify(input),
|
|
36
|
+
}),
|
|
37
|
+
updateSchedule: (jobId, input, environmentId) =>
|
|
38
|
+
requestSchedules(path(`/${encodeURIComponent(jobId)}`, environmentId), {
|
|
39
|
+
method: "PATCH",
|
|
40
|
+
body: JSON.stringify(input),
|
|
41
|
+
}),
|
|
42
|
+
scheduleAction: (jobId, action, environmentId) =>
|
|
43
|
+
requestSchedules(
|
|
44
|
+
path(`/${encodeURIComponent(jobId)}/${action}`, environmentId),
|
|
45
|
+
{
|
|
46
|
+
method: "POST",
|
|
47
|
+
body: "{}",
|
|
48
|
+
},
|
|
49
|
+
),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
UpdateSchedulerJobInput,
|
|
3
|
+
SchedulerJob,
|
|
4
|
+
SchedulerRun,
|
|
5
|
+
} from "../../../runtime/scheduler/contracts.js";
|
|
6
|
+
import type { CreateWebScheduleJobInput } from "../../schedule-creation-contract.js";
|
|
7
|
+
|
|
1
8
|
export declare function parseJsonResponseText(
|
|
2
9
|
text: string,
|
|
3
10
|
context: string,
|
|
@@ -61,6 +68,35 @@ export declare function createRuntimeWebClient(options: {
|
|
|
61
68
|
fetchImpl?: typeof fetch;
|
|
62
69
|
origin?: string;
|
|
63
70
|
}): {
|
|
71
|
+
supportsSchedules(): boolean;
|
|
72
|
+
listSchedules(environmentId?: string): Promise<{ jobs: SchedulerJob[] }>;
|
|
73
|
+
getSchedule(
|
|
74
|
+
jobId: string,
|
|
75
|
+
environmentId?: string,
|
|
76
|
+
): Promise<{ job: SchedulerJob }>;
|
|
77
|
+
listScheduleRuns(
|
|
78
|
+
jobId: string,
|
|
79
|
+
environmentId?: string,
|
|
80
|
+
page?: { cursor?: string; limit?: number },
|
|
81
|
+
): Promise<{ runs: SchedulerRun[]; nextCursor: string | null }>;
|
|
82
|
+
listRecentScheduleRuns(
|
|
83
|
+
environmentId?: string,
|
|
84
|
+
page?: { cursor?: string; limit?: number },
|
|
85
|
+
): Promise<{ runs: SchedulerRun[]; nextCursor: string | null }>;
|
|
86
|
+
createSchedule(
|
|
87
|
+
input: CreateWebScheduleJobInput,
|
|
88
|
+
environmentId?: string,
|
|
89
|
+
): Promise<{ job: SchedulerJob }>;
|
|
90
|
+
updateSchedule(
|
|
91
|
+
jobId: string,
|
|
92
|
+
input: UpdateSchedulerJobInput,
|
|
93
|
+
environmentId?: string,
|
|
94
|
+
): Promise<{ job: SchedulerJob }>;
|
|
95
|
+
scheduleAction(
|
|
96
|
+
jobId: string,
|
|
97
|
+
action: "pause" | "resume" | "cancel" | "run-now",
|
|
98
|
+
environmentId?: string,
|
|
99
|
+
): Promise<Record<string, unknown>>;
|
|
64
100
|
getRuntimeStatus(): Promise<Record<string, unknown>>;
|
|
65
101
|
getRuntimeLogs(lines?: number): Promise<Record<string, unknown>>;
|
|
66
102
|
getSystemHealth(): Promise<Record<string, unknown>>;
|
|
@@ -101,6 +137,7 @@ export declare function createRuntimeWebClient(options: {
|
|
|
101
137
|
sessionId: string;
|
|
102
138
|
environmentId?: string;
|
|
103
139
|
readThroughMessageId?: number | null;
|
|
140
|
+
readThroughRequestId?: string;
|
|
104
141
|
}): Promise<Record<string, unknown>>;
|
|
105
142
|
clearSessionMessages(
|
|
106
143
|
sessionId: string,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createScheduleRequests } from "./runtime-web-client/schedules.js";
|
|
1
2
|
import { createLongTermMemoryRequests } from "./runtime-web-client/memory.js";
|
|
2
3
|
|
|
3
4
|
export function parseJsonResponseText(text, context) {
|
|
@@ -176,24 +177,27 @@ export function createRuntimeWebClient({
|
|
|
176
177
|
sessionId,
|
|
177
178
|
environmentId = getEnvironmentId(),
|
|
178
179
|
readThroughMessageId = null,
|
|
180
|
+
readThroughRequestId = "",
|
|
179
181
|
}) {
|
|
180
182
|
const numericReadThrough =
|
|
181
183
|
typeof readThroughMessageId === "number" &&
|
|
182
184
|
Number.isFinite(readThroughMessageId)
|
|
183
185
|
? Math.max(0, Math.floor(readThroughMessageId))
|
|
184
186
|
: null;
|
|
187
|
+
const requestReadBoundary = numericReadThrough === null
|
|
188
|
+
? String(readThroughRequestId || "").trim()
|
|
189
|
+
: "";
|
|
190
|
+
const body = {
|
|
191
|
+
readThroughMessageId: numericReadThrough,
|
|
192
|
+
lastReadMessageId:
|
|
193
|
+
numericReadThrough === null ? null : String(numericReadThrough),
|
|
194
|
+
};
|
|
195
|
+
if (requestReadBoundary) body.readThroughRequestId = requestReadBoundary;
|
|
185
196
|
return requestApi(
|
|
186
197
|
`/chat/sessions/${encodeURIComponent(
|
|
187
198
|
sessionId,
|
|
188
199
|
)}/read?environment=${environmentQuery(environmentId)}`,
|
|
189
|
-
{
|
|
190
|
-
method: "POST",
|
|
191
|
-
body: JSON.stringify({
|
|
192
|
-
readThroughMessageId: numericReadThrough,
|
|
193
|
-
lastReadMessageId:
|
|
194
|
-
numericReadThrough === null ? null : String(numericReadThrough),
|
|
195
|
-
}),
|
|
196
|
-
},
|
|
200
|
+
{ method: "POST", body: JSON.stringify(body) },
|
|
197
201
|
);
|
|
198
202
|
},
|
|
199
203
|
|
|
@@ -292,5 +296,6 @@ export function createRuntimeWebClient({
|
|
|
292
296
|
},
|
|
293
297
|
|
|
294
298
|
...longTermMemoryRequests,
|
|
299
|
+
...createScheduleRequests({ requestApi, getEnvironmentId, getConfig }),
|
|
295
300
|
};
|
|
296
301
|
}
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
|
|
29
29
|
--font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
|
|
30
30
|
/* Readable typography shared by every workspace, including mobile. */
|
|
31
|
-
--font-size-xs: 0.
|
|
32
|
-
--font-size-sm: 0.
|
|
33
|
-
--font-size-md:
|
|
34
|
-
--font-size-lg:
|
|
35
|
-
--font-size-xl: 1.
|
|
36
|
-
--font-size-2xl: 1.
|
|
37
|
-
--font-size-3xl: 1.
|
|
38
|
-
--font-size-4xl: 1.
|
|
39
|
-
--font-size-5xl: 1.
|
|
40
|
-
--font-size-6xl: 1.
|
|
41
|
-
--font-size-7xl: 2.
|
|
31
|
+
--font-size-xs: 0.8125rem;
|
|
32
|
+
--font-size-sm: 0.875rem;
|
|
33
|
+
--font-size-md: 0.9375rem;
|
|
34
|
+
--font-size-lg: 1rem;
|
|
35
|
+
--font-size-xl: 1.0625rem;
|
|
36
|
+
--font-size-2xl: 1.1875rem;
|
|
37
|
+
--font-size-3xl: 1.3125rem;
|
|
38
|
+
--font-size-4xl: 1.4375rem;
|
|
39
|
+
--font-size-5xl: 1.5625rem;
|
|
40
|
+
--font-size-6xl: 1.8125rem;
|
|
41
|
+
--font-size-7xl: 2.1875rem;
|
|
42
42
|
--sessions-panel-width: 320px;
|
|
43
43
|
--chat-content-width: 900px;
|
|
44
44
|
--scrollbar-thumb: rgba(95, 127, 158, 0.34);
|