@rucher/carnet 0.2.0-beta.3 → 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/dist/{carnet-Du3xigg-.d.mts → carnet-DptiZiz8.d.mts} +4 -2
- package/dist/carnet-DptiZiz8.d.mts.map +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/mcp.d.mts +1 -1
- package/dist/mcp.mjs +1 -1
- package/dist/{steps-U_Ge5YFh.mjs → steps-BeTGxQk4.mjs} +180 -150
- package/dist/steps-BeTGxQk4.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/carnet-Du3xigg-.d.mts.map +0 -1
- package/dist/steps-U_Ge5YFh.mjs.map +0 -1
|
@@ -74,6 +74,7 @@ interface GroupFile {
|
|
|
74
74
|
}
|
|
75
75
|
declare const GROUP_FILE = "group.json";
|
|
76
76
|
declare const INSTRUCTIONS_FILE = "CLAUDE.md";
|
|
77
|
+
declare const AGENTS_FILE = "AGENTS.md";
|
|
77
78
|
declare function isGroupName(name: string): boolean;
|
|
78
79
|
declare function expandHome(path: string, env?: NodeJS.ProcessEnv): string;
|
|
79
80
|
declare function groupExists(name: string, env?: NodeJS.ProcessEnv): boolean;
|
|
@@ -85,6 +86,7 @@ interface CreateGroupOptions {
|
|
|
85
86
|
env?: NodeJS.ProcessEnv | undefined;
|
|
86
87
|
}
|
|
87
88
|
declare function createGroup(name: string, options?: CreateGroupOptions): Group;
|
|
89
|
+
declare function sourceInstructions(group: Group): string;
|
|
88
90
|
declare function addGroupRepo(name: string, repo: string, env?: NodeJS.ProcessEnv): Group;
|
|
89
91
|
declare function removeGroupRepo(name: string, repo: string, env?: NodeJS.ProcessEnv): Group;
|
|
90
92
|
declare function renameGroup(from: string, to: string, env?: NodeJS.ProcessEnv): Group;
|
|
@@ -491,5 +493,5 @@ interface ResolvedCarnet {
|
|
|
491
493
|
}
|
|
492
494
|
declare function openResolvedCarnet(options?: OpenCarnetOptions): ResolvedCarnet;
|
|
493
495
|
declare function openGroupCarnet(group: Group | null, options?: OpenCarnetOptions): Carnet;
|
|
494
|
-
export { CarnetEvent as $,
|
|
495
|
-
//# sourceMappingURL=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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F;IAC1B,OAAI,YAAa,OAAS,kBAAAG;IAC1B;IACA,WAAQ,oBAF+BC;;WAKhC;IACP,UAAO,SAAY,SAAO,UAAY;IAEtC,YAAS,SAAY,SAAO,UAAY;IAExC,UAAO,SAAY,SAAO,cAAc,UAAY;IAEpD,YAAS,cAAe;;WAGjB;IACP,OAAI,SAAY,YAAAC;IAChB,SAAM,SAAY,SAAO,UAAY;IAErC,WAAQ,SAAY;;EAGtB;;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 CarnetEvent, $t 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;
|
|
@@ -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_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' | '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';
|
|
28
28
|
export declare class CarnetError extends Error {
|
|
29
29
|
readonly code: CarnetErrorCode;
|
|
30
30
|
constructor(code: CarnetErrorCode, message: string);
|
|
@@ -125,5 +125,5 @@ export declare function markdownCopy(content: string): string;
|
|
|
125
125
|
export declare function removeStaleCopies(directory: string, keep: ReadonlySet<string>): string[];
|
|
126
126
|
export declare function writeGenerated(path: string, content: string): boolean;
|
|
127
127
|
export declare function mergeSettings(base: Record<string, unknown>, extra: Record<string, unknown>): Record<string, unknown>;
|
|
128
|
-
export { 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 };
|
|
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 };
|
|
129
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/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;
|
|
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;;UC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,UAAU,QAAQ,QAAQ,iBAAiB,OAAO;UClCjD;EACf;EACA;EACA;;UAGe;EACf,MAAM,OAAO;EACb;;wBAGc,gBAAgB,OAAO,OAAO,UAAS,yBAA8B;qBCZxE;qBAkBA;wBAEG,aAAa;wBAWb,kBAAkB,mBAAmB,MAAM;wBAa3C,eAAe,cAAc;wBAiB7B,cACd,MAAM,yBACN,OAAO,0BACN"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as renameGroupRows, $t as openDatabase, A as memoryMaxCharacters, At as INSTRUCTIONS_FILE, B as memoryHalfLife, Bt as removeGroupRepo, C as renderNotesSummary, Ct as rulesText, D as DEFAULT_PURGE_DAYS, Dt as shortId, E as renderTableLine, Et as MINIMUM_ID_PREFIX, F as NOTE_TEXT_LIMIT, Ft as groupExists, G as isInside, Gt as defaultWorkspace, H as similarity, Ht as sourceInstructions, I as STALE_AFTER_ACTIVE_DAYS, It as groupHosts, J as requireGroup, Jt as promptsDirectory, K as repoNameFor, Kt as groupSource, L as groupRepoNames, Lt as isGroupName, M as DEFAULT_HALF_LIFE_DAYS, Mt as createGroup, N as DUPLICATE_SIMILARITY, Nt as dropGroup, O as purgeDays, Ot as AGENTS_FILE, P as NOTE_KINDS, Pt as expandHome, Q as groupSessionCounts, Qt as MEMORY_DB, R as isNoteKind, Rt as listGroups, S as renderNotes, St as outsideRucherContext, T as renderStatus, Tt as CORE_RULES, U as ambiguousGroupContext, Ut as corePromptPath, V as sessionNoteActivity, Vt as renameGroup, W as groupLabel, Wt as databasePath, X as archiveGroupSessions, Xt as reportsDirectory, Y as resolveGroup, Yt as reportPath, Z as deleteGroupNotes, Zt as rucherPaths, _ as NOTES_FOLD_LINES, _n as isEventType, _t as appendPromptFile, a as formatEventLine, an as NOTE_MAX, at as groupSettings, b as renderAgentLine, bt as compactReminder, c as Carnet, cn as EMOJI, ct as MARKDOWN_MARKER, d as openResolvedCarnet, dt as removeStaleCopies, en as migrate, et as sessionGroupName, f as PAIRING_WINDOW_MILLISECONDS, fn as USER_ACTION_STATUSES, ft as writeGenerated, g as MAIN_WORKING_SUFFIX, gn as SESSION_EVENT_TYPES, gt as SUBAGENT_RULES, h as formatClock, hn as EVENT_TYPES, ht as RULES_UPDATED_NOTICE, i as RESUME_MAX_CHARACTERS, in as REPORTING_NOTE, it as claudeCode, j as renderMemory, jt as addGroupRepo, k as MEMORY_MAX_CHARACTERS, kt as GROUP_FILE, l as openCarnet, ln as LEGEND, lt as markdownCopy, m as buildStatusView, mn as isUserActionStatus, mt as PROMPT_FILE, n as stepAgent, nn as schemaVersion, nt as allHosts, o as resumeContext, on as sanitizeNote, ot as transcriptTitle, p as STOPPED_NOTE, pn as isAgentStatus, pt as OUTSIDE_RUCHER_NOTICE, q as repoPathFor, qt as groupsDirectory, r as RESUME_EVENTS, rn as PUBLISH_FALLBACK_MILLISECONDS, rt as hostById, s as sessionLabel, sn as AGENT_STATUSES, st as GENERATED_MARKER, t as AGENT_STEPS, tn as migrations, tt as DEFAULT_HOST, u as openGroupCarnet, un as MAIN_WORKING_EMOJI, ut as mergeSettings, v as NOTES_HEADER, vn as CarnetError, vt as assemblePrompt, w as renderSections, wt as rulesVersion, x as renderNoteLine, xt as groupRules, y as SIMILAR_PREFIX, yt as baseRules, z as localDay, zt as loadGroup } from "./steps-BeTGxQk4.mjs";
|
|
2
2
|
import { mkdirSync } from "node:fs";
|
|
3
3
|
// src/move.ts
|
|
4
4
|
function count(carnet, sql, ...parameters) {
|
|
@@ -124,6 +124,6 @@ function renderWorkspace(group, options = {}) {
|
|
|
124
124
|
}
|
|
125
125
|
return result;
|
|
126
126
|
}
|
|
127
|
-
export { AGENT_STATUSES, AGENT_STEPS, CORE_RULES, Carnet, CarnetError, DEFAULT_HALF_LIFE_DAYS, DEFAULT_HOST, DEFAULT_PURGE_DAYS, DUPLICATE_SIMILARITY, EMOJI, EVENT_TYPES, GENERATED_MARKER, GROUP_FILE, INSTRUCTIONS_FILE, LEGEND, MAIN_WORKING_EMOJI, MAIN_WORKING_SUFFIX, MARKDOWN_MARKER, MEMORY_DB, MEMORY_MAX_CHARACTERS, MINIMUM_ID_PREFIX, NOTES_FOLD_LINES, NOTES_HEADER, NOTE_KINDS, NOTE_MAX, NOTE_TEXT_LIMIT, OUTSIDE_RUCHER_NOTICE, PAIRING_WINDOW_MILLISECONDS, PROMPT_FILE, PUBLISH_FALLBACK_MILLISECONDS, REPORTING_NOTE, RESUME_EVENTS, RESUME_MAX_CHARACTERS, RULES_UPDATED_NOTICE, SESSION_EVENT_TYPES, SIMILAR_PREFIX, STALE_AFTER_ACTIVE_DAYS, STOPPED_NOTE, SUBAGENT_RULES, USER_ACTION_STATUSES, addGroupRepo, allHosts, ambiguousGroupContext, appendPromptFile, archiveGroupSessions, assemblePrompt, baseRules, buildStatusView, claudeCode, compactReminder, corePromptPath, createGroup, databasePath, defaultWorkspace, deleteGroupNotes, dropGroup, expandHome, formatClock, formatEventLine, groupExists, groupHosts, groupLabel, groupRepoNames, groupRules, groupSessionCounts, groupSettings, groupSource, groupsDirectory, handleSessionEnd, handleSessionStart, handleToolUse, handleUserPromptSubmit, hostById, isAgentStatus, isEventType, isGroupName, isInside, isNoteKind, isUserActionStatus, listGroups, loadGroup, localDay, markdownCopy, memoryHalfLife, memoryMaxCharacters, mergeSettings, migrate, migrations, moveSession, openCarnet, openDatabase, openGroupCarnet, openResolvedCarnet, outsideRucherContext, promptsDirectory, purgeDays, removeGroupRepo, removeStaleCopies, renameGroup, renameGroupRows, renderAgentLine, renderMemory, renderNoteLine, renderNotes, renderNotesSummary, renderSections, renderStatus, renderTableLine, renderWorkspace, repoNameFor, repoPathFor, reportPath, reportsDirectory, requireGroup, resolveGroup, resumeContext, rucherPaths, rulesText, rulesVersion, sanitizeNote, schemaVersion, sessionGroupName, sessionLabel, sessionNoteActivity, shortId, similarity, stepAgent, transcriptTitle, writeGenerated };
|
|
127
|
+
export { AGENTS_FILE, AGENT_STATUSES, AGENT_STEPS, CORE_RULES, Carnet, CarnetError, DEFAULT_HALF_LIFE_DAYS, DEFAULT_HOST, DEFAULT_PURGE_DAYS, DUPLICATE_SIMILARITY, EMOJI, EVENT_TYPES, GENERATED_MARKER, GROUP_FILE, INSTRUCTIONS_FILE, LEGEND, MAIN_WORKING_EMOJI, MAIN_WORKING_SUFFIX, MARKDOWN_MARKER, MEMORY_DB, MEMORY_MAX_CHARACTERS, MINIMUM_ID_PREFIX, NOTES_FOLD_LINES, NOTES_HEADER, NOTE_KINDS, NOTE_MAX, NOTE_TEXT_LIMIT, OUTSIDE_RUCHER_NOTICE, PAIRING_WINDOW_MILLISECONDS, PROMPT_FILE, PUBLISH_FALLBACK_MILLISECONDS, REPORTING_NOTE, RESUME_EVENTS, RESUME_MAX_CHARACTERS, RULES_UPDATED_NOTICE, SESSION_EVENT_TYPES, SIMILAR_PREFIX, STALE_AFTER_ACTIVE_DAYS, STOPPED_NOTE, SUBAGENT_RULES, USER_ACTION_STATUSES, addGroupRepo, allHosts, ambiguousGroupContext, appendPromptFile, archiveGroupSessions, assemblePrompt, baseRules, buildStatusView, claudeCode, compactReminder, corePromptPath, createGroup, databasePath, defaultWorkspace, deleteGroupNotes, dropGroup, expandHome, formatClock, formatEventLine, groupExists, groupHosts, groupLabel, groupRepoNames, groupRules, groupSessionCounts, groupSettings, groupSource, groupsDirectory, handleSessionEnd, handleSessionStart, handleToolUse, handleUserPromptSubmit, hostById, isAgentStatus, isEventType, isGroupName, isInside, isNoteKind, isUserActionStatus, listGroups, loadGroup, localDay, markdownCopy, memoryHalfLife, memoryMaxCharacters, mergeSettings, migrate, migrations, moveSession, openCarnet, openDatabase, openGroupCarnet, openResolvedCarnet, outsideRucherContext, promptsDirectory, purgeDays, removeGroupRepo, removeStaleCopies, renameGroup, renameGroupRows, renderAgentLine, renderMemory, renderNoteLine, renderNotes, renderNotesSummary, renderSections, renderStatus, renderTableLine, renderWorkspace, repoNameFor, repoPathFor, reportPath, reportsDirectory, requireGroup, resolveGroup, resumeContext, rucherPaths, rulesText, rulesVersion, sanitizeNote, schemaVersion, sessionGroupName, sessionLabel, sessionNoteActivity, shortId, similarity, sourceInstructions, stepAgent, transcriptTitle, writeGenerated };
|
|
128
128
|
|
|
129
129
|
//# sourceMappingURL=index.mjs.map
|
package/dist/mcp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as OpenCarnetOptions, t as Carnet, yt as Host } from "./carnet-
|
|
1
|
+
import { r as OpenCarnetOptions, t as Carnet, yt as Host } from "./carnet-DptiZiz8.mjs";
|
|
2
2
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
3
3
|
import { StdioServerHandle } from "@modelcontextprotocol/server/stdio";
|
|
4
4
|
import * as z from "zod/v4";
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as memoryHalfLife, E as renderTableLine,
|
|
1
|
+
import { B as memoryHalfLife, E as renderTableLine, P as NOTE_KINDS, Xt as reportsDirectory, Yt as reportPath, a as formatEventLine, b as renderAgentLine, cn as EMOJI, dn as OPEN_AGENT_STATUSES, fn as USER_ACTION_STATUSES, hn as EVENT_TYPES, l as openCarnet, n as stepAgent, o as resumeContext, rt as hostById, s as sessionLabel, t as AGENT_STEPS, tt as DEFAULT_HOST, vn as CarnetError } from "./steps-BeTGxQk4.mjs";
|
|
2
2
|
import { copyFileSync, existsSync, mkdirSync } from "node:fs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { closeSync, existsSync, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
1
|
+
import { closeSync, existsSync, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, renameSync, rmSync, rmdirSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
3
3
|
import { DatabaseSync } from "node:sqlite";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -525,6 +525,152 @@ function reportsDirectory(group) {
|
|
|
525
525
|
function reportPath(group, agentName) {
|
|
526
526
|
return join(reportsDirectory(group), `${agentName}.md`);
|
|
527
527
|
}
|
|
528
|
+
// src/group/group.ts
|
|
529
|
+
const GROUP_FILE = "group.json";
|
|
530
|
+
const INSTRUCTIONS_FILE = "CLAUDE.md";
|
|
531
|
+
const AGENTS_FILE = "AGENTS.md";
|
|
532
|
+
const GROUP_NAME = /^[a-z0-9-]+$/;
|
|
533
|
+
function isGroupName(name) {
|
|
534
|
+
return GROUP_NAME.test(name);
|
|
535
|
+
}
|
|
536
|
+
function requireGroupName(name) {
|
|
537
|
+
if (!isGroupName(name)) throw new CarnetError("GROUP_NAME_INVALID", `Invalid group name ${JSON.stringify(name)}: use lowercase letters, digits and dashes`);
|
|
538
|
+
}
|
|
539
|
+
function expandHome(path, env = process.env) {
|
|
540
|
+
if (path !== "~" && !path.startsWith("~/")) return path;
|
|
541
|
+
return join(env.HOME || homedir(), path.slice(1));
|
|
542
|
+
}
|
|
543
|
+
function groupFilePath(name, env) {
|
|
544
|
+
return join(groupSource(name, env), GROUP_FILE);
|
|
545
|
+
}
|
|
546
|
+
function groupExists(name, env) {
|
|
547
|
+
return isGroupName(name) && existsSync(groupFilePath(name, env));
|
|
548
|
+
}
|
|
549
|
+
function readGroupFile(name, env) {
|
|
550
|
+
if (!groupExists(name, env)) throw new CarnetError("GROUP_NOT_FOUND", `No group named ${name}: see "rucher groups list"`);
|
|
551
|
+
return JSON.parse(readFileSync(groupFilePath(name, env), "utf8"));
|
|
552
|
+
}
|
|
553
|
+
function writeGroupFile(name, file, env) {
|
|
554
|
+
writeFileSync(groupFilePath(name, env), `${JSON.stringify(file, null, 2)}\n`);
|
|
555
|
+
}
|
|
556
|
+
function loadGroup(name, env = process.env) {
|
|
557
|
+
const file = readGroupFile(name, env);
|
|
558
|
+
return {
|
|
559
|
+
name,
|
|
560
|
+
source: groupSource(name, env),
|
|
561
|
+
workspace: resolve(expandHome(file.workspace ?? defaultWorkspace(name, env), env)),
|
|
562
|
+
repos: (file.repos ?? []).map((repo) => {
|
|
563
|
+
const path = resolve(expandHome(repo.path, env));
|
|
564
|
+
return {
|
|
565
|
+
path,
|
|
566
|
+
name: repo.name ?? basename(path)
|
|
567
|
+
};
|
|
568
|
+
}),
|
|
569
|
+
backends: file.backends ?? {}
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
function listGroups(env = process.env) {
|
|
573
|
+
const directory = groupsDirectory(env);
|
|
574
|
+
if (!existsSync(directory)) return [];
|
|
575
|
+
return readdirSync(directory).filter((name) => groupExists(name, env)).sort().map((name) => loadGroup(name, env));
|
|
576
|
+
}
|
|
577
|
+
function groupHosts(group) {
|
|
578
|
+
const hosts = Object.keys(group.backends);
|
|
579
|
+
return hosts.length ? hosts : [DEFAULT_HOST];
|
|
580
|
+
}
|
|
581
|
+
function checkedRepo(path, env) {
|
|
582
|
+
const absolute = resolve(expandHome(path, env));
|
|
583
|
+
if (!existsSync(absolute)) throw new CarnetError("REPO_NOT_FOUND", `Repo path does not exist: ${absolute}`);
|
|
584
|
+
return absolute;
|
|
585
|
+
}
|
|
586
|
+
function requireDistinctNames(group, repos) {
|
|
587
|
+
const names = repos.map((repo) => repo.name);
|
|
588
|
+
const shared = names.find((name, index) => names.indexOf(name) !== index);
|
|
589
|
+
if (shared) throw new CarnetError("REPO_NAME_TAKEN", `${group} would have two repos named ${shared}: give them distinct names`);
|
|
590
|
+
}
|
|
591
|
+
function createGroup(name, options = {}) {
|
|
592
|
+
const { env } = options;
|
|
593
|
+
requireGroupName(name);
|
|
594
|
+
if (groupExists(name, env)) throw new CarnetError("GROUP_EXISTS", `Group ${name} already exists`);
|
|
595
|
+
const repos = [...new Set((options.repos ?? []).map((repo) => checkedRepo(repo, env)))].map((path) => ({
|
|
596
|
+
path,
|
|
597
|
+
name: basename(path)
|
|
598
|
+
}));
|
|
599
|
+
requireDistinctNames(name, repos);
|
|
600
|
+
const source = groupSource(name, env);
|
|
601
|
+
const workspace = defaultWorkspace(name, env);
|
|
602
|
+
mkdirSync(source, { recursive: true });
|
|
603
|
+
mkdirSync(workspace, { recursive: true });
|
|
604
|
+
writeGroupFile(name, {
|
|
605
|
+
name,
|
|
606
|
+
workspace,
|
|
607
|
+
repos,
|
|
608
|
+
backends: {}
|
|
609
|
+
}, env);
|
|
610
|
+
const instructions = join(source, INSTRUCTIONS_FILE);
|
|
611
|
+
if (!existsSync(instructions)) writeFileSync(instructions, "");
|
|
612
|
+
return loadGroup(name, env);
|
|
613
|
+
}
|
|
614
|
+
function sourceInstructions(group) {
|
|
615
|
+
const agents = existsSync(join(group.source, AGENTS_FILE));
|
|
616
|
+
if (agents && existsSync(join(group.source, "CLAUDE.md"))) throw new CarnetError("GROUP_INSTRUCTIONS_CONFLICT", `Group ${group.name} has both ${AGENTS_FILE} and ${INSTRUCTIONS_FILE} in ${group.source}: remove ${INSTRUCTIONS_FILE}`);
|
|
617
|
+
return agents ? AGENTS_FILE : INSTRUCTIONS_FILE;
|
|
618
|
+
}
|
|
619
|
+
function addGroupRepo(name, repo, env) {
|
|
620
|
+
const file = readGroupFile(name, env);
|
|
621
|
+
const group = loadGroup(name, env);
|
|
622
|
+
const path = checkedRepo(repo, env);
|
|
623
|
+
if (group.repos.some((existing) => existing.path === path)) return group;
|
|
624
|
+
requireDistinctNames(name, [...group.repos, {
|
|
625
|
+
path,
|
|
626
|
+
name: basename(path)
|
|
627
|
+
}]);
|
|
628
|
+
writeGroupFile(name, {
|
|
629
|
+
...file,
|
|
630
|
+
repos: [...file.repos ?? [], {
|
|
631
|
+
path,
|
|
632
|
+
name: basename(path)
|
|
633
|
+
}]
|
|
634
|
+
}, env);
|
|
635
|
+
return loadGroup(name, env);
|
|
636
|
+
}
|
|
637
|
+
function removeGroupRepo(name, repo, env) {
|
|
638
|
+
const file = readGroupFile(name, env);
|
|
639
|
+
const group = loadGroup(name, env);
|
|
640
|
+
const path = resolve(expandHome(repo, env));
|
|
641
|
+
const index = group.repos.findIndex((existing) => existing.path === path || existing.name === repo);
|
|
642
|
+
if (index === -1) throw new CarnetError("REPO_NOT_FOUND", `${repo} is not a repo of ${name}`);
|
|
643
|
+
writeGroupFile(name, {
|
|
644
|
+
...file,
|
|
645
|
+
repos: (file.repos ?? []).filter((_, position) => position !== index)
|
|
646
|
+
}, env);
|
|
647
|
+
return loadGroup(name, env);
|
|
648
|
+
}
|
|
649
|
+
function renameGroup(from, to, env) {
|
|
650
|
+
const file = readGroupFile(from, env);
|
|
651
|
+
requireGroupName(to);
|
|
652
|
+
if (existsSync(groupSource(to, env))) throw new CarnetError("GROUP_EXISTS", `Group ${to} already exists`);
|
|
653
|
+
const workspace = loadGroup(from, env).workspace;
|
|
654
|
+
renameSync(groupSource(from, env), groupSource(to, env));
|
|
655
|
+
writeGroupFile(to, {
|
|
656
|
+
...file,
|
|
657
|
+
name: to,
|
|
658
|
+
workspace
|
|
659
|
+
}, env);
|
|
660
|
+
return loadGroup(to, env);
|
|
661
|
+
}
|
|
662
|
+
function dropGroup(name, options = {}) {
|
|
663
|
+
const group = loadGroup(name, options.env);
|
|
664
|
+
rmSync(group.source, {
|
|
665
|
+
recursive: true,
|
|
666
|
+
force: true
|
|
667
|
+
});
|
|
668
|
+
if (options.purge) rmSync(group.workspace, {
|
|
669
|
+
recursive: true,
|
|
670
|
+
force: true
|
|
671
|
+
});
|
|
672
|
+
return group;
|
|
673
|
+
}
|
|
528
674
|
// src/sessions.ts
|
|
529
675
|
const COLUMNS = `id, group_name, name, purpose, kind, status, cwd, repo, host, host_pid, hooked_at, last_title,
|
|
530
676
|
parent_id, prompt_version, created_at, last_active_at, ended_at`;
|
|
@@ -828,6 +974,7 @@ function isMarkdownCopy(path) {
|
|
|
828
974
|
}
|
|
829
975
|
function removeStaleCopies(directory, keep) {
|
|
830
976
|
const removed = [];
|
|
977
|
+
if (!entry(directory)) return removed;
|
|
831
978
|
for (const name of readdirSync(directory)) {
|
|
832
979
|
if (!name.endsWith(".md") || keep.has(name)) continue;
|
|
833
980
|
const path = join(directory, name);
|
|
@@ -921,30 +1068,53 @@ function transcriptTitle(path) {
|
|
|
921
1068
|
}
|
|
922
1069
|
}
|
|
923
1070
|
const SETTINGS_FILE = join(".claude", "settings.json");
|
|
1071
|
+
const BACKEND_NOTES = "backends/claude.md";
|
|
924
1072
|
function instructionFiles(group) {
|
|
925
1073
|
if (!existsSync(group.source)) return [];
|
|
926
1074
|
return readdirSync(group.source, { withFileTypes: true }).filter((item) => item.isFile() && item.name.endsWith(".md") && item.name !== "prompt.md").map((item) => item.name).sort();
|
|
927
1075
|
}
|
|
1076
|
+
function repoAgentsImports(group) {
|
|
1077
|
+
return group.repos.filter((repo) => existsSync(join(repo.path, "AGENTS.md")) && !existsSync(join(repo.path, "CLAUDE.md")) && !existsSync(join(repo.path, ".claude", "CLAUDE.md"))).map((repo) => `@${join(repo.path, AGENTS_FILE)}`);
|
|
1078
|
+
}
|
|
1079
|
+
function workspaceCopies(group) {
|
|
1080
|
+
const agents = sourceInstructions(group) === AGENTS_FILE;
|
|
1081
|
+
const read = (name) => readFileSync(join(group.source, name), "utf8");
|
|
1082
|
+
const copies = new Map(instructionFiles(group).map((name) => [name, markdownCopy(read(name))]));
|
|
1083
|
+
if (!agents) return copies;
|
|
1084
|
+
const imports = [`@${AGENTS_FILE}`];
|
|
1085
|
+
if (existsSync(join(group.source, BACKEND_NOTES))) {
|
|
1086
|
+
copies.set(BACKEND_NOTES, markdownCopy(read(BACKEND_NOTES)));
|
|
1087
|
+
imports.push(`@${BACKEND_NOTES}`);
|
|
1088
|
+
}
|
|
1089
|
+
imports.push(...repoAgentsImports(group));
|
|
1090
|
+
copies.set(INSTRUCTIONS_FILE, markdownCopy(`${imports.join("\n")}\n`));
|
|
1091
|
+
return copies;
|
|
1092
|
+
}
|
|
928
1093
|
function groupSettings(group) {
|
|
929
1094
|
return mergeSettings({
|
|
930
1095
|
"//": GENERATED_MARKER,
|
|
931
1096
|
permissions: {
|
|
932
1097
|
additionalDirectories: group.repos.map((repo) => repo.path),
|
|
933
|
-
deny:
|
|
1098
|
+
deny: [...workspaceCopies(group).keys()].sort().map((name) => `Edit(/${name})`)
|
|
934
1099
|
}
|
|
935
1100
|
}, group.backends["claude-code"]?.settings ?? {});
|
|
936
1101
|
}
|
|
1102
|
+
function removeStaleBackendNotes(group, keep) {
|
|
1103
|
+
const directory = join(group.workspace, dirname(BACKEND_NOTES));
|
|
1104
|
+
const removed = removeStaleCopies(directory, new Set([...keep].filter((name) => dirname(name) === dirname(BACKEND_NOTES)).map((name) => basename(name))));
|
|
1105
|
+
if (existsSync(directory) && readdirSync(directory).length === 0) rmdirSync(directory);
|
|
1106
|
+
return removed.map((name) => join(dirname(BACKEND_NOTES), name));
|
|
1107
|
+
}
|
|
937
1108
|
function renderClaudeWorkspace(group) {
|
|
938
1109
|
const rendered = {
|
|
939
1110
|
written: [],
|
|
940
1111
|
removed: []
|
|
941
1112
|
};
|
|
942
|
-
const
|
|
943
|
-
for (const name of
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
rendered.removed.push(...removeStaleCopies(group.workspace, new Set(names)));
|
|
1113
|
+
const copies = workspaceCopies(group);
|
|
1114
|
+
for (const [name, content] of [...copies].sort(([a], [b]) => a.localeCompare(b))) if (writeGenerated(join(group.workspace, name), content)) rendered.written.push(name);
|
|
1115
|
+
const names = new Set(copies.keys());
|
|
1116
|
+
rendered.removed.push(...removeStaleCopies(group.workspace, names));
|
|
1117
|
+
rendered.removed.push(...removeStaleBackendNotes(group, names));
|
|
948
1118
|
const settings = `${JSON.stringify(groupSettings(group), null, 2)}\n`;
|
|
949
1119
|
if (writeGenerated(join(group.workspace, SETTINGS_FILE), settings)) rendered.written.push(SETTINGS_FILE);
|
|
950
1120
|
return rendered;
|
|
@@ -1142,146 +1312,6 @@ function groupSessionCounts(db) {
|
|
|
1142
1312
|
WHERE group_name IS NOT NULL AND status != 'archived' GROUP BY group_name`).all();
|
|
1143
1313
|
return new Map(rows.map((row) => [row.group_name, Number(row.count)]));
|
|
1144
1314
|
}
|
|
1145
|
-
// src/group/group.ts
|
|
1146
|
-
const GROUP_FILE = "group.json";
|
|
1147
|
-
const INSTRUCTIONS_FILE = "CLAUDE.md";
|
|
1148
|
-
const GROUP_NAME = /^[a-z0-9-]+$/;
|
|
1149
|
-
function isGroupName(name) {
|
|
1150
|
-
return GROUP_NAME.test(name);
|
|
1151
|
-
}
|
|
1152
|
-
function requireGroupName(name) {
|
|
1153
|
-
if (!isGroupName(name)) throw new CarnetError("GROUP_NAME_INVALID", `Invalid group name ${JSON.stringify(name)}: use lowercase letters, digits and dashes`);
|
|
1154
|
-
}
|
|
1155
|
-
function expandHome(path, env = process.env) {
|
|
1156
|
-
if (path !== "~" && !path.startsWith("~/")) return path;
|
|
1157
|
-
return join(env.HOME || homedir(), path.slice(1));
|
|
1158
|
-
}
|
|
1159
|
-
function groupFilePath(name, env) {
|
|
1160
|
-
return join(groupSource(name, env), GROUP_FILE);
|
|
1161
|
-
}
|
|
1162
|
-
function groupExists(name, env) {
|
|
1163
|
-
return isGroupName(name) && existsSync(groupFilePath(name, env));
|
|
1164
|
-
}
|
|
1165
|
-
function readGroupFile(name, env) {
|
|
1166
|
-
if (!groupExists(name, env)) throw new CarnetError("GROUP_NOT_FOUND", `No group named ${name}: see "rucher groups list"`);
|
|
1167
|
-
return JSON.parse(readFileSync(groupFilePath(name, env), "utf8"));
|
|
1168
|
-
}
|
|
1169
|
-
function writeGroupFile(name, file, env) {
|
|
1170
|
-
writeFileSync(groupFilePath(name, env), `${JSON.stringify(file, null, 2)}\n`);
|
|
1171
|
-
}
|
|
1172
|
-
function loadGroup(name, env = process.env) {
|
|
1173
|
-
const file = readGroupFile(name, env);
|
|
1174
|
-
return {
|
|
1175
|
-
name,
|
|
1176
|
-
source: groupSource(name, env),
|
|
1177
|
-
workspace: resolve(expandHome(file.workspace ?? defaultWorkspace(name, env), env)),
|
|
1178
|
-
repos: (file.repos ?? []).map((repo) => {
|
|
1179
|
-
const path = resolve(expandHome(repo.path, env));
|
|
1180
|
-
return {
|
|
1181
|
-
path,
|
|
1182
|
-
name: repo.name ?? basename(path)
|
|
1183
|
-
};
|
|
1184
|
-
}),
|
|
1185
|
-
backends: file.backends ?? {}
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
function listGroups(env = process.env) {
|
|
1189
|
-
const directory = groupsDirectory(env);
|
|
1190
|
-
if (!existsSync(directory)) return [];
|
|
1191
|
-
return readdirSync(directory).filter((name) => groupExists(name, env)).sort().map((name) => loadGroup(name, env));
|
|
1192
|
-
}
|
|
1193
|
-
function groupHosts(group) {
|
|
1194
|
-
const hosts = Object.keys(group.backends);
|
|
1195
|
-
return hosts.length ? hosts : [DEFAULT_HOST];
|
|
1196
|
-
}
|
|
1197
|
-
function checkedRepo(path, env) {
|
|
1198
|
-
const absolute = resolve(expandHome(path, env));
|
|
1199
|
-
if (!existsSync(absolute)) throw new CarnetError("REPO_NOT_FOUND", `Repo path does not exist: ${absolute}`);
|
|
1200
|
-
return absolute;
|
|
1201
|
-
}
|
|
1202
|
-
function requireDistinctNames(group, repos) {
|
|
1203
|
-
const names = repos.map((repo) => repo.name);
|
|
1204
|
-
const shared = names.find((name, index) => names.indexOf(name) !== index);
|
|
1205
|
-
if (shared) throw new CarnetError("REPO_NAME_TAKEN", `${group} would have two repos named ${shared}: give them distinct names`);
|
|
1206
|
-
}
|
|
1207
|
-
function createGroup(name, options = {}) {
|
|
1208
|
-
const { env } = options;
|
|
1209
|
-
requireGroupName(name);
|
|
1210
|
-
if (groupExists(name, env)) throw new CarnetError("GROUP_EXISTS", `Group ${name} already exists`);
|
|
1211
|
-
const repos = [...new Set((options.repos ?? []).map((repo) => checkedRepo(repo, env)))].map((path) => ({
|
|
1212
|
-
path,
|
|
1213
|
-
name: basename(path)
|
|
1214
|
-
}));
|
|
1215
|
-
requireDistinctNames(name, repos);
|
|
1216
|
-
const source = groupSource(name, env);
|
|
1217
|
-
const workspace = defaultWorkspace(name, env);
|
|
1218
|
-
mkdirSync(source, { recursive: true });
|
|
1219
|
-
mkdirSync(workspace, { recursive: true });
|
|
1220
|
-
writeGroupFile(name, {
|
|
1221
|
-
name,
|
|
1222
|
-
workspace,
|
|
1223
|
-
repos,
|
|
1224
|
-
backends: {}
|
|
1225
|
-
}, env);
|
|
1226
|
-
const instructions = join(source, INSTRUCTIONS_FILE);
|
|
1227
|
-
if (!existsSync(instructions)) writeFileSync(instructions, "");
|
|
1228
|
-
return loadGroup(name, env);
|
|
1229
|
-
}
|
|
1230
|
-
function addGroupRepo(name, repo, env) {
|
|
1231
|
-
const file = readGroupFile(name, env);
|
|
1232
|
-
const group = loadGroup(name, env);
|
|
1233
|
-
const path = checkedRepo(repo, env);
|
|
1234
|
-
if (group.repos.some((existing) => existing.path === path)) return group;
|
|
1235
|
-
requireDistinctNames(name, [...group.repos, {
|
|
1236
|
-
path,
|
|
1237
|
-
name: basename(path)
|
|
1238
|
-
}]);
|
|
1239
|
-
writeGroupFile(name, {
|
|
1240
|
-
...file,
|
|
1241
|
-
repos: [...file.repos ?? [], {
|
|
1242
|
-
path,
|
|
1243
|
-
name: basename(path)
|
|
1244
|
-
}]
|
|
1245
|
-
}, env);
|
|
1246
|
-
return loadGroup(name, env);
|
|
1247
|
-
}
|
|
1248
|
-
function removeGroupRepo(name, repo, env) {
|
|
1249
|
-
const file = readGroupFile(name, env);
|
|
1250
|
-
const group = loadGroup(name, env);
|
|
1251
|
-
const path = resolve(expandHome(repo, env));
|
|
1252
|
-
const index = group.repos.findIndex((existing) => existing.path === path || existing.name === repo);
|
|
1253
|
-
if (index === -1) throw new CarnetError("REPO_NOT_FOUND", `${repo} is not a repo of ${name}`);
|
|
1254
|
-
writeGroupFile(name, {
|
|
1255
|
-
...file,
|
|
1256
|
-
repos: (file.repos ?? []).filter((_, position) => position !== index)
|
|
1257
|
-
}, env);
|
|
1258
|
-
return loadGroup(name, env);
|
|
1259
|
-
}
|
|
1260
|
-
function renameGroup(from, to, env) {
|
|
1261
|
-
const file = readGroupFile(from, env);
|
|
1262
|
-
requireGroupName(to);
|
|
1263
|
-
if (existsSync(groupSource(to, env))) throw new CarnetError("GROUP_EXISTS", `Group ${to} already exists`);
|
|
1264
|
-
const workspace = loadGroup(from, env).workspace;
|
|
1265
|
-
renameSync(groupSource(from, env), groupSource(to, env));
|
|
1266
|
-
writeGroupFile(to, {
|
|
1267
|
-
...file,
|
|
1268
|
-
name: to,
|
|
1269
|
-
workspace
|
|
1270
|
-
}, env);
|
|
1271
|
-
return loadGroup(to, env);
|
|
1272
|
-
}
|
|
1273
|
-
function dropGroup(name, options = {}) {
|
|
1274
|
-
const group = loadGroup(name, options.env);
|
|
1275
|
-
rmSync(group.source, {
|
|
1276
|
-
recursive: true,
|
|
1277
|
-
force: true
|
|
1278
|
-
});
|
|
1279
|
-
if (options.purge) rmSync(group.workspace, {
|
|
1280
|
-
recursive: true,
|
|
1281
|
-
force: true
|
|
1282
|
-
});
|
|
1283
|
-
return group;
|
|
1284
|
-
}
|
|
1285
1315
|
// src/group/locate.ts
|
|
1286
1316
|
function isInside(directory, path) {
|
|
1287
1317
|
const relativePath = relative(directory, path);
|
|
@@ -2229,6 +2259,6 @@ function stepAgent(carnet, session, input) {
|
|
|
2229
2259
|
}
|
|
2230
2260
|
}
|
|
2231
2261
|
}
|
|
2232
|
-
export {
|
|
2262
|
+
export { renameGroupRows as $, openDatabase as $t, memoryMaxCharacters as A, INSTRUCTIONS_FILE as At, memoryHalfLife as B, removeGroupRepo as Bt, renderNotesSummary as C, rulesText as Ct, DEFAULT_PURGE_DAYS as D, shortId as Dt, renderTableLine as E, MINIMUM_ID_PREFIX as Et, NOTE_TEXT_LIMIT as F, groupExists as Ft, isInside as G, defaultWorkspace as Gt, similarity as H, sourceInstructions as Ht, STALE_AFTER_ACTIVE_DAYS as I, groupHosts as It, requireGroup as J, promptsDirectory as Jt, repoNameFor as K, groupSource as Kt, groupRepoNames as L, isGroupName as Lt, DEFAULT_HALF_LIFE_DAYS as M, createGroup as Mt, DUPLICATE_SIMILARITY as N, dropGroup as Nt, purgeDays as O, AGENTS_FILE as Ot, NOTE_KINDS as P, expandHome as Pt, groupSessionCounts as Q, MEMORY_DB as Qt, isNoteKind as R, listGroups as Rt, renderNotes as S, outsideRucherContext as St, renderStatus as T, CORE_RULES as Tt, ambiguousGroupContext as U, corePromptPath as Ut, sessionNoteActivity as V, renameGroup as Vt, groupLabel as W, databasePath as Wt, archiveGroupSessions as X, reportsDirectory as Xt, resolveGroup as Y, reportPath as Yt, deleteGroupNotes as Z, rucherPaths as Zt, NOTES_FOLD_LINES as _, isEventType as _n, appendPromptFile as _t, formatEventLine as a, NOTE_MAX as an, groupSettings as at, renderAgentLine as b, compactReminder as bt, Carnet as c, EMOJI as cn, MARKDOWN_MARKER as ct, openResolvedCarnet as d, OPEN_AGENT_STATUSES as dn, removeStaleCopies as dt, migrate as en, sessionGroupName as et, PAIRING_WINDOW_MILLISECONDS as f, USER_ACTION_STATUSES as fn, writeGenerated as ft, MAIN_WORKING_SUFFIX as g, SESSION_EVENT_TYPES as gn, SUBAGENT_RULES as gt, formatClock as h, EVENT_TYPES as hn, RULES_UPDATED_NOTICE as ht, RESUME_MAX_CHARACTERS as i, REPORTING_NOTE as in, claudeCode as it, renderMemory as j, addGroupRepo as jt, MEMORY_MAX_CHARACTERS as k, GROUP_FILE as kt, openCarnet as l, LEGEND as ln, markdownCopy as lt, buildStatusView as m, isUserActionStatus as mn, PROMPT_FILE as mt, stepAgent as n, schemaVersion as nn, allHosts as nt, resumeContext as o, sanitizeNote as on, transcriptTitle as ot, STOPPED_NOTE as p, isAgentStatus as pn, OUTSIDE_RUCHER_NOTICE as pt, repoPathFor as q, groupsDirectory as qt, RESUME_EVENTS as r, PUBLISH_FALLBACK_MILLISECONDS as rn, hostById as rt, sessionLabel as s, AGENT_STATUSES as sn, GENERATED_MARKER as st, AGENT_STEPS as t, migrations as tn, DEFAULT_HOST as tt, openGroupCarnet as u, MAIN_WORKING_EMOJI as un, mergeSettings as ut, NOTES_HEADER as v, CarnetError as vn, assemblePrompt as vt, renderSections as w, rulesVersion as wt, renderNoteLine as x, groupRules as xt, SIMILAR_PREFIX as y, baseRules as yt, localDay as z, loadGroup as zt };
|
|
2233
2263
|
|
|
2234
|
-
//# sourceMappingURL=steps-
|
|
2264
|
+
//# sourceMappingURL=steps-BeTGxQk4.mjs.map
|