@stringsync/splates 0.0.45 → 0.0.47

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 (254) hide show
  1. package/README.md +121 -9
  2. package/artifact.d.ts +3 -30
  3. package/budget.d.ts +3 -0
  4. package/coordinator.d.ts +3 -0
  5. package/creds.d.ts +3 -123
  6. package/flags.d.ts +37 -0
  7. package/index.js +826 -26419
  8. package/lane.d.ts +3 -55
  9. package/main.d.ts +6 -0
  10. package/package.json +3 -42
  11. package/projects.d.ts +3 -136
  12. package/queue.d.ts +3 -0
  13. package/setup.d.ts +16 -98
  14. package/slots.d.ts +3 -135
  15. package/splates.d.ts +1 -19
  16. package/todo.d.ts +3 -146
  17. package/{splates-tunnel.d.ts → tunnel.d.ts} +1 -1
  18. package/{splates-worker.d.ts → worker.d.ts} +1 -1
  19. package/acp-extensions.d.ts +0 -82
  20. package/add.d.ts +0 -53
  21. package/adherence.d.ts +0 -49
  22. package/age.d.ts +0 -2
  23. package/agent-connection.d.ts +0 -171
  24. package/agent-errors.d.ts +0 -2
  25. package/agent-process.d.ts +0 -65
  26. package/agent-stream.d.ts +0 -91
  27. package/agents.d.ts +0 -15
  28. package/artifact-room.d.ts +0 -47
  29. package/artifact-viewers.d.ts +0 -6
  30. package/artifacts.d.ts +0 -161
  31. package/asked.d.ts +0 -146
  32. package/asked.js +0 -7
  33. package/assumed.d.ts +0 -34
  34. package/attach.d.ts +0 -30
  35. package/attachments.d.ts +0 -43
  36. package/baselines.d.ts +0 -55
  37. package/claim.d.ts +0 -17
  38. package/cloudflare-api.d.ts +0 -25
  39. package/cloudflare-error.d.ts +0 -5
  40. package/cloudflared-tunnel-provider.d.ts +0 -27
  41. package/codex-limits.d.ts +0 -19
  42. package/compaction.d.ts +0 -17
  43. package/config-source.d.ts +0 -13
  44. package/config.d.ts +0 -98
  45. package/config.js +0 -7
  46. package/conversation-archive.d.ts +0 -6
  47. package/conversation-background.d.ts +0 -21
  48. package/conversation-choice.d.ts +0 -4
  49. package/conversation-files.d.ts +0 -51
  50. package/conversation-given.d.ts +0 -8
  51. package/conversation-host.d.ts +0 -102
  52. package/conversation-listing.d.ts +0 -15
  53. package/conversation-log.d.ts +0 -301
  54. package/conversation-messages.d.ts +0 -18
  55. package/conversation-name.d.ts +0 -28
  56. package/conversation-options.d.ts +0 -73
  57. package/conversation-reference.d.ts +0 -2
  58. package/conversation-state.d.ts +0 -472
  59. package/conversation-turns.d.ts +0 -115
  60. package/conversation.d.ts +0 -209
  61. package/conversations.d.ts +0 -140
  62. package/coordinator-state.d.ts +0 -28
  63. package/darwin-temperature.d.ts +0 -7
  64. package/decided.d.ts +0 -18
  65. package/demo.d.ts +0 -29
  66. package/dev/api.d.ts +0 -209
  67. package/dev/assets.d.ts +0 -24
  68. package/dev/conversation-address.d.ts +0 -47
  69. package/dev/conversation-feed.d.ts +0 -166
  70. package/dev/live-stream.d.ts +0 -29
  71. package/dev/worker.d.ts +0 -33
  72. package/dev-access.d.ts +0 -61
  73. package/dev-artifacts.d.ts +0 -22
  74. package/dev-budgets.d.ts +0 -18
  75. package/dev-conversation-events.d.ts +0 -39
  76. package/dev-conversation-routes.d.ts +0 -90
  77. package/dev-creds.d.ts +0 -17
  78. package/dev-dictation-connection.d.ts +0 -18
  79. package/dev-dictation.d.ts +0 -17
  80. package/dev-http.d.ts +0 -76
  81. package/dev-open.d.ts +0 -15
  82. package/dev-options.d.ts +0 -133
  83. package/dev-outcomes.d.ts +0 -21
  84. package/dev-pages.d.ts +0 -16
  85. package/dev-picker.d.ts +0 -57
  86. package/dev-port-socket.d.ts +0 -26
  87. package/dev-ports.d.ts +0 -11
  88. package/dev-project-watch.d.ts +0 -44
  89. package/dev-project.d.ts +0 -168
  90. package/dev-push.d.ts +0 -59
  91. package/dev-restart.d.ts +0 -141
  92. package/dev-servers.d.ts +0 -30
  93. package/dev-setup-native.d.ts +0 -23
  94. package/dev-setup-opencode.d.ts +0 -29
  95. package/dev-setup.d.ts +0 -16
  96. package/dev-shell.d.ts +0 -70
  97. package/dev-slot.d.ts +0 -28
  98. package/dev-sockets.d.ts +0 -13
  99. package/dev-task-ports.d.ts +0 -73
  100. package/dev-tasks.d.ts +0 -20
  101. package/dev-terminal-connection.d.ts +0 -19
  102. package/dev-terminal.d.ts +0 -42
  103. package/dev-todos.d.ts +0 -35
  104. package/dev-transcriber.d.ts +0 -15
  105. package/dev-tunnel.d.ts +0 -38
  106. package/dev-versions.d.ts +0 -53
  107. package/dev-workers.d.ts +0 -55
  108. package/dev.d.ts +0 -24
  109. package/diff.d.ts +0 -29
  110. package/dispatched.d.ts +0 -16
  111. package/editors.d.ts +0 -22
  112. package/escalate.d.ts +0 -27
  113. package/events.d.ts +0 -311
  114. package/everywhere.d.ts +0 -41
  115. package/exhibit.d.ts +0 -21
  116. package/exit.d.ts +0 -54
  117. package/fact-todos.d.ts +0 -18
  118. package/fake-agent.d.ts +0 -107
  119. package/fake-agent.js +0 -284
  120. package/finding-facts.d.ts +0 -38
  121. package/findings.d.ts +0 -84
  122. package/fold.d.ts +0 -43
  123. package/follow.d.ts +0 -41
  124. package/format.d.ts +0 -68
  125. package/git.d.ts +0 -112
  126. package/handed-out.d.ts +0 -79
  127. package/handoff.d.ts +0 -23
  128. package/heavy-run.d.ts +0 -12
  129. package/heavy.d.ts +0 -28
  130. package/heavy.js +0 -16
  131. package/held.d.ts +0 -22
  132. package/index-0tfvy823.js +0 -272
  133. package/index-43pq33n4.js +0 -157
  134. package/index-4776671w.js +0 -698
  135. package/index-d4hjrzaq.js +0 -464
  136. package/index-gcfq7awr.js +0 -740
  137. package/index-k73tsw5g.js +0 -101
  138. package/index-kaa44k7q.js +0 -59
  139. package/index-vcv9m93e.js +0 -1265
  140. package/index-xmfmy729.js +0 -249
  141. package/init.d.ts +0 -28
  142. package/journal.d.ts +0 -57
  143. package/landed.d.ts +0 -14
  144. package/lane-todos.d.ts +0 -44
  145. package/lanes-from-tags.d.ts +0 -17
  146. package/lanes.d.ts +0 -96
  147. package/legacy-names.d.ts +0 -70
  148. package/legacy-ps.d.ts +0 -31
  149. package/limits.d.ts +0 -32
  150. package/list.d.ts +0 -18
  151. package/load-config.d.ts +0 -44
  152. package/log.d.ts +0 -14
  153. package/machine.d.ts +0 -42
  154. package/merge.d.ts +0 -35
  155. package/migrate-config.d.ts +0 -31
  156. package/models.d.ts +0 -24
  157. package/needs.d.ts +0 -115
  158. package/notices.d.ts +0 -39
  159. package/offered.d.ts +0 -39
  160. package/opencode-usage.d.ts +0 -37
  161. package/outcomes.d.ts +0 -114
  162. package/path.d.ts +0 -13
  163. package/plan.d.ts +0 -236
  164. package/port-forward.d.ts +0 -22
  165. package/port-pipe.d.ts +0 -36
  166. package/ports-list.d.ts +0 -19
  167. package/probe-runtime.d.ts +0 -5
  168. package/probe-runtime.js +0 -13
  169. package/project-reaches.d.ts +0 -23
  170. package/prompts.d.ts +0 -128
  171. package/pty.d.ts +0 -39
  172. package/pulse.d.ts +0 -8
  173. package/recommend.d.ts +0 -31
  174. package/release.d.ts +0 -41
  175. package/remote-process.d.ts +0 -26
  176. package/remote-pty.d.ts +0 -29
  177. package/remote-worker.d.ts +0 -77
  178. package/remove.d.ts +0 -31
  179. package/repository.d.ts +0 -91
  180. package/retry.d.ts +0 -34
  181. package/roster.d.ts +0 -63
  182. package/saved-ports-host.d.ts +0 -25
  183. package/saved-tunnel.d.ts +0 -44
  184. package/server-worker-socket.d.ts +0 -21
  185. package/setup-areas.d.ts +0 -7
  186. package/setup-opencode-model-error.d.ts +0 -3
  187. package/setup-opencode-models.d.ts +0 -54
  188. package/setup-opencode-recipe.d.ts +0 -26
  189. package/setup-opencode.d.ts +0 -46
  190. package/shared-browser.d.ts +0 -50
  191. package/shell.d.ts +0 -17
  192. package/show.d.ts +0 -106
  193. package/skill-checks.d.ts +0 -73
  194. package/skill-checks.js +0 -10
  195. package/skills.d.ts +0 -16
  196. package/slot-tunnel.d.ts +0 -27
  197. package/snapshot.d.ts +0 -75
  198. package/splates-artifact.d.ts +0 -3
  199. package/splates-creds.d.ts +0 -3
  200. package/splates-dev.d.ts +0 -22
  201. package/splates-flags.d.ts +0 -34
  202. package/splates-lane.d.ts +0 -3
  203. package/splates-projects.d.ts +0 -3
  204. package/splates-setup.d.ts +0 -17
  205. package/splates-slots.d.ts +0 -3
  206. package/splates-todo.d.ts +0 -3
  207. package/stats.d.ts +0 -186
  208. package/supervise.d.ts +0 -50
  209. package/system-changes.d.ts +0 -67
  210. package/system.d.ts +0 -28
  211. package/systems.d.ts +0 -119
  212. package/systems.js +0 -21
  213. package/table.d.ts +0 -5
  214. package/task-log.d.ts +0 -35
  215. package/task-ports.d.ts +0 -25
  216. package/tell.d.ts +0 -47
  217. package/todo-edit.d.ts +0 -60
  218. package/todo-file.d.ts +0 -6
  219. package/todo-lanes.d.ts +0 -82
  220. package/todo-list.d.ts +0 -26
  221. package/todo-take.d.ts +0 -27
  222. package/todos.d.ts +0 -157
  223. package/tool-calls.d.ts +0 -18
  224. package/tunnel-provider.d.ts +0 -37
  225. package/tunnel-provider.js +0 -0
  226. package/tunnel-remove.d.ts +0 -28
  227. package/tunnel-setup.d.ts +0 -104
  228. package/unix-worker-listener.d.ts +0 -23
  229. package/unix-worker-socket.d.ts +0 -30
  230. package/update.d.ts +0 -29
  231. package/update.js +0 -10
  232. package/vocabulary.d.ts +0 -9
  233. package/wait.d.ts +0 -36
  234. package/watch.d.ts +0 -46
  235. package/watched.d.ts +0 -43
  236. package/websocket-worker-socket.d.ts +0 -18
  237. package/worker-call-host.d.ts +0 -51
  238. package/worker-channel.d.ts +0 -83
  239. package/worker-connection.d.ts +0 -24
  240. package/worker-daemon.d.ts +0 -64
  241. package/worker-git.d.ts +0 -18
  242. package/worker-list.d.ts +0 -49
  243. package/worker-machine.d.ts +0 -34
  244. package/worker-port-host.d.ts +0 -21
  245. package/worker-process-host.d.ts +0 -29
  246. package/worker-protocol.d.ts +0 -104
  247. package/worker-pty-host.d.ts +0 -34
  248. package/worker-registry.d.ts +0 -68
  249. package/worker-replay.d.ts +0 -25
  250. package/worker-run.d.ts +0 -20
  251. package/worker-session.d.ts +0 -189
  252. package/worker-socket.d.ts +0 -15
  253. package/worktree-service.d.ts +0 -113
  254. package/worktree.d.ts +0 -232
@@ -1,301 +0,0 @@
1
- import type * as acp from "@agentclientprotocol/sdk";
2
- import { type Eventful } from "webappwiz/events";
3
- import type { Fs } from "webappwiz/system";
4
- import { type Timer } from "webappwiz/time";
5
- import { type AsyncTaskUpdate } from "./acp-extensions.js";
6
- import type { ProcessHandle } from "./agent-process.js";
7
- import { type ArtifactChange } from "./artifacts.js";
8
- import { type Ask, type Attached, type Checkpoint, type ConversationState, type Decision, type Device, type Image, type Limit, type Setting } from "./conversation-state.js";
9
- import { type ObservedTurn } from "./opencode-usage.js";
10
- import type { Flag } from "./watch.js";
11
- /** What a `ConversationLog` says of its saves. */
12
- export interface ConversationLogEvents extends Record<string, unknown> {
13
- /** A save reached the file: `savedThrough` may have moved. */
14
- saved: undefined;
15
- }
16
- /**
17
- * A conversation's log, one JSON line per entry: `write` each entry as it
18
- * happens, and `replay` the file to read the conversation back.
19
- */
20
- export declare class ConversationLog implements Eventful<ConversationLogEvents> {
21
- readonly path: string;
22
- private readonly fs;
23
- private readonly dispatcher;
24
- readonly events: import("webappwiz/events").Events<ConversationLogEvents>;
25
- /** The lines not yet appended to the file, each with its seq. */
26
- private readonly unsaved;
27
- private saving;
28
- private readonly saves;
29
- /** The seq of the agent's frame being handled; 0 before the first. */
30
- private seq;
31
- /** The seq of the last entry the file holds. */
32
- private lastSaved;
33
- constructor(path: string, fs: Fs, timer: Timer);
34
- /**
35
- * The highest seq every entry at or under which the file holds: the seq
36
- * before the first unsaved entry, or the last saved one with none unsaved.
37
- */
38
- get savedThrough(): number;
39
- /** Stamps what is written from now on with frame `seq`. */
40
- heard(seq: number): void;
41
- /**
42
- * What the log adds up to, read back: the conversation as its entries
43
- * left it, stopped, whatever it was doing, unless its process is still
44
- * out there (`live`), in which case it is left as it stands for whoever
45
- * takes the process back, or `stopped` once nobody can. Null for a log
46
- * that does not start one.
47
- */
48
- replay(): Promise<Replayed | null>;
49
- /**
50
- * Leaves `replayed` as a conversation whose process is gone: its turn cut
51
- * short, its commands ended, its question unanswered, and, for one read
52
- * back live, an `end` so the next read finds it stopped too.
53
- */
54
- stopped(replayed: Replayed): Promise<void>;
55
- /** Appends `entry`, with whatever else is written before the next save. */
56
- write(entry: Entry): void;
57
- /** Settles once everything written so far is in the file. */
58
- flush(): Promise<void>;
59
- /** Deletes the file, once the last save has reached it. */
60
- remove(): Promise<void>;
61
- }
62
- /** What a log read back says of its conversation, beyond its state. */
63
- export interface Replayed {
64
- state: ConversationState;
65
- /** The agent's session, once it opened one. */
66
- session: string | null;
67
- /** Explicit requested model, including failed selections. */
68
- model: string | null;
69
- /** Original session directory, independent of task moves. */
70
- sessionCwd: string | null;
71
- /** Where it runs; null for a log too old to say. */
72
- cwd: string | null;
73
- /** Its settings as last set, by id, for the resumed session to match. */
74
- picks: Record<string, string>;
75
- /** Its process, still running on a worker; null once it is gone. */
76
- live: Live | null;
77
- /** Whether the log says a turn is running. */
78
- running: boolean;
79
- /** When the log last said anything happened; null for one that never did. */
80
- last: string | null;
81
- }
82
- /** What a log read back live says of the process to take back. */
83
- export interface Live {
84
- handle: ProcessHandle;
85
- /** The last frame the log holds, past which the worker's replay carries on. */
86
- held: number;
87
- /** The highest request id this side sent, past which the next stream numbers its own. */
88
- lastId: number;
89
- /** The prompt request still open, by its id; null when no turn waits on one. */
90
- prompt: number | null;
91
- /** What the agent is asking, and the request id to answer it on, when known; null for nothing. */
92
- ask: {
93
- rpc: acp.JsonRpcId | null;
94
- ask: Ask;
95
- } | null;
96
- /** Whether the agent takes a prompt into its running turn. */
97
- steers: boolean;
98
- /** Whether the agent takes images in a prompt. */
99
- sees: boolean;
100
- /** Whether the agent has said a turn ended, so one it starts can end. */
101
- tells: boolean;
102
- /** Whether the agent says on its session list when a turn ends. */
103
- follows: boolean;
104
- }
105
- /**
106
- * A line of a conversation's log: what was said, in the order it was. Each
107
- * carries the `seq` of the agent's frame being handled when it was written;
108
- * missing before the first frame, and from older logs.
109
- */
110
- export type Entry = Said & {
111
- seq?: number;
112
- };
113
- type Said = {
114
- kind: "start";
115
- id: string;
116
- agent: string;
117
- task: string | null;
118
- /** Where it runs; missing from logs written before resuming. */
119
- cwd?: string;
120
- /** The task's base; missing from logs written before parts nested. */
121
- base?: string | null;
122
- /** Who added the task; missing from logs written before tasks remembered it. */
123
- caller?: string | null;
124
- createdAt: string;
125
- /** Missing from logs written before assignments were kept apart. */
126
- assigned?: boolean;
127
- /** Who handed it its task; missing for one nobody did. */
128
- handedBy?: string;
129
- /** The lane orchestrator that handed it its task; missing for one nobody did. */
130
- startedBy?: string;
131
- /** The project's splates skill version; missing when it had none, or before it was kept. */
132
- skill?: string;
133
- } | {
134
- kind: "session";
135
- session: string;
136
- cwd?: string;
137
- } | {
138
- kind: "model-request";
139
- model: string;
140
- }
141
- /** Moved into a task's worktree, or back to the main tree. */
142
- | {
143
- kind: "task";
144
- task: string | null;
145
- cwd: string;
146
- /** The task's base; missing from logs written before parts nested. */
147
- base?: string | null;
148
- /** Who added the task; missing from logs written before tasks remembered it. */
149
- caller?: string | null;
150
- }
151
- /** What the session offered and had set, kept so the next one can start alike. */
152
- | {
153
- kind: "settings";
154
- settings: Setting[];
155
- }
156
- /** `at` is missing from logs written before older archived ones were deleted. */
157
- | {
158
- kind: "archive";
159
- archived: boolean;
160
- at?: string;
161
- /** The conversation whose archiving took this one with it. */
162
- with?: string;
163
- } | {
164
- kind: "rename";
165
- name: string | null;
166
- } | {
167
- kind: "unread";
168
- unread: boolean;
169
- } | {
170
- kind: "pin";
171
- pinned: boolean;
172
- } | {
173
- kind: "parent";
174
- parent: {
175
- id: string | null;
176
- };
177
- }
178
- /** `at` is missing from logs written before the page showed how long things took. */
179
- | {
180
- kind: "prompt";
181
- text: string;
182
- at?: string;
183
- queued?: true;
184
- steered?: true;
185
- /** The conversation that said it with `splates tell`. */
186
- told?: string;
187
- /** Said into the mic; missing from logs written before the page said. */
188
- dictated?: true;
189
- /** The page's id for it; missing for an agent's word, or from older logs. */
190
- id?: string;
191
- /** Where the person said it on the page; missing for an agent's word, or from older logs. */
192
- from?: Device;
193
- /** Missing from logs written before the page sent images. */
194
- images?: Image[];
195
- /** Missing from logs written before the page sent other files. */
196
- files?: Attached[];
197
- }
198
- /** Every queued prompt went out. */
199
- | {
200
- kind: "sent";
201
- count?: number;
202
- at?: string;
203
- }
204
- /** The person stopped the agent's turn. */
205
- | {
206
- kind: "stopped";
207
- at: string;
208
- }
209
- /** The agent's turn ended early, its connection lost or its process gone. */
210
- | {
211
- kind: "interrupted";
212
- at: string;
213
- }
214
- /** A turn started or ended, so one a dead process left running shows as cut short. */
215
- | {
216
- kind: "turn";
217
- running: boolean;
218
- at?: string;
219
- } | {
220
- kind: "observed-turn";
221
- turn: ObservedTurn;
222
- }
223
- /** The `index`th queued prompt was taken back. */
224
- | {
225
- kind: "unqueue";
226
- index: number;
227
- }
228
- /** Where a checkpoint stands, and what comes after it. */
229
- | {
230
- kind: "checkpoint";
231
- checkpoint: Checkpoint | null;
232
- } | {
233
- kind: "update";
234
- update: acp.SessionUpdate;
235
- at?: string;
236
- }
237
- /** The tokens a turn used, as the agent said when it ended. */
238
- | {
239
- kind: "usage";
240
- usage: acp.Usage;
241
- }
242
- /** The plan's windows, as asked of an agent that does not send them. */
243
- | {
244
- kind: "limits";
245
- limits: Limit[];
246
- }
247
- /** What a finished command did to git that it should not have. */
248
- | {
249
- kind: "flags";
250
- tool: string;
251
- flags: Flag[];
252
- }
253
- /** How the person answered the agent asking permission for a tool call. */
254
- | {
255
- kind: "decision";
256
- tool: string;
257
- decision: Decision;
258
- }
259
- /** An artifact added, removed, or its bytes deleted. */
260
- | {
261
- kind: "artifact";
262
- change: ArtifactChange;
263
- }
264
- /**
265
- * The agent's session is open on a process a worker runs, which a
266
- * coordinator started again takes back by `handle`, until `end`.
267
- */
268
- | {
269
- kind: "launched";
270
- handle: ProcessHandle;
271
- /** Whether the agent takes a prompt into its running turn. */
272
- steers: boolean;
273
- /** Whether the agent takes images in a prompt. */
274
- sees: boolean;
275
- /** Whether the agent says on its session list when a turn ends; missing from older logs. */
276
- follows?: boolean;
277
- }
278
- /** A request this side sent the agent, by the id it went out with. */
279
- | {
280
- kind: "request";
281
- id: number;
282
- method: string;
283
- }
284
- /** What the agent asks the person, by the request id `rpc` to answer on, when known; null once answered. */
285
- | {
286
- kind: "ask";
287
- rpc: acp.JsonRpcId | null;
288
- ask: Ask;
289
- } | {
290
- kind: "ask";
291
- ask: null;
292
- }
293
- /** Word of a command the agent left running in the background. */
294
- | {
295
- kind: "background";
296
- update: AsyncTaskUpdate;
297
- } | {
298
- kind: "end";
299
- error: string | null;
300
- };
301
- export {};
@@ -1,18 +0,0 @@
1
- import type { Attached, Image, Message, Sent } from "./conversation-state.js";
2
- /** What the person said, `at`: what they sent with it, then their words. */
3
- export declare function said(text: string, at: string | null, sent?: Sent[]): Message;
4
- /** How many of `messages` went out, as the thread shows them. */
5
- export declare function sent(messages: Message[]): number;
6
- /** A prompt entry's images and files, each left out of the log when there are none. */
7
- export declare function shown(sent: Sent[]): {
8
- images?: Image[];
9
- files?: Attached[];
10
- };
11
- /** The words of `message`, without what was sent with them. */
12
- export declare function textOf(message: Message): string;
13
- /** Marks up to `count` queued messages as gone out, all by default. */
14
- export declare function delivered(messages: Message[], count?: number, at?: string): void;
15
- /** Removes the `index`th queued message, returning it if there was one. */
16
- export declare function takeBack(messages: Message[], index: number): Message | null;
17
- /** What an error says, whether it is an `Error` or only shaped like one. */
18
- export declare function messageOf(error: unknown): string;
@@ -1,28 +0,0 @@
1
- import type { ConversationState } from "./conversations.js";
2
- import type { LaneRecord } from "./lanes.js";
3
- /**
4
- * What a conversation goes by: its real name (see `realName`), else a
5
- * stand-in until it has one: the first line of what the person first said,
6
- * else "Not started".
7
- */
8
- export declare function nameOf(conversation: ConversationState, lanes: readonly LaneRecord[]): string;
9
- /**
10
- * The name a conversation has earned, or null: the name the person gave it,
11
- * else the lanes it was started on, so an orchestrator's follows a lane's
12
- * renames and keeps them through a todo it does itself, else the task its
13
- * agent holds, so it follows the agent from task to task, or held last, so a
14
- * finished task keeps its name until the agent takes another, else the
15
- * agent's title.
16
- */
17
- export declare function realName(conversation: ConversationState, lanes: readonly LaneRecord[]): string | null;
18
- /**
19
- * Whether a conversation goes by the task its agent holds or held last, as
20
- * `nameOf` names it.
21
- */
22
- export declare function namedForTask(conversation: ConversationState): boolean;
23
- /** What each `[SPLATES LANE ...]` the person's first words start with names. */
24
- export declare function lanesOf(conversation: ConversationState): string[];
25
- /** The lanes each Started card `conversation`'s agent said names. */
26
- export declare function startedLanes(conversation: ConversationState): string[];
27
- /** The first line the person said in a conversation, or null before they say any. */
28
- export declare function openingOf(conversation: ConversationState): string | null;
@@ -1,73 +0,0 @@
1
- import type { IdProvider } from "webappwiz/id";
2
- import type { Fs, Lock } from "webappwiz/system";
3
- import type { Timer, WallClock } from "webappwiz/time";
4
- import type { Adherence } from "./adherence.js";
5
- import type { Agent, Launch, Launcher } from "./agent-process.js";
6
- import type { ArtifactLimits } from "./artifacts.js";
7
- import type { ProjectRoster } from "./conversation-host.js";
8
- import type { Limit } from "./conversation-state.js";
9
- import type { Limits } from "./limits.js";
10
- import type { Offered } from "./offered.js";
11
- import type { Outcomes } from "./outcomes.js";
12
- import type { SessionServers } from "./shared-browser.js";
13
- import type { Watch } from "./watch.js";
14
- import type { WorkerMachine } from "./worker-machine.js";
15
- export interface ConversationsOptions {
16
- fs?: Fs;
17
- /** How many bytes of artifacts each may keep; `ARTIFACT_LIMITS` by default. */
18
- artifacts?: ArtifactLimits;
19
- ids?: IdProvider;
20
- /** What starts agents, when nothing takes one back after a restart; this process by default. */
21
- launch?: Launch;
22
- /** What starts agents and takes them back after a restart, over `launch`: a worker. */
23
- launcher?: Launcher;
24
- /**
25
- * Where agents run, which their background output is read from; this
26
- * machine by default.
27
- */
28
- machine?: WorkerMachine;
29
- /**
30
- * Held while each agent starts, shared by every project's conversations
31
- * so no two start at once; one of their own by default.
32
- */
33
- starting?: Lock;
34
- timer?: Timer;
35
- clock?: WallClock;
36
- /** What watches the agents' commands for what they do to git; none by default. */
37
- watch?: Watch | null;
38
- /** Where what each agent's sessions offer is kept across projects; nowhere by default. */
39
- offered?: Offered | null;
40
- /** Where each agent's plan limits are kept across projects; nowhere by default. */
41
- limits?: Limits | null;
42
- /**
43
- * Where how each conversation followed the splates skill is kept across
44
- * projects, judged as each turn ends; nowhere by default.
45
- */
46
- adherence?: Adherence | null;
47
- /**
48
- * Where how each task ended is kept across projects, credited with the
49
- * turn it ended in once that turn ends; nowhere by default.
50
- */
51
- outcomes?: Outcomes | null;
52
- /**
53
- * Asks an agent that does not send its plan's windows for them, after
54
- * each of its turns; none by default.
55
- */
56
- readLimits?: ((agent: Agent) => Promise<Limit[]>) | null;
57
- /**
58
- * The main tree, where a conversation carries on once its task's worktree
59
- * is gone, as when the task landed while `splates server` was not there to hear
60
- * of it; without it, such a conversation cannot resume.
61
- */
62
- root?: string | null;
63
- /**
64
- * The splates projects on this machine, for a prompt's `#slug` to name one
65
- * by; none by default.
66
- */
67
- projects?: ProjectRoster | null;
68
- /**
69
- * The MCP servers each session is offered, beyond the agent's own, shared
70
- * across projects like the browser they serve; none by default.
71
- */
72
- servers?: SessionServers | null;
73
- }
@@ -1,2 +0,0 @@
1
- /** Whether a # reference names a conversation by its stable UUID. */
2
- export declare function conversationReference(called: string): boolean;