@piagent/platform 1.3.0 → 1.4.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/CHANGELOG.md +56 -3
- package/README.md +3 -3
- package/architecture/layers.json +96 -1
- package/docs/README.md +1 -0
- package/docs/architecture.md +1 -0
- package/docs/authority-manifest.md +1 -0
- package/docs/auto-delegation-policy.md +1 -0
- package/docs/capability-packs.md +10 -2
- package/docs/command-reference-vietnamese.md +5 -4
- package/docs/context-engine.md +1 -0
- package/docs/context-window-policy.md +1 -0
- package/docs/distribution-standard.md +8 -7
- package/docs/herdr-workflow.md +1 -0
- package/docs/mcp-and-tools.md +14 -9
- package/docs/memory-policy.md +1 -0
- package/docs/model-options.md +1 -0
- package/docs/oauth-providers.md +1 -0
- package/docs/operator-manual-vietnamese.md +15 -12
- package/docs/package-architecture-notes.md +1 -0
- package/docs/project-adapters.md +1 -0
- package/docs/project-onboarding.md +1 -0
- package/docs/publishing-for-teams.md +1 -0
- package/docs/quality-benchmark.md +1 -0
- package/docs/quickstart-vietnamese.md +3 -2
- package/docs/release-install-policy.md +11 -7
- package/docs/runtime-harness-standard.md +1 -0
- package/docs/runtime-policy-design.md +1 -0
- package/docs/runtime-quality-baseline.md +1 -0
- package/docs/security-redaction-benchmark.md +1 -0
- package/docs/security-threat-model.md +2 -1
- package/docs/subagent-orchestration-capabilities.md +1 -0
- package/docs/subagents-and-multiagent.md +1 -0
- package/docs/task-implementation-contract.md +1 -0
- package/docs/task-lifecycle-vietnamese.md +1 -0
- package/docs/team-onboarding.md +3 -2
- package/docs/third-party-neutrality.md +26 -0
- package/docs/usage-observability.md +1 -0
- package/docs/vercel-docs-site.md +1 -0
- package/docs/workflow-recipes.md +1 -0
- package/docs-site/architecture.html +1 -1
- package/docs-site/benchmark.html +1 -1
- package/docs-site/commands.html +1 -1
- package/docs-site/context-engine.html +1 -1
- package/docs-site/en/architecture.html +1 -1
- package/docs-site/en/benchmark.html +1 -1
- package/docs-site/en/commands.html +1 -1
- package/docs-site/en/context-engine.html +1 -1
- package/docs-site/en/index.html +1 -1
- package/docs-site/en/mcp-approval.html +1 -1
- package/docs-site/en/mcp-auth.html +1 -1
- package/docs-site/en/mcp-servers.html +1 -1
- package/docs-site/en/mcp.html +1 -1
- package/docs-site/en/permissions.html +1 -1
- package/docs-site/en/profiles.html +1 -1
- package/docs-site/en/quickstart.html +1 -1
- package/docs-site/en/runtime.html +1 -1
- package/docs-site/en/scope.html +1 -1
- package/docs-site/en/security.html +1 -1
- package/docs-site/en/team.html +1 -1
- package/docs-site/en/whats-new.html +1 -1
- package/docs-site/en/workflows.html +1 -1
- package/docs-site/index.html +1 -1
- package/docs-site/mcp-approval.html +1 -1
- package/docs-site/mcp-auth.html +1 -1
- package/docs-site/mcp-servers.html +1 -1
- package/docs-site/mcp.html +1 -1
- package/docs-site/permissions.html +1 -1
- package/docs-site/profiles.html +1 -1
- package/docs-site/quickstart.html +1 -1
- package/docs-site/runtime.html +1 -1
- package/docs-site/scope.html +1 -1
- package/docs-site/security.html +1 -1
- package/docs-site/team.html +1 -1
- package/docs-site/whats-new.html +1 -1
- package/docs-site/workflows.html +1 -1
- package/evals/fixtures/mutation-provenance-record.invalid.json +17 -0
- package/evals/fixtures/mutation-provenance-record.valid.json +27 -0
- package/evals/fixtures/piagent-webui/approval-v1.invalid.json +54 -0
- package/evals/fixtures/piagent-webui/approval-v1.valid.json +58 -0
- package/evals/fixtures/piagent-webui/attachment-v1.invalid.json +25 -0
- package/evals/fixtures/piagent-webui/attachment-v1.valid.json +25 -0
- package/evals/fixtures/piagent-webui/capabilities-v1.invalid.json +51 -0
- package/evals/fixtures/piagent-webui/capabilities-v1.valid.json +122 -0
- package/evals/fixtures/piagent-webui/commit-summary-v1.invalid.json +10 -0
- package/evals/fixtures/piagent-webui/commit-summary-v1.valid.json +25 -0
- package/evals/fixtures/piagent-webui/control-command-v1.invalid.json +37 -0
- package/evals/fixtures/piagent-webui/control-command-v1.valid.json +35 -0
- package/evals/fixtures/piagent-webui/diff-v1.invalid.json +13 -0
- package/evals/fixtures/piagent-webui/diff-v1.valid.json +141 -0
- package/evals/fixtures/piagent-webui/gateway-capabilities-v1.invalid.json +35 -0
- package/evals/fixtures/piagent-webui/gateway-capabilities-v1.valid.json +35 -0
- package/evals/fixtures/piagent-webui/gateway-protocol-v1.invalid.json +14 -0
- package/evals/fixtures/piagent-webui/gateway-protocol-v1.valid.json +14 -0
- package/evals/fixtures/piagent-webui/handoff-history-v1.invalid.json +16 -0
- package/evals/fixtures/piagent-webui/handoff-history-v1.valid.json +16 -0
- package/evals/fixtures/piagent-webui/model-catalog-v1.invalid.json +31 -0
- package/evals/fixtures/piagent-webui/model-catalog-v1.valid.json +43 -0
- package/evals/fixtures/piagent-webui/queue-v1.invalid.json +29 -0
- package/evals/fixtures/piagent-webui/queue-v1.valid.json +44 -0
- package/evals/fixtures/piagent-webui/recovery-history-v1.invalid.json +17 -0
- package/evals/fixtures/piagent-webui/recovery-history-v1.valid.json +20 -0
- package/evals/fixtures/piagent-webui/release-monitor-v1.invalid.json +12 -0
- package/evals/fixtures/piagent-webui/release-monitor-v1.valid.json +29 -0
- package/evals/fixtures/piagent-webui/review-state-v1.invalid.json +25 -0
- package/evals/fixtures/piagent-webui/review-state-v1.valid.json +38 -0
- package/evals/fixtures/piagent-webui/runtime-event-v2.invalid.json +49 -0
- package/evals/fixtures/piagent-webui/runtime-event-v2.valid.json +49 -0
- package/evals/fixtures/piagent-webui/session-catalog-v1.invalid.json +17 -0
- package/evals/fixtures/piagent-webui/session-catalog-v1.valid.json +58 -0
- package/evals/fixtures/piagent-webui/session-command-v1.invalid.json +19 -0
- package/evals/fixtures/piagent-webui/session-command-v1.valid.json +19 -0
- package/evals/fixtures/piagent-webui/snapshot-v1.invalid.json +5 -0
- package/evals/fixtures/piagent-webui/snapshot-v1.valid.json +191 -0
- package/evals/fixtures/piagent-webui/source-change-v1.invalid.json +57 -0
- package/evals/fixtures/piagent-webui/source-change-v1.valid.json +98 -0
- package/evals/fixtures/piagent-webui/source-mutation-v1.invalid.json +19 -0
- package/evals/fixtures/piagent-webui/source-mutation-v1.valid.json +38 -0
- package/evals/fixtures/piagent-webui/source-revert-v1.invalid.json +20 -0
- package/evals/fixtures/piagent-webui/source-revert-v1.valid.json +62 -0
- package/evals/fixtures/piagent-webui/subagent-tree-v1.invalid.json +26 -0
- package/evals/fixtures/piagent-webui/subagent-tree-v1.valid.json +39 -0
- package/evals/fixtures/piagent-webui/task-index-v1.invalid.json +15 -0
- package/evals/fixtures/piagent-webui/task-index-v1.valid.json +15 -0
- package/evals/fixtures/piagent-webui/task-timeline-v1.invalid.json +14 -0
- package/evals/fixtures/piagent-webui/task-timeline-v1.valid.json +16 -0
- package/evals/fixtures/piagent-webui/transcript-v1.invalid.json +35 -0
- package/evals/fixtures/piagent-webui/transcript-v1.valid.json +55 -0
- package/evals/fixtures/task-baseline-manifest.invalid.json +16 -0
- package/evals/fixtures/task-baseline-manifest.valid.json +41 -0
- package/evals/fixtures/verifier-file-snapshot.invalid.json +21 -0
- package/evals/fixtures/verifier-file-snapshot.valid.json +21 -0
- package/package.json +30 -3
- package/packages/piagent-core/benchmark/benchmark-candidate.d.ts +1 -0
- package/packages/piagent-core/benchmark/benchmark-forensics.d.ts +1 -0
- package/packages/piagent-core/benchmark/benchmark-ledger.d.ts +4 -0
- package/packages/piagent-core/benchmark/benchmark-record-validation.d.ts +1 -0
- package/packages/piagent-core/benchmark/benchmark-runtime.d.ts +1 -0
- package/packages/piagent-core/capabilities/capability-core.js +2 -2
- package/packages/piagent-core/capabilities/capability-verification-cache.js +280 -0
- package/packages/piagent-core/capabilities/runtime-integrity.js +153 -1
- package/packages/piagent-core/extensions/document-intake.ts +24 -10
- package/packages/piagent-core/extensions/piagent-guard.ts +90 -73
- package/packages/piagent-core/extensions/redaction-core.d.ts +2 -0
- package/packages/piagent-core/extensions/state-retention.js +77 -44
- package/packages/piagent-core/extensions/task-journal.js +30 -1
- package/packages/piagent-core/extensions/task-state.js +33 -36
- package/packages/piagent-core/mcp/mcp-server-catalog.js +5 -5
- package/packages/piagent-core/package.json +1 -1
- package/packages/piagent-core/runtime/hooks/session-start-hook.ts +2 -2
- package/packages/piagent-core/runtime/hooks/tool-call-hook.ts +5 -2
- package/packages/piagent-core/runtime/hooks/tool-result-hook.ts +20 -19
- package/packages/piagent-core/runtime/hooks/tool-result-metadata.ts +13 -0
- package/packages/piagent-core/runtime/input/chat-images.ts +2 -2
- package/packages/piagent-core/runtime/inspection/activity-event-adapter.ts +94 -0
- package/packages/piagent-core/runtime/inspection/approval-broker.ts +318 -0
- package/packages/piagent-core/runtime/inspection/commit-summary-projection.ts +59 -0
- package/packages/piagent-core/runtime/inspection/context-telemetry-inspection.ts +37 -0
- package/packages/piagent-core/runtime/inspection/criteria-links.ts +295 -0
- package/packages/piagent-core/runtime/inspection/diff-projection.ts +499 -0
- package/packages/piagent-core/runtime/inspection/git-filter-safety.ts +38 -0
- package/packages/piagent-core/runtime/inspection/git-numstat-adapter.ts +71 -0
- package/packages/piagent-core/runtime/inspection/git-status-adapter.ts +493 -0
- package/packages/piagent-core/runtime/inspection/git-tree-adapter.ts +108 -0
- package/packages/piagent-core/runtime/inspection/mcp-control.ts +10 -0
- package/packages/piagent-core/runtime/inspection/mutation-provenance-contract.ts +131 -0
- package/packages/piagent-core/runtime/inspection/mutation-provenance-recorder.ts +48 -0
- package/packages/piagent-core/runtime/inspection/mutation-provenance-store.ts +161 -0
- package/packages/piagent-core/runtime/inspection/project-runtime-inspection.ts +36 -0
- package/packages/piagent-core/runtime/inspection/review-state-contract.ts +108 -0
- package/packages/piagent-core/runtime/inspection/review-state-projection.ts +93 -0
- package/packages/piagent-core/runtime/inspection/review-state-store.ts +112 -0
- package/packages/piagent-core/runtime/inspection/runtime-event-store.ts +262 -0
- package/packages/piagent-core/runtime/inspection/same-process-bridge-proof.ts +103 -0
- package/packages/piagent-core/runtime/inspection/source-change-projection.ts +471 -0
- package/packages/piagent-core/runtime/inspection/source-evidence-contract.ts +139 -0
- package/packages/piagent-core/runtime/inspection/source-evidence-store.ts +315 -0
- package/packages/piagent-core/runtime/inspection/source-handoff-store.ts +70 -0
- package/packages/piagent-core/runtime/inspection/source-inspection-plan.ts +34 -0
- package/packages/piagent-core/runtime/inspection/source-mutation-projection.ts +164 -0
- package/packages/piagent-core/runtime/inspection/source-mutation-store.ts +168 -0
- package/packages/piagent-core/runtime/inspection/source-open-target.ts +38 -0
- package/packages/piagent-core/runtime/inspection/source-revert-projection.ts +147 -0
- package/packages/piagent-core/runtime/inspection/task-baseline-start-capture.ts +22 -0
- package/packages/piagent-core/runtime/inspection/task-compaction-history.ts +160 -0
- package/packages/piagent-core/runtime/inspection/task-control-journal.ts +131 -0
- package/packages/piagent-core/runtime/inspection/task-handoff-history.ts +95 -0
- package/packages/piagent-core/runtime/inspection/task-provenance-projection.ts +60 -0
- package/packages/piagent-core/runtime/inspection/task-recovery-timeline.ts +88 -0
- package/packages/piagent-core/runtime/inspection/task-run-index.ts +87 -0
- package/packages/piagent-core/runtime/inspection/task-source-projection.ts +401 -0
- package/packages/piagent-core/runtime/inspection/task-subagent-tree.ts +101 -0
- package/packages/piagent-core/runtime/inspection/text-diff.ts +60 -0
- package/packages/piagent-core/runtime/inspection/verifier-snapshot-contract.ts +114 -0
- package/packages/piagent-core/runtime/inspection/verifier-snapshot-store.ts +189 -0
- package/packages/piagent-core/runtime/inspection/webui-snapshot.ts +320 -0
- package/packages/piagent-core/runtime/inspection/workspace-file-reader.ts +132 -0
- package/packages/piagent-core/runtime/inspection/workspace-source-projection.ts +96 -0
- package/packages/piagent-core/runtime/inspection/zero-turn-conformance.ts +175 -0
- package/packages/piagent-core/runtime/orchestration/owned-work-budget.ts +68 -4
- package/packages/piagent-core/runtime/policy/source-index-transaction.ts +173 -0
- package/packages/piagent-core/runtime/policy/source-mutation-guard-binding.ts +42 -0
- package/packages/piagent-core/runtime/policy/source-mutation-guard.ts +184 -0
- package/packages/piagent-core/runtime/policy/source-worktree-transaction.ts +105 -0
- package/packages/piagent-core/runtime/product/activity-inspector-footer.ts +5 -3
- package/packages/piagent-core/runtime/product/activity-inspector.ts +85 -343
- package/packages/piagent-core/runtime/recovery/resume-state.ts +38 -1
- package/packages/piagent-core/runtime/registration/activity-inspector-command.ts +68 -14
- package/packages/piagent-core/runtime/registration/task-start-tool.ts +13 -14
- package/packages/piagent-core/runtime/session/model-authorship-state.ts +31 -3
- package/packages/piagent-core/runtime/session/runtime-state.ts +11 -1
- package/packages/piagent-webui/dist/client/assets/index-DjMntaK5.js +172 -0
- package/packages/piagent-webui/dist/client/assets/index-DwKCWbwd.css +1 -0
- package/packages/piagent-webui/dist/client/index.html +16 -0
- package/packages/piagent-webui/extension/attachment-store.ts +323 -0
- package/packages/piagent-webui/extension/held-message-queue.ts +311 -0
- package/packages/piagent-webui/extension/lifecycle-controller.ts +408 -0
- package/packages/piagent-webui/extension/lifecycle-event-adapter.ts +23 -0
- package/packages/piagent-webui/extension/piagent-webui.ts +470 -0
- package/packages/piagent-webui/extension/review-controller.ts +160 -0
- package/packages/piagent-webui/extension/same-session-bridge.ts +500 -0
- package/packages/piagent-webui/extension/session-options-controller.ts +281 -0
- package/packages/piagent-webui/extension/session-stream-adapter.ts +249 -0
- package/packages/piagent-webui/extension/source-mutation-controller.ts +215 -0
- package/packages/piagent-webui/extension/source-open-controller.ts +136 -0
- package/packages/piagent-webui/extension/source-revert-controller.ts +189 -0
- package/packages/piagent-webui/extension/terminal-session-adapter.ts +73 -0
- package/packages/piagent-webui/extension/vscode-handoff.ts +51 -0
- package/packages/piagent-webui/gateway/control-socket.ts +92 -0
- package/packages/piagent-webui/gateway/gateway-events.ts +60 -0
- package/packages/piagent-webui/gateway/gateway-protocol-service.ts +64 -0
- package/packages/piagent-webui/gateway/gateway-service.ts +215 -0
- package/packages/piagent-webui/gateway/gateway-session-stream.ts +110 -0
- package/packages/piagent-webui/gateway/mcp-auth-broker.ts +158 -0
- package/packages/piagent-webui/gateway/native-project-picker.ts +29 -0
- package/packages/piagent-webui/gateway/pi-host.ts +41 -0
- package/packages/piagent-webui/gateway/profile-state.ts +1 -0
- package/packages/piagent-webui/gateway/project-registry.ts +108 -0
- package/packages/piagent-webui/gateway/provider-auth-broker.ts +172 -0
- package/packages/piagent-webui/gateway/session-catalog.ts +128 -0
- package/packages/piagent-webui/gateway/session-command-controller.ts +237 -0
- package/packages/piagent-webui/gateway/session-command-store.ts +224 -0
- package/packages/piagent-webui/gateway/session-inspection-registry.ts +204 -0
- package/packages/piagent-webui/gateway/session-lease-store.ts +1 -0
- package/packages/piagent-webui/gateway/session-metadata-store.ts +152 -0
- package/packages/piagent-webui/gateway/session-runtime-supervisor.ts +485 -0
- package/packages/piagent-webui/ownership/gateway-runtime-context.ts +8 -0
- package/packages/piagent-webui/ownership/profile-state.ts +117 -0
- package/packages/piagent-webui/ownership/session-lease-store.ts +329 -0
- package/packages/piagent-webui/ownership/session-refs.ts +8 -0
- package/packages/piagent-webui/package.json +33 -0
- package/packages/piagent-webui/server/README.md +4 -0
- package/packages/piagent-webui/server/benchmark-release-monitor.ts +230 -0
- package/packages/piagent-webui/server/core-inspection-provider.ts +403 -0
- package/packages/piagent-webui/server/gateway-websocket.ts +143 -0
- package/packages/piagent-webui/server/http-security.ts +27 -0
- package/packages/piagent-webui/server/ipc-read-model-client.ts +89 -0
- package/packages/piagent-webui/server/loopback-server.ts +368 -0
- package/packages/piagent-webui/server/read-model-provider.ts +37 -0
- package/packages/piagent-webui/server/read-only-router.ts +105 -0
- package/packages/piagent-webui/server/session-auth.ts +88 -0
- package/packages/piagent-webui/server/sidecar-main.ts +86 -0
- package/packages/piagent-webui/server/sse-hub.ts +76 -0
- package/packages/piagent-webui/server/static-bundle.ts +40 -0
- package/packages/piagent-webui/server/transcript-projection.ts +110 -0
- package/schemas/mutation-provenance-record.schema.json +100 -0
- package/schemas/piagent-webui/approval-v1.schema.json +654 -0
- package/schemas/piagent-webui/attachment-v1.schema.json +267 -0
- package/schemas/piagent-webui/capabilities-v1.schema.json +729 -0
- package/schemas/piagent-webui/catalog-v1.json +240 -0
- package/schemas/piagent-webui/commit-summary-v1.schema.json +63 -0
- package/schemas/piagent-webui/common-v1.schema.json +479 -0
- package/schemas/piagent-webui/control-command-v1.schema.json +1780 -0
- package/schemas/piagent-webui/diff-v1.schema.json +826 -0
- package/schemas/piagent-webui/gateway-capabilities-v1.schema.json +136 -0
- package/schemas/piagent-webui/gateway-protocol-v1.schema.json +456 -0
- package/schemas/piagent-webui/handoff-history-v1.schema.json +92 -0
- package/schemas/piagent-webui/model-catalog-v1.schema.json +95 -0
- package/schemas/piagent-webui/queue-v1.schema.json +99 -0
- package/schemas/piagent-webui/recovery-history-v1.schema.json +144 -0
- package/schemas/piagent-webui/release-monitor-v1.schema.json +173 -0
- package/schemas/piagent-webui/review-state-v1.schema.json +206 -0
- package/schemas/piagent-webui/runtime-event-v2.schema.json +5206 -0
- package/schemas/piagent-webui/session-catalog-v1.schema.json +222 -0
- package/schemas/piagent-webui/session-command-v1.schema.json +390 -0
- package/schemas/piagent-webui/snapshot-v1.schema.json +2622 -0
- package/schemas/piagent-webui/source-change-v1.schema.json +763 -0
- package/schemas/piagent-webui/source-mutation-v1.schema.json +96 -0
- package/schemas/piagent-webui/source-revert-v1.schema.json +130 -0
- package/schemas/piagent-webui/subagent-tree-v1.schema.json +88 -0
- package/schemas/piagent-webui/task-index-v1.schema.json +74 -0
- package/schemas/piagent-webui/task-timeline-v1.schema.json +49 -0
- package/schemas/piagent-webui/transcript-v1.schema.json +243 -0
- package/schemas/task-baseline-manifest.schema.json +122 -0
- package/schemas/verifier-file-snapshot.schema.json +81 -0
- package/scripts/check-architecture.mjs +1 -0
- package/scripts/check-doc-languages.mjs +19 -2
- package/scripts/check-third-party-neutrality.mjs +43 -0
- package/scripts/install-global.sh +1 -1
- package/scripts/piagent-cli.mjs +17 -3
- package/scripts/piagent-dashboard.mjs +208 -0
- package/scripts/piagent-webui-launcher.mjs +121 -0
- package/scripts/typescript-loader.mjs +26 -1
- package/scripts/verify-local.sh +253 -0
- package/scripts/verify-release-identity.mjs +4 -1
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://piagent.io.vn/schemas/piagent-webui/common-v1.schema.json",
|
|
4
|
+
"title": "Piagent WebUI common wire definitions v1",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"timestamp": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "date-time",
|
|
9
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
10
|
+
},
|
|
11
|
+
"opaqueRef": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"maxLength": 160,
|
|
15
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]{0,159}$"
|
|
16
|
+
},
|
|
17
|
+
"nullableOpaqueRef": {
|
|
18
|
+
"anyOf": [
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/$defs/opaqueRef"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "null"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"publicId": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"maxLength": 160,
|
|
31
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:@~-]{0,159}$"
|
|
32
|
+
},
|
|
33
|
+
"nullablePublicId": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{
|
|
36
|
+
"$ref": "#/$defs/publicId"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "null"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"revisionToken": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1,
|
|
46
|
+
"maxLength": 160,
|
|
47
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:~-]{0,159}$"
|
|
48
|
+
},
|
|
49
|
+
"nullableRevisionToken": {
|
|
50
|
+
"anyOf": [
|
|
51
|
+
{
|
|
52
|
+
"$ref": "#/$defs/revisionToken"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "null"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"reasonCode": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 96,
|
|
63
|
+
"pattern": "^[a-z0-9][a-z0-9.-]{0,95}$"
|
|
64
|
+
},
|
|
65
|
+
"nullableReasonCode": {
|
|
66
|
+
"anyOf": [
|
|
67
|
+
{
|
|
68
|
+
"$ref": "#/$defs/reasonCode"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "null"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"digest": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
78
|
+
},
|
|
79
|
+
"hash": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
82
|
+
},
|
|
83
|
+
"workingTreeDigest": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^wt-content-v2:[a-f0-9]{64}$"
|
|
86
|
+
},
|
|
87
|
+
"nullableWorkingTreeDigest": {
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{
|
|
90
|
+
"$ref": "#/$defs/workingTreeDigest"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "null"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"displayText": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"maxLength": 500,
|
|
100
|
+
"pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]*$"
|
|
101
|
+
},
|
|
102
|
+
"nonEmptyDisplayText": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"minLength": 1,
|
|
105
|
+
"maxLength": 500,
|
|
106
|
+
"pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$"
|
|
107
|
+
},
|
|
108
|
+
"nullableDisplayText": {
|
|
109
|
+
"anyOf": [
|
|
110
|
+
{
|
|
111
|
+
"$ref": "#/$defs/nonEmptyDisplayText"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "null"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"longDisplayText": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"maxLength": 4000,
|
|
121
|
+
"pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]*$"
|
|
122
|
+
},
|
|
123
|
+
"safeDisplayPath": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"minLength": 1,
|
|
126
|
+
"maxLength": 1024,
|
|
127
|
+
"pattern": "^(?!/)(?![A-Za-z]:)(?!.*(?:^|/)\\.\\.(?:/|$))[^\\u0000-\\u001F\\u007F\\\\]+$"
|
|
128
|
+
},
|
|
129
|
+
"nullableSafeDisplayPath": {
|
|
130
|
+
"anyOf": [
|
|
131
|
+
{
|
|
132
|
+
"$ref": "#/$defs/safeDisplayPath"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "null"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"operationPhase": {
|
|
140
|
+
"enum": [
|
|
141
|
+
"idle",
|
|
142
|
+
"input-preflight",
|
|
143
|
+
"model",
|
|
144
|
+
"tool-preflight",
|
|
145
|
+
"waiting-approval",
|
|
146
|
+
"tool",
|
|
147
|
+
"retry",
|
|
148
|
+
"compaction",
|
|
149
|
+
"branch-summary",
|
|
150
|
+
"direct-bash",
|
|
151
|
+
"settling",
|
|
152
|
+
"other",
|
|
153
|
+
"unknown"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"identity": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"additionalProperties": false,
|
|
159
|
+
"required": [
|
|
160
|
+
"projectRef",
|
|
161
|
+
"runtimeInstanceId",
|
|
162
|
+
"sessionRef",
|
|
163
|
+
"taskId",
|
|
164
|
+
"taskRunId",
|
|
165
|
+
"agentOperationId",
|
|
166
|
+
"toolCallId"
|
|
167
|
+
],
|
|
168
|
+
"properties": {
|
|
169
|
+
"projectRef": {
|
|
170
|
+
"$ref": "#/$defs/opaqueRef"
|
|
171
|
+
},
|
|
172
|
+
"runtimeInstanceId": {
|
|
173
|
+
"$ref": "#/$defs/opaqueRef"
|
|
174
|
+
},
|
|
175
|
+
"sessionRef": {
|
|
176
|
+
"$ref": "#/$defs/opaqueRef"
|
|
177
|
+
},
|
|
178
|
+
"taskId": {
|
|
179
|
+
"$ref": "#/$defs/nullablePublicId"
|
|
180
|
+
},
|
|
181
|
+
"taskRunId": {
|
|
182
|
+
"$ref": "#/$defs/nullablePublicId"
|
|
183
|
+
},
|
|
184
|
+
"agentOperationId": {
|
|
185
|
+
"$ref": "#/$defs/nullableOpaqueRef"
|
|
186
|
+
},
|
|
187
|
+
"toolCallId": {
|
|
188
|
+
"$ref": "#/$defs/nullableOpaqueRef"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"allOf": [
|
|
192
|
+
{
|
|
193
|
+
"if": {
|
|
194
|
+
"properties": {
|
|
195
|
+
"taskRunId": { "type": "string" }
|
|
196
|
+
},
|
|
197
|
+
"required": ["taskRunId"]
|
|
198
|
+
},
|
|
199
|
+
"then": {
|
|
200
|
+
"properties": {
|
|
201
|
+
"taskId": { "$ref": "#/$defs/publicId" }
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"if": {
|
|
207
|
+
"properties": {
|
|
208
|
+
"toolCallId": { "type": "string" }
|
|
209
|
+
},
|
|
210
|
+
"required": ["toolCallId"]
|
|
211
|
+
},
|
|
212
|
+
"then": {
|
|
213
|
+
"properties": {
|
|
214
|
+
"agentOperationId": { "$ref": "#/$defs/opaqueRef" }
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
"domainRevision": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"additionalProperties": false,
|
|
223
|
+
"required": [
|
|
224
|
+
"runtimeRevision",
|
|
225
|
+
"taskRevision",
|
|
226
|
+
"controlRevision",
|
|
227
|
+
"workspaceRevision",
|
|
228
|
+
"indexRevision",
|
|
229
|
+
"approvalRevision",
|
|
230
|
+
"sessionOptionRevision",
|
|
231
|
+
"queueRevision"
|
|
232
|
+
],
|
|
233
|
+
"properties": {
|
|
234
|
+
"runtimeRevision": {
|
|
235
|
+
"$ref": "#/$defs/revisionToken"
|
|
236
|
+
},
|
|
237
|
+
"taskRevision": {
|
|
238
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
239
|
+
},
|
|
240
|
+
"controlRevision": {
|
|
241
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
242
|
+
},
|
|
243
|
+
"workspaceRevision": {
|
|
244
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
245
|
+
},
|
|
246
|
+
"indexRevision": {
|
|
247
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
248
|
+
},
|
|
249
|
+
"approvalRevision": {
|
|
250
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
251
|
+
},
|
|
252
|
+
"sessionOptionRevision": {
|
|
253
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
254
|
+
},
|
|
255
|
+
"queueRevision": {
|
|
256
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"snapshotRevision": {
|
|
261
|
+
"type": "object",
|
|
262
|
+
"additionalProperties": false,
|
|
263
|
+
"required": [
|
|
264
|
+
"runtimeRevision",
|
|
265
|
+
"taskRevision",
|
|
266
|
+
"controlRevision",
|
|
267
|
+
"workspaceRevision",
|
|
268
|
+
"indexRevision",
|
|
269
|
+
"approvalRevision",
|
|
270
|
+
"sessionOptionRevision",
|
|
271
|
+
"queueRevision",
|
|
272
|
+
"journalHead",
|
|
273
|
+
"eventCursor"
|
|
274
|
+
],
|
|
275
|
+
"properties": {
|
|
276
|
+
"runtimeRevision": {
|
|
277
|
+
"$ref": "#/$defs/revisionToken"
|
|
278
|
+
},
|
|
279
|
+
"taskRevision": {
|
|
280
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
281
|
+
},
|
|
282
|
+
"controlRevision": {
|
|
283
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
284
|
+
},
|
|
285
|
+
"workspaceRevision": {
|
|
286
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
287
|
+
},
|
|
288
|
+
"indexRevision": {
|
|
289
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
290
|
+
},
|
|
291
|
+
"approvalRevision": {
|
|
292
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
293
|
+
},
|
|
294
|
+
"sessionOptionRevision": {
|
|
295
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
296
|
+
},
|
|
297
|
+
"queueRevision": {
|
|
298
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
299
|
+
},
|
|
300
|
+
"journalHead": {
|
|
301
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
302
|
+
},
|
|
303
|
+
"eventCursor": {
|
|
304
|
+
"$ref": "#/$defs/revisionToken"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"redaction": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"additionalProperties": false,
|
|
311
|
+
"required": [
|
|
312
|
+
"applied",
|
|
313
|
+
"valuesRemoved",
|
|
314
|
+
"truncated"
|
|
315
|
+
],
|
|
316
|
+
"properties": {
|
|
317
|
+
"applied": {
|
|
318
|
+
"type": "boolean"
|
|
319
|
+
},
|
|
320
|
+
"valuesRemoved": {
|
|
321
|
+
"type": "integer",
|
|
322
|
+
"minimum": 0,
|
|
323
|
+
"maximum": 10000
|
|
324
|
+
},
|
|
325
|
+
"truncated": {
|
|
326
|
+
"type": "boolean"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"allOf": [
|
|
330
|
+
{
|
|
331
|
+
"if": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"properties": {
|
|
334
|
+
"applied": { "const": false }
|
|
335
|
+
},
|
|
336
|
+
"required": ["applied"]
|
|
337
|
+
},
|
|
338
|
+
"then": {
|
|
339
|
+
"type": "object",
|
|
340
|
+
"properties": {
|
|
341
|
+
"valuesRemoved": { "const": 0 }
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
"health": {
|
|
348
|
+
"type": "object",
|
|
349
|
+
"additionalProperties": false,
|
|
350
|
+
"required": [
|
|
351
|
+
"state",
|
|
352
|
+
"reasonCode",
|
|
353
|
+
"message"
|
|
354
|
+
],
|
|
355
|
+
"properties": {
|
|
356
|
+
"state": {
|
|
357
|
+
"enum": [
|
|
358
|
+
"ok",
|
|
359
|
+
"degraded",
|
|
360
|
+
"error",
|
|
361
|
+
"unavailable",
|
|
362
|
+
"unknown"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"reasonCode": {
|
|
366
|
+
"$ref": "#/$defs/nullableReasonCode"
|
|
367
|
+
},
|
|
368
|
+
"message": {
|
|
369
|
+
"$ref": "#/$defs/nullableDisplayText"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"allOf": [
|
|
373
|
+
{
|
|
374
|
+
"if": {
|
|
375
|
+
"properties": {
|
|
376
|
+
"state": { "const": "ok" }
|
|
377
|
+
},
|
|
378
|
+
"required": ["state"]
|
|
379
|
+
},
|
|
380
|
+
"then": {
|
|
381
|
+
"properties": {
|
|
382
|
+
"reasonCode": { "type": "null" }
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"else": {
|
|
386
|
+
"properties": {
|
|
387
|
+
"reasonCode": { "$ref": "#/$defs/reasonCode" }
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"issue": {
|
|
394
|
+
"type": "object",
|
|
395
|
+
"additionalProperties": false,
|
|
396
|
+
"required": [
|
|
397
|
+
"issueRef",
|
|
398
|
+
"severity",
|
|
399
|
+
"code",
|
|
400
|
+
"message",
|
|
401
|
+
"relatedRefs"
|
|
402
|
+
],
|
|
403
|
+
"properties": {
|
|
404
|
+
"issueRef": {
|
|
405
|
+
"$ref": "#/$defs/opaqueRef"
|
|
406
|
+
},
|
|
407
|
+
"severity": {
|
|
408
|
+
"enum": [
|
|
409
|
+
"info",
|
|
410
|
+
"warning",
|
|
411
|
+
"error"
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
"code": {
|
|
415
|
+
"$ref": "#/$defs/reasonCode"
|
|
416
|
+
},
|
|
417
|
+
"message": {
|
|
418
|
+
"$ref": "#/$defs/nonEmptyDisplayText"
|
|
419
|
+
},
|
|
420
|
+
"relatedRefs": {
|
|
421
|
+
"type": "array",
|
|
422
|
+
"maxItems": 32,
|
|
423
|
+
"uniqueItems": true,
|
|
424
|
+
"items": {
|
|
425
|
+
"$ref": "#/$defs/opaqueRef"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"page": {
|
|
431
|
+
"type": "object",
|
|
432
|
+
"additionalProperties": false,
|
|
433
|
+
"required": [
|
|
434
|
+
"cursor",
|
|
435
|
+
"nextCursor",
|
|
436
|
+
"total",
|
|
437
|
+
"returned",
|
|
438
|
+
"truncated"
|
|
439
|
+
],
|
|
440
|
+
"properties": {
|
|
441
|
+
"cursor": {
|
|
442
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
443
|
+
},
|
|
444
|
+
"nextCursor": {
|
|
445
|
+
"$ref": "#/$defs/nullableRevisionToken"
|
|
446
|
+
},
|
|
447
|
+
"total": {
|
|
448
|
+
"type": "integer",
|
|
449
|
+
"minimum": 0,
|
|
450
|
+
"maximum": 1000000
|
|
451
|
+
},
|
|
452
|
+
"returned": {
|
|
453
|
+
"type": "integer",
|
|
454
|
+
"minimum": 0,
|
|
455
|
+
"maximum": 2000
|
|
456
|
+
},
|
|
457
|
+
"truncated": {
|
|
458
|
+
"type": "boolean"
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"stateReason": {
|
|
463
|
+
"type": "object",
|
|
464
|
+
"additionalProperties": false,
|
|
465
|
+
"required": [
|
|
466
|
+
"code",
|
|
467
|
+
"message"
|
|
468
|
+
],
|
|
469
|
+
"properties": {
|
|
470
|
+
"code": {
|
|
471
|
+
"$ref": "#/$defs/reasonCode"
|
|
472
|
+
},
|
|
473
|
+
"message": {
|
|
474
|
+
"$ref": "#/$defs/nonEmptyDisplayText"
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|