@illuminis/comprism 0.1.8 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/out/{graph → build/machine/codemap}/read-python.js +2 -2
  2. package/out/{executor → build/machine/executor}/diagnostics.js +1 -1
  3. package/out/{executor → build/machine/executor}/hooks.js +1 -1
  4. package/out/{executor → build/machine/executor}/sandbox.js +1 -1
  5. package/out/build/machine/line/index.js +339 -0
  6. package/out/{commands/privacy.js → build/machine/runtime/home.js} +10 -19
  7. package/out/build/machine/runtime/needs.js +89 -0
  8. package/out/{lib → build/machine/runtime}/self.js +25 -3
  9. package/out/build/machine/terminal/jobs.js +67 -0
  10. package/out/build/machine/terminal/sign-in.js +212 -0
  11. package/out/build/machine/terminal/steps.js +460 -0
  12. package/out/build/machine/terminal/voice.js +136 -0
  13. package/out/build/machine/voice/record.js +286 -0
  14. package/out/cli-start.js +128 -0
  15. package/out/machine/line/index.js +339 -0
  16. package/out/machine/runtime/self.js +22 -0
  17. package/out/machine/terminal/clipboard.js +182 -0
  18. package/out/machine/terminal/jobs.js +67 -0
  19. package/out/machine/terminal/sign-in.js +212 -0
  20. package/out/machine/terminal/steps.js +460 -0
  21. package/out/machine/terminal/voice.js +136 -0
  22. package/out/machine/voice/record.js +79 -1
  23. package/out/native/dictate +0 -0
  24. package/out/server.generated.js +6 -0
  25. package/package.json +8 -40
  26. package/README.md +0 -343
  27. package/out/agent/command.d.ts +0 -157
  28. package/out/agent/command.js +0 -454
  29. package/out/agent/render.d.ts +0 -169
  30. package/out/agent/render.js +0 -689
  31. package/out/agent/session.d.ts +0 -334
  32. package/out/agent/session.js +0 -1232
  33. package/out/commands/agents.d.ts +0 -2
  34. package/out/commands/agents.js +0 -79
  35. package/out/commands/ask.d.ts +0 -1
  36. package/out/commands/ask.js +0 -222
  37. package/out/commands/codemap.d.ts +0 -2
  38. package/out/commands/codemap.js +0 -151
  39. package/out/commands/commands-thin.d.ts +0 -39
  40. package/out/commands/commands-thin.js +0 -244
  41. package/out/commands/config.d.ts +0 -1
  42. package/out/commands/config.js +0 -138
  43. package/out/commands/cost.d.ts +0 -1
  44. package/out/commands/cost.js +0 -167
  45. package/out/commands/decisionEngine.d.ts +0 -1
  46. package/out/commands/decisionEngine.js +0 -66
  47. package/out/commands/hooks.d.ts +0 -1
  48. package/out/commands/hooks.js +0 -83
  49. package/out/commands/install.d.ts +0 -206
  50. package/out/commands/install.js +0 -738
  51. package/out/commands/instructions.d.ts +0 -1
  52. package/out/commands/instructions.js +0 -113
  53. package/out/commands/integrations.d.ts +0 -3
  54. package/out/commands/integrations.js +0 -215
  55. package/out/commands/jobs.d.ts +0 -5
  56. package/out/commands/jobs.js +0 -157
  57. package/out/commands/keys.d.ts +0 -55
  58. package/out/commands/keys.js +0 -344
  59. package/out/commands/login.d.ts +0 -9
  60. package/out/commands/login.js +0 -606
  61. package/out/commands/memory.d.ts +0 -3
  62. package/out/commands/memory.js +0 -113
  63. package/out/commands/permissions.d.ts +0 -1
  64. package/out/commands/permissions.js +0 -94
  65. package/out/commands/plugins.d.ts +0 -4
  66. package/out/commands/plugins.js +0 -192
  67. package/out/commands/privacy.d.ts +0 -1
  68. package/out/commands/providerKey.d.ts +0 -32
  69. package/out/commands/providerKey.js +0 -108
  70. package/out/commands/repl.d.ts +0 -12
  71. package/out/commands/repl.js +0 -2303
  72. package/out/commands/report.d.ts +0 -39
  73. package/out/commands/report.js +0 -115
  74. package/out/commands/review.d.ts +0 -5
  75. package/out/commands/review.js +0 -223
  76. package/out/commands/sessions.d.ts +0 -23
  77. package/out/commands/sessions.js +0 -115
  78. package/out/commands/settings.d.ts +0 -23
  79. package/out/commands/settings.js +0 -153
  80. package/out/commands/skills.d.ts +0 -21
  81. package/out/commands/skills.js +0 -207
  82. package/out/commands/unattended.d.ts +0 -7
  83. package/out/commands/unattended.js +0 -351
  84. package/out/commands/update.d.ts +0 -1
  85. package/out/commands/update.js +0 -123
  86. package/out/commands/welcome.d.ts +0 -25
  87. package/out/commands/welcome.js +0 -223
  88. package/out/commands/worktrees.d.ts +0 -5
  89. package/out/commands/worktrees.js +0 -186
  90. package/out/executor/browser.d.ts +0 -14
  91. package/out/executor/diagnostics.d.ts +0 -2
  92. package/out/executor/documents.d.ts +0 -40
  93. package/out/executor/files.d.ts +0 -2
  94. package/out/executor/git.d.ts +0 -48
  95. package/out/executor/hooks.d.ts +0 -51
  96. package/out/executor/index.d.ts +0 -45
  97. package/out/executor/notebook.d.ts +0 -2
  98. package/out/executor/paths.d.ts +0 -20
  99. package/out/executor/sandbox.d.ts +0 -40
  100. package/out/executor/shell.d.ts +0 -86
  101. package/out/executor/toolservers.d.ts +0 -20
  102. package/out/executor/worktree.d.ts +0 -9
  103. package/out/graph/build.d.ts +0 -45
  104. package/out/graph/facts.d.ts +0 -47
  105. package/out/graph/files.d.ts +0 -45
  106. package/out/graph/read-locales.d.ts +0 -29
  107. package/out/graph/read-python.d.ts +0 -11
  108. package/out/graph/read-typescript.d.ts +0 -16
  109. package/out/graph/sync.d.ts +0 -66
  110. package/out/graph/sync.js +0 -242
  111. package/out/lib/attach.d.ts +0 -106
  112. package/out/lib/attach.js +0 -396
  113. package/out/lib/clipboard.d.ts +0 -23
  114. package/out/lib/commandlist.d.ts +0 -20
  115. package/out/lib/commandlist.js +0 -58
  116. package/out/lib/config.d.ts +0 -94
  117. package/out/lib/config.js +0 -197
  118. package/out/lib/connection.d.ts +0 -73
  119. package/out/lib/connection.js +0 -188
  120. package/out/lib/decision.d.ts +0 -22
  121. package/out/lib/decision.js +0 -50
  122. package/out/lib/fingerprint.d.ts +0 -25
  123. package/out/lib/fingerprint.js +0 -58
  124. package/out/lib/gateway.d.ts +0 -427
  125. package/out/lib/gateway.js +0 -226
  126. package/out/lib/history.d.ts +0 -24
  127. package/out/lib/history.js +0 -137
  128. package/out/lib/ide.d.ts +0 -19
  129. package/out/lib/ide.js +0 -131
  130. package/out/lib/keyboard.d.ts +0 -98
  131. package/out/lib/keyboard.js +0 -390
  132. package/out/lib/lastlogin.d.ts +0 -14
  133. package/out/lib/lastlogin.js +0 -105
  134. package/out/lib/machine.d.ts +0 -21
  135. package/out/lib/machine.js +0 -91
  136. package/out/lib/notify.d.ts +0 -4
  137. package/out/lib/notify.js +0 -52
  138. package/out/lib/output.d.ts +0 -48
  139. package/out/lib/output.js +0 -108
  140. package/out/lib/picker.d.ts +0 -1
  141. package/out/lib/picker.js +0 -158
  142. package/out/lib/project-ops.d.ts +0 -19
  143. package/out/lib/project-ops.js +0 -146
  144. package/out/lib/project.d.ts +0 -28
  145. package/out/lib/prompt.d.ts +0 -37
  146. package/out/lib/prompt.js +0 -142
  147. package/out/lib/queue.d.ts +0 -13
  148. package/out/lib/queue.js +0 -116
  149. package/out/lib/readiness.d.ts +0 -22
  150. package/out/lib/readiness.js +0 -207
  151. package/out/lib/self.d.ts +0 -23
  152. package/out/lib/servicecommand.d.ts +0 -14
  153. package/out/lib/servicecommand.js +0 -74
  154. package/out/lib/sessions.d.ts +0 -19
  155. package/out/lib/sessions.js +0 -221
  156. package/out/lib/startcache.d.ts +0 -13
  157. package/out/lib/startcache.js +0 -78
  158. package/out/lib/stdin.d.ts +0 -32
  159. package/out/lib/stdin.js +0 -117
  160. package/out/lib/store.d.ts +0 -40
  161. package/out/lib/store.js +0 -138
  162. package/out/lib/sync.d.ts +0 -18
  163. package/out/lib/sync.js +0 -81
  164. package/out/lib/types.d.ts +0 -417
  165. package/out/lib/types.js +0 -21
  166. package/out/lib/ui.d.ts +0 -123
  167. package/out/lib/ui.js +0 -299
  168. package/out/lib/version.d.ts +0 -23
  169. package/out/lib/version.js +0 -46
  170. package/out/lib/voice.d.ts +0 -49
  171. package/out/lib/voice.js +0 -236
  172. package/out/lib/words.d.ts +0 -20
  173. package/out/lib/words.js +0 -27
  174. package/out/machine/codemap/build.d.ts +0 -45
  175. package/out/machine/codemap/facts.d.ts +0 -47
  176. package/out/machine/codemap/files.d.ts +0 -45
  177. package/out/machine/codemap/read-locales.d.ts +0 -29
  178. package/out/machine/codemap/read-python.d.ts +0 -11
  179. package/out/machine/codemap/read-typescript.d.ts +0 -16
  180. package/out/machine/executor/browser.d.ts +0 -14
  181. package/out/machine/executor/diagnostics.d.ts +0 -2
  182. package/out/machine/executor/documents.d.ts +0 -40
  183. package/out/machine/executor/files.d.ts +0 -2
  184. package/out/machine/executor/git.d.ts +0 -48
  185. package/out/machine/executor/hooks.d.ts +0 -51
  186. package/out/machine/executor/index.d.ts +0 -45
  187. package/out/machine/executor/notebook.d.ts +0 -2
  188. package/out/machine/executor/paths.d.ts +0 -20
  189. package/out/machine/executor/sandbox.d.ts +0 -40
  190. package/out/machine/executor/shell.d.ts +0 -86
  191. package/out/machine/executor/toolservers.d.ts +0 -20
  192. package/out/machine/executor/worktree.d.ts +0 -9
  193. package/out/machine/folder/project.d.ts +0 -28
  194. package/out/machine/runtime/home.d.ts +0 -2
  195. package/out/machine/runtime/needs.d.ts +0 -30
  196. package/out/machine/runtime/self.d.ts +0 -23
  197. package/out/machine/voice/record.d.ts +0 -38
  198. package/out/postinstall.d.ts +0 -2
  199. package/out/postinstall.js +0 -120
  200. package/out/providers/anthropic.d.ts +0 -22
  201. package/out/providers/anthropic.js +0 -80
  202. package/out/providers/index.d.ts +0 -8
  203. package/out/providers/index.js +0 -84
  204. package/out/providers/openai.d.ts +0 -11
  205. package/out/providers/openai.js +0 -57
  206. package/out/thin.d.ts +0 -2
  207. package/out/thin.js +0 -855
  208. package/scripts/read_python.py +0 -270
  209. /package/out/{graph → build/machine/codemap}/build.js +0 -0
  210. /package/out/{graph → build/machine/codemap}/facts.js +0 -0
  211. /package/out/{graph → build/machine/codemap}/files.js +0 -0
  212. /package/out/{graph → build/machine/codemap}/read-locales.js +0 -0
  213. /package/out/{graph → build/machine/codemap}/read-typescript.js +0 -0
  214. /package/out/{executor → build/machine/executor}/browser.js +0 -0
  215. /package/out/{executor → build/machine/executor}/documents.js +0 -0
  216. /package/out/{executor → build/machine/executor}/files.js +0 -0
  217. /package/out/{executor → build/machine/executor}/git.js +0 -0
  218. /package/out/{executor → build/machine/executor}/index.js +0 -0
  219. /package/out/{executor → build/machine/executor}/notebook.js +0 -0
  220. /package/out/{executor → build/machine/executor}/paths.js +0 -0
  221. /package/out/{executor → build/machine/executor}/shell.js +0 -0
  222. /package/out/{executor → build/machine/executor}/toolservers.js +0 -0
  223. /package/out/{executor → build/machine/executor}/worktree.js +0 -0
  224. /package/out/{lib → build/machine/folder}/project.js +0 -0
  225. /package/out/{lib → build/machine/terminal}/clipboard.js +0 -0
@@ -1,334 +0,0 @@
1
- import { type ProjectFacts } from "../machine/folder/project";
2
- import * as ui from "./render";
3
- export interface SessionOptions {
4
- /** Where the workspace lives, and the URL of the server that owns it. */
5
- baseUrl: string;
6
- /** The workspace credential the device flow minted. Never a decodable token. */
7
- credential: string;
8
- root: string;
9
- /** The project, start folder, branch and added folders (manual 2.1 to 2.3).
10
- * `root` is the project root when this is present. */
11
- project?: ProjectFacts;
12
- /** read_only, approve_writes, auto_edit or full_auto. Named, not numbered. */
13
- permissionMode?: string;
14
- /** Investigate and propose, change nothing. */
15
- planOnly?: boolean;
16
- /** The plan was read and approved, so the files in it are not asked about
17
- * again. The server checks this against what the account permits; sending it
18
- * is a statement of what the person said, not a grant. */
19
- planApproved?: boolean;
20
- /** A model the person named. Absent means the router chooses, per step, which
21
- * is the point of the product. On its own this TELLS the router what is
22
- * running, so the receipt can price the saving against it; the router is
23
- * still free to move up. Set `pinModel` to be given that model and no other. */
24
- model?: string;
25
- /** Run `model` and nothing else, whatever the router would prefer. Off by
26
- * default. For a person who wants to decide for themselves, and for the
27
- * corpus study, which has to measure each model as itself. */
28
- pinModel?: boolean;
29
- maxSpendUsd?: number;
30
- /** Stop after this many steps (manual 4.13). */
31
- maxSteps?: number;
32
- /** Reasoning effort asked for: low, medium or high (manual 4.18). */
33
- effort?: string;
34
- /** Commands run in the operating system's sandbox (manual 4.12). */
35
- sandbox?: boolean;
36
- /** Seconds each command may run (manual 5.12); the service applies it. */
37
- commandTimeoutS?: number;
38
- /** Background processes outlive the job; the session stops them (5.13). */
39
- keepProcesses?: boolean;
40
- /** Start from this GitHub issue (manual 5.20). */
41
- issue?: number;
42
- /** Lead this team (manual 5.27). */
43
- team?: string;
44
- /** A review job (manual 5.19). */
45
- review?: {
46
- pr?: number;
47
- post?: boolean;
48
- };
49
- /** Commands the person has approved in advance, matched exactly.
50
- *
51
- * The one thing a run with nobody watching cannot otherwise do is verify its
52
- * own work: every mode asks before running an arbitrary command, correctly,
53
- * and there is nobody there to answer. Naming the command up front is how
54
- * that is settled without widening anything, which is why it is a list of
55
- * exact commands and not a flag that turns the check off. */
56
- approvedCommands?: string[];
57
- /** Files already uploaded and waiting, to be read before this question.
58
- * Ids only: the server holds the text for half an hour and nothing here has
59
- * ever seen the contents. */
60
- attachmentIds?: string[];
61
- /** Files named that could not be attached. Names only (manual 3.10). */
62
- leftOut?: string[];
63
- /** Nobody is at the keyboard. Approvals cannot be asked for, so the
64
- * permission mode has to have settled them in advance. */
65
- headless?: boolean;
66
- /** Ask the person a yes or no question, using a keyboard somebody else
67
- * already owns.
68
- *
69
- * A session that is reading its own prompt cannot also let this class open a
70
- * reader: the two divide the typing between them and the second gets
71
- * nothing, so every approval hung or came back refused. Whoever started the
72
- * process owns the keyboard and lends it here. Absent, this class opens its
73
- * own reader as before, which is the standalone command's case. */
74
- confirm?: (question: string) => Promise<boolean>;
75
- /** Ask the person for a line of text on the same lent keyboard: the plan
76
- * question and the agent's questions (manual 4.2, 4.3). Resolves null when
77
- * the person pressed Ctrl+C, which stops the job. */
78
- prompt?: (question: string) => Promise<string | null>;
79
- /** Continue a job that already exists, rather than starting one. */
80
- resumeJobId?: string;
81
- /** The job this question follows on from. The server loads that job's
82
- * conversation from the record, so a terminal with no store of its own still
83
- * holds a thread. */
84
- continuesJob?: string;
85
- /** Go without the code map for this job. See `command.ts`. */
86
- withoutMap?: boolean;
87
- /**
88
- * Which conversation this job belongs to.
89
- *
90
- * Sent because the server cannot work it out. With no conversation id it
91
- * files the work under a person's DAY on one client, so three separate
92
- * sessions in one afternoon were stored as one row called "cli, 2026-09-21"
93
- * and the terminal's own session list disagreed with the Sessions screen.
94
- * The terminal has always known which session it was in; it simply never
95
- * said.
96
- */
97
- conversationId?: string;
98
- /** `--max-minutes` (manual 10.7), held by the service. */
99
- maxMinutes?: number;
100
- /** `--schema`, `--config`, `--no-personal` (manual 10.5, 10.8), sent as read. */
101
- answerSchema?: Record<string, unknown>;
102
- settingsConfig?: Record<string, unknown>;
103
- noPersonal?: boolean;
104
- /** A queued job this run carries out (manual 10.17 to 10.19). */
105
- queuedJob?: string;
106
- /** `--output stream`: handed the service's stream lines as they arrive. */
107
- onStream?: (items: Array<Record<string, unknown>>) => void;
108
- }
109
- /** How many next steps the last job offered (web manual 13.4), so a bare number
110
- * typed next is sent to the service to run one rather than to the agent. */
111
- export declare let waitingNextSteps: number;
112
- export interface JobResult {
113
- /** The service's lines for the next steps it offered, printed as sent. */
114
- nextSteps?: string[];
115
- outcome: string;
116
- detail?: string | null;
117
- jobId?: string;
118
- steps: number;
119
- actions: number;
120
- totalUsd: number;
121
- /** What routing saved against the comparison model, or null when there is
122
- * nothing to compare this job against. Never 0 in place of unknown: a saving
123
- * of zero and a saving nobody can price are different answers. */
124
- savedUsd: number | null;
125
- /** The receipt sentence, exactly as our server wrote it. The terminal
126
- * formats this and never composes its own: the price list, the comparison
127
- * model and the arithmetic are all on the server, so a client that wrote its
128
- * own wording would be a second answer to the same question. */
129
- receipt: string;
130
- /** The receipt card, worded by the server. Drawn as sent. */
131
- card?: ui.ReceiptCard | null;
132
- /** Which models did the work, and each one's share, as the server reported
133
- * it. Taken as sent, never recalculated here. */
134
- models: ui.ModelShare[];
135
- text: string;
136
- testsPassed?: boolean;
137
- /** How the job ended, in the service's words (manual 5.15): the first line,
138
- * the proof lines and the exit status. Absent from an older service. */
139
- ending?: {
140
- line: string | null;
141
- proof: string[];
142
- exit: number | null;
143
- reason?: string;
144
- };
145
- /** The result object a script reads (manual 10.3), exactly as the service
146
- * built it. Printed with --output json; never assembled here. */
147
- result?: Record<string, unknown>;
148
- /** Reason word to exit number, as the service sent it (Appendix B). */
149
- exitStatus?: Record<string, number>;
150
- /** Why the job was refused before it started, as a reason word: the
151
- * service's own, or what the reply showed (no sign in, no connection). */
152
- refusalReason?: string;
153
- /** Share of everything the job sent that the provider served from cache. */
154
- reusedPct?: number | null;
155
- /** The agent's checklist as it ended (manual 4.4). */
156
- todos: Array<{
157
- content: string;
158
- status: string;
159
- }>;
160
- /** The full reason for the last step's model, for `why` (manual 4.16). */
161
- why?: string[];
162
- /** Notes typed after the last step, to be sent as new requests (6.8). */
163
- lateNotes: string[];
164
- }
165
- export declare class TerminalSession {
166
- /** The VS Code window this terminal is inside, when there is one (VS Code manual 9.12). */
167
- private editor;
168
- private socket;
169
- private readonly executor;
170
- private readonly opts;
171
- private readonly out;
172
- private lastTodos;
173
- /** The last thing it said on screen, so the ending does not say it twice.
174
- * Every step prints what the model said, and the closing frame carries the
175
- * final text again, so the answer to a one step job appeared twice in a row
176
- * with nothing between the copies. */
177
- private lastSaid;
178
- private canceled;
179
- /** The live "thinking 12s" line while the model works on a step. Drawn in
180
- * place and erased before anything else prints, so it never lands in the
181
- * answer. Without it a step is a blank screen for as long as the model takes,
182
- * and "thinking" and "hung" look identical. */
183
- private working;
184
- /** When the current wait began, kept across the line being redrawn. Cleared
185
- * when a step finishes, so the next step counts from its own start. */
186
- private workFrom;
187
- private readonly write;
188
- constructor(opts: SessionOptions, write?: (s: string) => void);
189
- /** Where the socket lives, derived from the workspace URL.
190
- *
191
- * Derived rather than configured: a second setting for the socket address is
192
- * a second thing that can point at the wrong server, and the failure would be
193
- * a job running against somebody else's workspace. */
194
- /**
195
- * A pass for this job's stream, from the one service.
196
- *
197
- * The job is authorized THERE, where everything else in the product is
198
- * authorized, and this returns only permission to open the stream. Null when
199
- * the service refused or could not be reached, and the caller then reports
200
- * the service's own words rather than guessing at them.
201
- */
202
- private pass;
203
- /** Where the stream lives, derived from the workspace URL.
204
- *
205
- * Derived rather than configured: a second setting for the stream address is
206
- * a second thing that can point at the wrong server, and the failure would be
207
- * a job running against somebody else's workspace.
208
- *
209
- * The credential still travels because the pass is redeemed against the
210
- * tenant it was issued in, and the pass is what actually authorizes the job.
211
- * Without a pass this falls back to the old behavior, which is what a
212
- * workspace running an older build still understands. */
213
- private socketUrl;
214
- /** The name the map is held under: the folder's own, which is exactly what
215
- * the run frame already sends as the workspace. One expression, so the map
216
- * and the job record can never be about two different projects. */
217
- private project;
218
- /** Connections lost during this job, so reconnecting gives up in the end. */
219
- private drops;
220
- /** Why the one service would not start this job, in its own words. */
221
- private refusal;
222
- private refusalReason;
223
- private refusalResult;
224
- private refusalTable;
225
- /** The workspace does not carry the permission question yet, so fall back. */
226
- private olderWorkspace;
227
- /** Set while one is actually running, so two never overlap. */
228
- private remapping;
229
- /**
230
- * The agent just changed something on disk. Bring the map back in step.
231
- *
232
- * Only for actions that can change a file. A read or a search leaves the
233
- * project exactly as it was, and re-reading it would be a round trip bought
234
- * for nothing on the most common actions there are.
235
- *
236
- * The refresh itself is the ordinary one: it compares the files against what
237
- * the service holds and sends back only what moved, which after one edit is
238
- * one file. Debounced by a short wait, because an agent that writes four
239
- * files in one step should pay for one update, not four.
240
- */
241
- private noteChanged;
242
- /**
243
- * Put the files this job changed back into the map.
244
- *
245
- * Runs after the job, without being waited on: the person has their answer
246
- * and a re-read of three files must not hold up their prompt. A failure here
247
- * costs nothing, because the next job checks the files anyway and would read
248
- * them then.
249
- */
250
- private remap;
251
- /** Run one request to its end. Resolves with how it went. */
252
- run(request: string): Promise<JobResult>;
253
- /**
254
- * A pass to rejoin this job after a dropped connection, trying for about
255
- * half a minute, inside the service's window (manual 8.9). Null when the
256
- * service could not be reached again, or refused.
257
- */
258
- private reconnect;
259
- /** Stop the running job. Takes effect mid action, not at the end of the run:
260
- * a command already running on this machine is stopped too (manual 6.7). */
261
- cancel(): void;
262
- /** Something typed while it works. Joins the conversation at the next step;
263
- * the service says so in the `note` event it sends back (6.8). */
264
- steer(text: string): void;
265
- /** Esc: finish the current action, then wait (manual 6.7). */
266
- pause(): void;
267
- /** Carry on after Esc, with a correction or without one. */
268
- carryOn(text: string): void;
269
- /** This job's id, once the service has issued it (`transcript`, 6.9). */
270
- jobId: string | undefined;
271
- /** Set from Esc until the job carries on or stops. */
272
- paused: boolean;
273
- /** Helpers running now, from the service's own events (manual 5.25). */
274
- readonly helpers: Map<string, {
275
- id: string;
276
- question: string;
277
- agent?: string | null;
278
- }>;
279
- /** `stop h2` (5.25): the service stops that one helper. */
280
- stopHelper(id: string): void;
281
- /** `queue` and `queue clear` (6.8): the service answers with the notes. */
282
- queue(clear: boolean): void;
283
- /** Ctrl+O: each action's full input and output, or the short line (6.9). */
284
- full: boolean;
285
- private announce;
286
- /** The allowance and plan notes, printed under the first line so it stays first. */
287
- private allowanceLine;
288
- /** A running command's output on screen (manual 5.12): the first lines as
289
- * they arrive, then held, and at the end either the rest or the last lines
290
- * with a count of what was left out. How many is the service's number. */
291
- private screen;
292
- private stream;
293
- private flushScreen;
294
- /** Changes already put in front of the person to approve, so they are not
295
- * shown twice. Every other change is shown as it is made (5.6 to 5.8). */
296
- private asked;
297
- /** The sandbox this machine offers, worked out once (manual 4.12). */
298
- private sandboxChecked;
299
- private sandboxSystem;
300
- /** The full reason for the last step, as the service wrote it (4.16). */
301
- lastWhy: string[];
302
- /** An unattended run refused an action that needed approval (Appendix B, 4). */
303
- refusedUnattended: boolean;
304
- /** Approved actions by call, and what exactly was approved (manual 4.8). */
305
- private approvedCalls;
306
- /** Approvals waiting here that the browser may answer first (web manual 6.15). */
307
- private answeredElsewhere;
308
- /** An action as approved: its name, its arguments and the real folder it
309
- * runs in, so a changed argument or a moved folder is caught. */
310
- private fingerprint;
311
- /** Starts the working line with the service's own words. Only on a real
312
- * terminal: a piped or unattended run gets the answer and nothing else. */
313
- private startWorking;
314
- private stopWorking;
315
- private narrate;
316
- private targetOf;
317
- /** Put a change in front of the person and wait.
318
- *
319
- * Three cases, in order. A caller that owns the keyboard lent us one, so the
320
- * question goes there. Nobody lent one and somebody is watching, so we open
321
- * our own reader. Nobody is watching, so it is refused.
322
- *
323
- * In headless mode there is nobody to ask, so it is refused rather than
324
- * assumed. Treating silence as consent would let a script approve changes
325
- * nobody ever saw, which is the opposite of what a permission mode is for:
326
- * a script that needs to change files says so by choosing a mode that allows
327
- * it, up front. */
328
- private ask;
329
- /** The plan question or one of the agent's questions (manual 4.2, 4.3).
330
- * Returns what the person typed, or null for Ctrl+C. The meaning of the
331
- * answer (y, n, a number, words) is decided by the service. */
332
- private question;
333
- private report;
334
- }