@rucher/carnet 0.2.0-beta.7 → 0.2.0-beta.9

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @rucher/carnet
2
2
 
3
- Shared state for Rucher: workspaces, sessions, agents, the "On the table" line and the event journal, stored in one SQLite database for every workspace (`~/.local/share/rucher/carnet.db`, via `node:sqlite`), with workspaces defined in `~/.config/rucher/workspaces/<name>/workspace.json`.
3
+ Shared state for Rucher: workspaces, sessions, agents, the Main line and the event journal, stored in one SQLite database for every workspace (`~/.local/share/rucher/carnet.db`, via `node:sqlite`), with workspaces defined in `~/.config/rucher/workspaces/<name>/workspace.json`.
4
4
 
5
- Used by the `rucher` CLI and the Carnet MCP server. See [`docs/reference.md`](https://github.com/Florian-Varrin/Rucher/blob/master/docs/reference.md) in the [repository](https://github.com/Florian-Varrin/Rucher).
5
+ Used by the `rucher` CLI and the Carnet MCP server. See the [documentation](https://github.com/Florian-Varrin/Rucher/blob/master/docs/README.md) in the [repository](https://github.com/Florian-Varrin/Rucher).
6
6
 
7
7
  ```ts
8
8
  import { openCarnet } from '@rucher/carnet';
@@ -27,28 +27,30 @@ interface LogEventInput {
27
27
  note?: string | undefined;
28
28
  }
29
29
  declare function isEventType(value: unknown): value is EventType;
30
- declare const AGENT_STATUSES: readonly ['running', 'discussing', 'answer', 'review', 'apply', 'test', 'commit', 'branch', 'closed'];
30
+ declare const AGENT_STATUSES: readonly ['running', 'discussing', 'answer', 'review', 'apply', 'test', 'closed'];
31
31
  type AgentStatus = (typeof AGENT_STATUSES)[number];
32
- declare const USER_ACTION_STATUSES: readonly ['discussing', 'answer', 'review', 'apply', 'test', 'commit', 'branch'];
32
+ declare const USER_ACTION_STATUSES: readonly ['discussing', 'answer', 'review', 'apply', 'test'];
33
33
  type UserActionStatus = (typeof USER_ACTION_STATUSES)[number];
34
34
  declare const EMOJI: Record<Exclude<AgentStatus, 'closed'>, string>;
35
35
  declare const MAIN_WORKING_EMOJI = "⚙️";
36
36
  declare const MAIN_WAITING_EMOJI = "⏸";
37
37
  declare const MAIN_FAILED_EMOJI = "⚠";
38
- declare const LEGEND = "⚙️ main working · ⏸ waiting on you · ⚠ turn failed · 💬 discussing · ❓ answer · 👀 review · 📥 apply · 🧪 test · ✅ commit · 🌿 branch · ⏳ running";
38
+ declare const LEGEND = "⚙️ main working · ⏸ waiting on you · ⚠ turn failed · 💬 discussing · ❓ answer · 👀 review · 📥 apply · 🧪 test · ⏳ running";
39
39
  declare const KIND_ABBREVIATIONS: {
40
40
  readonly research: 'rs';
41
- readonly analyze: 'an';
41
+ readonly plan: 'pl';
42
42
  readonly implement: 'im';
43
43
  readonly review: 'rv';
44
44
  };
45
- declare const KIND_LEGEND = "rs research · an analyze · im implement · rv review";
45
+ declare function kindTag(kind: keyof typeof KIND_ABBREVIATIONS): string;
46
+ declare const KIND_TAG_PATTERN: RegExp;
47
+ declare const KIND_LEGEND = "[rs] research · [pl] plan · [im] implement · [rv] review";
46
48
  declare function isAgentStatus(value: unknown): value is AgentStatus;
47
49
  declare function isUserActionStatus(value: unknown): value is UserActionStatus;
48
- declare const OPEN_AGENT_STATUSES: readonly ["running", "discussing", "answer", "review", "apply", "test", "commit", "branch"];
49
- declare const AGENT_KINDS: readonly ['research', 'analyze', 'implement', 'review'];
50
+ declare const OPEN_AGENT_STATUSES: readonly ["running", "discussing", "answer", "review", "apply", "test"];
51
+ declare const AGENT_KINDS: readonly ['research', 'plan', 'implement', 'review'];
50
52
  type AgentKind = (typeof AGENT_KINDS)[number];
51
- declare const DEFAULT_AGENT_KIND: AgentKind;
53
+ declare const KIND_REQUIRED = "kind is required: research, plan, implement or review";
52
54
  declare function isAgentKind(value: unknown): value is AgentKind;
53
55
  interface Agent {
54
56
  session: string;
@@ -56,31 +58,37 @@ interface Agent {
56
58
  kind: AgentKind;
57
59
  promotedFrom: AgentKind | null;
58
60
  target: string | null;
61
+ blockedOn: string | null;
59
62
  task: string | null;
60
63
  status: AgentStatus;
61
64
  note: string | null;
62
65
  reportPath: string | null;
63
66
  baseCommit: string | null;
64
67
  worktree: string | null;
68
+ sandbox: string | null;
65
69
  queueOrder: number | null;
66
70
  hostAgentId: string | null;
67
71
  pendingStatus: AgentStatus | null;
68
72
  doneAt: string | null;
69
73
  startedAt: string;
70
74
  updatedAt: string;
75
+ statusSince: string;
71
76
  }
72
77
  interface StartAgentInput {
73
78
  name: string;
74
79
  task: string;
75
- kind?: AgentKind | undefined;
80
+ kind: AgentKind;
76
81
  target?: string | undefined;
77
82
  baseCommit?: string | undefined;
78
83
  worktree?: string | undefined;
84
+ sandbox?: string | undefined;
79
85
  }
86
+ declare const SANDBOX_KINDS: readonly AgentKind[];
80
87
  interface UpdateAgentInput {
81
88
  status: AgentStatus;
82
89
  note?: string | null | undefined;
83
90
  reportPath?: string | undefined;
91
+ blockedOn?: string | null | undefined;
84
92
  }
85
93
  interface FinishAgentInput {
86
94
  reportPath: string;
@@ -93,6 +101,7 @@ declare const REPORTING_NOTE = "reporting";
93
101
  declare const PUBLISH_FALLBACK_MILLISECONDS = 120000;
94
102
  declare function statusWhenDone(kind: AgentKind, hasQuestions: boolean): AgentStatus;
95
103
  interface PromoteAgentInput {
104
+ kind: AgentKind | undefined;
96
105
  worktree?: string | undefined;
97
106
  baseCommit?: string | undefined;
98
107
  }
@@ -196,6 +205,8 @@ interface HostToolPayload {
196
205
  path?: string | undefined;
197
206
  file_path?: string | undefined;
198
207
  command?: string | undefined;
208
+ subagent_type?: string | undefined;
209
+ launched_names?: string[] | undefined;
199
210
  }
200
211
  interface ResumeCommand {
201
212
  command: string;
@@ -233,6 +244,7 @@ interface Host {
233
244
  renameInstruction(name: string): string;
234
245
  transcriptFiles(session: Session, env?: NodeJS.ProcessEnv): string[];
235
246
  hasConversation(session: Session, env?: NodeJS.ProcessEnv): boolean;
247
+ continues(parent: Session, childId: string, env?: NodeJS.ProcessEnv): boolean;
236
248
  renderRunDirectory(workspace: Workspace): HostRender;
237
249
  }
238
250
  declare const DEFAULT_HOST = "claude-code";
@@ -255,6 +267,7 @@ interface Session {
255
267
  lastTitle: string | null;
256
268
  parentId: string | null;
257
269
  promptVersion: string | null;
270
+ pluginVersion: string | null;
258
271
  createdAt: string;
259
272
  lastActiveAt: string;
260
273
  endedAt: string | null;
@@ -271,6 +284,7 @@ interface HookEnv {
271
284
  RUCHER_PROMPT_VERSION?: string | undefined;
272
285
  RUCHER_MEMORY_MAX_CHARACTERS?: string | undefined;
273
286
  RUCHER_MEMORY_HALF_LIFE_DAYS?: string | undefined;
287
+ CLAUDE_CONFIG_DIR?: string | undefined;
274
288
  }
275
289
  interface CreateSessionInput {
276
290
  id: string;
@@ -430,6 +444,9 @@ interface NoteActivity {
430
444
  declare function sessionNoteActivity(ctx: Ctx, session: string): NoteActivity[];
431
445
  declare const TURNS: readonly ['working', 'waiting', 'failed'];
432
446
  type Turn = (typeof TURNS)[number];
447
+ interface TurnOptions {
448
+ trackTurn?: boolean | undefined;
449
+ }
433
450
  interface StatusLine {
434
451
  name: string;
435
452
  kind: AgentKind;
@@ -437,6 +454,7 @@ interface StatusLine {
437
454
  emoji: string;
438
455
  action: string | null;
439
456
  note: string | null;
457
+ pinned: boolean;
440
458
  }
441
459
  interface StatusView {
442
460
  time: string;
@@ -444,6 +462,7 @@ interface StatusView {
444
462
  table: TableItem | null;
445
463
  turn: Turn | null;
446
464
  waiting: StatusLine[];
465
+ blocked: StatusLine[];
447
466
  running: StatusLine[];
448
467
  notes: NoteActivity[];
449
468
  }
@@ -465,10 +484,12 @@ interface MemoryScope {
465
484
  declare function renderMemory(scope: MemoryScope, maxCharacters?: number): string;
466
485
  declare const MAIN_HEADER = "Main";
467
486
  declare const MAIN_WORKING_SUFFIX = "(main working)";
487
+ declare const BLOCKED_HEADER = "Waiting on agents";
468
488
  declare const MAIN_WAITING_SUFFIX = "(waiting on you)";
469
489
  declare const MAIN_FAILED_SUFFIX = "(turn failed)";
470
490
  declare function renderTableLine(item: TableItem): string;
471
- declare function renderMainLine(item: TableItem | null, turn: Turn | null): string | null;
491
+ declare const MAIN_IDLE = "idle";
492
+ declare function renderMainLine(item: TableItem | null, turn: Turn | null): string;
472
493
  declare function renderAgentLine(line: StatusLine, nameWidth?: number): string;
473
494
  declare const NOTES_HEADER = "Notes";
474
495
  declare const NOTES_FOLD_LINES = 5;
@@ -485,6 +506,9 @@ declare function renderStatus(view: StatusView, options?: RenderOptions): string
485
506
  interface CarnetOptions {
486
507
  now?: () => Date;
487
508
  }
509
+ interface ClosedAgent extends Agent {
510
+ sandboxRemoved: boolean;
511
+ }
488
512
  declare class Carnet {
489
513
  readonly workspace: Workspace | null;
490
514
  readonly db: DatabaseSync;
@@ -508,6 +532,7 @@ declare class Carnet {
508
532
  default: () => Session | undefined;
509
533
  byName: (name: string) => Session | undefined;
510
534
  byHostProcess: (host: string, processId: number) => Session | undefined;
535
+ recordPluginVersion: (id: string, version: string | null) => void;
511
536
  recordPromptVersion: (id: string, version: string | null) => Session;
512
537
  setParent: (id: string, parentId: string) => Session;
513
538
  setStatus: (id: string, status: SessionStatus) => Session;
@@ -520,18 +545,23 @@ declare class Carnet {
520
545
  staleTemp: (olderThanMilliseconds: number) => Session[];
521
546
  resetDead: (isAlive: (processId: number) => boolean) => Session[];
522
547
  };
548
+ private releaseSandbox;
549
+ releaseClosedSandboxes(session?: string): number;
523
550
  readonly agents: {
524
551
  get: (session: string, name: string) => Agent | undefined;
525
552
  start: (session: string, input: StartAgentInput) => Agent;
526
553
  update: (session: string, name: string, input: UpdateAgentInput) => Agent;
527
554
  finish: (session: string, name: string, input: FinishAgentInput) => Agent;
528
- drop: (session: string, name: string, reason?: string) => Agent;
529
- close: (session: string, name: string, event: Omit<LogEventInput, 'agent'>) => Agent;
530
- promote: (session: string, name: string, input: PromoteAgentInput) => Agent;
555
+ drop: (session: string, name: string, reason?: string) => ClosedAgent;
556
+ close: (session: string, name: string, event: Omit<LogEventInput, 'agent'>) => ClosedAgent;
557
+ promote: (session: string, name: string, input: PromoteAgentInput) => ClosedAgent;
531
558
  list: (session: string, options?: ListAgentsOptions) => Agent[];
532
559
  reorderQueue: (session: string, names: string[]) => Agent[];
533
560
  byHostAgentId: (session: string, hostAgentId: string) => Agent | undefined;
534
- pairSubagent: (session: string, hostAgentId: string) => Agent | undefined;
561
+ pairSubagent: (session: string, hostAgentId: string, names?: readonly string[]) => Agent | undefined;
562
+ unpaired: (session: string, names: readonly string[]) => Agent | undefined;
563
+ pendingPlan: (session: string) => Agent | undefined;
564
+ requestLaunch: (session: string, name: string) => void;
535
565
  stopSubagent: (session: string, hostAgentId: string, names?: string[]) => Agent | undefined;
536
566
  };
537
567
  readonly questions: {
@@ -598,5 +628,5 @@ interface ResolvedCarnet {
598
628
  }
599
629
  declare function openResolvedCarnet(options?: OpenCarnetOptions): ResolvedCarnet;
600
630
  declare function openWorkspaceCarnet(workspace: Workspace | null, options?: OpenCarnetOptions): Carnet;
601
- export { isNoteKind as $, listWorkspaces as $t, StatusView as A, AgentEventType as An, ResolveWorkspaceOptions as At, DUPLICATE_SIMILARITY as B, CreateWorkspaceOptions as Bt, renderStatus as C, MAIN_WAITING_EMOJI as Cn, HostStopPayload as Ct, memoryMaxCharacters as D, UserActionStatus as Dn, ResumeCommand as Dt, MemoryOptions as E, USER_ACTION_STATUSES as En, LaunchOptions as Et, Turn as F, SESSION_EVENT_TYPES as Fn, repoPathFor as Ft, Note as G, WorkspaceFile as Gt, ListNotesOptions as H, INSTRUCTIONS_FILE as Ht, AddNoteInput as I, SessionEventType as In, requireWorkspace as It, NoteCitation as J, createWorkspace as Jt, NoteActivity as K, WorkspaceRepo as Kt, AddNoteResult as L, isEventType as Ln, resolveWorkspace as Lt, buildStatusView as M, EVENT_TYPES as Mn, WorkspaceResolution as Mt, formatClock as N, EventType as Nn, isInside as Nt, renderMemory as O, isAgentStatus as On, allHosts as Ot, TURNS as P, LogEventInput as Pn, repoNameFor as Pt, WeightedNote as Q, isWorkspaceName as Qt, CiteNoteInput as R, workspaceLabel as Rt, renderSections as S, MAIN_FAILED_EMOJI as Sn, HostSessionPayload as St, MEMORY_MAX_CHARACTERS as T, OPEN_AGENT_STATUSES as Tn, HostToolPayload as Tt, NOTE_KINDS as U, WORKSPACE_FILE as Ut, DropNoteInput as V, DropWorkspaceOptions as Vt, NOTE_TEXT_LIMIT as W, Workspace as Wt, NoteKind as X, dropWorkspace as Xt, NoteDetail as Y, definitionInstructions as Yt, STALE_AFTER_ACTIVE_DAYS as Z, expandHome as Zt, renderAgentLine as _, AgentStatus as _n, DEFAULT_HOST as _t, openCarnet as a, Agent as an, SetTableInput as at, renderNotes as b, KIND_LEGEND as bn, HostRender as bt, MAIN_FAILED_SUFFIX as c, FinishAgentInput as cn, CreateSessionInput as ct, MAIN_WORKING_SUFFIX as d, REPORTING_NOTE as dn, ListSessionsOptions as dt, loadWorkspace as en, localDay as et, NOTES_FOLD_LINES as f, StartAgentInput as fn, MINIMUM_ID_PREFIX as ft, SIMILAR_PREFIX as g, AGENT_STATUSES as gn, shortId as gt, RenderOptions as h, statusWhenDone as hn, SessionStatus as ht, ResolvedCarnet as i, AGENT_KINDS as in, workspaceRepoNames as it, StatusViewOptions as j, CarnetEvent as jn, WorkspaceOrigin as jt, StatusLine as k, isUserActionStatus as kn, hostById as kt, MAIN_HEADER as l, ListAgentsOptions as ln, HookEnv as lt, NotesMode as m, isAgentKind as mn, SessionKind as mt, CarnetOptions as n, workspaceExists as nn, sessionNoteActivity as nt, openResolvedCarnet as o, AgentKind as on, TableItem as ot, NOTES_HEADER as p, UpdateAgentInput as pn, Session as pt, NoteActivityKind as q, addWorkspaceRepo as qt, OpenCarnetOptions as r, workspaceHosts as rn, similarity as rt, openWorkspaceCarnet as s, DEFAULT_AGENT_KIND as sn, MergeResult as st, Carnet as t, removeWorkspaceRepo as tn, memoryHalfLife as tt, MAIN_WAITING_SUFFIX as u, PUBLISH_FALLBACK_MILLISECONDS as un, HookSessionPayload as ut, renderMainLine as v, EMOJI as vn, Host as vt, renderTableLine as w, MAIN_WORKING_EMOJI as wn, HostSubagentPayload as wt, renderNotesSummary as x, LEGEND as xn, HostSessionEndPayload as xt, renderNoteLine as y, KIND_ABBREVIATIONS as yn, HostPromptPayload as yt, DEFAULT_HALF_LIFE_DAYS as z, AGENTS_FILE as zt };
602
- //# sourceMappingURL=carnet-jmxAmm-u.d.mts.map
631
+ export { NoteDetail as $, definitionInstructions as $t, memoryMaxCharacters as A, MAIN_WORKING_EMOJI as An, LaunchOptions as At, AddNoteInput as B, EventType as Bn, requireWorkspace as Bt, renderNotes as C, EMOJI as Cn, HostPromptPayload as Ct, renderTableLine as D, LEGEND as Dn, HostStopPayload as Dt, renderStatus as E, KIND_TAG_PATTERN as En, HostSessionPayload as Et, buildStatusView as F, isUserActionStatus as Fn, WorkspaceOrigin as Ft, DropNoteInput as G, DropWorkspaceOptions as Gt, CiteNoteInput as H, SESSION_EVENT_TYPES as Hn, workspaceLabel as Ht, formatClock as I, kindTag as In, WorkspaceResolution as It, NOTE_TEXT_LIMIT as J, Workspace as Jt, ListNotesOptions as K, INSTRUCTIONS_FILE as Kt, TURNS as L, AgentEventType as Ln, isInside as Lt, StatusLine as M, USER_ACTION_STATUSES as Mn, allHosts as Mt, StatusView as N, UserActionStatus as Nn, hostById as Nt, MEMORY_MAX_CHARACTERS as O, MAIN_FAILED_EMOJI as On, HostSubagentPayload as Ot, StatusViewOptions as P, isAgentStatus as Pn, ResolveWorkspaceOptions as Pt, NoteCitation as Q, createWorkspace as Qt, Turn as R, CarnetEvent as Rn, repoNameFor as Rt, renderNoteLine as S, AgentStatus as Sn, Host as St, renderSections as T, KIND_LEGEND as Tn, HostSessionEndPayload as Tt, DEFAULT_HALF_LIFE_DAYS as U, SessionEventType as Un, AGENTS_FILE as Ut, AddNoteResult as V, LogEventInput as Vn, resolveWorkspace as Vt, DUPLICATE_SIMILARITY as W, isEventType as Wn, CreateWorkspaceOptions as Wt, NoteActivity as X, WorkspaceRepo as Xt, Note as Y, WorkspaceFile as Yt, NoteActivityKind as Z, addWorkspaceRepo as Zt, NotesMode as _, StartAgentInput as _n, Session as _t, ResolvedCarnet as a, removeWorkspaceRepo as an, memoryHalfLife as at, renderAgentLine as b, statusWhenDone as bn, shortId as bt, openWorkspaceCarnet as c, AGENT_KINDS as cn, workspaceRepoNames as ct, MAIN_HEADER as d, FinishAgentInput as dn, MergeResult as dt, dropWorkspace as en, NoteKind as et, MAIN_IDLE as f, KIND_REQUIRED as fn, CreateSessionInput as ft, NOTES_HEADER as g, SANDBOX_KINDS as gn, MINIMUM_ID_PREFIX as gt, NOTES_FOLD_LINES as h, REPORTING_NOTE as hn, ListSessionsOptions as ht, OpenCarnetOptions as i, loadWorkspace as in, localDay as it, renderMemory as j, OPEN_AGENT_STATUSES as jn, ResumeCommand as jt, MemoryOptions as k, MAIN_WAITING_EMOJI as kn, HostToolPayload as kt, BLOCKED_HEADER as l, Agent as ln, SetTableInput as lt, MAIN_WORKING_SUFFIX as m, PUBLISH_FALLBACK_MILLISECONDS as mn, HookSessionPayload as mt, CarnetOptions as n, isWorkspaceName as nn, WeightedNote as nt, openCarnet as o, workspaceExists as on, sessionNoteActivity as ot, MAIN_WAITING_SUFFIX as p, ListAgentsOptions as pn, HookEnv as pt, NOTE_KINDS as q, WORKSPACE_FILE as qt, ClosedAgent as r, listWorkspaces as rn, isNoteKind as rt, openResolvedCarnet as s, workspaceHosts as sn, similarity as st, Carnet as t, expandHome as tn, STALE_AFTER_ACTIVE_DAYS as tt, MAIN_FAILED_SUFFIX as u, AgentKind as un, TableItem as ut, RenderOptions as v, UpdateAgentInput as vn, SessionKind as vt, renderNotesSummary as w, KIND_ABBREVIATIONS as wn, HostRender as wt, renderMainLine as x, AGENT_STATUSES as xn, DEFAULT_HOST as xt, SIMILAR_PREFIX as y, isAgentKind as yn, SessionStatus as yt, TurnOptions as z, EVENT_TYPES as zn, repoPathFor as zt };
632
+ //# sourceMappingURL=carnet-DcHESFRd.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carnet-DcHESFRd.d.mts","names":["_$__merge_ts0.MergeResult","_$__questions_ts0.Question","_$__findings_ts0.Finding","_$__table_ts0.TableItem","_$__events_ts0.CarnetEvent","_$__notes_ts0.AddNoteResult","_$__notes_ts0.Note","_$__notes_ts0.NoteDetail","_$__notes_ts0.WeightedNote","_$__notes_ts0.NoteCitation","_$__notes_ts0.NoteActivity","_$__status_view_ts0.StatusView"],"sources":["../src/context.ts","../src/events.ts","../src/status/model.ts","../src/agents.ts","../src/workspace/workspace.ts","../src/workspace/locate.ts","../src/hosts/host.ts","../src/sessions.ts","../src/merge.ts","../src/questions.ts","../src/findings.ts","../src/table.ts","../src/notes.ts","../src/turn.ts","../src/status/view.ts","../src/memory.ts","../src/status/render.ts","../src/carnet.ts"],"mappings":";UAEiB;EACf,IAAI;EACJ,WAAW;EAEX;;cCFW;cAaA;KAOD,yBAAyB;KACzB,2BAA2B;KAC3B,YAAY,iBAAiB;UAIxB;EACf;EACA;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;;UAGe;EACf,MAAM;EACN;EACA;EACA;EACA;;iBAqBc,YAAY,iBAAiB,SAAS;cCnEzC;KAUD,sBAAsB;cAErB;KAED,2BAA2B;cAE1B,OAAO,OAAO,QAAQ;cAStB;cACA;cACA;cAEA;cAGA;WACX;WACA;WACA;WACA;;iBAIc,QAAQ,mBAAmB;cAI9B,kBAAgB;cAEhB;iBAEG,cAAc,iBAAiB,SAAS;iBAIxC,mBAAmB,iBAAiB,SAAS;cAIhD;cClDA;KAED,oBAAoB;cAEnB;iBAWG,YAAY,iBAAiB,SAAS;UAWrC;EACf;EACA;EACA,MAAM;EACN,cAAc;EAEd;EAEA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA,eAAe;EACf;EACA;EACA;EAEA;;UAGe;EACf;EACA;EACA,MAAM;EACN;EACA;EACA;EAEA;;cAGW,wBAAwB;UAEpB;EACf,QAAQ;E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import { $ as isNoteKind, $t as listWorkspaces, A as StatusView, An as AgentEventType, At as ResolveWorkspaceOptions, B as DUPLICATE_SIMILARITY, Bt as CreateWorkspaceOptions, C as renderStatus, Cn as MAIN_WAITING_EMOJI, Ct as HostStopPayload, D as memoryMaxCharacters, Dn as UserActionStatus, Dt as ResumeCommand, E as MemoryOptions, En as USER_ACTION_STATUSES, Et as LaunchOptions, F as Turn, Fn as SESSION_EVENT_TYPES, Ft as repoPathFor, G as Note, Gt as WorkspaceFile, H as ListNotesOptions, Ht as INSTRUCTIONS_FILE, I as AddNoteInput, In as SessionEventType, It as requireWorkspace, J as NoteCitation, Jt as createWorkspace, K as NoteActivity, Kt as WorkspaceRepo, L as AddNoteResult, Ln as isEventType, Lt as resolveWorkspace, M as buildStatusView, Mn as EVENT_TYPES, Mt as WorkspaceResolution, N as formatClock, Nn as EventType, Nt as isInside, O as renderMemory, On as isAgentStatus, Ot as allHosts, P as TURNS, Pn as LogEventInput, Pt as repoNameFor, Q as WeightedNote, Qt as isWorkspaceName, R as CiteNoteInput, Rt as workspaceLabel, S as renderSections, Sn as MAIN_FAILED_EMOJI, St as HostSessionPayload, T as MEMORY_MAX_CHARACTERS, Tn as OPEN_AGENT_STATUSES, Tt as HostToolPayload, U as NOTE_KINDS, Ut as WORKSPACE_FILE, V as DropNoteInput, Vt as DropWorkspaceOptions, W as NOTE_TEXT_LIMIT, Wt as Workspace, X as NoteKind, Xt as dropWorkspace, Y as NoteDetail, Yt as definitionInstructions, Z as STALE_AFTER_ACTIVE_DAYS, Zt as expandHome, _ as renderAgentLine, _n as AgentStatus, _t as DEFAULT_HOST, a as openCarnet, an as Agent, at as SetTableInput, b as renderNotes, bn as KIND_LEGEND, bt as HostRender, c as MAIN_FAILED_SUFFIX, cn as FinishAgentInput, ct as CreateSessionInput, d as MAIN_WORKING_SUFFIX, dn as REPORTING_NOTE, dt as ListSessionsOptions, en as loadWorkspace, et as localDay, f as NOTES_FOLD_LINES, fn as StartAgentInput, ft as MINIMUM_ID_PREFIX, g as SIMILAR_PREFIX, gn as AGENT_STATUSES, gt as shortId, h as RenderOptions, hn as statusWhenDone, ht as SessionStatus, i as ResolvedCarnet, in as AGENT_KINDS, it as workspaceRepoNames, j as StatusViewOptions, jn as CarnetEvent, jt as WorkspaceOrigin, k as StatusLine, kn as isUserActionStatus, kt as hostById, l as MAIN_HEADER, ln as ListAgentsOptions, lt as HookEnv, m as NotesMode, mn as isAgentKind, mt as SessionKind, n as CarnetOptions, nn as workspaceExists, nt as sessionNoteActivity, o as openResolvedCarnet, on as AgentKind, ot as TableItem, p as NOTES_HEADER, pn as UpdateAgentInput, pt as Session, q as NoteActivityKind, qt as addWorkspaceRepo, r as OpenCarnetOptions, rn as workspaceHosts, rt as similarity, s as openWorkspaceCarnet, sn as DEFAULT_AGENT_KIND, st as MergeResult, t as Carnet, tn as removeWorkspaceRepo, tt as memoryHalfLife, u as MAIN_WAITING_SUFFIX, un as PUBLISH_FALLBACK_MILLISECONDS, ut as HookSessionPayload, v as renderMainLine, vn as EMOJI, vt as Host, w as renderTableLine, wn as MAIN_WORKING_EMOJI, wt as HostSubagentPayload, x as renderNotesSummary, xn as LEGEND, xt as HostSessionEndPayload, y as renderNoteLine, yn as KIND_ABBREVIATIONS, yt as HostPromptPayload, z as DEFAULT_HALF_LIFE_DAYS, zt as AGENTS_FILE } from "./carnet-jmxAmm-u.mjs";
1
+ import { $ as NoteDetail, $t as definitionInstructions, A as memoryMaxCharacters, An as MAIN_WORKING_EMOJI, At as LaunchOptions, B as AddNoteInput, Bn as EventType, Bt as requireWorkspace, C as renderNotes, Cn as EMOJI, Ct as HostPromptPayload, D as renderTableLine, Dn as LEGEND, Dt as HostStopPayload, E as renderStatus, En as KIND_TAG_PATTERN, Et as HostSessionPayload, F as buildStatusView, Fn as isUserActionStatus, Ft as WorkspaceOrigin, G as DropNoteInput, Gt as DropWorkspaceOptions, H as CiteNoteInput, Hn as SESSION_EVENT_TYPES, Ht as workspaceLabel, I as formatClock, In as kindTag, It as WorkspaceResolution, J as NOTE_TEXT_LIMIT, Jt as Workspace, K as ListNotesOptions, Kt as INSTRUCTIONS_FILE, L as TURNS, Ln as AgentEventType, Lt as isInside, M as StatusLine, Mn as USER_ACTION_STATUSES, Mt as allHosts, N as StatusView, Nn as UserActionStatus, Nt as hostById, O as MEMORY_MAX_CHARACTERS, On as MAIN_FAILED_EMOJI, Ot as HostSubagentPayload, P as StatusViewOptions, Pn as isAgentStatus, Pt as ResolveWorkspaceOptions, Q as NoteCitation, Qt as createWorkspace, R as Turn, Rn as CarnetEvent, Rt as repoNameFor, S as renderNoteLine, Sn as AgentStatus, St as Host, T as renderSections, Tn as KIND_LEGEND, Tt as HostSessionEndPayload, U as DEFAULT_HALF_LIFE_DAYS, Un as SessionEventType, Ut as AGENTS_FILE, V as AddNoteResult, Vn as LogEventInput, Vt as resolveWorkspace, W as DUPLICATE_SIMILARITY, Wn as isEventType, Wt as CreateWorkspaceOptions, X as NoteActivity, Xt as WorkspaceRepo, Y as Note, Yt as WorkspaceFile, Z as NoteActivityKind, Zt as addWorkspaceRepo, _ as NotesMode, _n as StartAgentInput, _t as Session, a as ResolvedCarnet, an as removeWorkspaceRepo, at as memoryHalfLife, b as renderAgentLine, bn as statusWhenDone, bt as shortId, c as openWorkspaceCarnet, cn as AGENT_KINDS, ct as workspaceRepoNames, d as MAIN_HEADER, dn as FinishAgentInput, dt as MergeResult, en as dropWorkspace, et as NoteKind, f as MAIN_IDLE, fn as KIND_REQUIRED, ft as CreateSessionInput, g as NOTES_HEADER, gn as SANDBOX_KINDS, gt as MINIMUM_ID_PREFIX, h as NOTES_FOLD_LINES, hn as REPORTING_NOTE, ht as ListSessionsOptions, i as OpenCarnetOptions, in as loadWorkspace, it as localDay, j as renderMemory, jn as OPEN_AGENT_STATUSES, jt as ResumeCommand, k as MemoryOptions, kn as MAIN_WAITING_EMOJI, kt as HostToolPayload, l as BLOCKED_HEADER, ln as Agent, lt as SetTableInput, m as MAIN_WORKING_SUFFIX, mn as PUBLISH_FALLBACK_MILLISECONDS, mt as HookSessionPayload, n as CarnetOptions, nn as isWorkspaceName, nt as WeightedNote, o as openCarnet, on as workspaceExists, ot as sessionNoteActivity, p as MAIN_WAITING_SUFFIX, pn as ListAgentsOptions, pt as HookEnv, q as NOTE_KINDS, qt as WORKSPACE_FILE, r as ClosedAgent, rn as listWorkspaces, rt as isNoteKind, s as openResolvedCarnet, sn as workspaceHosts, st as similarity, t as Carnet, tn as expandHome, tt as STALE_AFTER_ACTIVE_DAYS, u as MAIN_FAILED_SUFFIX, un as AgentKind, ut as TableItem, v as RenderOptions, vn as UpdateAgentInput, vt as SessionKind, w as renderNotesSummary, wn as KIND_ABBREVIATIONS, wt as HostRender, x as renderMainLine, xn as AGENT_STATUSES, xt as DEFAULT_HOST, y as SIMILAR_PREFIX, yn as isAgentKind, yt as SessionStatus, z as TurnOptions, zn as EVENT_TYPES, zt as repoPathFor } from "./carnet-DcHESFRd.mjs";
2
2
  import { DatabaseSync } from "node:sqlite";
3
3
  interface MoveOptions {
4
4
  merge?: boolean | undefined;
@@ -24,7 +24,7 @@ export declare function openDatabase(path: string): DatabaseSync;
24
24
  export declare const migrations: readonly string[];
25
25
  export declare function schemaVersion(db: DatabaseSync): number;
26
26
  export declare function migrate(db: DatabaseSync): void;
27
- type CarnetErrorCode = 'NO_WORKSPACE' | 'WORKSPACE_EXISTS' | 'WORKSPACE_NOT_FOUND' | 'WORKSPACE_NAME_INVALID' | 'REPO_NOT_FOUND' | 'REPO_NAME_TAKEN' | 'NOTE_NOT_FOUND' | 'INVALID_NOTE' | 'UNKNOWN_HOST' | 'NO_SESSION' | 'SESSION_NOT_FOUND' | 'SESSION_AMBIGUOUS' | 'SESSION_NAME_TAKEN' | 'SESSION_NAME_REQUIRED' | 'SESSION_RUNNING' | 'SESSION_KIND_INVALID' | 'SESSION_MERGE_INVALID' | 'SESSION_EXISTS' | 'SESSION_MOVE_INVALID' | 'SESSION_CWD_MISSING' | 'RUN_DIRECTORY_FILE_CONFLICT' | 'WORKSPACE_INSTRUCTIONS_CONFLICT' | 'AGENT_EXISTS' | 'AGENT_NOT_FOUND' | 'INVALID_TARGET' | 'INVALID_KIND' | 'INVALID_QUESTIONS' | 'QUESTION_NOT_FOUND' | 'FINDING_NOT_FOUND' | 'REASON_REQUIRED' | 'SECTION_NOT_FOUND' | 'REPORT_MISSING' | 'INVALID_STATUS' | 'INVALID_EVENT_TYPE' | 'COMMIT_REQUIRED';
27
+ type CarnetErrorCode = 'NO_WORKSPACE' | 'WORKSPACE_EXISTS' | 'WORKSPACE_NOT_FOUND' | 'WORKSPACE_NAME_INVALID' | 'REPO_NOT_FOUND' | 'REPO_NAME_TAKEN' | 'NOTE_NOT_FOUND' | 'INVALID_NOTE' | 'UNKNOWN_HOST' | 'NO_SESSION' | 'SESSION_NOT_FOUND' | 'SESSION_AMBIGUOUS' | 'SESSION_NAME_TAKEN' | 'SESSION_NAME_REQUIRED' | 'SESSION_RUNNING' | 'SESSION_KIND_INVALID' | 'SESSION_MERGE_INVALID' | 'SESSION_EXISTS' | 'SESSION_MOVE_INVALID' | 'SESSION_CWD_MISSING' | 'RUN_DIRECTORY_FILE_CONFLICT' | 'WORKSPACE_INSTRUCTIONS_CONFLICT' | 'AGENT_EXISTS' | 'AGENT_NOT_FOUND' | 'INVALID_TARGET' | 'INVALID_BLOCKER' | 'INVALID_KIND' | 'INVALID_SANDBOX' | 'INVALID_QUESTIONS' | 'QUESTION_NOT_FOUND' | 'FINDING_NOT_FOUND' | 'REASON_REQUIRED' | 'SECTION_NOT_FOUND' | 'REPORT_MISSING' | 'INVALID_STATUS' | 'INVALID_EVENT_TYPE' | 'COMMIT_REQUIRED';
28
28
  export declare class CarnetError extends Error {
29
29
  readonly code: CarnetErrorCode;
30
30
  constructor(code: CarnetErrorCode, message: string);
@@ -43,6 +43,7 @@ export declare function defaultRunDirectory(name: string, env?: NodeJS.ProcessEn
43
43
  export declare function promptsDirectory(env?: NodeJS.ProcessEnv): string;
44
44
  export declare function corePromptPath(env?: NodeJS.ProcessEnv): string;
45
45
  export declare function reportsDirectory(workspace: Workspace): string;
46
+ export declare function sandboxesDirectory(workspace: Workspace): string;
46
47
  export declare function reportPath(workspace: Workspace, agentName: string): string;
47
48
  export declare function handleSessionEnd(carnet: Carnet, payload: HostSessionEndPayload): Session | undefined;
48
49
  export declare function handleStop(carnet: Carnet, payload: HostStopPayload): void;
@@ -78,12 +79,13 @@ export declare function outsideRucherContext(workspace: Workspace | null, env?:
78
79
  export declare const OUTSIDE_RUCHER_NOTICE = "rucher: session started without rucher, the Rucher rules are not in its system prompt (use rucher new, tmp or resume)";
79
80
  export declare const RULES_UPDATED_NOTICE = "rucher: rules updated, will apply after the next compaction or in a new session";
80
81
  export declare const SUBAGENT_RULES = "Rucher rules for sub-agents: never commit, push or stash. When your task asks for a report, write it to the file it names. If your prompt names you as a Carnet agent, follow the contract of its kind, call agent_update at meaningful progress and agent_done as your last tool action, then reply with one line.";
81
- export declare const CORE_RULES = "- Work can be parallel, review stays sequential: forks work at the same time, the human handles their results one at a time.\n- The human keeps the hand: only the human launches agents, triggers their final action (inject, validate, apply, triage), applies, tests and commits. Agents propose, they never push.\n- Status lives in Carnet: agent statuses, the Main line and the journal go through the Carnet tools, never into status files nor chat updates. Update before and after each piece of work.\n- When an agent finishes, say only \"<name> finished, report ready\". Never summarise, quote or act on its report or final message until the human asks for that report or its final action, even when answering about something else.\n- Agents never commit, push, stash or record notes. An agent follows its kind's contract, writes its report to a file ending with a Learnings section, calls agent_done as its last tool action, then replies with one line that carries no results, such as \"<name> done, report written\". Only the main agent records notes, at the end of a step.\n- To launch agents or handle their results, load the rucher skill: it holds the full workflow.";
82
- export declare function handleUserPromptSubmit(carnet: Carnet, host: Host, payload: HostPromptPayload): Session;
83
- export declare function handleToolUse(carnet: Carnet, payload: HostToolPayload, env: HookEnv): string | undefined;
82
+ export declare const CORE_RULES = "- Work can be parallel, review stays sequential: forks work at the same time, the human handles their results one at a time.\n- The human keeps the hand: only the human launches agents, asks for their report and its next action (inject, validate, apply, triage), applies, tests and commits. Agents propose, they never push.\n- Status lives in Carnet: agent statuses, the Main line and the journal go through the Carnet tools, never into status files nor chat updates. Update before and after each piece of work.\n- When an agent finishes, say only \"<name> finished, report ready\". Never summarise, quote or act on its report or final message until the human asks for that report (/rucher:report), even when answering about something else.\n- Agents never commit, push, stash or record notes. An agent follows its kind's contract, writes its report to a file ending with a Learnings section, calls agent_done as its last tool action, then replies with one line that carries no results, such as \"<name> done, report written\". Only the main agent records notes, at the end of a step.\n- To launch agents or handle their results, load the rucher skill: it holds the full workflow.";
83
+ export declare function handleUserPromptSubmit(carnet: Carnet, host: Host, payload: HostPromptPayload, options?: TurnOptions): Session;
84
+ export declare function handleToolUse(carnet: Carnet, payload: HostToolPayload, env: HookEnv, options?: TurnOptions): string | undefined;
84
85
  export declare const WAITING_TOOL = "AskUserQuestion";
85
86
  export declare function handleToolStart(carnet: Carnet, payload: HostToolPayload): void;
86
87
  export declare function guardSubagentCall(carnet: Carnet, payload: HostToolPayload, scratchRoot: string): string | undefined;
88
+ export declare function guardMainLaunch(carnet: Carnet, payload: HostToolPayload): string | undefined;
87
89
  export declare const GUARDED_TOOLS: Set<string>;
88
90
  interface GuardInput {
89
91
  kind: AgentKind;
@@ -92,10 +94,20 @@ interface GuardInput {
92
94
  command?: string | undefined;
93
95
  cwd?: string | undefined;
94
96
  worktree?: string | null | undefined;
97
+ sandbox?: string | null | undefined;
95
98
  scratchRoot: string;
96
99
  }
97
100
  export declare function guardToolCall(input: GuardInput): string | undefined;
98
101
  export declare function kindOfAgentType(agentType: string | undefined): AgentKind | undefined;
102
+ export declare const LAUNCH_TOOLS: ReadonlySet<string>;
103
+ export declare const BUILT_IN_PLAN_DENIED = "In a Rucher session a plan agent is a Rucher fork, never the built-in Plan subagent: use /rucher:start:plan (agent_start with kind plan, then Agent with subagent_type fork and the agent name as description). For a question with no change, use /rucher:start:research.";
104
+ interface LaunchCall {
105
+ toolName: string;
106
+ subagentType?: string | undefined;
107
+ named?: Agent | undefined;
108
+ pendingPlan?: Agent | undefined;
109
+ }
110
+ export declare function guardLaunch(call: LaunchCall): string | undefined;
99
111
  export declare function transcriptTitle(path: string): string | undefined;
100
112
  export declare function workspaceSettings(workspace: Workspace): Record<string, unknown>;
101
113
  export declare const claudeCode: Host;
@@ -114,6 +126,15 @@ export declare const PAIRING_WINDOW_MILLISECONDS = 60000;
114
126
  export declare const STOPPED_NOTE = "stopped without agent_done";
115
127
  export declare const NOTE_MAX = 60;
116
128
  export declare function sanitizeNote(text: string): string;
129
+ export declare const STATUS_LINE_LABEL = "rucher";
130
+ export declare function renderStatusLine(view: StatusView, lag?: string | null): string;
131
+ export declare function labelStatusLine(line: string): string;
132
+ export declare function statusLinePath(sessionId: string, env?: NodeJS.ProcessEnv): string;
133
+ interface StatusLineOptions {
134
+ env?: NodeJS.ProcessEnv | undefined;
135
+ lag?: string | null | undefined;
136
+ }
137
+ export declare function writeStatusLine(carnet: Carnet, sessionId: string, options?: StatusLineOptions): void;
117
138
  type OpenAgentStatus = (typeof OPEN_AGENT_STATUSES)[number];
118
139
  export declare const AGENT_STEPS: readonly ['answered', 'applying', 'applied', 'tested', 'committed', 'dropped'];
119
140
  type AgentStep = (typeof AGENT_STEPS)[number];
@@ -141,5 +162,5 @@ export declare function markdownCopy(content: string): string;
141
162
  export declare function removeStaleCopies(directory: string, keep: ReadonlySet<string>): string[];
142
163
  export declare function writeGenerated(path: string, content: string): boolean;
143
164
  export declare function mergeSettings(base: Record<string, unknown>, extra: Record<string, unknown>): Record<string, unknown>;
144
- export { AGENTS_FILE, AGENT_KINDS, AGENT_STATUSES, type AddNoteInput, type AddNoteResult, type Agent, type AgentEventType, type AgentKind, type AgentStatus, type AgentStep, type AppendPromptFile, type AssembledPrompt, Carnet, type CarnetErrorCode, type CarnetEvent, type CarnetOptions, type CiteNoteInput, type CreateSessionInput, type CreateWorkspaceOptions, DEFAULT_AGENT_KIND, DEFAULT_HALF_LIFE_DAYS, DEFAULT_HOST, DUPLICATE_SIMILARITY, type DropNoteInput, type DropWorkspaceOptions, EMOJI, EVENT_TYPES, type EventType, type FinishAgentInput, type HookEnv, type HookSessionPayload, type Host, type HostPromptPayload, type HostRender, type HostSessionEndPayload, type HostSessionPayload, type HostSubagentPayload, type HostToolPayload, INSTRUCTIONS_FILE, KIND_ABBREVIATIONS, KIND_LEGEND, LEGEND, type LaunchOptions, type ListAgentsOptions, type ListNotesOptions, type ListSessionsOptions, type LogEventInput, MAIN_FAILED_EMOJI, MAIN_FAILED_SUFFIX, MAIN_HEADER, MAIN_WAITING_EMOJI, MAIN_WAITING_SUFFIX, MAIN_WORKING_EMOJI, MAIN_WORKING_SUFFIX, MEMORY_MAX_CHARACTERS, MINIMUM_ID_PREFIX, type MemoryOptions, type MergeResult, type MoveOptions, type MoveResult, NOTES_FOLD_LINES, NOTES_HEADER, NOTE_KINDS, NOTE_TEXT_LIMIT, type Note, type NoteActivity, type NoteActivityKind, type NoteCitation, type NoteDetail, type NoteKind, type NotesMode, type OpenCarnetOptions, PUBLISH_FALLBACK_MILLISECONDS, type PromptSession, REPORTING_NOTE, type RenderOptions, type RenderResult, type ResolveWorkspaceOptions, type ResolvedCarnet, type ResumeCommand, type ResumeContextOptions, type RucherPaths, type RunDirectoryRenderOptions, SESSION_EVENT_TYPES, SIMILAR_PREFIX, STALE_AFTER_ACTIVE_DAYS, type Session, type SessionEventType, type SessionKind, type SessionStartResult, type SessionStatus, type SetTableInput, type StartAgentInput, type StatusLine, type StatusView, type StatusViewOptions, type StepAgentInput, TURNS, type TableItem, type Turn, USER_ACTION_STATUSES, type UpdateAgentInput, type UserActionStatus, WORKSPACE_FILE, type WeightedNote, type Workspace, type WorkspaceFile, type WorkspaceOrigin, type WorkspaceRepo, type WorkspaceResolution, addWorkspaceRepo, allHosts, buildStatusView, createWorkspace, definitionInstructions, dropWorkspace, expandHome, formatClock, hostById, isAgentKind, isAgentStatus, isEventType, isInside, isNoteKind, isUserActionStatus, isWorkspaceName, listWorkspaces, loadWorkspace, localDay, memoryHalfLife, memoryMaxCharacters, openCarnet, openResolvedCarnet, openWorkspaceCarnet, removeWorkspaceRepo, renderAgentLine, renderMainLine, renderMemory, renderNoteLine, renderNotes, renderNotesSummary, renderSections, renderStatus, renderTableLine, repoNameFor, repoPathFor, requireWorkspace, resolveWorkspace, sessionNoteActivity, shortId, similarity, statusWhenDone, workspaceExists, workspaceHosts, workspaceLabel, workspaceRepoNames };
165
+ export { AGENTS_FILE, AGENT_KINDS, AGENT_STATUSES, type AddNoteInput, type AddNoteResult, type Agent, type AgentEventType, type AgentKind, type AgentStatus, type AgentStep, type AppendPromptFile, type AssembledPrompt, BLOCKED_HEADER, Carnet, type CarnetErrorCode, type CarnetEvent, type CarnetOptions, type CiteNoteInput, type ClosedAgent, type CreateSessionInput, type CreateWorkspaceOptions, DEFAULT_HALF_LIFE_DAYS, DEFAULT_HOST, DUPLICATE_SIMILARITY, type DropNoteInput, type DropWorkspaceOptions, EMOJI, EVENT_TYPES, type EventType, type FinishAgentInput, type HookEnv, type HookSessionPayload, type Host, type HostPromptPayload, type HostRender, type HostSessionEndPayload, type HostSessionPayload, type HostSubagentPayload, type HostToolPayload, INSTRUCTIONS_FILE, KIND_ABBREVIATIONS, KIND_LEGEND, KIND_REQUIRED, KIND_TAG_PATTERN, LEGEND, type LaunchOptions, type ListAgentsOptions, type ListNotesOptions, type ListSessionsOptions, type LogEventInput, MAIN_FAILED_EMOJI, MAIN_FAILED_SUFFIX, MAIN_HEADER, MAIN_IDLE, MAIN_WAITING_EMOJI, MAIN_WAITING_SUFFIX, MAIN_WORKING_EMOJI, MAIN_WORKING_SUFFIX, MEMORY_MAX_CHARACTERS, MINIMUM_ID_PREFIX, type MemoryOptions, type MergeResult, type MoveOptions, type MoveResult, NOTES_FOLD_LINES, NOTES_HEADER, NOTE_KINDS, NOTE_TEXT_LIMIT, type Note, type NoteActivity, type NoteActivityKind, type NoteCitation, type NoteDetail, type NoteKind, type NotesMode, type OpenCarnetOptions, PUBLISH_FALLBACK_MILLISECONDS, type PromptSession, REPORTING_NOTE, type RenderOptions, type RenderResult, type ResolveWorkspaceOptions, type ResolvedCarnet, type ResumeCommand, type ResumeContextOptions, type RucherPaths, type RunDirectoryRenderOptions, SANDBOX_KINDS, SESSION_EVENT_TYPES, SIMILAR_PREFIX, STALE_AFTER_ACTIVE_DAYS, type Session, type SessionEventType, type SessionKind, type SessionStartResult, type SessionStatus, type SetTableInput, type StartAgentInput, type StatusLine, type StatusLineOptions, type StatusView, type StatusViewOptions, type StepAgentInput, TURNS, type TableItem, type Turn, type TurnOptions, USER_ACTION_STATUSES, type UpdateAgentInput, type UserActionStatus, WORKSPACE_FILE, type WeightedNote, type Workspace, type WorkspaceFile, type WorkspaceOrigin, type WorkspaceRepo, type WorkspaceResolution, addWorkspaceRepo, allHosts, buildStatusView, createWorkspace, definitionInstructions, dropWorkspace, expandHome, formatClock, hostById, isAgentKind, isAgentStatus, isEventType, isInside, isNoteKind, isUserActionStatus, isWorkspaceName, kindTag, listWorkspaces, loadWorkspace, localDay, memoryHalfLife, memoryMaxCharacters, openCarnet, openResolvedCarnet, openWorkspaceCarnet, removeWorkspaceRepo, renderAgentLine, renderMainLine, renderMemory, renderNoteLine, renderNotes, renderNotesSummary, renderSections, renderStatus, renderTableLine, repoNameFor, repoPathFor, requireWorkspace, resolveWorkspace, sessionNoteActivity, shortId, similarity, statusWhenDone, workspaceExists, workspaceHosts, workspaceLabel, workspaceRepoNames };
145
166
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/move.ts","../src/workspace-rows.ts","../src/db/open.ts","../src/db/schema.ts","../src/errors.ts","../src/paths.ts","../src/hook/session-end.ts","../src/hook/session-start.ts","../src/prompt/prompt.ts","../src/prompt/core-rules.ts","../src/hook/user-prompt-submit.ts","../src/hook/post-tool-use.ts","../src/guard.ts","../src/hosts/claude-code.ts","../src/purge.ts","../src/resume.ts","../src/subagents.ts","../src/status/note.ts","../src/steps.ts","../src/render.ts","../src/run-directory-files.ts"],"mappings":";;UAIiB;EACf;EACA;;UAGe;EACf,SAAS;EACT,MAAM;EACN;EACA;EACA;EACA;EACA;;wBAwBc,YACd,QAAQ,QACR,mBACA,yBACA,UAAS,cACR;wBC/Ba,qBAAqB,IAAI,cAAc;wBAOvC,yBAAyB,IAAI,cAAc,cAAc;wBAiBzD,qBAAqB,IAAI,cAAc;wBAIvC,uBAAuB,IAAI,eAAe;wBAU1C,oBAAoB,IAAI,eAAe;qBCjD1C;wBAEG,aAAa,eAAe;qBCQ/B;wBAiWG,cAAc,IAAI;wBASlB,QAAQ,IAAI;KCvXhB;qBAqCC,oBAAoB;WAEpB,MAAM;EADjB,YACW,MAAM,iBACf;;UCpCa;EACf;EACA;EACA;EACA;;wBAQc,YAAY,MAAK,OAAO,aAA2B;wBAuBnD,aAAa,MAAM,OAAO;wBAI1B,oBAAoB,MAAM,OAAO;wBAIjC,oBAAoB,cAAc,MAAM,OAAO;wBAI/C,oBAAoB,cAAc,MAAM,OAAO;wBAI/C,iBAAiB,MAAM,OAAO;wBAI9B,eAAe,MAAM,OAAO;wBAI5B,iBAAiB,WAAW;wBAI5B,WAAW,WAAW,WAAW;wBC/DjC,iBACd,QAAQ,QACR,SAAS,wBACR;wBAOa,WAAW,QAAQ,QAAQ,SAAS;UCEnC;EACf,SAAS;EACT;EACA;EACA;;wBAsCc,mBACd,QAAQ,QACR,SAAS,oBACT,KAAK,UACJ;qBCtDU;UAEI;EACf;EACA;EACA,MAAM;;UAGS;EACf;EACA;;UAGe;EACf;EACA;;wBASc,UAAU,MAAK,OAAO;wBAItB,eAAe,WAAW;wBAI1B,UACd,WAAW,kBACX,MAAK,OAAO;wBAUE,aACd,WAAW,kBACX,MAAK,OAAO;wBAKE,eACd,WAAW,kBACX,SAAS,eACT,MAAK,OAAO,aACX;wBAWa,iBACd,WAAW,kBACX,SAAS,eACT,MAAK,OAAO,aACX;wBASa,gBACd,WAAW,kBACX,MAAK,OAAO;wBAKE,qBACd,WAAW,kBACX,MAAK,OAAO;qBAKD;qBAGA;qBAGA;qBC1GA;wBCGG,uBACd,QAAQ,QACR,MAAM,MACN,SAAS,oBACR;wBCAa,cACd,QAAQ,QACR,SAAS,iBACT,KAAK;qBAcM;wBAGG,gBAAgB,QAAQ,QAAQ,SAAS;wBAKzC,kBACd,QAAQ,QACR,SAAS,iBACT;qBCjCW,eAAa;UAGT;EACf,MAAM;EACN;EACA;EACA;EACA;EACA;EAEA;;wBA4Cc,cAAc,OAAO;wBA2BrB,gBAAgB,gCAAgC;wBCgBhD,gBAAgB;wBA4DhB,kBAAkB,WAAW,YAAY;qBA2D5C,YAAY;qBC1NZ;wBAGG,UAAU;qBCAb;qBACA;UAEI;EACf;EACA;;wBAGc,gBAAgB,OAAO;wBAYvB,aAAa,SAAS;wBAKtB,cACd,QAAQ,QACR,SAAS,WACP,QAAwB,kBAAyC;qBC7BxD;qBACA;qBCLA;wBAWG,aAAa;KCLxB,0BAA0B;qBAElB;KAQD,oBAAoB;UAEf;EACf;EACA,MAAM;EACN;EACA;EACA,OAAO;;wBAYO,UAAU,QAAQ,QAAQ,iBAAiB,OAAO;UC9BjD;EACf;EACA;EACA;;UAGe;EACf,MAAM,OAAO;EACb;;wBAGc,mBACd,WAAW,WACX,UAAS,4BACR;qBCfU;qBAkBA;wBAEG,aAAa;wBAWb,kBAAkB,mBAAmB,MAAM;wBAa3C,eAAe,cAAc;wBAiB7B,cACd,MAAM,yBACN,OAAO,0BACN"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/move.ts","../src/workspace-rows.ts","../src/db/open.ts","../src/db/schema.ts","../src/errors.ts","../src/paths.ts","../src/hook/session-end.ts","../src/hook/session-start.ts","../src/prompt/prompt.ts","../src/prompt/core-rules.ts","../src/hook/user-prompt-submit.ts","../src/hook/post-tool-use.ts","../src/guard.ts","../src/launch.ts","../src/hosts/claude-code.ts","../src/purge.ts","../src/resume.ts","../src/subagents.ts","../src/status/note.ts","../src/status/line.ts","../src/steps.ts","../src/render.ts","../src/run-directory-files.ts"],"mappings":";;UAIiB;EACf;EACA;;UAGe;EACf,SAAS;EACT,MAAM;EACN;EACA;EACA;EACA;EACA;;wBAwBc,YACd,QAAQ,QACR,mBACA,yBACA,UAAS,cACR;wBC/Ba,qBAAqB,IAAI,cAAc;wBAOvC,yBAAyB,IAAI,cAAc,cAAc;wBAiBzD,qBAAqB,IAAI,cAAc;wBAIvC,uBAAuB,IAAI,eAAe;wBAU1C,oBAAoB,IAAI,eAAe;qBCjD1C;wBAEG,aAAa,eAAe;qBCQ/B;wBAybG,cAAc,IAAI;wBASlB,QAAQ,IAAI;KC/chB;qBAuCC,oBAAoB;WAEpB,MAAM;EADjB,YACW,MAAM,iBACf;;UCtCa;EACf;EACA;EACA;EACA;;wBAQc,YAAY,MAAK,OAAO,aAA2B;wBAuBnD,aAAa,MAAM,OAAO;wBAI1B,oBAAoB,MAAM,OAAO;wBAIjC,oBAAoB,cAAc,MAAM,OAAO;wBAI/C,oBAAoB,cAAc,MAAM,OAAO;wBAI/C,iBAAiB,MAAM,OAAO;wBAI9B,eAAe,MAAM,OAAO;wBAI5B,iBAAiB,WAAW;wBAI5B,mBAAmB,WAAW;wBAI9B,WAAW,WAAW,WAAW;wBCnEjC,iBACd,QAAQ,QACR,SAAS,wBACR;wBAOa,WAAW,QAAQ,QAAQ,SAAS;UCEnC;EACf,SAAS;EACT;EACA;EACA;;wBAoDc,mBACd,QAAQ,QACR,SAAS,oBACT,KAAK,UACJ;qBCpEU;UAEI;EACf;EACA;EACA,MAAM;;UAGS;EACf;EACA;;UAGe;EACf;EACA;;wBASc,UAAU,MAAK,OAAO;wBAItB,eAAe,WAAW;wBAI1B,UACd,WAAW,kBACX,MAAK,OAAO;wBAUE,aACd,WAAW,kBACX,MAAK,OAAO;wBAKE,eACd,WAAW,kBACX,SAAS,eACT,MAAK,OAAO,aACX;wBAWa,iBACd,WA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