@staix/agent-hub 0.52.0 → 0.54.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/CHANGELOG.md +37 -0
- package/README.md +4 -3
- package/docs/addons/open-code-review.md +3 -6
- package/docs/agent-notes/README.md +1 -1
- package/docs/agent-notes/adapters.md +5 -4
- package/docs/agent-notes/budget.md +2 -2
- package/docs/agent-notes/bus.md +1 -0
- package/docs/agent-notes/daemon.md +6 -5
- package/docs/agent-notes/models.md +1 -1
- package/docs/agent-notes/tasks.md +3 -3
- package/docs/agent-notes/tests.md +4 -4
- package/docs/contracts/companion-cli-v2.json +90 -0
- package/docs/contracts/companion-cli-v3.json +348 -0
- package/docs/design/adapters.md +1 -1
- package/docs/design/agent-hub-architecture.md +8 -5
- package/docs/design/bus.md +1 -1
- package/docs/design/cli-output-inventory.md +4 -2
- package/docs/design/execution-reference.md +1 -1
- package/docs/design/guidance-experiments.md +1 -0
- package/docs/design/guidance-probes.md +1 -0
- package/docs/design/model-routes.md +20 -5
- package/docs/design/roadmap.md +6 -4
- package/docs/design/task-board.md +21 -2
- package/docs/dogfood.md +13 -6
- package/docs/events.md +1 -1
- package/docs/memory.md +2 -2
- package/docs/operations.md +158 -50
- package/docs/quickstart.md +14 -2
- package/docs/security.md +17 -9
- package/docs/specs/2026-09-19-agent-hub-design.md +5 -3
- package/docs/specs/2026-09-19-multi-project-design.md +1 -1
- package/docs/specs/2026-09-20-upgrade-recovery-design.md +24 -0
- package/docs/specs/2026-12-04-arev-adoption-design.md +84 -0
- package/docs/specs/mcp-endpoint.md +15 -4
- package/docs/specs/relay-contract.md +38 -0
- package/docs/verification/2026-12-04-host-shared-receipts.md +43 -0
- package/docs/verification/2026-12-05-0.53.0.md +101 -0
- package/docs/verification/2026-12-05-agy-1.5.24.md +55 -0
- package/docs/verification/2026-12-05-claude-implementer-2.1.337.md +43 -0
- package/docs/verification/2026-12-06-0.54.0.md +76 -0
- package/docs/verification/2026-12-06-codex-0174-reviewer-isolation.md +43 -0
- package/docs/verification/2026-12-06-codex-0174-reviewer-tool-call.md +34 -0
- package/docs/verification/2026-12-06-compat-codex-capabilities-0.174.0.md +25 -0
- package/docs/verification/2026-12-06-compat-pi-1.8.0.md +23 -0
- package/docs/verified.json +38 -29
- package/package.json +9 -3
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/.mcp.json +1 -1
- package/plugins/agent-hub/compat.json +9 -5
- package/plugins/agent-hub/kimi-hook.js +892 -874
- package/plugins/agent-hub/relay-launcher.js +24 -0
- package/plugins/agent-hub/server.js +27271 -25146
- package/src/adapters/acp-session-model.ts +1 -1
- package/src/adapters/acp.ts +5 -4
- package/src/adapters/agy/definition.ts +1 -1
- package/src/adapters/agy/hooks.ts +1 -1
- package/src/adapters/channel-peer.ts +3 -1
- package/src/adapters/claude-channel-evidence.ts +26 -1
- package/src/adapters/claude-channel.ts +27 -30
- package/src/adapters/claude-connection-policy.ts +62 -0
- package/src/adapters/claude-relay.ts +255 -0
- package/src/adapters/codex-review-isolation.ts +1 -2
- package/src/adapters/compat.ts +28 -18
- package/src/adapters/definitions/native-cli-preview-pi.ts +2 -1
- package/src/adapters/definitions/native-config-defaults.ts +1 -1
- package/src/adapters/definitions/native-context.ts +1 -2
- package/src/adapters/definitions/native-factories.ts +4 -1
- package/src/adapters/definitions/native-quota.ts +1 -1
- package/src/adapters/definitions/native-recovery.ts +3 -1
- package/src/adapters/external-modules.ts +2 -2
- package/src/adapters/kimi-review.ts +1 -1
- package/src/adapters/kimi-tui-facts.ts +1 -1
- package/src/adapters/local-worker.ts +3 -3
- package/src/adapters/native-capabilities.ts +1 -1
- package/src/adapters/pi.ts +26 -7
- package/src/adapters/registry-types.ts +2 -0
- package/src/adapters/relay-launcher.ts +27 -0
- package/src/adapters/reviewer-mcp.ts +1 -1
- package/src/cli/agents.ts +20 -8
- package/src/cli/agy-mcp.ts +1 -1
- package/src/cli/claude-profile-hook.ts +1 -1
- package/src/cli/command-table.ts +1 -0
- package/src/cli/commands/agents.ts +18 -1
- package/src/cli/commands/doctor.ts +18 -4
- package/src/cli/commands/launch-line.ts +32 -0
- package/src/cli/commands/status.ts +14 -3
- package/src/cli/help.ts +7 -4
- package/src/cli/identity.ts +1 -1
- package/src/cli/init-roles.ts +1 -1
- package/src/cli/init-settings.ts +1 -1
- package/src/cli/launch-line-plan.ts +82 -0
- package/src/cli/launch-line-project.ts +13 -0
- package/src/cli/main.ts +10 -9
- package/src/cli/pi-steps-warning.ts +14 -0
- package/src/cli/recovery-package.ts +60 -6
- package/src/cli/reset.ts +1 -1
- package/src/cli/shell-quote.ts +1 -3
- package/src/cli/upgrade-interactive.ts +7 -2
- package/src/cli/upgrade-keep-plan.ts +47 -0
- package/src/cli/upgrade-restore-state.ts +1 -1
- package/src/cli/upgrade-runtime.ts +119 -18
- package/src/cli/upgrade.ts +17 -2
- package/src/hub/accounts.ts +8 -4
- package/src/hub/action-class.ts +1 -3
- package/src/hub/adec-triage.ts +105 -0
- package/src/hub/autonomy.ts +1 -1
- package/src/hub/board.ts +3 -27
- package/src/hub/bus.ts +39 -6
- package/src/hub/capabilities.ts +1 -1
- package/src/hub/channel-project-base.ts +46 -0
- package/src/hub/channel-project.ts +21 -46
- package/src/hub/config-apply.ts +1 -1
- package/src/hub/config-edit.ts +1 -1
- package/src/hub/config-tier.ts +1 -1
- package/src/hub/config.ts +2 -2
- package/src/hub/confirmation-matrix.ts +1 -1
- package/src/hub/control/board-messages.ts +415 -0
- package/src/hub/control/dashboard-messages.ts +221 -0
- package/src/hub/control/delivery-messages.ts +356 -0
- package/src/hub/control/dispatch.ts +114 -0
- package/src/hub/control/hub-tool-helpers.ts +243 -0
- package/src/hub/control/hub-tools.ts +147 -0
- package/src/hub/control/native-messages.ts +665 -0
- package/src/hub/control/operations-messages.ts +269 -0
- package/src/hub/control/peer-messages.ts +126 -0
- package/src/hub/control/recovery-messages.ts +391 -0
- package/src/hub/control/recovery-operation.ts +480 -0
- package/src/hub/control/scope.ts +460 -0
- package/src/hub/control/sdlc-messages.ts +373 -0
- package/src/hub/control/task-ops-more.ts +245 -0
- package/src/hub/control/task-ops.ts +553 -0
- package/src/hub/control/ui-actions.ts +241 -0
- package/src/hub/control-write-trace.ts +1 -4
- package/src/hub/daemon.ts +485 -4324
- package/src/hub/delivery-hints.ts +2 -0
- package/src/hub/delivery-journal.ts +17 -6
- package/src/hub/events.ts +2 -1
- package/src/hub/execution-reference.ts +1 -1
- package/src/hub/host.ts +41 -9
- package/src/hub/hub-tools.ts +3 -4
- package/src/hub/invocations.ts +1 -1
- package/src/hub/lifecycle.ts +4 -3
- package/src/hub/mcp-endpoint-serve.ts +4 -3
- package/src/hub/mcp-endpoint.ts +15 -6
- package/src/hub/memory-profile-check.ts +1 -1
- package/src/hub/no-writes.ts +1 -1
- package/src/hub/peers.ts +2 -0
- package/src/hub/pi-exit-policy.ts +27 -0
- package/src/hub/progress.ts +1 -1
- package/src/hub/project-runtime-state.ts +17 -4
- package/src/hub/project-runtime.ts +3 -1
- package/src/hub/protocol-window.ts +1 -1
- package/src/hub/recovery-continuity.ts +3 -3
- package/src/hub/recovery-kept-roster.ts +50 -0
- package/src/hub/review-anchor.ts +13 -181
- package/src/hub/review-brief.ts +78 -28
- package/src/hub/review-findings.ts +15 -193
- package/src/hub/review-ledger.ts +162 -0
- package/src/hub/review-material.ts +3 -3
- package/src/hub/reviewer-pool.ts +4 -2
- package/src/hub/roadmap-issue-states.ts +65 -14
- package/src/hub/roadmap-sync.ts +39 -14
- package/src/hub/routing.ts +9 -0
- package/src/hub/runtime-capture-prune.ts +8 -2
- package/src/hub/runtime-package-assets.ts +3 -0
- package/src/hub/sdlc-release-policy.ts +1 -2
- package/src/hub/settings.ts +1 -1
- package/src/hub/spec-ack-tool.ts +4 -0
- package/src/hub/spec-report-history.ts +36 -0
- package/src/hub/specs.ts +1 -4
- package/src/hub/supervision.ts +33 -6
- package/src/hub/tasks-audit.ts +390 -0
- package/src/hub/tasks-backlog.ts +522 -0
- package/src/hub/tasks-handoff.ts +208 -0
- package/src/hub/tasks-release.ts +257 -0
- package/src/hub/tasks-roadmap.ts +17 -3
- package/src/hub/tasks-specs.ts +672 -0
- package/src/hub/tasks-types.ts +334 -0
- package/src/hub/tasks.ts +286 -1961
- package/src/hub/upgrade-session-contract.ts +11 -0
- package/src/local/probe-sandbox.ts +1 -2
- package/src/local/probe-workspace.ts +1 -1
- package/src/models/route/config.ts +4 -4
- package/src/models/route/decision.ts +18 -10
- package/src/models/route/observation-signals.ts +1 -2
- package/src/models/route/runtime.ts +8 -5
- package/src/npm-artifact.ts +76 -0
- package/src/omniroute/client.ts +6 -0
- package/src/pi/extension.ts +5 -2
- package/src/pi/install.ts +77 -0
- package/src/pi/pin.ts +49 -0
- package/src/primitives.ts +14 -0
- package/src/version.ts +2 -0
- package/templates/adec/README.md +10 -6
- package/templates/config.json +1 -1
- package/templates/specs.block.md +1 -0
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
// #1830 S2a: the startDaemon-scope names the control handlers read. Every field is a getter over the daemon's own binding (see `daemonScope` in daemon.ts); nothing is copied.
|
|
2
|
+
// Fields are read-only unless a moved handler assigns to the binding. Add a setter in daemon.ts and drop `readonly` only for a name a handler must write.
|
|
3
|
+
import type { ActivityRing } from "../activity.ts";
|
|
4
|
+
import type { BudgetPeerNote } from "../budget-notes.ts";
|
|
5
|
+
import type { ContextWindows } from "../context-window.ts";
|
|
6
|
+
import type { InboxPolling } from "../inbox-polling.ts";
|
|
7
|
+
import type { Inference } from "../inference.ts";
|
|
8
|
+
import type { KimiUsage } from "../kimi-usage.ts";
|
|
9
|
+
import type { View as MemoryView } from "@staix/agent-mem";
|
|
10
|
+
import type { Origin } from "../provenance.ts";
|
|
11
|
+
import type { OwnedInputContext } from "../../adapters/claude-print-child.ts";
|
|
12
|
+
import type { PeerTakeoverClaim } from "../peers.ts";
|
|
13
|
+
import type { RoomChat } from "../../rooms/service.ts";
|
|
14
|
+
import type { RoomCommands } from "../../rooms/commands.ts";
|
|
15
|
+
import type { RoomPreview } from "../../rooms/commands.ts";
|
|
16
|
+
import type { SettingRow } from "../settings.ts";
|
|
17
|
+
import type { SpecTaskInspector } from "../specs-task.ts";
|
|
18
|
+
import type { StartMode } from "../start-mode.ts";
|
|
19
|
+
import type { TerminalLaunches } from "../terminal-launch.ts";
|
|
20
|
+
import type { UsageRollup } from "../usage-rollup.ts";
|
|
21
|
+
import type { redactBusEvent } from "../operational-view.ts";
|
|
22
|
+
import type { DashboardSession } from "../ui.ts";
|
|
23
|
+
import type { ActionBudgets } from "../action-policy.ts";
|
|
24
|
+
import type { ApprovalObserver } from "../../local/tools.ts";
|
|
25
|
+
import type { ClaudeFailureTrace } from "../claude-failure-stage.ts";
|
|
26
|
+
import type { ClaudeTodoSource } from "../peer-doing.ts";
|
|
27
|
+
import type { CompletionStore } from "../completions-store.ts";
|
|
28
|
+
import type { ConfigSources } from "../config-reload.ts";
|
|
29
|
+
import type { DaemonProjectContext } from "../project.ts";
|
|
30
|
+
import type { DeliveryJournal } from "../delivery-journal.ts";
|
|
31
|
+
import type { DoingKind } from "../peer-doing.ts";
|
|
32
|
+
import type { ExternalInstanceBinding } from "../external-instance.ts";
|
|
33
|
+
import type { FloorFacts } from "../action-class.ts";
|
|
34
|
+
import type { FrontendProxyPort } from "../peers.ts";
|
|
35
|
+
import type { GuidanceProbeStore } from "../guidance-probe-store.ts";
|
|
36
|
+
import type { HostShellWrapper } from "../claude-shell-wrapper.ts";
|
|
37
|
+
import type { InstructionReceipts } from "../instruction-receipt.ts";
|
|
38
|
+
import type { InvocationLedger } from "../invocations.ts";
|
|
39
|
+
import type { KeptRoster } from "../recovery-kept-roster.ts";
|
|
40
|
+
import type { ModelOverrides } from "../model-overrides.ts";
|
|
41
|
+
import type { NativeFactsTranscript } from "../../adapters/registry-types.ts";
|
|
42
|
+
import type { NativeHookLaunch } from "../native-hook-launch.ts";
|
|
43
|
+
import type { NativeHookLaunches } from "../native-hook-launch.ts";
|
|
44
|
+
import type { NativeToolObservation } from "../progress.ts";
|
|
45
|
+
import type { PermissionRequest } from "../../adapters/acp.ts";
|
|
46
|
+
import type { QuestionStore } from "../questions.ts";
|
|
47
|
+
import type { RestartPeerSnapshot } from "../restart.ts";
|
|
48
|
+
import type { RestartSnapshot } from "../restart.ts";
|
|
49
|
+
import type { Run } from "../completions.ts";
|
|
50
|
+
import type { RunTracker } from "../completions.ts";
|
|
51
|
+
import type { SandboxNetwork } from "../../local/sandbox.ts";
|
|
52
|
+
import type { TitleCursor } from "../peer-doing.ts";
|
|
53
|
+
import type { TokenWindow } from "../token-window.ts";
|
|
54
|
+
import type { loadConfig } from "../daemon.ts";
|
|
55
|
+
import type { waitForClaudeCompletion } from "../usage.ts";
|
|
56
|
+
import type { createProjectAdapterCatalog } from "../../adapters/registry.ts";
|
|
57
|
+
import type { NativeItem } from "../../memory/brief.ts";
|
|
58
|
+
import type { MemoryClient } from "../../memory/client.ts";
|
|
59
|
+
import type { OmniRoute } from "../../omniroute/client.ts";
|
|
60
|
+
import type { RoomReadInvocationRequest } from "../../rooms/application.ts";
|
|
61
|
+
import type { RoomInvocationIngress } from "../../rooms/service.ts";
|
|
62
|
+
import type { TaskAttribution } from "../attribution.ts";
|
|
63
|
+
import type { Board, Task } from "../board.ts";
|
|
64
|
+
import type { Budget } from "../budget.ts";
|
|
65
|
+
import type { Bus } from "../bus.ts";
|
|
66
|
+
import type { CapabilityManifest } from "../capabilities.ts";
|
|
67
|
+
import type { ContainerRunner, RunReceipt, RunnerState } from "../check-runner.ts";
|
|
68
|
+
import type { Conductor, ConductorHolds } from "../conductor.ts";
|
|
69
|
+
import type { createConfigEditor } from "../config-edit-host.ts";
|
|
70
|
+
import type { HubConfig } from "../config.ts";
|
|
71
|
+
import type { DeliverablePorts } from "../deliverable-files.ts";
|
|
72
|
+
import type { Envelope, PeerId, PeerState } from "../envelope.ts";
|
|
73
|
+
import type { HubEvent, RoleIdentity } from "../events.ts";
|
|
74
|
+
import type { Facts } from "../facts.ts";
|
|
75
|
+
import type { InstancesConfig } from "../instances.ts";
|
|
76
|
+
import type { Limiter } from "../limits.ts";
|
|
77
|
+
import type { ReviewSpend } from "../memory-review.ts";
|
|
78
|
+
import type { PeerAdapter } from "../peers.ts";
|
|
79
|
+
import type { PermissionMode } from "../permission-mode.ts";
|
|
80
|
+
import type { ProgressObserver } from "../progress.ts";
|
|
81
|
+
import type { QuestionDesk } from "../question-desk.ts";
|
|
82
|
+
import type { Routing } from "../routing.ts";
|
|
83
|
+
import type { ScheduleEntry, ScheduleStore } from "../schedules.ts";
|
|
84
|
+
import type { ReleaseAuthorizations } from "../sdlc-release-authorization.ts";
|
|
85
|
+
import type { SdlcConfig } from "../sdlc.ts";
|
|
86
|
+
import type { SettingAuthority, SettingDef } from "../settings.ts";
|
|
87
|
+
import type { HeadMoveCursor, Turns } from "../snapshots.ts";
|
|
88
|
+
import type { SourceMeta, SourceRegistry } from "../sources.ts";
|
|
89
|
+
import type { SupervisionProposal, SupervisionProposals } from "../supervision-proposals.ts";
|
|
90
|
+
import type { Tasks } from "../tasks.ts";
|
|
91
|
+
import type { PreEffectToolRefusal } from "../tool-refusal.ts";
|
|
92
|
+
import type { VisualRecord, VisualStore, VisualSummary } from "../visual.ts";
|
|
93
|
+
import type { MemoryStore } from "@staix/agent-mem";
|
|
94
|
+
import type { AsyncLocalStorage } from "node:async_hooks";
|
|
95
|
+
import type { Tier } from "@staix/agent-mem";
|
|
96
|
+
import type { VisualPayload } from "@staix/agent-console/contract";
|
|
97
|
+
import type { DaemonOptions, Sock } from "../daemon.ts";
|
|
98
|
+
import type { AdapterDefinition } from "../../adapters/registry-types.ts";
|
|
99
|
+
import type { MemoryCodeEdge, MemoryCodeNode, MemoryCodeOverlay } from "../memory-code-overlay.ts";
|
|
100
|
+
import type { SupervisionReceipt } from "../supervision-proposals.ts";
|
|
101
|
+
|
|
102
|
+
import type { ClaudeLaunchProof } from "../claude-launch-proof.ts";
|
|
103
|
+
import type { PeerRoster } from "../roster.ts";
|
|
104
|
+
import type { RecoveryPhase } from "../restart.ts";
|
|
105
|
+
import type { ReviewMaterialBatch, ReviewReadRequest } from "../review-material.ts";
|
|
106
|
+
import type { ToolWriteRegistry } from "../tool-request.ts";
|
|
107
|
+
|
|
108
|
+
export interface GuidanceProbeRequestContext {
|
|
109
|
+
actor: PeerId;
|
|
110
|
+
requestConnectionId: string;
|
|
111
|
+
generation: string | number;
|
|
112
|
+
nativeSession: string | null;
|
|
113
|
+
current: () => void;
|
|
114
|
+
}
|
|
115
|
+
/** What the moved onMessage case bodies close over: the socket, its data, the message and the one reply path. */
|
|
116
|
+
export type ControlMessage = { sock: Sock; c: Sock["data"]; msg: any; reply: (body: Record<string, unknown>) => void };
|
|
117
|
+
|
|
118
|
+
export type TitleResult = { ok: true } | { ok: false; reason: "already_named" | "private" | "invalid"; error: string; mayHaveApplied?: true };
|
|
119
|
+
export type VisualFilePolicy = { pii: string[]; deny: string[] };
|
|
120
|
+
|
|
121
|
+
export type ModelGrant = { source: "cli" | "dashboard"; scope: object | string; current: () => boolean; expiresAt?: number };
|
|
122
|
+
export type ReceiptSurface = "terminal" | "console" | "dashboard" | "acon";
|
|
123
|
+
export type RoadmapDrift = { at: number; findings: { rule: number; milestone: number | null; items: string[]; cause: string; remedy: string }[]; unknown: number[]; truncated?: true };
|
|
124
|
+
|
|
125
|
+
export interface NativeTurnStart { at: number; baseline?: string; generation: string; session: string; launch: string }
|
|
126
|
+
export type ImplementerFailureEntry = { launchId: string; generation: string; signal: AbortSignal; trace: ClaudeFailureTrace; probeCount: number; permissionAttempt: number };
|
|
127
|
+
|
|
128
|
+
export interface DaemonScope {
|
|
129
|
+
readonly activeRouting: () => Routing;
|
|
130
|
+
readonly admit: (env: Envelope, parent?: string) => string | undefined;
|
|
131
|
+
readonly admitOperational: (sock: Sock, command: string) => () => void;
|
|
132
|
+
readonly board: Board;
|
|
133
|
+
readonly boundedSafe: (text: string) => boolean;
|
|
134
|
+
readonly budget: Budget;
|
|
135
|
+
readonly bus: Bus;
|
|
136
|
+
readonly captureImplementerTools: (c: Sock["data"]) => () => boolean;
|
|
137
|
+
readonly checkMemory: () => void | undefined;
|
|
138
|
+
readonly checkOwners: Map<string, number>;
|
|
139
|
+
readonly checkPending: Set<string>;
|
|
140
|
+
readonly checkpointOwnershipRefusals: Map<string, { requestId: string; reason: "quota" | "context"; current: () => boolean; cause: string; timer: ReturnType<typeof setTimeout>; }>;
|
|
141
|
+
readonly checkpointWaits: Map<string, { reason: "quota" | "context"; requestId: string; session: string | undefined; valid: () => boolean; ownershipFailure?: () => string | undefined; done: (summary: string | undefined) => void; }>;
|
|
142
|
+
readonly checkRunner: Pick<ContainerRunner, "available" | "start" | "result" | "consumeOutput" | "cancel" | "sweep" | "stopAll" | "markStale"> & Partial<Pick<ContainerRunner, "unknownReceipts" | "maintenanceUnavailable" | "compactTask">>;
|
|
143
|
+
readonly childToolAuthority: AsyncLocalStorage<{ by: string; current: () => boolean; }>;
|
|
144
|
+
readonly citeMemory: (peer: PeerId, text: string, id: string, envs?: readonly Envelope[]) => void;
|
|
145
|
+
readonly claudeLaunchProof: ClaudeLaunchProof;
|
|
146
|
+
readonly CLI_ENTRY: string;
|
|
147
|
+
readonly conductor: Conductor;
|
|
148
|
+
readonly conductorHolds: ConductorHolds;
|
|
149
|
+
readonly config: HubConfig;
|
|
150
|
+
readonly configEditor: ReturnType<typeof createConfigEditor> | undefined;
|
|
151
|
+
readonly configRevision: number;
|
|
152
|
+
readonly configWriteCheck: (scratch: string, authority: SettingAuthority, scope?: string) => HubConfig;
|
|
153
|
+
readonly connectionGeneration: (id: string) => string | undefined;
|
|
154
|
+
readonly contextPii: (peer: PeerId) => boolean;
|
|
155
|
+
readonly currentCheck: (receipt: { task: number; owner: string; updated: number | string; generation: number | string; revision?: number; }) => boolean;
|
|
156
|
+
readonly currentExternalTools: (client: Sock["data"], fresh?: boolean) => boolean;
|
|
157
|
+
readonly currentMemoryCode: (code: import("../memory-code-overlay.ts").MemoryCodeOverlay) => MemoryCodeOverlay | { notes: { id: string; line: string; kind: "decision" | "finding" | "contract" | "fail" | "preference"; about: string[]; tier: Tier; peer: string; machine: string; at: string; }[]; state: "known" | "unknown"; head?: string; nodes: MemoryCodeNode[]; edges: MemoryCodeEdge[]; queried: number; unknown: number; truncated: boolean; countsFloor: boolean; };
|
|
158
|
+
readonly definitionOf: (peer: string) => AdapterDefinition | undefined;
|
|
159
|
+
readonly deliveryRetryAllowed: (owner: PeerAdapter | undefined) => boolean;
|
|
160
|
+
readonly ensureSpec: (refresh?: boolean) => Promise<void>;
|
|
161
|
+
readonly event: (e: HubEvent) => boolean;
|
|
162
|
+
readonly executionLineageRead: (by: PeerId, input: unknown, piiTurn?: boolean) => Record<string, unknown>;
|
|
163
|
+
readonly executionOwners: Map<string, { owner: PeerAdapter; cwd: string; socket?: Sock; launchId?: string; generation?: string | number; }>;
|
|
164
|
+
readonly executionRoot: (peer: string) => string;
|
|
165
|
+
readonly factsFor: (peer: string) => Facts;
|
|
166
|
+
readonly factsOn: () => boolean;
|
|
167
|
+
readonly firstSpecProbe: Promise<void> | undefined;
|
|
168
|
+
readonly guidanceProbeRequestContext: AsyncLocalStorage<GuidanceProbeRequestContext>;
|
|
169
|
+
readonly guidanceRead: (by: PeerId, op: "list" | "show", input: unknown, piiTurn?: boolean) => Record<string, unknown>;
|
|
170
|
+
readonly handoffCatchUp: (only?: ReadonlySet<string>, wait?: boolean) => Promise<void>;
|
|
171
|
+
readonly handoffFailures: Map<string, { cause: string; at: number; }>;
|
|
172
|
+
readonly handoffLog: (target: string, cause: string, line: string) => void;
|
|
173
|
+
readonly handoffStateByKey: (target: { id: string; stateDir: string; root: string; }, projectRoot: string, key: string | undefined) => Promise<{ task: number; state: string; pr?: number; head?: string; seq?: number; } | undefined>;
|
|
174
|
+
readonly holderReasons: (view: Record<string, unknown>) => { reviewerReason?: string | undefined; ownerReason?: string | undefined; plannerReason?: string | undefined; };
|
|
175
|
+
readonly holdPeer: (action: "pause" | "resume", id: string) => Promise<{ ok: boolean; error?: string; state?: PeerState }>;
|
|
176
|
+
readonly holdsPii: (peer: PeerId) => boolean;
|
|
177
|
+
readonly hubStart: (peer: unknown, by: string, person?: boolean) => Promise<Record<string, unknown>>;
|
|
178
|
+
readonly instanceId: string;
|
|
179
|
+
readonly invocationRequestSignal: AsyncLocalStorage<{ signal: AbortSignal; current: () => boolean; }>;
|
|
180
|
+
readonly invokeCapability: (by: PeerId, a: Record<string, any>, piiTurn: boolean, requireInvoke: () => void, room?: RoomInvocationIngress & { request: RoomReadInvocationRequest; }) => Promise<string>;
|
|
181
|
+
readonly lifecycleConfig: SdlcConfig;
|
|
182
|
+
readonly limiter: Limiter;
|
|
183
|
+
readonly log: (line: string) => void;
|
|
184
|
+
readonly manifestOf: (id: PeerId) => Promise<CapabilityManifest | undefined>;
|
|
185
|
+
readonly manualPaused: Set<string>;
|
|
186
|
+
readonly manualSchedulePasses: Set<Promise<void>>;
|
|
187
|
+
readonly markAllResultsSeen: (surface: ReceiptSurface) => { ok: true; marked: number } | { ok: false; error: string };
|
|
188
|
+
readonly markResultSeen: (id: unknown, surface: ReceiptSurface) => { ok: true; id: string } | { ok: false; error: string };
|
|
189
|
+
readonly may: (peer: PeerId, cap: "propose" | "assign" | "remember" | "memory_correct" | "memory_read" | "important" | "spec_read" | "check_run" | "invoke") => boolean;
|
|
190
|
+
readonly membershipAllowed: (peer: string) => boolean;
|
|
191
|
+
readonly memory: MemoryClient;
|
|
192
|
+
readonly memoryCode: (starts: readonly string[], valid?: () => boolean, cacheOnly?: boolean) => Promise<MemoryCodeOverlay>;
|
|
193
|
+
readonly memoryProject: string;
|
|
194
|
+
readonly memoryRepo: string;
|
|
195
|
+
readonly memoryStore: MemoryStore | undefined;
|
|
196
|
+
readonly modelCommandSafe: (input: Record<string, unknown>, grant: ModelGrant) => Record<string, unknown>;
|
|
197
|
+
readonly modelFailure: (error: string) => { ok: false; error: string };
|
|
198
|
+
readonly notify: (line: string) => void;
|
|
199
|
+
readonly omni: OmniRoute;
|
|
200
|
+
readonly onCampus: () => Promise<boolean>;
|
|
201
|
+
readonly operationalContext: AsyncLocalStorage<{ actor: string; current: () => void; } | undefined>;
|
|
202
|
+
readonly operationalCurrent: (sock: Sock, acceptedAfterClose?: boolean, committedRecovery?: boolean) => () => void;
|
|
203
|
+
readonly operationalFailure: (error: unknown, fallback?: string) => Record<string, unknown>;
|
|
204
|
+
readonly operationalLogSubscribers: Map<Sock, () => void>;
|
|
205
|
+
readonly opts: DaemonOptions;
|
|
206
|
+
readonly orphanSweep: Promise<void>;
|
|
207
|
+
readonly peerArg: (v: unknown, name: string) => PeerId | undefined;
|
|
208
|
+
readonly peerIdPattern: RegExp;
|
|
209
|
+
readonly permissionMode: (peer: string) => PermissionMode;
|
|
210
|
+
readonly permissions: Map<string, { push: string; peer: string; tool?: string; createdAt: number; expiresAt: number; done: (optionId: string | undefined, surface?: Exclude<ReceiptSurface, "acon">, reason?: "expired" | "cancelled") => boolean }>;
|
|
211
|
+
readonly progress: ProgressObserver;
|
|
212
|
+
readonly projectId: string;
|
|
213
|
+
readonly projectRosterAllows: (roster: PeerRoster, peer: string, piEnabled: boolean) => boolean;
|
|
214
|
+
readonly proposalView: (proposal: SupervisionProposal) => { receipt?: SupervisionReceipt | undefined; decided?: number | undefined; actor?: string | undefined; id: string; task: number; rule: "repeated_failure" | "deliverable_invalidated_check" | "declared_overlap_without_integration" | "unverified_shell_write" | "cascading_edit_after_failed_check"; version: number; revision: string; trigger: string; refs: string[]; limits: { records: number; truncated: boolean; }; action: "escalate" | "recheck" | "request_integration"; reason: "repeated_failure" | "unverified_shell_write" | "cascading_edit_after_failed_check" | "stale_check" | "unintegrated_overlap"; state: "expired" | "accepted" | "pending" | "dismissed"; created: number; };
|
|
215
|
+
readonly publicCheck: (receipt: RunReceipt) => { error?: string | undefined; exit: number | null; timed_out: boolean; cancelled: boolean; interrupted: boolean; duration_ms: number; tail: string; output_bytes: number; truncated: boolean; output_withheld: boolean; files?: string[] | undefined; run: string; task: number; status: "stale" | "queued" | "running" | "finished"; sha: string; tree: string; lockfile: string; excluded: number; runner: "container" | "remote"; image: string; platform: string; check: "test" | "typecheck"; };
|
|
216
|
+
readonly publicOperationalView: () => { incompleteReason?: string | undefined; line: (value: unknown) => string; event: (value: unknown) => Record<string, unknown>; complete: boolean; };
|
|
217
|
+
readonly publicReadCurrent: (sock: Sock) => () => void;
|
|
218
|
+
readonly publicReadValue: (value: unknown, depth?: number) => unknown;
|
|
219
|
+
readonly publishedCaps: Map<string, { generation: string; manifest: CapabilityManifest; }>;
|
|
220
|
+
readonly questionDesk: QuestionDesk;
|
|
221
|
+
readonly queueHold: (peer: PeerId) => string | undefined;
|
|
222
|
+
readonly readOnlyHubTools: Set<string>;
|
|
223
|
+
readonly readOnlyPeer: (peer: string) => boolean;
|
|
224
|
+
readonly readSdlcFile: () => SdlcConfig;
|
|
225
|
+
readonly recordOwners: WeakMap<PeerAdapter, { cwd: string; session(): string | undefined; }>;
|
|
226
|
+
readonly recoveryActive: () => boolean;
|
|
227
|
+
recoveryPhase: RecoveryPhase | undefined;
|
|
228
|
+
readonly refreshRunner: () => Promise<void>;
|
|
229
|
+
readonly releaseAuthorizations: ReleaseAuthorizations;
|
|
230
|
+
readonly reloadConfig: (authority: SettingAuthority, scope?: string, confirm?: unknown) => Promise<Record<string, unknown>>;
|
|
231
|
+
readonly renewLeases: (t: { id: number; created: number; }) => void;
|
|
232
|
+
readonly resolveExecutionCwd: (peer: string, currentDeclarations: InstancesConfig | undefined, currentRoles: readonly string[], catalog: ReturnType<typeof createProjectAdapterCatalog>) => string;
|
|
233
|
+
readonly reviewCountedTokens: (ids: readonly number[]) => number;
|
|
234
|
+
readonly reviewCounts: Map<number, { notes: number; corrections: number; remembered: number; }>;
|
|
235
|
+
readonly reviewMaterials: (task: Task, requests: readonly ReviewReadRequest[], scope?: "brief") => Promise<ReviewMaterialBatch>;
|
|
236
|
+
readonly reviewObserverHeld: (peer: PeerId) => boolean;
|
|
237
|
+
readonly reviewObserverInput: (peer: PeerId) => boolean;
|
|
238
|
+
readonly reviewOnlyPeer: (peer: string) => boolean;
|
|
239
|
+
readonly reviewSpend: (card: Task) => ReviewSpend;
|
|
240
|
+
roadmapDrift: RoadmapDrift | undefined;
|
|
241
|
+
readonly runnerState: RunnerState;
|
|
242
|
+
readonly scheduleEntries: () => ScheduleEntry[];
|
|
243
|
+
readonly scheduleNow: () => number;
|
|
244
|
+
readonly schedulesStore: ScheduleStore;
|
|
245
|
+
readonly screenMemory: <T extends { title: string | null; text: string; }>(vs: T[]) => T[];
|
|
246
|
+
readonly screenSourceText: (text: string, meta: SourceMeta) => Promise<boolean>;
|
|
247
|
+
readonly setSessionTitle: (peer: PeerId, value: unknown, onlyIfUnnamed: boolean, privateTurn?: boolean, instructionCurrent?: () => boolean) => Promise<TitleResult>;
|
|
248
|
+
readonly settingDef: (key: unknown) => SettingDef | string;
|
|
249
|
+
readonly settingsPreview: (key: unknown, raw: unknown) => Record<string, unknown>;
|
|
250
|
+
readonly settingsSet: (key: unknown, raw: unknown, authority: SettingAuthority, confirm?: unknown, now?: unknown, rawReason?: unknown, managed?: SettingDef) => Promise<Record<string, unknown>>;
|
|
251
|
+
readonly settingsUndo: (authority: SettingAuthority, confirm?: unknown, now?: unknown, rawReason?: unknown, expectedKey?: unknown, expectedDigest?: unknown) => Promise<Record<string, unknown>>;
|
|
252
|
+
readonly settingsUndoPreview: () => Record<string, unknown>;
|
|
253
|
+
readonly settleCheck: (peer: PeerId) => void;
|
|
254
|
+
readonly sourceReadCurrent: (by: PeerId, inProcess: boolean, piiTurn: boolean) => () => boolean;
|
|
255
|
+
readonly sourceRegistry: SourceRegistry;
|
|
256
|
+
readonly specState: { available: boolean; reason?: string; };
|
|
257
|
+
readonly staleness: () => (about: readonly string[]) => boolean;
|
|
258
|
+
readonly startupSpecPending: () => boolean;
|
|
259
|
+
readonly stop: () => Promise<void>;
|
|
260
|
+
readonly stopping: boolean;
|
|
261
|
+
readonly storedConfig: () => HubConfig | undefined;
|
|
262
|
+
readonly supervisionMode: () => "off" | "shadow" | "advisory";
|
|
263
|
+
readonly supervisionProposals: SupervisionProposals;
|
|
264
|
+
readonly taskMemoryResult: (task: import("../../memory/brief.ts").BriefTask, cacheOnly?: boolean) => Promise<{ head?: string | undefined; items: ({ id: string; line: string; kind: "decision" | "finding" | "contract" | "fail" | "preference"; about: string[]; } | NativeItem)[]; state: "unknown" | "known"; }>;
|
|
265
|
+
readonly taskOp: (by: PeerId, op: string, a: Record<string, any>, inProcess?: boolean, piiTurn?: boolean, toolSocket?: Sock) => Promise<string>;
|
|
266
|
+
taskOpsInFlight: number;
|
|
267
|
+
readonly tasks: Tasks;
|
|
268
|
+
readonly taskWriteId: (value: unknown) => number | undefined;
|
|
269
|
+
readonly toolWriteCurrent: (c: Sock["data"], sock: Sock, operation: string, payload: Record<string, unknown>, scope: string, result?: Record<string, unknown>) => boolean;
|
|
270
|
+
readonly toolWriteRegistry: ToolWriteRegistry;
|
|
271
|
+
readonly toolWriteScope: (c: Sock["data"], operation: string) => string;
|
|
272
|
+
readonly turnLog: Turns | undefined;
|
|
273
|
+
readonly turns: Map<string, { capture?: boolean; id: string; start: number; tokens: number; tree?: string; head?: string | null; commit?: string | null; branches?: string; writeScope?: boolean; reflog?: HeadMoveCursor; snapshotMs?: number; private?: boolean; deliveryTask?: number; attribution: TaskAttribution; preparedRoles: RoleIdentity[] | null; writeTasks: { id: number; acceptance: number; }[]; taskEffect?: boolean; effectsPending?: number; }>;
|
|
274
|
+
readonly unmarkLastResult: () => { ok: true; unread: string } | { ok: false; error: string };
|
|
275
|
+
readonly visualFilePolicy: () => VisualFilePolicy;
|
|
276
|
+
readonly visualOperational: (cause: "stopping" | "recovery" | "authority" | "role" | "membership" | "observer" | "storage" | "concurrency" | "screen" | "policy") => PreEffectToolRefusal;
|
|
277
|
+
readonly visualPathPublic: (path: string, policy: VisualFilePolicy) => boolean;
|
|
278
|
+
readonly visualPorts: (policy?: VisualFilePolicy) => DeliverablePorts;
|
|
279
|
+
readonly visualPublic: (record: VisualRecord | VisualSummary, policy?: VisualFilePolicy) => boolean;
|
|
280
|
+
readonly visualRecord: (id: unknown, captured?: VisualFilePolicy) => VisualRecord | undefined;
|
|
281
|
+
readonly visuals: VisualStore;
|
|
282
|
+
readonly visualSafeText: (text: string, policy: VisualFilePolicy) => boolean;
|
|
283
|
+
readonly visualTaskPublic: (task?: number, captured?: VisualFilePolicy) => boolean;
|
|
284
|
+
readonly visualUnavailable: () => PreEffectToolRefusal;
|
|
285
|
+
readonly visualView: (record: VisualRecord) => { from: string; kind: "beforeAfter" | "mermaid" | "comparison" | "table"; title: string; payload: VisualPayload; created: number; task?: number | undefined; id: string; };
|
|
286
|
+
readonly worktreeShelf: (request: { t: unknown; path?: unknown; value?: unknown }) => Promise<Record<string, unknown>>;
|
|
287
|
+
readonly ADDED_COLUMNS: readonly [readonly ["deps", "[]"], readonly ["plan", "{}"]];
|
|
288
|
+
readonly acceptedSources: ConfigSources;
|
|
289
|
+
readonly acked: (peer: PeerId, id: string, via: string) => void;
|
|
290
|
+
readonly actionBudgets: ActionBudgets;
|
|
291
|
+
readonly activeAt: Map<string, number>;
|
|
292
|
+
readonly adapterCatalog: import("../../adapters/registry-types.ts").ProjectAdapterCatalog;
|
|
293
|
+
readonly agyNativeUsageSeen: Set<string>;
|
|
294
|
+
readonly agyTurnContext: WeakMap<object, { hubTurnId?: string; baseline: number; attribution: TaskAttribution; }>;
|
|
295
|
+
readonly allExternalInstanceIds: () => string[];
|
|
296
|
+
readonly autonomyConfirmed: Set<string>;
|
|
297
|
+
readonly capable: Set<string>;
|
|
298
|
+
readonly chain: string[];
|
|
299
|
+
readonly changePermission: (peer: unknown, mode: unknown, confirmed: unknown) => Promise<Record<string, unknown>>;
|
|
300
|
+
readonly checkCapability: (peer: PeerId) => void;
|
|
301
|
+
readonly claudeDoing: Map<string, { session: string; cursor: TitleCursor; todos: ClaudeTodoSource; }>;
|
|
302
|
+
readonly claudeSession: (peer: string) => { sessionId?: string; transcriptPath?: string; launchId?: string; };
|
|
303
|
+
readonly claudeTranscriptPersisted: (peer: string, sessionId: string) => boolean;
|
|
304
|
+
readonly collectClaudeUsage: () => void;
|
|
305
|
+
readonly completeNativeTurn: (peer: PeerId, launch: NativeHookLaunch, completion: NonNullable<NativeFactsTranscript["completion"]>) => boolean;
|
|
306
|
+
readonly completionDone: (peer: PeerId, run: Run, outcome: "done" | "failed" | "limit" | "interrupted") => void;
|
|
307
|
+
readonly completionStore: CompletionStore;
|
|
308
|
+
readonly configuredIds: string[];
|
|
309
|
+
readonly ctx: DaemonProjectContext;
|
|
310
|
+
readonly currentImplementerTools: (c: Sock["data"], verifyRoot?: boolean) => ReturnType<NonNullable<PeerAdapter["ownedTools"]>>;
|
|
311
|
+
readonly currentReviewObserverInputs: Map<string, { deliveryKey: string; outputKey?: string; turnId?: string; reviewHoldTurnId?: string; inputId?: string; awaitingTurn?: boolean; held: boolean; reviewInputScoped: boolean; heldSameTurnAtAdmission?: boolean; anchoredSubmission?: boolean; unboundReviewInput?: true; }>;
|
|
312
|
+
readonly declarations: Readonly<Record<string, import("../instances.ts").InstanceConfig>>;
|
|
313
|
+
readonly digest: (value: unknown) => string;
|
|
314
|
+
readonly editObservationOn: (peer: PeerId) => boolean;
|
|
315
|
+
readonly executionRoots: Map<string, string>;
|
|
316
|
+
readonly externalBindings: Map<string, ExternalInstanceBinding>;
|
|
317
|
+
readonly externalIds: Set<string>;
|
|
318
|
+
readonly externalRefusedRows: Map<string, import("../../adapters/declaration-data.ts").DeclaredExternalInstance>;
|
|
319
|
+
readonly extraIds: string[];
|
|
320
|
+
readonly factSession: (peer: PeerId, id: string | undefined) => void;
|
|
321
|
+
readonly finishSupervisionTurn: (peer: PeerId) => void;
|
|
322
|
+
readonly floorFacts: (peer: PeerId) => FloorFacts | undefined;
|
|
323
|
+
readonly frontendProxyState: (peer: string, owner: PeerAdapter | undefined) => { present: boolean; port: FrontendProxyPort | undefined; };
|
|
324
|
+
readonly guidanceProbeStore: GuidanceProbeStore;
|
|
325
|
+
readonly hookModels: Map<string, string>;
|
|
326
|
+
readonly hookStats: Map<string, { n: number; startupMs: number; hubMs: number; maxStartupMs: number; }>;
|
|
327
|
+
readonly hubTokenWindow: (peer: PeerId) => TokenWindow;
|
|
328
|
+
readonly implementerFailures: WeakMap<PeerAdapter, { launchId: string; generation: string; signal: AbortSignal; trace: ClaudeFailureTrace; probeCount: number; permissionAttempt: number; }>;
|
|
329
|
+
readonly implementerShellProfiles: WeakMap<object, { key: string; sandbox: { profile: string; readOnlyData: boolean; }; }>;
|
|
330
|
+
implementerShellStart: Promise<HostShellWrapper> | undefined;
|
|
331
|
+
readonly implementerTranscripts: Map<string, string>;
|
|
332
|
+
readonly injected: Map<string, string>;
|
|
333
|
+
readonly instructedRuntime: { root: string; bun: string; } | undefined;
|
|
334
|
+
readonly instructionReceipts: InstructionReceipts;
|
|
335
|
+
readonly invocations: InvocationLedger;
|
|
336
|
+
readonly isExternalInstance: (peer: string) => boolean;
|
|
337
|
+
readonly journal: DeliveryJournal;
|
|
338
|
+
keptRoster: KeptRoster | undefined;
|
|
339
|
+
readonly loadConfig: typeof loadConfig;
|
|
340
|
+
readonly loseCapability: (peer: PeerId, why: string) => void;
|
|
341
|
+
readonly mergeReadbackPass: Promise<void> | undefined;
|
|
342
|
+
readonly modelOverrides: ModelOverrides;
|
|
343
|
+
readonly nativeBackgroundBackoff: Map<string, number>;
|
|
344
|
+
readonly nativeCompletedAt: Map<string, number>;
|
|
345
|
+
readonly nativeHookLaunches: NativeHookLaunches;
|
|
346
|
+
readonly nativeStopWaits: Map<string, { start: NativeTurnStart; wait: ReturnType<typeof waitForClaudeCompletion>; }>;
|
|
347
|
+
readonly nativeStopsSeen: Set<string>;
|
|
348
|
+
readonly nativeTurnStart: Map<string, NativeTurnStart>;
|
|
349
|
+
readonly nativeUnattended: (peer: string) => boolean;
|
|
350
|
+
readonly noQuotaPeer: (peer: PeerId) => boolean;
|
|
351
|
+
readonly observeDoing: (peer: PeerId, kind: DoingKind, text?: unknown, learnedPrivate?: boolean) => void;
|
|
352
|
+
readonly observeProgress: (peer: PeerId, observation: NativeToolObservation | undefined, taskId?: string) => void;
|
|
353
|
+
readonly offerFor: (peer: PeerId, toolUseId?: string) => import("../facts.ts").Offered | undefined;
|
|
354
|
+
readonly onControlMessage: (sock: Sock, msg: any) => void;
|
|
355
|
+
readonly ownerWriteRoot: (peer: string) => string | undefined;
|
|
356
|
+
readonly pendingNativePerson: Set<string>;
|
|
357
|
+
readonly pendingPermissionDefaults: Map<string, string>;
|
|
358
|
+
readonly pendingReviewObserverInputs: Map<string, { deliveryKey: string; outputKey?: string; turnId?: string; reviewHoldTurnId?: string; inputId?: string; awaitingTurn?: boolean; held: boolean; reviewInputScoped: boolean; heldSameTurnAtAdmission?: boolean; anchoredSubmission?: boolean; unboundReviewInput?: true; } & { previous?: { deliveryKey: string; outputKey?: string; turnId?: string; reviewHoldTurnId?: string; inputId?: string; awaitingTurn?: boolean; held: boolean; reviewInputScoped: boolean; heldSameTurnAtAdmission?: boolean; anchoredSubmission?: boolean; unboundReviewInput?: true; }; sessionHash?: string; durableSessionHash?: string; heldSameTurnAtAdmission?: boolean; }>;
|
|
359
|
+
readonly permissionChange: (peer: unknown, action: () => Promise<Record<string, unknown>>, wait?: boolean) => Promise<Record<string, unknown>>;
|
|
360
|
+
readonly permissionDisplay: (id: string, peer: PeerAdapter | undefined) => string;
|
|
361
|
+
readonly permissionModeSources: Map<string, string>;
|
|
362
|
+
readonly permissionModes: Map<string, "ask" | "ask-when-needed" | "never-ask">;
|
|
363
|
+
readonly piCallsInFlight: () => number;
|
|
364
|
+
readonly policyRoles: Record<string, string[]>;
|
|
365
|
+
readonly questionStore: QuestionStore;
|
|
366
|
+
readonly rawResearchRunnersPresent: (cwd: string) => boolean;
|
|
367
|
+
readonly rawVisualsPresent: (cwd: string) => boolean;
|
|
368
|
+
readonly reconcileGuidanceProbes: () => void;
|
|
369
|
+
readonly recordSessions: () => void;
|
|
370
|
+
readonly recoveryBusy: (peer: PeerAdapter) => boolean;
|
|
371
|
+
recoveryCommitted: boolean;
|
|
372
|
+
recoveryLeaseRetryLogged: boolean;
|
|
373
|
+
recoveryLeaseTimer: NodeJS.Timeout | undefined;
|
|
374
|
+
recoveryOperationId: string | undefined;
|
|
375
|
+
recoveryPeerSnapshot: RestartPeerSnapshot[] | undefined;
|
|
376
|
+
readonly recoveryPeers: () => Record<string, RestartPeerSnapshot>;
|
|
377
|
+
readonly recoveryReady: () => boolean;
|
|
378
|
+
readonly releasing: boolean;
|
|
379
|
+
readonly requestPermission: (req: PermissionRequest & { personOnly?: boolean; }, signal?: AbortSignal, observe?: ApprovalObserver, requirePerson?: boolean, lifecycle?: { registered(id: string): void; expired(id: string): void; }) => Promise<{ outcome: "answered" | "expired" | "cancelled"; optionId?: string; approvalId?: string; }>;
|
|
380
|
+
readonly requestedPeerStops: Set<string>;
|
|
381
|
+
readonly resetReviewObserverSessionIfChanged: (peer: PeerId) => void;
|
|
382
|
+
readonly restored: RestartSnapshot | undefined;
|
|
383
|
+
readonly retainedExternalBinding: (peer: string, fresh?: boolean) => ExternalInstanceBinding | undefined;
|
|
384
|
+
readonly reviewObserverStableSessionHash: (peer: PeerId) => string | undefined;
|
|
385
|
+
readonly reviewerJournalComplete: boolean;
|
|
386
|
+
readonly reviewerJournalRows: unknown[];
|
|
387
|
+
readonly rosterChanging: string | undefined;
|
|
388
|
+
readonly runningRoutingDefault: string | undefined;
|
|
389
|
+
readonly runs: RunTracker;
|
|
390
|
+
readonly sandboxNetwork: SandboxNetwork;
|
|
391
|
+
readonly shellDefaultBranch: string | undefined;
|
|
392
|
+
readonly shellProjectRepository: string | undefined;
|
|
393
|
+
readonly sourcePackageDigest: string | undefined;
|
|
394
|
+
readonly startPeer: (peer: string, args: { model?: string; route?: string; mode?: "headless" | "tui"; backend?: "auto" | "dgx" | "mlx"; sessionId?: string; sessionFile?: string; replaceSession?: boolean; fresh?: boolean; unattended?: boolean; providerProfile?: string; }, replacementAuthority?: symbol, startCurrent?: () => void) => Promise<Record<string, unknown>>;
|
|
395
|
+
readonly starting: Map<string, Promise<Record<string, unknown>>>;
|
|
396
|
+
readonly stopUnconfirmedNoticed: WeakSet<NativeTurnStart>;
|
|
397
|
+
readonly supervisionTurns: Map<string, { id: string; at: number; tokens?: number; session?: string; nativeTurn?: string; }>;
|
|
398
|
+
readonly taskAttribution: (peer: PeerId, delivery?: number | undefined) => TaskAttribution;
|
|
399
|
+
readonly titlePrivate: (peer: PeerId, text?: string) => boolean;
|
|
400
|
+
transcriptRead: { path: string; offset: number; };
|
|
401
|
+
readonly turnEnded: Map<string, number>;
|
|
402
|
+
readonly writeStatus: () => void;
|
|
403
|
+
readonly SERVER_JS: string;
|
|
404
|
+
readonly accountMembers: (account: string) => string[];
|
|
405
|
+
readonly accountOf: (peer: string) => string;
|
|
406
|
+
readonly activityRings: Record<string, ActivityRing>;
|
|
407
|
+
readonly autonomyCommand: (action: unknown, environment: unknown, confirmed: unknown, confirmation?: unknown) => Promise<Record<string, unknown>>;
|
|
408
|
+
readonly budgetPeerNotes: () => BudgetPeerNote[];
|
|
409
|
+
readonly budgetViews: (status: ReturnType<Budget["status"]>) => ReturnType<Budget["status"]>;
|
|
410
|
+
readonly channelTakeoverAdmission: (peerId: string, socket: Sock) => boolean;
|
|
411
|
+
readonly clearKimiAdmission: () => void;
|
|
412
|
+
readonly contextSession: (peer: PeerId) => string | undefined;
|
|
413
|
+
readonly contexts: ContextWindows;
|
|
414
|
+
readonly controlOperationFailed: (sock: Sock, parsed: any, e: unknown) => void;
|
|
415
|
+
readonly corpusPolicyVersion: () => string;
|
|
416
|
+
dashboard: ReturnType<typeof import("../ui.ts").startDashboard> | undefined;
|
|
417
|
+
readonly dashboardSnapshot: (after: number, input?: Record<string, unknown>, session?: DashboardSession) => Promise<Record<string, unknown>>;
|
|
418
|
+
readonly drainCliAuditsNow: () => void;
|
|
419
|
+
readonly envelopeOrigins: Map<string, Origin>;
|
|
420
|
+
readonly implementerChatTask: (peer: string) => number | undefined;
|
|
421
|
+
readonly inboxPolling: InboxPolling;
|
|
422
|
+
readonly inference: Inference | undefined;
|
|
423
|
+
readonly instructedQuestionViews: () => (Omit<import("../questions.ts").QuestionRow, "instruction"> & { provenance?: string; })[];
|
|
424
|
+
readonly kimiAdmissionId: string | undefined;
|
|
425
|
+
readonly kimiSessionMode: "tui" | "headless" | undefined;
|
|
426
|
+
readonly kimiUsage: KimiUsage;
|
|
427
|
+
readonly logFile: string;
|
|
428
|
+
readonly memoryLine: (v: MemoryView) => string;
|
|
429
|
+
readonly noteSteeredReviewInput: (peer: PeerId, envs: readonly Envelope[]) => void;
|
|
430
|
+
readonly orphanChecks: string[] | undefined;
|
|
431
|
+
readonly ownedObserverInputs: Map<string, { owner: PeerAdapter; context: OwnedInputContext; sessionHash: string; inputHash: string; deliveryKey: string; reviewScoped: boolean; heldSameTurnAtAdmission: boolean; reviewerEphemeral?: true; closed?: boolean; supersededByReviewInput?: boolean; released: boolean; }>;
|
|
432
|
+
readonly peerAccountLabel: (peer: string) => string | undefined;
|
|
433
|
+
readonly piReplacementAuthority: symbol;
|
|
434
|
+
readonly projectSpecs: SpecTaskInspector;
|
|
435
|
+
readonly publicCorpus: (query: string, allowed: () => boolean) => import("../corpus-evidence.ts").CorpusEvidence[];
|
|
436
|
+
readonly recoveryPeerAllowed: (id: PeerId) => boolean;
|
|
437
|
+
readonly redact: typeof redactBusEvent;
|
|
438
|
+
readonly resolutionRefusal: typeof import("../daemon.ts").resolutionRefusal;
|
|
439
|
+
readonly resultView: (row: ReturnType<CompletionStore["listWithState"]>[number]) => { seenAt?: number | undefined; surface?: string | undefined; id: string; peer: string; outcome: "failed" | "done" | "limit" | "interrupted"; settledAt: number; startedAt: number; ms: number; private: boolean; title: string; read: boolean; };
|
|
440
|
+
readonly retainedCliAudits: Set<string>;
|
|
441
|
+
readonly retainedConfig: { key: string; reason: string; }[];
|
|
442
|
+
readonly reviewInputHeld: (peer: PeerId, envs: readonly Envelope[]) => boolean;
|
|
443
|
+
readonly reviewOnlyItem: (peer: string, env: Envelope) => boolean;
|
|
444
|
+
readonly reviewerBudgetView: () => { gate: import("../review-budget.ts").ReviewGate; unknown_quota: import("../review-budget.ts").ReviewUnknownQuota; rule: string; } | undefined;
|
|
445
|
+
readonly revokeTerminalExecution: (peer: string) => void;
|
|
446
|
+
readonly roomChat: RoomChat;
|
|
447
|
+
readonly roomCommands: RoomCommands;
|
|
448
|
+
readonly roomTickets: WeakMap<Sock, { id: string; expires: number; preview: RoomPreview; }>;
|
|
449
|
+
readonly rosterView: () => { peer: string; on: boolean; startMode: "tui" | "headless"; state: import("../envelope.ts").PeerState; queued: number; tasks: number; }[];
|
|
450
|
+
readonly settingsView: () => { rows: SettingRow[]; undo?: string; pendingRestart: { key: string; reason: string; }[]; retainedConfig: { key: string; reason: string; }[]; };
|
|
451
|
+
specsMissingBlockHintShown: boolean;
|
|
452
|
+
readonly startHeldByRecovery: (peer: unknown) => string;
|
|
453
|
+
readonly startMode: (peer: string) => StartMode;
|
|
454
|
+
readonly startPeerTakeover: (peer: PeerAdapter, claim: PeerTakeoverClaim) => void;
|
|
455
|
+
readonly status: (includeAttentionItems?: boolean, includeAttentionInput?: boolean, includeDoing?: boolean, includeIncomingLabels?: boolean, includeActivity?: boolean) => Record<string, unknown> & { peers: Record<string, object> };
|
|
456
|
+
readonly stopPeer: (peer: unknown, rosterRemoval?: boolean, operational?: { actor: string; current: () => void; }) => Promise<Record<string, unknown>>;
|
|
457
|
+
readonly terminalLaunches: TerminalLaunches;
|
|
458
|
+
readonly uiAction: (a: Record<string, unknown>, session?: DashboardSession) => Promise<unknown>;
|
|
459
|
+
readonly usageRollup: UsageRollup;
|
|
460
|
+
}
|