runpane 2.4.245 → 2.4.246

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.
package/dist/todos.js ADDED
@@ -0,0 +1,436 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.runTodos = runTodos;
7
+ exports.assignTodoToPanel = assignTodoToPanel;
8
+ const node_path_1 = __importDefault(require("node:path"));
9
+ const boundaryDecoder_1 = require("./boundaryDecoder");
10
+ const daemonClient_1 = require("./daemonClient");
11
+ const errors_1 = require("./errors");
12
+ const todoTimes_1 = require("./todoTimes");
13
+ const nullableString = boundaryDecoder_1.boundary.nullable(boundaryDecoder_1.boundary.string);
14
+ const snoozeSchema = boundaryDecoder_1.boundary.object({
15
+ until: boundaryDecoder_1.boundary.string,
16
+ zone: boundaryDecoder_1.boundary.string,
17
+ note: boundaryDecoder_1.boundary.string,
18
+ action: boundaryDecoder_1.boundary.string,
19
+ by: boundaryDecoder_1.boundary.string,
20
+ });
21
+ const doneWhenSchema = boundaryDecoder_1.boundary.object({ text: boundaryDecoder_1.boundary.string, met: boundaryDecoder_1.boundary.boolean });
22
+ const todoSchema = boundaryDecoder_1.boundary.object({
23
+ ref: boundaryDecoder_1.boundary.string,
24
+ number: boundaryDecoder_1.boundary.number,
25
+ title: boundaryDecoder_1.boundary.string,
26
+ state: boundaryDecoder_1.boundary.string,
27
+ status: boundaryDecoder_1.boundary.string,
28
+ reason: boundaryDecoder_1.boundary.string,
29
+ parent: nullableString,
30
+ sessionId: nullableString,
31
+ requester: boundaryDecoder_1.boundary.string,
32
+ assignee: nullableString,
33
+ summary: boundaryDecoder_1.boundary.string,
34
+ doneWhen: boundaryDecoder_1.boundary.array(doneWhenSchema),
35
+ attachmentCount: boundaryDecoder_1.boundary.number,
36
+ updatedAt: boundaryDecoder_1.boundary.string,
37
+ snooze: boundaryDecoder_1.boundary.optional(snoozeSchema),
38
+ });
39
+ const attachmentSchema = boundaryDecoder_1.boundary.object({
40
+ id: boundaryDecoder_1.boundary.number,
41
+ kind: boundaryDecoder_1.boundary.string,
42
+ label: boundaryDecoder_1.boundary.string,
43
+ target: boundaryDecoder_1.boundary.string,
44
+ machine: nullableString,
45
+ note: nullableString,
46
+ addedBy: boundaryDecoder_1.boundary.string,
47
+ source: boundaryDecoder_1.boundary.string,
48
+ from: nullableString,
49
+ addedAt: boundaryDecoder_1.boundary.string,
50
+ });
51
+ const activitySchema = boundaryDecoder_1.boundary.object({
52
+ id: boundaryDecoder_1.boundary.number,
53
+ kind: boundaryDecoder_1.boundary.string,
54
+ author: boundaryDecoder_1.boundary.string,
55
+ body: boundaryDecoder_1.boundary.string,
56
+ at: boundaryDecoder_1.boundary.string,
57
+ });
58
+ const ok = boundaryDecoder_1.boundary.literal(true);
59
+ const todoResultSchema = boundaryDecoder_1.boundary.object({ ok, todo: todoSchema });
60
+ const todoListResultSchema = boundaryDecoder_1.boundary.object({ ok, todos: boundaryDecoder_1.boundary.array(todoSchema) });
61
+ const todoShowResultSchema = boundaryDecoder_1.boundary.object({
62
+ ok,
63
+ todo: todoSchema,
64
+ attachments: boundaryDecoder_1.boundary.array(attachmentSchema),
65
+ subTodos: boundaryDecoder_1.boundary.array(todoSchema),
66
+ activity: boundaryDecoder_1.boundary.array(activitySchema),
67
+ });
68
+ const todoAttachResultSchema = boundaryDecoder_1.boundary.object({ ok, todo: boundaryDecoder_1.boundary.string, attachment: attachmentSchema });
69
+ const todoDetachResultSchema = boundaryDecoder_1.boundary.object({ ok, todo: boundaryDecoder_1.boundary.string, detached: boundaryDecoder_1.boundary.number });
70
+ const todoAskResultSchema = boundaryDecoder_1.boundary.object({ ok, todo: boundaryDecoder_1.boundary.string, routedTo: boundaryDecoder_1.boundary.string, approvalId: nullableString });
71
+ const todoCommentResultSchema = boundaryDecoder_1.boundary.object({ ok, todo: boundaryDecoder_1.boundary.string, activityId: boundaryDecoder_1.boundary.number });
72
+ const todoReviewResultSchema = boundaryDecoder_1.boundary.object({ ok, todo: todoSchema, approvalId: boundaryDecoder_1.boundary.string });
73
+ const keptSchema = boundaryDecoder_1.boundary.object({ name: boundaryDecoder_1.boundary.string, reason: boundaryDecoder_1.boundary.string });
74
+ const todoArchiveResultSchema = boundaryDecoder_1.boundary.object({
75
+ ok,
76
+ todo: boundaryDecoder_1.boundary.string,
77
+ archived: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string),
78
+ kept: boundaryDecoder_1.boundary.array(keptSchema),
79
+ sessionArchived: boundaryDecoder_1.boundary.boolean,
80
+ });
81
+ const todoStartResultSchema = boundaryDecoder_1.boundary.object({ ok, todo: todoSchema, queued: boundaryDecoder_1.boundary.boolean });
82
+ const STATUS_LABELS = new Map([
83
+ ['waiting', 'Waiting on you'],
84
+ ['working', 'Working'],
85
+ ['queued', 'Queued'],
86
+ ['snoozed', 'Snoozed'],
87
+ ['idle', 'Idle'],
88
+ ['done', 'Done'],
89
+ ['dropped', 'Dropped'],
90
+ ]);
91
+ const SHOWN_STATUSES = [...STATUS_LABELS.keys()];
92
+ const ATTACH_KINDS = ['plan', 'mockup', 'design', 'pr', 'findings', 'decision', 'doc', 'image', 'link'];
93
+ const URL_PATTERN = /^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//;
94
+ const TODO_REF_PATTERN = /^\s*(?:[tT]-?)?([0-9]+)\s*$/;
95
+ const LIST_NEXT = 'See your to-dos with `runpane todos list`.';
96
+ function invalid(message, next) {
97
+ return new errors_1.RunpaneError('ERR_RUNPANE_INVALID_ARGUMENT', `${message} Nothing was changed.`, next);
98
+ }
99
+ /** "T-12", "t12" or "12" as "T-12". */
100
+ function normalizeTodoRef(value, what) {
101
+ const match = TODO_REF_PATTERN.exec(value);
102
+ const number = match ? Number(match[1]) : NaN;
103
+ if (!Number.isSafeInteger(number) || number < 1) {
104
+ throw invalid(`${what} "${value}" is not a to-do; a to-do is T-12 or 12.`, LIST_NEXT);
105
+ }
106
+ return `T-${number}`;
107
+ }
108
+ function todoWords(parsed) {
109
+ return parsed.todoArgs ?? [];
110
+ }
111
+ /** The to-do, the first word; `extra` says how many more words the verb takes ("none", or "text" for any). */
112
+ function todoRefFrom(parsed, extra) {
113
+ const words = todoWords(parsed);
114
+ const [first] = words;
115
+ if (first === undefined)
116
+ throw invalid(`runpane ${parsed.command} needs the to-do, such as T-12.`, LIST_NEXT);
117
+ if (extra === 'none' && words.length > 1) {
118
+ throw invalid(`runpane ${parsed.command} takes one to-do, but got ${words.length} words: ${words.join(' ')}.`, 'Quote text and pass it with its option, such as --summary "...".');
119
+ }
120
+ return normalizeTodoRef(first, 'The to-do');
121
+ }
122
+ /** The tab this CLI runs in ($PANE_PANEL_ID). */
123
+ function callerPanelId() {
124
+ return process.env.PANE_PANEL_ID?.trim() || undefined;
125
+ }
126
+ function withCaller(request) {
127
+ const caller = callerPanelId();
128
+ if (caller)
129
+ request.callerPanelId = caller;
130
+ return request;
131
+ }
132
+ /** A URL as given; a file path made absolute against the working directory. */
133
+ function attachTarget(value) {
134
+ return URL_PATTERN.test(value) ? value : node_path_1.default.resolve(value);
135
+ }
136
+ function statusLabel(status) {
137
+ return STATUS_LABELS.get(status) ?? status;
138
+ }
139
+ /** `T-12 Working Keyboard sheet · why` */
140
+ function formatTodoLine(todo) {
141
+ const reason = todo.reason ? ` · ${todo.reason}` : '';
142
+ return `${todo.ref} ${statusLabel(todo.status)} ${todo.title}${reason}`;
143
+ }
144
+ function oneLine(text, max = 200) {
145
+ const line = text.replace(/\s+/g, ' ').trim();
146
+ return line.length > max ? `${line.slice(0, max - 1)}…` : line;
147
+ }
148
+ function printJson(value) {
149
+ console.log(JSON.stringify(value, null, 2));
150
+ }
151
+ async function call(parsed, verb, request, schema) {
152
+ return (0, daemonClient_1.invokeDaemon)(`runpane:todos:${verb}`, [request], schema, { paneDir: parsed.paneDir });
153
+ }
154
+ function buildCreate(parsed) {
155
+ const title = todoWords(parsed).join(' ').trim();
156
+ if (!title) {
157
+ throw invalid('runpane todos create needs a title, such as `runpane todos create "Fix the login redirect"`.', 'Pass the title as the first word, in quotes.');
158
+ }
159
+ const request = { title };
160
+ if (parsed.summary !== undefined)
161
+ request.summary = parsed.summary;
162
+ if (parsed.doneWhen !== undefined)
163
+ request.doneWhen = parsed.doneWhen;
164
+ if (parsed.todoParent !== undefined)
165
+ request.parent = normalizeTodoRef(parsed.todoParent, '--parent');
166
+ if (parsed.repo !== undefined)
167
+ request.project = parsed.repo;
168
+ if (parsed.agent !== undefined)
169
+ request.agent = parsed.agent;
170
+ if (parsed.attachments?.length)
171
+ request.attach = parsed.attachments.map(attachTarget);
172
+ if (parsed.noStart)
173
+ request.start = false;
174
+ return withCaller(request);
175
+ }
176
+ function buildUpdate(parsed) {
177
+ const request = { todo: todoRefFrom(parsed, 'none') };
178
+ if (parsed.title !== undefined)
179
+ request.title = parsed.title;
180
+ if (parsed.summary !== undefined)
181
+ request.summary = parsed.summary;
182
+ if (parsed.doneWhen !== undefined)
183
+ request.doneWhen = parsed.doneWhen;
184
+ if (parsed.todoCheck !== undefined)
185
+ request.check = parsed.todoCheck;
186
+ if (parsed.todoUncheck !== undefined)
187
+ request.uncheck = parsed.todoUncheck;
188
+ if (Object.keys(request).length === 1) {
189
+ throw invalid('runpane todos update needs something to change: --title, --summary, --done-when, --check or --uncheck.', 'Pass what changed, such as `runpane todos update T-12 --check 1`.');
190
+ }
191
+ return withCaller(request);
192
+ }
193
+ function buildAttach(parsed) {
194
+ const todo = todoRefFrom(parsed, 'one');
195
+ const words = todoWords(parsed);
196
+ if (words.length !== 2 || !words[1].trim()) {
197
+ throw invalid('runpane todos attach takes the to-do and one file or URL, such as `runpane todos attach T-12 docs/plan.html`.', 'Attach one file or URL at a time, and quote a path with spaces.');
198
+ }
199
+ if (parsed.kind !== undefined && !ATTACH_KINDS.includes(parsed.kind)) {
200
+ throw invalid(`--kind must be one of: ${ATTACH_KINDS.join(', ')}; got "${parsed.kind}".`, 'Pick the nearest kind, or leave --kind out and Pane picks one.');
201
+ }
202
+ const request = { todo, target: attachTarget(words[1]) };
203
+ if (parsed.kind !== undefined)
204
+ request.kind = parsed.kind;
205
+ if (parsed.label !== undefined)
206
+ request.label = parsed.label;
207
+ if (parsed.note !== undefined)
208
+ request.note = parsed.note;
209
+ return withCaller(request);
210
+ }
211
+ function buildDetach(parsed) {
212
+ const todo = todoRefFrom(parsed, 'one');
213
+ const words = todoWords(parsed);
214
+ const match = words.length === 2 ? /^#?([0-9]+)$/.exec(words[1]) : null;
215
+ const attachment = match ? Number(match[1]) : NaN;
216
+ if (!Number.isSafeInteger(attachment) || attachment < 1) {
217
+ throw invalid('runpane todos detach takes the to-do and an attachment id, such as `runpane todos detach T-12 3`.', 'See attachment ids with `runpane todos show <todo>`.');
218
+ }
219
+ return withCaller({ todo, attachment });
220
+ }
221
+ /** The words after the to-do, as one text: ask's question, comment's message. */
222
+ function textAfterTodo(parsed, what, example) {
223
+ const text = todoWords(parsed).slice(1).join(' ').trim();
224
+ if (!text)
225
+ throw invalid(`runpane ${parsed.command} needs the ${what} after the to-do, such as \`${example}\`.`, `Pass the ${what} in quotes after the to-do.`);
226
+ return text;
227
+ }
228
+ /** `--until` read in this machine's zone, so the host gets an instant it never reinterprets. */
229
+ function buildSnooze(parsed, now) {
230
+ const todo = todoRefFrom(parsed, 'none');
231
+ if (parsed.snoozeUntil === undefined) {
232
+ throw invalid('runpane todos snooze needs --until, the time to wake it.', 'Pass a time, such as `runpane todos snooze T-12 --until tomorrow --note "Check Sentry"`.');
233
+ }
234
+ const zone = (0, todoTimes_1.cliTimeZone)();
235
+ const request = { todo, until: (0, todoTimes_1.readSnoozeTime)(parsed.snoozeUntil, now, zone), zone };
236
+ if (parsed.note !== undefined)
237
+ request.note = parsed.note;
238
+ if (parsed.remindMe)
239
+ request.remindMe = true;
240
+ return withCaller(request);
241
+ }
242
+ /** "Snoozed T-14 until Wed 18 Nov 2026, 9:00 AM PST (in 17h). Its agents stop after their current step." */
243
+ function describeSnoozed(todo, now) {
244
+ if (!todo.snooze)
245
+ return `Snoozed ${formatTodoLine(todo)}`;
246
+ const then = todo.snooze.action === 'remind' ? 'Pane raises a reminder card for you then.' : 'Its agents stop after their current step.';
247
+ return `Snoozed ${todo.ref} until ${snoozeWhen(todo.snooze, now)}. ${then}`;
248
+ }
249
+ /** "Wed 18 Nov 2026, 9:00 AM PST (in 17h)", in this machine's zone, naming the zone it was set in when that differs. */
250
+ function snoozeWhen(snooze, now) {
251
+ const at = Date.parse(snooze.until);
252
+ const zone = (0, todoTimes_1.cliTimeZone)();
253
+ const setIn = snooze.zone === zone ? '' : `, set in ${snooze.zone}`;
254
+ return `${(0, todoTimes_1.formatSnoozeTime)(at, zone)} (${(0, todoTimes_1.formatUntil)(at, now)}${setIn})`;
255
+ }
256
+ function refRequest(parsed) {
257
+ return withCaller({ todo: todoRefFrom(parsed, 'none') });
258
+ }
259
+ async function runTodos(parsed) {
260
+ switch (parsed.command) {
261
+ case 'todos create': return printTodo(parsed, 'Created', await call(parsed, 'create', buildCreate(parsed), todoResultSchema));
262
+ case 'todos update': return printTodo(parsed, 'Updated', await call(parsed, 'update', buildUpdate(parsed), todoResultSchema));
263
+ case 'todos attach': {
264
+ const result = await call(parsed, 'attach', buildAttach(parsed), todoAttachResultSchema);
265
+ return print(parsed, result, [`Attached #${result.attachment.id} ${result.attachment.kind} "${result.attachment.label}" to ${result.todo}.`]);
266
+ }
267
+ case 'todos detach': {
268
+ const result = await call(parsed, 'detach', buildDetach(parsed), todoDetachResultSchema);
269
+ return print(parsed, result, [`Detached #${result.detached} from ${result.todo}.`]);
270
+ }
271
+ case 'todos show': {
272
+ const result = await call(parsed, 'show', refRequest(parsed), todoShowResultSchema);
273
+ return print(parsed, result, describeShow(result));
274
+ }
275
+ case 'todos list': return runList(parsed);
276
+ case 'todos assign': {
277
+ const request = refRequest(parsed);
278
+ if (parsed.panelId !== undefined)
279
+ request.panel = parsed.panelId;
280
+ const result = await call(parsed, 'assign', request, todoResultSchema);
281
+ return print(parsed, result, [`${result.todo.ref} is assigned to ${result.todo.assignee ?? "its Session's orchestrator"}.`]);
282
+ }
283
+ case 'todos ask': {
284
+ const todo = todoRefFrom(parsed, 'text');
285
+ const request = withCaller({ todo, question: textAfterTodo(parsed, 'question', 'runpane todos ask T-12 "Which shortcuts?"') });
286
+ const result = await call(parsed, 'ask', request, todoAskResultSchema);
287
+ const who = result.routedTo === 'person' ? 'the person' : 'the requester';
288
+ const approval = result.approvalId ? ` (approval ${result.approvalId})` : '';
289
+ return print(parsed, result, [`Asked ${who} about ${result.todo}${approval}.`]);
290
+ }
291
+ case 'todos comment': {
292
+ const todo = todoRefFrom(parsed, 'text');
293
+ const request = withCaller({ todo, body: textAfterTodo(parsed, 'message', 'runpane todos comment T-12 "Sheet done."') });
294
+ if (parsed.escalate)
295
+ request.escalate = true;
296
+ const result = await call(parsed, 'comment', request, todoCommentResultSchema);
297
+ return print(parsed, result, [parsed.escalate ? `Commented on ${result.todo} and asked the person.` : `Commented on ${result.todo}.`]);
298
+ }
299
+ case 'todos review': {
300
+ const request = refRequest(parsed);
301
+ if (parsed.summary !== undefined)
302
+ request.summary = parsed.summary;
303
+ if (parsed.noAttachments !== undefined)
304
+ request.noAttachments = parsed.noAttachments;
305
+ const result = await call(parsed, 'review', request, todoReviewResultSchema);
306
+ return print(parsed, result, [`Sent for review: ${formatTodoLine(result.todo)} (approval ${result.approvalId})`]);
307
+ }
308
+ case 'todos done': {
309
+ const request = refRequest(parsed);
310
+ if (parsed.personSaid !== undefined)
311
+ request.personSaid = parsed.personSaid;
312
+ return printTodo(parsed, 'Closed', await call(parsed, 'done', request, todoResultSchema));
313
+ }
314
+ case 'todos drop': {
315
+ const request = refRequest(parsed);
316
+ if (parsed.reason !== undefined)
317
+ request.reason = parsed.reason;
318
+ return printTodo(parsed, 'Dropped', await call(parsed, 'drop', request, todoResultSchema));
319
+ }
320
+ case 'todos archive': {
321
+ const result = await call(parsed, 'archive', refRequest(parsed), todoArchiveResultSchema);
322
+ return print(parsed, result, describeArchive(result));
323
+ }
324
+ case 'todos start': {
325
+ const result = await call(parsed, 'start', refRequest(parsed), todoStartResultSchema);
326
+ return print(parsed, result, [`${result.queued ? 'Queued' : 'Started'} ${formatTodoLine(result.todo)}`]);
327
+ }
328
+ case 'todos stop': return printTodo(parsed, 'Stopped', await call(parsed, 'stop', refRequest(parsed), todoResultSchema));
329
+ case 'todos snooze': {
330
+ const result = await call(parsed, 'snooze', buildSnooze(parsed, Date.now()), todoResultSchema);
331
+ return print(parsed, result, [describeSnoozed(result.todo, Date.now())]);
332
+ }
333
+ case 'todos wake': return printTodo(parsed, 'Woke', await call(parsed, 'wake', refRequest(parsed), todoResultSchema));
334
+ default: throw new Error(`Unsupported command: ${parsed.command}`);
335
+ }
336
+ }
337
+ async function runList(parsed) {
338
+ if (todoWords(parsed).length > 0) {
339
+ throw invalid(`runpane todos list takes no words, but got: ${todoWords(parsed).join(' ')}.`, 'Show one to-do with `runpane todos show <todo>`.');
340
+ }
341
+ const request = {};
342
+ if (parsed.all)
343
+ request.all = true;
344
+ if (parsed.todoStatus !== undefined) {
345
+ if (!SHOWN_STATUSES.includes(parsed.todoStatus)) {
346
+ throw invalid(`--status must be one of: ${SHOWN_STATUSES.join(', ')}; got "${parsed.todoStatus}".`, 'Pick one, such as `runpane todos list --status snoozed`.');
347
+ }
348
+ request.status = parsed.todoStatus;
349
+ }
350
+ const result = await call(parsed, 'list', request, todoListResultSchema);
351
+ const none = parsed.todoStatus === undefined ? (parsed.all ? 'No to-dos.' : 'No open to-dos.') : `No to-dos are ${statusLabel(parsed.todoStatus)}.`;
352
+ const empty = `${none} Create one with \`runpane todos create "<title>"\`.`;
353
+ return print(parsed, result, result.todos.length === 0 ? [empty] : result.todos.map(formatTodoLine));
354
+ }
355
+ function print(parsed, result, lines) {
356
+ if (parsed.json)
357
+ printJson(result);
358
+ else
359
+ for (const line of lines)
360
+ console.log(line);
361
+ return 0;
362
+ }
363
+ function printTodo(parsed, verb, result) {
364
+ return print(parsed, result, [`${verb} ${formatTodoLine(result.todo)}`]);
365
+ }
366
+ /** Attachments first, then the to-do, its sub-to-dos and recent activity. */
367
+ function describeShow(result) {
368
+ const { todo } = result;
369
+ const lines = [];
370
+ if (result.attachments.length === 0) {
371
+ lines.push('Attachments: none');
372
+ }
373
+ else {
374
+ lines.push('Attachments:');
375
+ for (const attachment of result.attachments) {
376
+ const machine = attachment.machine ? ` on ${attachment.machine}` : '';
377
+ const from = attachment.from ? ` (from ${attachment.from})` : '';
378
+ lines.push(` #${attachment.id} ${attachment.kind} ${attachment.label} ${attachment.target}${machine}${from}`);
379
+ if (attachment.note)
380
+ lines.push(` ${oneLine(attachment.note)}`);
381
+ }
382
+ }
383
+ lines.push(formatTodoLine(todo));
384
+ const parent = todo.parent ? ` · sub-to-do of ${todo.parent}` : '';
385
+ lines.push(` Requested by ${todo.requester} · working: ${todo.assignee ?? "its Session's orchestrator"}${parent}`);
386
+ if (todo.snooze) {
387
+ const then = todo.snooze.action === 'remind' ? 'raises a reminder card' : 'wakes its agents';
388
+ lines.push(` Snoozed until ${snoozeWhen(todo.snooze, Date.now())} · ${then} · set by ${todo.snooze.by}`);
389
+ if (todo.snooze.note.trim())
390
+ lines.push(` Wake-up note: ${oneLine(todo.snooze.note)}`);
391
+ }
392
+ for (const line of todo.summary.split('\n'))
393
+ if (line.trim())
394
+ lines.push(` ${line}`);
395
+ if (todo.doneWhen.length > 0) {
396
+ lines.push(' Done when:');
397
+ todo.doneWhen.forEach((item, index) => lines.push(` [${item.met ? 'x' : ' '}] ${index + 1}. ${item.text}`));
398
+ }
399
+ if (result.subTodos.length > 0) {
400
+ lines.push('Sub-to-dos:');
401
+ for (const sub of result.subTodos)
402
+ lines.push(` ${formatTodoLine(sub)}`);
403
+ }
404
+ if (result.activity.length > 0) {
405
+ lines.push('Recent activity:');
406
+ for (const entry of result.activity)
407
+ lines.push(` ${entry.at} ${entry.author}: ${oneLine(entry.body)}`);
408
+ }
409
+ return lines;
410
+ }
411
+ function describeArchive(result) {
412
+ const archived = result.archived.length > 0 ? `: ${result.archived.join(', ')}` : '';
413
+ const lines = [`Archived ${result.todo}${archived}.`];
414
+ for (const kept of result.kept)
415
+ lines.push(`Kept ${kept.name}: ${kept.reason}`);
416
+ if (result.sessionArchived)
417
+ lines.push('Archived its Session.');
418
+ return lines;
419
+ }
420
+ /**
421
+ * `agents start --todo`: hand the to-do to the new tab once it is ready. A failure is a warning on
422
+ * stderr; the agent itself started.
423
+ */
424
+ async function assignTodoToPanel(parsed, panelId) {
425
+ if (parsed.todo === undefined)
426
+ return;
427
+ try {
428
+ const request = withCaller({ todo: normalizeTodoRef(parsed.todo, '--todo'), panel: panelId });
429
+ await (0, daemonClient_1.invokeDaemon)('runpane:todos:assign', [request], todoResultSchema, { paneDir: parsed.paneDir });
430
+ }
431
+ catch (error) {
432
+ const reason = error instanceof Error ? error.message : String(error);
433
+ console.error(`Warning: the agent started, but ${parsed.todo} was not assigned to its tab: ${reason} Assign it with \`runpane todos assign ${parsed.todo} --panel ${panelId}\`.`);
434
+ }
435
+ }
436
+ //# sourceMappingURL=todos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todos.js","sourceRoot":"","sources":["../src/todos.ts"],"names":[],"mappings":";;;;;AAqaA,4BAuEC;AAiFD,8CASC;AAtkBD,0DAA6B;AAC7B,uDAAkE;AAElE,iDAA8C;AAC9C,qCAAwC;AACxC,2CAAyF;AAyJzF,MAAM,cAAc,GAAG,0BAAQ,CAAC,QAAQ,CAAC,0BAAQ,CAAC,MAAM,CAAC,CAAC;AAC1D,MAAM,YAAY,GAA+B,0BAAQ,CAAC,MAAM,CAAC;IAC/D,KAAK,EAAE,0BAAQ,CAAC,MAAM;IACtB,IAAI,EAAE,0BAAQ,CAAC,MAAM;IACrB,IAAI,EAAE,0BAAQ,CAAC,MAAM;IACrB,MAAM,EAAE,0BAAQ,CAAC,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C,CAAC,EAAE,CAAC;IACrF,MAAM,KAAK,GAAG,CAAC,YAAY,MAAM,CAAC,IAAI,GAAG,QAAQ,GAAG,CAAC,CAAC;IACtD,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI;QAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAChF,IAAI,MAAM,CAAC,eAAe;QAAE,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAChE,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,iBAAiB,CAAC,MAAkB,EAAE,OAAe;IACzE,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO;IACtC,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,UAAU,CAAoB,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;QACjH,MAAM,IAAA,2BAAY,EAAC,sBAAsB,EAAE,CAAC,OAAO,CAAC,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACtE,OAAO,CAAC,KAAK,CAAC,mCAAmC,MAAM,CAAC,IAAI,iCAAiC,MAAM,0CAA0C,MAAM,CAAC,IAAI,YAAY,OAAO,KAAK,CAAC,CAAC;IACpL,CAAC;AACH,CAAC"}
@@ -5,8 +5,8 @@ declare const journalSchema: import("./boundaryDecoder").BoundarySchema<{
5
5
  readonly host: string;
6
6
  readonly scope: "pane" | "cli" | "both";
7
7
  readonly version: string;
8
- readonly phase: "install" | "launch" | "health" | "failed" | "snapshot" | "stage" | "checkpoint" | "stop" | "restore" | "accepted" | "complete" | "needs-attention";
9
- readonly completed: ("install" | "launch" | "health" | "snapshot" | "stage" | "checkpoint" | "stop" | "restore")[];
8
+ readonly phase: "install" | "health" | "stop" | "launch" | "failed" | "snapshot" | "accepted" | "stage" | "checkpoint" | "restore" | "complete" | "needs-attention";
9
+ readonly completed: ("install" | "health" | "stop" | "launch" | "snapshot" | "stage" | "checkpoint" | "restore")[];
10
10
  readonly helperPid: number | undefined;
11
11
  readonly setupPid: number | undefined;
12
12
  readonly setupExpiresAt: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runpane",
3
- "version": "2.4.245",
3
+ "version": "2.4.246",
4
4
  "description": "Thin npm installer and remote setup CLI for Pane",
5
5
  "mcpName": "io.github.greenfield-inc/runpane",
6
6
  "license": "AGPL-3.0",