@rucher/carnet 0.3.0 → 0.4.0-beta.0
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-B9opMp0K.d.mts +1228 -0
- package/dist/carnet-B9opMp0K.d.mts.map +1 -0
- package/dist/index.d.mts +224 -21
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +410 -110
- package/dist/index.mjs.map +1 -1
- package/dist/mcp.d.mts +4 -4
- package/dist/mcp.d.mts.map +1 -1
- package/dist/mcp.mjs +261 -154
- package/dist/mcp.mjs.map +1 -1
- package/dist/{steps-DfvHqzF0.mjs → usage-D3xjR_RF.mjs} +4657 -1993
- package/dist/usage-D3xjR_RF.mjs.map +1 -0
- package/package.json +2 -1
- package/dist/carnet-D3zpKpdn.d.mts +0 -646
- package/dist/carnet-D3zpKpdn.d.mts.map +0 -1
- package/dist/steps-DfvHqzF0.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carnet-B9opMp0K.d.mts","names":["_$__merge_ts0.MergeResult","_$__agents_ts0.KindStep","_$__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.DropNotesResult","_$__notes_ts0.NoteCitation","_$__notes_ts0.NoteActivity","_$__references_ts0.Reference","_$__search_ts0.IndexResult","_$__search_ts0.SearchResults","_$__status_view_ts0.StatusView"],"sources":["../src/agent-json.ts","../src/context.ts","../src/events.ts","../src/status/model.ts","../src/agents.ts","../src/config/schema.ts","../src/workspace/workspace.ts","../src/workspace/locate.ts","../src/launch-plan.ts","../src/workspace/undo.ts","../src/hosts/host.ts","../src/sessions.ts","../src/merge.ts","../src/questions.ts","../src/findings.ts","../src/table.ts","../src/notes.ts","../src/references.ts","../src/search.ts","../src/turn.ts","../src/status/view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AS,SAAS,MAAM,OAAO;EAC/C,gBAAgB,cAAc,oBAAoB,mBAAmB;EACrE,iBAAiB,eAAe;EAChC,aAAa;EACb,gBAAgB,SAAS,SAAS,MAAM,OAAO;EAE/C,UAAU,QAAQ,SAAS,iBAAiB,MAAM,OAAO;;UAG1C;EACf;EACA;EACA,eAAe;EACf,mBAAmB,WAAW,YAAY;EAE1C,iBACE,cACA,YACA,KAAK,OAAO,YACZ,0BACC;EACH,WAAW,cAAc,mBAAmB,KAAK,OAAO;EACxD,QAAQ;EACR,SAAS;;cAGE;iBAOG,YAAY;iBAIZ,SAAS,aAAa;iBAWtB,SAAS,aAAa;iBAQtB,WAAW,aAAa;KCtL5B;KACA;UAEK;EACf;EACA;EACA;EACA;EACA,MAAM;EACN,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA,YAAY;;KA6BF,qBAAqB;UAEhB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA,MAAM;EACN;EACA;EACA;EACA;;UAGe;EACf;EACA;;cAiSW;iBAEG,QAAQ;UCxXP;EACf,SAAS;EACT;EACA;EACA;EACA;;UCNe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;;cCrBW;KACD,0BAA0B;cAEzB;KAQD,0BAA0B;cAEzB;KACD,uBAAuB;cAEtB;KACD,oBAAoB;UAef;EACf,UAAU;EACV;EACA;EACA;EACA,QAAQ;;UAGO;EACf;EACA;EACA,UAAU;EACV;EACA;EACA;EACA,UAAU;EACV;EAEA,OAAO;EACP;EACA,WAAW;EACX;EACA;;UAGe;EACf;EACA,UAAU;EACV;EAEA;EACA,OAAO;;KAIG;UCnEK;EACf;EACA;EACA,QAAQ;EACR;;UAGe;EACf;EACA,SAAS;;cCVE;KACD,mBAAmB;cAElB;cACA;cACA;cACA;iBA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YAAY;;iBAGE,mBAAmB,UAAS,oBAAyB;iBAWrD,oBACd,WAAW,kBACX,UAAS,oBACR"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as SearchResults, $n as expandHome, $r as isAgentStatus, $t as HostStopPayload, A as memoryMaxCharacters, An as ResolveWorkspaceOptions, Ar as KindStep, At as sessionNoteActivity, B as StatusViewOptions, Bn as CreateWorkspaceOptions, Br as AGENT_STATUSES, Bt as MINIMUM_ID_PREFIX, C as renderNotes, Ci as recommendedThen, Cn as checkForkOptions, Cr as AgentContext, Ct as NoteDetail, D as renderTableLine, Dn as prepareNew, Dr as FinishAgentInput, Dt as isNoteKind, E as renderStatus, En as prepareFork, Er as CLAUDE_BACKEND, Et as WeightedNote, F as BriefPartType, Fn as repoPathFor, Fr as StartAgentInput, Ft as MergeResult, G as TurnOptions, Gn as WORKSPACE_FILE, Gr as KIND_TAG_PATTERN, Gt as DEFAULT_HOST, H as formatClock, Hn as INSTRUCTIONS_FILE, Hr as EMOJI, Ht as SessionKind, I as buildBrief, In as requireWorkspace, Ir as UpdateAgentInput, It as CreateSessionInput, J as SEARCH_LIMITS, Jn as WorkspaceRepo, Jr as MAIN_WAITING_EMOJI, Jt as HostCommand, K as IndexOptions, Kn as Workspace, Kr as LEGEND, Kt as HookHost, L as planAsAnswered, Ln as resolveWorkspace, Lr as agentMode, Lt as HookEnv, M as Brief, Mn as WorkspaceResolution, Mr as PUBLISH_FALLBACK_MILLISECONDS, Mt as workspaceRepoNames, N as BriefOptions, Nn as isInside, Nr as REPORTING_NOTE, Nt as SetTableInput, O as MEMORY_MAX_CHARACTERS, On as prepareResume, Or as KIND_MODES, Ot as localDay, P as BriefPart, Pn as repoNameFor, Pr as SANDBOX_KINDS, Pt as TableItem, Q as SearchOptions, Qn as dropWorkspace, Qr as UserActionStatus, Qt as HostSessionPayload, R as StatusLine, Rn as workspaceLabel, Rr as isAgentKind, Rt as HookSessionPayload, S as renderNoteLine, Si as produced, Sn as buildLaunchPlan, Sr as Agent, St as NoteCitation, T as renderSections, Tn as launchStarted, Tr as AgentMode, Tt as STALE_AFTER_ACTIVE_DAYS, U as TURNS, Un as REPO_INSTRUCTIONS_DIRECTORY, Ur as KIND_ABBREVIATIONS, Ut as SessionStatus, V as buildStatusView, Vn as DropWorkspaceOptions, Vr as AgentStatus, Vt as Session, W as Turn, Wn as RepoInstructionsFile, Wr as KIND_LEGEND, Wt as shortId, X as SNIPPET_OPEN, Xn as createWorkspace, Xr as OPEN_AGENT_STATUSES, Xt as HostRender, Y as SNIPPET_CLOSE, Yn as addWorkspaceRepo, Yr as MAIN_WORKING_EMOJI, Yt as HostPromptPayload, Z as SearchHit, Zn as definitionInstructions, Zr as USER_ACTION_STATUSES, Zt as HostSessionEndPayload, _ as NotesMode, _i as attachment, _n as McpServerEntry, _r as GESTURES, _t as NOTE_KINDS, a as ResolvedCarnet, ai as EventType, an as ProjectRelocation, ar as repoInstructionFiles, at as REFERENCE_SCOPES, b as renderAgentLine, bi as attachmentsInput, bn as PreparedResume, br as parseConfig, bt as NoteActivity, c as openWorkspaceCarnet, ci as SessionEventType, cn as TranscriptSlice, cr as usableWorkspaceConfig, ct as formatBytes, d as MAIN_HEADER, di as AttachmentInput, dn as hookHost, dr as workspaceHosts, dt as AddNoteResult, ei as isUserActionStatus, en as HostSubagentPayload, er as isWorkspaceName, et as SearchSource, f as MAIN_IDLE, fi as DELIVERABLES, fn as hostById, fr as BACKENDS, ft as CiteNoteInput, g as NOTES_HEADER, gi as Snapshot, gn as LaunchPlanInput, gr as DECISION_USAGES, gt as ListNotesOptions, h as NOTES_FOLD_LINES, hi as RecommendedThen, hn as LaunchPlan, hr as DECIDER_PROVIDERS, ht as DropNoteInput, i as OpenCarnetOptions, ii as EVENT_TYPES, in as Orchestration, ir as removeWorkspaceRepo, it as ListReferencesOptions, j as renderMemory, jn as WorkspaceOrigin, jr as ListAgentsOptions, jt as similarity, k as MemoryOptions, kn as withWorkspace, kr as KIND_REQUIRED, kt as memoryHalfLife, l as BLOCKED_HEADER, li as isEventType, ln as TranscriptUsage, lr as workspaceExists, lt as referenceLine, m as MAIN_WORKING_SUFFIX, mi as Produced, mn as LaunchMode, mr as ConfigFile, mt as DUPLICATE_SIMILARITY, n as CarnetOptions, ni as AgentEventType, nn as LaunchHost, nr as loadWorkspace, nt as searchQuery, o as openCarnet, oi as LogEventInput, on as RelocatedFolder, or as repoInstructionsPath, ot as Reference, p as MAIN_WAITING_SUFFIX, pi as Deliverable, pn as launchHost, pr as Backend, pt as DEFAULT_HALF_LIFE_DAYS, q as NoteMatch, qn as WorkspaceFile, qr as MAIN_FAILED_EMOJI, qt as Host, r as ClosedAgent, ri as CarnetEvent, rn as LiveSession, rr as migrateInstructions, rt as transcriptsIndexed, s as openResolvedCarnet, si as SESSION_EVENT_TYPES, sn as TranscriptChunk, sr as serializeWorkspaceFile, st as ReferenceScope, t as Carnet, ti as kindTag, tn as HostToolPayload, tr as listWorkspaces, tt as SessionMatch, u as MAIN_FAILED_SUFFIX, ui as Attachment, un as allHosts, ur as workspaceFileHosts, ut as AddNoteInput, v as RenderOptions, vi as attachmentInput, vn as PrepareForkOptions, vr as RunPair, vt as NOTE_TEXT_LIMIT, w as renderNotesSummary, wi as snapshot, wn as launchEnded, wr as AgentKind, wt as NoteKind, x as renderMainLine, xi as deliverable, xn as SystemAppend, xr as AGENT_KINDS, xt as NoteActivityKind, y as SIMILAR_PREFIX, yi as attachments, yn as PrepareNewOptions, yr as Source, yt as Note, z as StatusView, zn as AGENTS_FILE, zr as statusWhenDone, zt as ListSessionsOptions } from "./carnet-B9opMp0K.mjs";
|
|
2
2
|
import { DatabaseSync } from "node:sqlite";
|
|
3
3
|
interface MoveOptions {
|
|
4
4
|
merge?: boolean | undefined;
|
|
@@ -95,6 +95,7 @@ interface MergePlan {
|
|
|
95
95
|
trees: TreeMove[];
|
|
96
96
|
files: FileMove[];
|
|
97
97
|
instructions: string;
|
|
98
|
+
repoInstructions: FileMove[];
|
|
98
99
|
}
|
|
99
100
|
interface MergeResult$1 extends MergePlan {
|
|
100
101
|
backup: string;
|
|
@@ -110,12 +111,15 @@ export declare const MEMORY_DB = ":memory:";
|
|
|
110
111
|
export declare function openDatabase(path: string): DatabaseSync;
|
|
111
112
|
export declare const migrations: readonly string[];
|
|
112
113
|
export declare function schemaVersion(db: DatabaseSync): number;
|
|
113
|
-
export declare function migrate(db: DatabaseSync): void;
|
|
114
|
-
type CarnetErrorCode = 'NO_WORKSPACE' | 'WORKSPACE_EXISTS' | 'WORKSPACE_NOT_FOUND' | 'WORKSPACE_NAME_INVALID' | 'WORKSPACE_BUSY' | 'WORKSPACE_RELOCATE_FAILED' | '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' | 'INVALID_NAME' | 'AGENT_NOT_FOUND' | 'AGENT_AMBIGUOUS' | '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' | 'SCHEMA_TOO_NEW';
|
|
114
|
+
export declare function migrate(db: DatabaseSync, target?: number): void;
|
|
115
|
+
type CarnetErrorCode = 'NO_WORKSPACE' | 'WORKSPACE_EXISTS' | 'WORKSPACE_NOT_FOUND' | 'WORKSPACE_NAME_INVALID' | 'WORKSPACE_BUSY' | 'WORKSPACE_RELOCATE_FAILED' | 'REPO_NOT_FOUND' | 'REPO_NAME_TAKEN' | 'NOTE_NOT_FOUND' | 'INVALID_NOTE' | 'UNKNOWN_HOST' | 'HOST_WITHOUT_HOOKS' | 'HOST_CANNOT_LAUNCH' | 'NO_CONVERSATION' | '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' | 'INVALID_NAME' | 'AGENT_NOT_FOUND' | 'AGENT_AMBIGUOUS' | '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' | 'INVALID_JSON' | 'INVALID_DECISION' | 'INVALID_ROUTE' | 'FINDING_DECIDED' | 'INVALID_ATTACHMENT' | 'INVALID_REFERENCE' | 'REFERENCE_NOT_FOUND' | 'MISSION_REQUIRED' | 'PLUGIN_OUTDATED' | 'SCHEMA_TOO_NEW' | 'CONFIG_INVALID' | 'RUN_FIXED' | 'BACKEND_UNAVAILABLE';
|
|
115
116
|
export declare class CarnetError extends Error {
|
|
116
117
|
readonly code: CarnetErrorCode;
|
|
117
|
-
|
|
118
|
+
readonly hint?: string | undefined;
|
|
119
|
+
constructor(code: CarnetErrorCode, message: string, hint?: string | undefined);
|
|
118
120
|
}
|
|
121
|
+
export declare function forkStartContext(agent: Pick<Agent, 'name' | 'kind'>): string | undefined;
|
|
122
|
+
export declare const AGENT_BRIEF_HINT = "Your contract: call `agent_brief` with the agent name your prompt gives you.";
|
|
119
123
|
export declare function locateAgent(carnet: Carnet, name: string): {
|
|
120
124
|
session: Session;
|
|
121
125
|
agent: Agent;
|
|
@@ -126,7 +130,6 @@ interface ReportDocument {
|
|
|
126
130
|
path: string;
|
|
127
131
|
}
|
|
128
132
|
export declare function reportDocument(carnet: Carnet, session: string, name: string): ReportDocument;
|
|
129
|
-
export declare function findingsBrief(carnet: Carnet, session: string, name: string, numbers: readonly number[], kind: string): string;
|
|
130
133
|
interface RucherPaths {
|
|
131
134
|
config: string;
|
|
132
135
|
data: string;
|
|
@@ -135,6 +138,7 @@ interface RucherPaths {
|
|
|
135
138
|
}
|
|
136
139
|
export declare function rucherPaths(env?: NodeJS.ProcessEnv): RucherPaths;
|
|
137
140
|
export declare function databasePath(env?: NodeJS.ProcessEnv): string;
|
|
141
|
+
export declare function serverSocketPath(env?: NodeJS.ProcessEnv, platform?: NodeJS.Platform): string;
|
|
138
142
|
export declare function workspacesDirectory(env?: NodeJS.ProcessEnv): string;
|
|
139
143
|
export declare function workspaceDefinition(name: string, env?: NodeJS.ProcessEnv): string;
|
|
140
144
|
export declare function defaultRunDirectory(name: string, env?: NodeJS.ProcessEnv): string;
|
|
@@ -142,7 +146,42 @@ export declare function promptsDirectory(env?: NodeJS.ProcessEnv): string;
|
|
|
142
146
|
export declare function corePromptPath(env?: NodeJS.ProcessEnv): string;
|
|
143
147
|
export declare function reportsDirectory(workspace: Workspace): string;
|
|
144
148
|
export declare function sandboxesDirectory(workspace: Workspace): string;
|
|
145
|
-
export declare function reportPath(workspace: Workspace, agentName: string): string;
|
|
149
|
+
export declare function reportPath(workspace: Workspace, agentName: string, agentId: number): string;
|
|
150
|
+
export declare const REPO_INSTRUCTION_FILES: string[];
|
|
151
|
+
export declare const CLAUDE_NATIVE_FILES: readonly string[];
|
|
152
|
+
export declare const CLAUDE_BACKEND_NOTES: string;
|
|
153
|
+
interface ContextText {
|
|
154
|
+
file: string;
|
|
155
|
+
text: string;
|
|
156
|
+
}
|
|
157
|
+
interface RepoOwnFile {
|
|
158
|
+
file: string;
|
|
159
|
+
path: string;
|
|
160
|
+
loading: 'native' | 'listed' | 'skipped';
|
|
161
|
+
}
|
|
162
|
+
interface RepoContext {
|
|
163
|
+
name: string;
|
|
164
|
+
path: string;
|
|
165
|
+
personal?: ContextText;
|
|
166
|
+
own: RepoOwnFile[];
|
|
167
|
+
}
|
|
168
|
+
interface WorkspaceContext {
|
|
169
|
+
name: string;
|
|
170
|
+
workspace?: ContextText;
|
|
171
|
+
backendNotes?: ContextText;
|
|
172
|
+
repos: RepoContext[];
|
|
173
|
+
}
|
|
174
|
+
interface ContextOptions {
|
|
175
|
+
nativeFiles: readonly string[];
|
|
176
|
+
backend?: string | undefined;
|
|
177
|
+
workspaceText?: boolean | undefined;
|
|
178
|
+
}
|
|
179
|
+
interface ContextAppendOptions {
|
|
180
|
+
workspace: boolean;
|
|
181
|
+
repoFiles: boolean;
|
|
182
|
+
}
|
|
183
|
+
export declare function workspaceContext(workspace: Workspace, options: ContextOptions): WorkspaceContext;
|
|
184
|
+
export declare function contextAppend(context: WorkspaceContext, options: ContextAppendOptions): string;
|
|
146
185
|
export declare function handleSessionEnd(carnet: Carnet, payload: HostSessionEndPayload): Session | undefined;
|
|
147
186
|
export declare function handleStop(carnet: Carnet, payload: HostStopPayload): void;
|
|
148
187
|
interface SessionStartResult {
|
|
@@ -151,6 +190,7 @@ interface SessionStartResult {
|
|
|
151
190
|
contextParts: string[];
|
|
152
191
|
notices: string[];
|
|
153
192
|
}
|
|
193
|
+
export declare function invalidConfigNotice(problem: string): string;
|
|
154
194
|
export declare function handleSessionStart(carnet: Carnet, payload: HookSessionPayload, env: HookEnv): SessionStartResult;
|
|
155
195
|
export declare const PROMPT_FILE = "prompt.md";
|
|
156
196
|
interface PromptSession {
|
|
@@ -169,6 +209,7 @@ interface AppendPromptFile {
|
|
|
169
209
|
export declare function baseRules(env?: NodeJS.ProcessEnv): string;
|
|
170
210
|
export declare function workspaceRules(workspace: Workspace | null): string | undefined;
|
|
171
211
|
export declare function rulesText(workspace: Workspace | null, env?: NodeJS.ProcessEnv): string;
|
|
212
|
+
export declare function contextText(workspace: Workspace | null): string;
|
|
172
213
|
export declare function rulesVersion(workspace: Workspace | null, env?: NodeJS.ProcessEnv): string;
|
|
173
214
|
export declare function assemblePrompt(workspace: Workspace | null, session: PromptSession, env?: NodeJS.ProcessEnv): AssembledPrompt;
|
|
174
215
|
export declare function appendPromptFile(workspace: Workspace | null, session: PromptSession, env?: NodeJS.ProcessEnv): AppendPromptFile;
|
|
@@ -177,26 +218,48 @@ export declare function outsideRucherContext(workspace: Workspace | null, env?:
|
|
|
177
218
|
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)";
|
|
178
219
|
export declare const RULES_UPDATED_NOTICE = "rucher: rules updated, will apply after the next compaction or in a new session";
|
|
179
220
|
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.";
|
|
180
|
-
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 or its next action (/rucher:next), 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.";
|
|
181
|
-
export declare function handleUserPromptSubmit(carnet: Carnet, host:
|
|
182
|
-
export declare function handleToolUse(carnet: Carnet, payload: HostToolPayload, env: HookEnv, options?: TurnOptions): string | undefined;
|
|
183
|
-
export declare const WAITING_TOOL = "AskUserQuestion";
|
|
184
|
-
export declare function handleToolStart(carnet: Carnet, payload: HostToolPayload): void;
|
|
185
|
-
export declare function guardSubagentCall(carnet: Carnet, payload: HostToolPayload, scratchRoots: string[]): string | undefined;
|
|
186
|
-
export declare function guardMainLaunch(carnet: Carnet, payload: HostToolPayload): string | undefined;
|
|
221
|
+
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 or its next action (/rucher:next), 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- Instructions stack from general to specific, the more specific winning: Rucher rules, workspace instructions, the human's own instructions for a repo, the repo's own files, then the session files. None overrides your kind's contract: its access, deliverable and final action.\n- To launch agents or handle their results, load the rucher skill: it holds the full workflow.";
|
|
222
|
+
export declare function handleUserPromptSubmit(carnet: Carnet, host: HookHost, payload: HostPromptPayload, options?: TurnOptions): Session;
|
|
187
223
|
export declare const GUARDED_TOOLS: Set<string>;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
224
|
+
type Access = 'read-only' | 'worktree' | 'main';
|
|
225
|
+
export declare const KIND_ACCESS: Readonly<Record<AgentKind, Access>>;
|
|
226
|
+
interface ToolCall {
|
|
227
|
+
tool: string;
|
|
191
228
|
filePath?: string | undefined;
|
|
192
229
|
command?: string | undefined;
|
|
193
230
|
cwd?: string | undefined;
|
|
231
|
+
subagentType?: string | undefined;
|
|
232
|
+
}
|
|
233
|
+
interface CallContext {
|
|
234
|
+
label: string;
|
|
194
235
|
worktree?: string | null | undefined;
|
|
195
236
|
sandbox?: string | null | undefined;
|
|
196
237
|
scratchRoots: string[];
|
|
238
|
+
unpaired?: boolean | undefined;
|
|
239
|
+
launch?: {
|
|
240
|
+
named?: Agent | undefined;
|
|
241
|
+
pendingPlan?: Agent | undefined;
|
|
242
|
+
} | undefined;
|
|
197
243
|
}
|
|
198
|
-
|
|
244
|
+
type DenyRule = 'write-read-only' | 'write-outside-sandbox' | 'write-outside-worktree' | 'git-publish' | 'git-push' | 'git-outside-sandbox' | 'plan-mode' | 'built-in-plan' | 'launch-type';
|
|
245
|
+
type Verdict = {
|
|
246
|
+
allow: true;
|
|
247
|
+
} | {
|
|
248
|
+
allow: false;
|
|
249
|
+
rule: DenyRule;
|
|
250
|
+
reason: string;
|
|
251
|
+
};
|
|
252
|
+
export declare function checkToolCall(access: Access, call: ToolCall, ctx: CallContext): Verdict;
|
|
253
|
+
export declare function toolCallOf(tool: string, input: unknown, cwd?: string): ToolCall;
|
|
254
|
+
export declare function scratchRoots(env: {
|
|
255
|
+
CLAUDE_CODE_TMPDIR?: string | undefined;
|
|
256
|
+
}): string[];
|
|
199
257
|
export declare function kindOfAgentType(agentType: string | undefined): AgentKind | undefined;
|
|
258
|
+
export declare function handleToolUse(carnet: Carnet, payload: HostToolPayload, options?: TurnOptions): void;
|
|
259
|
+
export declare const WAITING_TOOL = "AskUserQuestion";
|
|
260
|
+
export declare function handleToolStart(carnet: Carnet, payload: HostToolPayload): void;
|
|
261
|
+
export declare function subagentVerdict(carnet: Carnet, payload: HostToolPayload, scratchRoots: string[], names?: string[], namedUnreadable?: boolean): Verdict;
|
|
262
|
+
export declare function mainLaunchVerdict(carnet: Carnet, payload: HostToolPayload, namedUnreadable?: boolean): Verdict;
|
|
200
263
|
export declare const LAUNCH_TOOLS: ReadonlySet<string>;
|
|
201
264
|
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.";
|
|
202
265
|
interface LaunchCall {
|
|
@@ -205,14 +268,23 @@ interface LaunchCall {
|
|
|
205
268
|
named?: Agent | undefined;
|
|
206
269
|
pendingPlan?: Agent | undefined;
|
|
207
270
|
}
|
|
208
|
-
export declare function
|
|
271
|
+
export declare function launchVerdict(call: LaunchCall): Verdict;
|
|
272
|
+
export declare const claudeCodeHooks: HookHost;
|
|
273
|
+
export declare function claudeLiveSession(json: string, sessionId: string): LiveSession | undefined;
|
|
274
|
+
export declare const claudeCodeLaunch: LaunchHost;
|
|
209
275
|
export declare function transcriptTitle(path: string): string | undefined;
|
|
210
|
-
export declare function workspaceSettings(workspace: Workspace): Record<string, unknown>;
|
|
211
276
|
export declare function claudeProjectFolder(cwd: string, env?: NodeJS.ProcessEnv): string;
|
|
212
277
|
export declare function claudeConfigFile(env?: NodeJS.ProcessEnv): string;
|
|
278
|
+
export declare function workspaceSettings(workspace: Workspace): Record<string, unknown>;
|
|
213
279
|
export declare const claudeCode: Host;
|
|
280
|
+
export declare const rucherServer: Host;
|
|
214
281
|
export declare const DEFAULT_PURGE_DAYS = 3;
|
|
215
282
|
export declare function purgeDays(value: string | undefined): number;
|
|
283
|
+
export declare const SEARCH_TRIGGERS: string;
|
|
284
|
+
export declare const SEARCH_TRIGGER_NAMES: readonly string[];
|
|
285
|
+
export declare function readClaudeTranscript(path: string, fromOffset: number, maxBytes: number): TranscriptSlice;
|
|
286
|
+
export declare function claudeTranscriptUsage(path: string): TranscriptUsage | undefined;
|
|
287
|
+
export declare function claudeLastContext(path: string): number | undefined;
|
|
216
288
|
export declare const RESUME_EVENTS = 20;
|
|
217
289
|
export declare const RESUME_MAX_CHARACTERS = 2000;
|
|
218
290
|
interface ResumeContextOptions {
|
|
@@ -222,6 +294,7 @@ interface ResumeContextOptions {
|
|
|
222
294
|
export declare function formatEventLine(event: CarnetEvent): string;
|
|
223
295
|
export declare function sessionLabel(session: Session): string;
|
|
224
296
|
export declare function resumeContext(carnet: Carnet, session: Session, { events, maxCharacters }?: ResumeContextOptions): string;
|
|
297
|
+
export declare function resumeSummary(carnet: Carnet, session: Session): string;
|
|
225
298
|
export declare const PAIRING_WINDOW_MILLISECONDS = 60000;
|
|
226
299
|
export declare const STOPPED_NOTE = "stopped without agent_done";
|
|
227
300
|
export declare const NOTE_MAX = 60;
|
|
@@ -250,6 +323,7 @@ interface RenderResult {
|
|
|
250
323
|
runDirectory: string;
|
|
251
324
|
written: string[];
|
|
252
325
|
removed: string[];
|
|
326
|
+
notices: string[];
|
|
253
327
|
}
|
|
254
328
|
interface RunDirectoryRenderOptions {
|
|
255
329
|
env?: NodeJS.ProcessEnv | undefined;
|
|
@@ -261,6 +335,135 @@ export declare const MARKDOWN_MARKER = "<!-- generated by rucher, do not edit --
|
|
|
261
335
|
export declare function markdownCopy(content: string): string;
|
|
262
336
|
export declare function removeStaleCopies(directory: string, keep: ReadonlySet<string>): string[];
|
|
263
337
|
export declare function writeGenerated(path: string, content: string): boolean;
|
|
264
|
-
export declare function mergeSettings(base: Record<string, unknown>, extra: Record<string, unknown
|
|
265
|
-
export
|
|
338
|
+
export declare function mergeSettings(base: Record<string, unknown>, extra: Record<string, unknown>, leafAt?: (path: readonly string[]) => boolean, path?: readonly string[]): Record<string, unknown>;
|
|
339
|
+
export declare const DEFAULT_PROFILE = "off";
|
|
340
|
+
export declare const BUILT_IN_PROFILE_NAMES: string[];
|
|
341
|
+
export declare const BUILT_IN_PROFILE_NOTES: Record<string, string>;
|
|
342
|
+
export declare function builtInProfileSource(name: string): Source;
|
|
343
|
+
export declare const LAYERS: readonly ['built-in', 'user', 'workspace'];
|
|
344
|
+
type Layer = (typeof LAYERS)[number];
|
|
345
|
+
interface Definition<T> {
|
|
346
|
+
name: string;
|
|
347
|
+
layer: Layer;
|
|
348
|
+
path?: string | undefined;
|
|
349
|
+
extends?: string | undefined;
|
|
350
|
+
/** Own values, before extends; undefined when the file is invalid. */
|
|
351
|
+
value?: T | undefined;
|
|
352
|
+
body: string;
|
|
353
|
+
error?: string | undefined;
|
|
354
|
+
}
|
|
355
|
+
interface Resolved<T> {
|
|
356
|
+
name: string;
|
|
357
|
+
layer: Layer;
|
|
358
|
+
path?: string | undefined;
|
|
359
|
+
body: string;
|
|
360
|
+
value: T;
|
|
361
|
+
/** The definition first, then each base it extends. */
|
|
362
|
+
chain: Definition<T>[];
|
|
363
|
+
}
|
|
364
|
+
interface LayerProblem {
|
|
365
|
+
name?: string | undefined;
|
|
366
|
+
layer: Layer;
|
|
367
|
+
path?: string | undefined;
|
|
368
|
+
message: string;
|
|
369
|
+
}
|
|
370
|
+
interface Layered<T> {
|
|
371
|
+
/** The definition each name resolves to: the one of the highest layer. */
|
|
372
|
+
top: Map<string, Definition<T>>;
|
|
373
|
+
resolved: Map<string, Resolved<T>>;
|
|
374
|
+
problems: LayerProblem[];
|
|
375
|
+
}
|
|
376
|
+
interface LayeredOptions<T> {
|
|
377
|
+
builtIns: {
|
|
378
|
+
name: string;
|
|
379
|
+
extends?: string;
|
|
380
|
+
value: T;
|
|
381
|
+
body?: string;
|
|
382
|
+
}[];
|
|
383
|
+
directories: {
|
|
384
|
+
layer: Exclude<Layer, 'built-in'>;
|
|
385
|
+
path: string;
|
|
386
|
+
}[];
|
|
387
|
+
/** Frontmatter minus name and extends; throws with a message on invalid values. */
|
|
388
|
+
parse: (meta: Record<string, unknown>, path: string) => T;
|
|
389
|
+
merge: (base: T, child: T) => T;
|
|
390
|
+
/** Problems of a resolved definition, which then stops resolving. */
|
|
391
|
+
check?: (value: T, name: string) => string[];
|
|
392
|
+
}
|
|
393
|
+
/** Built-in, user then workspace definitions; a same name replaces the one below it. */
|
|
394
|
+
export declare function loadLayered<T>(options: LayeredOptions<T>): Layered<T>;
|
|
395
|
+
export declare const CONFIG_LEVELS: readonly ['default', 'global', 'workspace', 'session'];
|
|
396
|
+
type ConfigLevel = (typeof CONFIG_LEVELS)[number];
|
|
397
|
+
interface KeySource {
|
|
398
|
+
level: ConfigLevel;
|
|
399
|
+
/** `default`, `profile <name>` or `key` */
|
|
400
|
+
origin: string;
|
|
401
|
+
}
|
|
402
|
+
interface ResolvedConfig {
|
|
403
|
+
values: Map<string, unknown>;
|
|
404
|
+
sources: Map<string, KeySource>;
|
|
405
|
+
problems: string[];
|
|
406
|
+
}
|
|
407
|
+
type ProfileLookup = (name: string) => Source;
|
|
408
|
+
interface ConfigLevels {
|
|
409
|
+
global?: Source | undefined;
|
|
410
|
+
workspace?: Source | undefined;
|
|
411
|
+
session?: Source | undefined;
|
|
412
|
+
/** Built-in profiles only when omitted. */
|
|
413
|
+
profiles?: ProfileLookup | undefined;
|
|
414
|
+
}
|
|
415
|
+
/** The value a key takes when `value` is written over `below`. */
|
|
416
|
+
export declare function overlay(key: string, below: unknown, value: unknown): unknown;
|
|
417
|
+
/** Nothing commits or pushes the main branch: checked on resolved configs and on profiles. */
|
|
418
|
+
export declare function branchProblems(values: Map<string, unknown>): string[];
|
|
419
|
+
/** Levels stack from Rucher defaults to the session; per key the last write wins */
|
|
420
|
+
export declare function resolveConfig(levels?: ConfigLevels): ResolvedConfig;
|
|
421
|
+
type RunContext = 'fork' | 'cold' | 'promote';
|
|
422
|
+
interface ResolveRunInput {
|
|
423
|
+
kind: string;
|
|
424
|
+
context: RunContext;
|
|
425
|
+
override?: RunPair | undefined;
|
|
426
|
+
/** The main's pair for a fork, the agent's for a promotion; unknown fields stay undefined. */
|
|
427
|
+
parent?: RunPair | undefined;
|
|
428
|
+
host: string;
|
|
429
|
+
config?: Omit<ConfigLevels, 'session'> | undefined;
|
|
430
|
+
}
|
|
431
|
+
interface ResolvedRun {
|
|
432
|
+
backend?: Backend | undefined;
|
|
433
|
+
model?: string | undefined;
|
|
434
|
+
source: KeySource | 'parent';
|
|
435
|
+
key?: string | undefined;
|
|
436
|
+
}
|
|
437
|
+
export declare function effectiveRun(resolved: ResolvedConfig, kind: string): {
|
|
438
|
+
pair: RunPair;
|
|
439
|
+
key: string;
|
|
440
|
+
source: KeySource;
|
|
441
|
+
};
|
|
442
|
+
export declare function resolveRun(input: ResolveRunInput): ResolvedRun;
|
|
443
|
+
export declare function sourceLabel(source: KeySource | 'parent'): string;
|
|
444
|
+
export declare const PROFILES_DIRECTORY = "profiles";
|
|
445
|
+
export declare function profileValues(meta: Record<string, unknown>): Source;
|
|
446
|
+
export declare function profileDirectories(env?: NodeJS.ProcessEnv, workspace?: Pick<Workspace, 'definition'> | null): {
|
|
447
|
+
layer: 'user' | 'workspace';
|
|
448
|
+
path: string;
|
|
449
|
+
}[];
|
|
450
|
+
export declare function loadProfiles(env?: NodeJS.ProcessEnv, workspace?: Pick<Workspace, 'definition'> | null): Layered<Source>;
|
|
451
|
+
export declare function profileLookup(profiles: Layered<Source>): ProfileLookup;
|
|
452
|
+
export declare function profileSource(name: string, workspace?: Pick<Workspace, 'definition'> | null, env?: NodeJS.ProcessEnv): Source;
|
|
453
|
+
interface Frontmatter {
|
|
454
|
+
meta: Record<string, unknown>;
|
|
455
|
+
body: string;
|
|
456
|
+
}
|
|
457
|
+
/** Throws with a message ready to be prefixed with the file path. */
|
|
458
|
+
export declare function parseFrontmatter(text: string): Frontmatter;
|
|
459
|
+
export declare const CONFIG_FILE = "config.json";
|
|
460
|
+
export declare function globalConfigPath(env?: NodeJS.ProcessEnv): string;
|
|
461
|
+
export declare function readJson(path: string): unknown;
|
|
462
|
+
export declare function loadGlobalConfig(env?: NodeJS.ProcessEnv): Source;
|
|
463
|
+
/** The config keys of a workspace.json; any other key besides the workspace's own is refused. */
|
|
464
|
+
export declare function workspaceConfig(file: Record<string, unknown>, origin: string): Source;
|
|
465
|
+
export declare function eventUsage(event: Pick<CarnetEvent, 'payload'>): TranscriptUsage | undefined;
|
|
466
|
+
export declare function formatTokens(count: number): string;
|
|
467
|
+
export declare function formatUsage(usage: TranscriptUsage): string;
|
|
468
|
+
export { AGENTS_FILE, AGENT_KINDS, AGENT_STATUSES, type Access, type AddNoteInput, type AddNoteResult, type Agent, type AgentContext, type AgentEventType, type AgentKind, type AgentMode, type AgentStatus, type AgentStep, type AppendPromptFile, type AssembledPrompt, type Attachment, type AttachmentInput, BACKENDS, BLOCKED_HEADER, type Backend, type Brief, type BriefOptions, type BriefPart, type BriefPartType, CLAUDE_BACKEND, type CallContext, Carnet, type CarnetErrorCode, type CarnetEvent, type CarnetOptions, type CiteNoteInput, type ClosedAgent, type ConfigFile, type ConfigLevel, type ConfigLevels, type ContextAppendOptions, type ContextOptions, type ContextText, type CreateSessionInput, type CreateWorkspaceOptions, DECIDER_PROVIDERS, DECISION_USAGES, DEFAULT_HALF_LIFE_DAYS, DEFAULT_HOST, DELIVERABLES, DUPLICATE_SIMILARITY, type Definition, type Deliverable, type DenyRule, type DropNoteInput, type DropWorkspaceOptions, EMOJI, EVENT_TYPES, type EventType, type FileMove, type FinishAgentInput, type FolderMove, type Frontmatter, GESTURES, type GitTree, type GitTreeHolder, type GitTreeKind, type HookEnv, type HookHost, type HookSessionPayload, type Host, type HostCommand, type HostPromptPayload, type HostRender, type HostSessionEndPayload, type HostSessionPayload, type HostSubagentPayload, type HostToolPayload, INSTRUCTIONS_FILE, type IndexOptions, KIND_ABBREVIATIONS, KIND_LEGEND, KIND_MODES, KIND_REQUIRED, KIND_TAG_PATTERN, type KeySource, type KindStep, LEGEND, type LaunchCall, type LaunchHost, type LaunchMode, type LaunchPlan, type LaunchPlanInput, type Layer, type LayerProblem, type Layered, type LayeredOptions, type ListAgentsOptions, type ListNotesOptions, type ListReferencesOptions, type ListSessionsOptions, type LiveSession, 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 McpServerEntry, type MemoryOptions, type MergePlan, type MergeResult, type MergeWorkspacesOptions, 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 NoteMatch, type NotesMode, type OpenCarnetOptions, type Orchestration, PUBLISH_FALLBACK_MILLISECONDS, type PrepareForkOptions, type PrepareNewOptions, type PreparedResume, type Produced, type ProfileLookup, type ProjectRelocation, type PromptSession, REFERENCE_SCOPES, REPORTING_NOTE, REPO_INSTRUCTIONS_DIRECTORY, type RecommendedThen, type Reference, type ReferenceScope, type RelocatedFolder, type RenamePlan, type RenameResult, type RenameWorkspaceOptions, type RenderOptions, type RenderResult, type RepoContext, type RepoInstructionsFile, type RepoOwnFile, type ReportDocument, type ResolveRunInput, type ResolveWorkspaceOptions, type Resolved, type ResolvedCarnet, type ResolvedConfig, type ResolvedRun, type ResumeContextOptions, type RucherPaths, type RunContext, type RunDirectoryRenderOptions, type RunPair, type RunningSessionRow, SANDBOX_KINDS, SEARCH_LIMITS, SESSION_EVENT_TYPES, SIMILAR_PREFIX, SNIPPET_CLOSE, SNIPPET_OPEN, STALE_AFTER_ACTIVE_DAYS, type SearchHit, type SearchOptions, type SearchResults, type SearchSource, type Session, type SessionEventType, type SessionKind, type SessionMatch, type SessionStartResult, type SessionStatus, type SetTableInput, type Snapshot, type Source, type StartAgentInput, type StatusLine, type StatusLineOptions, type StatusView, type StatusViewOptions, type StepAgentInput, type SystemAppend, TURNS, type TableItem, type ToolCall, type TranscriptChunk, type TranscriptSlice, type TranscriptUsage, type TreeMove, type Turn, type TurnOptions, USER_ACTION_STATUSES, type UpdateAgentInput, type UserActionStatus, type Verdict, WORKSPACE_FILE, type WeightedNote, type Workspace, type WorkspaceContext, type WorkspaceFile, type MergeResult$1 as WorkspaceMergeResult, type WorkspaceOrigin, type WorkspaceRepo, type WorkspaceResolution, type WorkspaceRowCounts, addWorkspaceRepo, agentMode, allHosts, attachment, attachmentInput, attachments, attachmentsInput, buildBrief, buildLaunchPlan, buildStatusView, checkForkOptions, createWorkspace, definitionInstructions, deliverable, dropWorkspace, expandHome, formatBytes, formatClock, hookHost, hostById, isAgentKind, isAgentStatus, isEventType, isInside, isNoteKind, isUserActionStatus, isWorkspaceName, kindTag, launchEnded, launchHost, launchStarted, listWorkspaces, loadWorkspace, localDay, memoryHalfLife, memoryMaxCharacters, migrateInstructions, openCarnet, openResolvedCarnet, openWorkspaceCarnet, parseConfig, planAsAnswered, prepareFork, prepareNew, prepareResume, produced, recommendedThen, referenceLine, removeWorkspaceRepo, renderAgentLine, renderMainLine, renderMemory, renderNoteLine, renderNotes, renderNotesSummary, renderSections, renderStatus, renderTableLine, repoInstructionFiles, repoInstructionsPath, repoNameFor, repoPathFor, requireWorkspace, resolveWorkspace, searchQuery, serializeWorkspaceFile, sessionNoteActivity, shortId, similarity, snapshot, statusWhenDone, transcriptsIndexed, usableWorkspaceConfig, withWorkspace, workspaceExists, workspaceFileHosts, workspaceHosts, workspaceLabel, workspaceRepoNames };
|
|
266
469
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":["MergeResult"],"sources":["../src/move.ts","../src/workspace-rows.ts","../src/workspace/git-trees.ts","../src/workspace/rename.ts","../src/workspace/merge.ts","../src/workspace/backup.ts","../src/db/open.ts","../src/db/schema.ts","../src/errors.ts","../src/kinds.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/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["MergeResult"],"sources":["../src/move.ts","../src/workspace-rows.ts","../src/workspace/git-trees.ts","../src/workspace/rename.ts","../src/workspace/merge.ts","../src/workspace/backup.ts","../src/db/open.ts","../src/db/schema.ts","../src/errors.ts","../src/kinds.ts","../src/paths.ts","../src/context-files.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/guard.ts","../src/hook/post-tool-use.ts","../src/launch.ts","../src/hosts/claude-code-hooks.ts","../src/hosts/claude-code-launch.ts","../src/hosts/claude-code-store.ts","../src/hosts/claude-code.ts","../src/hosts/rucher.ts","../src/purge.ts","../src/db/search-schema.ts","../src/hosts/claude-code-transcript.ts","../src/hosts/claude-code-usage.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","../src/config/defaults.ts","../src/layers.ts","../src/config/resolve.ts","../src/config/profiles.ts","../src/frontmatter.ts","../src/config/load.ts","../src/usage.ts"],"mappings":";;UAKiB;EACf;EACA;;UAGe;EACf,SAAS;EACT,MAAM;EACN;EACA;EACA;EACA;EACA;;wBA4Bc,YACd,QAAQ,QACR,mBACA,yBACA,UAAS,cACR;wBClCa,qBAAqB,IAAI,cAAc;wBAOvC,yBAAyB,IAAI,cAAc,cAAc;wBAczD,qBAAqB,IAAI,cAAc;wBAIvC,uBAAuB,IAAI,eAAe;wBAU1C,oBAAoB,IAAI,eAAe;UA2DtC;EACf;EACA;EACA;;UAee;EACf;EACA;EACA;;KC5HU;UAEK;EACf;EACA,MAAM;EAEN;;UAGe;EACf;EACA;;UAGe,iBAAiB;EAChC;EACA,SAAS;;wBAsBK,aAAa,cAAc,2BAA+B;UCjBzD;EACf,MAAM,OAAO;EACb;EACA,UAAU;EACV,aAAa;;UAGE;EACf;EACA;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