@agentproto/runtime 3.1.0 → 3.2.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/index.d.ts CHANGED
@@ -2993,6 +2993,14 @@ interface InboundMessage {
2993
2993
  contactRef: string;
2994
2994
  /** Rendered user-turn text. */
2995
2995
  text: string;
2996
+ /** Human-readable name of the sender, when the ingress knows one.
2997
+ * Present => the routed turn is prefixed so the agent can tell senders
2998
+ * apart. Absent => the text is enqueued exactly as before. */
2999
+ displayName?: string;
3000
+ /** The surface the message came in on (`telegram`, `whatsapp`, `email`).
3001
+ * Distinct from `source`, which is a routing key, not something to show
3002
+ * an agent. */
3003
+ surface?: string;
2996
3004
  /** Raw agentpush events, forwarded to the spawn fallback template. */
2997
3005
  messages?: unknown[];
2998
3006
  }
@@ -3001,6 +3009,7 @@ interface InboundMessage {
3001
3009
  * method in directly. */
3002
3010
  type InboundEnqueuePrompt = (sessionId: string, text: string, opts?: {
3003
3011
  interrupt?: boolean;
3012
+ queue?: boolean;
3004
3013
  }) => Promise<void> | void;
3005
3014
  /** Whether `sessionId` is currently live enough to route into without a
3006
3015
  * restart first. */
@@ -3608,6 +3617,10 @@ interface SessionAppServeInfo {
3608
3617
  * window. False means the URL is the right address but the server had
3609
3618
  * not answered yet — retry the fetch rather than re-spawning. */
3610
3619
  ready: boolean;
3620
+ /** Error text from the in-box serve log when `ready` is false (e.g. the
3621
+ * server exited immediately because the UI root is missing). Absent when
3622
+ * the log holds no recognizable error or could not be read. */
3623
+ message?: string;
3611
3624
  }
3612
3625
 
3613
3626
  /**
@@ -3655,15 +3668,28 @@ type WorktreeField = boolean | {
3655
3668
  interface WorktreeRequest {
3656
3669
  slug?: string;
3657
3670
  base?: string;
3658
- /** Opt-in: return a real, registered session as soon as it's minted,
3659
- * provisioning the worktree in the BACKGROUND instead of blocking
3660
- * `agent_start`'s response on `git worktree add` + the repo's setup
3661
- * hooks (which can run minutes — see `session-spawn.ts`'s async-provision
3662
- * branch). Deliberately opt-in, not the default: existing callers that
3663
- * built on a synchronous ok/fail result (this package's own
3664
- * `worktree_provision_failed` test coverage among them) keep exactly
3665
- * today's behaviour unless they ask for the early return. Default
3666
- * false. */
3671
+ /** Return a real, registered session as soon as it's minted, provisioning
3672
+ * the worktree in the BACKGROUND instead of blocking `agent_start`'s
3673
+ * response on `git worktree add` + the repo's setup hooks (which can run
3674
+ * minutes — see `session-spawn.ts`'s async-provision branch).
3675
+ *
3676
+ * DEFAULTS TO TRUE for any spawn that provisions a worktree, UNLESS this
3677
+ * spawn also carries `wait` (which needs a first turn to block on — see
3678
+ * `worktree_async_wait_conflict` so the presence of `wait` alone falls
3679
+ * back to the synchronous path rather than conflicting by default). That
3680
+ * default is applied by `session-spawn.ts` itself (WP-H), not by this
3681
+ * field or `normalizeWorktreeField` — the normalizer leaves `async`
3682
+ * exactly as the caller sent it (`undefined` when omitted; see its own
3683
+ * test), so a caller inspecting the normalized request never sees a
3684
+ * value it didn't write. WP-H incident: the synchronous contract this
3685
+ * field opts OUT of — hold the RPC open for however long setup hooks
3686
+ * take, routinely minutes — is exactly what let a client's own request
3687
+ * timeout retry into a second live agent sharing the first one's
3688
+ * worktree (closed on the other side too — see `session-spawn.ts`'s
3689
+ * `findWorktreeLabelCwdCollision`, which now refuses that retry outright
3690
+ * rather than merely warning). Pass `false` explicitly to keep the old
3691
+ * blocking ok/fail contract (this package's own `worktree_provision_failed`
3692
+ * test coverage exercises it deliberately synchronous). */
3667
3693
  async?: boolean;
3668
3694
  }
3669
3695
  /** What the runtime hands the provisioner. `cwd` is where the session would
@@ -4712,6 +4738,16 @@ interface SessionDescriptor {
4712
4738
  command: string;
4713
4739
  pid: number | null;
4714
4740
  status: SessionStatus;
4741
+ /** Unambiguous liveness signal, stamped at read time (list()/get()/
4742
+ * findByIdOrName) — true iff `status` is "running" or "starting", the
4743
+ * same test the daemon uses internally (validateAgentTurn). Ephemeral:
4744
+ * never persisted, always recomputed from the row's status. Exists
4745
+ * because `status` alone is NOT liveness: a terminal row ("killed",
4746
+ * "exited", "error") is a record that exists, and HTTP 200 on
4747
+ * GET /sessions/:id only means the record exists — consumers that
4748
+ * treat res.ok as liveness must read `alive` (or GET /sessions/:id/alive)
4749
+ * instead. */
4750
+ alive?: boolean;
4715
4751
  startedAt: string;
4716
4752
  endedAt?: string;
4717
4753
  exitCode?: number;
@@ -5533,6 +5569,11 @@ interface SessionDescriptor {
5533
5569
  remote?: boolean;
5534
5570
  /** Provider-assigned sandbox id (`BootedSandbox.sandboxId`), when `remote` is true. */
5535
5571
  sandboxId?: string;
5572
+ /** Sandbox provider slug (`agent_start.sandbox`'s provider, e.g. `"e2b"`,
5573
+ * `"local"`), when `remote` is true. Identifies WHERE the box lives, not
5574
+ * just THAT one exists — the VS Code panel's sandbox chip names it in its
5575
+ * tooltip alongside `sandboxId`. */
5576
+ sandboxProvider?: string;
5536
5577
  /** What session close does to the box (PR3 lifecycle) — `"kill"` (the
5537
5578
  * default, ephemeral) or `"pause"` (keeps `sandboxId` reconnectable via
5538
5579
  * `agent_start.sandbox.reuse`). Only set when `remote` is true. */
@@ -5546,6 +5587,16 @@ interface SessionDescriptor {
5546
5587
  * serve port, and the provider-resolved public URL. See
5547
5588
  * `sandbox-app-serve.ts`. */
5548
5589
  appServe?: SessionAppServeInfo;
5590
+ /** Last PROVIDER liveness verdict for this session's box (`sandboxId`'s
5591
+ * ledger row, stamped by `recordSandboxLiveness` — the route / the CLI /
5592
+ * a reconnect-not-found). Ephemeral read-time projection of the sandbox
5593
+ * ledger, same convention as `processAlive`: a remote session has no
5594
+ * local PID, so this is the only box-death signal the descriptor can
5595
+ * carry. Absent when the box was never probed (or the provider can't) —
5596
+ * and absent is NOT "alive". */
5597
+ sandboxAlive?: boolean;
5598
+ /** ISO instant `sandboxAlive` was computed (see its doc). */
5599
+ sandboxCheckedAt?: string;
5549
5600
  }
5550
5601
  /**
5551
5602
  * Lightweight panel projection of SessionDescriptor for the VS Code Sessions
@@ -5652,6 +5703,10 @@ interface SessionSummary {
5652
5703
  sandboxTeardown?: "kill" | "pause";
5653
5704
  sandboxPorts?: Record<number, string>;
5654
5705
  appServe?: SessionAppServeInfo;
5706
+ /** Read-time projection of the box's ledger liveness verdict — see
5707
+ * `SessionDescriptor.sandboxAlive`. */
5708
+ sandboxAlive?: boolean;
5709
+ sandboxCheckedAt?: string;
5655
5710
  }
5656
5711
  /** Bracketed-paste mode as last observed in a PTY's OUTPUT stream.
5657
5712
  * `"unknown"` means neither `\x1b[?2004h` nor `\x1b[?2004l` has been seen
@@ -6649,6 +6704,9 @@ interface SpawnAgentInput {
6649
6704
  remote?: boolean;
6650
6705
  /** Provider-assigned sandbox id, when `remote` is true. */
6651
6706
  sandboxId?: string;
6707
+ /** Sandbox provider slug, when `remote` is true — see
6708
+ * `SessionDescriptor.sandboxProvider`. */
6709
+ sandboxProvider?: string;
6652
6710
  /** What session close does to the box, when `remote` is true — see
6653
6711
  * `SessionDescriptor.sandboxTeardown`. */
6654
6712
  sandboxTeardown?: "kill" | "pause";
@@ -7716,8 +7774,12 @@ declare function registerSandboxAttachTool(server: McpServer, opts?: RegisterSan
7716
7774
  * tmp path (the pid-only suffix is not unique within one process — see the
7717
7775
  * 2026-08-14 registry-wipe write-up in `workspace-buckets.ts`).
7718
7776
  */
7719
- /** Lifecycle states a ledger row can carry. */
7720
- type SandboxLedgerState = "booted" | "paused" | "connected" | "stopped";
7777
+ /** Lifecycle states a ledger row can carry. `"gone"` is stamped when the
7778
+ * PROVIDER answers the box no longer exists (liveness probe 404 / a
7779
+ * reconnect failing with the provider's not-found error) — distinct from
7780
+ * `"stopped"` (WE tore it down) and from `"paused"` (the last thing WE
7781
+ * did, which a vanished box makes a lie). */
7782
+ type SandboxLedgerState = "booted" | "paused" | "connected" | "stopped" | "gone";
7721
7783
  interface SandboxLedgerEntry {
7722
7784
  sandboxId: string;
7723
7785
  provider: string;
@@ -7731,6 +7793,13 @@ interface SandboxLedgerEntry {
7731
7793
  /** ISO instant the box is expected to idle-expire — stamped only when the
7732
7794
  * boot knew a window (`lifecycle.pause_after_idle`). */
7733
7795
  expiresAt?: string;
7796
+ /** Last PROVIDER liveness probe verdict (`SandboxProvider.probe`) — the
7797
+ * only signal that distinguishes box death from session death. Absent
7798
+ * when never probed (or the provider can't probe): the ledger's `state`
7799
+ * alone is NOT trustworthy — a dead box looks paused until probed. */
7800
+ sandboxAlive?: boolean;
7801
+ /** ISO instant `sandboxAlive` was computed. */
7802
+ sandboxCheckedAt?: string;
7734
7803
  }
7735
7804
  /** `~/.agentproto/sandboxes.json`. `AGENTPROTO_SANDBOX_LEDGER` overrides
7736
7805
  * the path (tests, and a caller that wants a workspace-scoped ledger). */
@@ -7739,9 +7808,43 @@ declare const sandboxLedgerPath: () => string;
7739
7808
  * "degrade to nothing rather than throw" contract as every other store
7740
7809
  * reader in this daemon. Never throws. */
7741
7810
  declare function readSandboxLedger(path?: string): SandboxLedgerEntry[];
7811
+ /**
7812
+ * Upsert (dedup by `sandboxId`) and persist. Sync + best-effort: the
7813
+ * lifecycle hooks that call this run inside teardown/finally paths where
7814
+ * Node won't await, and a failure here is a lost index row, never a lost
7815
+ * box. Swallows every error.
7816
+ */
7817
+ declare function upsertSandboxLedger(entry: SandboxLedgerEntry, path?: string): void;
7742
7818
  /** Remove a row by sandboxId. Returns whether a row was actually dropped
7743
7819
  * (read from the PRE-call disk state). Never throws. */
7744
7820
  declare function removeSandboxLedgerEntry(sandboxId: string, path?: string): boolean;
7821
+ /**
7822
+ * Stamp a boot or reconnect into the ledger — the spawn path's hook.
7823
+ * `state` is "booted" for a fresh boot, "connected" for a reuse/attach.
7824
+ * Best-effort: never throws, whatever happens.
7825
+ */
7826
+ declare function recordSandboxBoot(opts: {
7827
+ sandboxId: string;
7828
+ provider: string;
7829
+ state: "booted" | "connected";
7830
+ label?: string;
7831
+ cwd?: string;
7832
+ originSessionId?: string;
7833
+ expiresAt?: string;
7834
+ path?: string;
7835
+ }): void;
7836
+ /** Stamp a state transition ("paused"/"stopped"/"gone") for an existing row.
7837
+ * Best-effort: never throws. */
7838
+ declare function recordSandboxState(sandboxId: string, state: "paused" | "stopped" | "gone", path?: string): void;
7839
+ /** Stamp a PROVIDER liveness verdict onto an existing row — `sandboxAlive`
7840
+ * + `sandboxCheckedAt`, and when the verdict is death ALSO flip the row to
7841
+ * `"gone"` (the state alone was never evidence of death; the probe is).
7842
+ * Best-effort: never throws. */
7843
+ declare function recordSandboxLiveness(sandboxId: string, alive: boolean, path?: string): void;
7844
+ /** Backfill `originSessionId` once the HOST registry has minted the session
7845
+ * id the box was spawned for (the boot hook runs before that id exists).
7846
+ * Best-effort: never throws. */
7847
+ declare function recordSandboxOrigin(sandboxId: string, originSessionId: string, path?: string): void;
7745
7848
  type ReuseResolution = {
7746
7849
  kind: "resolved";
7747
7850
  sandboxId: string;
@@ -7765,6 +7868,62 @@ type ReuseResolution = {
7765
7868
  */
7766
7869
  declare function resolveReuseFromLedger(reuse: string, entries: readonly SandboxLedgerEntry[]): ReuseResolution;
7767
7870
 
7871
+ /** Host session statuses after which a session can never use its box again. */
7872
+ declare const DEAD_SESSION_STATUSES: ReadonlySet<string>;
7873
+ /** One ledger row selected for gc, with the observed origin-session status. */
7874
+ interface SandboxGcCandidate {
7875
+ entry: SandboxLedgerEntry;
7876
+ sessionStatus: string;
7877
+ }
7878
+ /**
7879
+ * Select ledger entries whose origin session is error/killed/exited.
7880
+ * Rows already marked "stopped" are skipped (nothing left to tear down);
7881
+ * rows with no `originSessionId` are skipped too — their owning session
7882
+ * is unknown, so "orphan" cannot be established from this surface.
7883
+ */
7884
+ declare function collectGcCandidates(entries: readonly SandboxLedgerEntry[], sessionStatuses: ReadonlyMap<string, string>): SandboxGcCandidate[];
7885
+ /** Provider resolution + ledger targeting for the reaper — injectable so
7886
+ * tests can hand a fake provider and a tmp ledger path. */
7887
+ interface SandboxGcReapDeps {
7888
+ resolveProvider: (slug: string) => Promise<SandboxGcProviderHandle | null>;
7889
+ ledgerPath?: string;
7890
+ }
7891
+ /** The slice of `SandboxProviderHandle` the reaper needs. */
7892
+ interface SandboxGcProviderHandle {
7893
+ provider: {
7894
+ connect(sandboxId: string, spec: {
7895
+ provider: string;
7896
+ config: Record<string, unknown>;
7897
+ }, opts: {
7898
+ env: Record<string, string>;
7899
+ }): Promise<{
7900
+ sandboxId: string;
7901
+ stop(): Promise<void>;
7902
+ pause?(): Promise<void>;
7903
+ }>;
7904
+ };
7905
+ }
7906
+ type SandboxGcReapResult = {
7907
+ ok: true;
7908
+ action: "paused" | "stopped";
7909
+ } | {
7910
+ ok: false;
7911
+ error: string;
7912
+ };
7913
+ /**
7914
+ * Tear one ledger entry's box down on its provider and stamp the ledger.
7915
+ * `pause` keeps the box (pausing when the provider supports it, falling
7916
+ * back to a kill otherwise); the default kills. A connect failure that
7917
+ * reads as "box doesn't exist anymore" still stamps the row "stopped" so
7918
+ * the candidate stops re-appearing; other failures leave the row alone
7919
+ * (transient network must not mark a live box as reaped).
7920
+ */
7921
+ declare function reapGcEntry(entry: SandboxLedgerEntry, opts: {
7922
+ pause?: boolean;
7923
+ } & SandboxGcReapDeps): Promise<SandboxGcReapResult>;
7924
+ /** States that still name a box the gc might act on. */
7925
+ declare const GC_REAPABLE_STATES: readonly SandboxLedgerState[];
7926
+
7768
7927
  /**
7769
7928
  * Idle agent-session reaper (PR-6).
7770
7929
  *
@@ -9442,4 +9601,4 @@ interface GatewayHandle {
9442
9601
  */
9443
9602
  declare function createGateway(opts: CreateGatewayOptions): Promise<GatewayHandle>;
9444
9603
 
9445
- export { type ActivityKind, type ActivityListFilter, type ActivityPolicyLister, type ActivityProjector, type ActivityProjectorRegistry, type ActivityProjectorSession, type ActivityRecord, type ActivitySource, type ActivityState, type ActivityWaitingOn, type ActivityWorkflowLister, AdapterAuthDescriptor, type AdapterCapabilitiesLister, type AdapterInstallResult, type AdapterListEntry, type AgentAdapterInstaller, type AgentAdapterLister, type AgentAdapterResolver, type AgentSessionLike, type AgentStreamEvent, type AnthropicReaderConfig, AnthropicRemainingQuotaReader, type AttachPolicyInput, type AttachSandboxOpts, type AttachSandboxResult, AuthMethod, BUCKETS_ROOT, type BrowserAdapterHandle, type BrowserAdapterInfo, type BrowserAdapterLister, type BrowserAdapterResolver, BuildHeartbeatAgent, CanonicalPosture, type CatalogModelsLister, CatalogModelsQuery, CatalogModelsResponse, type CatalogProviderModel, type CatalogProviderModelsQuery, type CatalogProviderModelsResponse, type CatalogProviderPricing, type ClaudeNativeRef, type CommitSpec, type CompletionPolicySupervisor, ContextProfile, type ConversationIndexRecord, type ConversationNativeRef, type CostBudgetDecision, type CrashDetectSummary, type CrashReaperRegistry, type CreateGatewayOptions, type CreateOfferInput, type CreatedOffer, DEFAULT_BUCKET, DEFAULT_ORCHESTRATOR_TOOLS, DEFAULT_WORKTREE_ISOLATION, DeclaredAdapterOption, type DeclaredAdapterPreset, type EagerResumeFailReason, type EagerResumeOutcome, type EagerResumeSkipReason, type EagerResumeSummary, EffortLevel, type GateSpec, type GatewayHandle, type HarnessPreset, type HarnessPresetValidationDeps, HarnessPresetValidationError, type HarnessPresetsFile, type HermesNativeRef, INBOUND_PROVIDERS, type IdleReapSummary, type IdleReaperRegistry, type InboundEndpoint, type InboundEndpointStore, type InboundEndpointStoreOptions, type InboundEnqueuePrompt, type InboundIsSessionAlive, type InboundMessage, type InboundProvider, type InboundRestartSession, type InboundRouteMode, type InboundRouterDeps, type InboundRouterLog, type InboundSpawnForContact, type InboundWatcher, type JudgeGateSpec, LEGACY_SESSIONS_FILE, type LocatedConversation, type LocatedConversationByPath, type McpCredentialDeps, type MigrationMarker, type NormalizeInboundResult, type OnFailSpec, type OpenPrResolver, type OrchestratorGatewayDeps, type OrchestratorInjection, type OrchestratorInjector, type OrchestratorInjectorDeps, type OrchestratorMcpServerFactory, type OrchestratorScope, type OrphanReaperRegistry, PAIRINGS_VERSION, POSTURE_NATIVE_ALIASES, POSTURE_PREAMBLES, type PairingChannelContext, type PairingChannelHandle, type PairingChannelMode, type PairingRecord, type PairingRegistry, type PairingRegistryDeps, type PendingPermission, type PermissionRespondInput, type PermissionRespondResult, type PolicyRunState, type PolicyRunStatus, Posture, type PostureResolution, type PrResolvedState, type PrStateResolver, type PresetInfo, type PricingResolver, type QuotaReadableProfile, type QuotaStoreFile, type QuotaStoreOptions, type ReconnectLogGate, type RegisterBrainToolsOptions, type RegisterBrowserInput, type RegisterPairingToolsOptions, type RegisterSessionInput, type RegisterWebSearchToolsOptions, type RemainingQuota, type RemainingQuotaReader, type ResolveNativeLinkInput, ResolvedAuthSpec, ResumeDisabledError, type ReuseResolution, type RouteAwareLaunchConfig, type RouteAwareLaunchConfigInput, RouteSpec, type RuntimeMeta, SESSION_ID_ENV, type SandboxAdapterInfo, type SandboxConnectionDescriptor, type SandboxLedgerEntry, type SandboxLedgerState, type SandboxProviderCapabilities, type SandboxProviderHandle, type SandboxProviderLister, type SandboxProviderResolver, type ScopeTokenRegistry, SessionConfig, type SessionCurrentPhase, type SessionDescriptor, type SessionKind, type SessionObserver, type SessionSnapshots, type SessionStatus, type SessionUsage, type SessionWaitEvent, type SessionWaitResult, type SessionsRegistry, type ShellGateSpec, type SpawnAgentInput, type SpawnSessionInput, type StallWatchdogRegistry, type StallWatchdogSummary, type StoredProfileQuota, TASK_STATUSES, type TaskCaller, type TaskChangedEvent, type TaskClaimInput, type TaskCreateInput, type TaskGateOutcome, type TaskGateRunner, type TaskLedger, type TaskLedgerRegistry, type TaskLedgerSessionSlice, type TaskListFilter, type TaskRecord, type TaskStatus, type TaskUpdateInput, type TaskVerification, type TaskVerifySupervisor, type TaskWriteResult, type TokenPricing, type TransmitterBinding, type TransmitterBindingStore, type TunnelDescriptor, type TunnelProvider, type TunnelStatus, type UsageBucket, type UsageComputeInput, type UsageRollup, type UsageSnapshotRecord, type UsageSource, WORKSPACE_SLUG_ENV, WORKTREE_ISOLATION_ENV, type WatcherDescriptor, type WatcherStartInput, type WebSearchInput, type WebSearchOutput, type WebSearchResult, type WorkspaceBrainSubscriber, type WorkspaceBrainSubscriberOptions, type WorkspaceBrains, WorkspaceFs, type WorktreeAutoReclaimer, type WorktreeDecision, type WorktreeField, type WorktreeGcClass, type WorktreeGcOutcomeView, type WorktreeGcPlanEntryView, type WorktreeGcReclaimReason, type WorktreeGcResult, type WorktreeGcRunInput, type WorktreeGcRunner, WorktreeIsolationMode, type WorktreeProvisionOutcome, type WorktreeProvisionRequest, type WorktreeProvisioner, type WorktreeRequest, type WorktreeStatusLister, type WorktreeStatusView, activityCounts, addHarnessPreset, appendConversationRecord, attachSandbox, bucketDir, bucketSessionsFile, bucketTranscriptDir, buildCatalogProviderModels, buildMcpConfigSnippet, buildRouteAwareLaunchConfig, canonicalForModeId, claudeProjectSlug, composeSessionObservers, conversationIndexPath, createActivityProjector, createFileStepCache, createGateway, createInboundEndpointStore, createOrchestratorInjector, createOrchestratorMcpServerFactory, createPairingRegistry, createPrProvenanceReconciler, createReconnectLogGate, createScopeTokenRegistry, createSupervisorTaskGateRunner, createTaskLedger, createWorkspaceBrainSubscriber, createWorkspaceBrains, daemonRegistryDir, decideWorktreeIsolation, declaredPresetToProviderPreset, defineBraveSearchHttpDriver, defineSerperHttpDriver, deriveSessionUsage, enrichRollupWithProviderQuota, enrichWithRemainingQuota, evaluateCostBudget, filterActivities, findConversationRecord, findNativeMode, formatToolCall, formatToolResult, getDefaultHarnessPreset, getHarnessPreset, getMcpCredentialDeps, harnessPresetsPath, isAgentCliAuthConfigured, isClosedTaskStatus, isSafeBucketSlug, isTerminalActivityState, listBuckets, listHarnessPresets, listPresets, loadHarnessPresets, loadQuotaStore, loadWorktreeIsolation, locateConversationByNativePath, locateConversationBySessionId, makeBrowserAdapterLister, makeSandboxCredsStore, makeSandboxResolver, migrateLegacySessionsFile, migrationMarkerPath, monitorPolicyWait, monitorSessionWait, narrowOrchestratorTools, normalizeInbound, normalizeModeId, normalizeWorktreeField, parseAnthropicRateLimitHeaders, parseTaskStatus, parseWindow, parseWorktreeIsolationMode, policyToActivities, policyWatchesSession, prToActivities, projectSessionUsage, readConversationIndex, readDaemonRegistry, readProfileQuota, readRegisteredSlugs, readRuntimeMeta, readSandboxLedger, readSessionForBrain, readUsageSnapshots, reapOrphanedDescendants, recordProfileQuota, registerBrainTools, registerBuiltinRoutes, registerPairingTools, registerSandboxAttachTool, registerWebSearchTools, removeHarnessPreset, removeSandboxLedgerEntry, resolveBucketSlug, resolveNativeLink, resolvePosture, resolveReuseFromLedger, rollupUsage, runCrashDetectPass, runEagerResumePass, runIdleReapPass, runStallWatchdogPass, sandboxLedgerPath, setDefaultPreset, setMcpCredentialDeps, sweepStaleDaemonRegistry, sweepStaleRuntimeMetas, toWorktreeStatusView, turnToActivities, unlinkDaemonRegistryEntry, unlinkRuntimeMeta, updateHarnessPreset, verifyInboundSignature, webSearchTool, workflowToActivities, writeDaemonRegistryEntry };
9604
+ export { type ActivityKind, type ActivityListFilter, type ActivityPolicyLister, type ActivityProjector, type ActivityProjectorRegistry, type ActivityProjectorSession, type ActivityRecord, type ActivitySource, type ActivityState, type ActivityWaitingOn, type ActivityWorkflowLister, AdapterAuthDescriptor, type AdapterCapabilitiesLister, type AdapterInstallResult, type AdapterListEntry, type AgentAdapterInstaller, type AgentAdapterLister, type AgentAdapterResolver, type AgentSessionLike, type AgentStreamEvent, type AnthropicReaderConfig, AnthropicRemainingQuotaReader, type AttachPolicyInput, type AttachSandboxOpts, type AttachSandboxResult, AuthMethod, BUCKETS_ROOT, type BrowserAdapterHandle, type BrowserAdapterInfo, type BrowserAdapterLister, type BrowserAdapterResolver, BuildHeartbeatAgent, CanonicalPosture, type CatalogModelsLister, CatalogModelsQuery, CatalogModelsResponse, type CatalogProviderModel, type CatalogProviderModelsQuery, type CatalogProviderModelsResponse, type CatalogProviderPricing, type ClaudeNativeRef, type CommitSpec, type CompletionPolicySupervisor, ContextProfile, type ConversationIndexRecord, type ConversationNativeRef, type CostBudgetDecision, type CrashDetectSummary, type CrashReaperRegistry, type CreateGatewayOptions, type CreateOfferInput, type CreatedOffer, DEAD_SESSION_STATUSES, DEFAULT_BUCKET, DEFAULT_ORCHESTRATOR_TOOLS, DEFAULT_WORKTREE_ISOLATION, DeclaredAdapterOption, type DeclaredAdapterPreset, type EagerResumeFailReason, type EagerResumeOutcome, type EagerResumeSkipReason, type EagerResumeSummary, EffortLevel, GC_REAPABLE_STATES, type GateSpec, type GatewayHandle, type HarnessPreset, type HarnessPresetValidationDeps, HarnessPresetValidationError, type HarnessPresetsFile, type HermesNativeRef, INBOUND_PROVIDERS, type IdleReapSummary, type IdleReaperRegistry, type InboundEndpoint, type InboundEndpointStore, type InboundEndpointStoreOptions, type InboundEnqueuePrompt, type InboundIsSessionAlive, type InboundMessage, type InboundProvider, type InboundRestartSession, type InboundRouteMode, type InboundRouterDeps, type InboundRouterLog, type InboundSpawnForContact, type InboundWatcher, type JudgeGateSpec, LEGACY_SESSIONS_FILE, type LocatedConversation, type LocatedConversationByPath, type McpCredentialDeps, type MigrationMarker, type NormalizeInboundResult, type OnFailSpec, type OpenPrResolver, type OrchestratorGatewayDeps, type OrchestratorInjection, type OrchestratorInjector, type OrchestratorInjectorDeps, type OrchestratorMcpServerFactory, type OrchestratorScope, type OrphanReaperRegistry, PAIRINGS_VERSION, POSTURE_NATIVE_ALIASES, POSTURE_PREAMBLES, type PairingChannelContext, type PairingChannelHandle, type PairingChannelMode, type PairingRecord, type PairingRegistry, type PairingRegistryDeps, type PendingPermission, type PermissionRespondInput, type PermissionRespondResult, type PolicyRunState, type PolicyRunStatus, Posture, type PostureResolution, type PrResolvedState, type PrStateResolver, type PresetInfo, type PricingResolver, type QuotaReadableProfile, type QuotaStoreFile, type QuotaStoreOptions, type ReconnectLogGate, type RegisterBrainToolsOptions, type RegisterBrowserInput, type RegisterPairingToolsOptions, type RegisterSessionInput, type RegisterWebSearchToolsOptions, type RemainingQuota, type RemainingQuotaReader, type ResolveNativeLinkInput, ResolvedAuthSpec, ResumeDisabledError, type ReuseResolution, type RouteAwareLaunchConfig, type RouteAwareLaunchConfigInput, RouteSpec, type RuntimeMeta, SESSION_ID_ENV, type SandboxAdapterInfo, type SandboxConnectionDescriptor, type SandboxGcCandidate, type SandboxGcProviderHandle, type SandboxGcReapDeps, type SandboxGcReapResult, type SandboxLedgerEntry, type SandboxLedgerState, type SandboxProviderCapabilities, type SandboxProviderHandle, type SandboxProviderLister, type SandboxProviderResolver, type ScopeTokenRegistry, SessionConfig, type SessionCurrentPhase, type SessionDescriptor, type SessionKind, type SessionObserver, type SessionSnapshots, type SessionStatus, type SessionUsage, type SessionWaitEvent, type SessionWaitResult, type SessionsRegistry, type ShellGateSpec, type SpawnAgentInput, type SpawnSessionInput, type StallWatchdogRegistry, type StallWatchdogSummary, type StoredProfileQuota, TASK_STATUSES, type TaskCaller, type TaskChangedEvent, type TaskClaimInput, type TaskCreateInput, type TaskGateOutcome, type TaskGateRunner, type TaskLedger, type TaskLedgerRegistry, type TaskLedgerSessionSlice, type TaskListFilter, type TaskRecord, type TaskStatus, type TaskUpdateInput, type TaskVerification, type TaskVerifySupervisor, type TaskWriteResult, type TokenPricing, type TransmitterBinding, type TransmitterBindingStore, type TunnelDescriptor, type TunnelProvider, type TunnelStatus, type UsageBucket, type UsageComputeInput, type UsageRollup, type UsageSnapshotRecord, type UsageSource, WORKSPACE_SLUG_ENV, WORKTREE_ISOLATION_ENV, type WatcherDescriptor, type WatcherStartInput, type WebSearchInput, type WebSearchOutput, type WebSearchResult, type WorkspaceBrainSubscriber, type WorkspaceBrainSubscriberOptions, type WorkspaceBrains, WorkspaceFs, type WorktreeAutoReclaimer, type WorktreeDecision, type WorktreeField, type WorktreeGcClass, type WorktreeGcOutcomeView, type WorktreeGcPlanEntryView, type WorktreeGcReclaimReason, type WorktreeGcResult, type WorktreeGcRunInput, type WorktreeGcRunner, WorktreeIsolationMode, type WorktreeProvisionOutcome, type WorktreeProvisionRequest, type WorktreeProvisioner, type WorktreeRequest, type WorktreeStatusLister, type WorktreeStatusView, activityCounts, addHarnessPreset, appendConversationRecord, attachSandbox, bucketDir, bucketSessionsFile, bucketTranscriptDir, buildCatalogProviderModels, buildMcpConfigSnippet, buildRouteAwareLaunchConfig, canonicalForModeId, claudeProjectSlug, collectGcCandidates, composeSessionObservers, conversationIndexPath, createActivityProjector, createFileStepCache, createGateway, createInboundEndpointStore, createOrchestratorInjector, createOrchestratorMcpServerFactory, createPairingRegistry, createPrProvenanceReconciler, createReconnectLogGate, createScopeTokenRegistry, createSupervisorTaskGateRunner, createTaskLedger, createWorkspaceBrainSubscriber, createWorkspaceBrains, daemonRegistryDir, decideWorktreeIsolation, declaredPresetToProviderPreset, defineBraveSearchHttpDriver, defineSerperHttpDriver, deriveSessionUsage, enrichRollupWithProviderQuota, enrichWithRemainingQuota, evaluateCostBudget, filterActivities, findConversationRecord, findNativeMode, formatToolCall, formatToolResult, getDefaultHarnessPreset, getHarnessPreset, getMcpCredentialDeps, harnessPresetsPath, isAgentCliAuthConfigured, isClosedTaskStatus, isSafeBucketSlug, isTerminalActivityState, listBuckets, listHarnessPresets, listPresets, loadHarnessPresets, loadQuotaStore, loadWorktreeIsolation, locateConversationByNativePath, locateConversationBySessionId, makeBrowserAdapterLister, makeSandboxCredsStore, makeSandboxResolver, migrateLegacySessionsFile, migrationMarkerPath, monitorPolicyWait, monitorSessionWait, narrowOrchestratorTools, normalizeInbound, normalizeModeId, normalizeWorktreeField, parseAnthropicRateLimitHeaders, parseTaskStatus, parseWindow, parseWorktreeIsolationMode, policyToActivities, policyWatchesSession, prToActivities, projectSessionUsage, readConversationIndex, readDaemonRegistry, readProfileQuota, readRegisteredSlugs, readRuntimeMeta, readSandboxLedger, readSessionForBrain, readUsageSnapshots, reapGcEntry, reapOrphanedDescendants, recordProfileQuota, recordSandboxBoot, recordSandboxLiveness, recordSandboxOrigin, recordSandboxState, registerBrainTools, registerBuiltinRoutes, registerPairingTools, registerSandboxAttachTool, registerWebSearchTools, removeHarnessPreset, removeSandboxLedgerEntry, resolveBucketSlug, resolveNativeLink, resolvePosture, resolveReuseFromLedger, rollupUsage, runCrashDetectPass, runEagerResumePass, runIdleReapPass, runStallWatchdogPass, sandboxLedgerPath, setDefaultPreset, setMcpCredentialDeps, sweepStaleDaemonRegistry, sweepStaleRuntimeMetas, toWorktreeStatusView, turnToActivities, unlinkDaemonRegistryEntry, unlinkRuntimeMeta, updateHarnessPreset, upsertSandboxLedger, verifyInboundSignature, webSearchTool, workflowToActivities, writeDaemonRegistryEntry };