@sema-agent/server 7.131.0 → 7.133.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/MIGRATION.md +575 -0
- package/README.md +12 -9
- package/README.zh-CN.md +9 -6
- package/USAGE.md +326 -98
- package/deploy/sema-up/README.md +19 -1
- package/deploy/sema-up/chart/templates/server-v4pro.yaml +5 -2
- package/deploy/sema-up/chart/templates/server.yaml +5 -2
- package/deploy/sema-up/stack/compose.yaml +3 -0
- package/deploy/sema-up/stack/sema-stack-cluster.yaml +4 -2
- package/dist/adoption/plan.d.ts +3 -2
- package/dist/adoption/plan.js +7 -5
- package/dist/adoption/runner.js +3 -10
- package/dist/adoption/sql.d.ts +3 -2
- package/dist/adoption/sql.js +3 -5
- package/dist/adoption/wire.d.ts +4 -1
- package/dist/adoption/wire.js +1 -0
- package/dist/approval-ask-audit-store.d.ts +31 -13
- package/dist/approval-ask-audit-store.js +272 -74
- package/dist/approval-ask-machine.d.ts +15 -0
- package/dist/approval-ask-machine.js +6 -0
- package/dist/approval-ask-retention.d.ts +136 -0
- package/dist/approval-ask-retention.js +102 -0
- package/dist/approval-card.d.ts +82 -20
- package/dist/approval-card.js +46 -16
- package/dist/approval-deny-reasons.d.ts +1 -1
- package/dist/approval.d.ts +9 -0
- package/dist/approval.js +24 -3
- package/dist/audit.d.ts +33 -19
- package/dist/audit.js +12 -16
- package/dist/auth-bridge.d.ts +4 -0
- package/dist/auth-bridge.js +10 -11
- package/dist/bake-runner/main.js +3 -2
- package/dist/boot/deferred-sandbox-path-env.js +1 -1
- package/dist/boot/deployment-mods.d.ts +31 -0
- package/dist/boot/deployment-mods.js +26 -0
- package/dist/boot/execution-env.d.ts +1 -1
- package/dist/boot/execution-env.js +27 -12
- package/dist/boot/execution-lane.js +11 -0
- package/dist/boot/leader.js +2 -0
- package/dist/boot/memory-boundary.d.ts +2 -2
- package/dist/boot/memory-boundary.js +2 -2
- package/dist/boot/memory-consolidation.d.ts +5 -4
- package/dist/boot/memory-consolidation.js +7 -6
- package/dist/boot/org-delivery.d.ts +28 -0
- package/dist/boot/org-delivery.js +20 -0
- package/dist/boot/read-deny-anchor-audit.d.ts +17 -0
- package/dist/boot/read-deny-anchor-audit.js +36 -0
- package/dist/boot/reapers.d.ts +3 -0
- package/dist/boot/reapers.js +21 -1
- package/dist/boot/resolve-spec.d.ts +4 -5
- package/dist/boot/resolve-spec.js +74 -123
- package/dist/boot/runner-deps.d.ts +19 -8
- package/dist/boot/runner-deps.js +15 -2
- package/dist/boot/session-faces.d.ts +2 -7
- package/dist/boot/session-faces.js +4 -2
- package/dist/boot/stage-02-web-admin-pull.js +4 -1
- package/dist/boot/stage-03-store-backend.d.ts +1 -1
- package/dist/boot/stage-03-store-backend.js +2 -2
- package/dist/boot/stage-04-stores.d.ts +1 -1
- package/dist/boot/stage-05-execution-env.d.ts +4 -4
- package/dist/boot/stage-05-execution-env.js +7 -10
- package/dist/boot/stage-06-runners.d.ts +4 -2
- package/dist/boot/stage-06-runners.js +11 -7
- package/dist/boot/stage-07-capability-layer.d.ts +4 -2
- package/dist/boot/stage-07-capability-layer.js +27 -6
- package/dist/boot/stage-08-reapers.d.ts +4 -2
- package/dist/boot/stage-08-reapers.js +2 -2
- package/dist/boot/stage-09-leader.d.ts +6 -9
- package/dist/boot/stage-10-http-server.d.ts +6 -9
- package/dist/boot/stage-10-http-server.js +7 -9
- package/dist/boot/stores.d.ts +1 -1
- package/dist/boot/stores.js +7 -8
- package/dist/boot/web-admin.d.ts +4 -3
- package/dist/boot/web-admin.js +186 -98
- package/dist/boot/workflow-orchestration.d.ts +2 -0
- package/dist/boot/workflow-orchestration.js +2 -1
- package/dist/brain.js +25 -25
- package/dist/breaker-key.d.ts +6 -0
- package/dist/breaker-key.js +29 -0
- package/dist/budget.js +5 -4
- package/dist/caller-text-echo.d.ts +23 -0
- package/dist/caller-text-echo.js +21 -0
- package/dist/capabilities/brand-identity.d.ts +26 -0
- package/dist/capabilities/brand-identity.js +27 -0
- package/dist/capabilities/center-plugins.d.ts +7 -0
- package/dist/capabilities/center-plugins.js +1 -1
- package/dist/capabilities/center-prompts.d.ts +32 -59
- package/dist/capabilities/center-prompts.js +18 -32
- package/dist/capabilities/composite-members.d.ts +1 -1
- package/dist/capabilities/composite-members.js +1 -1
- package/dist/capabilities/engine-capabilities.js +2 -1
- package/dist/capabilities/execution-lane.js +2 -2
- package/dist/capabilities/hands-lane.d.ts +30 -6
- package/dist/capabilities/hands-lane.js +11 -1
- package/dist/capabilities/mcp-probe.d.ts +48 -3
- package/dist/capabilities/mcp-probe.js +47 -135
- package/dist/capabilities/scenarios.d.ts +95 -45
- package/dist/capabilities/scenarios.js +53 -38
- package/dist/capabilities/skills.d.ts +19 -4
- package/dist/capabilities/skills.js +30 -10
- package/dist/capability-facts.d.ts +34 -4
- package/dist/capability-facts.js +28 -2
- package/dist/center-config-tier.d.ts +69 -0
- package/dist/center-config-tier.js +42 -0
- package/dist/checkpoint-identity.d.ts +16 -0
- package/dist/checkpoint-identity.js +19 -0
- package/dist/config-catalog.d.ts +17 -10
- package/dist/config-catalog.js +47 -32
- package/dist/config-d-migration.d.ts +3 -1
- package/dist/config-d-migration.js +2 -2
- package/dist/config-dir-trust.d.ts +114 -0
- package/dist/config-dir-trust.js +388 -0
- package/dist/config-invariants.d.ts +18 -5
- package/dist/config-invariants.js +35 -3
- package/dist/config-lkg.d.ts +9 -9
- package/dist/config-lkg.js +20 -4
- package/dist/config-provider.d.ts +9 -2
- package/dist/config-provider.js +18 -6
- package/dist/config-types.d.ts +75 -20
- package/dist/config-types.js +8 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.js +137 -62
- package/dist/delegated-session-owner.d.ts +185 -0
- package/dist/delegated-session-owner.js +119 -0
- package/dist/device-protocol.d.ts +5 -3
- package/dist/device-protocol.js +1 -1
- package/dist/device-ws-hub.js +21 -2
- package/dist/device-ws-protocol.d.ts +70 -6
- package/dist/device-ws-protocol.js +50 -22
- package/dist/elicitation.js +3 -2
- package/dist/entry-problems.d.ts +34 -0
- package/dist/entry-problems.js +14 -0
- package/dist/env-name-allowlist-knobs.d.ts +12 -2
- package/dist/env-name-allowlist-knobs.js +5 -4
- package/dist/exec-bounds.d.ts +15 -3
- package/dist/exec-bounds.js +4 -0
- package/dist/execution-lane-caps.d.ts +56 -10
- package/dist/execution-lane-caps.js +50 -0
- package/dist/field-conflict.d.ts +43 -0
- package/dist/field-conflict.js +20 -0
- package/dist/fleet/fleet-bus.d.ts +80 -6
- package/dist/fleet/fleet-bus.js +41 -9
- package/dist/hooks/classic-stations.d.ts +91 -0
- package/dist/hooks/classic-stations.js +27 -0
- package/dist/hooks/command-spawn.d.ts +57 -0
- package/dist/hooks/command-spawn.js +139 -0
- package/dist/hooks/hook-llm.d.ts +8 -5
- package/dist/hooks/hook-llm.js +79 -36
- package/dist/hooks/hook-runner.d.ts +349 -95
- package/dist/hooks/hook-runner.js +855 -568
- package/dist/hooks/hook-source.d.ts +44 -0
- package/dist/hooks/hook-source.js +40 -0
- package/dist/http/active-run-conflict.d.ts +5 -13
- package/dist/http/active-run-conflict.js +17 -27
- package/dist/http/admission.d.ts +8 -2
- package/dist/http/admission.js +188 -101
- package/dist/http/approval-sweeps.js +99 -21
- package/dist/http/caller-trust.d.ts +77 -0
- package/dist/http/caller-trust.js +143 -0
- package/dist/http/checkpoint-ctx.d.ts +41 -24
- package/dist/http/checkpoint-ctx.js +23 -16
- package/dist/http/claimed-run.d.ts +14 -0
- package/dist/http/claimed-run.js +15 -0
- package/dist/http/device-placement.d.ts +2 -4
- package/dist/http/device-placement.js +7 -11
- package/dist/http/dispatch.d.ts +0 -4
- package/dist/http/dispatch.js +15 -13
- package/dist/http/durable-run-leg.d.ts +6 -33
- package/dist/http/durable-run-leg.js +36 -10
- package/dist/http/health-self-report.d.ts +7 -5
- package/dist/http/health-self-report.js +4 -18
- package/dist/http/owner-access.d.ts +56 -0
- package/dist/http/owner-access.js +42 -0
- package/dist/http/principal-gate.d.ts +70 -28
- package/dist/http/principal-gate.js +61 -15
- package/dist/http/readiness.d.ts +11 -5
- package/dist/http/readiness.js +10 -3
- package/dist/http/refusal-body.d.ts +21 -0
- package/dist/http/refusal-body.js +4 -0
- package/dist/http/request-guards.d.ts +43 -23
- package/dist/http/request-guards.js +53 -17
- package/dist/http/resume-ctx-read.d.ts +2 -5
- package/dist/http/resume-ctx-read.js +7 -4
- package/dist/http/resume-legs.d.ts +28 -4
- package/dist/http/resume-legs.js +169 -91
- package/dist/http/retired-service-deps.d.ts +43 -0
- package/dist/http/retired-service-deps.js +18 -0
- package/dist/http/route-ctx.d.ts +44 -28
- package/dist/http/route-ctx.js +4 -0
- package/dist/http/route-table.js +2 -0
- package/dist/http/routes/a2a-serve.js +3 -4
- package/dist/http/routes/admin-config-refresh.js +1 -1
- package/dist/http/routes/admin-drain.js +1 -1
- package/dist/http/routes/admin-memory-optout.js +5 -1
- package/dist/http/routes/adoption.js +2 -9
- package/dist/http/routes/approvals-assistant.js +49 -48
- package/dist/http/routes/background.js +3 -2
- package/dist/http/routes/capabilities.js +21 -5
- package/dist/http/routes/config-catalog.d.ts +3 -3
- package/dist/http/routes/config-catalog.js +1 -1
- package/dist/http/routes/devices.js +3 -17
- package/dist/http/routes/diagnostics.js +6 -2
- package/dist/http/routes/images.js +6 -7
- package/dist/http/routes/leader.js +1 -8
- package/dist/http/routes/mcp-reconnect.d.ts +1 -1
- package/dist/http/routes/mcp-reconnect.js +3 -2
- package/dist/http/routes/memory-bundle.js +1 -1
- package/dist/http/routes/memory-compliance.js +1 -1
- package/dist/http/routes/memory-consolidation.js +1 -1
- package/dist/http/routes/memory-origin.js +1 -1
- package/dist/http/routes/memory-policy.d.ts +1 -1
- package/dist/http/routes/memory-policy.js +3 -2
- package/dist/http/routes/notify-wake.js +8 -21
- package/dist/http/routes/observability.js +2 -2
- package/dist/http/routes/principal-inbox.d.ts +39 -0
- package/dist/http/routes/principal-inbox.js +76 -0
- package/dist/http/routes/retention-ops.js +2 -9
- package/dist/http/routes/rules.js +5 -18
- package/dist/http/routes/runs.d.ts +5 -0
- package/dist/http/routes/runs.js +34 -107
- package/dist/http/routes/session-sync.js +15 -26
- package/dist/http/routes/sessions.js +30 -40
- package/dist/http/routes/shared-memory.js +2 -13
- package/dist/http/routes/side-query.js +8 -7
- package/dist/http/routes/tasks.js +67 -21
- package/dist/http/routes/workflows.d.ts +351 -0
- package/dist/http/routes/workflows.js +153 -119
- package/dist/http/send.d.ts +33 -10
- package/dist/http/send.js +21 -4
- package/dist/http/server.d.ts +27 -18
- package/dist/http/server.js +34 -6
- package/dist/http/stored-body-replay.js +17 -4
- package/dist/http/submit-ctx.d.ts +25 -0
- package/dist/http/submit-ctx.js +40 -0
- package/dist/http/submit-replay.d.ts +4 -3
- package/dist/http/submit-replay.js +5 -4
- package/dist/http/wire-types.d.ts +11 -8
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -2
- package/dist/lane-home-probe.d.ts +112 -0
- package/dist/lane-home-probe.js +101 -0
- package/dist/leader/endpoint.d.ts +4 -1
- package/dist/leader/endpoint.js +11 -10
- package/dist/limit-refusal.d.ts +59 -0
- package/dist/limit-refusal.js +15 -0
- package/dist/main.js +1 -1
- package/dist/mcp-assertion-header.d.ts +32 -19
- package/dist/mcp-assertion-header.js +10 -9
- package/dist/mcp-tool-faces.d.ts +5 -0
- package/dist/mcp-tool-faces.js +6 -4
- package/dist/memory-project-layer.d.ts +37 -0
- package/dist/memory-project-layer.js +46 -0
- package/dist/memory-scope.d.ts +24 -17
- package/dist/memory-scope.js +24 -8
- package/dist/memory-sync-client.d.ts +27 -13
- package/dist/memory-sync-client.js +107 -18
- package/dist/model-entry-refusal.d.ts +9 -1
- package/dist/model-entry-refusal.js +6 -1
- package/dist/model-plane-face.d.ts +51 -0
- package/dist/model-plane-face.js +24 -0
- package/dist/model-provider.d.ts +44 -12
- package/dist/model-provider.js +21 -2
- package/dist/model-route-endpoint.d.ts +9 -12
- package/dist/model-route-endpoint.js +8 -11
- package/dist/model-route-env.d.ts +22 -0
- package/dist/model-route-env.js +2 -0
- package/dist/model-route-gap.d.ts +60 -30
- package/dist/model-route-gap.js +21 -15
- package/dist/observability/corrupt-read-seat.d.ts +7 -0
- package/dist/observability/corrupt-read-seat.js +9 -0
- package/dist/observability/cost-taxonomy.d.ts +7 -7
- package/dist/observability/err-text.d.ts +6 -0
- package/dist/observability/err-text.js +18 -4
- package/dist/observability/fail-open.d.ts +76 -14
- package/dist/observability/fail-open.js +76 -14
- package/dist/observability/metrics.js +4 -1
- package/dist/observability/prompt-manifest.d.ts +33 -82
- package/dist/observability/prompt-manifest.js +122 -17
- package/dist/observability/run-terminal.js +14 -6
- package/dist/observability/secret-env-scrub.d.ts +13 -1
- package/dist/observability/secret-env-scrub.js +13 -1
- package/dist/observability/tool-trace.d.ts +16 -21
- package/dist/observability/tool-trace.js +58 -49
- package/dist/operator-ask.d.ts +10 -0
- package/dist/operator-ask.js +3 -0
- package/dist/orchestration/workflow-agent-session-index.d.ts +12 -12
- package/dist/orchestration/workflow-agent-session-index.js +9 -13
- package/dist/orchestration/workflow-completion-inbox.d.ts +42 -15
- package/dist/orchestration/workflow-completion-inbox.js +13 -0
- package/dist/orchestration/workflow-notify-journal.d.ts +13 -32
- package/dist/orchestration/workflow-notify-journal.js +27 -34
- package/dist/orchestration/workflow-park-decision.d.ts +89 -0
- package/dist/orchestration/workflow-park-decision.js +118 -0
- package/dist/org-delivery-gate.d.ts +81 -0
- package/dist/org-delivery-gate.js +59 -0
- package/dist/panel-tool-names.d.ts +23 -0
- package/dist/panel-tool-names.js +8 -0
- package/dist/parked-decide.d.ts +39 -6
- package/dist/parked-decide.js +98 -51
- package/dist/parked-revive-surface.d.ts +9 -2
- package/dist/parked-revive-surface.js +11 -8
- package/dist/per-task-image.d.ts +7 -1
- package/dist/per-task-image.js +3 -3
- package/dist/permission-rule-list.d.ts +1 -1
- package/dist/permission-rule-list.js +2 -2
- package/dist/plain-string-record.d.ts +25 -0
- package/dist/plain-string-record.js +32 -0
- package/dist/plugins/approval-ask-store-file.d.ts +16 -1
- package/dist/plugins/approval-ask-store-file.js +21 -0
- package/dist/plugins/approval-ask-store-memory.d.ts +18 -1
- package/dist/plugins/approval-ask-store-memory.js +34 -2
- package/dist/plugins/approval-ask-store-sql.d.ts +25 -0
- package/dist/plugins/approval-ask-store-sql.js +37 -1
- package/dist/plugins/blob-backend.d.ts +83 -15
- package/dist/plugins/blob-backend.js +68 -15
- package/dist/plugins/breaker-state-sql.d.ts +2 -2
- package/dist/plugins/breaker-state-sql.js +4 -4
- package/dist/plugins/caching-session-store.d.ts +3 -0
- package/dist/plugins/caching-session-store.js +3 -0
- package/dist/plugins/checkpoint-store-sql.d.ts +28 -4
- package/dist/plugins/checkpoint-store-sql.js +59 -28
- package/dist/plugins/file-history-store-sql.d.ts +5 -2
- package/dist/plugins/file-history-store-sql.js +3 -1
- package/dist/plugins/file-run-store.d.ts +5 -13
- package/dist/plugins/file-run-store.js +9 -0
- package/dist/plugins/fork-routing-session-store.d.ts +9 -1
- package/dist/plugins/fork-routing-session-store.js +12 -1
- package/dist/plugins/host-platform.d.ts +2 -0
- package/dist/plugins/host-platform.js +2 -1
- package/dist/plugins/k8s-bg-scripts.d.ts +11 -0
- package/dist/plugins/k8s-bg-scripts.js +22 -0
- package/dist/plugins/local-checkpoint-store.d.ts +2 -0
- package/dist/plugins/local-checkpoint-store.js +11 -3
- package/dist/plugins/local-session-store.d.ts +1 -1
- package/dist/plugins/local-session-store.js +1 -1
- package/dist/plugins/local-session-window.d.ts +39 -0
- package/dist/plugins/local-session-window.js +54 -0
- package/dist/plugins/mailbox-recipient-lifecycle.d.ts +3 -2
- package/dist/plugins/mailbox-store-sql.d.ts +30 -48
- package/dist/plugins/mailbox-store-sql.js +77 -52
- package/dist/plugins/memory-embedder-fingerprint.js +2 -1
- package/dist/plugins/memory-run-store.d.ts +5 -13
- package/dist/plugins/memory-run-store.js +8 -0
- package/dist/plugins/one-time-migrations.d.ts +245 -93
- package/dist/plugins/one-time-migrations.js +668 -207
- package/dist/plugins/org-delivery-quota-store.d.ts +123 -0
- package/dist/plugins/org-delivery-quota-store.js +228 -0
- package/dist/plugins/permission-rule-store-sql.d.ts +13 -7
- package/dist/plugins/permission-rule-store-sql.js +4 -18
- package/dist/plugins/pg-pool.js +39 -7
- package/dist/plugins/pg-session-storage.d.ts +20 -8
- package/dist/plugins/pg-session-storage.js +34 -21
- package/dist/plugins/remote-env-adb.d.ts +12 -12
- package/dist/plugins/remote-env-adb.js +21 -6
- package/dist/plugins/remote-env-device.js +3 -0
- package/dist/plugins/remote-env-e2b.d.ts +1 -1
- package/dist/plugins/remote-env-e2b.js +21 -9
- package/dist/plugins/remote-env-host.d.ts +9 -9
- package/dist/plugins/remote-env-host.js +10 -32
- package/dist/plugins/remote-env-k8s.d.ts +103 -38
- package/dist/plugins/remote-env-k8s.js +288 -95
- package/dist/plugins/remote-env-local-docker.d.ts +27 -13
- package/dist/plugins/remote-env-local-docker.js +82 -11
- package/dist/plugins/remote-env-ssh.d.ts +21 -12
- package/dist/plugins/remote-env-ssh.js +117 -5
- package/dist/plugins/remote-shell.d.ts +0 -1
- package/dist/plugins/remote-shell.js +1 -2
- package/dist/plugins/retention-store-sql.js +6 -2
- package/dist/plugins/run-store-sql.d.ts +16 -14
- package/dist/plugins/run-store-sql.js +22 -2
- package/dist/plugins/schema-consistency.d.ts +54 -0
- package/dist/plugins/schema-consistency.js +52 -0
- package/dist/plugins/schema-indexes.js +2 -0
- package/dist/plugins/send-user-file.js +2 -2
- package/dist/plugins/session-epoch-anchor.d.ts +39 -0
- package/dist/plugins/session-epoch-anchor.js +22 -0
- package/dist/plugins/session-store.d.ts +18 -8
- package/dist/plugins/session-store.js +15 -4
- package/dist/plugins/shared-memory-store-sql.d.ts +9 -3
- package/dist/plugins/shared-memory-store-sql.js +5 -16
- package/dist/plugins/sql-driver.d.ts +205 -1
- package/dist/plugins/sql-driver.js +325 -13
- package/dist/plugins/sql-errors.d.ts +64 -0
- package/dist/plugins/sql-errors.js +57 -0
- package/dist/plugins/store-backend.d.ts +36 -1
- package/dist/plugins/store-backend.js +42 -15
- package/dist/plugins/store-contracts.d.ts +42 -0
- package/dist/plugins/store-contracts.js +1 -0
- package/dist/plugins/tidb-pool.d.ts +6 -1
- package/dist/plugins/tidb-pool.js +44 -10
- package/dist/plugins/tidb-session-storage.d.ts +8 -11
- package/dist/plugins/tidb-session-storage.js +6 -16
- package/dist/plugins/tidb-session-store.d.ts +24 -4
- package/dist/plugins/tidb-session-store.js +29 -5
- package/dist/plugins/workflow-journal-store-sql.d.ts +73 -19
- package/dist/plugins/workflow-journal-store-sql.js +19 -6
- package/dist/plugins/workflow-run-store-sql.d.ts +30 -8
- package/dist/plugins/workflow-run-store-sql.js +50 -9
- package/dist/posture-source.d.ts +18 -10
- package/dist/posture-source.js +4 -1
- package/dist/project-identity.d.ts +45 -6
- package/dist/project-identity.js +162 -8
- package/dist/project-layer-key.d.ts +28 -0
- package/dist/project-layer-key.js +29 -0
- package/dist/prompts-domain-validate.d.ts +17 -61
- package/dist/prompts-domain-validate.js +9 -119
- package/dist/question.js +3 -2
- package/dist/read-deny-entry.d.ts +25 -0
- package/dist/read-deny-entry.js +12 -0
- package/dist/read-face-posture.d.ts +37 -11
- package/dist/read-face-posture.js +32 -3
- package/dist/request-key-closure.d.ts +9 -2
- package/dist/request-key-closure.js +11 -5
- package/dist/request-value-closure.d.ts +5 -0
- package/dist/request-value-closure.js +11 -3
- package/dist/rule-entry-list.d.ts +38 -11
- package/dist/rule-entry-list.js +106 -30
- package/dist/rules-consent.js +3 -4
- package/dist/run-acceptance.d.ts +19 -3
- package/dist/run-acceptance.js +13 -1
- package/dist/run-local.js +54 -24
- package/dist/runs.d.ts +15 -8
- package/dist/runs.js +35 -1
- package/dist/runtime-caps-resolver.d.ts +16 -6
- package/dist/runtime-caps-resolver.js +18 -5
- package/dist/sandbox-pkg-source.d.ts +19 -1
- package/dist/sandbox-pkg-source.js +29 -7
- package/dist/security.d.ts +87 -9
- package/dist/security.js +52 -9
- package/dist/server-secret-env.d.ts +44 -18
- package/dist/server-secret-env.js +49 -8
- package/dist/session-error-wire.d.ts +19 -2
- package/dist/session-error-wire.js +5 -1
- package/dist/session-incarnation.d.ts +15 -5
- package/dist/session-incarnation.js +16 -9
- package/dist/session-titled-frame.d.ts +33 -0
- package/dist/session-titled-frame.js +4 -0
- package/dist/session-titler.d.ts +9 -1
- package/dist/session-titler.js +27 -6
- package/dist/spec-fields.d.ts +28 -16
- package/dist/spec-fields.js +66 -54
- package/dist/sql-engine-posture.d.ts +31 -4
- package/dist/sql-engine-posture.js +36 -1
- package/dist/stored-request-tool-axes-m19.d.ts +19 -4
- package/dist/stored-request-tool-axes-m19.js +30 -2
- package/dist/task-a2a.d.ts +9 -1
- package/dist/task-a2a.js +73 -47
- package/dist/task-cwd.d.ts +1 -1
- package/dist/task-mcp.d.ts +46 -58
- package/dist/task-mcp.js +82 -107
- package/dist/task-settings.d.ts +95 -108
- package/dist/task-settings.js +77 -98
- package/dist/text-bidi.d.ts +1 -48
- package/dist/text-bidi.js +3 -5
- package/dist/tighten-only-seats.d.ts +150 -0
- package/dist/tighten-only-seats.js +196 -0
- package/dist/tool-approval.d.ts +304 -88
- package/dist/tool-approval.js +623 -239
- package/dist/trace/core-keyset-guard.d.ts +122 -20
- package/dist/trace/engine-notice-wire.d.ts +11 -3
- package/dist/trace/engine-notice-wire.js +8 -1
- package/dist/trace/exit-seat.d.ts +28 -0
- package/dist/trace/exit-seat.js +76 -0
- package/dist/trace/ledger-events.d.ts +6 -3
- package/dist/trace/ledger-sink.js +4 -1
- package/dist/trace/model-segment.js +1 -1
- package/dist/trace/project.d.ts +98 -17
- package/dist/trace/project.js +98 -50
- package/dist/trace/projection-table.d.ts +100 -0
- package/dist/trace/projection-table.js +130 -0
- package/dist/trace/redact.d.ts +54 -0
- package/dist/trace/redact.js +778 -152
- package/dist/trace/self-minted-wire.d.ts +345 -1
- package/dist/trace/self-minted-wire.js +117 -1
- package/dist/trace/wire-projection-faces.d.ts +377 -3
- package/dist/trace/wire-projection-faces.js +164 -1
- package/dist/url-refusal.js +2 -0
- package/dist/web-admin-client/apply-effective.d.ts +12 -0
- package/dist/web-admin-client/apply-effective.js +56 -5
- package/dist/web-admin-client/candidate-gate.d.ts +6 -6
- package/dist/web-admin-client/candidate-gate.js +3 -3
- package/dist/web-admin-client/facade.d.ts +1 -1
- package/dist/web-admin-client/facade.js +1 -1
- package/dist/web-admin-client/http-client.js +0 -6
- package/dist/web-admin-client/read-face.js +5 -9
- package/dist/web-admin-client/read-warnings.d.ts +13 -0
- package/dist/web-admin-client/read-warnings.js +10 -0
- package/dist/web-admin-client/skills-mcp.d.ts +3 -0
- package/dist/web-admin-client/skills-mcp.js +11 -9
- package/dist/web-admin-client/types.d.ts +2 -3
- package/dist/workspace-cache.d.ts +35 -0
- package/dist/workspace-cache.js +36 -0
- package/dist/workspace-space.d.ts +3 -2
- package/dist/workspace-space.js +2 -0
- package/docs/DEVICE-EXECUTOR-PROTOCOL.md +65 -10
- package/package.json +8 -4
- package/scripts/drain-check-local.mjs +34 -1
- package/scripts/drain-check.mysql.sql +30 -2
- package/scripts/drain-check.pg.sql +29 -2
- package/dist/capabilities/memory-notice.d.ts +0 -138
- package/dist/capabilities/memory-notice.js +0 -64
- package/dist/capabilities/prompt.d.ts +0 -17
- package/dist/capabilities/prompt.js +0 -6
- package/dist/mcp-content-origin.d.ts +0 -34
- package/dist/mcp-content-origin.js +0 -10
- package/dist/tool-axis-words.d.ts +0 -27
- package/dist/tool-axis-words.js +0 -9
- package/dist/wire-name-bound.d.ts +0 -14
- package/dist/wire-name-bound.js +0 -13
|
@@ -187,7 +187,7 @@ export declare const SELF_MINTED_WIRE: {
|
|
|
187
187
|
* 另有一个 404 专属词 `unknown_or_other_replica`(7.40.0 起,换副本 / 换端点重试才有意义)。7.124.0 起旧词 `voided` / `denied` 退役(被具体成因词取代,零别名)。
|
|
188
188
|
*/
|
|
189
189
|
readonly notPendingCause: {
|
|
190
|
-
readonly at: "POST /v1/tool-approvals/:id/respond 404 tool_approval.not_pending cause";
|
|
190
|
+
readonly at: "POST /v1/tool-approvals/:id/respond · GET /v1/tool-approvals/:id 404 tool_approval.not_pending cause";
|
|
191
191
|
readonly members: {
|
|
192
192
|
routing_failure_fail_closed: {
|
|
193
193
|
attr: string;
|
|
@@ -235,6 +235,78 @@ export declare const SELF_MINTED_WIRE: {
|
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
|
+
/**
|
|
239
|
+
* 按问读口 `GET /v1/tool-approvals/:id`(7.133.0 新口)200 体的 `state`:一只 ask 此刻在哪一态(读法与应答口逐条同源)。
|
|
240
|
+
*/
|
|
241
|
+
readonly toolApprovalReadState: {
|
|
242
|
+
readonly at: "GET /v1/tool-approvals/:id 200 state";
|
|
243
|
+
readonly members: {
|
|
244
|
+
pending: {
|
|
245
|
+
attr: string;
|
|
246
|
+
since: string;
|
|
247
|
+
};
|
|
248
|
+
decided: {
|
|
249
|
+
attr: string;
|
|
250
|
+
since: string;
|
|
251
|
+
};
|
|
252
|
+
parked: {
|
|
253
|
+
attr: string;
|
|
254
|
+
since: string;
|
|
255
|
+
};
|
|
256
|
+
void: {
|
|
257
|
+
attr: string;
|
|
258
|
+
since: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* 按问读口 `state:"void"` 的 `cause`:行上记的那个成因词(与晚答 404 `cause`、决断口 410 `cause` 同一列同一张表;行上没写 ⇒ 缺席)。
|
|
264
|
+
*/
|
|
265
|
+
readonly toolApprovalReadVoidCause: {
|
|
266
|
+
readonly at: "GET /v1/tool-approvals/:id 200 state:void cause";
|
|
267
|
+
readonly members: {
|
|
268
|
+
routing_failure_fail_closed: {
|
|
269
|
+
attr: string;
|
|
270
|
+
since: string;
|
|
271
|
+
};
|
|
272
|
+
run_cancelled: {
|
|
273
|
+
attr: string;
|
|
274
|
+
since: string;
|
|
275
|
+
};
|
|
276
|
+
run_exited: {
|
|
277
|
+
attr: string;
|
|
278
|
+
since: string;
|
|
279
|
+
};
|
|
280
|
+
batch_aborted: {
|
|
281
|
+
attr: string;
|
|
282
|
+
since: string;
|
|
283
|
+
};
|
|
284
|
+
batch_sibling_withdrawn: {
|
|
285
|
+
attr: string;
|
|
286
|
+
since: string;
|
|
287
|
+
};
|
|
288
|
+
batch_bound_elsewhere: {
|
|
289
|
+
attr: string;
|
|
290
|
+
since: string;
|
|
291
|
+
};
|
|
292
|
+
adhoc_leg_no_durable_domain: {
|
|
293
|
+
attr: string;
|
|
294
|
+
since: string;
|
|
295
|
+
};
|
|
296
|
+
orphan_ttl_exceeded: {
|
|
297
|
+
attr: string;
|
|
298
|
+
since: string;
|
|
299
|
+
};
|
|
300
|
+
crashed_before_park: {
|
|
301
|
+
attr: string;
|
|
302
|
+
since: string;
|
|
303
|
+
};
|
|
304
|
+
shutdown_before_park: {
|
|
305
|
+
attr: string;
|
|
306
|
+
since: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
};
|
|
238
310
|
/**
|
|
239
311
|
* 活卡结局帧 `tool_approval_complete` 的 additive `cause`(7.124.0):**非人结局在场、人答缺席**。值 = 审计 settle 行 `cause` 的同一个词(一个事实一个读法);
|
|
240
312
|
* 值域 = 非人结局的全部成因词(`SettleCause` = 闭集去掉决断口 409 的四个词)。键是本版新铸的 ⇒ 每个成员的属性格记 `key:cause`。
|
|
@@ -300,6 +372,93 @@ export declare const SELF_MINTED_WIRE: {
|
|
|
300
372
|
};
|
|
301
373
|
};
|
|
302
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* 呈卡族单卡消卡帧 `approval_complete` 的 `cause`(7.133.0 新帧;一条腿一个帧族之后,呈卡腿上的消卡帧):值 = 同一次 settle 判决的同一个词
|
|
377
|
+
* (与 `tool_approval_complete.cause` / 审计 settle 行 `cause` 同值),非人结局在场、人答缺席。帧与键都是本版新上 wire。
|
|
378
|
+
*/
|
|
379
|
+
readonly approvalCompleteCause: {
|
|
380
|
+
readonly at: "approval_complete frame cause";
|
|
381
|
+
readonly members: {
|
|
382
|
+
ttl_expired: {
|
|
383
|
+
attr: string;
|
|
384
|
+
since: string;
|
|
385
|
+
};
|
|
386
|
+
broadcast_lost: {
|
|
387
|
+
attr: string;
|
|
388
|
+
since: string;
|
|
389
|
+
};
|
|
390
|
+
stream_disconnected: {
|
|
391
|
+
attr: string;
|
|
392
|
+
since: string;
|
|
393
|
+
};
|
|
394
|
+
undeliverable: {
|
|
395
|
+
attr: string;
|
|
396
|
+
since: string;
|
|
397
|
+
};
|
|
398
|
+
run_cancelled: {
|
|
399
|
+
attr: string;
|
|
400
|
+
since: string;
|
|
401
|
+
};
|
|
402
|
+
run_exited: {
|
|
403
|
+
attr: string;
|
|
404
|
+
since: string;
|
|
405
|
+
};
|
|
406
|
+
batch_aborted: {
|
|
407
|
+
attr: string;
|
|
408
|
+
since: string;
|
|
409
|
+
};
|
|
410
|
+
batch_sibling_withdrawn: {
|
|
411
|
+
attr: string;
|
|
412
|
+
since: string;
|
|
413
|
+
};
|
|
414
|
+
batch_bound_elsewhere: {
|
|
415
|
+
attr: string;
|
|
416
|
+
since: string;
|
|
417
|
+
};
|
|
418
|
+
routing_failure_fail_closed: {
|
|
419
|
+
attr: string;
|
|
420
|
+
since: string;
|
|
421
|
+
};
|
|
422
|
+
crashed_before_park: {
|
|
423
|
+
attr: string;
|
|
424
|
+
since: string;
|
|
425
|
+
};
|
|
426
|
+
shutdown_before_park: {
|
|
427
|
+
attr: string;
|
|
428
|
+
since: string;
|
|
429
|
+
};
|
|
430
|
+
orphan_ttl_exceeded: {
|
|
431
|
+
attr: string;
|
|
432
|
+
since: string;
|
|
433
|
+
};
|
|
434
|
+
adhoc_leg_no_durable_domain: {
|
|
435
|
+
attr: string;
|
|
436
|
+
since: string;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* 会话标题帧 `session_titled`(7.133.0 新帧;契约 §4a-ttl):标题器把标题写进会话行**之后**,在**这条 run 的活流**(今天 = `POST /v1/tasks/stream`)上自铸的一帧。
|
|
442
|
+
* **只活不存** —— 会话行是标题的唯一真源,账本回放(`GET /v1/runs/:id/events`)读不出它;同步 JSON 腿 / durable 后台腿没有活流,不发。键集 = 帧接口的键
|
|
443
|
+
* (`type` 恒 `"session_titled"`;`sessionId`;`title` = 落进行里的同一个标题,已脱敏 / 已清洗)。无 `eventId` ⇒ 不发 SSE `id:` 行。
|
|
444
|
+
*/
|
|
445
|
+
readonly sessionTitledFrameKey: {
|
|
446
|
+
readonly at: "session_titled frame 键(SSE POST /v1/tasks/stream;live-only,不落账本)";
|
|
447
|
+
readonly members: {
|
|
448
|
+
type: {
|
|
449
|
+
attr: string;
|
|
450
|
+
since: string;
|
|
451
|
+
};
|
|
452
|
+
sessionId: {
|
|
453
|
+
attr: string;
|
|
454
|
+
since: string;
|
|
455
|
+
};
|
|
456
|
+
title: {
|
|
457
|
+
attr: string;
|
|
458
|
+
since: string;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
303
462
|
/** 7.121.0:`GET /health` 自报位 `auth.kinds[]` 的成员(验过的身份来源闭集;这台部署的装配能回的那几个)。 */
|
|
304
463
|
readonly healthAuthKind: {
|
|
305
464
|
readonly at: "GET /health auth.kinds[]";
|
|
@@ -332,6 +491,42 @@ export declare const SELF_MINTED_WIRE: {
|
|
|
332
491
|
};
|
|
333
492
|
};
|
|
334
493
|
};
|
|
494
|
+
/**
|
|
495
|
+
* S-667(7.133.0):`GET /health` 的 `centerIdentityNotice.code` —— 中心凭证换人后的两态通告(最近一条)。词表属主 = `center-config-tier.ts` 的
|
|
496
|
+
* `CENTER_IDENTITY_NOTICE_CODES`(`satisfies Record<…>`:加词而本行没跟 / 多一个词 ⇒ tsc 红);冻结句 `CENTER_IDENTITY_NOTICE_MESSAGE` 进
|
|
497
|
+
* `test/api-notice-text-freeze.test.ts` §8。这两只码不在 core 的 `EngineNotice` 码册里(那是 core 的闭集)—— 它们是本服务自铸的 `/health` 值,契约 §0.4 成文。
|
|
498
|
+
*/
|
|
499
|
+
readonly centerIdentityNotice: {
|
|
500
|
+
readonly at: "GET /health centerIdentityNotice.code";
|
|
501
|
+
readonly members: {
|
|
502
|
+
center_identity_demoted: {
|
|
503
|
+
attr: string;
|
|
504
|
+
since: string;
|
|
505
|
+
};
|
|
506
|
+
center_identity_landed: {
|
|
507
|
+
attr: string;
|
|
508
|
+
since: string;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
/** S-667(7.133.0):`demoted` 通告上的 `retained[]` —— 降档没能降到底的组(世代账组闭集;`satisfies Record<ConfigApplyGroup, …>`)。 */
|
|
513
|
+
readonly centerIdentityNoticeRetained: {
|
|
514
|
+
readonly at: "GET /health centerIdentityNotice.retained[]";
|
|
515
|
+
readonly members: {
|
|
516
|
+
limitsHttp: {
|
|
517
|
+
attr: string;
|
|
518
|
+
since: string;
|
|
519
|
+
};
|
|
520
|
+
approvalGate: {
|
|
521
|
+
attr: string;
|
|
522
|
+
since: string;
|
|
523
|
+
};
|
|
524
|
+
modelPlane: {
|
|
525
|
+
attr: string;
|
|
526
|
+
since: string;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
};
|
|
335
530
|
/** 7.121.0:`GET /health` 自报位 `operator`。 */
|
|
336
531
|
readonly healthOperator: {
|
|
337
532
|
readonly at: "GET /health operator";
|
|
@@ -364,6 +559,127 @@ export declare const SELF_MINTED_WIRE: {
|
|
|
364
559
|
};
|
|
365
560
|
};
|
|
366
561
|
};
|
|
562
|
+
/**
|
|
563
|
+
* `request.field_conflict` 拒体的 `detail.kind`(字段之间互斥 / 互为前置的哪一类;`detail.fields` = 请求体坐标,不在本表 —— 它不是闭集)。
|
|
564
|
+
* 词表属主 = `field-conflict.ts` 的 `FIELD_CONFLICT_KINDS`:`satisfies Record<FieldConflictKind, …>`,加词而本行没跟 / 多一个词 ⇒ tsc 红。
|
|
565
|
+
* 契约附录 A 的 `request.field_conflict` 行逐个列这些词(`test/field-conflict-detail.test.ts` 钉)。
|
|
566
|
+
*/
|
|
567
|
+
readonly fieldConflictKind: {
|
|
568
|
+
readonly at: "400 request.field_conflict detail.kind";
|
|
569
|
+
readonly members: {
|
|
570
|
+
cascade_verify: {
|
|
571
|
+
attr: string;
|
|
572
|
+
since: string;
|
|
573
|
+
};
|
|
574
|
+
image_profile: {
|
|
575
|
+
attr: string;
|
|
576
|
+
since: string;
|
|
577
|
+
};
|
|
578
|
+
resume_anchor: {
|
|
579
|
+
attr: string;
|
|
580
|
+
since: string;
|
|
581
|
+
};
|
|
582
|
+
system_prompt_fold: {
|
|
583
|
+
attr: string;
|
|
584
|
+
since: string;
|
|
585
|
+
};
|
|
586
|
+
file_history_restore: {
|
|
587
|
+
attr: string;
|
|
588
|
+
since: string;
|
|
589
|
+
};
|
|
590
|
+
skills_disabled: {
|
|
591
|
+
attr: string;
|
|
592
|
+
since: string;
|
|
593
|
+
};
|
|
594
|
+
existing_session: {
|
|
595
|
+
attr: string;
|
|
596
|
+
since: string;
|
|
597
|
+
};
|
|
598
|
+
scratchpad_root: {
|
|
599
|
+
attr: string;
|
|
600
|
+
since: string;
|
|
601
|
+
};
|
|
602
|
+
ask_answer: {
|
|
603
|
+
attr: string;
|
|
604
|
+
since: string;
|
|
605
|
+
};
|
|
606
|
+
policy_person_ask: {
|
|
607
|
+
attr: string;
|
|
608
|
+
since: string;
|
|
609
|
+
};
|
|
610
|
+
plan_edit: {
|
|
611
|
+
attr: string;
|
|
612
|
+
since: string;
|
|
613
|
+
};
|
|
614
|
+
plan_mode_after: {
|
|
615
|
+
attr: string;
|
|
616
|
+
since: string;
|
|
617
|
+
};
|
|
618
|
+
bound_call_door: {
|
|
619
|
+
attr: string;
|
|
620
|
+
since: string;
|
|
621
|
+
};
|
|
622
|
+
remember_decision: {
|
|
623
|
+
attr: string;
|
|
624
|
+
since: string;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
* 撞帽拒体的 `reason`(量纲:条数 / 字符数 / 字节数)。词表属主 = `limit-refusal.ts` 的 `LIMIT_REASONS`(量纲 → 词);`satisfies Record<LimitReason, …>`。
|
|
630
|
+
* `over_cap` 自 7.106.0 起在 `settings.permissions.*` 三桶上;`too_long` 自 7.132.0;`too_large`(字节数,只在 413 上)自 7.133.0。坏条目的 `bad_entry` 是另一形(不是帽),不在本集。
|
|
631
|
+
*/
|
|
632
|
+
readonly limitRefusalReason: {
|
|
633
|
+
readonly at: "400 request.field_invalid / 413 request.payload_too_large reason(撞帽的量纲)";
|
|
634
|
+
readonly members: {
|
|
635
|
+
over_cap: {
|
|
636
|
+
attr: string;
|
|
637
|
+
since: string;
|
|
638
|
+
};
|
|
639
|
+
too_long: {
|
|
640
|
+
attr: string;
|
|
641
|
+
since: string;
|
|
642
|
+
};
|
|
643
|
+
too_large: {
|
|
644
|
+
attr: string;
|
|
645
|
+
since: string;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
* 条目问题机读位(拒体 `detail.problems[]` · 受理应答 `warnings[]`)的 `reason` 里**本仓自铸**的词;词表属主 = `entry-problems.ts` 的 `SERVER_ENTRY_PROBLEM_REASONS`,`satisfies Record<ServerEntryProblemReason, …>`。
|
|
651
|
+
* 其余 `reason` 是引擎的词原样(条目读法的原因词、名字判官的判词、规则文法的码),词表属主在 core,不进本表。
|
|
652
|
+
*/
|
|
653
|
+
readonly entryProblemServerReason: {
|
|
654
|
+
readonly at: "400/409/422 detail.problems[].reason · 受理应答 warnings[].reason(本仓自铸的词)";
|
|
655
|
+
readonly members: {
|
|
656
|
+
not_in_roster: {
|
|
657
|
+
attr: string;
|
|
658
|
+
since: string;
|
|
659
|
+
};
|
|
660
|
+
home_unresolvable: {
|
|
661
|
+
attr: string;
|
|
662
|
+
since: string;
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
/**
|
|
667
|
+
* `request.invalid_json`(400)拒体的 `reason`:请求体不是这一口要的 JSON。词表属主 = `http/send.ts` 的 `INVALID_JSON_REASONS`(唯一铸点 `invalidJsonError`);`satisfies Record<InvalidJsonReason, …>`。
|
|
668
|
+
* `not_json` = 体不是合法 JSON(读取器铸;此前这一形无码,表面是 `request.rejected`);`not_object` = 合法 JSON、但这一口要对象(`POST /v1/runs/:id/compact`)。
|
|
669
|
+
*/
|
|
670
|
+
readonly invalidJsonReason: {
|
|
671
|
+
readonly at: "400 request.invalid_json reason(请求体不是这一口要的 JSON)";
|
|
672
|
+
readonly members: {
|
|
673
|
+
not_json: {
|
|
674
|
+
attr: string;
|
|
675
|
+
since: string;
|
|
676
|
+
};
|
|
677
|
+
not_object: {
|
|
678
|
+
attr: string;
|
|
679
|
+
since: string;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
};
|
|
367
683
|
/**
|
|
368
684
|
* 提交幂等(契约 §0.7:幂等 = 资源行上的唯一键)上 wire 的面:同步腿读行重放体的 `replay` 键、两只按键读的读口、
|
|
369
685
|
* `Idempotency-Key` 命中一条读不到 / 不是这次 taskId 所指的行时的 409(7.125.0);同键异体(绑定那一行的请求体与这次不同)的 409(7.126.0)。
|
|
@@ -417,6 +733,10 @@ export declare const SELF_MINTED_WIRE: {
|
|
|
417
733
|
attr: string;
|
|
418
734
|
since: string;
|
|
419
735
|
};
|
|
736
|
+
cowork: {
|
|
737
|
+
attr: string;
|
|
738
|
+
since: string;
|
|
739
|
+
};
|
|
420
740
|
};
|
|
421
741
|
};
|
|
422
742
|
/**
|
|
@@ -432,10 +752,30 @@ export declare const SELF_MINTED_WIRE: {
|
|
|
432
752
|
};
|
|
433
753
|
};
|
|
434
754
|
};
|
|
755
|
+
/**
|
|
756
|
+
* S-527(7.133.0):`GET /v1/config/catalog` 行上**对 `effectiveValue` 的判词位**(闭集 `CatalogValueVerdict`,属主 `config-catalog.ts`;行接口经映射型声明,
|
|
757
|
+
* 每一位只取 `true`)。属性 = 在场律 `present-iff`:只在为真时出键,恒不铸 `false`,缺席 = 没有这件事(老 server 上也缺席 —— 对消费方两者的下一步相同:按值原样渲染)。
|
|
758
|
+
* `satisfies Record<CatalogValueVerdict, …>`:判词位加一员而本表没跟 ⇒ 编译红。`effectiveValueInvalid` 自 7.70.0(S-100)在 wire 上、本版补登记;
|
|
759
|
+
* `effectiveValueWithheld`(url 型行:展示铸点扣下了一段)本版新上。
|
|
760
|
+
*/
|
|
761
|
+
readonly configCatalogValueVerdict: {
|
|
762
|
+
readonly at: "GET /v1/config/catalog rows[] 的判词位(<键> → 在场律)";
|
|
763
|
+
readonly members: {
|
|
764
|
+
effectiveValueInvalid: {
|
|
765
|
+
attr: string;
|
|
766
|
+
since: string;
|
|
767
|
+
};
|
|
768
|
+
effectiveValueWithheld: {
|
|
769
|
+
attr: string;
|
|
770
|
+
since: string;
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
};
|
|
435
774
|
/**
|
|
436
775
|
* `GET /v1/models` 应答体的顶层键(闭集;`src/http/routes/capabilities.ts` 的 `sendJson(res, 200, {…})` 字面量)。属性 = 在场律:`always` 恒在场(零条也出键),`present-iff` 条件成立才出键
|
|
437
776
|
* (缺席不下「无」的结论——也可能是更早的 server)。`since` = 该键上 wire 的起始版本(`models` / `default` / `defaultModel` 在本仓首个 tag 就有)。
|
|
438
777
|
* 7.126.0:`candidateRejected`(S-1457,present-iff:当前生效的配置是因判官整拒了最近一份候选而回落的那一份;契约 §A.1d)。
|
|
778
|
+
* 7.133.0:`modelPlane`(S-1716,always:服务哪张表 / 最近一份目录候选的结局 / 起服路由判官的判决;契约 §A.1d)。
|
|
439
779
|
*/
|
|
440
780
|
readonly modelsResponseKey: {
|
|
441
781
|
readonly at: "GET /v1/models 应答体顶层键(<键> → 在场律)";
|
|
@@ -460,6 +800,10 @@ export declare const SELF_MINTED_WIRE: {
|
|
|
460
800
|
readonly attr: "present-iff";
|
|
461
801
|
readonly since: "7.126.0";
|
|
462
802
|
};
|
|
803
|
+
readonly modelPlane: {
|
|
804
|
+
readonly attr: "always";
|
|
805
|
+
readonly since: "7.133.0";
|
|
806
|
+
};
|
|
463
807
|
};
|
|
464
808
|
};
|
|
465
809
|
/** 本仓在出口对 core 值做的变换(值变、键不变)。 */
|
|
@@ -63,7 +63,7 @@ export const SELF_MINTED_WIRE = {
|
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
notPendingCause: {
|
|
66
|
-
at: "POST /v1/tool-approvals/:id/respond 404 tool_approval.not_pending cause",
|
|
66
|
+
at: "POST /v1/tool-approvals/:id/respond · GET /v1/tool-approvals/:id 404 tool_approval.not_pending cause",
|
|
67
67
|
members: {
|
|
68
68
|
routing_failure_fail_closed: { attr: "-", since: "7.124.0" },
|
|
69
69
|
run_cancelled: { attr: "-", since: "7.124.0" },
|
|
@@ -78,6 +78,30 @@ export const SELF_MINTED_WIRE = {
|
|
|
78
78
|
unknown_or_other_replica: { attr: "-", since: "7.40.0" },
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
|
+
toolApprovalReadState: {
|
|
82
|
+
at: "GET /v1/tool-approvals/:id 200 state",
|
|
83
|
+
members: {
|
|
84
|
+
pending: { attr: "-", since: "7.133.0" },
|
|
85
|
+
decided: { attr: "-", since: "7.133.0" },
|
|
86
|
+
parked: { attr: "-", since: "7.133.0" },
|
|
87
|
+
void: { attr: "-", since: "7.133.0" },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
toolApprovalReadVoidCause: {
|
|
91
|
+
at: "GET /v1/tool-approvals/:id 200 state:void cause",
|
|
92
|
+
members: {
|
|
93
|
+
routing_failure_fail_closed: { attr: "-", since: "7.133.0" },
|
|
94
|
+
run_cancelled: { attr: "-", since: "7.133.0" },
|
|
95
|
+
run_exited: { attr: "-", since: "7.133.0" },
|
|
96
|
+
batch_aborted: { attr: "-", since: "7.133.0" },
|
|
97
|
+
batch_sibling_withdrawn: { attr: "-", since: "7.133.0" },
|
|
98
|
+
batch_bound_elsewhere: { attr: "-", since: "7.133.0" },
|
|
99
|
+
adhoc_leg_no_durable_domain: { attr: "-", since: "7.133.0" },
|
|
100
|
+
orphan_ttl_exceeded: { attr: "-", since: "7.133.0" },
|
|
101
|
+
crashed_before_park: { attr: "-", since: "7.133.0" },
|
|
102
|
+
shutdown_before_park: { attr: "-", since: "7.133.0" },
|
|
103
|
+
},
|
|
104
|
+
},
|
|
81
105
|
toolApprovalCompleteCause: {
|
|
82
106
|
at: "tool_approval_complete frame cause",
|
|
83
107
|
members: {
|
|
@@ -97,6 +121,33 @@ export const SELF_MINTED_WIRE = {
|
|
|
97
121
|
adhoc_leg_no_durable_domain: { attr: "key:cause", since: "7.124.0" },
|
|
98
122
|
},
|
|
99
123
|
},
|
|
124
|
+
approvalCompleteCause: {
|
|
125
|
+
at: "approval_complete frame cause",
|
|
126
|
+
members: {
|
|
127
|
+
ttl_expired: { attr: "key:cause", since: "7.133.0" },
|
|
128
|
+
broadcast_lost: { attr: "key:cause", since: "7.133.0" },
|
|
129
|
+
stream_disconnected: { attr: "key:cause", since: "7.133.0" },
|
|
130
|
+
undeliverable: { attr: "key:cause", since: "7.133.0" },
|
|
131
|
+
run_cancelled: { attr: "key:cause", since: "7.133.0" },
|
|
132
|
+
run_exited: { attr: "key:cause", since: "7.133.0" },
|
|
133
|
+
batch_aborted: { attr: "key:cause", since: "7.133.0" },
|
|
134
|
+
batch_sibling_withdrawn: { attr: "key:cause", since: "7.133.0" },
|
|
135
|
+
batch_bound_elsewhere: { attr: "key:cause", since: "7.133.0" },
|
|
136
|
+
routing_failure_fail_closed: { attr: "key:cause", since: "7.133.0" },
|
|
137
|
+
crashed_before_park: { attr: "key:cause", since: "7.133.0" },
|
|
138
|
+
shutdown_before_park: { attr: "key:cause", since: "7.133.0" },
|
|
139
|
+
orphan_ttl_exceeded: { attr: "key:cause", since: "7.133.0" },
|
|
140
|
+
adhoc_leg_no_durable_domain: { attr: "key:cause", since: "7.133.0" },
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
sessionTitledFrameKey: {
|
|
144
|
+
at: "session_titled frame 键(SSE POST /v1/tasks/stream;live-only,不落账本)",
|
|
145
|
+
members: {
|
|
146
|
+
type: { attr: "-", since: "7.133.0" },
|
|
147
|
+
sessionId: { attr: "-", since: "7.133.0" },
|
|
148
|
+
title: { attr: "-", since: "7.133.0" },
|
|
149
|
+
},
|
|
150
|
+
},
|
|
100
151
|
healthAuthKind: {
|
|
101
152
|
at: "GET /health auth.kinds[]",
|
|
102
153
|
members: {
|
|
@@ -112,6 +163,21 @@ export const SELF_MINTED_WIRE = {
|
|
|
112
163
|
unavailable: { attr: "-", since: "7.121.0" },
|
|
113
164
|
},
|
|
114
165
|
},
|
|
166
|
+
centerIdentityNotice: {
|
|
167
|
+
at: "GET /health centerIdentityNotice.code",
|
|
168
|
+
members: {
|
|
169
|
+
center_identity_demoted: { attr: "-", since: "7.133.0" },
|
|
170
|
+
center_identity_landed: { attr: "-", since: "7.133.0" },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
centerIdentityNoticeRetained: {
|
|
174
|
+
at: "GET /health centerIdentityNotice.retained[]",
|
|
175
|
+
members: {
|
|
176
|
+
limitsHttp: { attr: "-", since: "7.133.0" },
|
|
177
|
+
approvalGate: { attr: "-", since: "7.133.0" },
|
|
178
|
+
modelPlane: { attr: "-", since: "7.133.0" },
|
|
179
|
+
},
|
|
180
|
+
},
|
|
115
181
|
healthOperator: {
|
|
116
182
|
at: "GET /health operator",
|
|
117
183
|
members: {
|
|
@@ -127,6 +193,47 @@ export const SELF_MINTED_WIRE = {
|
|
|
127
193
|
unknown: { attr: "-", since: "7.121.0" },
|
|
128
194
|
},
|
|
129
195
|
},
|
|
196
|
+
fieldConflictKind: {
|
|
197
|
+
at: "400 request.field_conflict detail.kind",
|
|
198
|
+
members: {
|
|
199
|
+
cascade_verify: { attr: "-", since: "7.133.0" },
|
|
200
|
+
image_profile: { attr: "-", since: "7.133.0" },
|
|
201
|
+
resume_anchor: { attr: "-", since: "7.133.0" },
|
|
202
|
+
system_prompt_fold: { attr: "-", since: "7.133.0" },
|
|
203
|
+
file_history_restore: { attr: "-", since: "7.133.0" },
|
|
204
|
+
skills_disabled: { attr: "-", since: "7.133.0" },
|
|
205
|
+
existing_session: { attr: "-", since: "7.133.0" },
|
|
206
|
+
scratchpad_root: { attr: "-", since: "7.133.0" },
|
|
207
|
+
ask_answer: { attr: "-", since: "7.133.0" },
|
|
208
|
+
policy_person_ask: { attr: "-", since: "7.133.0" },
|
|
209
|
+
plan_edit: { attr: "-", since: "7.133.0" },
|
|
210
|
+
plan_mode_after: { attr: "-", since: "7.133.0" },
|
|
211
|
+
bound_call_door: { attr: "-", since: "7.133.0" },
|
|
212
|
+
remember_decision: { attr: "-", since: "7.133.0" },
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
limitRefusalReason: {
|
|
216
|
+
at: "400 request.field_invalid / 413 request.payload_too_large reason(撞帽的量纲)",
|
|
217
|
+
members: {
|
|
218
|
+
over_cap: { attr: "-", since: "7.106.0" },
|
|
219
|
+
too_long: { attr: "-", since: "7.132.0" },
|
|
220
|
+
too_large: { attr: "-", since: "7.133.0" },
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
entryProblemServerReason: {
|
|
224
|
+
at: "400/409/422 detail.problems[].reason · 受理应答 warnings[].reason(本仓自铸的词)",
|
|
225
|
+
members: {
|
|
226
|
+
not_in_roster: { attr: "-", since: "7.133.0" },
|
|
227
|
+
home_unresolvable: { attr: "-", since: "7.133.0" },
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
invalidJsonReason: {
|
|
231
|
+
at: "400 request.invalid_json reason(请求体不是这一口要的 JSON)",
|
|
232
|
+
members: {
|
|
233
|
+
not_json: { attr: "-", since: "7.133.0" },
|
|
234
|
+
not_object: { attr: "-", since: "7.133.0" },
|
|
235
|
+
},
|
|
236
|
+
},
|
|
130
237
|
submitIdempotency: {
|
|
131
238
|
at: "提交幂等(<端点>#<面> → 应答状态)",
|
|
132
239
|
members: {
|
|
@@ -144,6 +251,7 @@ export const SELF_MINTED_WIRE = {
|
|
|
144
251
|
default: { attr: "-", since: "1.214.2" },
|
|
145
252
|
"code-review": { attr: "-", since: "1.214.2" },
|
|
146
253
|
scan: { attr: "-", since: "1.214.2" },
|
|
254
|
+
cowork: { attr: "-", since: "7.133.0" },
|
|
147
255
|
},
|
|
148
256
|
},
|
|
149
257
|
scenarioBodyKey: {
|
|
@@ -152,6 +260,13 @@ export const SELF_MINTED_WIRE = {
|
|
|
152
260
|
repo: { attr: "-", since: "1.214.2" },
|
|
153
261
|
},
|
|
154
262
|
},
|
|
263
|
+
configCatalogValueVerdict: {
|
|
264
|
+
at: "GET /v1/config/catalog rows[] 的判词位(<键> → 在场律)",
|
|
265
|
+
members: {
|
|
266
|
+
effectiveValueInvalid: { attr: "present-iff", since: "7.70.0" },
|
|
267
|
+
effectiveValueWithheld: { attr: "present-iff", since: "7.133.0" },
|
|
268
|
+
},
|
|
269
|
+
},
|
|
155
270
|
modelsResponseKey: {
|
|
156
271
|
at: "GET /v1/models 应答体顶层键(<键> → 在场律)",
|
|
157
272
|
members: {
|
|
@@ -160,6 +275,7 @@ export const SELF_MINTED_WIRE = {
|
|
|
160
275
|
defaultModel: { attr: "always", since: "1.214.2" },
|
|
161
276
|
droppedEntries: { attr: "always", since: "7.123.0" },
|
|
162
277
|
candidateRejected: { attr: "present-iff", since: "7.126.0" },
|
|
278
|
+
modelPlane: { attr: "always", since: "7.133.0" },
|
|
163
279
|
},
|
|
164
280
|
},
|
|
165
281
|
wireValueRule: {
|