@mu-crew/mu 3.6.2 → 3.8.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/cli.js +12652 -12264
- package/dist/cli.js.map +1 -1
- package/dist/extension/mu-pi.js +302 -48
- package/dist/extension/mu-pi.js.map +1 -1
- package/dist/index.d.ts +59 -13
- package/dist/index.js +1376 -1205
- package/dist/index.js.map +1 -1
- package/docs/ARCHITECTURE.md +4 -3
- package/docs/architecture/control-socket.md +10 -5
- package/docs/architecture/mux.md +4 -1
- package/docs/guide/delegate.md +25 -3
- package/docs/guide/dispatch.md +22 -5
- package/docs/guide/getting-started.md +2 -2
- package/docs/guide/recovery.md +11 -6
- package/docs/guide/upgrade.md +4 -4
- package/docs/reference/env.md +2 -2
- package/docs/specs/2026-10-03-keep-driving-nudge.md +21 -0
- package/package.json +1 -1
- package/skills/mu/SKILL.md +40 -16
- package/skills/mu/recipes/adversarial-review.md +14 -6
- package/skills/mu/recipes/brief.md +29 -1
- package/skills/mu/recipes/codemode-driver.md +19 -9
- package/skills/mu/recipes/deep-research.md +6 -5
- package/skills/mu/recipes/drift-audit.md +72 -0
- package/skills/mu/recipes/findings.md +24 -15
- package/skills/mu/recipes/hypothesis-panel.md +5 -3
- package/skills/mu/recipes/long-run.md +13 -3
- package/skills/mu/recipes/loop-until-done.md +4 -3
- package/skills/mu/recipes/orchestrator-loop.md +29 -16
- package/skills/mu/recipes/plan.md +10 -6
- package/skills/mu/recipes/refute.md +3 -2
- package/skills/mu/recipes/remote-workers.md +23 -6
- package/skills/mu/recipes/review-panel.md +2 -2
- package/skills/mu/recipes/rules-audit.md +10 -5
- package/skills/mu/recipes/tasks-or-calls.md +40 -23
- package/skills/mu/recipes/tournament.md +4 -3
- package/skills/mu/recipes/ultrathink.md +2 -2
- package/skills/mu/recipes/worker.md +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Database } from 'better-sqlite3';
|
|
2
2
|
|
|
3
|
-
type CtlState = "busy" | "idle"
|
|
3
|
+
type CtlState = "busy" | "idle";
|
|
4
4
|
/** Session commands the `command` op runs: `/new`, `/reload`, `/compact`. */
|
|
5
5
|
declare const CTL_COMMANDS: readonly ["new", "reload", "compact"];
|
|
6
6
|
type CtlCommandName = (typeof CTL_COMMANDS)[number];
|
|
@@ -20,6 +20,8 @@ interface StateReading {
|
|
|
20
20
|
/** ctl only: pi holds queued messages, so an idle reading is about to
|
|
21
21
|
* turn busy. */
|
|
22
22
|
pending?: boolean;
|
|
23
|
+
/** ctl only: pi's settled-run count (`mu agent wait --after-runs`). */
|
|
24
|
+
runs?: number;
|
|
23
25
|
}
|
|
24
26
|
interface StateAgentRef {
|
|
25
27
|
name: string;
|
|
@@ -1134,6 +1136,8 @@ type AbortResult = {
|
|
|
1134
1136
|
settled: boolean;
|
|
1135
1137
|
/** False when the agent was not busy, so no abort was sent. */
|
|
1136
1138
|
aborted: boolean;
|
|
1139
|
+
/** pi had queued messages before the abort (pi returns them to the editor). */
|
|
1140
|
+
pending: boolean;
|
|
1137
1141
|
elapsedMs: number;
|
|
1138
1142
|
};
|
|
1139
1143
|
type AbortAgentOptions = {
|
|
@@ -1143,6 +1147,26 @@ type AbortAgentOptions = {
|
|
|
1143
1147
|
socket?: string;
|
|
1144
1148
|
};
|
|
1145
1149
|
declare function abortAgent(db: Db, name: string, opts: AbortAgentOptions): Promise<AbortResult>;
|
|
1150
|
+
type InterruptResult = {
|
|
1151
|
+
/** pi was busy, so its turn was aborted before the send. */
|
|
1152
|
+
wasBusy: boolean;
|
|
1153
|
+
/** pi had queued messages before the abort; pi put them back in the pane's editor. */
|
|
1154
|
+
pending: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* pi's run count after the aborted run settled and before the send: the
|
|
1157
|
+
* `mu agent wait --after-runs` baseline for the run the text starts.
|
|
1158
|
+
*/
|
|
1159
|
+
runs?: number;
|
|
1160
|
+
/** The extension predates the interrupt op: mu ran abort, then send. */
|
|
1161
|
+
fallback: boolean;
|
|
1162
|
+
};
|
|
1163
|
+
/**
|
|
1164
|
+
* Make a pi agent act on `text` now: abort a running turn, wait for pi to
|
|
1165
|
+
* settle (AgentAbortTimeoutError after timeoutMs, text not sent), then
|
|
1166
|
+
* send `text` as a new run. Never pastes: non-pi agents get
|
|
1167
|
+
* AgentAbortNeedsCtlError.
|
|
1168
|
+
*/
|
|
1169
|
+
declare function interruptAgent(db: Db, name: string, text: string, opts: AbortAgentOptions): Promise<InterruptResult>;
|
|
1146
1170
|
|
|
1147
1171
|
type VcsBackendName = "jj" | "sl" | "git" | "none";
|
|
1148
1172
|
interface RebaseResult {
|
|
@@ -1463,7 +1487,10 @@ type SpawnedAgent = AgentRow & {
|
|
|
1463
1487
|
* 4. setPaneTitle + enableMuPaneBordersForPane.
|
|
1464
1488
|
* 5. finalizeAgentRow() — patch placeholder pane_id to real (workspace
|
|
1465
1489
|
* path), or insert a fresh agent row (no-workspace path).
|
|
1466
|
-
* 6. awaitSpawnLiveness()
|
|
1490
|
+
* 6. Liveness: awaitSpawnLiveness() (fixed sleep, then pane + scan
|
|
1491
|
+
* check), or for a tmux pi agent the ctl handshake with a pane
|
|
1492
|
+
* check per tick and the scan at the end. herdr: startAgentInPane.
|
|
1493
|
+
* 7. ctl handshake for herdr pi agents (outside the rollback).
|
|
1467
1494
|
*
|
|
1468
1495
|
* Failure between any of (3)–(6) calls rollbackSpawn() to undo the
|
|
1469
1496
|
* pane + row + workspace. The caller-visible error is preserved.
|
|
@@ -1648,7 +1675,9 @@ declare class AgentDiedOnSpawnError extends Error implements HasNextSteps {
|
|
|
1648
1675
|
readonly remote: boolean;
|
|
1649
1676
|
constructor(agentName: string, paneId: string, scrollback: string | undefined,
|
|
1650
1677
|
/** The command the pane ran; an `ssh ...` command gets remote hints. */
|
|
1651
|
-
command?: string | undefined
|
|
1678
|
+
command?: string | undefined,
|
|
1679
|
+
/** When it died; default `within <MU_SPAWN_LIVENESS_MS>ms of spawn`. */
|
|
1680
|
+
when?: string);
|
|
1652
1681
|
errorNextSteps(): NextStep[];
|
|
1653
1682
|
}
|
|
1654
1683
|
/**
|
|
@@ -1694,7 +1723,9 @@ declare class AgentSpawnStartupError extends Error implements HasNextSteps {
|
|
|
1694
1723
|
matchedLine: string,
|
|
1695
1724
|
/** Full captured scrollback (tail-trimmed already by
|
|
1696
1725
|
* awaitSpawnLiveness). Attached to the message for context. */
|
|
1697
|
-
scrollback: string
|
|
1726
|
+
scrollback: string,
|
|
1727
|
+
/** When it was seen; default `within <MU_SPAWN_LIVENESS_MS>ms of spawn`. */
|
|
1728
|
+
when?: string);
|
|
1698
1729
|
errorNextSteps(): NextStep[];
|
|
1699
1730
|
}
|
|
1700
1731
|
/**
|
|
@@ -1921,6 +1952,15 @@ type Transport = "ctl" | "mux";
|
|
|
1921
1952
|
type SendResult = {
|
|
1922
1953
|
transport: Transport;
|
|
1923
1954
|
state?: CtlState;
|
|
1955
|
+
/**
|
|
1956
|
+
* ctl only: pi's completed-run count. For a plain send it is measured
|
|
1957
|
+
* before dispatch (the `mu agent wait --after-runs` baseline); for
|
|
1958
|
+
* `--fresh` it is the new session's count once its run started.
|
|
1959
|
+
* Absent from an extension that predates it.
|
|
1960
|
+
*/
|
|
1961
|
+
runs?: number;
|
|
1962
|
+
/** ctl only: when pi entered `state` (epoch ms), from the same status. */
|
|
1963
|
+
since?: number;
|
|
1924
1964
|
/** Set when the text ran as a pi session command over ctl. */
|
|
1925
1965
|
command?: CtlCommandName;
|
|
1926
1966
|
};
|
|
@@ -2357,6 +2397,12 @@ type CloseSubstate = (typeof TASK_SUBSTATES)["CLOSED"][number];
|
|
|
2357
2397
|
interface EvidenceOption {
|
|
2358
2398
|
evidence?: string;
|
|
2359
2399
|
}
|
|
2400
|
+
/** Evidence plus the actor its note is attributed to. The CLI passes
|
|
2401
|
+
* `resolveActorIdentity()`; without it the note has no author and
|
|
2402
|
+
* renders as `<orchestrator>`. */
|
|
2403
|
+
interface AttributedEvidence extends EvidenceOption {
|
|
2404
|
+
author?: string;
|
|
2405
|
+
}
|
|
2360
2406
|
interface SetStatusOptions extends EvidenceOption {
|
|
2361
2407
|
workstream: string;
|
|
2362
2408
|
/** Substate to land on; defaults to DEFAULT_SUBSTATE[status]. A pair
|
|
@@ -2444,7 +2490,7 @@ interface CloseTaskResult extends SetStatusResult {
|
|
|
2444
2490
|
declare function closeTask(db: Db, localId: string, opts: CloseTaskOptions): CloseTaskResult | CloseSkippedResult;
|
|
2445
2491
|
/** Convenience: setTaskStatus(db, id, "OPEN"). Owner intentionally NOT
|
|
2446
2492
|
* cleared — use `releaseTask` for that. Accepts evidence. */
|
|
2447
|
-
declare function openTask(db: Db, localId: string, opts:
|
|
2493
|
+
declare function openTask(db: Db, localId: string, opts: AttributedEvidence & {
|
|
2448
2494
|
workstream: string;
|
|
2449
2495
|
}): SetStatusResult;
|
|
2450
2496
|
interface ParkTaskOptions extends EvidenceOption {
|
|
@@ -2466,11 +2512,11 @@ declare function parkTask(db: Db, localId: string, opts: ParkTaskOptions): SetSt
|
|
|
2466
2512
|
* real work, back in `ready` / `next`. A no-op (`changed: false`) on any
|
|
2467
2513
|
* other pair. Declining is `close --as rejected | duplicate --why`.
|
|
2468
2514
|
*/
|
|
2469
|
-
declare function acceptTask(db: Db, localId: string, opts:
|
|
2515
|
+
declare function acceptTask(db: Db, localId: string, opts: AttributedEvidence & {
|
|
2470
2516
|
workstream: string;
|
|
2471
2517
|
}): SetStatusResult;
|
|
2472
2518
|
/** OPEN/parked → OPEN/todo. A no-op (`changed: false`) on any other pair. */
|
|
2473
|
-
declare function unparkTask(db: Db, localId: string, opts:
|
|
2519
|
+
declare function unparkTask(db: Db, localId: string, opts: AttributedEvidence & {
|
|
2474
2520
|
workstream: string;
|
|
2475
2521
|
}): SetStatusResult;
|
|
2476
2522
|
|
|
@@ -2484,7 +2530,7 @@ interface ReleaseResult {
|
|
|
2484
2530
|
/** True iff owner OR status actually changed. */
|
|
2485
2531
|
changed: boolean;
|
|
2486
2532
|
}
|
|
2487
|
-
interface ReleaseTaskOptions extends
|
|
2533
|
+
interface ReleaseTaskOptions extends AttributedEvidence {
|
|
2488
2534
|
/** Workstream context for the task (v5: tasks.local_id is
|
|
2489
2535
|
* per-workstream unique). */
|
|
2490
2536
|
workstream: string;
|
|
@@ -2512,7 +2558,7 @@ interface ReleaseTaskOptions extends EvidenceOption {
|
|
|
2512
2558
|
* Throws TaskNotFoundError on missing.
|
|
2513
2559
|
*/
|
|
2514
2560
|
declare function releaseTask(db: Db, localId: string, opts: ReleaseTaskOptions): ReleaseResult;
|
|
2515
|
-
interface ClaimTaskOptions extends
|
|
2561
|
+
interface ClaimTaskOptions extends AttributedEvidence {
|
|
2516
2562
|
/** Workstream context for both the task and the claiming agent.
|
|
2517
2563
|
* v5: agents.name and tasks.local_id are per-workstream unique;
|
|
2518
2564
|
* the task lookup AND the agent FK lookup scope to this
|
|
@@ -3648,8 +3694,8 @@ interface AppendLogOptions {
|
|
|
3648
3694
|
payload: string;
|
|
3649
3695
|
/** Structured intent. Set by `emitEvent` for the local-only changes
|
|
3650
3696
|
* no trigger can see. Stays null for operator-authored `mu log
|
|
3651
|
-
* write`
|
|
3652
|
-
*
|
|
3697
|
+
* write` lines, which are prose by nature and have no state change
|
|
3698
|
+
* to name. */
|
|
3653
3699
|
intent?: string;
|
|
3654
3700
|
}
|
|
3655
3701
|
/**
|
|
@@ -3725,7 +3771,7 @@ declare function emitEvent(db: Db, workstream: string | null, intent: LocalInten
|
|
|
3725
3771
|
* `string` so a typo is a compile error and the set stays auditable —
|
|
3726
3772
|
* `mu log`'s formatter (v2-log-verb) switches on exactly these.
|
|
3727
3773
|
*/
|
|
3728
|
-
type LocalIntent = "agent.spawn" | "agent.close" | "agent.adopt" | "agent.kick" | "agent.stall" | "workspace.create" | "workspace.free" | "workspace.refresh";
|
|
3774
|
+
type LocalIntent = "agent.spawn" | "agent.close" | "agent.adopt" | "agent.kick" | "agent.send" | "agent.stall" | "workspace.create" | "workspace.free" | "workspace.refresh";
|
|
3729
3775
|
|
|
3730
3776
|
interface Track {
|
|
3731
3777
|
/** Goal tasks (no outgoing edges) belonging to this track. */
|
|
@@ -5243,4 +5289,4 @@ declare function summarizeWorkstream(db: Db, opts: WorkstreamOptions): Promise<W
|
|
|
5243
5289
|
*/
|
|
5244
5290
|
declare function teardownWorkstream(db: Db, opts: TeardownWorkstreamOptions): Promise<TeardownResult>;
|
|
5245
5291
|
|
|
5246
|
-
export { AGENT_STATE_GLYPH, type AbortAgentOptions, type AbortResult, type AddNoteOptions, type AddTaskOptions, type AdoptAgentOptions, type AdoptAgentResult, AgentAbortNeedsCtlError, AgentAbortTimeoutError, AgentBusyError, AgentCtlUnreachableError, AgentDiedOnSpawnError, AgentExistsError, AgentFreshNeedsCtlError, AgentNotFoundError, AgentNotInWorkstreamError, type AgentRow, AgentSlashCommandUnsupportedError, AgentSpawnCliNotFoundError, AgentSpawnStartupError, type AmbientOptions, type AmbientResult, type AppendLogOptions, type ApplyResult, type BlockEdgeResult, CAPTURE_TRIGGER_DDL, CURRENT_SCHEMA_VERSION, type CaptureDb, type CaptureIntent, type CaptureOptions, type CaseCollision, type CheapDriftReport, type ClaimResult, type ClaimTaskOptions, ClaimerNotRegisteredError, type CloseAgentOptions, type CloseAgentResult, type CloseSubstate, type CloseTaskResult, type CommandResolutionResult, type CommandResolver, CrossWorkstreamEdgeError, type CtlLink, CycleError, DEFAULT_SUBSTATE, DRIFT_REPORT_CAP, type Db, type DeleteTaskResult, type DoctorCheck, type DoctorStatus, type DoctorSummary, DriftDetectedError, type DriftRecord, type DriftReport, EXPECTED_TABLES, type EvidenceOption, type FileLockOptions, type FleetHazard, type FlushResult, type FsProbe, type FullDag, GLYPH, type GroupSummary, type HazardSeverity, type Hlc, HlcOverflowError, HlcParseError, HomeDirAsProjectRootError, type IdFromTitleResult, type IngestFromDbResult, type IngestResult, type InsertAgentInput, InvalidSubstateError, type InverseOp, KNOWN_INTENTS, KNOWN_VERBS, type KickAgentOptions, type KickAgentResult, type KickProcessExecutor, type KickSignal, type KnownIntent, LinkConflictError, type LinkState, type LinkStatus, type ListLiveAgentsOptions, type ListLogsOptions, type ListNotesOptions, type ListReadyOptions, type ListTasksOptions, type LiveAgent, type LiveAgentsView, type LoadFullDagOptions, type LoadWorkstreamSnapshotOptions, type LocalIntent, type LogKind, type LogRow, MACHINE_LOCAL_ENTITIES, MACHINE_LOCAL_TABLES, MU_SHIM_MARKER, MachineIdentityMissingError, type MachineLocalEntity, type MachineLocalLoss, type MachineLocalTable, type MuxBackend, type MuxBackendName, MuxError, type MuxPane, type MuxPaneStatus, type MuxSession, type MuxWindow, type NewSessionOptions, type NewWindowOptions, NoForegroundProcessError, NoMultiplexerError, NothingToUndoError, OP_CTX_DDL, type Op, type OpContext, OpEntityNotSyncedError, OpKeyMalformedError, type OpenDbOptions, type OwnedTasksSummary, PANE_ID_RE, PEER_SHORT_LEN, PEER_STALE_MS, PORTABLE_TABLES, PaneNotFoundError, type ParkTaskOptions, type PeerSegment, type PeerStatus, type PortableTable, type RebuildOptions, type RebuildReport, RebuildTargetExistsError, RebuildTargetIsSourceError, type ReconcileMode, type ReconcileOptions, type ReconcileReport, type ReleaseResult, type ReleaseTaskOptions, type RemoveBlockEdgeResult, type RenderableOp, type RenderedOp, type ReparentTaskResult, type RoiBucket, type RuntimeState, SEGMENT_FORMAT_VERSION, SYNCED_ENTITIES, SchemaTooOldError, type SegmentDefect, type SegmentDefectKind, type SegmentLine, type SegmentManifest, type SendOptions, type SendResult, type SendWarning, type SetStatusOptions, type SetStatusResult, type SlugifyResult, type SpawnAgentOptions, type SplitWindowOptions, type StateReading, type StateSource, type StrandedWorkspaceOrphan, SubstateReasonRequiredError, type SyncPassResult, SyncPeerNotFoundError, SyncPeerRefAmbiguousError, SyncSourceNotFoundError, type SyncedEntity, TASK_STATUSES, TASK_STATUS_LIST, TASK_SUBSTATES, TASK_SUBSTATE_ROWS, TaskAlreadyOwnedError, type TaskEdgeWithStatus, type TaskEdges, type TaskEdgesWithStatus, TaskExistsError, TaskInTriageError, TaskNotFoundError, TaskNotInWorkstreamError, type TaskNoteRow, type TaskPair, TaskParkStateError, TaskParkedError, type TaskRow, type TaskStatus, type TaskSubstate, type TaskWaitOptions, type TaskWaitRef, type TaskWaitResult, type TaskWaitTaskState, type TeardownResult, TmuxError, type TmuxExecResult, type TmuxExecutor, type TmuxPane, type TmuxSession, type TmuxWindow, type Track, type Transport, UNKNOWN_REASON, UndoGroupNotFoundError, type UndoOptions, type UndoPlan, type UndoResult, UndoSupersededError, type UpdateTaskOptions, type UpdateTaskResult, type VcsBackend, type VcsBackendName, WORKSPACE_STALE_THRESHOLD, WorkspaceExistsError, type WorkspaceFailure, WorkspaceNotFoundError, type WorkspaceOrphan, WorkspacePathNotEmptyError, WorkspacePreservedError, type WorkspaceRow, type WorkspaceStaleness, WorkstreamExistsError, WorkstreamNameInvalidError, type WorkstreamOptions, type WorkstreamSnapshot, type WorkstreamSnapshotSlowFields, type WorkstreamSummary, abortAgent, acceptTask, activeMux, addBlockEdge, addNote, addTask, adoptAgent, agentKey, agentStateGlyph, agentStateHistogram, ambientFlush, ambientIngest, ambientSyncPass, appendLog, applyIncomingOp, applyOp, applyOps, assertValidPaneId, awaitPaneQuiescence, backendByName, capturePane, checkCaseCollisions, checkCheapDriftInvariant, checkCommandResolvable, checkDbInsideSyncDir, checkDrift, checkFleetHazards, checkNetworkMount, claimTask, classifyFsType, closeAgent, closeTask, compareHlc, composeAgentTitle, countProblems, createWorkspace, ctlRuntimeState, currentAgentName, currentOpContext, currentPaneTitle, decorateWithDirty, decorateWithStaleness, defaultDbPath, defaultSendDelayMs, defaultSendReadinessMs, defaultSpawnLivenessMs, defaultStateDir, deleteAgent, deleteTask, detectBackend, detectMux, discoverPeers, driftRemediation, emitEvent, ensureWorkstream, envVarNameForCli, expectsCtl, findCaseCollisions, flushSegment, foregroundPgid, formatDriftRecord, formatHlc, formatPair, freeWorkspace, getAgent, getAgentByPane, getParallelTracks, getPrerequisites, getTask, getTaskEdges, getTaskEdgesWithStatus, getWaitPollCount, getWatermark, getWorkspaceForAgent, getWorkspaceStaleness, gitBackend, hasWorkMarker, idFromTitle, idFromTitleVerbose, ingestFromDb, ingestSegment, insertAgent, inspectLinks, installCapture, isKickSignal, isPathInside, isTaskStatus, isValidAgentName, isValidPair, isValidPaneId, isValidTaskId, isValidWorkstreamName, isWorkspaceStale, jjBackend, kickAgent, killPane, killSession, latestSeq, linkPi, linkSkill, listAgents, listAllOrphanWorkspaces, listBlocked, listGoals, listInProgress, listLiveAgents, listLogs, listNotes, listPanes, listPanesInSession, listReady, listRecentClosed, listRecentGroups, listSessions, listTasks, listTasksByOwner, listWindows, listWorkspaceOrphans, listWorkspaces, listWorkstreams, loadDoctorChecks, loadDoctorSummary, loadFullDag, loadWorkstreamSnapshot, loadWorkstreamSnapshotFast, loadWorkstreamSnapshotSlow, localMachineId, locksDir, mapLegacyStatus, mergeSnapshotFastSlow, mostRecentGroup, murmurAvailable, mux, muxByName, newSession, newSessionWithPane, newWindow, nextHlc, noneBackend, opSubject, openDb, openTask, paneExists, paneTTY, parkTask, parseAgentNameFromTitle, parseHlc, parseOpKey, parsePsTtyOutput, peerStatuses, planUndo, priorFieldValue, probeFilesystem, readAgent, readAgentStates, readFileLockMeta, readManifest, rebuildInto, receiveHlc, reconcile, refreshAgentTitle, releaseTask, remediationParagraph, removeBlockEdge, renderForest, renderOp, renderOpLine, renderTaskTree, repairPeer, reparentTask, resetCommandResolverForTests, resetKickProcessExecutor, resetMux, resetSleep, resetTmuxExecutor, resetWaitPollCount, resetWatermark, resolveActorIdentity, resolveCliCommand, resolveCliCommandWithSource, resolveGroupId, resolvePair, resolvePeerRef, roiBucket, segmentLineCount, segmentPath, selectLayout, sendToAgent, sendToPane, sendViaTransport, sessionExists, setCommandResolverForTests, setKickProcessExecutor, setMuxForTests, setPaneTitle, setSleepForTests, setTaskStatus, setTmuxExecutor, setWaitSleepForTests, setWaitStuckWarnForTests, setWatermark, slBackend, sleep, slugifyTitle, slugifyTitleVerbose, spawnAgent, splitWindow, summarizeOwnedTasks, summarizeWorkstream, syncDir, syncEnabled, syncPass, teardownWorkstream, tmux, tmuxBackend, transportNextSteps, undoGroup, unparkTask, updateTask, verifyAgainstManifest, waitForTasks, withCaptureSuppressed, withFileLock, withOpContext, workspacePath, workspacesRoot, yankCommandForCheck };
|
|
5292
|
+
export { AGENT_STATE_GLYPH, type AbortAgentOptions, type AbortResult, type AddNoteOptions, type AddTaskOptions, type AdoptAgentOptions, type AdoptAgentResult, AgentAbortNeedsCtlError, AgentAbortTimeoutError, AgentBusyError, AgentCtlUnreachableError, AgentDiedOnSpawnError, AgentExistsError, AgentFreshNeedsCtlError, AgentNotFoundError, AgentNotInWorkstreamError, type AgentRow, AgentSlashCommandUnsupportedError, AgentSpawnCliNotFoundError, AgentSpawnStartupError, type AmbientOptions, type AmbientResult, type AppendLogOptions, type ApplyResult, type BlockEdgeResult, CAPTURE_TRIGGER_DDL, CURRENT_SCHEMA_VERSION, type CaptureDb, type CaptureIntent, type CaptureOptions, type CaseCollision, type CheapDriftReport, type ClaimResult, type ClaimTaskOptions, ClaimerNotRegisteredError, type CloseAgentOptions, type CloseAgentResult, type CloseSubstate, type CloseTaskResult, type CommandResolutionResult, type CommandResolver, CrossWorkstreamEdgeError, type CtlLink, CycleError, DEFAULT_SUBSTATE, DRIFT_REPORT_CAP, type Db, type DeleteTaskResult, type DoctorCheck, type DoctorStatus, type DoctorSummary, DriftDetectedError, type DriftRecord, type DriftReport, EXPECTED_TABLES, type EvidenceOption, type FileLockOptions, type FleetHazard, type FlushResult, type FsProbe, type FullDag, GLYPH, type GroupSummary, type HazardSeverity, type Hlc, HlcOverflowError, HlcParseError, HomeDirAsProjectRootError, type IdFromTitleResult, type IngestFromDbResult, type IngestResult, type InsertAgentInput, InvalidSubstateError, type InverseOp, KNOWN_INTENTS, KNOWN_VERBS, type KickAgentOptions, type KickAgentResult, type KickProcessExecutor, type KickSignal, type KnownIntent, LinkConflictError, type LinkState, type LinkStatus, type ListLiveAgentsOptions, type ListLogsOptions, type ListNotesOptions, type ListReadyOptions, type ListTasksOptions, type LiveAgent, type LiveAgentsView, type LoadFullDagOptions, type LoadWorkstreamSnapshotOptions, type LocalIntent, type LogKind, type LogRow, MACHINE_LOCAL_ENTITIES, MACHINE_LOCAL_TABLES, MU_SHIM_MARKER, MachineIdentityMissingError, type MachineLocalEntity, type MachineLocalLoss, type MachineLocalTable, type MuxBackend, type MuxBackendName, MuxError, type MuxPane, type MuxPaneStatus, type MuxSession, type MuxWindow, type NewSessionOptions, type NewWindowOptions, NoForegroundProcessError, NoMultiplexerError, NothingToUndoError, OP_CTX_DDL, type Op, type OpContext, OpEntityNotSyncedError, OpKeyMalformedError, type OpenDbOptions, type OwnedTasksSummary, PANE_ID_RE, PEER_SHORT_LEN, PEER_STALE_MS, PORTABLE_TABLES, PaneNotFoundError, type ParkTaskOptions, type PeerSegment, type PeerStatus, type PortableTable, type RebuildOptions, type RebuildReport, RebuildTargetExistsError, RebuildTargetIsSourceError, type ReconcileMode, type ReconcileOptions, type ReconcileReport, type ReleaseResult, type ReleaseTaskOptions, type RemoveBlockEdgeResult, type RenderableOp, type RenderedOp, type ReparentTaskResult, type RoiBucket, type RuntimeState, SEGMENT_FORMAT_VERSION, SYNCED_ENTITIES, SchemaTooOldError, type SegmentDefect, type SegmentDefectKind, type SegmentLine, type SegmentManifest, type SendOptions, type SendResult, type SendWarning, type SetStatusOptions, type SetStatusResult, type SlugifyResult, type SpawnAgentOptions, type SplitWindowOptions, type StateReading, type StateSource, type StrandedWorkspaceOrphan, SubstateReasonRequiredError, type SyncPassResult, SyncPeerNotFoundError, SyncPeerRefAmbiguousError, SyncSourceNotFoundError, type SyncedEntity, TASK_STATUSES, TASK_STATUS_LIST, TASK_SUBSTATES, TASK_SUBSTATE_ROWS, TaskAlreadyOwnedError, type TaskEdgeWithStatus, type TaskEdges, type TaskEdgesWithStatus, TaskExistsError, TaskInTriageError, TaskNotFoundError, TaskNotInWorkstreamError, type TaskNoteRow, type TaskPair, TaskParkStateError, TaskParkedError, type TaskRow, type TaskStatus, type TaskSubstate, type TaskWaitOptions, type TaskWaitRef, type TaskWaitResult, type TaskWaitTaskState, type TeardownResult, TmuxError, type TmuxExecResult, type TmuxExecutor, type TmuxPane, type TmuxSession, type TmuxWindow, type Track, type Transport, UNKNOWN_REASON, UndoGroupNotFoundError, type UndoOptions, type UndoPlan, type UndoResult, UndoSupersededError, type UpdateTaskOptions, type UpdateTaskResult, type VcsBackend, type VcsBackendName, WORKSPACE_STALE_THRESHOLD, WorkspaceExistsError, type WorkspaceFailure, WorkspaceNotFoundError, type WorkspaceOrphan, WorkspacePathNotEmptyError, WorkspacePreservedError, type WorkspaceRow, type WorkspaceStaleness, WorkstreamExistsError, WorkstreamNameInvalidError, type WorkstreamOptions, type WorkstreamSnapshot, type WorkstreamSnapshotSlowFields, type WorkstreamSummary, abortAgent, acceptTask, activeMux, addBlockEdge, addNote, addTask, adoptAgent, agentKey, agentStateGlyph, agentStateHistogram, ambientFlush, ambientIngest, ambientSyncPass, appendLog, applyIncomingOp, applyOp, applyOps, assertValidPaneId, awaitPaneQuiescence, backendByName, capturePane, checkCaseCollisions, checkCheapDriftInvariant, checkCommandResolvable, checkDbInsideSyncDir, checkDrift, checkFleetHazards, checkNetworkMount, claimTask, classifyFsType, closeAgent, closeTask, compareHlc, composeAgentTitle, countProblems, createWorkspace, ctlRuntimeState, currentAgentName, currentOpContext, currentPaneTitle, decorateWithDirty, decorateWithStaleness, defaultDbPath, defaultSendDelayMs, defaultSendReadinessMs, defaultSpawnLivenessMs, defaultStateDir, deleteAgent, deleteTask, detectBackend, detectMux, discoverPeers, driftRemediation, emitEvent, ensureWorkstream, envVarNameForCli, expectsCtl, findCaseCollisions, flushSegment, foregroundPgid, formatDriftRecord, formatHlc, formatPair, freeWorkspace, getAgent, getAgentByPane, getParallelTracks, getPrerequisites, getTask, getTaskEdges, getTaskEdgesWithStatus, getWaitPollCount, getWatermark, getWorkspaceForAgent, getWorkspaceStaleness, gitBackend, hasWorkMarker, idFromTitle, idFromTitleVerbose, ingestFromDb, ingestSegment, insertAgent, inspectLinks, installCapture, interruptAgent, isKickSignal, isPathInside, isTaskStatus, isValidAgentName, isValidPair, isValidPaneId, isValidTaskId, isValidWorkstreamName, isWorkspaceStale, jjBackend, kickAgent, killPane, killSession, latestSeq, linkPi, linkSkill, listAgents, listAllOrphanWorkspaces, listBlocked, listGoals, listInProgress, listLiveAgents, listLogs, listNotes, listPanes, listPanesInSession, listReady, listRecentClosed, listRecentGroups, listSessions, listTasks, listTasksByOwner, listWindows, listWorkspaceOrphans, listWorkspaces, listWorkstreams, loadDoctorChecks, loadDoctorSummary, loadFullDag, loadWorkstreamSnapshot, loadWorkstreamSnapshotFast, loadWorkstreamSnapshotSlow, localMachineId, locksDir, mapLegacyStatus, mergeSnapshotFastSlow, mostRecentGroup, murmurAvailable, mux, muxByName, newSession, newSessionWithPane, newWindow, nextHlc, noneBackend, opSubject, openDb, openTask, paneExists, paneTTY, parkTask, parseAgentNameFromTitle, parseHlc, parseOpKey, parsePsTtyOutput, peerStatuses, planUndo, priorFieldValue, probeFilesystem, readAgent, readAgentStates, readFileLockMeta, readManifest, rebuildInto, receiveHlc, reconcile, refreshAgentTitle, releaseTask, remediationParagraph, removeBlockEdge, renderForest, renderOp, renderOpLine, renderTaskTree, repairPeer, reparentTask, resetCommandResolverForTests, resetKickProcessExecutor, resetMux, resetSleep, resetTmuxExecutor, resetWaitPollCount, resetWatermark, resolveActorIdentity, resolveCliCommand, resolveCliCommandWithSource, resolveGroupId, resolvePair, resolvePeerRef, roiBucket, segmentLineCount, segmentPath, selectLayout, sendToAgent, sendToPane, sendViaTransport, sessionExists, setCommandResolverForTests, setKickProcessExecutor, setMuxForTests, setPaneTitle, setSleepForTests, setTaskStatus, setTmuxExecutor, setWaitSleepForTests, setWaitStuckWarnForTests, setWatermark, slBackend, sleep, slugifyTitle, slugifyTitleVerbose, spawnAgent, splitWindow, summarizeOwnedTasks, summarizeWorkstream, syncDir, syncEnabled, syncPass, teardownWorkstream, tmux, tmuxBackend, transportNextSteps, undoGroup, unparkTask, updateTask, verifyAgainstManifest, waitForTasks, withCaptureSuppressed, withFileLock, withOpContext, workspacePath, workspacesRoot, yankCommandForCheck };
|