@dailephd/my-centcom 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/README.md +10 -5
  2. package/apps/daemon/dist/artifacts/returnSnapshots.d.ts +12 -0
  3. package/apps/daemon/dist/artifacts/returnSnapshots.js +41 -0
  4. package/apps/daemon/dist/bootstrap/app.d.ts +21 -0
  5. package/apps/daemon/dist/bootstrap/app.js +27 -0
  6. package/apps/daemon/dist/bootstrap/installLayout.d.ts +81 -0
  7. package/apps/daemon/dist/bootstrap/installLayout.js +164 -0
  8. package/apps/daemon/dist/bootstrap/main.d.ts +14 -0
  9. package/apps/daemon/dist/bootstrap/main.js +141 -0
  10. package/apps/daemon/dist/bootstrap/operatorConsole.d.ts +75 -0
  11. package/apps/daemon/dist/bootstrap/operatorConsole.js +293 -0
  12. package/apps/daemon/dist/bootstrap/privateDataRoot.d.ts +38 -0
  13. package/apps/daemon/dist/bootstrap/privateDataRoot.js +204 -0
  14. package/apps/daemon/dist/bootstrap/secureMain.d.ts +118 -0
  15. package/apps/daemon/dist/bootstrap/secureMain.js +403 -0
  16. package/apps/daemon/dist/bootstrap/setup.d.ts +93 -0
  17. package/apps/daemon/dist/bootstrap/setup.js +738 -0
  18. package/apps/daemon/dist/context/changeProposal.d.ts +97 -0
  19. package/apps/daemon/dist/context/changeProposal.js +259 -0
  20. package/apps/daemon/dist/context/gitEvidence.d.ts +88 -0
  21. package/apps/daemon/dist/context/gitEvidence.js +332 -0
  22. package/apps/daemon/dist/context/gitObservation.d.ts +30 -0
  23. package/apps/daemon/dist/context/gitObservation.js +113 -0
  24. package/apps/daemon/dist/context/projectReadIssuer.d.ts +68 -0
  25. package/apps/daemon/dist/context/projectReadIssuer.js +158 -0
  26. package/apps/daemon/dist/context/projectReadService.d.ts +153 -0
  27. package/apps/daemon/dist/context/projectReadService.js +652 -0
  28. package/apps/daemon/dist/context/projectViewService.d.ts +85 -0
  29. package/apps/daemon/dist/context/projectViewService.js +332 -0
  30. package/apps/daemon/dist/context/proposalRecorder.d.ts +11 -0
  31. package/apps/daemon/dist/context/proposalRecorder.js +19 -0
  32. package/apps/daemon/dist/plugins/drivers/codexMcpConfig.d.ts +40 -0
  33. package/apps/daemon/dist/plugins/drivers/codexMcpConfig.js +73 -0
  34. package/apps/daemon/dist/plugins/drivers/codexModelCompatibility.d.ts +49 -0
  35. package/apps/daemon/dist/plugins/drivers/codexModelCompatibility.js +70 -0
  36. package/apps/daemon/dist/plugins/drivers/fakePluginDriver.d.ts +16 -0
  37. package/apps/daemon/dist/plugins/drivers/fakePluginDriver.js +115 -0
  38. package/apps/daemon/dist/plugins/drivers/finiteCliDriver.d.ts +153 -0
  39. package/apps/daemon/dist/plugins/drivers/finiteCliDriver.js +505 -0
  40. package/apps/daemon/dist/plugins/registry/operationCatalog.d.ts +23 -0
  41. package/apps/daemon/dist/plugins/registry/operationCatalog.js +41 -0
  42. package/apps/daemon/dist/plugins/registry/registryOperationCatalog.d.ts +14 -0
  43. package/apps/daemon/dist/plugins/registry/registryOperationCatalog.js +29 -0
  44. package/apps/daemon/dist/plugins/registry/verifiedCapabilityRegistry.d.ts +151 -0
  45. package/apps/daemon/dist/plugins/registry/verifiedCapabilityRegistry.js +579 -0
  46. package/apps/daemon/dist/projects/codingAuthority.d.ts +102 -0
  47. package/apps/daemon/dist/projects/codingAuthority.js +244 -0
  48. package/apps/daemon/dist/projects/fixtureAuthorization.d.ts +54 -0
  49. package/apps/daemon/dist/projects/fixtureAuthorization.js +172 -0
  50. package/apps/daemon/dist/projects/pairedAuthority.d.ts +158 -0
  51. package/apps/daemon/dist/projects/pairedAuthority.js +273 -0
  52. package/apps/daemon/dist/projects/trustedCliConsent.d.ts +47 -0
  53. package/apps/daemon/dist/projects/trustedCliConsent.js +84 -0
  54. package/apps/daemon/dist/runs/changeApplier.d.ts +59 -0
  55. package/apps/daemon/dist/runs/changeApplier.js +319 -0
  56. package/apps/daemon/dist/runs/codingWorkflowService.d.ts +283 -0
  57. package/apps/daemon/dist/runs/codingWorkflowService.js +785 -0
  58. package/apps/daemon/dist/runs/durableIntentCoordinator.d.ts +72 -0
  59. package/apps/daemon/dist/runs/durableIntentCoordinator.js +160 -0
  60. package/apps/daemon/dist/runs/inMemoryCoordinator.d.ts +55 -0
  61. package/apps/daemon/dist/runs/inMemoryCoordinator.js +375 -0
  62. package/apps/daemon/dist/runs/runExecutor.d.ts +154 -0
  63. package/apps/daemon/dist/runs/runExecutor.js +295 -0
  64. package/apps/daemon/dist/runs/workflowService.d.ts +185 -0
  65. package/apps/daemon/dist/runs/workflowService.js +300 -0
  66. package/apps/daemon/dist/runtime/boundedProcessHost.d.ts +111 -0
  67. package/apps/daemon/dist/runtime/boundedProcessHost.js +752 -0
  68. package/apps/daemon/dist/runtime/evidenceRedaction.d.ts +30 -0
  69. package/apps/daemon/dist/runtime/evidenceRedaction.js +79 -0
  70. package/apps/daemon/dist/runtime/executionDiagnostics.d.ts +134 -0
  71. package/apps/daemon/dist/runtime/executionDiagnostics.js +213 -0
  72. package/apps/daemon/dist/runtime/modelExecutionPolicy.d.ts +22 -0
  73. package/apps/daemon/dist/runtime/modelExecutionPolicy.js +19 -0
  74. package/apps/daemon/dist/runtime/mxcExecution.d.ts +12 -0
  75. package/apps/daemon/dist/runtime/mxcExecution.js +163 -0
  76. package/apps/daemon/dist/runtime/mxcIntegrity.d.ts +24 -0
  77. package/apps/daemon/dist/runtime/mxcIntegrity.js +81 -0
  78. package/apps/daemon/dist/runtime/mxcWorker.d.ts +2 -0
  79. package/apps/daemon/dist/runtime/mxcWorker.js +45 -0
  80. package/apps/daemon/dist/runtime/provisionedExecution.d.ts +150 -0
  81. package/apps/daemon/dist/runtime/provisionedExecution.js +653 -0
  82. package/apps/daemon/dist/runtime/testExecution.d.ts +76 -0
  83. package/apps/daemon/dist/runtime/testExecution.js +106 -0
  84. package/apps/daemon/dist/runtime/testProfiles.d.ts +10 -0
  85. package/apps/daemon/dist/runtime/testProfiles.js +4 -0
  86. package/apps/daemon/dist/runtime/trustedAgentStaging.d.ts +89 -0
  87. package/apps/daemon/dist/runtime/trustedAgentStaging.js +262 -0
  88. package/apps/daemon/dist/runtime/trustedCaBundle.d.ts +77 -0
  89. package/apps/daemon/dist/runtime/trustedCaBundle.js +125 -0
  90. package/apps/daemon/dist/runtime/windows/windowsJobSupervisor.d.ts +166 -0
  91. package/apps/daemon/dist/runtime/windows/windowsJobSupervisor.js +521 -0
  92. package/apps/daemon/dist/storage/diagnosticLog.d.ts +63 -0
  93. package/apps/daemon/dist/storage/diagnosticLog.js +136 -0
  94. package/apps/daemon/dist/storage/executionTelemetry.d.ts +63 -0
  95. package/apps/daemon/dist/storage/executionTelemetry.js +247 -0
  96. package/apps/daemon/dist/storage/protectedSecrets.d.ts +39 -0
  97. package/apps/daemon/dist/storage/protectedSecrets.js +106 -0
  98. package/apps/daemon/dist/storage/sqliteLedger.d.ts +786 -0
  99. package/apps/daemon/dist/storage/sqliteLedger.js +1303 -0
  100. package/apps/daemon/dist/transports/http/dispatch.d.ts +43 -0
  101. package/apps/daemon/dist/transports/http/dispatch.js +405 -0
  102. package/apps/daemon/dist/transports/http/secureRoutes.d.ts +40 -0
  103. package/apps/daemon/dist/transports/http/secureRoutes.js +332 -0
  104. package/apps/daemon/dist/transports/http/workflowRoutes.d.ts +41 -0
  105. package/apps/daemon/dist/transports/http/workflowRoutes.js +473 -0
  106. package/apps/daemon/dist/transports/mcp/localProjectReadServer.d.ts +182 -0
  107. package/apps/daemon/dist/transports/mcp/localProjectReadServer.js +221 -0
  108. package/apps/daemon/dist/transports/native/nativeHost.d.ts +24 -0
  109. package/apps/daemon/dist/transports/native/nativeHost.js +344 -0
  110. package/apps/daemon/package.json +24 -0
  111. package/apps/daemon/src/runtime/benign/referenceEcho.mjs +27 -0
  112. package/apps/daemon/src/runtime/windows/buildSupervisor.mjs +87 -0
  113. package/apps/daemon/src/runtime/windows/supervisorMain.cs +676 -0
  114. package/apps/extension/manifest.secure.json +25 -0
  115. package/apps/extension/scripts/build.mjs +173 -0
  116. package/apps/extension/src/background/secureWorker.ts +1595 -0
  117. package/apps/extension/src/background/serviceWorker.ts +892 -0
  118. package/apps/extension/src/content/captureSelection.ts +64 -0
  119. package/apps/extension/src/content/secureInsert.ts +207 -0
  120. package/apps/extension/src/probe/index.html +41 -0
  121. package/apps/extension/src/probe/main.ts +201 -0
  122. package/apps/extension/src/sidepanel/index.html +203 -0
  123. package/apps/extension/src/sidepanel/main.ts +903 -0
  124. package/package.json +19 -3
  125. package/packages/contracts/dist/artifacts.d.ts +66 -0
  126. package/packages/contracts/dist/artifacts.js +64 -0
  127. package/packages/contracts/dist/automation.d.ts +540 -0
  128. package/packages/contracts/dist/automation.js +191 -0
  129. package/packages/contracts/dist/browser.d.ts +251 -0
  130. package/packages/contracts/dist/browser.js +131 -0
  131. package/packages/contracts/dist/context.d.ts +71 -0
  132. package/packages/contracts/dist/context.js +73 -0
  133. package/packages/contracts/dist/diagnostics.d.ts +99 -0
  134. package/packages/contracts/dist/diagnostics.js +284 -0
  135. package/packages/contracts/dist/effects.d.ts +42 -0
  136. package/packages/contracts/dist/effects.js +42 -0
  137. package/packages/contracts/dist/errors.d.ts +75 -0
  138. package/packages/contracts/dist/errors.js +70 -0
  139. package/packages/contracts/dist/events.d.ts +50 -0
  140. package/packages/contracts/dist/events.js +34 -0
  141. package/packages/contracts/dist/executionDiagnostics.d.ts +212 -0
  142. package/packages/contracts/dist/executionDiagnostics.js +101 -0
  143. package/packages/contracts/dist/identity.d.ts +54 -0
  144. package/packages/contracts/dist/identity.js +40 -0
  145. package/packages/contracts/dist/index.d.ts +20 -0
  146. package/packages/contracts/dist/index.js +20 -0
  147. package/packages/contracts/dist/invocation.d.ts +90 -0
  148. package/packages/contracts/dist/invocation.js +77 -0
  149. package/packages/contracts/dist/lifecycle.d.ts +130 -0
  150. package/packages/contracts/dist/lifecycle.js +135 -0
  151. package/packages/contracts/dist/plugin.d.ts +214 -0
  152. package/packages/contracts/dist/plugin.js +117 -0
  153. package/packages/contracts/dist/projectRead.d.ts +205 -0
  154. package/packages/contracts/dist/projectRead.js +162 -0
  155. package/packages/contracts/dist/secure.d.ts +128 -0
  156. package/packages/contracts/dist/secure.js +99 -0
  157. package/packages/contracts/package.json +32 -0
  158. package/packages/contracts/src/artifacts.ts +83 -0
  159. package/packages/contracts/src/automation.ts +238 -0
  160. package/packages/contracts/src/browser.ts +164 -0
  161. package/packages/contracts/src/context.ts +91 -0
  162. package/packages/contracts/src/diagnostics.ts +318 -0
  163. package/packages/contracts/src/effects.ts +49 -0
  164. package/packages/contracts/src/errors.ts +83 -0
  165. package/packages/contracts/src/events.ts +46 -0
  166. package/packages/contracts/src/executionDiagnostics.ts +116 -0
  167. package/packages/contracts/src/identity.ts +68 -0
  168. package/packages/contracts/src/index.ts +20 -0
  169. package/packages/contracts/src/invocation.ts +96 -0
  170. package/packages/contracts/src/lifecycle.ts +169 -0
  171. package/packages/contracts/src/plugin.ts +174 -0
  172. package/packages/contracts/src/projectRead.ts +179 -0
  173. package/packages/contracts/src/secure.ts +136 -0
  174. package/provenance.json +179 -9
  175. package/source.zip +0 -0
@@ -0,0 +1,203 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>my-centcom control</title>
6
+ <style>
7
+ body { font-family: system-ui, sans-serif; margin: 12px; font-size: 13px; }
8
+ fieldset { margin: 0 0 12px; padding: 8px; }
9
+ label { display: block; margin: 4px 0; }
10
+ input, select { width: 100%; box-sizing: border-box; }
11
+ button { margin: 4px 4px 0 0; }
12
+ .out { font-family: ui-monospace, monospace; white-space: pre-wrap; min-height: 1.4em; }
13
+ #workflow { border: 1px solid #888; border-radius: 6px; padding: 10px; margin-bottom: 12px; }
14
+ #wf-status { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
15
+ #wf-primary { font-size: 14px; padding: 6px 14px; }
16
+ #wf-text { max-height: 18em; overflow: auto; border: 1px dashed #aaa; padding: 6px; margin: 6px 0; }
17
+ #wf-text:empty { display: none; }
18
+ #wf-copy { font-size: 14px; padding: 6px 14px; }
19
+ #wf-paste-box { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; }
20
+ .small { font-size: 12px; color: #555; }
21
+ [hidden] { display: none !important; }
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <h1>my-centcom</h1>
26
+
27
+ <section id="workflow" aria-label="Current task">
28
+ <div id="wf-status" role="status" aria-live="polite">Connecting...</div>
29
+ <div id="wf-next" class="out small" role="status"></div>
30
+ <div id="wf-detail" class="out small" hidden></div>
31
+ <label>Project<select id="task-project"></select></label>
32
+ <label>Coding agent<select id="task-agent"></select></label>
33
+ <label for="task-editor">Task (review and edit before running)</label>
34
+ <textarea id="task-editor" rows="10" spellcheck="false" wrap="off" style="width:100%;box-sizing:border-box;font-family:ui-monospace,monospace;tab-size:4;white-space:pre"></textarea>
35
+ <div id="task-fidelity" role="status" class="small"></div>
36
+ <div id="activity-health" role="status" aria-live="polite">Daemon health unavailable.</div>
37
+ <div id="activity-current" class="out" role="status" aria-live="polite"></div>
38
+ <pre id="wf-text" class="out" aria-label="Read-only preview"></pre>
39
+ <label id="wf-op-label" hidden>Approved operation
40
+ <select id="wf-op"></select>
41
+ </label>
42
+ <button id="wf-primary" type="button" disabled>Run</button>
43
+ <div id="strict-readiness" role="status" hidden>Strict model isolation is unavailable. You may review the trusted local CLI option; it has normal OS access and requires separate consent.</div>
44
+ <button id="review-trust" type="button" hidden>Review trusted local CLI option</button>
45
+ <section id="trusted-cli" hidden aria-label="Trusted CLI consent">
46
+ <p id="trusted-warning">Trusted mode is disabled by default. Codex is a trusted local program and can have your normal OS-level file and network access. The current shared restricted token does not isolate sibling credentials or agent storage. MCP controls are not OS isolation. Only inspection and proposals are authorized.</p>
47
+ <div id="trusted-status" role="status">Disabled — separate consent required.</div>
48
+ <label><input id="trusted-ack" type="checkbox" style="width:auto"> I understand and accept this trust for the selected project, operation and pinned CLI.</label>
49
+ <button id="trusted-accept" type="button" disabled>Allow trusted proposals for 10 minutes</button>
50
+ <button id="trusted-revoke" type="button" disabled>Revoke trusted CLI consent</button>
51
+ </section>
52
+ <section id="coding-review" hidden aria-label="Coding proposal review">
53
+ <div id="coding-status" role="status" aria-live="polite"></div>
54
+ <pre id="coding-detail" class="out"></pre>
55
+ <pre id="coding-diff" class="out" style="max-height:24em;overflow:auto" aria-label="Proposed diff"></pre>
56
+ <button id="coding-copy-proposal" type="button" hidden>Copy Proposal (unverified)</button>
57
+ <section id="reviewed-patch" hidden aria-label="Reviewed patch application">
58
+ <pre id="reviewed-scope" class="out"></pre>
59
+ <button id="reviewed-apply" type="button">Approve &amp; Apply</button>
60
+ <div id="reviewed-confirmation" hidden>
61
+ <p>Authorize APPLY of this exact proposal to the displayed registered project, and independently authorize GIT_READ to verify it. No tests, commits or model invocation.</p>
62
+ <button id="reviewed-confirm" type="button">Confirm APPLY + GIT_READ</button>
63
+ <button id="reviewed-cancel" type="button">Cancel application</button>
64
+ </div>
65
+ </section>
66
+ <button id="coding-primary" type="button"></button>
67
+ <button id="coding-reject" type="button">Reject proposal</button>
68
+ <details><summary>Optional Git commit</summary><p>Authorizes a commit in the disposable clone only, after passing tests and Git verification.</p><button id="coding-commit" type="button">Authorize Commit</button></details>
69
+ <pre id="coding-result" class="out"></pre>
70
+ <button id="coding-copy" type="button" hidden>Copy Result</button>
71
+ <section id="local-commit" hidden><p>This change has been applied and Git-verified, but has not been runtime-tested. Local only. Identity: my-centcom &lt;my-centcom@localhost.invalid&gt;.</p><label>Commit message<textarea id="local-commit-message" maxlength="1000">Apply reviewed change</textarea></label><button id="local-commit-review" type="button">Review local COMMIT</button><pre id="local-commit-scope" class="out"></pre><button id="local-commit-confirm" type="button" hidden>Confirm local COMMIT — NOT TESTED</button></section>
72
+ </section>
73
+ <button id="wf-copy" type="button" hidden>Copy Result</button>
74
+ <button id="wf-select" type="button" hidden>Select result text</button>
75
+ <div id="wf-copy-status" class="out small" role="status" aria-live="polite"></div>
76
+ <div>
77
+ <button id="wf-rebind" type="button" hidden>Use this tab for the result</button>
78
+ <button id="wf-capture" type="button">Capture selection</button>
79
+ <button id="wf-paste" type="button">Paste copied text</button>
80
+ <button id="wf-dismiss" type="button" hidden>Start over</button>
81
+ <button id="wf-repair" type="button" hidden>Repair connection</button>
82
+ </div>
83
+ <div id="wf-paste-area" hidden>
84
+ <label for="wf-paste-box">Click into the box and press Ctrl+V. Only what you paste here is used; the extension never reads the clipboard by itself.</label>
85
+ <textarea id="wf-paste-box" rows="3" spellcheck="false" autocomplete="off" placeholder="Paste here (Ctrl+V)"></textarea>
86
+ <button id="wf-paste-cancel" type="button">Cancel</button>
87
+ </div>
88
+ <div id="wf-paste-status" class="out small" role="status" aria-live="polite"></div>
89
+ <p class="small">Select the instruction on the page (or copy it with the message's own Copy button and use "Paste copied text"), click the my-centcom toolbar icon, then Run. The result is only ever inserted as a draft or copied for you to paste; nothing is sent for you.</p>
90
+ <div id="wf-build" class="small"></div>
91
+ </section>
92
+
93
+ <section aria-label="Activity and diagnostics">
94
+ <button id="diag-btn" type="button" aria-expanded="false" aria-controls="diagnostics">Show diagnostics</button>
95
+ <section id="diagnostics" hidden>
96
+ <h2>Activity &amp; Console</h2>
97
+ <button id="copy-diagnostics" type="button">Copy diagnostics</button>
98
+ <div id="diag-copy-status" role="status" aria-live="polite"></div>
99
+ <label>Search events<input id="activity-search" type="search" maxlength="120"></label>
100
+ <pre id="activity-console" class="out" style="max-height:24em;overflow:auto" aria-label="Sanitized backend console"></pre>
101
+ <pre id="diag-out" class="out" style="max-height:18em;overflow:auto" aria-label="Redacted diagnostics (read-only)"></pre>
102
+ </section>
103
+ </section>
104
+ <details id="advanced">
105
+ <summary>Advanced: manual pairing, run controls and diagnostics (recovery only)</summary>
106
+ <details id="execution-options"><summary>Execution permissions (strict by default)</summary><label><input id="wf-coding-mode" type="checkbox" style="width:auto"> Inspect and propose a code change (no changes applied)</label>
107
+ <label>CLI execution mode <select id="model-mode"><option value="STRICT_ISOLATED">Strict isolated (security readiness required)</option><option value="TRUSTED_LOCAL_CLI_PROPOSAL_ONLY">Trusted local CLI — proposal only</option></select></label>
108
+ </details>
109
+ <p>Control surface. Approving a run queues it; whether anything is started is decided only by the local daemon, never by this page.</p>
110
+
111
+ <fieldset>
112
+ <legend>1. Pair with the local daemon</legend>
113
+ <label>Daemon port (127.0.0.1 only)
114
+ <input id="port" inputmode="numeric" autocomplete="off" maxlength="5">
115
+ </label>
116
+ <label>Pairing challenge id
117
+ <input id="challenge-id" autocomplete="off" maxlength="128">
118
+ </label>
119
+ <label>One-time pairing code
120
+ <input id="pair-code" type="password" autocomplete="off" maxlength="128">
121
+ </label>
122
+ <button id="pair-btn" type="button">Pair</button>
123
+ <button id="disconnect-btn" type="button">Disconnect</button>
124
+ <div id="conn-status" class="out" role="status" aria-live="polite">Not paired.</div>
125
+ </fieldset>
126
+
127
+ <fieldset>
128
+ <legend>1a. Capture the instruction you selected on the page, then preview it</legend>
129
+ <button id="capture-btn" type="button">Capture selection</button>
130
+ <div id="cap-meta" class="out" role="status" aria-live="polite">Nothing captured.</div>
131
+ <pre id="cap-text" class="out" aria-label="Captured text (read-only preview)"></pre>
132
+ <label>Project id
133
+ <input id="cap-project" autocomplete="off" maxlength="128">
134
+ </label>
135
+ <label>Plugin id
136
+ <input id="cap-plugin" autocomplete="off" maxlength="128">
137
+ </label>
138
+ <label>Operation id
139
+ <input id="cap-operation" autocomplete="off" maxlength="128">
140
+ </label>
141
+ <button id="dispatch-btn" type="button">Send captured text for approval</button>
142
+ </fieldset>
143
+
144
+ <fieldset>
145
+ <legend>1b. NON-QUALIFYING manual entry (test only): the text typed here is not a captured selection. Nothing starts until it is approved.</legend>
146
+ <label>Project id
147
+ <input id="prep-project" autocomplete="off" maxlength="128">
148
+ </label>
149
+ <label>Plugin id
150
+ <input id="prep-plugin" autocomplete="off" maxlength="128">
151
+ </label>
152
+ <label>Operation id
153
+ <input id="prep-operation" autocomplete="off" maxlength="128">
154
+ </label>
155
+ <label>Prompt (preview)
156
+ <textarea id="prep-prompt" rows="6" spellcheck="false" style="width:100%;box-sizing:border-box"></textarea>
157
+ </label>
158
+ <button id="prepare-btn" type="button">Prepare</button>
159
+ </fieldset>
160
+
161
+ <fieldset>
162
+ <legend>2. Run</legend>
163
+ <label>Run id
164
+ <input id="run-id" autocomplete="off" maxlength="128">
165
+ </label>
166
+ <button id="status-btn" type="button">Check status</button>
167
+ <div id="run-status" class="out" role="status" aria-live="polite"></div>
168
+ </fieldset>
169
+
170
+ <fieldset>
171
+ <legend>3. Approve (separate one-time proof)</legend>
172
+ <label>Approval id
173
+ <input id="approval-id" autocomplete="off" maxlength="128">
174
+ </label>
175
+ <label>One-time approval code
176
+ <input id="approval-code" type="password" autocomplete="off" maxlength="128">
177
+ </label>
178
+ <button id="approve-btn" type="button">Approve</button>
179
+ </fieldset>
180
+
181
+ <fieldset>
182
+ <legend>4. Cancel</legend>
183
+ <label>Reason
184
+ <input id="cancel-reason" autocomplete="off" maxlength="128">
185
+ </label>
186
+ <button id="cancel-btn" type="button">Cancel run</button>
187
+ </fieldset>
188
+
189
+ <fieldset>
190
+ <legend>5. Return the run's final text to the conversation it came from (two separate actions; it is only ever a draft, never sent)</legend>
191
+ <button id="prepare-return-btn" type="button">Prepare return of the run above</button>
192
+ <div id="ret-meta" class="out" role="status" aria-live="polite">Nothing prepared.</div>
193
+ <pre id="ret-text" class="out" aria-label="Final text to return (read-only preview)"></pre>
194
+ <button id="insert-return-btn" type="button">Insert into the original composer as a draft</button>
195
+ </fieldset>
196
+
197
+
198
+ </details>
199
+
200
+ <div id="result" class="out" hidden></div>
201
+ <script type="module" src="main.js"></script>
202
+ </body>
203
+ </html>