@sema-agent/server 7.148.0 → 7.150.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 +551 -9
- package/README.md +17 -2
- package/README.zh-CN.md +5 -1
- package/USAGE.md +126 -68
- package/dist/adoption/wire.d.ts +3 -3
- package/dist/approval-card.d.ts +33 -33
- package/dist/approval-gate-currency.d.ts +1 -1
- package/dist/approval-leg-origin.d.ts +33 -0
- package/dist/approval-leg-origin.js +4 -0
- package/dist/audit.d.ts +1 -1
- package/dist/audit.js +2 -2
- package/dist/auth-bridge.d.ts +9 -1
- package/dist/auth-bridge.js +4 -4
- package/dist/auth-keys.d.ts +10 -1
- package/dist/auth-keys.js +8 -0
- package/dist/background-session-reap.d.ts +1 -1
- package/dist/boot/deferred-sandbox-path-env.d.ts +5 -3
- package/dist/boot/deferred-sandbox-path-env.js +1 -2
- package/dist/boot/execution-env.js +10 -11
- package/dist/boot/execution-lane.d.ts +6 -4
- package/dist/boot/execution-lane.js +3 -1
- package/dist/boot/org-delivery.d.ts +3 -2
- package/dist/boot/parked-revive-gate.d.ts +5 -5
- package/dist/boot/parked-revive-gate.js +2 -3
- package/dist/boot/resolve-spec.d.ts +4 -5
- package/dist/boot/resolve-spec.js +66 -28
- package/dist/boot/retention-lane.d.ts +1 -1
- package/dist/boot/runner-deps.js +3 -1
- package/dist/boot/session-faces.js +21 -21
- package/dist/boot/stage-01-config.d.ts +1 -0
- package/dist/boot/stage-01-config.js +4 -3
- package/dist/boot/stage-02-web-admin-pull.d.ts +1 -0
- package/dist/boot/stage-02-web-admin-pull.js +10 -2
- package/dist/boot/stage-03-store-backend.d.ts +1 -0
- package/dist/boot/stage-03-store-backend.js +4 -4
- package/dist/boot/stage-04-stores.d.ts +1 -0
- package/dist/boot/stage-05-execution-env.d.ts +1 -0
- package/dist/boot/stage-06-runners.d.ts +2 -1
- package/dist/boot/stage-06-runners.js +1 -2
- package/dist/boot/stage-07-capability-layer.d.ts +2 -1
- package/dist/boot/stage-07-capability-layer.js +1 -1
- package/dist/boot/stage-08-reapers.d.ts +2 -1
- package/dist/boot/stage-09-leader.d.ts +2 -1
- package/dist/boot/stage-10-http-server.d.ts +35 -2
- package/dist/boot/stage-10-http-server.js +9 -4
- package/dist/boot/stores.d.ts +3 -0
- package/dist/boot/stores.js +22 -19
- package/dist/boot/web-admin.d.ts +1 -1
- package/dist/capabilities/tool-defer.d.ts +1 -1
- package/dist/capability-facts.d.ts +70 -60
- package/dist/capability-facts.js +45 -49
- package/dist/card-settle-stored-scope.d.ts +56 -0
- package/dist/card-settle-stored-scope.js +27 -0
- package/dist/card-void.d.ts +7 -12
- package/dist/card-void.js +2 -7
- package/dist/config-catalog.d.ts +12 -0
- package/dist/config-catalog.js +37 -33
- package/dist/config-invariants.d.ts +5 -4
- package/dist/config-invariants.js +4 -4
- package/dist/config-types.d.ts +49 -16
- package/dist/config.d.ts +6 -5
- package/dist/config.js +35 -24
- package/dist/context-window-notice.d.ts +31 -0
- package/dist/context-window-notice.js +28 -0
- package/dist/deployment-governance.d.ts +7 -28
- package/dist/deployment-governance.js +1 -14
- package/dist/deployment-shape.d.ts +20 -11
- package/dist/deployment-shape.js +1 -0
- package/dist/device-ws-hub.d.ts +1 -0
- package/dist/device-ws-hub.js +64 -28
- package/dist/device-ws-protocol.d.ts +20 -6
- package/dist/device-ws-protocol.js +9 -2
- package/dist/engine-identity.d.ts +7 -1
- package/dist/engine-identity.js +5 -0
- package/dist/env-name-allowlist-knobs.d.ts +6 -5
- package/dist/env-name-allowlist-knobs.js +5 -0
- package/dist/execution-lane-caps.d.ts +20 -5
- package/dist/execution-lane-caps.js +18 -4
- package/dist/field-conflict.d.ts +2 -2
- package/dist/fleet/engine-signal.d.ts +14 -1
- package/dist/fleet/engine-signal.js +5 -1
- package/dist/fleet/fleet-reconciler.d.ts +1 -1
- package/dist/fleet/serving-lease.d.ts +18 -3
- package/dist/fleet/serving-lease.js +81 -35
- package/dist/fleet-client.d.ts +13 -11
- package/dist/fleet-client.js +53 -33
- package/dist/history-anchor.js +1 -1
- package/dist/hitl-delivery.d.ts +1 -3
- package/dist/hitl-delivery.js +1 -1
- package/dist/hooks/command-spawn.d.ts +7 -2
- package/dist/hooks/command-spawn.js +13 -6
- package/dist/hooks/hook-runner.d.ts +5 -0
- package/dist/hooks/hook-runner.js +11 -7
- package/dist/http/active-run-conflict.d.ts +3 -7
- package/dist/http/active-run-conflict.js +2 -2
- package/dist/http/admission.js +5 -5
- package/dist/http/approval-sweeps.js +5 -3
- package/dist/http/caller-trust.d.ts +2 -2
- package/dist/http/caller-trust.js +3 -3
- package/dist/http/checkpoint-ctx.d.ts +18 -63
- package/dist/http/checkpoint-ctx.js +1 -24
- package/dist/http/claim-heartbeat.d.ts +6 -6
- package/dist/http/claim-heartbeat.js +6 -6
- package/dist/http/claimed-run.d.ts +16 -9
- package/dist/http/claimed-run.js +8 -0
- package/dist/http/dispatch.js +7 -5
- package/dist/http/durable-run-leg.d.ts +8 -1
- package/dist/http/durable-run-leg.js +34 -15
- package/dist/http/execution-context.d.ts +115 -14
- package/dist/http/execution-context.js +130 -40
- package/dist/http/owner-access.d.ts +246 -21
- package/dist/http/owner-access.js +186 -8
- package/dist/http/principal-gate.d.ts +18 -11
- package/dist/http/principal-gate.js +3 -1
- package/dist/http/readiness.d.ts +4 -2
- package/dist/http/resume-ctx-read.d.ts +14 -3
- package/dist/http/resume-ctx-read.js +24 -3
- package/dist/http/resume-legs.d.ts +35 -3
- package/dist/http/resume-legs.js +262 -106
- package/dist/http/route-ctx.d.ts +29 -11
- package/dist/http/routes/a2a-serve.js +17 -14
- package/dist/http/routes/approvals-assistant.d.ts +3 -2
- package/dist/http/routes/approvals-assistant.js +11 -11
- package/dist/http/routes/capabilities.js +5 -4
- package/dist/http/routes/config-catalog.d.ts +1 -1
- package/dist/http/routes/diagnostics.d.ts +3 -1
- package/dist/http/routes/diagnostics.js +30 -5
- package/dist/http/routes/mcp-reconnect.js +2 -2
- package/dist/http/routes/memory-origin.d.ts +1 -1
- package/dist/http/routes/notify-wake.js +2 -3
- package/dist/http/routes/principal-inbox.d.ts +3 -1
- package/dist/http/routes/principal-inbox.js +3 -2
- package/dist/http/routes/projects.d.ts +1 -0
- package/dist/http/routes/projects.js +5 -3
- package/dist/http/routes/retention-ops.d.ts +1 -1
- package/dist/http/routes/run-permission-mode.d.ts +1 -1
- package/dist/http/routes/run-permission-mode.js +2 -2
- package/dist/http/routes/runs.d.ts +1 -1
- package/dist/http/routes/runs.js +33 -37
- package/dist/http/routes/session-memory-sync.js +4 -5
- package/dist/http/routes/session-sync.d.ts +24 -5
- package/dist/http/routes/session-sync.js +45 -37
- package/dist/http/routes/sessions-list.d.ts +1 -1
- package/dist/http/routes/sessions.d.ts +1 -1
- package/dist/http/routes/sessions.js +18 -44
- package/dist/http/routes/tasks.js +136 -101
- package/dist/http/routes/trace-usage.js +14 -14
- package/dist/http/routes/workflows.d.ts +1 -0
- package/dist/http/routes/workflows.js +20 -38
- package/dist/http/server.d.ts +12 -9
- package/dist/http/server.js +35 -6
- package/dist/http/stored-body-replay.d.ts +3 -24
- package/dist/http/stored-body-replay.js +2 -12
- package/dist/http/submit-ctx.d.ts +2 -2
- package/dist/http/submit-ctx.js +5 -5
- package/dist/http/submit-replay.d.ts +15 -2
- package/dist/http/submit-replay.js +10 -4
- package/dist/http/wire-types.d.ts +6 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/dist/leader/endpoint.js +9 -8
- package/dist/leg-facts.d.ts +13 -2
- package/dist/leg-facts.js +2 -0
- package/dist/local-store-declaration.d.ts +54 -0
- package/dist/local-store-declaration.js +59 -0
- package/dist/mcp-assertion-header.d.ts +1 -1
- package/dist/mcp-assertion-header.js +1 -1
- package/dist/mcp-authorization-face.d.ts +18 -14
- package/dist/mcp-authorization-face.js +3 -2
- package/dist/memory-project-layer.js +1 -1
- package/dist/memory-scope.d.ts +4 -4
- package/dist/memory-scope.js +4 -4
- package/dist/memory-store-refusal.d.ts +1 -1
- package/dist/memory-sync-client.js +2 -2
- package/dist/model-context-window.d.ts +50 -11
- package/dist/model-context-window.js +20 -1
- package/dist/model-entry-refusal.d.ts +5 -4
- package/dist/model-entry-refusal.js +17 -3
- package/dist/model-reach-scope.d.ts +2 -1
- package/dist/observability/corrupt-read-seat.d.ts +1 -1
- package/dist/observability/fail-open.d.ts +19 -7
- package/dist/observability/fail-open.js +19 -7
- package/dist/observability/logger.d.ts +7 -0
- package/dist/observability/logger.js +3 -1
- package/dist/observability/metrics.js +1 -1
- package/dist/observability/run-terminal.d.ts +1 -1
- package/dist/observability/run-terminal.js +1 -0
- package/dist/observability/secret-env-scrub.d.ts +1 -1
- package/dist/observability/secret-env-scrub.js +1 -1
- package/dist/org-delivery-gate.d.ts +31 -6
- package/dist/org-delivery-gate.js +7 -4
- package/dist/owner-faces.d.ts +30 -5
- package/dist/owner-faces.js +2 -0
- package/dist/park-row-commit.d.ts +67 -0
- package/dist/park-row-commit.js +76 -0
- package/dist/parked-decide.d.ts +9 -7
- package/dist/parked-decide.js +25 -6
- package/dist/peer-directory.d.ts +1 -1
- package/dist/peer-seat.d.ts +1 -1
- package/dist/peer-seat.js +52 -59
- package/dist/plugins/adoption-log-sql.d.ts +3 -3
- package/dist/plugins/adoption-log-sql.js +19 -19
- package/dist/plugins/approval-ask-store-sql.d.ts +1 -1
- package/dist/plugins/approval-ask-store-sql.js +3 -5
- package/dist/plugins/approval-exemption-skill-cutoff.d.ts +64 -0
- package/dist/plugins/approval-exemption-skill-cutoff.js +122 -0
- package/dist/plugins/approval-exemption-skill-m46.d.ts +0 -6
- package/dist/plugins/approval-exemption-skill-m46.js +6 -10
- package/dist/plugins/approval-exemption-store.d.ts +26 -1
- package/dist/plugins/approval-exemption-store.js +28 -19
- package/dist/plugins/ensure-schema-lock-policy.d.ts +36 -3
- package/dist/plugins/ensure-schema-lock-policy.js +75 -9
- package/dist/plugins/exec-path-law.d.ts +34 -0
- package/dist/plugins/exec-path-law.js +13 -0
- package/dist/plugins/file-run-store.d.ts +22 -9
- package/dist/plugins/file-run-store.js +51 -23
- package/dist/plugins/local-checkpoint-store.d.ts +8 -1
- package/dist/plugins/local-checkpoint-store.js +5 -1
- package/dist/plugins/local-data-root-admission.d.ts +52 -0
- package/dist/plugins/local-data-root-admission.js +100 -0
- package/dist/plugins/local-engine-high-water.d.ts +28 -7
- package/dist/plugins/local-engine-high-water.js +27 -22
- package/dist/plugins/local-session-store.d.ts +134 -49
- package/dist/plugins/local-session-store.js +149 -108
- package/dist/plugins/memory-run-store.d.ts +14 -9
- package/dist/plugins/memory-run-store.js +48 -22
- package/dist/plugins/one-time-migration-marker.d.ts +19 -3
- package/dist/plugins/one-time-migration-marker.js +7 -1
- package/dist/plugins/one-time-migrations.d.ts +110 -59
- package/dist/plugins/one-time-migrations.js +224 -136
- package/dist/plugins/org-delivery-quota-store.d.ts +34 -11
- package/dist/plugins/org-delivery-quota-store.js +29 -14
- package/dist/plugins/permission-rule-store-sql.d.ts +1 -1
- package/dist/plugins/permission-rule-store-sql.js +5 -9
- package/dist/plugins/pg-pool.d.ts +1 -1
- package/dist/plugins/pg-pool.js +14 -12
- package/dist/plugins/posix-shell-fs.js +4 -2
- package/dist/plugins/remote-env-adb.js +3 -2
- package/dist/plugins/remote-env-device.d.ts +3 -2
- package/dist/plugins/remote-env-device.js +8 -6
- package/dist/plugins/remote-env-e2b.d.ts +4 -8
- package/dist/plugins/remote-env-e2b.js +21 -15
- package/dist/plugins/remote-env-host.d.ts +51 -10
- package/dist/plugins/remote-env-host.js +97 -31
- package/dist/plugins/remote-env-k8s.js +7 -4
- package/dist/plugins/remote-env-local-docker.d.ts +6 -3
- package/dist/plugins/remote-env-local-docker.js +11 -25
- package/dist/plugins/remote-env-ssh.js +4 -3
- package/dist/plugins/remote-shell.d.ts +3 -1
- package/dist/plugins/remote-shell.js +3 -3
- package/dist/plugins/replica-registration.d.ts +35 -0
- package/dist/plugins/replica-registration.js +48 -0
- package/dist/plugins/retention-lane-store-sql.d.ts +1 -1
- package/dist/plugins/run-store-sql.d.ts +27 -8
- package/dist/plugins/run-store-sql.js +46 -18
- package/dist/plugins/scenario-prefix-switch-m42.d.ts +8 -12
- package/dist/plugins/scenario-prefix-switch-m42.js +9 -6
- package/dist/plugins/schema-consistency.d.ts +91 -5
- package/dist/plugins/schema-consistency.js +189 -7
- package/dist/plugins/schema-drift-sentence.d.ts +6 -5
- package/dist/plugins/schema-drift-sentence.js +13 -5
- package/dist/plugins/serving-requirement.d.ts +49 -0
- package/dist/plugins/serving-requirement.js +53 -0
- package/dist/plugins/session-placement.d.ts +5 -4
- package/dist/plugins/shell-sentinel-owner-m48.d.ts +22 -0
- package/dist/plugins/shell-sentinel-owner-m48.js +6 -0
- package/dist/plugins/stop-then-start-sentence.d.ts +55 -0
- package/dist/plugins/stop-then-start-sentence.js +51 -0
- package/dist/plugins/store-backend.d.ts +23 -9
- package/dist/plugins/store-backend.js +58 -24
- package/dist/plugins/store-contracts.d.ts +45 -5
- package/dist/plugins/store-contracts.js +19 -0
- package/dist/plugins/tidb-pool.d.ts +11 -6
- package/dist/plugins/tidb-pool.js +22 -12
- package/dist/plugins/workspace-custody.d.ts +44 -0
- package/dist/plugins/workspace-custody.js +47 -0
- package/dist/process-instance.d.ts +3 -0
- package/dist/process-instance.js +7 -0
- package/dist/project-context.d.ts +66 -0
- package/dist/project-context.js +70 -0
- package/dist/project-identity.d.ts +8 -7
- package/dist/project-identity.js +40 -17
- package/dist/project-layer-key.d.ts +13 -2
- package/dist/project-layer-key.js +9 -1
- package/dist/question.d.ts +9 -21
- package/dist/question.js +28 -19
- package/dist/read-deny-floor-notice.d.ts +36 -0
- package/dist/read-deny-floor-notice.js +40 -0
- package/dist/{plain-string-record.d.ts → request-declaration-disposition.d.ts} +9 -23
- package/dist/request-declaration-disposition.js +39 -0
- package/dist/run-cancel-card.d.ts +28 -0
- package/dist/run-cancel-card.js +20 -0
- package/dist/run-cancel-context.d.ts +10 -0
- package/dist/run-cancel-context.js +1 -0
- package/dist/run-local.js +28 -13
- package/dist/runs.d.ts +31 -7
- package/dist/runs.js +34 -16
- package/dist/security.d.ts +3 -3
- package/dist/server-secret-env.d.ts +34 -20
- package/dist/server-secret-env.js +61 -18
- package/dist/session-agent.d.ts +4 -12
- package/dist/session-agent.js +0 -6
- package/dist/session-children-retire.d.ts +6 -3
- package/dist/session-children-retire.js +2 -5
- package/dist/session-incarnation.d.ts +18 -4
- package/dist/session-incarnation.js +4 -1
- package/dist/session-notify-door.d.ts +4 -4
- package/dist/session-notify-door.js +5 -6
- package/dist/session-rules-seat.d.ts +4 -3
- package/dist/session-rules-seat.js +3 -11
- package/dist/session-sync.js +3 -3
- package/dist/session-workspace.d.ts +3 -3
- package/dist/store-admission.d.ts +33 -0
- package/dist/store-admission.js +49 -0
- package/dist/store-posture.d.ts +5 -0
- package/dist/store-posture.js +18 -1
- package/dist/stores-sql/checkpoint-store-sql.d.ts +22 -3
- package/dist/stores-sql/checkpoint-store-sql.js +109 -23
- package/dist/stores-sql/file-history-store-sql.d.ts +1 -1
- package/dist/stores-sql/file-history-store-sql.js +3 -5
- package/dist/stores-sql/retention-store-sql.d.ts +1 -1
- package/dist/stores-sql/tool-result-store-sql.d.ts +1 -1
- package/dist/stores-sql/tool-result-store-sql.js +4 -6
- package/dist/task-a2a.d.ts +3 -8
- package/dist/task-a2a.js +25 -27
- package/dist/task-cwd.d.ts +27 -10
- package/dist/task-cwd.js +3 -0
- package/dist/task-mcp.d.ts +3 -3
- package/dist/task-mcp.js +1 -1
- package/dist/task-settings.d.ts +13 -0
- package/dist/task-settings.js +14 -7
- package/dist/terminal.d.ts +2 -0
- package/dist/terminal.js +21 -6
- package/dist/tool-approval.d.ts +50 -41
- package/dist/tool-approval.js +96 -73
- package/dist/trace/engine-notice-wire.d.ts +38 -21
- package/dist/trace/engine-notice-wire.js +25 -4
- package/dist/trace/ledger-sink.d.ts +3 -1
- package/dist/trace/project.d.ts +8 -5
- package/dist/trace/project.js +11 -9
- package/dist/trace/projection-table.d.ts +33 -2
- package/dist/trace/redact.d.ts +12 -0
- package/dist/trace/redact.js +5 -1
- package/dist/trace/self-minted-wire.d.ts +268 -56
- package/dist/trace/self-minted-wire.js +110 -40
- package/dist/trace/tool-card.d.ts +3 -0
- package/dist/trace/tool-card.js +24 -0
- package/dist/trace/tool-output-media.d.ts +2 -1
- package/dist/unattended-permission-mode.d.ts +1 -1
- package/dist/web-admin-client/apply-effective.d.ts +1 -1
- package/dist/web-admin-client/apply-effective.js +22 -9
- package/dist/web-admin-client/effective-keys.d.ts +1 -1
- package/dist/web-admin-client/skills-mcp.d.ts +1 -1
- package/docs/DEVICE-EXECUTOR-PROTOCOL.md +57 -29
- package/docs/error-text-lexicon.json +317 -0
- package/package.json +4 -2
- package/scripts/embed-minimal.mjs +183 -0
- package/wire-changes/server@7.149.0.json +372 -0
- package/wire-changes/server@7.150.0.json +335 -0
- package/dist/plain-string-record.js +0 -70
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repo": "server",
|
|
3
|
+
"version": "7.150.0",
|
|
4
|
+
"from": "v7.149.0",
|
|
5
|
+
"fromCommit": "4ddd53ff8ba95bf63354b58203d01db51e025795",
|
|
6
|
+
"to": "v7.150.0",
|
|
7
|
+
"generator": "scripts/wire-changes-server.mjs",
|
|
8
|
+
"sources": [
|
|
9
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#A.1",
|
|
10
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#A.1b",
|
|
11
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#A.1h",
|
|
12
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#A.1g",
|
|
13
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#B.1",
|
|
14
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#B.1a",
|
|
15
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#B.2b",
|
|
16
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#B.2",
|
|
17
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#D.3",
|
|
18
|
+
"src/trace/wire-projection-faces.ts",
|
|
19
|
+
"src/trace/self-minted-wire.ts",
|
|
20
|
+
"node_modules/@sema-agent/core/wire-changes",
|
|
21
|
+
"src/trace/core-vocab-wire.ts"
|
|
22
|
+
],
|
|
23
|
+
"added": [
|
|
24
|
+
{
|
|
25
|
+
"id": "A1",
|
|
26
|
+
"source": "capability",
|
|
27
|
+
"member": "projectInheritance",
|
|
28
|
+
"text": "附录 B.1 能力位新增 `projectInheritance`(谓词类 config 依赖)"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "A2",
|
|
32
|
+
"source": "selfMinted.deviceProtocolRevision",
|
|
33
|
+
"member": "5",
|
|
34
|
+
"text": "自铸 GET /v1/capabilities deviceExecutor.protocolVersion 与 device WS challenge 帧的修订号(<修订号> → 它加进结局码闭集的词;零加词的语义修订 → 变更名) 新增 `5`(属性 paths-unfolded;since 7.150.0 = 本版新上 wire)"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "A3",
|
|
38
|
+
"source": "selfMinted.listeningLineKey",
|
|
39
|
+
"member": "boundAddress",
|
|
40
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 新增 `boundAddress`(属性 always;since 7.150.0 = 本版新上 wire)"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "A4",
|
|
44
|
+
"source": "selfMinted.projectRowKey",
|
|
45
|
+
"member": "contentAttestedAt",
|
|
46
|
+
"text": "自铸 GET /v1/projects projects[] 行键 = GET /v1/projects/:id 200 体(<键> → 在场律) 新增 `contentAttestedAt`(属性 present-iff the registration carries the configuration center's content attestation (settings-schema 25.1.0; the time the center's write path last admitted the project's goal / notes / contextItems under the publisher role);since 7.150.0 = 本版新上 wire)"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"registered": [
|
|
50
|
+
{
|
|
51
|
+
"id": "L1",
|
|
52
|
+
"source": "selfMinted.listeningLineKey",
|
|
53
|
+
"member": "bindHost",
|
|
54
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `bindHost`(属性 always;since 1.306.0 —— 早于本版,只是登记)"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "L2",
|
|
58
|
+
"source": "selfMinted.listeningLineKey",
|
|
59
|
+
"member": "bindHostNote",
|
|
60
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `bindHostNote`(属性 present-iff BIND_HOST unset and the bind was narrowed to loopback (unauthenticated write face);since 3.15.0 —— 早于本版,只是登记)"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "L3",
|
|
64
|
+
"source": "selfMinted.listeningLineKey",
|
|
65
|
+
"member": "brain",
|
|
66
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `brain`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "L4",
|
|
70
|
+
"source": "selfMinted.listeningLineKey",
|
|
71
|
+
"member": "breakerState",
|
|
72
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `breakerState`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "L5",
|
|
76
|
+
"source": "selfMinted.listeningLineKey",
|
|
77
|
+
"member": "costQuota",
|
|
78
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `costQuota`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "L6",
|
|
82
|
+
"source": "selfMinted.listeningLineKey",
|
|
83
|
+
"member": "instanceId",
|
|
84
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `instanceId`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "L7",
|
|
88
|
+
"source": "selfMinted.listeningLineKey",
|
|
89
|
+
"member": "maxPrincipalCostUsd",
|
|
90
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `maxPrincipalCostUsd`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "L8",
|
|
94
|
+
"source": "selfMinted.listeningLineKey",
|
|
95
|
+
"member": "memory",
|
|
96
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `memory`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "L9",
|
|
100
|
+
"source": "selfMinted.listeningLineKey",
|
|
101
|
+
"member": "model",
|
|
102
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `model`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "L10",
|
|
106
|
+
"source": "selfMinted.listeningLineKey",
|
|
107
|
+
"member": "otel",
|
|
108
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `otel`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "L11",
|
|
112
|
+
"source": "selfMinted.listeningLineKey",
|
|
113
|
+
"member": "perModelKeys",
|
|
114
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `perModelKeys`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "L12",
|
|
118
|
+
"source": "selfMinted.listeningLineKey",
|
|
119
|
+
"member": "port",
|
|
120
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `port`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "L13",
|
|
124
|
+
"source": "selfMinted.listeningLineKey",
|
|
125
|
+
"member": "rateLimit",
|
|
126
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `rateLimit`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "L14",
|
|
130
|
+
"source": "selfMinted.listeningLineKey",
|
|
131
|
+
"member": "rateLimitPerMin",
|
|
132
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `rateLimitPerMin`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "L15",
|
|
136
|
+
"source": "selfMinted.listeningLineKey",
|
|
137
|
+
"member": "sealedModelKeys",
|
|
138
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `sealedModelKeys`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "L16",
|
|
142
|
+
"source": "selfMinted.listeningLineKey",
|
|
143
|
+
"member": "sealedPoisonedModels",
|
|
144
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `sealedPoisonedModels`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "L17",
|
|
148
|
+
"source": "selfMinted.listeningLineKey",
|
|
149
|
+
"member": "session",
|
|
150
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `session`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "L18",
|
|
154
|
+
"source": "selfMinted.listeningLineKey",
|
|
155
|
+
"member": "toolResultStore",
|
|
156
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `toolResultStore`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "L19",
|
|
160
|
+
"source": "selfMinted.listeningLineKey",
|
|
161
|
+
"member": "workflowRunStore",
|
|
162
|
+
"text": "自铸 stdout 启动协议行 listening(<键> → 在场律) 登记 `workflowRunStore`(属性 always;since 1.214.2 —— 早于本版,只是登记)"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": "L20",
|
|
166
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
167
|
+
"member": "GET /v1/capabilities/mcp#servers[].authorization",
|
|
168
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 登记 `GET /v1/capabilities/mcp#servers[].authorization`(属性 present-iff errorCode unauthorized;since 7.138.0 —— 早于本版,只是登记)"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "L21",
|
|
172
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
173
|
+
"member": "GET /v1/runs/:id/events#tool_end.structured.authorization",
|
|
174
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 登记 `GET /v1/runs/:id/events#tool_end.structured.authorization`(属性 present-iff structured.code unauthorized and reason in the closed set; members = reason;since 7.138.0 —— 早于本版,只是登记)"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"id": "L22",
|
|
178
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
179
|
+
"member": "GET /v1/sessions/:id#messages[].details.authorization",
|
|
180
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 登记 `GET /v1/sessions/:id#messages[].details.authorization`(属性 present-iff details.code unauthorized;since 7.138.0 —— 早于本版,只是登记)"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": "L23",
|
|
184
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
185
|
+
"member": "GET /v1/sessions/:id/mcp#lastLegMcp.mcp[].authorization",
|
|
186
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 登记 `GET /v1/sessions/:id/mcp#lastLegMcp.mcp[].authorization`(属性 present-iff errorCode unauthorized;since 7.138.0 —— 早于本版,只是登记)"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": "L24",
|
|
190
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
191
|
+
"member": "POST /v1/capabilities/mcp/probe#servers[].authorization",
|
|
192
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 登记 `POST /v1/capabilities/mcp/probe#servers[].authorization`(属性 present-iff errorCode unauthorized;since 7.138.0 —— 早于本版,只是登记)"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "L25",
|
|
196
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
197
|
+
"member": "SSE tool_end#structured.authorization",
|
|
198
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 登记 `SSE tool_end#structured.authorization`(属性 present-iff structured.code unauthorized and reason in the closed set; members = reason;since 7.138.0 —— 早于本版,只是登记)"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"excluded": [],
|
|
202
|
+
"removed": [
|
|
203
|
+
{
|
|
204
|
+
"id": "R1",
|
|
205
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
206
|
+
"member": "GET /v1/runs/:id/events#tool_end.structured.authorization(reason 以外的成员)",
|
|
207
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 于本版退役 `GET /v1/runs/:id/events#tool_end.structured.authorization(reason 以外的成员)`(原属性 card members passed through the text redactor (resourceMetadataUrl, a custom card's own members);自 7.138.0 起在 wire 上,until 7.150.0 = 本版)"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "R2",
|
|
211
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
212
|
+
"member": "GET /v1/sessions/:id#messages[].details.authorization.resourceMetadataUrl",
|
|
213
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 于本版退役 `GET /v1/sessions/:id#messages[].details.authorization.resourceMetadataUrl`(原属性 remote-claimed URL from the endpoint's challenge (deep-scrubbed text);自 7.138.0 起在 wire 上,until 7.150.0 = 本版)"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": "R3",
|
|
217
|
+
"source": "selfMinted.mcpAuthorizationKey",
|
|
218
|
+
"member": "SSE tool_end#structured.authorization(reason 以外的成员)",
|
|
219
|
+
"text": "自铸 MCP 授权记录 authorization 的出现面(<面>#<键> → 在场律) 于本版退役 `SSE tool_end#structured.authorization(reason 以外的成员)`(原属性 card members passed through the text redactor (resourceMetadataUrl, a custom card's own members);自 7.138.0 起在 wire 上,until 7.150.0 = 本版)"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"changed": [
|
|
223
|
+
{
|
|
224
|
+
"id": "C1",
|
|
225
|
+
"source": "engineNotice",
|
|
226
|
+
"member": "mcp.authorization_required",
|
|
227
|
+
"text": "附录 D.3 engine_notice 码 `mcp.authorization_required` 的detail:`{ server, reason, authorizeUrl?, principal?, sessionId, runId }` —— `reason` ∈ `rejected`(401)/ `scope`(403 `insufficient_scope`)/ `none`(授权座没有这位用户的授权),闭集属主 core,server echo-only;`authorizeUrl` 只来自部署的授权座(本部署今天没有授权座 ⇒ 恒缺席,句子指向连接器设置) → `{ server, reason, authorizeUrl?, principal?, sessionId, runId }` —— `reason` ∈ `rejected`(401)/ `scope`(403 `insufficient_scope`)/ `none`(对端座答这位用户未授权),闭集属主 core;`reason` / `authorizeUrl` 是 MCP 授权记录的成员,经与状态行同一张处置表出门(结构位:不过 detail 的自由文本消毒与截断;词出闭集 ⇒ 记录成员整组缺席);`authorizeUrl` 只来自部署的对端座,处置表今天不放行 ⇒ 恒缺席,句子指向连接器设置"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "C2",
|
|
231
|
+
"source": "selfMinted.fieldConflictReason",
|
|
232
|
+
"member": "scratchpad_root",
|
|
233
|
+
"text": "自铸 400 / 409 / 422 request.field_conflict reason `scratchpad_root` 的属性:- → fields = cwd (sent) or projectId (inherited from the project), then scratchpadDir when the request's own covers it(since 7.150.0)"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "C3",
|
|
237
|
+
"source": "selfMinted.fieldConflictReason",
|
|
238
|
+
"member": "system_prompt_fold",
|
|
239
|
+
"text": "自铸 400 / 409 / 422 request.field_conflict reason `system_prompt_fold` 的属性:- → fields in fold order from appendSystemPrompt / projectId (the inherited project brief) / settings.outputStyle; count / cap(since 7.150.0)"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"narrowed": [],
|
|
243
|
+
"closedSetMembers": [
|
|
244
|
+
{
|
|
245
|
+
"set": "capability",
|
|
246
|
+
"at": [
|
|
247
|
+
"docs/ASSISTANT-WIRE-CONTRACT.md#B.1"
|
|
248
|
+
],
|
|
249
|
+
"added": [
|
|
250
|
+
"projectInheritance"
|
|
251
|
+
],
|
|
252
|
+
"registered": [],
|
|
253
|
+
"removed": [],
|
|
254
|
+
"breaking": false
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"set": "selfMinted.deviceProtocolRevision",
|
|
258
|
+
"at": [
|
|
259
|
+
"src/trace/self-minted-wire.ts#deviceProtocolRevision"
|
|
260
|
+
],
|
|
261
|
+
"added": [
|
|
262
|
+
"5"
|
|
263
|
+
],
|
|
264
|
+
"registered": [],
|
|
265
|
+
"removed": [],
|
|
266
|
+
"breaking": false
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"set": "selfMinted.listeningLineKey",
|
|
270
|
+
"at": [
|
|
271
|
+
"src/trace/self-minted-wire.ts#listeningLineKey"
|
|
272
|
+
],
|
|
273
|
+
"added": [
|
|
274
|
+
"boundAddress"
|
|
275
|
+
],
|
|
276
|
+
"registered": [
|
|
277
|
+
"bindHost",
|
|
278
|
+
"bindHostNote",
|
|
279
|
+
"brain",
|
|
280
|
+
"breakerState",
|
|
281
|
+
"costQuota",
|
|
282
|
+
"instanceId",
|
|
283
|
+
"maxPrincipalCostUsd",
|
|
284
|
+
"memory",
|
|
285
|
+
"model",
|
|
286
|
+
"otel",
|
|
287
|
+
"perModelKeys",
|
|
288
|
+
"port",
|
|
289
|
+
"rateLimit",
|
|
290
|
+
"rateLimitPerMin",
|
|
291
|
+
"sealedModelKeys",
|
|
292
|
+
"sealedPoisonedModels",
|
|
293
|
+
"session",
|
|
294
|
+
"toolResultStore",
|
|
295
|
+
"workflowRunStore"
|
|
296
|
+
],
|
|
297
|
+
"removed": [],
|
|
298
|
+
"breaking": false
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"set": "selfMinted.mcpAuthorizationKey",
|
|
302
|
+
"at": [
|
|
303
|
+
"src/trace/self-minted-wire.ts#mcpAuthorizationKey"
|
|
304
|
+
],
|
|
305
|
+
"added": [],
|
|
306
|
+
"registered": [
|
|
307
|
+
"GET /v1/capabilities/mcp#servers[].authorization",
|
|
308
|
+
"GET /v1/runs/:id/events#tool_end.structured.authorization",
|
|
309
|
+
"GET /v1/sessions/:id#messages[].details.authorization",
|
|
310
|
+
"GET /v1/sessions/:id/mcp#lastLegMcp.mcp[].authorization",
|
|
311
|
+
"POST /v1/capabilities/mcp/probe#servers[].authorization",
|
|
312
|
+
"SSE tool_end#structured.authorization"
|
|
313
|
+
],
|
|
314
|
+
"removed": [
|
|
315
|
+
"GET /v1/runs/:id/events#tool_end.structured.authorization(reason 以外的成员)",
|
|
316
|
+
"GET /v1/sessions/:id#messages[].details.authorization.resourceMetadataUrl",
|
|
317
|
+
"SSE tool_end#structured.authorization(reason 以外的成员)"
|
|
318
|
+
],
|
|
319
|
+
"breaking": true
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"set": "selfMinted.projectRowKey",
|
|
323
|
+
"at": [
|
|
324
|
+
"src/trace/self-minted-wire.ts#projectRowKey"
|
|
325
|
+
],
|
|
326
|
+
"added": [
|
|
327
|
+
"contentAttestedAt"
|
|
328
|
+
],
|
|
329
|
+
"registered": [],
|
|
330
|
+
"removed": [],
|
|
331
|
+
"breaking": false
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"breaking": 3
|
|
335
|
+
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { describeValueShape } from "@sema-agent/settings-schema";
|
|
2
|
-
const PROTO_MEMBER_FAULT = 'no member of a declaration may be named "__proto__"';
|
|
3
|
-
export function readPlainStringRecord(v) {
|
|
4
|
-
if (v === null || typeof v !== "object" || Array.isArray(v))
|
|
5
|
-
return { ok: false, fault: v === null ? "got null" : Array.isArray(v) ? "got an array" : `got a ${typeof v}` };
|
|
6
|
-
const proto = Object.getPrototypeOf(v);
|
|
7
|
-
if (proto !== Object.prototype && proto !== null)
|
|
8
|
-
return { ok: false, fault: "got an object that is not plain data (a class instance, a Map, process.env, or a record built on a prototype; copy it into a plain object)" };
|
|
9
|
-
const record = {};
|
|
10
|
-
const stripped = [];
|
|
11
|
-
for (const name of Object.getOwnPropertyNames(v)) {
|
|
12
|
-
const d = Object.getOwnPropertyDescriptor(v, name);
|
|
13
|
-
let value;
|
|
14
|
-
let unreadable = false;
|
|
15
|
-
try {
|
|
16
|
-
value = d === undefined ? undefined : Object.hasOwn(d, "value") ? d.value : d.get === undefined ? undefined : Reflect.apply(d.get, v, []);
|
|
17
|
-
}
|
|
18
|
-
catch {
|
|
19
|
-
unreadable = true;
|
|
20
|
-
}
|
|
21
|
-
if (unreadable || typeof value !== "string") {
|
|
22
|
-
const valueFault = unreadable ? "could not be read (its getter threw)" : `must be a string — got ${describeValueShape(value)}`;
|
|
23
|
-
return { ok: false, fault: name === "__proto__" ? `is not allowed (${PROTO_MEMBER_FAULT}) and its value ${valueFault}` : valueFault, member: name };
|
|
24
|
-
}
|
|
25
|
-
if (name === "__proto__")
|
|
26
|
-
stripped.push({ name, fault: PROTO_MEMBER_FAULT });
|
|
27
|
-
else
|
|
28
|
-
record[name] = value;
|
|
29
|
-
}
|
|
30
|
-
return { ok: true, record, stripped };
|
|
31
|
-
}
|
|
32
|
-
export function declarationKeys(table) {
|
|
33
|
-
return Object.freeze(Object.keys(table));
|
|
34
|
-
}
|
|
35
|
-
export function splitDeclaration(declaration, table) {
|
|
36
|
-
const dispositions = table;
|
|
37
|
-
const engine = {};
|
|
38
|
-
let pieces;
|
|
39
|
-
let seatSeen = false;
|
|
40
|
-
for (const [key, value] of Object.entries(declaration)) {
|
|
41
|
-
if (value === undefined)
|
|
42
|
-
continue;
|
|
43
|
-
const disposition = Object.hasOwn(dispositions, key) ? dispositions[key] : undefined;
|
|
44
|
-
switch (disposition) {
|
|
45
|
-
case "engine":
|
|
46
|
-
engine[key] = value;
|
|
47
|
-
break;
|
|
48
|
-
case "seat": {
|
|
49
|
-
if (seatSeen)
|
|
50
|
-
throw new Error("request declaration: two members are marked as pieces in one disposition table");
|
|
51
|
-
seatSeen = true;
|
|
52
|
-
const record = value;
|
|
53
|
-
if (Object.keys(record).length > 0)
|
|
54
|
-
pieces = record;
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
case "withheld":
|
|
58
|
-
break;
|
|
59
|
-
case undefined:
|
|
60
|
-
throw new Error(`request declaration: a member the disposition table does not classify (${JSON.stringify(key.slice(0, 40))})`);
|
|
61
|
-
default: {
|
|
62
|
-
const unknownDisposition = disposition;
|
|
63
|
-
void unknownDisposition;
|
|
64
|
-
throw new Error("request declaration: a disposition outside the closed set");
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return { engine: engine, ...(pieces === undefined ? {} : { pieces }) };
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=plain-string-record.js.map
|