@quantiya/codevibe-core 2.0.1 → 2.0.3

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 (284) hide show
  1. package/dist/__tests__/prompt-parser.test.d.ts +1 -0
  2. package/dist/adapter/registry.d.ts +69 -2
  3. package/dist/appsync/__tests__/appsync-client-event-source-filter.test.d.ts +1 -0
  4. package/dist/appsync/__tests__/appsync-client-task-group.test.d.ts +1 -0
  5. package/dist/appsync/__tests__/cleanup-subscription.test.d.ts +1 -0
  6. package/dist/appsync/__tests__/coerce-awsjson-and-review-summary.test.d.ts +1 -0
  7. package/dist/appsync/__tests__/cp1f-quorum-sdk.test.d.ts +1 -0
  8. package/dist/appsync/__tests__/event-throttle.test.d.ts +1 -0
  9. package/dist/appsync/appsync-client.d.ts +621 -10
  10. package/dist/appsync/event-throttle.d.ts +28 -0
  11. package/dist/appsync/index.d.ts +3 -0
  12. package/dist/appsync/queries.d.ts +19 -0
  13. package/dist/audit-keys/index.d.ts +32 -0
  14. package/dist/auth/auth-service.d.ts +32 -2
  15. package/dist/auth/auth-telemetry.d.ts +19 -1
  16. package/dist/auth/index.d.ts +1 -0
  17. package/dist/companion-mode/__tests__/detect-parallel.test.d.ts +1 -0
  18. package/dist/companion-mode/index.d.ts +4 -3
  19. package/dist/companion-mode/persist-preference.d.ts +1 -1
  20. package/dist/config/config.d.ts +8 -1
  21. package/dist/continuation/__tests__/dirty-state-collector.test.d.ts +1 -0
  22. package/dist/continuation/__tests__/integration.test.d.ts +1 -0
  23. package/dist/continuation/__tests__/packet-reader.test.d.ts +1 -0
  24. package/dist/continuation/__tests__/packet-writer.test.d.ts +1 -0
  25. package/dist/continuation/__tests__/parity.test.d.ts +1 -0
  26. package/dist/continuation/__tests__/status-cli.test.d.ts +1 -0
  27. package/dist/continuation/dirty-state-collector.d.ts +46 -0
  28. package/dist/continuation/index.d.ts +8 -0
  29. package/dist/continuation/packet-reader.d.ts +33 -0
  30. package/dist/continuation/packet-writer.d.ts +86 -0
  31. package/dist/continuation/types.d.ts +239 -0
  32. package/dist/credential-broker/__tests__/broker.test.d.ts +1 -0
  33. package/dist/credential-broker/__tests__/canonical.test.d.ts +1 -0
  34. package/dist/credential-broker/__tests__/scrubber.test.d.ts +1 -0
  35. package/dist/credential-broker/__tests__/upstream-client.test.d.ts +1 -0
  36. package/dist/credential-broker/__tests__/vendor-key-store.test.d.ts +1 -0
  37. package/dist/credential-broker/audit-sink.d.ts +69 -0
  38. package/dist/credential-broker/broker-config.d.ts +39 -0
  39. package/dist/credential-broker/broker-token.d.ts +123 -0
  40. package/dist/credential-broker/broker.d.ts +165 -0
  41. package/dist/credential-broker/canonical.d.ts +119 -0
  42. package/dist/credential-broker/index.d.ts +15 -0
  43. package/dist/credential-broker/scrubber.d.ts +45 -0
  44. package/dist/credential-broker/types.d.ts +141 -0
  45. package/dist/credential-broker/upstream-client.d.ts +20 -0
  46. package/dist/credential-broker/vendor-key-store.d.ts +54 -0
  47. package/dist/index.d.ts +6 -1
  48. package/dist/index.js +427 -124
  49. package/dist/keychain/__tests__/keychain-backend.test.d.ts +1 -0
  50. package/dist/keychain/keychain-backend.d.ts +82 -0
  51. package/dist/local-executor/__tests__/agentic-disposable-repo.test.d.ts +1 -0
  52. package/dist/local-executor/__tests__/agentic-resolve.test.d.ts +1 -0
  53. package/dist/local-executor/__tests__/agentic-resolver-flag.test.d.ts +1 -0
  54. package/dist/local-executor/__tests__/class-a-sign.test.d.ts +1 -0
  55. package/dist/local-executor/__tests__/class1-reconcilers.test.d.ts +1 -0
  56. package/dist/local-executor/__tests__/class2-resolver.test.d.ts +1 -0
  57. package/dist/local-executor/__tests__/confined-model-caller.test.d.ts +1 -0
  58. package/dist/local-executor/__tests__/conflict-classifier.test.d.ts +1 -0
  59. package/dist/local-executor/__tests__/conflict-resolution-durable-store.test.d.ts +1 -0
  60. package/dist/local-executor/__tests__/conflict-resolution-store.test.d.ts +1 -0
  61. package/dist/local-executor/__tests__/cp1f-quorum-consumer.test.d.ts +1 -0
  62. package/dist/local-executor/__tests__/cp7-audit-writer.test.d.ts +1 -0
  63. package/dist/local-executor/__tests__/durable-store.test.d.ts +1 -0
  64. package/dist/local-executor/__tests__/git-lock-retry.test.d.ts +1 -0
  65. package/dist/local-executor/__tests__/implementor-argv.test.d.ts +1 -0
  66. package/dist/local-executor/__tests__/local-executor-teams.test.d.ts +1 -0
  67. package/dist/local-executor/__tests__/merge-conflict-extract.test.d.ts +1 -0
  68. package/dist/local-executor/__tests__/merge-conflict-git.integration.test.d.ts +1 -0
  69. package/dist/local-executor/__tests__/merge-conflict-resolve-agentic.integration.test.d.ts +1 -0
  70. package/dist/local-executor/__tests__/merge-conflict-resolve.integration.test.d.ts +1 -0
  71. package/dist/local-executor/__tests__/merge-journal-store.test.d.ts +1 -0
  72. package/dist/local-executor/__tests__/merge-train-agentic-recovery.integration.test.d.ts +1 -0
  73. package/dist/local-executor/__tests__/merge-train-w3.integration.test.d.ts +1 -0
  74. package/dist/local-executor/__tests__/merge-train-waveb.integration.test.d.ts +1 -0
  75. package/dist/local-executor/__tests__/merge-train.test.d.ts +1 -0
  76. package/dist/local-executor/__tests__/promote-wal-store.test.d.ts +1 -0
  77. package/dist/local-executor/__tests__/revert-reconcile.test.d.ts +1 -0
  78. package/dist/local-executor/__tests__/revert-runner.test.d.ts +1 -0
  79. package/dist/local-executor/__tests__/shared-contract-detector.test.d.ts +1 -0
  80. package/dist/local-executor/__tests__/substrate-engage.test.d.ts +1 -0
  81. package/dist/local-executor/__tests__/team-execution-flag.test.d.ts +1 -0
  82. package/dist/local-executor/__tests__/track-registry.test.d.ts +1 -0
  83. package/dist/local-executor/__tests__/wb2-review-bundle.test.d.ts +1 -0
  84. package/dist/local-executor/__tests__/wb2-substrate-spawn.live.test.d.ts +1 -0
  85. package/dist/local-executor/__tests__/workspace-shadow.test.d.ts +1 -0
  86. package/dist/local-executor/__tests__/worktree-merge.test.d.ts +1 -0
  87. package/dist/local-executor/agentic-disposable-repo.d.ts +52 -0
  88. package/dist/local-executor/agentic-resolve.d.ts +54 -0
  89. package/dist/local-executor/agentic-resolver-flag.d.ts +9 -0
  90. package/dist/local-executor/authority.d.ts +33 -1
  91. package/dist/local-executor/class-a-emit.d.ts +3 -1
  92. package/dist/local-executor/class-a-sign.d.ts +57 -0
  93. package/dist/local-executor/class-b-consumer.d.ts +159 -4
  94. package/dist/local-executor/class-b-verify.d.ts +30 -0
  95. package/dist/local-executor/class1-reconcilers.d.ts +58 -0
  96. package/dist/local-executor/class2-resolver.d.ts +74 -0
  97. package/dist/local-executor/confined-model-caller.d.ts +39 -0
  98. package/dist/local-executor/conflict-classifier.d.ts +21 -0
  99. package/dist/local-executor/conflict-resolution-durable-store.d.ts +61 -0
  100. package/dist/local-executor/conflict-resolution-store.d.ts +210 -0
  101. package/dist/local-executor/conflict-types.d.ts +86 -0
  102. package/dist/local-executor/cp7-audit-writer.d.ts +152 -0
  103. package/dist/local-executor/durable-store.d.ts +334 -0
  104. package/dist/local-executor/git-lock-retry.d.ts +40 -0
  105. package/dist/local-executor/hook-bridge.d.ts +1 -1
  106. package/dist/local-executor/implementor-argv.d.ts +183 -0
  107. package/dist/local-executor/index.d.ts +44 -3
  108. package/dist/local-executor/local-executor-impl.d.ts +645 -4
  109. package/dist/local-executor/merge-conflict-extract.d.ts +34 -0
  110. package/dist/local-executor/merge-conflict-resolve.d.ts +101 -0
  111. package/dist/local-executor/merge-journal-store.d.ts +311 -0
  112. package/dist/local-executor/merge-train.d.ts +713 -0
  113. package/dist/local-executor/promote-wal-store.d.ts +301 -0
  114. package/dist/local-executor/resolution-set-index.d.ts +51 -0
  115. package/dist/local-executor/revert-reconcile.d.ts +89 -0
  116. package/dist/local-executor/revert-runner.d.ts +17 -0
  117. package/dist/local-executor/shared-contract-detector.d.ts +57 -0
  118. package/dist/local-executor/spawn.d.ts +29 -1
  119. package/dist/local-executor/task-group-types.d.ts +346 -0
  120. package/dist/local-executor/team-execution-flag.d.ts +21 -0
  121. package/dist/local-executor/track-registry.d.ts +50 -0
  122. package/dist/local-executor/types.d.ts +238 -4
  123. package/dist/local-executor/wb2-review-bundle.d.ts +59 -0
  124. package/dist/local-executor/workspace-shadow.d.ts +290 -0
  125. package/dist/local-executor/worktree-merge.d.ts +601 -0
  126. package/dist/local-model/__tests__/installer.test.d.ts +1 -0
  127. package/dist/local-model/__tests__/manager.test.d.ts +1 -0
  128. package/dist/local-model/__tests__/ollama.test.d.ts +1 -0
  129. package/dist/local-model/__tests__/runtime.test.d.ts +1 -0
  130. package/dist/local-model/__tests__/state.test.d.ts +1 -0
  131. package/dist/local-model/manager.d.ts +119 -0
  132. package/dist/local-model/ollama.d.ts +27 -0
  133. package/dist/local-model/runtime.d.ts +27 -0
  134. package/dist/local-model/state.d.ts +32 -0
  135. package/dist/orchestration/detect-agents.d.ts +15 -2
  136. package/dist/orchestration/setup-types.d.ts +2 -1
  137. package/dist/orchestration-shell/__tests__/attachments.test.d.ts +1 -0
  138. package/dist/orchestration-shell/__tests__/audit-browser.test.d.ts +1 -0
  139. package/dist/orchestration-shell/__tests__/audited-path-fixes.test.d.ts +1 -0
  140. package/dist/orchestration-shell/__tests__/bracketed-paste.test.d.ts +1 -0
  141. package/dist/orchestration-shell/__tests__/cli-group-halt-wiring.test.d.ts +1 -0
  142. package/dist/orchestration-shell/__tests__/cli-orchestration-session-bootstrap.test.d.ts +1 -0
  143. package/dist/orchestration-shell/__tests__/cli-probe-group-status.test.d.ts +1 -0
  144. package/dist/orchestration-shell/__tests__/cli-quorum-loop-tier.test.d.ts +1 -0
  145. package/dist/orchestration-shell/__tests__/cli-verdict-classifier-wiring.test.d.ts +1 -0
  146. package/dist/orchestration-shell/__tests__/context-store.test.d.ts +1 -0
  147. package/dist/orchestration-shell/__tests__/cp10-585-accept-echo-target.test.d.ts +1 -0
  148. package/dist/orchestration-shell/__tests__/cp10-585-loop.test.d.ts +1 -0
  149. package/dist/orchestration-shell/__tests__/cp10-585-prompts.test.d.ts +1 -0
  150. package/dist/orchestration-shell/__tests__/cp12-w2b-team-loop.test.d.ts +1 -0
  151. package/dist/orchestration-shell/__tests__/cp12-w4-team-recovery.test.d.ts +1 -0
  152. package/dist/orchestration-shell/__tests__/cp1f-quorum-loop.test.d.ts +1 -0
  153. package/dist/orchestration-shell/__tests__/cp606-team-track-user-resolved.test.d.ts +1 -0
  154. package/dist/orchestration-shell/__tests__/cp7-reviewer-substrate.test.d.ts +1 -0
  155. package/dist/orchestration-shell/__tests__/declared-test-runner.test.d.ts +1 -0
  156. package/dist/orchestration-shell/__tests__/familiarize-routing.test.d.ts +1 -0
  157. package/dist/orchestration-shell/__tests__/gate-decision-submit.test.d.ts +1 -0
  158. package/dist/orchestration-shell/__tests__/gate-details-panel.test.d.ts +1 -0
  159. package/dist/orchestration-shell/__tests__/gate-verdict-details-dispatch.test.d.ts +1 -0
  160. package/dist/orchestration-shell/__tests__/group-decision-submit.test.d.ts +1 -0
  161. package/dist/orchestration-shell/__tests__/image-attach-e2e.test.d.ts +1 -0
  162. package/dist/orchestration-shell/__tests__/input-bar-autocomplete.test.d.ts +1 -0
  163. package/dist/orchestration-shell/__tests__/live-region-cap.test.d.ts +1 -0
  164. package/dist/orchestration-shell/__tests__/live-static-order.test.d.ts +1 -0
  165. package/dist/orchestration-shell/__tests__/model-cli.test.d.ts +1 -0
  166. package/dist/orchestration-shell/__tests__/non-gate-prompt-routing.test.d.ts +1 -0
  167. package/dist/orchestration-shell/__tests__/orchestration-app-group-decision-transport.test.d.ts +1 -0
  168. package/dist/orchestration-shell/__tests__/orchestration-app-layout.test.d.ts +1 -0
  169. package/dist/orchestration-shell/__tests__/reissue-team-retained-spec.test.d.ts +1 -0
  170. package/dist/orchestration-shell/__tests__/review-summary-render.test.d.ts +1 -0
  171. package/dist/orchestration-shell/__tests__/reviewer-wizard.test.d.ts +1 -0
  172. package/dist/orchestration-shell/__tests__/reviewers-format.test.d.ts +1 -0
  173. package/dist/orchestration-shell/__tests__/root-discovery.test.d.ts +1 -0
  174. package/dist/orchestration-shell/__tests__/serialize-submissions.test.d.ts +1 -0
  175. package/dist/orchestration-shell/__tests__/slash-suggest.test.d.ts +1 -0
  176. package/dist/orchestration-shell/__tests__/status-format.test.d.ts +1 -0
  177. package/dist/orchestration-shell/__tests__/task-progress.test.d.ts +1 -0
  178. package/dist/orchestration-shell/__tests__/team-decompose-routing.test.d.ts +1 -0
  179. package/dist/orchestration-shell/__tests__/team-decompose-types.test.d.ts +1 -0
  180. package/dist/orchestration-shell/__tests__/team-decompose.test.d.ts +1 -0
  181. package/dist/orchestration-shell/__tests__/team-e2e-smoke.test.d.ts +1 -0
  182. package/dist/orchestration-shell/__tests__/tier2-reviewer-selection.test.d.ts +1 -0
  183. package/dist/orchestration-shell/__tests__/web-browsing.test.d.ts +1 -0
  184. package/dist/orchestration-shell/attachments.d.ts +152 -0
  185. package/dist/orchestration-shell/audit-browser.d.ts +115 -0
  186. package/dist/orchestration-shell/audit-runner.d.ts +59 -0
  187. package/dist/orchestration-shell/bracketed-paste.d.ts +26 -0
  188. package/dist/orchestration-shell/cli.d.ts +336 -1
  189. package/dist/orchestration-shell/cli.js +40580 -4692
  190. package/dist/orchestration-shell/components/AuditLogPanel.d.ts +11 -0
  191. package/dist/orchestration-shell/components/ConversationPane.d.ts +7 -1
  192. package/dist/orchestration-shell/components/GateDetailsPanel.d.ts +57 -0
  193. package/dist/orchestration-shell/components/GatePanelEntry.d.ts +9 -0
  194. package/dist/orchestration-shell/components/GatePromptEntry.d.ts +7 -0
  195. package/dist/orchestration-shell/components/InputBar.d.ts +17 -3
  196. package/dist/orchestration-shell/components/LiveProgressLine.d.ts +8 -0
  197. package/dist/orchestration-shell/components/MultiTrackStatusNode.d.ts +8 -0
  198. package/dist/orchestration-shell/components/OrchestrationApp.d.ts +81 -15
  199. package/dist/orchestration-shell/components/ReviewerSetupWizard.d.ts +24 -0
  200. package/dist/orchestration-shell/components/StatusBar.d.ts +15 -2
  201. package/dist/orchestration-shell/context-store.d.ts +389 -0
  202. package/dist/orchestration-shell/declared-test-runner.d.ts +84 -0
  203. package/dist/orchestration-shell/emit-shell-event.d.ts +1 -1
  204. package/dist/orchestration-shell/gate-decision-submit.d.ts +245 -0
  205. package/dist/orchestration-shell/gate-prompts.d.ts +361 -3
  206. package/dist/orchestration-shell/index.d.ts +613 -1
  207. package/dist/orchestration-shell/ink-runtime.d.ts +21 -1
  208. package/dist/orchestration-shell/live-region-cap.d.ts +70 -0
  209. package/dist/orchestration-shell/live-static-order.d.ts +22 -0
  210. package/dist/orchestration-shell/non-tty-fallback.d.ts +21 -0
  211. package/dist/orchestration-shell/quorum-loop.d.ts +1900 -0
  212. package/dist/orchestration-shell/root-discovery.d.ts +25 -0
  213. package/dist/orchestration-shell/route-browse.d.ts +20 -0
  214. package/dist/orchestration-shell/slash-router.d.ts +20 -1
  215. package/dist/orchestration-shell/slash-routes/continuation.d.ts +71 -0
  216. package/dist/orchestration-shell/slash-routes/reviewers.d.ts +41 -0
  217. package/dist/orchestration-shell/slash-suggest.d.ts +29 -0
  218. package/dist/orchestration-shell/status-format.d.ts +59 -0
  219. package/dist/orchestration-shell/task-progress.d.ts +122 -0
  220. package/dist/orchestration-shell/team-decompose.d.ts +196 -0
  221. package/dist/orchestration-shell/types.d.ts +363 -3
  222. package/dist/orchestration-shell/vendor/ink-parse-keypress.d.ts +42 -0
  223. package/dist/orchestration-shell/web/extract.d.ts +11 -0
  224. package/dist/orchestration-shell/web/fetch.d.ts +15 -0
  225. package/dist/orchestration-shell/web/ip.d.ts +26 -0
  226. package/dist/orchestration-shell/web/sanitize.d.ts +14 -0
  227. package/dist/orchestration-shell/web/search.d.ts +16 -0
  228. package/dist/planner/__tests__/local-gemma.test.d.ts +1 -0
  229. package/dist/planner/index.d.ts +2 -0
  230. package/dist/planner/local-advisory.d.ts +84 -0
  231. package/dist/planner/local-gemma.d.ts +23 -0
  232. package/dist/planner/types.d.ts +16 -6
  233. package/dist/reviewer/__tests__/antigravity-provider.test.d.ts +1 -0
  234. package/dist/reviewer/__tests__/claude-provider-json.test.d.ts +1 -0
  235. package/dist/reviewer/__tests__/cp7-reviewer-sandbox.test.d.ts +1 -0
  236. package/dist/reviewer/__tests__/output-parser-classifier-helpers.test.d.ts +1 -0
  237. package/dist/reviewer/__tests__/verdict-classifier.test.d.ts +1 -0
  238. package/dist/reviewer/index.d.ts +2 -0
  239. package/dist/reviewer/output-parser.d.ts +48 -12
  240. package/dist/reviewer/provider.d.ts +107 -3
  241. package/dist/reviewer/providers/__tests__/failure-classifier.test.d.ts +1 -0
  242. package/dist/reviewer/providers/antigravity.d.ts +49 -0
  243. package/dist/reviewer/providers/claude.d.ts +19 -4
  244. package/dist/reviewer/providers/codex.d.ts +47 -5
  245. package/dist/reviewer/providers/failure-classifier.d.ts +26 -0
  246. package/dist/reviewer/providers/gemini.d.ts +5 -4
  247. package/dist/reviewer/registry.d.ts +5 -5
  248. package/dist/reviewer/subprocess.d.ts +37 -0
  249. package/dist/reviewer/token-usage.d.ts +32 -0
  250. package/dist/reviewer/types.d.ts +5 -5
  251. package/dist/reviewer/verdict-classifier.d.ts +62 -0
  252. package/dist/session/__tests__/prepare-event-timestamp.test.d.ts +1 -0
  253. package/dist/session/index.d.ts +1 -0
  254. package/dist/session/prepare-event-timestamp.d.ts +30 -0
  255. package/dist/substrate/__tests__/docker.test.d.ts +1 -0
  256. package/dist/substrate/__tests__/forwarder.test.d.ts +1 -0
  257. package/dist/substrate/__tests__/git-proxy.test.d.ts +1 -0
  258. package/dist/substrate/__tests__/sandbox-exec.test.d.ts +1 -0
  259. package/dist/substrate/__tests__/substrate-e2e.integration.test.d.ts +1 -0
  260. package/dist/substrate/command-runner.d.ts +19 -0
  261. package/dist/substrate/docker.d.ts +134 -0
  262. package/dist/substrate/errors.d.ts +33 -0
  263. package/dist/substrate/forwarder.d.ts +67 -0
  264. package/dist/substrate/git-proxy.d.ts +35 -0
  265. package/dist/substrate/index.d.ts +12 -0
  266. package/dist/substrate/relay-script.d.ts +27 -0
  267. package/dist/substrate/sandbox-exec.d.ts +116 -0
  268. package/dist/substrate/types.d.ts +218 -0
  269. package/dist/substrate-launch/__tests__/apikey-bootstrap.test.d.ts +1 -0
  270. package/dist/substrate-launch/__tests__/creditless-loop.integration.test.d.ts +1 -0
  271. package/dist/substrate-launch/__tests__/engage-substrate.test.d.ts +1 -0
  272. package/dist/substrate-launch/__tests__/fallback-ladder.test.d.ts +1 -0
  273. package/dist/substrate-launch/__tests__/le-env-scrub.test.d.ts +1 -0
  274. package/dist/substrate-launch/__tests__/sanitized-env.test.d.ts +1 -0
  275. package/dist/substrate-launch/apikey-bootstrap.d.ts +84 -0
  276. package/dist/substrate-launch/engage-substrate.d.ts +102 -0
  277. package/dist/substrate-launch/fallback-ladder.d.ts +49 -0
  278. package/dist/substrate-launch/index.d.ts +12 -0
  279. package/dist/substrate-launch/le-env-scrub.d.ts +77 -0
  280. package/dist/substrate-launch/sanitized-env.d.ts +73 -0
  281. package/dist/types/auth.d.ts +6 -1
  282. package/dist/types/events.d.ts +3 -1
  283. package/dist/types/reviewer.d.ts +6 -6
  284. package/package.json +7 -3
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { type AuditBrowserModel } from '../audit-browser';
3
+ export interface AuditLogPanelProps {
4
+ model: AuditBrowserModel;
5
+ }
6
+ /**
7
+ * Render the per-task audit browser. Newest-first. An empty chain renders the
8
+ * neutral `No audit entries yet.` line; otherwise the titled entry list.
9
+ */
10
+ export declare function AuditLogPanel(props: AuditLogPanelProps): React.ReactElement;
11
+ export default AuditLogPanel;
@@ -2,6 +2,12 @@ import * as React from 'react';
2
2
  import { ConversationEntry } from '../types';
3
3
  export interface ConversationPaneProps {
4
4
  entries: ConversationEntry[];
5
+ /**
6
+ * [#469 gate-pin] `taskId → "Track N"` map (from `state.team`) so the pinned
7
+ * `gate-prompt` control can label WHICH team track is awaiting the user's
8
+ * decision. `null`/absent for single-implementor / Companion sessions.
9
+ */
10
+ trackLabelByTaskId?: Map<string, string> | null;
5
11
  }
6
- export declare function renderConversationEntry(entry: ConversationEntry): React.ReactElement;
12
+ export declare function renderConversationEntry(entry: ConversationEntry, trackLabelByTaskId?: Map<string, string> | null): React.ReactElement;
7
13
  export declare function ConversationPane(props: ConversationPaneProps): React.ReactElement;
@@ -0,0 +1,57 @@
1
+ import * as React from 'react';
2
+ import { ConversationEntry } from '../types';
3
+ import { type GatePromptEnvelope, type ReviewSummaryPanelModel } from '../gate-prompts';
4
+ export interface GateDetailsPanelProps {
5
+ entry: Extract<ConversationEntry, {
6
+ kind: 'gate-prompt';
7
+ }>;
8
+ }
9
+ /**
10
+ * [TUI re-render fix #469] Render ONLY the envelope-derived READ-ONLY context
11
+ * (headline / reason / timeline / cascade / reviewers / unavailable line) for a
12
+ * gate prompt. Extracted from `GateDetailsPanel` so the same byte-identical
13
+ * context block can be rendered into the write-once `<Static>` `gate-panel`
14
+ * snapshot (variant 'prompt') without dragging the live review-summary along.
15
+ * Returns `null` when there is no context to show (B.9 backward-compat:
16
+ * older-engine events carry none of these fields).
17
+ *
18
+ * PURE: receives the already-decrypted `envelope`; no crypto, no I/O.
19
+ */
20
+ export declare function GateContextPanel(props: {
21
+ envelope: GatePromptEnvelope;
22
+ }): React.ReactElement | null;
23
+ /**
24
+ * [TUI re-render fix #469] Render ONLY the PHASE-CP-1-F.1 Part B per-round
25
+ * review summary block. Extracted from `GateDetailsPanel` so the same
26
+ * byte-identical block can be rendered into the write-once `<Static>`
27
+ * `gate-panel` snapshot (variant 'summary'). Returns `null` when there are no
28
+ * rounds (so the caller emits no empty Static block).
29
+ *
30
+ * Renders proposal + per-seat verdict/reasoning/suggested-changes + revise
31
+ * notes for EACH round (proposal gate rounds 0..N, the auto-revisions). The
32
+ * single-round happy path renders one round; revise rounds render the revised
33
+ * proposal for the next round. PURE — receives the already-decrypted model.
34
+ *
35
+ * NB: the leading `marginTop: 1` on the header preserves the spacer row that
36
+ * separated the summary from the context block when both were one flat column
37
+ * (so `GateContextPanel + renderReviewSummarySection` composes byte-identically
38
+ * to the original single-array render).
39
+ */
40
+ export declare function renderReviewSummarySection(reviewSummary: ReviewSummaryPanelModel): React.ReactElement | null;
41
+ /**
42
+ * Render the GateDetailsPanel for a gate-prompt entry. Returns `null` when
43
+ * there is no context to show (no headline, no reason, no timeline, no
44
+ * reviewers, no unavailable line) AND no review summary — degrades to nothing
45
+ * rather than an empty box (B.9 backward-compat: older-engine events carry none
46
+ * of these fields).
47
+ *
48
+ * [TUI re-render fix #469] Now COMPOSED from the two extracted pieces
49
+ * (`GateContextPanel` + `renderReviewSummarySection`) so the live entry, the
50
+ * Static `gate-panel` prompt, and the Static `gate-panel` summary all render
51
+ * from the SAME source. Output is byte-identical to the pre-split single-array
52
+ * render: an outer column Box flows the context column above the summary column
53
+ * exactly as one flat column did, and the summary header keeps its `marginTop:
54
+ * 1` spacer.
55
+ */
56
+ export declare function GateDetailsPanel(props: GateDetailsPanelProps): React.ReactElement | null;
57
+ export default GateDetailsPanel;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { ConversationEntry } from '../types';
3
+ export interface GatePanelEntryProps {
4
+ entry: Extract<ConversationEntry, {
5
+ kind: 'gate-panel';
6
+ }>;
7
+ }
8
+ export declare function GatePanelEntry(props: GatePanelEntryProps): React.ReactElement | null;
9
+ export default GatePanelEntry;
@@ -4,6 +4,13 @@ export interface GatePromptEntryProps {
4
4
  entry: Extract<ConversationEntry, {
5
5
  kind: 'gate-prompt';
6
6
  }>;
7
+ /**
8
+ * [#469 gate-pin] Best-effort "Track N" label for the gate's owning team
9
+ * track, derived by `<OrchestrationApp>` from `state.team` (taskId → index).
10
+ * Absent for single-implementor / Companion sessions (no team) — the header
11
+ * then omits the track suffix.
12
+ */
13
+ trackLabel?: string;
7
14
  }
8
15
  export declare function GatePromptEntry(props: GatePromptEntryProps): React.ReactElement;
9
16
  export default GatePromptEntry;
@@ -1,4 +1,12 @@
1
1
  import * as React from 'react';
2
+ import type { SlashCommandInfo } from '../slash-router';
3
+ /**
4
+ * Worst-case dropdown height in rows: the window (MAX_SUGGESTIONS) + a
5
+ * `↑ N more` indicator + a `↓ N more` indicator. Exported so `<OrchestrationApp>`
6
+ * can reserve exactly this many rows in the live-region height cap while the
7
+ * dropdown can be open (Stage-2 — keeps the dropdown from re-triggering #469).
8
+ */
9
+ export declare const DROPDOWN_MAX_ROWS: number;
2
10
  /**
3
11
  * Gate-prompt-aware input modes per PHASE-CP-8-MIN-DESIGN.md §7
4
12
  * + #C8M-5. `maxOption: number` (NOT a `2 | 5` literal union) per
@@ -21,12 +29,11 @@ export type GatePromptMode = {
21
29
  * `GATE_PROMPT_NOTES_CANCELLED` instead of treating the text as notes
22
30
  * plaintext. Without this sentinel, `/cancel` would be submitted AS the
23
31
  * notes string to `applyUserDecision`, destroying user intent
24
- * (Stage 2 r2 Codex NEW-HIGH-1). Sentinel string is intentionally
25
- * non-printable / non-collidable with any plausible notes content.
32
+ * (Stage 2 r2 Codex NEW-HIGH-1).
26
33
  */
27
34
  export declare const GATE_PROMPT_NOTES_CANCEL_SENTINEL = "__GATE_PROMPT_NOTES_CANCEL__";
28
35
  export interface InputBarProps {
29
- onSubmit: (text: string) => void;
36
+ onSubmit: (text: string, images?: string[]) => void;
30
37
  /** Optional placeholder shown when value is empty. */
31
38
  placeholder?: string;
32
39
  /** Initial value (used for history recall). */
@@ -37,5 +44,12 @@ export interface InputBarProps {
37
44
  * docstring for the four states.
38
45
  */
39
46
  gatePromptMode?: GatePromptMode;
47
+ /**
48
+ * TUI redesign (2026-06-29) — the tier-filtered slash catalog for
49
+ * autocomplete (built by the parent via `listSlashCommands(tier)`). Absent /
50
+ * empty (CP-1.a callers, or the parent suppressing the dropdown while a task
51
+ * streams / a gate is pinned) → no dropdown.
52
+ */
53
+ slashCommands?: SlashCommandInfo[];
40
54
  }
41
55
  export declare function InputBar(props: InputBarProps): React.ReactElement;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { LiveProgress } from '../types';
3
+ export interface LiveProgressLineProps {
4
+ progress: LiveProgress | null;
5
+ /** Test seam; otherwise derived from the live terminal width, then 80 (mirrors StatusBar). */
6
+ columns?: number;
7
+ }
8
+ export declare function LiveProgressLine(props: LiveProgressLineProps): React.ReactElement | null;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { TeamState } from '../types';
3
+ export interface MultiTrackStatusNodeProps {
4
+ team: TeamState;
5
+ /** [P1b] Test seam; otherwise derived from live stdout, then 80 (mirrors StatusBar). */
6
+ columns?: number;
7
+ }
8
+ export declare function MultiTrackStatusNode(props: MultiTrackStatusNodeProps): React.ReactElement;
@@ -1,33 +1,53 @@
1
1
  import * as React from 'react';
2
2
  import { OrchestrationStore } from '../store';
3
- import { PostDecisionAction, Tier } from '../types';
3
+ import { ConversationEntry, PostDecisionAction, Tier } from '../types';
4
+ import type { PlannerRuntimeKind } from '../status-format';
5
+ import type { UpdateReviewerPolicyInput, UserReviewerPolicySnapshot } from '../../types/reviewer';
6
+ import { type ApplyUserDecisionClient as SharedApplyUserDecisionClient, type GroupDecisionSubmitDeps } from '../gate-decision-submit';
4
7
  /**
5
8
  * Minimal SDK contract for the applyUserDecision wire. Structurally
6
9
  * compatible with the full `AppSyncClient.applyUserDecision` signature
7
10
  * — keeps the orchestration shell decoupled from the heavier AppSync
8
11
  * surface (tests can inject a stub).
12
+ *
13
+ * Audited-path fix (Fix 8): this is now a re-export of the shared
14
+ * `gate-decision-submit` contract so the TTY + non-TTY surfaces never drift.
9
15
  */
10
- export interface ApplyUserDecisionClient {
11
- applyUserDecision(input: {
12
- gateId: string;
13
- taskId: string;
14
- sessionId: string;
15
- currentRound: number;
16
- decision: string;
17
- notes?: string;
18
- }, sessionKeyBase64?: string): Promise<{
19
- decision: string;
20
- postAction: PostDecisionAction;
21
- }>;
16
+ export type ApplyUserDecisionClient = SharedApplyUserDecisionClient;
17
+ /**
18
+ * Minimal SDK contract for the `/reviewer-setup` wizard's save step. Structurally
19
+ * compatible with `AppSyncClient.updateReviewerPolicy`. Optional on the App
20
+ * (CP-1.a / Companion / test callers never open the wizard); when the wizard IS
21
+ * open but this is absent, the save fails closed with an advisory instead of
22
+ * throwing (the entrypoint always provides the real client).
23
+ */
24
+ export interface ReviewerPolicyClient {
25
+ updateReviewerPolicy(input: UpdateReviewerPolicyInput): Promise<UserReviewerPolicySnapshot>;
22
26
  }
23
27
  export interface OrchestrationAppProps {
24
28
  store: OrchestrationStore;
25
29
  tier: Tier;
30
+ /**
31
+ * TUI redesign (2026-06-29) — the boot-time planner runtime kind + display
32
+ * label, threaded from `RunOrchestrationShellArgs` for the status-bar planner
33
+ * badge. Absent (CP-1.a callers / tests) → treated as `hosted` (no badge).
34
+ */
35
+ plannerRuntimeKind?: PlannerRuntimeKind;
36
+ plannerLabel?: string;
37
+ /**
38
+ * TUI redesign (2026-06-29) — the PLAINTEXT cwd for the status bar, threaded
39
+ * from the shell entry (process.cwd()). Sourced here rather than from
40
+ * `state.session.projectPath`, which is AES-GCM-encrypted at rest and never
41
+ * decrypted (Stage-1 HIGH — that would render ciphertext). Absent (tests /
42
+ * CP-1.a callers) → falls back to the live process.cwd().
43
+ */
44
+ cwd?: string;
26
45
  /** Hook called when `<InputBar>` submits text AND there is no active
27
46
  * gate-prompt. The host wires this to the slash router / planner
28
47
  * classifier. Gate-prompt submits are intercepted internally per
29
- * #C8M-11 and never reach `onUserInput`. */
30
- onUserInput: (text: string) => void;
48
+ * #C8M-11 and never reach `onUserInput`. `images` (IMAGE-ATTACHMENT-DESIGN.md
49
+ * §13 Option 2) carries the resolved path(s) of `[Image #N]` input chips. */
50
+ onUserInput: (text: string, images?: string[]) => void;
31
51
  /**
32
52
  * CP-8 min Stage 1 R1 closure + Stage 2 r1 Codex HIGH-1 (REQUIRED). The
33
53
  * desktop-side AppSync transport surface (codevibe-core's own
@@ -59,5 +79,51 @@ export interface OrchestrationAppProps {
59
79
  * message — it MUST NOT silently submit unencrypted notes.
60
80
  */
61
81
  getSessionKey: (sessionId: string) => Promise<string | null>;
82
+ /**
83
+ * CP-1.f execute-first (D5) — invoked after a gate-prompt `applyUserDecision`
84
+ * resolves, with the engine's `postAction`. The shell wires it to the
85
+ * QuorumLoop so a NON-authorize terminal (`abort_task` / `restart_proposal` /
86
+ * `terminate_gate`) DISCARDS the task's shadow. The APPROVE path
87
+ * (`final_approval_resolved`) is handled by the `TaskAuthorized` Class-B edge
88
+ * (promote, #PR-3) — NOT here — and a revise (`open_new_round`) KEEPS the
89
+ * shadow. ABSENT (tests / non-loop sessions) → no-op (back-compat).
90
+ */
91
+ onTerminalDecision?: (taskId: string, postAction: PostDecisionAction, expectedShadow?: unknown) => void;
92
+ /**
93
+ * Instance-pinned discard (live dogfood race 2026-06-11, option-4 "Reject and
94
+ * restart"): resolves the live shadow instance for a task. Read at the TOP of
95
+ * `submitGateDecision` (before the SDK await) so the discard pins to the OLD
96
+ * (rejected) shadow, not the restart's fresh one. ABSENT → no capture (no-op).
97
+ */
98
+ captureShadow?: (taskId: string) => unknown;
99
+ /**
100
+ * PHASE-589/469 W3.2 — the two-phase group-escalation decision transport.
101
+ * Present ONLY for a TEAM session (built in `cli.ts`, completed in
102
+ * `runOrchestrationShell` as `gateDecisionDeps.groupDecision` with this shell's
103
+ * store merged in). Threaded straight into the SHARED `routeGatePromptInput`
104
+ * deps so a `task_group_halted` 5-option group-escalation prompt resolves
105
+ * through `submitGroupDecision` (CLAIM→revert→COMMIT) on the TTY surface — NOT
106
+ * just the non-TTY fallback. Without it a TTY group-escalation submit
107
+ * fail-closes at the SDK edge with "Team decision transport not configured"
108
+ * (live dogfood). ABSENT (single-impl / Companion / tests) → a group prompt can
109
+ * never be synthesized, so this is never consulted. The optional spread at the
110
+ * call site keeps the deps object byte-identical to a non-team session when
111
+ * absent.
112
+ */
113
+ groupDecision?: GroupDecisionSubmitDeps;
114
+ /**
115
+ * `/reviewer-setup` wizard (2026-06-29) — the SDK surface the wizard's save
116
+ * step writes through. Present for real shell sessions (`runOrchestrationShell`
117
+ * binds `args.appsyncClient`); absent for CP-1.a / Companion / test callers,
118
+ * which never dispatch `REVIEWER_WIZARD_OPEN`. When absent AND a wizard is
119
+ * somehow open, the save fails closed with an advisory.
120
+ */
121
+ reviewerPolicyClient?: ReviewerPolicyClient;
62
122
  }
123
+ /**
124
+ * A finalized entry STARTS a user turn iff it's a typed prompt or a real
125
+ * `/slash` command. Exported for unit testing. Synthetic non-`/` slash-outputs
126
+ * (e.g. `planner-error`, a natural-language failure RESPONSE) are NOT turn-starts.
127
+ */
128
+ export declare function isTurnStart(entry: ConversationEntry): boolean;
63
129
  export declare function OrchestrationApp(props: OrchestrationAppProps): React.ReactElement;
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import type { ReviewerWizardState } from '../types';
3
+ import { type UpdateReviewerPolicyInput } from '../../types/reviewer';
4
+ /**
5
+ * Worst-case wizard height in rows: rounded border (2) + title (1) + current
6
+ * context (1) + question (1) + the bounded role list (ROLE_LIST_LIMIT) + hint
7
+ * (1). Exported so `<OrchestrationApp>` reserves this in the #469 live-region
8
+ * height cap while a wizard is open (it renders in the InputBar's slot, so the
9
+ * cap must budget for the wizard, not the shorter InputBar).
10
+ */
11
+ export declare const WIZARD_MAX_ROWS: number;
12
+ export interface ReviewerSetupWizardProps {
13
+ wizard: ReviewerWizardState;
14
+ /**
15
+ * Persist the chosen policy. The parent owns the network write + result
16
+ * advisory + `REVIEWER_WIZARD_CLOSE` (which unmounts this component). Called
17
+ * exactly once per wizard run; the component shows a "Saving…" step until the
18
+ * parent closes the modal.
19
+ */
20
+ onSubmit: (input: UpdateReviewerPolicyInput) => void;
21
+ /** Abandon the wizard with NO policy change (Esc / explicit Cancel). */
22
+ onCancel: () => void;
23
+ }
24
+ export declare function ReviewerSetupWizard(props: ReviewerSetupWizardProps): React.ReactElement;
@@ -1,7 +1,20 @@
1
1
  import * as React from 'react';
2
- import { PlannerHealthState, Tier } from '../types';
2
+ import { Tier } from '../types';
3
+ import { type PlannerRuntimeKind } from '../status-format';
3
4
  export interface StatusBarProps {
4
- plannerHealth: PlannerHealthState;
5
+ /**
6
+ * Current working directory — the PLAINTEXT cwd threaded from the shell entry
7
+ * (process.cwd()). NOTE: do NOT source this from `session.projectPath`, which
8
+ * is AES-GCM-encrypted at rest in E2E sessions and is never decrypted (Stage-1
9
+ * HIGH — that would render ciphertext as the path).
10
+ */
11
+ cwd: string;
5
12
  tier: Tier;
13
+ /** Boot-time planner runtime kind (NOT a live probe). */
14
+ plannerRuntimeKind: PlannerRuntimeKind;
15
+ /** Display label for the local model (e.g. `gemma4`). */
16
+ plannerLabel: string;
17
+ /** Test seam — overrides the terminal width used for cwd truncation. */
18
+ columns?: number;
6
19
  }
7
20
  export declare function StatusBar(props: StatusBarProps): React.ReactElement;