@piagent/platform 1.3.1 → 1.4.1
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 +132 -0
- package/README.md +10 -4
- package/README.vi.md +27 -0
- 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 +1 -0
- 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/en/architecture.md +13 -0
- package/docs/herdr-workflow.md +1 -0
- package/docs/languages.json +20 -4
- package/docs/mcp-and-tools.md +125 -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 +37 -0
- package/docs/quality-benchmark.md +1 -0
- package/docs/quickstart-vietnamese.md +3 -2
- package/docs/release-install-policy.md +22 -8
- package/docs/runtime-harness-standard.md +2 -1
- 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 +12 -4
- 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 +71 -0
- package/docs/vercel-docs-site.md +1 -0
- package/docs/vi/architecture.md +13 -0
- package/docs/workflow-recipes.md +1 -0
- package/docs-site/architecture.html +5 -1
- package/docs-site/benchmark.html +5 -1
- package/docs-site/commands.html +5 -1
- package/docs-site/content/en/index.html +49 -0
- package/docs-site/content/en/runtime.html +13 -0
- package/docs-site/content/index.html +49 -0
- package/docs-site/content/runtime.html +28 -0
- package/docs-site/context-engine.html +5 -1
- package/docs-site/en/architecture.html +5 -1
- package/docs-site/en/benchmark.html +5 -1
- package/docs-site/en/commands.html +5 -1
- package/docs-site/en/context-engine.html +5 -1
- package/docs-site/en/index.html +54 -1
- package/docs-site/en/mcp-approval.html +5 -1
- package/docs-site/en/mcp-auth.html +5 -1
- package/docs-site/en/mcp-servers.html +5 -1
- package/docs-site/en/mcp.html +5 -1
- package/docs-site/en/permissions.html +5 -1
- package/docs-site/en/profiles.html +5 -1
- package/docs-site/en/quickstart.html +5 -1
- package/docs-site/en/runtime.html +18 -1
- package/docs-site/en/scope.html +5 -1
- package/docs-site/en/security.html +5 -1
- package/docs-site/en/team.html +5 -1
- package/docs-site/en/whats-new.html +5 -1
- package/docs-site/en/workflows.html +5 -1
- package/docs-site/index.html +54 -1
- package/docs-site/mcp-approval.html +5 -1
- package/docs-site/mcp-auth.html +5 -1
- package/docs-site/mcp-servers.html +5 -1
- package/docs-site/mcp.html +5 -1
- package/docs-site/permissions.html +5 -1
- package/docs-site/profiles.html +5 -1
- package/docs-site/quickstart.html +5 -1
- package/docs-site/runtime.html +33 -1
- package/docs-site/scope.html +5 -1
- package/docs-site/security.html +5 -1
- package/docs-site/team.html +5 -1
- package/docs-site/whats-new.html +5 -1
- package/docs-site/workflows.html +5 -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 +43 -4
- package/packages/piagent-core/README.md +3 -2
- 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 +17 -7
- package/packages/piagent-core/capabilities/runtime-integrity.js +190 -0
- package/packages/piagent-core/extensions/piagent-guard.ts +80 -272
- package/packages/piagent-core/extensions/redaction-core.d.ts +2 -0
- package/packages/piagent-core/extensions/runtime-evidence.js +12 -1
- package/packages/piagent-core/extensions/shell-reach.ts +250 -0
- 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-command-actions.js +1 -1
- package/packages/piagent-core/mcp/mcp-server-catalog.js +139 -9
- 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 +12 -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 +93 -6
- package/packages/piagent-core/runtime/policy/block-remedy.ts +139 -0
- 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 +22 -27
- 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-core/runtime/session/token-economics.js +34 -0
- package/packages/piagent-core/runtime/tools/phase-tool-runtime.ts +2 -1
- package/packages/piagent-core/runtime/workflows/task-intake.ts +5 -0
- package/packages/piagent-core/security/sensitive-data.js +7 -0
- package/packages/piagent-webui/dist/client/assets/index-DwKCWbwd.css +1 -0
- package/packages/piagent-webui/dist/client/assets/index-bu7XpD9Q.js +172 -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 +423 -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/extension-authority.ts +47 -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 +239 -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 +489 -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 +125 -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/build-docs-site.mjs +21 -1
- 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/explain-command.mjs +240 -0
- package/scripts/install-global.sh +105 -4
- package/scripts/mcp-manage.mjs +17 -4
- package/scripts/pi-session-stats.sh +10 -2
- package/scripts/piagent-cli.mjs +30 -3
- package/scripts/piagent-dashboard.mjs +261 -0
- package/scripts/piagent-webui-launcher.mjs +121 -0
- package/scripts/setup.sh +69 -33
- package/scripts/traffic-snapshot.mjs +214 -0
- package/scripts/typescript-loader.mjs +42 -1
- package/scripts/uninstall-global.sh +53 -2
- package/scripts/update-global.mjs +33 -1
- package/scripts/verify-local.sh +257 -0
- package/scripts/verify-release-identity.mjs +4 -1
- package/scripts/verify-translation-pairing.mjs +121 -0
package/scripts/verify-local.sh
CHANGED
|
@@ -41,6 +41,7 @@ required_files=(
|
|
|
41
41
|
"$ROOT/.npmignore"
|
|
42
42
|
"$ROOT/package.json"
|
|
43
43
|
"$ROOT/package-lock.json"
|
|
44
|
+
"$ROOT/playwright.webui.config.mjs"
|
|
44
45
|
"$ROOT/tsconfig.json"
|
|
45
46
|
"$ROOT/.github/workflows/verify.yml"
|
|
46
47
|
"$ROOT/.github/workflows/codeql.yml"
|
|
@@ -152,6 +153,7 @@ required_files=(
|
|
|
152
153
|
"$ROOT/docs/package-architecture-notes.md"
|
|
153
154
|
"$ROOT/docs/capability-packs.md"
|
|
154
155
|
"$ROOT/docs/runtime-policy-design.md"
|
|
156
|
+
"$ROOT/docs/third-party-neutrality.md"
|
|
155
157
|
"$ROOT/docs-site/index.html"
|
|
156
158
|
"$ROOT/docs-site/mcp.html"
|
|
157
159
|
"$ROOT/docs-site/en/index.html"
|
|
@@ -171,6 +173,10 @@ required_files=(
|
|
|
171
173
|
"$ROOT/scripts/build-docs-site.mjs"
|
|
172
174
|
"$ROOT/scripts/check-architecture.mjs"
|
|
173
175
|
"$ROOT/scripts/check-doc-languages.mjs"
|
|
176
|
+
"$ROOT/scripts/verify-translation-pairing.mjs"
|
|
177
|
+
"$ROOT/scripts/check-third-party-neutrality.mjs"
|
|
178
|
+
"$ROOT/governance/piagent-webui/wui5-18-acceptance-matrix.v1.json"
|
|
179
|
+
"$ROOT/tests/piagent-webui-wui5-18-gate.test.mjs"
|
|
174
180
|
"$ROOT/architecture/layers.json"
|
|
175
181
|
"$ROOT/scripts/context-engine.mjs"
|
|
176
182
|
"$ROOT/scripts/preview-docs-site.mjs"
|
|
@@ -180,6 +186,218 @@ required_files=(
|
|
|
180
186
|
"$ROOT/schemas/capability-recipe.schema.json"
|
|
181
187
|
"$ROOT/schemas/eval-scenario.schema.json"
|
|
182
188
|
"$ROOT/schemas/action-proposal.schema.json"
|
|
189
|
+
"$ROOT/schemas/piagent-webui/catalog-v1.json"
|
|
190
|
+
"$ROOT/schemas/piagent-webui/common-v1.schema.json"
|
|
191
|
+
"$ROOT/schemas/piagent-webui/snapshot-v1.schema.json"
|
|
192
|
+
"$ROOT/schemas/piagent-webui/runtime-event-v2.schema.json"
|
|
193
|
+
"$ROOT/schemas/piagent-webui/source-change-v1.schema.json"
|
|
194
|
+
"$ROOT/schemas/piagent-webui/diff-v1.schema.json"
|
|
195
|
+
"$ROOT/schemas/piagent-webui/review-state-v1.schema.json"
|
|
196
|
+
"$ROOT/schemas/piagent-webui/source-mutation-v1.schema.json"
|
|
197
|
+
"$ROOT/schemas/piagent-webui/source-revert-v1.schema.json"
|
|
198
|
+
"$ROOT/schemas/piagent-webui/commit-summary-v1.schema.json"
|
|
199
|
+
"$ROOT/schemas/piagent-webui/task-index-v1.schema.json"
|
|
200
|
+
"$ROOT/schemas/piagent-webui/task-timeline-v1.schema.json"
|
|
201
|
+
"$ROOT/schemas/piagent-webui/recovery-history-v1.schema.json"
|
|
202
|
+
"$ROOT/schemas/piagent-webui/handoff-history-v1.schema.json"
|
|
203
|
+
"$ROOT/schemas/piagent-webui/subagent-tree-v1.schema.json"
|
|
204
|
+
"$ROOT/schemas/piagent-webui/release-monitor-v1.schema.json"
|
|
205
|
+
"$ROOT/schemas/piagent-webui/transcript-v1.schema.json"
|
|
206
|
+
"$ROOT/schemas/piagent-webui/queue-v1.schema.json"
|
|
207
|
+
"$ROOT/schemas/piagent-webui/model-catalog-v1.schema.json"
|
|
208
|
+
"$ROOT/schemas/piagent-webui/attachment-v1.schema.json"
|
|
209
|
+
"$ROOT/schemas/piagent-webui/control-command-v1.schema.json"
|
|
210
|
+
"$ROOT/schemas/piagent-webui/approval-v1.schema.json"
|
|
211
|
+
"$ROOT/schemas/piagent-webui/capabilities-v1.schema.json"
|
|
212
|
+
"$ROOT/schemas/piagent-webui/session-catalog-v1.schema.json"
|
|
213
|
+
"$ROOT/schemas/piagent-webui/session-command-v1.schema.json"
|
|
214
|
+
"$ROOT/schemas/piagent-webui/gateway-capabilities-v1.schema.json"
|
|
215
|
+
"$ROOT/schemas/piagent-webui/gateway-protocol-v1.schema.json"
|
|
216
|
+
"$ROOT/packages/piagent-webui/package.json"
|
|
217
|
+
"$ROOT/packages/piagent-webui/tsconfig.json"
|
|
218
|
+
"$ROOT/packages/piagent-webui/vite.config.ts"
|
|
219
|
+
"$ROOT/packages/piagent-webui/scripts/generate-contracts.mjs"
|
|
220
|
+
"$ROOT/packages/piagent-webui/benchmark/benchmark.mjs"
|
|
221
|
+
"$ROOT/packages/piagent-webui/contracts/generated/index.ts"
|
|
222
|
+
"$ROOT/packages/piagent-webui/contracts/generated/review-state-v1.ts"
|
|
223
|
+
"$ROOT/packages/piagent-webui/contracts/generated/source-mutation-v1.ts"
|
|
224
|
+
"$ROOT/packages/piagent-webui/contracts/generated/source-revert-v1.ts"
|
|
225
|
+
"$ROOT/packages/piagent-webui/contracts/generated/commit-summary-v1.ts"
|
|
226
|
+
"$ROOT/packages/piagent-webui/contracts/generated/task-index-v1.ts"
|
|
227
|
+
"$ROOT/packages/piagent-webui/contracts/generated/task-timeline-v1.ts"
|
|
228
|
+
"$ROOT/packages/piagent-webui/contracts/generated/recovery-history-v1.ts"
|
|
229
|
+
"$ROOT/packages/piagent-webui/contracts/generated/handoff-history-v1.ts"
|
|
230
|
+
"$ROOT/packages/piagent-webui/contracts/generated/subagent-tree-v1.ts"
|
|
231
|
+
"$ROOT/packages/piagent-webui/contracts/generated/release-monitor-v1.ts"
|
|
232
|
+
"$ROOT/packages/piagent-webui/contracts/generated/queue-v1.ts"
|
|
233
|
+
"$ROOT/packages/piagent-webui/contracts/generated/model-catalog-v1.ts"
|
|
234
|
+
"$ROOT/packages/piagent-webui/contracts/generated/attachment-v1.ts"
|
|
235
|
+
"$ROOT/packages/piagent-webui/contracts/generated/session-catalog-v1.ts"
|
|
236
|
+
"$ROOT/packages/piagent-webui/contracts/generated/session-command-v1.ts"
|
|
237
|
+
"$ROOT/packages/piagent-webui/contracts/generated/gateway-capabilities-v1.ts"
|
|
238
|
+
"$ROOT/packages/piagent-webui/contracts/generated/gateway-protocol-v1.ts"
|
|
239
|
+
"$ROOT/packages/piagent-webui/client/index.html"
|
|
240
|
+
"$ROOT/packages/piagent-webui/client/src/App.tsx"
|
|
241
|
+
"$ROOT/packages/piagent-webui/client/src/api.ts"
|
|
242
|
+
"$ROOT/packages/piagent-webui/client/src/use-inspection.ts"
|
|
243
|
+
"$ROOT/packages/piagent-webui/client/src/view-model.ts"
|
|
244
|
+
"$ROOT/packages/piagent-webui/client/src/source-view-model.ts"
|
|
245
|
+
"$ROOT/packages/piagent-webui/client/src/SourceWorkspace.tsx"
|
|
246
|
+
"$ROOT/packages/piagent-webui/client/src/TaskRunIndexPanel.tsx"
|
|
247
|
+
"$ROOT/packages/piagent-webui/client/src/activity-view-model.ts"
|
|
248
|
+
"$ROOT/packages/piagent-webui/client/src/ActivityPanel.tsx"
|
|
249
|
+
"$ROOT/packages/piagent-webui/client/src/evidence-view-model.ts"
|
|
250
|
+
"$ROOT/packages/piagent-webui/client/src/EvidencePanels.tsx"
|
|
251
|
+
"$ROOT/packages/piagent-webui/client/src/ChatPanel.tsx"
|
|
252
|
+
"$ROOT/packages/piagent-webui/client/src/chat-view-model.ts"
|
|
253
|
+
"$ROOT/packages/piagent-webui/client/src/chat-command.ts"
|
|
254
|
+
"$ROOT/packages/piagent-webui/client/src/review-command.ts"
|
|
255
|
+
"$ROOT/packages/piagent-webui/client/src/source-mutation-command.ts"
|
|
256
|
+
"$ROOT/packages/piagent-webui/client/src/source-revert-command.ts"
|
|
257
|
+
"$ROOT/packages/piagent-webui/client/src/source-open-command.ts"
|
|
258
|
+
"$ROOT/packages/piagent-webui/client/src/approval-command.ts"
|
|
259
|
+
"$ROOT/packages/piagent-webui/client/src/ApprovalPanel.tsx"
|
|
260
|
+
"$ROOT/packages/piagent-webui/client/src/SessionOptionsPanel.tsx"
|
|
261
|
+
"$ROOT/packages/piagent-webui/client/src/LifecyclePanel.tsx"
|
|
262
|
+
"$ROOT/packages/piagent-webui/client/src/SessionHubApp.tsx"
|
|
263
|
+
"$ROOT/packages/piagent-webui/client/src/NewSessionPage.tsx"
|
|
264
|
+
"$ROOT/packages/piagent-webui/client/src/SessionComposerControls.tsx"
|
|
265
|
+
"$ROOT/packages/piagent-webui/client/src/McpConnectionActions.tsx"
|
|
266
|
+
"$ROOT/packages/piagent-webui/client/src/ProviderAccounts.tsx"
|
|
267
|
+
"$ROOT/packages/piagent-webui/client/src/SettingsPage.tsx"
|
|
268
|
+
"$ROOT/packages/piagent-webui/client/src/SessionInspectorDrawer.tsx"
|
|
269
|
+
"$ROOT/packages/piagent-webui/client/src/ServiceIcon.tsx"
|
|
270
|
+
"$ROOT/packages/piagent-webui/client/src/use-session-hub.ts"
|
|
271
|
+
"$ROOT/packages/piagent-webui/server/http-security.ts"
|
|
272
|
+
"$ROOT/packages/piagent-webui/server/session-auth.ts"
|
|
273
|
+
"$ROOT/packages/piagent-webui/server/static-bundle.ts"
|
|
274
|
+
"$ROOT/packages/piagent-webui/server/loopback-server.ts"
|
|
275
|
+
"$ROOT/packages/piagent-webui/server/read-model-provider.ts"
|
|
276
|
+
"$ROOT/packages/piagent-webui/server/read-only-router.ts"
|
|
277
|
+
"$ROOT/packages/piagent-webui/server/sse-hub.ts"
|
|
278
|
+
"$ROOT/packages/piagent-webui/server/core-inspection-provider.ts"
|
|
279
|
+
"$ROOT/packages/piagent-webui/server/ipc-read-model-client.ts"
|
|
280
|
+
"$ROOT/packages/piagent-webui/server/sidecar-main.ts"
|
|
281
|
+
"$ROOT/packages/piagent-webui/server/transcript-projection.ts"
|
|
282
|
+
"$ROOT/packages/piagent-webui/gateway/control-socket.ts"
|
|
283
|
+
"$ROOT/packages/piagent-webui/gateway/gateway-service.ts"
|
|
284
|
+
"$ROOT/packages/piagent-webui/gateway/gateway-events.ts"
|
|
285
|
+
"$ROOT/packages/piagent-webui/gateway/gateway-protocol-service.ts"
|
|
286
|
+
"$ROOT/packages/piagent-webui/gateway/gateway-session-stream.ts"
|
|
287
|
+
"$ROOT/packages/piagent-webui/gateway/pi-host.ts"
|
|
288
|
+
"$ROOT/packages/piagent-webui/gateway/profile-state.ts"
|
|
289
|
+
"$ROOT/packages/piagent-webui/gateway/project-registry.ts"
|
|
290
|
+
"$ROOT/packages/piagent-webui/gateway/native-project-picker.ts"
|
|
291
|
+
"$ROOT/packages/piagent-webui/gateway/provider-auth-broker.ts"
|
|
292
|
+
"$ROOT/packages/piagent-webui/gateway/mcp-auth-broker.ts"
|
|
293
|
+
"$ROOT/tests/piagent-webui-mcp-auth.test.mjs"
|
|
294
|
+
"$ROOT/packages/piagent-webui/gateway/session-catalog.ts"
|
|
295
|
+
"$ROOT/packages/piagent-webui/gateway/session-command-controller.ts"
|
|
296
|
+
"$ROOT/packages/piagent-webui/gateway/session-command-store.ts"
|
|
297
|
+
"$ROOT/packages/piagent-webui/gateway/session-lease-store.ts"
|
|
298
|
+
"$ROOT/packages/piagent-webui/gateway/session-metadata-store.ts"
|
|
299
|
+
"$ROOT/packages/piagent-webui/gateway/session-runtime-supervisor.ts"
|
|
300
|
+
"$ROOT/packages/piagent-webui/server/gateway-websocket.ts"
|
|
301
|
+
"$ROOT/packages/piagent-webui/extension/piagent-webui.ts"
|
|
302
|
+
"$ROOT/packages/piagent-webui/extension/review-controller.ts"
|
|
303
|
+
"$ROOT/packages/piagent-webui/extension/source-mutation-controller.ts"
|
|
304
|
+
"$ROOT/packages/piagent-webui/extension/source-revert-controller.ts"
|
|
305
|
+
"$ROOT/packages/piagent-webui/extension/source-open-controller.ts"
|
|
306
|
+
"$ROOT/packages/piagent-webui/extension/vscode-handoff.ts"
|
|
307
|
+
"$ROOT/packages/piagent-core/runtime/inspection/review-state-contract.ts"
|
|
308
|
+
"$ROOT/packages/piagent-core/runtime/inspection/mcp-control.ts"
|
|
309
|
+
"$ROOT/packages/piagent-core/runtime/inspection/review-state-projection.ts"
|
|
310
|
+
"$ROOT/packages/piagent-core/runtime/inspection/review-state-store.ts"
|
|
311
|
+
"$ROOT/packages/piagent-core/runtime/inspection/source-mutation-projection.ts"
|
|
312
|
+
"$ROOT/packages/piagent-core/runtime/inspection/source-mutation-store.ts"
|
|
313
|
+
"$ROOT/packages/piagent-core/runtime/inspection/source-revert-projection.ts"
|
|
314
|
+
"$ROOT/packages/piagent-core/runtime/inspection/source-handoff-store.ts"
|
|
315
|
+
"$ROOT/packages/piagent-core/runtime/inspection/source-open-target.ts"
|
|
316
|
+
"$ROOT/packages/piagent-core/runtime/inspection/commit-summary-projection.ts"
|
|
317
|
+
"$ROOT/packages/piagent-core/runtime/inspection/task-run-index.ts"
|
|
318
|
+
"$ROOT/packages/piagent-core/runtime/inspection/task-recovery-timeline.ts"
|
|
319
|
+
"$ROOT/packages/piagent-core/runtime/inspection/task-compaction-history.ts"
|
|
320
|
+
"$ROOT/packages/piagent-core/runtime/inspection/context-telemetry-inspection.ts"
|
|
321
|
+
"$ROOT/packages/piagent-core/runtime/inspection/task-handoff-history.ts"
|
|
322
|
+
"$ROOT/packages/piagent-core/runtime/inspection/task-subagent-tree.ts"
|
|
323
|
+
"$ROOT/packages/piagent-webui/server/benchmark-release-monitor.ts"
|
|
324
|
+
"$ROOT/packages/piagent-webui/client/src/ReleaseMonitorPanel.tsx"
|
|
325
|
+
"$ROOT/packages/piagent-core/runtime/inspection/git-filter-safety.ts"
|
|
326
|
+
"$ROOT/packages/piagent-core/runtime/policy/source-index-transaction.ts"
|
|
327
|
+
"$ROOT/packages/piagent-core/runtime/policy/source-mutation-guard-binding.ts"
|
|
328
|
+
"$ROOT/packages/piagent-core/runtime/policy/source-mutation-guard.ts"
|
|
329
|
+
"$ROOT/packages/piagent-core/runtime/policy/source-worktree-transaction.ts"
|
|
330
|
+
"$ROOT/tests/piagent-webui-review-state.test.mjs"
|
|
331
|
+
"$ROOT/tests/piagent-webui-source-mutation.test.mjs"
|
|
332
|
+
"$ROOT/tests/piagent-webui-source-revert.test.mjs"
|
|
333
|
+
"$ROOT/tests/piagent-webui-source-open.test.mjs"
|
|
334
|
+
"$ROOT/tests/piagent-webui-commit-summary.test.mjs"
|
|
335
|
+
"$ROOT/tests/piagent-webui-mutation-invalidation.test.mjs"
|
|
336
|
+
"$ROOT/tests/piagent-webui-task-index.test.mjs"
|
|
337
|
+
"$ROOT/tests/piagent-webui-task-timeline.test.mjs"
|
|
338
|
+
"$ROOT/tests/piagent-webui-recovery-history.test.mjs"
|
|
339
|
+
"$ROOT/tests/piagent-webui-handoff-history.test.mjs"
|
|
340
|
+
"$ROOT/tests/piagent-webui-subagent-tree.test.mjs"
|
|
341
|
+
"$ROOT/tests/piagent-webui-release-monitor.test.mjs"
|
|
342
|
+
"$ROOT/tests/piagent-webui-long-task-scale.test.mjs"
|
|
343
|
+
"$ROOT/governance/piagent-webui/decisions/WUI4-06-benchmark-release-monitoring.md"
|
|
344
|
+
"$ROOT/governance/piagent-webui/decisions/WUI4-07-retention-corrupt-scale-gate.md"
|
|
345
|
+
"$ROOT/governance/piagent-webui/decisions/WUI4-08-independent-webui4-gate.md"
|
|
346
|
+
"$ROOT/packages/piagent-webui/extension/same-session-bridge.ts"
|
|
347
|
+
"$ROOT/packages/piagent-webui/extension/held-message-queue.ts"
|
|
348
|
+
"$ROOT/packages/piagent-webui/extension/session-options-controller.ts"
|
|
349
|
+
"$ROOT/packages/piagent-webui/extension/session-stream-adapter.ts"
|
|
350
|
+
"$ROOT/packages/piagent-webui/extension/attachment-store.ts"
|
|
351
|
+
"$ROOT/packages/piagent-webui/extension/lifecycle-controller.ts"
|
|
352
|
+
"$ROOT/packages/piagent-webui/extension/lifecycle-event-adapter.ts"
|
|
353
|
+
"$ROOT/packages/piagent-core/runtime/inspection/approval-broker.ts"
|
|
354
|
+
"$ROOT/packages/piagent-core/runtime/inspection/task-control-journal.ts"
|
|
355
|
+
"$ROOT/tests/piagent-webui-production-bridge.test.mjs"
|
|
356
|
+
"$ROOT/tests/piagent-webui-bridge-message-e2e.test.mjs"
|
|
357
|
+
"$ROOT/tests/piagent-webui-transcript-projection.test.mjs"
|
|
358
|
+
"$ROOT/tests/piagent-webui-session-stream.test.mjs"
|
|
359
|
+
"$ROOT/tests/piagent-webui-chat-client.test.mjs"
|
|
360
|
+
"$ROOT/tests/piagent-webui-held-message-queue.test.mjs"
|
|
361
|
+
"$ROOT/tests/piagent-webui-session-options.test.mjs"
|
|
362
|
+
"$ROOT/tests/piagent-webui-attachment-store.test.mjs"
|
|
363
|
+
"$ROOT/tests/piagent-webui-approval-broker.test.mjs"
|
|
364
|
+
"$ROOT/tests/piagent-webui-lifecycle-control.test.mjs"
|
|
365
|
+
"$ROOT/tests/piagent-webui-lifecycle-client.test.mjs"
|
|
366
|
+
"$ROOT/scripts/piagent-webui-launcher.mjs"
|
|
367
|
+
"$ROOT/tests/piagent-webui-package-boundary.test.mjs"
|
|
368
|
+
"$ROOT/tests/helpers/piagent-webui-build.mjs"
|
|
369
|
+
"$ROOT/tests/piagent-webui-loopback-server.test.mjs"
|
|
370
|
+
"$ROOT/tests/piagent-webui-project-registry.test.mjs"
|
|
371
|
+
"$ROOT/tests/piagent-webui-provider-auth.test.mjs"
|
|
372
|
+
"$ROOT/tests/piagent-webui-session-hub.e2e.mjs"
|
|
373
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-11-session-first-mui-shell.md"
|
|
374
|
+
"$ROOT/tests/piagent-webui-read-routes-sse.test.mjs"
|
|
375
|
+
"$ROOT/tests/piagent-webui-task-dashboard.test.mjs"
|
|
376
|
+
"$ROOT/tests/piagent-webui-source-diff-client.test.mjs"
|
|
377
|
+
"$ROOT/tests/piagent-webui-activity-client.test.mjs"
|
|
378
|
+
"$ROOT/tests/piagent-webui-evidence-client.test.mjs"
|
|
379
|
+
"$ROOT/tests/piagent-webui-accessibility-client.test.mjs"
|
|
380
|
+
"$ROOT/tests/piagent-webui-isolation.test.mjs"
|
|
381
|
+
"$ROOT/tests/piagent-webui-launcher-integration.test.mjs"
|
|
382
|
+
"$ROOT/tests/piagent-webui-browser.e2e.mjs"
|
|
383
|
+
"$ROOT/tests/piagent-webui-session-hub.e2e.mjs"
|
|
384
|
+
"$ROOT/tests/piagent-webui-session-hub-schema.test.mjs"
|
|
385
|
+
"$ROOT/tests/piagent-webui-session-runtime-spike.test.mjs"
|
|
386
|
+
"$ROOT/tests/piagent-webui-gateway.test.mjs"
|
|
387
|
+
"$ROOT/tests/piagent-webui-session-metadata.test.mjs"
|
|
388
|
+
"$ROOT/tests/piagent-webui-session-lease-runtime.test.mjs"
|
|
389
|
+
"$ROOT/tests/piagent-webui-session-command-admission.test.mjs"
|
|
390
|
+
"$ROOT/tests/piagent-webui-gateway-transport.test.mjs"
|
|
391
|
+
"$ROOT/scripts/piagent-dashboard.mjs"
|
|
392
|
+
"$ROOT/governance/piagent-webui/40-session-hub-master-plan.md"
|
|
393
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-01-session-hub-product-contract.md"
|
|
394
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-02-gateway-wire-contract.md"
|
|
395
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-03-pi-sdk-session-runtime-proof.md"
|
|
396
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-04-gateway-lease-crash-threat-model.md"
|
|
397
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-05-one-per-profile-gateway-cli.md"
|
|
398
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-06-bounded-session-catalog-metadata.md"
|
|
399
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-07-authenticated-gateway-transport.md"
|
|
400
|
+
"$ROOT/governance/piagent-webui/decisions/WUI5-08-owner-lease-runtime-supervisor.md"
|
|
183
401
|
"$ROOT/packs/engineering-base/pack.json"
|
|
184
402
|
"$ROOT/packs/engineering-base/recipes/bounded-change.json"
|
|
185
403
|
"$ROOT/packs/web-delivery/pack.json"
|
|
@@ -306,6 +524,8 @@ const jsonFiles = [
|
|
|
306
524
|
".pi/piagent-profile.json",
|
|
307
525
|
".pi/piagent-profile.lock.json",
|
|
308
526
|
"packages/piagent-core/package.json",
|
|
527
|
+
"packages/piagent-webui/package.json",
|
|
528
|
+
"packages/piagent-webui/tsconfig.json",
|
|
309
529
|
"packages/piagent-core/policies/base-policy.json",
|
|
310
530
|
"adapters/generic/profile.json",
|
|
311
531
|
"adapters/backend-api/profile.json",
|
|
@@ -332,6 +552,35 @@ const jsonFiles = [
|
|
|
332
552
|
"schemas/eval-scenario.schema.json",
|
|
333
553
|
"schemas/action-proposal.schema.json",
|
|
334
554
|
"schemas/benchmark-assurance-evidence.schema.json",
|
|
555
|
+
"schemas/piagent-webui/catalog-v1.json",
|
|
556
|
+
"schemas/piagent-webui/common-v1.schema.json",
|
|
557
|
+
"schemas/piagent-webui/snapshot-v1.schema.json",
|
|
558
|
+
"schemas/piagent-webui/runtime-event-v2.schema.json",
|
|
559
|
+
"schemas/piagent-webui/source-change-v1.schema.json",
|
|
560
|
+
"schemas/piagent-webui/diff-v1.schema.json",
|
|
561
|
+
"schemas/piagent-webui/review-state-v1.schema.json",
|
|
562
|
+
"schemas/piagent-webui/source-mutation-v1.schema.json",
|
|
563
|
+
"schemas/piagent-webui/source-revert-v1.schema.json",
|
|
564
|
+
"schemas/piagent-webui/commit-summary-v1.schema.json",
|
|
565
|
+
"schemas/piagent-webui/task-index-v1.schema.json",
|
|
566
|
+
"schemas/piagent-webui/task-timeline-v1.schema.json",
|
|
567
|
+
"schemas/piagent-webui/recovery-history-v1.schema.json",
|
|
568
|
+
"schemas/piagent-webui/handoff-history-v1.schema.json",
|
|
569
|
+
"schemas/piagent-webui/subagent-tree-v1.schema.json",
|
|
570
|
+
"schemas/piagent-webui/release-monitor-v1.schema.json",
|
|
571
|
+
"schemas/piagent-webui/transcript-v1.schema.json",
|
|
572
|
+
"schemas/piagent-webui/queue-v1.schema.json",
|
|
573
|
+
"schemas/piagent-webui/model-catalog-v1.schema.json",
|
|
574
|
+
"schemas/piagent-webui/control-command-v1.schema.json",
|
|
575
|
+
"schemas/piagent-webui/approval-v1.schema.json",
|
|
576
|
+
"schemas/piagent-webui/capabilities-v1.schema.json",
|
|
577
|
+
"schemas/piagent-webui/session-catalog-v1.schema.json",
|
|
578
|
+
"schemas/piagent-webui/session-command-v1.schema.json",
|
|
579
|
+
"schemas/piagent-webui/gateway-capabilities-v1.schema.json",
|
|
580
|
+
"schemas/piagent-webui/gateway-protocol-v1.schema.json",
|
|
581
|
+
"schemas/task-baseline-manifest.schema.json",
|
|
582
|
+
"schemas/mutation-provenance-record.schema.json",
|
|
583
|
+
"schemas/verifier-file-snapshot.schema.json",
|
|
335
584
|
"packs/engineering-base/pack.json",
|
|
336
585
|
"packs/engineering-base/recipes/bounded-change.json",
|
|
337
586
|
"packs/web-delivery/pack.json",
|
|
@@ -653,6 +902,8 @@ node --check "$ROOT/packages/piagent-core/capabilities/capability-core.js" >/dev
|
|
|
653
902
|
node --check "$ROOT/packages/piagent-core/capabilities/capability-sources.js" >/dev/null
|
|
654
903
|
node --check "$ROOT/scripts/capability-catalog.mjs" >/dev/null
|
|
655
904
|
node --check "$ROOT/scripts/piagent-cli.mjs" >/dev/null
|
|
905
|
+
node --check "$ROOT/scripts/piagent-webui-launcher.mjs" >/dev/null
|
|
906
|
+
node --check "$ROOT/playwright.webui.config.mjs" >/dev/null
|
|
656
907
|
node --check "$ROOT/scripts/benchmark-runner.mjs" >/dev/null
|
|
657
908
|
node --check "$ROOT/scripts/context-engine.mjs" >/dev/null
|
|
658
909
|
node --check "$ROOT/scripts/pi-usage-history.mjs" >/dev/null
|
|
@@ -664,7 +915,13 @@ node --check "$ROOT/scripts/build-docs-site.mjs" >/dev/null
|
|
|
664
915
|
node --check "$ROOT/scripts/preview-docs-site.mjs" >/dev/null
|
|
665
916
|
node "$ROOT/scripts/check-architecture.mjs" >/dev/null
|
|
666
917
|
node "$ROOT/scripts/check-doc-languages.mjs" >/dev/null
|
|
918
|
+
# check-doc-languages proves the peer exists. This proves neither side moved
|
|
919
|
+
# without the other, which is the way a translation actually goes stale.
|
|
920
|
+
node "$ROOT/scripts/verify-translation-pairing.mjs" >/dev/null
|
|
921
|
+
node "$ROOT/scripts/check-third-party-neutrality.mjs" >/dev/null
|
|
922
|
+
run_quietly "npm run build --workspace @piagent/webui" npm run build --workspace @piagent/webui
|
|
667
923
|
run_quietly "npm test" npm test
|
|
924
|
+
run_quietly "npm run test:webui:e2e" npm run test:webui:e2e
|
|
668
925
|
if [[ -x "$ROOT/node_modules/.bin/tsc" ]]; then
|
|
669
926
|
run_quietly "npm run typecheck" npm run typecheck
|
|
670
927
|
fi
|
|
@@ -74,7 +74,10 @@ if (!version?.includes("-") && rootPackage.publishConfig?.tag !== undefined) fai
|
|
|
74
74
|
// something different from the manifest on the registry.
|
|
75
75
|
if (rootPackage.repository?.url !== "git+https://github.com/Vt-mmm/piagent.git") fail("root package repository URL is not canonical");
|
|
76
76
|
if (corePackage.repository?.url !== rootPackage.repository.url) fail("core package repository URL does not match the root package");
|
|
77
|
-
|
|
77
|
+
const runtimeDependencies = rootPackage.dependencies ?? {};
|
|
78
|
+
if (JSON.stringify(runtimeDependencies) !== JSON.stringify({ ws: "8.21.3" })) {
|
|
79
|
+
fail("root package runtime dependencies must contain only the pinned local Gateway WebSocket transport");
|
|
80
|
+
}
|
|
78
81
|
if (packageLock.name !== rootPackage.name || packageLock.packages?.[""]?.name !== rootPackage.name) fail("package-lock root identity does not match package.json");
|
|
79
82
|
if (!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(version ?? "")) fail("package.json version is not a supported release version");
|
|
80
83
|
if (corePackage.version !== version) fail("root and core package versions do not match");
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Fails when one side of a bilingual pair has moved and the other has not.
|
|
3
|
+
//
|
|
4
|
+
// The existing language gate proves the Vietnamese peer exists. Existing is not
|
|
5
|
+
// the same as saying the same thing: editing docs/en/architecture.md and
|
|
6
|
+
// forgetting docs/vi/architecture.md passes every check in this repository,
|
|
7
|
+
// and the reader of the stale side has no way to know.
|
|
8
|
+
//
|
|
9
|
+
// So each pair carries the content digest of both sides as of the last time
|
|
10
|
+
// somebody confirmed them consistent. A digest that no longer matches means the
|
|
11
|
+
// record is stale, and the fix is to bring the other side along and re-record.
|
|
12
|
+
//
|
|
13
|
+
// What this cannot do is read the two documents and decide they agree. It is a
|
|
14
|
+
// record that a human looked, nothing more -- which is worth exactly as much as
|
|
15
|
+
// the honesty of whoever runs --write.
|
|
16
|
+
|
|
17
|
+
import { createHash } from "node:crypto";
|
|
18
|
+
import fs from "node:fs";
|
|
19
|
+
import path from "node:path";
|
|
20
|
+
import { fileURLToPath } from "node:url";
|
|
21
|
+
|
|
22
|
+
const repositoryRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
23
|
+
|
|
24
|
+
export function contentDigest(text) {
|
|
25
|
+
// Newline-normalised so a checkout on another platform does not read as drift.
|
|
26
|
+
return createHash("sha256").update(text.replace(/\r\n/g, "\n"), "utf8").digest("hex").slice(0, 40);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function digestForFile(root, relative) {
|
|
30
|
+
const file = path.join(root, relative);
|
|
31
|
+
if (!fs.existsSync(file)) return null;
|
|
32
|
+
return contentDigest(fs.readFileSync(file, "utf8"));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @param {{root?: string, manifest?: object}} options
|
|
37
|
+
* @returns {{ok: boolean, checked: number, unrecorded: string[], drifted: object[], stale: object[], missing: string[]}}
|
|
38
|
+
*/
|
|
39
|
+
export function inspectPairing({ root = repositoryRoot, manifest } = {}) {
|
|
40
|
+
const languages = manifest
|
|
41
|
+
?? JSON.parse(fs.readFileSync(path.join(root, "docs", "languages.json"), "utf8"));
|
|
42
|
+
const result = { ok: true, checked: 0, unrecorded: [], drifted: [], stale: [], missing: [] };
|
|
43
|
+
|
|
44
|
+
for (const pair of languages.pairs ?? []) {
|
|
45
|
+
const current = { en: digestForFile(root, pair.en), vi: digestForFile(root, pair.vi) };
|
|
46
|
+
for (const side of ["en", "vi"]) {
|
|
47
|
+
if (current[side] === null) result.missing.push(`${pair.topic}: ${pair[side]} does not exist`);
|
|
48
|
+
}
|
|
49
|
+
if (current.en === null || current.vi === null) { result.ok = false; continue; }
|
|
50
|
+
|
|
51
|
+
result.checked += 1;
|
|
52
|
+
const recorded = pair.consistentAt;
|
|
53
|
+
if (!recorded) { result.unrecorded.push(pair.topic); result.ok = false; continue; }
|
|
54
|
+
|
|
55
|
+
const movedSides = ["en", "vi"].filter((side) => recorded[side] !== current[side]);
|
|
56
|
+
if (movedSides.length === 0) continue;
|
|
57
|
+
result.ok = false;
|
|
58
|
+
// One side moving alone is the failure this exists for: the other side is
|
|
59
|
+
// now describing something that changed. Both moving is likely a paired
|
|
60
|
+
// edit, but nothing here can prove it, so it still needs re-recording.
|
|
61
|
+
const entry = { topic: pair.topic, moved: movedSides, en: pair.en, vi: pair.vi };
|
|
62
|
+
if (movedSides.length === 1) result.drifted.push(entry);
|
|
63
|
+
else result.stale.push(entry);
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function record(root) {
|
|
69
|
+
const file = path.join(root, "docs", "languages.json");
|
|
70
|
+
const languages = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
71
|
+
for (const pair of languages.pairs ?? []) {
|
|
72
|
+
const en = digestForFile(root, pair.en);
|
|
73
|
+
const vi = digestForFile(root, pair.vi);
|
|
74
|
+
if (en === null || vi === null) continue;
|
|
75
|
+
pair.consistentAt = { en, vi };
|
|
76
|
+
}
|
|
77
|
+
fs.writeFileSync(file, `${JSON.stringify(languages, null, 2)}\n`);
|
|
78
|
+
return languages.pairs.length;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const invokedDirectly = process.argv[1]
|
|
82
|
+
&& path.resolve(process.argv[1]) === path.resolve(new URL(import.meta.url).pathname);
|
|
83
|
+
|
|
84
|
+
if (invokedDirectly) {
|
|
85
|
+
const write = process.argv.includes("--write");
|
|
86
|
+
if (process.argv.includes("-h") || process.argv.includes("--help")) {
|
|
87
|
+
console.log(`Usage:
|
|
88
|
+
node scripts/verify-translation-pairing.mjs [--write]
|
|
89
|
+
|
|
90
|
+
Checks that neither side of a bilingual documentation pair has moved since the
|
|
91
|
+
two were last confirmed consistent. --write re-records the current state, which
|
|
92
|
+
is a claim that you brought both sides into line.`);
|
|
93
|
+
process.exit(0);
|
|
94
|
+
}
|
|
95
|
+
if (write) {
|
|
96
|
+
console.log(`Recorded ${record(repositoryRoot)} pairs as consistent.`);
|
|
97
|
+
process.exit(0);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const result = inspectPairing();
|
|
101
|
+
if (result.ok) {
|
|
102
|
+
console.log(`PASS: ${result.checked} bilingual pairs match their recorded state`);
|
|
103
|
+
process.exit(0);
|
|
104
|
+
}
|
|
105
|
+
for (const line of result.missing) console.error(`FAIL: ${line}`);
|
|
106
|
+
for (const topic of result.unrecorded) {
|
|
107
|
+
console.error(`FAIL: ${topic} has no recorded consistent state.`);
|
|
108
|
+
}
|
|
109
|
+
for (const entry of result.drifted) {
|
|
110
|
+
const moved = entry.moved[0];
|
|
111
|
+
const other = moved === "en" ? "vi" : "en";
|
|
112
|
+
console.error(`FAIL: ${entry.topic}: ${entry[moved]} changed and ${entry[other]} did not.`);
|
|
113
|
+
console.error(` Bring ${entry[other]} along, then re-record.`);
|
|
114
|
+
}
|
|
115
|
+
for (const entry of result.stale) {
|
|
116
|
+
console.error(`FAIL: ${entry.topic}: both sides changed, so the record no longer says anything.`);
|
|
117
|
+
console.error(` Confirm they still agree, then re-record.`);
|
|
118
|
+
}
|
|
119
|
+
console.error("\nRe-record with: node scripts/verify-translation-pairing.mjs --write");
|
|
120
|
+
process.exit(1);
|
|
121
|
+
}
|