@timurproko/a1 0.1.8-dev.157 → 0.1.8-dev.214

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.
Files changed (171) hide show
  1. package/README.md +32 -0
  2. package/bin/cli.js +2 -2
  3. package/bin/sync-pi-tui-proxy.js +1 -1
  4. package/bin/ui.js +18 -3
  5. package/dist/cli/dispatch.js +3 -3
  6. package/dist/cli/packages.js +1 -1
  7. package/dist/cli/version-stats.js +3 -3
  8. package/dist/composition/owned-ui.d.ts +4 -1
  9. package/dist/composition/owned-ui.js +9 -6
  10. package/dist/composition/settings-route-host.js +6 -4
  11. package/dist/contracts/agent-engine/capability-ports.d.ts +2 -2
  12. package/dist/contracts/agent-engine/domain-validation.js +22 -4
  13. package/dist/contracts/agent-engine/domain.d.ts +17 -0
  14. package/dist/contracts/owned-ui/model.d.ts +8 -0
  15. package/dist/contracts/owned-ui/validation.js +11 -0
  16. package/dist/features/launch/development-launch.js +1 -1
  17. package/dist/features/owned-ui/customization.d.ts +2 -0
  18. package/dist/features/owned-ui/customization.js +2 -0
  19. package/dist/features/owned-ui/diagnostics.d.ts +1 -0
  20. package/dist/features/owned-ui/diagnostics.js +1 -0
  21. package/dist/features/owned-ui/index.d.ts +1 -0
  22. package/dist/features/owned-ui/index.js +1 -0
  23. package/dist/features/owned-ui/project-trust-prompt.d.ts +25 -0
  24. package/dist/features/owned-ui/project-trust-prompt.js +149 -0
  25. package/dist/features/owned-ui/settings-app.js +69 -44
  26. package/dist/features/workspace/reducer.d.ts +1 -0
  27. package/dist/features/workspace/reducer.js +1 -0
  28. package/dist/features/workspace/router.d.ts +1 -0
  29. package/dist/features/workspace/router.js +1 -0
  30. package/dist/features/workspace/store.d.ts +1 -0
  31. package/dist/features/workspace/store.js +1 -0
  32. package/dist/foundation/launch-guardian/main.js +1 -1
  33. package/dist/foundation/native-host-protocol/codec.d.ts +2 -0
  34. package/dist/foundation/native-host-protocol/codec.js +2 -0
  35. package/dist/foundation/process-containment/linux-process-inspector.d.ts +1 -0
  36. package/dist/foundation/process-containment/linux-process-inspector.js +1 -0
  37. package/dist/foundation/process-containment/native-guardian-containment.d.ts +1 -0
  38. package/dist/foundation/process-containment/native-guardian-containment.js +1 -0
  39. package/dist/foundation/process-containment/windows-process-inspector.d.ts +1 -0
  40. package/dist/foundation/process-containment/windows-process-inspector.js +1 -0
  41. package/dist/foundation/protocol/client.d.ts +1 -0
  42. package/dist/foundation/protocol/client.js +1 -0
  43. package/dist/foundation/protocol/messages.d.ts +1 -0
  44. package/dist/foundation/protocol/messages.js +1 -0
  45. package/dist/foundation/release/bootstrap.js +6 -6
  46. package/dist/foundation/release/cohort-state.d.ts +1 -0
  47. package/dist/foundation/release/cohort-state.js +1 -0
  48. package/dist/foundation/release/release-gc.js +1 -1
  49. package/dist/foundation/release/release.js +1 -1
  50. package/dist/foundation/release/update-transaction.d.ts +1 -0
  51. package/dist/foundation/release/update-transaction.js +1 -0
  52. package/dist/foundation/release/update.js +12 -12
  53. package/dist/foundation/storage/control-store.d.ts +1 -0
  54. package/dist/foundation/storage/control-store.js +1 -0
  55. package/dist/foundation/structured-agent-runtime/backpressure.d.ts +1 -0
  56. package/dist/foundation/structured-agent-runtime/backpressure.js +1 -0
  57. package/dist/foundation/structured-agent-runtime/commands.d.ts +1 -0
  58. package/dist/foundation/structured-agent-runtime/commands.js +1 -0
  59. package/dist/foundation/structured-agent-runtime/reconnection.d.ts +1 -0
  60. package/dist/foundation/structured-agent-runtime/reconnection.js +1 -0
  61. package/dist/foundation/structured-agent-runtime/state.d.ts +1 -0
  62. package/dist/foundation/structured-agent-runtime/state.js +1 -0
  63. package/dist/foundation/supervision/main.js +1 -1
  64. package/dist/foundation/supervision/server.d.ts +1 -0
  65. package/dist/foundation/supervision/server.js +4 -6
  66. package/dist/integrations/pi/components/conformance.d.ts +1 -0
  67. package/dist/integrations/pi/components/conformance.js +1 -0
  68. package/dist/integrations/pi/components/shell-components.d.ts +1 -0
  69. package/dist/integrations/pi/components/shell-components.js +1 -0
  70. package/dist/integrations/pi/components/shell-editor-autocomplete.js +10 -0
  71. package/dist/integrations/pi/components/shell-footer-status.d.ts +1 -1
  72. package/dist/integrations/pi/components/shell-footer-status.js +19 -13
  73. package/dist/integrations/pi/components/shell-presenters-info.d.ts +36 -0
  74. package/dist/integrations/pi/components/shell-presenters-info.js +78 -0
  75. package/dist/integrations/pi/components/shell-presenters-transcript.d.ts +3 -36
  76. package/dist/integrations/pi/components/shell-presenters-transcript.js +88 -128
  77. package/dist/integrations/pi/components/shell-shared-facade.d.ts +11 -1
  78. package/dist/integrations/pi/components/shell-shared-facade.js +1 -1
  79. package/dist/integrations/pi/engine/adapter.d.ts +22 -4
  80. package/dist/integrations/pi/engine/adapter.js +220 -70
  81. package/dist/integrations/pi/engine/conformance.d.ts +2 -0
  82. package/dist/integrations/pi/engine/conformance.js +2 -0
  83. package/dist/integrations/pi/engine/http-dispatcher.d.ts +4 -0
  84. package/dist/integrations/pi/engine/http-dispatcher.js +25 -0
  85. package/dist/integrations/pi/engine/index.d.ts +3 -0
  86. package/dist/integrations/pi/engine/index.js +3 -0
  87. package/dist/integrations/pi/engine/model-auth-integration.d.ts +1 -0
  88. package/dist/integrations/pi/engine/model-auth-integration.js +1 -0
  89. package/dist/integrations/pi/engine/package-integration.js +1 -1
  90. package/dist/integrations/pi/engine/project-trust-preflight.d.ts +22 -0
  91. package/dist/integrations/pi/engine/project-trust-preflight.js +50 -0
  92. package/dist/integrations/pi/engine/resource-extension-integration.d.ts +1 -0
  93. package/dist/integrations/pi/engine/resource-extension-integration.js +1 -0
  94. package/dist/integrations/pi/engine/runtime-integration.d.ts +16 -1
  95. package/dist/integrations/pi/engine/runtime-integration.js +34 -4
  96. package/dist/integrations/pi/engine/session-integration.d.ts +1 -0
  97. package/dist/integrations/pi/engine/session-integration.js +2 -1
  98. package/dist/integrations/pi/engine/settings-effects.d.ts +66 -0
  99. package/dist/integrations/pi/engine/settings-effects.js +249 -0
  100. package/dist/integrations/pi/engine/settings-integration.d.ts +14 -26
  101. package/dist/integrations/pi/engine/settings-integration.js +102 -108
  102. package/dist/integrations/pi/engine/workflow-controllers.d.ts +2 -1
  103. package/dist/integrations/pi/engine/workflow-controllers.js +1 -0
  104. package/dist/integrations/pi/session-ui/clipboard-image.d.ts +11 -0
  105. package/dist/integrations/pi/session-ui/clipboard-image.js +29 -0
  106. package/dist/integrations/pi/session-ui/index.d.ts +1 -0
  107. package/dist/integrations/pi/session-ui/index.js +1 -0
  108. package/dist/integrations/pi/session-ui/prompt-chips.js +6 -2
  109. package/dist/integrations/pi/session-ui/session-shell-root.d.ts +39 -4
  110. package/dist/integrations/pi/session-ui/session-shell-root.js +215 -80
  111. package/dist/integrations/pi/session-ui/session-shell.d.ts +10 -1
  112. package/dist/integrations/pi/session-ui/session-shell.js +256 -45
  113. package/dist/integrations/pi/session-ui/session-viewport-controller.d.ts +5 -0
  114. package/dist/integrations/pi/session-ui/session-viewport-controller.js +76 -11
  115. package/dist/integrations/pi/session-ui/stream-presentation-coalescer.d.ts +29 -0
  116. package/dist/integrations/pi/session-ui/stream-presentation-coalescer.js +79 -0
  117. package/dist/integrations/pi/session-ui/system-clipboard.d.ts +9 -0
  118. package/dist/integrations/pi/session-ui/system-clipboard.js +38 -9
  119. package/dist/integrations/pi/tui-runtime/adapter.d.ts +6 -0
  120. package/dist/integrations/pi/tui-runtime/adapter.js +166 -8
  121. package/dist/integrations/pi/tui-runtime/contracts.d.ts +25 -0
  122. package/dist/integrations/pi/tui-runtime/damage-aware-terminal.d.ts +63 -0
  123. package/dist/integrations/pi/tui-runtime/damage-aware-terminal.js +240 -0
  124. package/dist/integrations/pi/tui-runtime/index.d.ts +2 -0
  125. package/dist/integrations/pi/tui-runtime/index.js +2 -0
  126. package/dist/integrations/pi/tui-runtime/input-presentation-coordinator.d.ts +39 -0
  127. package/dist/integrations/pi/tui-runtime/input-presentation-coordinator.js +139 -0
  128. package/dist/native/darwin-arm64/manifest.json +1 -1
  129. package/dist/native/linux-x64/manifest.json +1 -1
  130. package/dist/native/win32-x64/manifest.json +2 -2
  131. package/dist/native/win32-x64/process-guardian.exe +0 -0
  132. package/dist/ui/apps/host.js +5 -9
  133. package/dist/ui/apps/registry.d.ts +1 -0
  134. package/dist/ui/apps/registry.js +1 -0
  135. package/dist/ui/components/dialog-panel.js +5 -3
  136. package/dist/ui/components/frame.d.ts +1 -0
  137. package/dist/ui/components/frame.js +1 -0
  138. package/dist/ui/components/index.d.ts +1 -0
  139. package/dist/ui/components/index.js +1 -0
  140. package/dist/ui/components/line-input.d.ts +1 -6
  141. package/dist/ui/components/line-input.js +4 -9
  142. package/dist/ui/components/list-view.d.ts +0 -6
  143. package/dist/ui/components/list-view.js +14 -7
  144. package/dist/ui/components/progress-status.d.ts +2 -0
  145. package/dist/ui/components/progress-status.js +4 -0
  146. package/dist/ui/components/scrollbar.js +1 -1
  147. package/dist/ui/components/shortcuts.d.ts +1 -0
  148. package/dist/ui/components/shortcuts.js +1 -0
  149. package/dist/ui/components/spans.d.ts +2 -5
  150. package/dist/ui/components/spans.js +28 -8
  151. package/dist/ui/components/surface.d.ts +0 -5
  152. package/dist/ui/components/surface.js +1 -5
  153. package/dist/ui/components/text-selection.d.ts +10 -1
  154. package/dist/ui/components/text-selection.js +96 -29
  155. package/dist/ui/components/text.js +3 -3
  156. package/dist/ui/components/transcript-viewport.d.ts +42 -0
  157. package/dist/ui/components/transcript-viewport.js +287 -39
  158. package/dist/ui/settings/sections.d.ts +6 -19
  159. package/dist/ui/settings/sections.js +17 -15
  160. package/dist/ui/settings/session.d.ts +8 -18
  161. package/dist/ui/settings/session.js +60 -52
  162. package/dist/ui/settings/store.d.ts +1 -0
  163. package/dist/ui/settings/store.js +2 -1
  164. package/docs/architecture/code-documentation.md +77 -0
  165. package/docs/architecture/project-structure.md +15 -1
  166. package/docs/architecture/ui-reference-provenance.md +23 -3
  167. package/docs/ci-release-runbook.md +98 -7
  168. package/docs/manual-owned-ui-checkpoint.md +28 -1
  169. package/docs/manual-terminal-colour-check.md +4 -3
  170. package/docs/repository-governance-live-acceptance.md +77 -0
  171. package/package.json +11 -3
@@ -0,0 +1,77 @@
1
+ # Repository governance live acceptance
2
+
3
+ ## Implementation lifecycle
4
+
5
+ - PR #165 was manually squash-merged by `timurproko` from validated head
6
+ `45aab61c5e4568d3d26dc970f76e9ec86918f323` to `develop` commit
7
+ `e4cdc67555e9f25d03f251be19baa8fc446ac313`.
8
+ - Cleanup run `33185942656` used trusted `develop` policy with `contents: write` only
9
+ and reported `already-absent`; the implementation branch remained absent.
10
+ - The read-only live governance report matched every declared field after merge.
11
+
12
+ ## Acceptance defect and correction
13
+
14
+ - Initial OpenSpec probe PR #166 automatically squash-merged validated head
15
+ `c30c0a091a6a6a727057befcdd775422988be382` to
16
+ `f8d60080cfd9925b33a19a5d40c707637ac00b08`, but GitHub suppressed the recursive
17
+ close-event workflow because integration was authored with `GITHUB_TOKEN`.
18
+ - Its exact unchanged branch remained, proving the first implementation incomplete.
19
+ The branch was manually deleted only after its expected SHA and lack of an open PR
20
+ were reverified.
21
+ - Corrective PR #167 was manually squash-merged from validated head
22
+ `3a09042386df2501accc1eec3b424b94ae84daa4` to
23
+ `e8d639985a811f01cd5daeb027db5069d1724596`. Cleanup run `33188206793`
24
+ succeeded with `already-absent`.
25
+
26
+ ## Automatic OpenSpec acceptance
27
+
28
+ - PR #168 contained only `openspec/**` paths.
29
+ - Development validation run `33188285639` passed for exact head
30
+ `6678d9237ca7c4109beaed0d97d5fb1183fe5f97` without product tests.
31
+ - `github-actions` automatically squash-merged it to
32
+ `c2fa730a4b070f9f6717329c24158def5c766f11`.
33
+ - Trusted documentation reconciliation run `33188329123` reported `deleted` for the
34
+ same expected head SHA, and the remote branch was verified absent.
35
+
36
+ ## Automatic root README acceptance
37
+
38
+ - PR #169 changed only root `README.md`.
39
+ - Development validation run `33188400573` passed for exact head
40
+ `165c5159031d80059c4d93c36c6d10113ec7ba8e` without product tests.
41
+ - `github-actions` automatically squash-merged it to
42
+ `0180088a42b7cdacaf84ec66ff5a87be1a697155`.
43
+ - Trusted documentation reconciliation run `33188434277` reported `deleted` for the
44
+ same expected head SHA, and the remote branch was verified absent.
45
+
46
+ ## Mixed-path manual acceptance
47
+
48
+ PR #170 combined this evidence file outside the exact automatic allowlist with an
49
+ OpenSpec task update. Development validation run `33188542485` passed for exact head
50
+ `b95bdbf08ad6db76c5fab2bfca254026a3c4bcc1` without product tests. Auto-merge
51
+ remained disabled and the pull request remained open and mergeable until `timurproko`
52
+ manually squash-merged it to `6ab1e4d29b9edec8501bac774bc755e66240ea40`.
53
+ Close-event cleanup run `33188616709` reported `already-absent`, and the remote branch
54
+ was verified absent after the explicit merge.
55
+
56
+ ## Automatic maintained-documentation acceptance
57
+
58
+ - Implementation PR #180 was manually squash-merged after required validation from
59
+ head `8f40bfaaa5e8410e77b1c9cc0667c62bc4c62d4b` to
60
+ `45a59a7b696d537a4dc8fe62000a60c20e504ab2`.
61
+ - PR #181 changes only this maintained `docs/**` file and is the live acceptance
62
+ probe for the expanded allowlist.
63
+ - Acceptance requires current-head documentation validation, automatic squash
64
+ integration without maintainer merge action, and exact-head remote branch cleanup.
65
+ Exact run and merge evidence is recorded with the completed OpenSpec change.
66
+
67
+ ## Advanced-ref refusal and final policy state
68
+
69
+ The isolated mocked-GitHub fixture executed the production shared reconciler with
70
+ expected SHA `1111111111111111111111111111111111111111` and advanced live SHA
71
+ `2222222222222222222222222222222222222222`. It returned `refused` with reason
72
+ `live branch advanced after merge` and issued zero DELETE requests. The bounded
73
+ record is archived as `evidence/advanced-ref-refusal.json`.
74
+
75
+ The final read-only live report matched all declared repository settings, Actions
76
+ policy, security capabilities, environments, protected refs, complete rulesets, and
77
+ workflow inventory with zero differences. No policy apply was run.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timurproko/a1",
3
- "version": "0.1.8-dev.157",
3
+ "version": "0.1.8-dev.214",
4
4
  "description": "Standalone terminal workspace for supervised native and managed agents",
5
5
  "type": "module",
6
6
  "packageManager": "npm@11.13.0",
@@ -27,20 +27,27 @@
27
27
  "build:process-guardian": "node scripts/development/build-process-guardian.mjs",
28
28
  "typecheck": "tsgo -p tsconfig.json --noEmit",
29
29
  "check:architecture": "node scripts/governance/check-architecture.mjs && node scripts/governance/product-identifier-policy.mjs --check && node scripts/governance/check-product-identity-boundaries.mjs && node scripts/governance/check-package-identity.mjs && node scripts/governance/check-pinned-pi-source-ledger.mjs && node scripts/governance/check-terminal-host-provenance.mjs",
30
+ "check:code-documentation": "node scripts/governance/check-code-documentation.mjs --mode full",
31
+ "check:code-documentation:changed": "node scripts/release/run-changed-documentation.mjs",
32
+ "select:validation-impact": "node scripts/release/select-validation-impact.mjs",
30
33
  "check:customization-ready": "node scripts/governance/check-owned-ui-customization-prerequisites.mjs",
31
34
  "check:deprecated": "node scripts/governance/check-deprecated-dependencies.mjs",
35
+ "check:docs-governance": "node scripts/governance/check-docs-governance.mjs",
36
+ "check:repository-governance": "node scripts/governance/check-github-repository-governance.mjs --check",
32
37
  "branches:prune": "node scripts/prune-merged-branches.mjs",
33
38
  "check": "npm run test:fast",
34
39
  "develop": "node scripts/development/develop.mjs",
35
40
  "release": "node scripts/release/release.mjs",
36
41
  "test": "npm run test:fast",
37
- "test:fast": "node scripts/release/run-validation-tier.mjs typecheck fast",
42
+ "test:fast": "node scripts/release/run-validation-tier.mjs typecheck documentation-changed fast",
38
43
  "test:scope": "node scripts/release/run-validation-tier.mjs",
39
44
  "test:full": "node scripts/release/run-validation-tier.mjs full-release",
40
45
  "test:release": "node scripts/release/run-release-gates.mjs",
41
46
  "test:terminal-host": "node scripts/development/run-terminal-host-probe.mjs",
42
47
  "test:pi-engine-conformance": "vitest run test/integrations/pi/engine/conformance.test.ts test/integrations/pi/engine/runtime-integration.test.ts test/integrations/pi/engine/session-integration.test.ts",
43
48
  "report:pi-engine-conformance": "npm run build --silent && node scripts/pi/run-pi-engine-conformance.mjs",
49
+ "report:rendering-stability": "tsx scripts/pi/report-rendering-stability.ts",
50
+ "report:input-responsiveness": "tsx scripts/pi/report-input-responsiveness.ts",
44
51
  "sync:pi-ui": "npm run update:pi-component-parity && npm run update:pi-event-frame-parity && npm run update:pi-settings-metadata",
45
52
  "update:pi-component-parity": "tsx scripts/pi/update-pi-component-parity.ts",
46
53
  "update:pi-event-frame-parity": "tsx scripts/pi/update-pi-event-frame-parity.ts",
@@ -58,7 +65,8 @@
58
65
  "chalk": "5.6.2",
59
66
  "cross-spawn": "7.0.6",
60
67
  "grok-mermaid": "0.2.2",
61
- "semver": "7.8.5"
68
+ "semver": "7.8.5",
69
+ "undici": "8.9.0"
62
70
  },
63
71
  "devDependencies": {
64
72
  "@types/cross-spawn": "6.0.6",