@rucher/carnet 0.2.0-beta.2 → 0.2.0-beta.4
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 +2 -2
- package/dist/{carnet-Dbkz_bzM.d.mts → carnet-DptiZiz8.d.mts} +80 -35
- package/dist/carnet-DptiZiz8.d.mts.map +1 -0
- package/dist/index.d.mts +48 -35
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +45 -191
- package/dist/index.mjs.map +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/mcp.d.mts.map +1 -1
- package/dist/mcp.mjs +11 -9
- package/dist/mcp.mjs.map +1 -1
- package/dist/{steps-CIQ9Nay1.mjs → steps-BeTGxQk4.mjs} +835 -427
- package/dist/steps-BeTGxQk4.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/carnet-Dbkz_bzM.d.mts.map +0 -1
- package/dist/steps-CIQ9Nay1.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @rucher/carnet
|
|
2
2
|
|
|
3
|
-
Shared state for Rucher: groups, sessions, agents, the "On the table" line and the event journal, stored in one SQLite database
|
|
3
|
+
Shared state for Rucher: groups, sessions, agents, the "On the table" line and the event journal, stored in one SQLite database for every group (`~/.local/share/rucher/carnet.db`, via `node:sqlite`), with groups defined in `~/.config/rucher/groups/<name>/group.json`.
|
|
4
4
|
|
|
5
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).
|
|
6
6
|
|
|
7
7
|
```ts
|
|
8
8
|
import { openCarnet } from '@rucher/carnet';
|
|
9
9
|
|
|
10
|
-
const carnet = openCarnet({
|
|
10
|
+
const carnet = openCarnet({ group: 'shop' });
|
|
11
11
|
const session = carnet.sessions.default();
|
|
12
12
|
if (session) console.log(carnet.status.render(session));
|
|
13
13
|
```
|
|
@@ -2,6 +2,7 @@ import { DatabaseSync } from "node:sqlite";
|
|
|
2
2
|
interface Ctx {
|
|
3
3
|
db: DatabaseSync;
|
|
4
4
|
now: () => Date;
|
|
5
|
+
group: string | null;
|
|
5
6
|
}
|
|
6
7
|
declare const AGENT_STATUSES: readonly ['running', 'discussing', 'answer', 'review', 'apply', 'test', 'commit', 'branch', 'closed'];
|
|
7
8
|
type AgentStatus = (typeof AGENT_STATUSES)[number];
|
|
@@ -49,37 +50,70 @@ interface ListAgentsOptions {
|
|
|
49
50
|
}
|
|
50
51
|
declare const REPORTING_NOTE = "reporting";
|
|
51
52
|
declare const PUBLISH_FALLBACK_MILLISECONDS = 120000;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
interface GroupRepo {
|
|
54
|
+
path: string;
|
|
55
|
+
name: string;
|
|
56
|
+
}
|
|
56
57
|
interface Group {
|
|
57
|
-
root: string;
|
|
58
58
|
name: string;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
source: string;
|
|
60
|
+
workspace: string;
|
|
61
|
+
repos: GroupRepo[];
|
|
62
|
+
backends: Record<string, {
|
|
63
|
+
settings?: Record<string, unknown>;
|
|
64
|
+
}>;
|
|
62
65
|
}
|
|
63
66
|
interface GroupFile {
|
|
64
|
-
name
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
name?: string | undefined;
|
|
68
|
+
workspace?: string | undefined;
|
|
69
|
+
repos?: {
|
|
70
|
+
path: string;
|
|
71
|
+
name?: string | undefined;
|
|
72
|
+
}[] | undefined;
|
|
73
|
+
backends?: Group['backends'] | undefined;
|
|
67
74
|
}
|
|
75
|
+
declare const GROUP_FILE = "group.json";
|
|
76
|
+
declare const INSTRUCTIONS_FILE = "CLAUDE.md";
|
|
77
|
+
declare const AGENTS_FILE = "AGENTS.md";
|
|
78
|
+
declare function isGroupName(name: string): boolean;
|
|
79
|
+
declare function expandHome(path: string, env?: NodeJS.ProcessEnv): string;
|
|
80
|
+
declare function groupExists(name: string, env?: NodeJS.ProcessEnv): boolean;
|
|
81
|
+
declare function loadGroup(name: string, env?: NodeJS.ProcessEnv): Group;
|
|
82
|
+
declare function listGroups(env?: NodeJS.ProcessEnv): Group[];
|
|
83
|
+
declare function groupHosts(group: Group): string[];
|
|
84
|
+
interface CreateGroupOptions {
|
|
85
|
+
repos?: readonly string[] | undefined;
|
|
86
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
87
|
+
}
|
|
88
|
+
declare function createGroup(name: string, options?: CreateGroupOptions): Group;
|
|
89
|
+
declare function sourceInstructions(group: Group): string;
|
|
90
|
+
declare function addGroupRepo(name: string, repo: string, env?: NodeJS.ProcessEnv): Group;
|
|
91
|
+
declare function removeGroupRepo(name: string, repo: string, env?: NodeJS.ProcessEnv): Group;
|
|
92
|
+
declare function renameGroup(from: string, to: string, env?: NodeJS.ProcessEnv): Group;
|
|
93
|
+
interface DropGroupOptions {
|
|
94
|
+
purge?: boolean | undefined;
|
|
95
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
96
|
+
}
|
|
97
|
+
declare function dropGroup(name: string, options?: DropGroupOptions): Group;
|
|
68
98
|
declare function isInside(directory: string, path: string): boolean;
|
|
69
|
-
declare function repoNameFor(group: Group, path: string | undefined): string | null;
|
|
70
|
-
declare function repoPathFor(group: Group, path: string | undefined | null): string | null;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
99
|
+
declare function repoNameFor(group: Group | null, path: string | undefined): string | null;
|
|
100
|
+
declare function repoPathFor(group: Group | null, path: string | undefined | null): string | null;
|
|
101
|
+
type GroupOrigin = 'session' | 'option' | 'env' | 'workspace' | 'repo' | 'none';
|
|
102
|
+
interface GroupResolution {
|
|
103
|
+
group: Group | null;
|
|
104
|
+
origin: GroupOrigin;
|
|
105
|
+
repo?: GroupRepo | undefined;
|
|
106
|
+
}
|
|
107
|
+
interface ResolveGroupOptions {
|
|
108
|
+
db?: DatabaseSync | undefined;
|
|
79
109
|
sessionId?: string | undefined;
|
|
110
|
+
group?: string | undefined;
|
|
111
|
+
cwd?: string | undefined;
|
|
112
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
80
113
|
}
|
|
81
|
-
declare function
|
|
82
|
-
declare function
|
|
114
|
+
declare function resolveGroup({ db, sessionId, group, cwd, env }?: ResolveGroupOptions): GroupResolution;
|
|
115
|
+
declare function groupLabel(group: Group | null): string;
|
|
116
|
+
declare function requireGroup(group: Group | null): Group;
|
|
83
117
|
declare function ambiguousGroupContext(reason: string): string;
|
|
84
118
|
interface HostSessionPayload {
|
|
85
119
|
session_id: string;
|
|
@@ -121,12 +155,12 @@ interface LaunchOptions {
|
|
|
121
155
|
name?: string | null | undefined;
|
|
122
156
|
appendPromptFile?: string | undefined;
|
|
123
157
|
passthrough?: readonly string[] | undefined;
|
|
158
|
+
directories?: readonly string[] | undefined;
|
|
124
159
|
}
|
|
125
|
-
interface
|
|
126
|
-
|
|
127
|
-
|
|
160
|
+
interface HostRender {
|
|
161
|
+
written: string[];
|
|
162
|
+
removed: string[];
|
|
128
163
|
}
|
|
129
|
-
type ContextFileResult = 'written' | 'updated' | 'unchanged' | 'no-markers';
|
|
130
164
|
interface Host {
|
|
131
165
|
id: string;
|
|
132
166
|
displayName: string;
|
|
@@ -147,7 +181,7 @@ interface Host {
|
|
|
147
181
|
forkCommand(parent: Session, options?: LaunchOptions): ResumeCommand;
|
|
148
182
|
renameInstruction(name: string): string;
|
|
149
183
|
transcriptFiles(session: Session, env?: NodeJS.ProcessEnv): string[];
|
|
150
|
-
|
|
184
|
+
renderWorkspace(group: Group): HostRender;
|
|
151
185
|
}
|
|
152
186
|
declare const DEFAULT_HOST = "claude-code";
|
|
153
187
|
declare function allHosts(): Host[];
|
|
@@ -156,6 +190,7 @@ type SessionKind = 'active' | 'temp';
|
|
|
156
190
|
type SessionStatus = 'running' | 'idle' | 'archived';
|
|
157
191
|
interface Session {
|
|
158
192
|
id: string;
|
|
193
|
+
groupName: string | null;
|
|
159
194
|
name: string | null;
|
|
160
195
|
purpose: string | null;
|
|
161
196
|
kind: SessionKind;
|
|
@@ -367,10 +402,11 @@ interface CarnetOptions {
|
|
|
367
402
|
now?: () => Date;
|
|
368
403
|
}
|
|
369
404
|
declare class Carnet {
|
|
370
|
-
readonly group: Group;
|
|
405
|
+
readonly group: Group | null;
|
|
371
406
|
readonly db: DatabaseSync;
|
|
372
407
|
private readonly ctx;
|
|
373
|
-
constructor(
|
|
408
|
+
constructor(db: DatabaseSync, group: Group | null, options?: CarnetOptions);
|
|
409
|
+
requireGroup(): Group;
|
|
374
410
|
readonly sessions: {
|
|
375
411
|
get: (id: string) => Session | undefined;
|
|
376
412
|
find: (reference: string) => Session;
|
|
@@ -443,10 +479,19 @@ declare class Carnet {
|
|
|
443
479
|
};
|
|
444
480
|
close(): void;
|
|
445
481
|
}
|
|
446
|
-
interface OpenCarnetOptions extends
|
|
447
|
-
|
|
482
|
+
interface OpenCarnetOptions extends CarnetOptions {
|
|
483
|
+
group?: string | undefined;
|
|
484
|
+
sessionId?: string | undefined;
|
|
485
|
+
cwd?: string | undefined;
|
|
486
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
487
|
+
dbPath?: string | undefined;
|
|
448
488
|
}
|
|
449
489
|
declare function openCarnet(options?: OpenCarnetOptions): Carnet;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
490
|
+
interface ResolvedCarnet {
|
|
491
|
+
carnet: Carnet;
|
|
492
|
+
resolution: GroupResolution;
|
|
493
|
+
}
|
|
494
|
+
declare function openResolvedCarnet(options?: OpenCarnetOptions): ResolvedCarnet;
|
|
495
|
+
declare function openGroupCarnet(group: Group | null, options?: OpenCarnetOptions): Carnet;
|
|
496
|
+
export { CarnetEvent as $, groupHosts as $t, AddNoteResult as A, GroupOrigin as At, NoteActivityKind as B, AGENTS_FILE as Bt, memoryMaxCharacters as C, HostSessionPayload as Ct, buildStatusView as D, ResumeCommand as Dt, StatusView as E, LaunchOptions as Et, ListNotesOptions as F, isInside as Ft, WeightedNote as G, GroupFile as Gt, NoteDetail as H, DropGroupOptions as Ht, NOTE_KINDS as I, repoNameFor as It, localDay as J, addGroupRepo as Jt, groupRepoNames as K, GroupRepo as Kt, NOTE_TEXT_LIMIT as L, repoPathFor as Lt, DEFAULT_HALF_LIFE_DAYS as M, ResolveGroupOptions as Mt, DUPLICATE_SIMILARITY as N, ambiguousGroupContext as Nt, formatClock as O, allHosts as Ot, DropNoteInput as P, groupLabel as Pt, AgentEventType as Q, groupExists as Qt, Note as R, requireGroup as Rt, MemoryOptions as S, isUserActionStatus as Sn, HostSessionEndPayload as St, StatusLine as T, HostToolPayload as Tt, NoteKind as U, GROUP_FILE as Ut, NoteCitation as V, CreateGroupOptions as Vt, STALE_AFTER_ACTIVE_DAYS as W, Group as Wt, sessionNoteActivity as X, dropGroup as Xt, memoryHalfLife as Y, createGroup as Yt, similarity as Z, expandHome as Zt, renderNotesSummary as _, MAIN_WORKING_EMOJI as _n, shortId as _t, openCarnet as a, sourceInstructions as an, isEventType as at, renderTableLine as b, UserActionStatus as bn, HostPromptPayload as bt, MAIN_WORKING_SUFFIX as c, ListAgentsOptions as cn, MergeResult as ct, NotesMode as d, StartAgentInput as dn, HookSessionPayload as dt, isGroupName as en, EVENT_TYPES as et, RenderOptions as f, UpdateAgentInput as fn, ListSessionsOptions as ft, renderNotes as g, LEGEND as gn, SessionStatus as gt, renderNoteLine as h, EMOJI as hn, SessionKind as ht, ResolvedCarnet as i, renameGroup as in, SessionEventType as it, CiteNoteInput as j, GroupResolution as jt, AddNoteInput as k, hostById as kt, NOTES_FOLD_LINES as l, PUBLISH_FALLBACK_MILLISECONDS as ln, CreateSessionInput as lt, renderAgentLine as m, AgentStatus as mn, Session as mt, CarnetOptions as n, loadGroup as nn, LogEventInput as nt, openGroupCarnet as o, Agent as on, SetTableInput as ot, SIMILAR_PREFIX as p, AGENT_STATUSES as pn, MINIMUM_ID_PREFIX as pt, isNoteKind as q, INSTRUCTIONS_FILE as qt, OpenCarnetOptions as r, removeGroupRepo as rn, SESSION_EVENT_TYPES as rt, openResolvedCarnet as s, FinishAgentInput as sn, TableItem as st, Carnet as t, listGroups as tn, EventType as tt, NOTES_HEADER as u, REPORTING_NOTE as un, HookEnv as ut, renderSections as v, OPEN_AGENT_STATUSES as vn, DEFAULT_HOST as vt, renderMemory as w, HostSubagentPayload as wt, MEMORY_MAX_CHARACTERS as x, isAgentStatus as xn, HostRender as xt, renderStatus as y, USER_ACTION_STATUSES as yn, Host as yt, NoteActivity as z, resolveGroup as zt };
|
|
497
|
+
//# sourceMappingURL=carnet-DptiZiz8.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carnet-DptiZiz8.d.mts","names":["_$__merge_ts0.MergeResult","_$__agents_ts0.Agent","_$__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/status/model.ts","../src/agents.ts","../src/group/group.ts","../src/group/locate.ts","../src/hosts/host.ts","../src/sessions.ts","../src/merge.ts","../src/table.ts","../src/events.ts","../src/notes.ts","../src/status/view.ts","../src/memory.ts","../src/status/render.ts","../src/carnet.ts"],"mappings":";UAEiB;EACf,IAAI;EACJ,WAAW;EAEX;;cCNW;KAYD,sBAAsB;cAErB;KAUD,2BAA2B;cAE1B,OAAO,OAAO,QAAQ;cAWtB;cAEA;iBAGG,cAAc,iBAAiB,SAAS;iBAIxC,mBAAmB,iBAAiB,SAAS;cAIhD;UC5CI;EACf;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;EACA,eAAe;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA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GtB;;UAKe,0BAA0B;EACzC;EACA;EACA;EACA,MAAM,OAAO;EACb;;iBASc,WAAW,UAAS,oBAAyB;UAI5C;EACf,QAAQ;EACR,YAAY;;iBAGE,mBAAmB,UAAS,oBAAyB;iBAWrD,gBAAgB,OAAO,cAAc,UAAS,oBAAyB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as CarnetEvent, $t as groupHosts, A as AddNoteResult, At as GroupOrigin, B as NoteActivityKind, Bt as AGENTS_FILE, C as memoryMaxCharacters, Ct as HostSessionPayload, D as buildStatusView, Dt as ResumeCommand, E as StatusView, Et as LaunchOptions, F as ListNotesOptions, Ft as isInside, G as WeightedNote, Gt as GroupFile, H as NoteDetail, Ht as DropGroupOptions, I as NOTE_KINDS, It as repoNameFor, J as localDay, Jt as addGroupRepo, K as groupRepoNames, Kt as GroupRepo, L as NOTE_TEXT_LIMIT, Lt as repoPathFor, M as DEFAULT_HALF_LIFE_DAYS, Mt as ResolveGroupOptions, N as DUPLICATE_SIMILARITY, Nt as ambiguousGroupContext, O as formatClock, Ot as allHosts, P as DropNoteInput, Pt as groupLabel, Q as AgentEventType, Qt as groupExists, R as Note, Rt as requireGroup, S as MemoryOptions, Sn as isUserActionStatus, St as HostSessionEndPayload, T as StatusLine, Tt as HostToolPayload, U as NoteKind, Ut as GROUP_FILE, V as NoteCitation, Vt as CreateGroupOptions, W as STALE_AFTER_ACTIVE_DAYS, Wt as Group, X as sessionNoteActivity, Xt as dropGroup, Y as memoryHalfLife, Yt as createGroup, Z as similarity, Zt as expandHome, _ as renderNotesSummary, _n as MAIN_WORKING_EMOJI, _t as shortId, a as openCarnet, an as sourceInstructions, at as isEventType, b as renderTableLine, bn as UserActionStatus, bt as HostPromptPayload, c as MAIN_WORKING_SUFFIX, cn as ListAgentsOptions, ct as MergeResult, d as NotesMode, dn as StartAgentInput, dt as HookSessionPayload, en as isGroupName, et as EVENT_TYPES, f as RenderOptions, fn as UpdateAgentInput, ft as ListSessionsOptions, g as renderNotes, gn as LEGEND, gt as SessionStatus, h as renderNoteLine, hn as EMOJI, ht as SessionKind, i as ResolvedCarnet, in as renameGroup, it as SessionEventType, j as CiteNoteInput, jt as GroupResolution, k as AddNoteInput, kt as hostById, l as NOTES_FOLD_LINES, ln as PUBLISH_FALLBACK_MILLISECONDS, lt as CreateSessionInput, m as renderAgentLine, mn as AgentStatus, mt as Session, n as CarnetOptions, nn as loadGroup, nt as LogEventInput, o as openGroupCarnet, on as Agent, ot as SetTableInput, p as SIMILAR_PREFIX, pn as AGENT_STATUSES, pt as MINIMUM_ID_PREFIX, q as isNoteKind, qt as INSTRUCTIONS_FILE, r as OpenCarnetOptions, rn as removeGroupRepo, rt as SESSION_EVENT_TYPES, s as openResolvedCarnet, sn as FinishAgentInput, st as TableItem, t as Carnet, tn as listGroups, tt as EventType, u as NOTES_HEADER, un as REPORTING_NOTE, ut as HookEnv, v as renderSections, vn as OPEN_AGENT_STATUSES, vt as DEFAULT_HOST, w as renderMemory, wt as HostSubagentPayload, x as MEMORY_MAX_CHARACTERS, xn as isAgentStatus, xt as HostRender, y as renderStatus, yn as USER_ACTION_STATUSES, yt as Host, z as NoteActivity, zt as resolveGroup } from "./carnet-DptiZiz8.mjs";
|
|
2
2
|
import { DatabaseSync } from "node:sqlite";
|
|
3
3
|
interface MoveOptions {
|
|
4
4
|
merge?: boolean | undefined;
|
|
@@ -11,36 +11,39 @@ interface MoveResult {
|
|
|
11
11
|
skippedAgents: string[];
|
|
12
12
|
movedEvents: number;
|
|
13
13
|
movedTable: boolean;
|
|
14
|
-
|
|
14
|
+
keptNotes: number;
|
|
15
15
|
}
|
|
16
|
-
export declare function moveSession(
|
|
16
|
+
export declare function moveSession(carnet: Carnet, sessionId: string, targetGroup: string, options?: MoveOptions): MoveResult;
|
|
17
|
+
export declare function sessionGroupName(db: DatabaseSync, sessionId: string): string | null | undefined;
|
|
18
|
+
export declare function renameGroupRows(db: DatabaseSync, from: string, to: string): void;
|
|
19
|
+
export declare function archiveGroupSessions(db: DatabaseSync, name: string, at: string): number;
|
|
20
|
+
export declare function deleteGroupNotes(db: DatabaseSync, name: string): number;
|
|
21
|
+
export declare function groupSessionCounts(db: DatabaseSync): Map<string, number>;
|
|
17
22
|
export declare const MEMORY_DB = ":memory:";
|
|
18
23
|
export declare function openDatabase(path: string): DatabaseSync;
|
|
19
24
|
export declare const migrations: readonly string[];
|
|
20
25
|
export declare function schemaVersion(db: DatabaseSync): number;
|
|
21
26
|
export declare function migrate(db: DatabaseSync): void;
|
|
22
|
-
type CarnetErrorCode = 'NO_GROUP' | 'GROUP_AMBIGUOUS' | 'GROUP_EXISTS' | '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' | 'AGENT_EXISTS' | 'AGENT_NOT_FOUND' | 'INVALID_STATUS' | 'INVALID_EVENT_TYPE' | 'COMMIT_REQUIRED' | 'TABLE_STATUS_WITH_MAIN_WORKING';
|
|
27
|
+
type CarnetErrorCode = 'NO_GROUP' | 'GROUP_AMBIGUOUS' | 'GROUP_EXISTS' | 'GROUP_NOT_FOUND' | 'GROUP_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' | 'WORKSPACE_FILE_CONFLICT' | 'GROUP_INSTRUCTIONS_CONFLICT' | 'AGENT_EXISTS' | 'AGENT_NOT_FOUND' | 'INVALID_STATUS' | 'INVALID_EVENT_TYPE' | 'COMMIT_REQUIRED' | 'TABLE_STATUS_WITH_MAIN_WORKING';
|
|
23
28
|
export declare class CarnetError extends Error {
|
|
24
29
|
readonly code: CarnetErrorCode;
|
|
25
30
|
constructor(code: CarnetErrorCode, message: string);
|
|
26
31
|
}
|
|
27
|
-
interface
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
export declare function initGroup(directory: string, options?: InitOptions): Group;
|
|
34
|
-
export declare function addGroupRepo(root: string, repo: string): Group;
|
|
35
|
-
export declare function removeGroupRepo(root: string, repo: string): Group;
|
|
36
|
-
interface GroupReference {
|
|
37
|
-
name: string;
|
|
38
|
-
path: string;
|
|
32
|
+
interface RucherPaths {
|
|
33
|
+
config: string;
|
|
34
|
+
data: string;
|
|
35
|
+
state: string;
|
|
36
|
+
run: string;
|
|
39
37
|
}
|
|
40
|
-
export declare function
|
|
41
|
-
export declare function
|
|
42
|
-
export declare function
|
|
43
|
-
export declare function
|
|
38
|
+
export declare function rucherPaths(env?: NodeJS.ProcessEnv): RucherPaths;
|
|
39
|
+
export declare function databasePath(env?: NodeJS.ProcessEnv): string;
|
|
40
|
+
export declare function groupsDirectory(env?: NodeJS.ProcessEnv): string;
|
|
41
|
+
export declare function groupSource(name: string, env?: NodeJS.ProcessEnv): string;
|
|
42
|
+
export declare function defaultWorkspace(name: string, env?: NodeJS.ProcessEnv): string;
|
|
43
|
+
export declare function promptsDirectory(env?: NodeJS.ProcessEnv): string;
|
|
44
|
+
export declare function corePromptPath(env?: NodeJS.ProcessEnv): string;
|
|
45
|
+
export declare function reportsDirectory(group: Group): string;
|
|
46
|
+
export declare function reportPath(group: Group, agentName: string): string;
|
|
44
47
|
export declare function handleSessionEnd(carnet: Carnet, payload: HostSessionEndPayload): Session | undefined;
|
|
45
48
|
interface SessionStartResult {
|
|
46
49
|
session: Session;
|
|
@@ -50,7 +53,6 @@ interface SessionStartResult {
|
|
|
50
53
|
}
|
|
51
54
|
export declare function handleSessionStart(carnet: Carnet, payload: HookSessionPayload, env: HookEnv): SessionStartResult;
|
|
52
55
|
export declare const PROMPT_FILE = "prompt.md";
|
|
53
|
-
export declare const PROMPTS_DIRECTORY = "prompts";
|
|
54
56
|
interface PromptSession {
|
|
55
57
|
id: string;
|
|
56
58
|
name: string | null;
|
|
@@ -65,26 +67,21 @@ interface AppendPromptFile {
|
|
|
65
67
|
version: string;
|
|
66
68
|
}
|
|
67
69
|
export declare function baseRules(env?: NodeJS.ProcessEnv): string;
|
|
68
|
-
export declare function groupRules(group: Group): string | undefined;
|
|
69
|
-
export declare function rulesText(group: Group, env?: NodeJS.ProcessEnv): string;
|
|
70
|
-
export declare function rulesVersion(group: Group, env?: NodeJS.ProcessEnv): string;
|
|
71
|
-
export declare function assemblePrompt(group: Group, session: PromptSession, env?: NodeJS.ProcessEnv): AssembledPrompt;
|
|
72
|
-
export declare function appendPromptFile(group: Group, session: PromptSession, env?: NodeJS.ProcessEnv): AppendPromptFile;
|
|
73
|
-
export declare function compactReminder(group: Group, env?: NodeJS.ProcessEnv): string;
|
|
74
|
-
export declare function outsideRucherContext(group: Group, env?: NodeJS.ProcessEnv): string;
|
|
70
|
+
export declare function groupRules(group: Group | null): string | undefined;
|
|
71
|
+
export declare function rulesText(group: Group | null, env?: NodeJS.ProcessEnv): string;
|
|
72
|
+
export declare function rulesVersion(group: Group | null, env?: NodeJS.ProcessEnv): string;
|
|
73
|
+
export declare function assemblePrompt(group: Group | null, session: PromptSession, env?: NodeJS.ProcessEnv): AssembledPrompt;
|
|
74
|
+
export declare function appendPromptFile(group: Group | null, session: PromptSession, env?: NodeJS.ProcessEnv): AppendPromptFile;
|
|
75
|
+
export declare function compactReminder(group: Group | null, env?: NodeJS.ProcessEnv): string;
|
|
76
|
+
export declare function outsideRucherContext(group: Group | null, env?: NodeJS.ProcessEnv): string;
|
|
75
77
|
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)";
|
|
76
78
|
export declare const RULES_UPDATED_NOTICE = "rucher: rules updated, will apply after the next compaction or in a new session";
|
|
77
79
|
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, call agent_update at meaningful progress and agent_done as your last tool action, then reply with one line.";
|
|
78
80
|
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 forks, applies, tests and commits. Agents propose, they never push.\n- Status lives in Carnet: agent statuses, the \"On the table\" 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 a fork finishes, say only \"<name> finished, report ready\". Never summarise, quote or act on its report or final message until the human asks for that fork's report, even when answering about something else.\n- Forks never commit, push, stash or record notes. A fork 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 dispatch, apply or review forks, load the rucher skill: it holds the full workflow.";
|
|
79
81
|
export declare function handleUserPromptSubmit(carnet: Carnet, host: Host, payload: HostPromptPayload): Session;
|
|
80
82
|
export declare function handleToolUse(carnet: Carnet, payload: HostToolPayload, env: HookEnv): string | undefined;
|
|
81
|
-
export declare const REPOS_START = "<!-- rucher:repos start -->";
|
|
82
|
-
export declare const REPOS_END = "<!-- rucher:repos end -->";
|
|
83
83
|
export declare function transcriptTitle(path: string): string | undefined;
|
|
84
|
-
export declare function
|
|
85
|
-
export declare function replaceReposBlock(content: string, group: Group): string | null;
|
|
86
|
-
export declare function groupInstructions(group: Group): string;
|
|
87
|
-
export declare function groupSettings(group: Group): string;
|
|
84
|
+
export declare function groupSettings(group: Group): Record<string, unknown>;
|
|
88
85
|
export declare const claudeCode: Host;
|
|
89
86
|
export declare const DEFAULT_PURGE_DAYS = 3;
|
|
90
87
|
export declare function purgeDays(value: string | undefined): number;
|
|
@@ -112,5 +109,21 @@ interface StepAgentInput {
|
|
|
112
109
|
next?: OpenAgentStatus | undefined;
|
|
113
110
|
}
|
|
114
111
|
export declare function stepAgent(carnet: Carnet, session: string, input: StepAgentInput): string;
|
|
115
|
-
|
|
112
|
+
interface RenderResult {
|
|
113
|
+
workspace: string;
|
|
114
|
+
written: string[];
|
|
115
|
+
removed: string[];
|
|
116
|
+
}
|
|
117
|
+
interface WorkspaceRenderOptions {
|
|
118
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
119
|
+
host?: string | undefined;
|
|
120
|
+
}
|
|
121
|
+
export declare function renderWorkspace(group: Group, options?: WorkspaceRenderOptions): RenderResult;
|
|
122
|
+
export declare const GENERATED_MARKER = "generated by rucher, do not edit";
|
|
123
|
+
export declare const MARKDOWN_MARKER = "<!-- generated by rucher, do not edit -->\n";
|
|
124
|
+
export declare function markdownCopy(content: string): string;
|
|
125
|
+
export declare function removeStaleCopies(directory: string, keep: ReadonlySet<string>): string[];
|
|
126
|
+
export declare function writeGenerated(path: string, content: string): boolean;
|
|
127
|
+
export declare function mergeSettings(base: Record<string, unknown>, extra: Record<string, unknown>): Record<string, unknown>;
|
|
128
|
+
export { AGENTS_FILE, AGENT_STATUSES, type AddNoteInput, type AddNoteResult, type Agent, type AgentEventType, type AgentStatus, type AgentStep, type AppendPromptFile, type AssembledPrompt, Carnet, type CarnetErrorCode, type CarnetEvent, type CarnetOptions, type CiteNoteInput, type CreateGroupOptions, type CreateSessionInput, DEFAULT_HALF_LIFE_DAYS, DEFAULT_HOST, DUPLICATE_SIMILARITY, type DropGroupOptions, type DropNoteInput, EMOJI, EVENT_TYPES, type EventType, type FinishAgentInput, GROUP_FILE, type Group, type GroupFile, type GroupOrigin, type GroupRepo, type GroupResolution, type HookEnv, type HookSessionPayload, type Host, type HostPromptPayload, type HostRender, type HostSessionEndPayload, type HostSessionPayload, type HostSubagentPayload, type HostToolPayload, INSTRUCTIONS_FILE, LEGEND, type LaunchOptions, type ListAgentsOptions, type ListNotesOptions, type ListSessionsOptions, type LogEventInput, 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 ResolveGroupOptions, type ResolvedCarnet, type ResumeCommand, type ResumeContextOptions, type RucherPaths, 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 StepAgentInput, type TableItem, USER_ACTION_STATUSES, type UpdateAgentInput, type UserActionStatus, type WeightedNote, type WorkspaceRenderOptions, addGroupRepo, allHosts, ambiguousGroupContext, buildStatusView, createGroup, dropGroup, expandHome, formatClock, groupExists, groupHosts, groupLabel, groupRepoNames, hostById, isAgentStatus, isEventType, isGroupName, isInside, isNoteKind, isUserActionStatus, listGroups, loadGroup, localDay, memoryHalfLife, memoryMaxCharacters, openCarnet, openGroupCarnet, openResolvedCarnet, removeGroupRepo, renameGroup, renderAgentLine, renderMemory, renderNoteLine, renderNotes, renderNotesSummary, renderSections, renderStatus, renderTableLine, repoNameFor, repoPathFor, requireGroup, resolveGroup, sessionNoteActivity, shortId, similarity, sourceInstructions };
|
|
116
129
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/move.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/move.ts","../src/group-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/hosts/claude-code.ts","../src/purge.ts","../src/resume.ts","../src/subagents.ts","../src/status/note.ts","../src/steps.ts","../src/render.ts","../src/workspace-files.ts"],"mappings":";;UAIiB;EACf;EACA;;UAGe;EACf,SAAS;EACT,MAAM;EACN;EACA;EACA;EACA;EACA;;wBAwBc,YACd,QAAQ,QACR,mBACA,qBACA,UAAS,cACR;wBC9Ba,iBAAiB,IAAI,cAAc;wBAOnC,gBAAgB,IAAI,cAAc,cAAc;wBAQhD,qBAAqB,IAAI,cAAc,cAAc;wBAiBrD,iBAAiB,IAAI,cAAc;wBAInC,mBAAmB,IAAI,eAAe;qBChDzC;wBAEG,aAAa,eAAe;qBCH/B;wBAoOG,cAAc,IAAI;wBASlB,QAAQ,IAAI;KC/OhB;qBA+BC,oBAAoB;WAEpB,MAAM;EADjB,YACW,MAAM,iBACf;;UC9Ba;EACf;EACA;EACA;EACA;;wBAQc,YAAY,MAAK,OAAO,aAA2B;wBAuBnD,aAAa,MAAM,OAAO;wBAI1B,gBAAgB,MAAM,OAAO;wBAI7B,YAAY,cAAc,MAAM,OAAO;wBAIvC,iBAAiB,cAAc,MAAM,OAAO;wBAI5C,iBAAiB,MAAM,OAAO;wBAI9B,eAAe,MAAM,OAAO;wBAI5B,iBAAiB,OAAO;wBAIxB,WAAW,OAAO,OAAO;wBC/DzB,iBACd,QAAQ,QACR,SAAS,wBACR;UCSc;EACf,SAAS;EACT;EACA;EACA;;wBAsCc,mBACd,QAAQ,QACR,SAAS,oBACT,KAAK,UACJ;qBCtDU;UAE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