@nextclaw/kernel 0.8.7 → 0.9.1

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
@@ -1,7 +1,7 @@
1
1
  import { AUTOMATIC_UPDATE_CHECK_INTERVAL_MS, getAutomaticUpdateCheckDelay, resolveAutomaticUpdateCheckIntervalMs } from "./utils/automatic-update-check.utils.js";
2
2
  import { a as getUnsignedUpdateManifest, c as UpdateBlockReason, d as UpdateStatus, i as UpdateManifestReader, l as UpdateProgress, n as UpdateHostKind, o as serializeUnsignedUpdateManifest, r as UpdateManifest, s as InstallationKind, t as UnsignedUpdateManifest, u as UpdateSnapshot } from "./update-manifest.types-CQpbURTE.js";
3
- import { BaseChannel, Config, ContextCompactionCheckpoint, ContextCompactionPhase, ContextCompactionPlan, ContextWindowSnapshot, CreateAgentProfileInput, CreateSessionContextInheritanceInput, CreateSessionInput, CreatedSession, CronService, EffectiveAgentProfile, ExtensionChannelBinding, ExtensionDiagnostic, ExtensionRegistry, ExtensionUiMetadata, GatewayController, InboundAttachment, InboundMessage, LLMProvider, LLMResponse, LLMStreamEvent, MessageBus, ModelThinkingCapability, OutboundMessage, ProviderModelDiscoveryResult, RequestSessionParams, RequestedSkillsMetadataReader, SearchConfig, SessionMessage, SessionRequestDispatcher, SessionRequestRecord, SessionRequestToolResult, SessionSearchService, SkillInfo, SkillInfo as SkillInfo$1, SkillScope, SpawnSessionAndRequestParams, ThinkingLevel, UpdateAgentProfileInput, buildCompressingCompactionCheckpoint, resolveThinkingLevel } from "@nextclaw/core";
4
- import { ListMessagesOptions, ListSessionsOptions, NcpAgentConversationStateManager, NcpAgentRuntime, NcpEndpointEvent, NcpEventType, NcpLLMApi, NcpLLMApiInput, NcpLLMApiOptions, NcpMessage, NcpMessagePart, NcpRunHandle, NcpSessionApi, NcpSessionMessagePageInfo, NcpSessionPatch, NcpSessionSummary, NcpTool, OpenAIChatChunk } from "@nextclaw/ncp";
3
+ import { BaseChannel, Config, ContextCompactionCheckpoint, ContextCompactionPhase, ContextCompactionPlan, ContextWindowSnapshot, CreateAgentProfileInput, CreateSessionContextInheritanceInput, CreateSessionInput, CreatedSession, CronService, DiagnosticRuntime, EffectiveAgentProfile, ExtensionChannelBinding, ExtensionDiagnostic, ExtensionRegistry, ExtensionUiMetadata, GatewayController, InboundAttachment, InboundMessage, LLMProvider, LLMResponse, LLMStreamEvent, MessageBus, ModelThinkingCapability, OutboundMessage, ProviderModelDiscoveryResult, RequestSessionParams, RequestedSkillsMetadataReader, SearchConfig, SessionMessage, SessionRequestDispatcher, SessionRequestRecord, SessionRequestToolResult, SessionSearchService, SkillInfo, SkillInfo as SkillInfo$1, SkillScope, SpawnSessionAndRequestParams, ThinkingLevel, UpdateAgentProfileInput, buildCompressingCompactionCheckpoint, resolveThinkingLevel } from "@nextclaw/core";
4
+ import { ListMessagesOptions, ListSessionsOptions, NcpAgentConversationStateManager, NcpAgentRuntime, NcpEndpointEvent, NcpEventType, NcpInputDelivery, NcpLLMApi, NcpLLMApiInput, NcpLLMApiOptions, NcpMessage, NcpMessagePart, NcpRunHandle, NcpSessionApi, NcpSessionMessagePageInfo, NcpSessionPatch, NcpSessionSummary, NcpTool, OpenAIChatChunk } from "@nextclaw/ncp";
5
5
  import { AgentRunSendIngressPayload, EventBus, InboxDelivery, InboxDeliveryContentType, InboxDeliveryListView, InboxDeliverySource, InboxDeliveryStateAction, Ingress, RuntimeModelSelectionMode, SystemObjectReferenceGroupDescriptor, SystemObjectReferenceItem, SystemObjectReferenceListView, SystemObjectResolvedReference, Unsubscribe } from "@nextclaw/shared";
6
6
  import { LocalAssetStore } from "@nextclaw/ncp-agent-runtime";
7
7
  import { AppInstallProgressHandler, AppNativeArtifactTarget, AppPlatformTargetService, AppRollbackResult, AppRuntimeIsolation, AppRuntimeProfile, AppStorageContext, AppStorageUsage, AppUninstallResult, AppUpdateResult } from "@nextclaw/app-runtime";
@@ -107,6 +107,7 @@ declare class ChannelManager {
107
107
  private extensionChannels;
108
108
  constructor(deps: {
109
109
  bus: MessageBus;
110
+ diagnostics?: Pick<DiagnosticRuntime, "record" | "readCorrelationId">;
110
111
  });
111
112
  readonly load: (params: {
112
113
  channelConfig: Config;
@@ -126,6 +127,7 @@ declare class ChannelManager {
126
127
  get enabledChannels(): string[];
127
128
  readonly getChannel: (name: string) => BaseChannel<Record<string, unknown>> | null;
128
129
  readonly deliver: (message: OutboundMessage) => Promise<boolean>;
130
+ private readonly recordDelivery;
129
131
  private readonly initChannels;
130
132
  private readonly startChannel;
131
133
  private readonly normalizeOutbound;
@@ -260,6 +262,7 @@ type ConfigManagerRuntimeHooks = {
260
262
  type ConfigManagerOptions = {
261
263
  configPath?: string;
262
264
  channels: ChannelManager;
265
+ diagnostics?: Pick<DiagnosticRuntime, "record">;
263
266
  providerManager: LlmProviderManager;
264
267
  providerModelCatalogManager?: Pick<ProviderModelCatalogManager, "load">;
265
268
  };
@@ -291,6 +294,7 @@ declare class ConfigManager {
291
294
  installRuntimeHooks: (hooks: ConfigManagerRuntimeHooks) => void;
292
295
  applyLiveConfigReload: () => Promise<void>;
293
296
  applyReloadPlan: (nextConfig: Config) => Promise<void>;
297
+ private recordConfigEvent;
294
298
  getConfigSnapshot: (params?: {
295
299
  version?: string;
296
300
  }) => Record<string, unknown>;
@@ -301,7 +305,7 @@ declare class ConfigManager {
301
305
  patchRawConfig: (params: RawConfigMutationParams) => Promise<ConfigMutationResult>;
302
306
  applyConfig: (nextConfig: Config, note?: string) => Promise<ConfigMutationResult>;
303
307
  scheduleReload: (reason: string) => void;
304
- runReload: (reason: string) => Promise<void>;
308
+ runReload: (_reason: string) => Promise<void>;
305
309
  reloadConfig: (reason?: string) => Promise<string>;
306
310
  rebuildChannels: (nextConfig: Config, options?: {
307
311
  start?: boolean;
@@ -371,6 +375,7 @@ type AgentRunRequest = {
371
375
  model?: string;
372
376
  maxTokens?: number;
373
377
  thinkingEffort?: ThinkingEffort | null;
378
+ delivery?: NcpInputDelivery;
374
379
  };
375
380
  type SessionQueuedInput = {
376
381
  id: string;
@@ -379,6 +384,17 @@ type SessionQueuedInput = {
379
384
  message: NcpMessage;
380
385
  metadata: Record<string, unknown>;
381
386
  };
387
+ type SessionPendingInput = SessionQueuedInput & {
388
+ placement: "queued" | "steering";
389
+ intendedRunId: string | null;
390
+ };
391
+ type SessionSteerQueuedInputResult = {
392
+ ok: true;
393
+ input: SessionPendingInput;
394
+ } | {
395
+ ok: false;
396
+ reason: "not-found" | "unavailable";
397
+ };
382
398
  type AgentRunSpec = {
383
399
  runId: string;
384
400
  runtimeId: string;
@@ -419,10 +435,13 @@ type ToolRunContext = {
419
435
  workspace: string;
420
436
  };
421
437
  declare class ToolProviderManager {
438
+ private readonly diagnostics?;
422
439
  private readonly providers;
440
+ constructor(diagnostics?: Pick<DiagnosticRuntime, "record"> | undefined);
423
441
  register: (provider: ToolProvider) => (() => void);
424
442
  buildTools: (request: AgentRunRequest) => Promise<readonly NcpTool[]>;
425
443
  dispose: () => void;
444
+ private readonly wrapTool;
426
445
  }
427
446
  //#endregion
428
447
  //#region src/managers/agent-context-window.manager.d.ts
@@ -518,6 +537,7 @@ type UnfinishedNcpAgentRun = {
518
537
  //#region src/types/session.types.d.ts
519
538
  type SessionMessagePage = {
520
539
  messages: NcpMessage[];
540
+ messageDetailCursors: Record<string, string>;
521
541
  total: number;
522
542
  pageInfo: NcpSessionMessagePageInfo;
523
543
  contextWindow: Record<string, unknown> | null;
@@ -600,13 +620,17 @@ declare class NcpAgentSessionJournalStore {
600
620
  private readonly messageProjectionStore;
601
621
  private readonly unfinishedRunStore;
602
622
  private readonly summaryIndexStore;
623
+ private readonly summaryReadStore;
603
624
  constructor(journalDir: string);
604
625
  appendSessionEvent: (params: {
605
626
  sessionId: string;
606
627
  event: NcpAgentSessionJournalReplayEvent;
607
628
  }) => Promise<void>;
608
629
  getSession: (sessionId: string) => Promise<AgentSessionRecord | null>;
609
- listSessionSummaries: () => Promise<NcpSessionSummary[]>;
630
+ listSessionSummaries: (options?: {
631
+ limit?: number;
632
+ }) => Promise<NcpSessionSummary[]>;
633
+ getSessionSummary: (sessionId: string) => Promise<NcpSessionSummary | null>;
610
634
  listUnfinishedRuns: () => Promise<UnfinishedNcpAgentRun[]>;
611
635
  listSessionMessages: (sessionId: string) => Promise<NcpMessage[]>;
612
636
  listSessionMessagePage: (params: {
@@ -615,6 +639,7 @@ declare class NcpAgentSessionJournalStore {
615
639
  cursor?: string;
616
640
  }) => Promise<SessionMessagePage | null>;
617
641
  updateSessionMessageProjectionContextWindow: (sessionId: string, contextWindow: Record<string, unknown> | null) => Promise<void>;
642
+ getSessionMessageProjectionContextWindow: (sessionId: string) => Promise<Record<string, unknown> | null>;
618
643
  setSessionMetadata: (params: {
619
644
  sessionId: string;
620
645
  metadata: Record<string, unknown>;
@@ -629,7 +654,6 @@ declare class NcpAgentSessionJournalStore {
629
654
  deleteSession: (sessionId: string) => Promise<AgentSessionRecord | null>;
630
655
  hasSession: (sessionId: string) => Promise<boolean>;
631
656
  private appendSessionEventNow;
632
- private withMetadata;
633
657
  private loadSession;
634
658
  private appendJournalEntry;
635
659
  private ensureJournalDir;
@@ -746,6 +770,18 @@ declare class SessionManager implements NcpSessionApi {
746
770
  private applySessionProjectPatch;
747
771
  }
748
772
  //#endregion
773
+ //#region src/types/product-activity.types.d.ts
774
+ type ProductActivityKind = "intent_accepted" | "run_succeeded";
775
+ type ProductActivitySource = "direct" | "channel";
776
+ type ProductActivitySignal = {
777
+ kind: ProductActivityKind;
778
+ occurredAt: string;
779
+ source: ProductActivitySource;
780
+ };
781
+ type ProductActivitySink = {
782
+ record: (signal: ProductActivitySignal) => Promise<void> | void;
783
+ };
784
+ //#endregion
749
785
  //#region src/managers/session-run.manager.d.ts
750
786
  type SessionRunQueuedRequest = {
751
787
  id: string;
@@ -757,23 +793,23 @@ type SessionRunQueuedRequest = {
757
793
  type SessionRunActiveRequest = SessionRunQueuedRequest & {
758
794
  signal: AbortSignal;
759
795
  };
760
- declare class MessageInbox<T> {
761
- private readonly messages;
762
- enqueue: (message: T) => void;
763
- drain: () => T[];
764
- }
796
+ type SessionRunPendingRequest = SessionRunQueuedRequest & {
797
+ placement: "queued" | "steering";
798
+ intendedRunId: string | null;
799
+ };
765
800
  declare class SessionRun {
766
801
  private readonly stateManager;
767
- readonly inbox: MessageInbox<NcpMessage>;
802
+ private readonly productActivitySink?;
768
803
  readonly sessionId: string;
769
804
  private readonly statusListeners;
770
- private readonly queuedRequests;
805
+ private readonly pendingInputs;
771
806
  private activeRunId;
772
807
  private activeRunController;
808
+ private activeProductActivitySource;
773
809
  constructor(seed: {
774
810
  sessionId: string;
775
811
  messages: readonly NcpMessage[];
776
- }, stateManager?: NcpAgentConversationStateManager);
812
+ }, stateManager?: NcpAgentConversationStateManager, productActivitySink?: ProductActivitySink | undefined);
777
813
  getSnapshot: () => {
778
814
  messages: readonly NcpMessage[];
779
815
  };
@@ -782,7 +818,13 @@ declare class SessionRun {
782
818
  onStatusChange: (listener: (status: "idle" | "running") => void) => (() => void);
783
819
  enqueueRequest: (request: AgentRunRequest, session: AgentRunSession) => SessionRunQueuedRequest;
784
820
  listQueuedRequests: () => readonly SessionRunQueuedRequest[];
821
+ listPendingRequests: () => readonly SessionRunPendingRequest[];
785
822
  removeQueuedRequest: (queuedRequestId: string) => SessionRunQueuedRequest | null;
823
+ moveQueuedRequestToNextStep: (queuedRequestId: string) => SessionRunPendingRequest | null;
824
+ enqueueNextStepRequest: (request: AgentRunRequest, session: AgentRunSession) => SessionRunPendingRequest | null;
825
+ claimNextStepRequests: (runId: string) => readonly SessionRunPendingRequest[];
826
+ acknowledgeNextStepRequests: (requestIds: readonly string[]) => void;
827
+ getActiveRunId: () => string | null;
786
828
  beginNextRun: () => SessionRunActiveRequest | null;
787
829
  abortRun: (runId?: string, reason?: unknown) => boolean;
788
830
  isRunning: () => boolean;
@@ -793,9 +835,10 @@ declare class SessionRun {
793
835
  }
794
836
  declare class SessionRunManager {
795
837
  private readonly sessionManager;
838
+ private readonly productActivitySink?;
796
839
  private readonly runs;
797
840
  private readonly pendingCreations;
798
- constructor(sessionManager: SessionManager);
841
+ constructor(sessionManager: SessionManager, productActivitySink?: ProductActivitySink | undefined);
799
842
  getSessionRun: (sessionId: string) => SessionRun | null;
800
843
  isSessionRunning: (sessionId: string) => boolean;
801
844
  getOrCreateSessionRun: (sessionId: string) => Promise<SessionRun>;
@@ -810,6 +853,7 @@ type AgentRuntimeRunOptions = {
810
853
  sessionRun: SessionRun;
811
854
  contextBlocks: readonly ContextBlock[];
812
855
  tools: readonly NcpTool[];
856
+ initialMessages: readonly NcpMessage[];
813
857
  signal?: AbortSignal;
814
858
  };
815
859
  type AgentRuntimeContextCompactionOptions = Pick<AgentRuntimeRunOptions, "session" | "sessionRun">;
@@ -819,6 +863,9 @@ type AgentRuntimeContextCompactionResult = {
819
863
  supported: boolean;
820
864
  };
821
865
  type AgentRuntime = {
866
+ capabilities?: {
867
+ nextStepInput?: boolean;
868
+ };
822
869
  run: (spec: AgentRunSpec, options: AgentRuntimeRunOptions) => AsyncIterable<NcpEndpointEvent>;
823
870
  compactContext?: (options: AgentRuntimeContextCompactionOptions) => Promise<AgentRuntimeContextCompactionResult>;
824
871
  dispose?: () => Promise<void> | void;
@@ -866,6 +913,24 @@ declare class AgentRuntimeManager {
866
913
  private disposeAllRuntimes;
867
914
  }
868
915
  //#endregion
916
+ //#region src/services/agent-run-input-delivery.service.d.ts
917
+ /** Resolves public pending-input actions while SessionRun remains the state owner. */
918
+ declare class AgentRunInputDeliveryService {
919
+ private readonly agentRuntimeManager;
920
+ private readonly sessionManager;
921
+ private readonly sessionRunManager;
922
+ private readonly publishQueueUpdated;
923
+ constructor(agentRuntimeManager: AgentRuntimeManager, sessionManager: SessionManager, sessionRunManager: SessionRunManager, publishQueueUpdated: (sessionId: string) => void);
924
+ listQueuedInputs: (sessionId: string) => readonly SessionQueuedInput[];
925
+ removeQueuedInput: (sessionId: string, queuedInputId: string) => SessionQueuedInput | null;
926
+ listPendingInputs: (sessionId: string) => readonly SessionPendingInput[];
927
+ steerQueuedInput: (sessionId: string, queuedInputId: string) => Promise<SessionSteerQueuedInputResult>;
928
+ enqueuePreferredSteeringInput: (sessionRun: SessionRun, request: AgentRunRequest, session: AgentRunSession) => SessionRunPendingRequest | null;
929
+ private supportsNextStepInput;
930
+ private toPendingInput;
931
+ private toQueuedInput;
932
+ }
933
+ //#endregion
869
934
  //#region src/managers/agent-run-request.manager.d.ts
870
935
  declare class AgentRunRequestManager {
871
936
  private readonly agentRuntimeManager;
@@ -876,15 +941,15 @@ declare class AgentRunRequestManager {
876
941
  private readonly ingress;
877
942
  private readonly sessionManager;
878
943
  private readonly sessionRunManager;
944
+ private readonly diagnostics?;
879
945
  readonly cleanups: Array<() => void>;
880
946
  private readonly observedSessionRuns;
881
947
  private readonly sessionCommandManager;
948
+ readonly pendingInputs: AgentRunInputDeliveryService;
882
949
  private started;
883
- constructor(agentRuntimeManager: AgentRuntimeManager, agentManager: AgentManager, configManager: ConfigManager, agentContextWindowManager: AgentContextWindowManager, eventBus: EventBus, ingress: Ingress, sessionManager: SessionManager, sessionRunManager: SessionRunManager);
950
+ constructor(agentRuntimeManager: AgentRuntimeManager, agentManager: AgentManager, configManager: ConfigManager, agentContextWindowManager: AgentContextWindowManager, eventBus: EventBus, ingress: Ingress, sessionManager: SessionManager, sessionRunManager: SessionRunManager, diagnostics?: Pick<DiagnosticRuntime, "record"> | undefined);
884
951
  start: () => void;
885
952
  dispose: () => void;
886
- listQueuedInputs: (sessionId: string) => readonly SessionQueuedInput[];
887
- removeQueuedInput: (sessionId: string, queuedInputId: string) => SessionQueuedInput | null;
888
953
  private handleSendRequest;
889
954
  private handleAbortRequest;
890
955
  private handleEditMessageRequest;
@@ -898,7 +963,6 @@ declare class AgentRunRequestManager {
898
963
  private observeSessionRun;
899
964
  private publishRunQueueUpdated;
900
965
  private publishNcpEvent;
901
- private toQueuedInput;
902
966
  private getOrCreateSessionForRequest;
903
967
  private abort;
904
968
  }
@@ -992,6 +1056,7 @@ declare class AccessManager {
992
1056
  //#region src/managers/automation.manager.d.ts
993
1057
  type AutomationManagerOptions = {
994
1058
  storePath: string;
1059
+ diagnostics?: Pick<DiagnosticRuntime, "record">;
995
1060
  };
996
1061
  declare class AutomationManager extends CronService {
997
1062
  constructor(options: AutomationManagerOptions);
@@ -1039,8 +1104,15 @@ type AppPackageView = {
1039
1104
  runtimeProfile: AppRuntimeProfile;
1040
1105
  isolation: AppRuntimeIsolation;
1041
1106
  };
1107
+ type AppPackageHostTarget = {
1108
+ key: string;
1109
+ operatingSystem: "darwin" | "linux" | "win32";
1110
+ architecture: "x64" | "arm64";
1111
+ abi?: "gnu" | "musl" | "msvc";
1112
+ };
1042
1113
  type AppPackageList = {
1043
1114
  entries: AppPackageView[];
1115
+ hostTarget?: AppPackageHostTarget;
1044
1116
  };
1045
1117
  type AppPackageOperationAction = "install" | "rollback" | "uninstall" | "update";
1046
1118
  type AppPackageOperationStatus = "queued" | "resolving" | "downloading" | "verifying" | "installing" | "finalizing" | "succeeded" | "failed" | "interrupted";
@@ -1111,6 +1183,7 @@ declare class AppPackageManager {
1111
1183
  private readonly installationService;
1112
1184
  private readonly manifestService;
1113
1185
  private readonly operationManager;
1186
+ private readonly platformTargetService;
1114
1187
  private readonly presentationService;
1115
1188
  private readonly registryService;
1116
1189
  private runtimeHooks;
@@ -1126,6 +1199,7 @@ declare class AppPackageManager {
1126
1199
  listPackages: (options?: {
1127
1200
  includeStorageUsage?: boolean;
1128
1201
  }) => Promise<AppPackageList>;
1202
+ private readHostTarget;
1129
1203
  listInstalledDataOwners: () => Promise<Array<{
1130
1204
  id: string;
1131
1205
  name: string;
@@ -1252,6 +1326,7 @@ type ExtensionLoadResult = {
1252
1326
  shouldRestartChannels: boolean;
1253
1327
  };
1254
1328
  type ExtensionManagerOptions = {
1329
+ diagnostics: DiagnosticRuntime;
1255
1330
  configManager: Pick<ConfigManager, "loadConfig">;
1256
1331
  eventBus: Pick<EventBus, "emitEnvelope">;
1257
1332
  ingress: Pick<Ingress, "addHandler">;
@@ -1504,6 +1579,7 @@ declare class SessionContextCompactionManager {
1504
1579
  //#region src/stores/panel-app-state.store.d.ts
1505
1580
  type PanelAppPreferencesUpdate = {
1506
1581
  favorite?: boolean;
1582
+ mainSidebar?: boolean;
1507
1583
  };
1508
1584
  //#endregion
1509
1585
  //#region src/stores/panel-app-client-grant.store.d.ts
@@ -1595,6 +1671,61 @@ type ServiceActionGrantRequest = {
1595
1671
  };
1596
1672
  //#endregion
1597
1673
  //#region src/types/panel-app.types.d.ts
1674
+ type PanelAppEntry = {
1675
+ id: string;
1676
+ appId: string;
1677
+ fileName: string;
1678
+ kind: "single-file" | "folder";
1679
+ title: string;
1680
+ description?: string;
1681
+ icon?: string;
1682
+ contentPath: string;
1683
+ createdAt: string;
1684
+ updatedAt: string;
1685
+ sizeBytes: number;
1686
+ favorite: boolean;
1687
+ mainSidebar: boolean;
1688
+ mainSidebarOrder?: number;
1689
+ clientDeclared: boolean;
1690
+ clientGranted: boolean;
1691
+ lastOpenedAt?: string;
1692
+ openCount: number;
1693
+ sourceKind: "workspace" | "package";
1694
+ packageId?: string;
1695
+ packageVersion?: string;
1696
+ };
1697
+ type PanelAppList = {
1698
+ workspacePath: string;
1699
+ panelsPath: string;
1700
+ entries: PanelAppEntry[];
1701
+ };
1702
+ type PanelAppContent = {
1703
+ id: string;
1704
+ appId: string;
1705
+ fileName: string;
1706
+ html: string;
1707
+ contentType: "text/html; charset=utf-8";
1708
+ capabilities: string[];
1709
+ clientDeclared: boolean;
1710
+ clientGranted: boolean;
1711
+ serviceActions: string[];
1712
+ };
1713
+ type PanelAppDeleteResult = {
1714
+ deleted: true;
1715
+ fileName: string;
1716
+ id: string;
1717
+ };
1718
+ type PanelAppBridgeSession = {
1719
+ id: string;
1720
+ token: string;
1721
+ appId: string;
1722
+ caller: ServiceActionCaller;
1723
+ declaredCapabilities: string[];
1724
+ declaredActions: string[];
1725
+ clientDeclared: boolean;
1726
+ createdAt: string;
1727
+ expiresAt: string;
1728
+ };
1598
1729
  type PanelAppErrorCode = "AGENT_OBJECT_REQUEST_FAILED" | "AGENT_OBJECT_RESULT_NOT_SUBMITTED" | "AGENT_OBJECT_RESULT_SCHEMA_INVALID" | "AGENT_OBJECT_RESULT_TIMEOUT" | "AUTHORIZATION_REQUIRED" | "PANEL_APP_AGENT_REQUEST_INVALID" | "PANEL_APP_ASSET_TOKEN_EXPIRED" | "PANEL_APP_ASSET_TOKEN_INVALID" | "PANEL_APP_BRIDGE_SESSION_NOT_FOUND" | "PANEL_APP_CAPABILITY_NOT_DECLARED" | "PANEL_APP_CLIENT_NOT_DECLARED" | "PANEL_APP_INVALID_ASSET_PATH" | "PANEL_APP_INVALID_ID" | "PANEL_APP_INVALID_SOURCE_PATH" | "PANEL_APP_MANIFEST_INVALID" | "PANEL_APP_MANAGED_SOURCE" | "PANEL_APP_NOT_FOUND" | "PANEL_APP_READ_FAILED";
1599
1730
  declare class PanelAppError extends Error {
1600
1731
  readonly code: PanelAppErrorCode;
@@ -1659,60 +1790,6 @@ type PanelAppAsset = {
1659
1790
  };
1660
1791
  //#endregion
1661
1792
  //#region src/managers/panel-app.manager.d.ts
1662
- declare const PANEL_APP_CONTENT_TYPE: "text/html; charset=utf-8";
1663
- type PanelAppEntry = {
1664
- id: string;
1665
- appId: string;
1666
- fileName: string;
1667
- kind: "single-file" | "folder";
1668
- title: string;
1669
- description?: string;
1670
- icon?: string;
1671
- contentPath: string;
1672
- createdAt: string;
1673
- updatedAt: string;
1674
- sizeBytes: number;
1675
- favorite: boolean;
1676
- clientDeclared: boolean;
1677
- clientGranted: boolean;
1678
- lastOpenedAt?: string;
1679
- openCount: number;
1680
- sourceKind: "workspace" | "package";
1681
- packageId?: string;
1682
- packageVersion?: string;
1683
- };
1684
- type PanelAppList = {
1685
- workspacePath: string;
1686
- panelsPath: string;
1687
- entries: PanelAppEntry[];
1688
- };
1689
- type PanelAppContent = {
1690
- id: string;
1691
- appId: string;
1692
- fileName: string;
1693
- html: string;
1694
- contentType: typeof PANEL_APP_CONTENT_TYPE;
1695
- capabilities: string[];
1696
- clientDeclared: boolean;
1697
- clientGranted: boolean;
1698
- serviceActions: string[];
1699
- };
1700
- type PanelAppDeleteResult = {
1701
- deleted: true;
1702
- fileName: string;
1703
- id: string;
1704
- };
1705
- type PanelAppBridgeSession = {
1706
- id: string;
1707
- token: string;
1708
- appId: string;
1709
- caller: ServiceActionCaller;
1710
- declaredCapabilities: string[];
1711
- declaredActions: string[];
1712
- clientDeclared: boolean;
1713
- createdAt: string;
1714
- expiresAt: string;
1715
- };
1716
1793
  declare class PanelAppManager {
1717
1794
  private readonly params;
1718
1795
  private readonly bridgeSessions;
@@ -1854,6 +1931,14 @@ type ServiceAppRemovalDiagnostic = {
1854
1931
  message: string;
1855
1932
  };
1856
1933
  //#endregion
1934
+ //#region src/utils/service-app-error.utils.d.ts
1935
+ type ServiceAppErrorCode = "AUTHORIZATION_REQUIRED" | "SERVICE_APP_ACTION_NOT_DECLARED" | "SERVICE_APP_ACTION_NOT_FOUND" | "SERVICE_APP_INVALID_ACTION" | "SERVICE_APP_INVALID_CALLER" | "SERVICE_APP_INVALID_MANIFEST" | "SERVICE_APP_MANAGED_SOURCE" | "SERVICE_APP_NOT_FOUND" | "SERVICE_APP_READ_FAILED" | "SERVICE_APP_RUNTIME_FAILED";
1936
+ declare class ServiceAppError extends Error {
1937
+ readonly code: ServiceAppErrorCode;
1938
+ constructor(code: ServiceAppErrorCode, message: string);
1939
+ }
1940
+ declare const isServiceAppError: (error: unknown) => error is ServiceAppError;
1941
+ //#endregion
1857
1942
  //#region src/managers/service-app.manager.d.ts
1858
1943
  type ServiceAppList = {
1859
1944
  workspacePath: string;
@@ -1866,12 +1951,6 @@ type ServiceAppDeleteResult = {
1866
1951
  id: string;
1867
1952
  dataRemoved: boolean;
1868
1953
  };
1869
- type ServiceAppErrorCode = "AUTHORIZATION_REQUIRED" | "SERVICE_APP_ACTION_NOT_DECLARED" | "SERVICE_APP_ACTION_NOT_FOUND" | "SERVICE_APP_INVALID_ACTION" | "SERVICE_APP_INVALID_CALLER" | "SERVICE_APP_INVALID_MANIFEST" | "SERVICE_APP_MANAGED_SOURCE" | "SERVICE_APP_NOT_FOUND" | "SERVICE_APP_READ_FAILED" | "SERVICE_APP_RUNTIME_FAILED";
1870
- declare class ServiceAppError extends Error {
1871
- readonly code: ServiceAppErrorCode;
1872
- constructor(code: ServiceAppErrorCode, message: string);
1873
- }
1874
- declare const isServiceAppError: (error: unknown) => error is ServiceAppError;
1875
1954
  declare class ServiceAppManager {
1876
1955
  private readonly params;
1877
1956
  private readonly removalService;
@@ -2037,6 +2116,7 @@ type NextclawKernelOptions = {
2037
2116
  configPath?: string;
2038
2117
  builtInAppsDirectory?: string;
2039
2118
  productVersion?: string;
2119
+ productActivitySink?: ProductActivitySink;
2040
2120
  };
2041
2121
  type NextclawKernelRuntimeControl<TGatewayInput, TUiInput, TStartInput> = {
2042
2122
  gateway: (input: TGatewayInput) => Promise<void>;
@@ -2055,6 +2135,7 @@ declare class NextclawKernel {
2055
2135
  readonly eventBus: EventBus;
2056
2136
  readonly ingress: Ingress;
2057
2137
  readonly messageBus: MessageBus;
2138
+ readonly diagnostics: DiagnosticRuntime;
2058
2139
  readonly llmProviders: LlmProviderManager;
2059
2140
  readonly providerModelCatalog: ProviderModelCatalogManager;
2060
2141
  readonly llmUsage: LlmUsageManager;
@@ -2181,6 +2262,7 @@ type GatewayInboundLoopRuntime = {
2181
2262
  kernel: {
2182
2263
  channels: ChannelManager;
2183
2264
  assetStore: AssetApi;
2265
+ diagnostics?: Pick<DiagnosticRuntime, "record" | "readCorrelationId">;
2184
2266
  };
2185
2267
  agentRunClient: AgentRunClient;
2186
2268
  messageBus: MessageBus;
@@ -2194,6 +2276,7 @@ declare class GatewayInboundProcessor {
2194
2276
  private runtime;
2195
2277
  constructor(runtime: GatewayInboundLoopRuntime);
2196
2278
  process: (message: InboundMessage) => Promise<void>;
2279
+ private record;
2197
2280
  private resolveRoute;
2198
2281
  private dispatchSlashCommandMaybe;
2199
2282
  private dispatchChannelReplyRouteMaybe;
@@ -2585,5 +2668,5 @@ declare function resolveLegacyEventType(message: SessionMessage): string;
2585
2668
  declare function getUiContentParamsBootstrapScript(): string;
2586
2669
  declare function injectUiContentParamsBootstrap(html: string): string;
2587
2670
  //#endregion
2588
- export { AUTOMATIC_UPDATE_CHECK_INTERVAL_MS, AccessLoginResult, AccessManager, AccessManagerOptions, AccessPasswordStatus, AccessPrincipal, AccessRole, AccessSessionRecord, AccessSessionState, AgentManager, AgentManagerOptions, AgentRunClient, type AgentRunReply, type AgentRunReplyOptions, AgentRunSession, type AgentRunStreamOptions, AgentRuntimeEntry, AgentRuntimeProviderRegistration, AgentRuntimeSessionRequestDispatcherOptions, AgentRuntimeSessionTypeDescribeParams, AgentRuntimeSessionTypeIcon, AgentRuntimeSessionTypeOption, AgentRuntimeSessionTypeProvider, AppDataDeleteResult, AppDataDiagnostic, AppDataEntry, AppDataError, AppDataErrorCode, AppDataLifecycle, AppDataList, AppDataManager, AppDataSource, AppPackageComponentKind, AppPackageComponentSource, AppPackageComponentView, AppPackageConflict, AppPackageError, AppPackageErrorCode, AppPackageList, AppPackageManager, AppPackageOperationAction, AppPackageOperationInput, AppPackageOperationList, AppPackageOperationResult, AppPackageOperationStatus, AppPackageOperationView, AppPackageRuntimeHooks, AppPackageView, type AssetApi, AutomationManager, AutomationManagerOptions, type BuildAgentRunSendPayloadParams, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_CONTINUATION_TEXT, CONTEXT_COMPACTION_PROJECTION_KIND, CONTEXT_COMPACTION_PROJECTION_METADATA_KEY, CONTEXT_COMPACTION_SYSTEM_PREAMBLE, CONTEXT_COMPACTION_TIMELINE_KIND, ChannelManager, ChannelReplyRouterDispatchParams, CommandRegistry, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextCompactionJournalRecoveryService, ContextCompactionModelProjection, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextCompactionTrigger, CreateAgentRunSessionParams, CreateInboxDeliveryInput, CreateProjectInput, DEFAULT_AGENT_RUNTIME_ENTRY_ID, DEFAULT_SERVICE_ACTION_RISK, DirectPromptDispatchParams, ExtensionLoadProgress, ExtensionLoadResult, ExtensionManager, type ExtensionRuntimeStatus, GatewayInboundLoopRuntime, GatewayInboundProcessor, InboxDeliveryError, InboxDeliveryErrorCode, InboxDeliveryManager, InboxDeliveryManagerOptions, InstallationKind, InstalledSkillDetail, InstalledSkillSummary, InstalledSkillsList, type LearningLoopRuntimeConfig, LlmProviderManager, LlmProviderRuntime, LlmUsageManager, LlmUsageManagerOptions, LlmUsageRecord, LlmUsageSnapshot, LlmUsageStats, LlmUsageStore, LlmUsageStoreOptions, LlmUsageSummary, LocalizedTextMap, MAX_INBOX_DELIVERY_CONTENT_LENGTH, McpManager, McpServiceAppRuntimeService, NARP_HTTP_RUNTIME_KIND, NARP_STDIO_RUNTIME_KIND, NEXTCLAW_TIMELINE_KIND_METADATA_KEY, NcpAgentSessionJournalStore, NextclawKernel, NextclawKernelOptions, NextclawNcpResolvedAgentProfile, NextclawNcpResolvedRunContext, NextclawNcpRunContextResolveParams, PANEL_APP_AGENT_CAPABILITIES, PROJECT_TEMPLATE_IDS, PROVIDER_MODEL_CATALOG_REFRESH_INTERVAL_MS, PanelAppAgentCapability, PanelAppAgentGenerateObjectInput, PanelAppAgentGenerateObjectRequest, PanelAppAgentGenerateObjectResult, PanelAppAgentRunClient, PanelAppAgentSendPayload, PanelAppAgentSendRequest, PanelAppAgentSendResult, PanelAppAssetTokenService, PanelAppBridgeSession, PanelAppCapabilityGrant, PanelAppCapabilityGrantCaller, type PanelAppClientGrant, PanelAppContent, PanelAppDeleteResult, PanelAppEntry, PanelAppError, PanelAppErrorCode, PanelAppList, PanelAppManager, type PanelAppPreferencesUpdate, PreferenceEntry, PreferenceError, PreferenceErrorCode, PreferenceJsonValue, PreferenceManager, PreferenceManagerOptions, ProjectError, ProjectErrorCode, ProjectManager, ProjectManagerOptions, ProjectRecord, ProjectTemplate, ProjectTemplateId, ProviderManagerNcpLLMApi, ProviderModelCatalogEntry, ProviderModelCatalogManager, ProviderModelCatalogSnapshot, ProviderModelsDiscoverInput, ResolvedAgentProfile, SERVICE_APP_MANIFEST_FILE_NAME, ServiceAction, ServiceActionCaller, ServiceActionGrant, ServiceActionGrantRequest, ServiceActionGrantState, ServiceActionInvokeRequest, ServiceActionInvokeResult, ServiceActionRisk, ServiceActionRuntimeState, ServiceAppDeleteResult, ServiceAppError, ServiceAppErrorCode, ServiceAppList, ServiceAppManager, ServiceAppManifest, ServiceAppManifestAction, ServiceAppProtocol, ServiceAppRecord, ServiceAppRuntimeStatus, SessionContextCompactionError, SessionContextCompactionErrorCode, SessionContextCompactionManager, SessionContextCompactionResult, SessionManager, SessionManagerOptions, SessionMessageCursorError, SessionMessagePage, SessionModelTokenUsage, type SessionQueuedInput, SessionRequestManager, SessionRequestManagerOptions, SessionSettingsError, SessionSettingsPatch, SessionTokenUsageStatus, SessionTokenUsageSummary, SessionTokenUsageTotals, SkillFrontmatter, type SkillInfo, SkillManager, type SkillScope, SystemObjectReferenceError, SystemObjectReferenceErrorCode, SystemObjectReferenceManager, SystemObjectReferenceProvider, SystemObjectReferenceSnapshotSource, UnsignedUpdateManifest, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateSnapshot, UpdateStatus, type WorkspaceServiceDataOwner, buildAgentRunSendPayload, buildContextCompactionModelProjection, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildNextclawNcpRunContext, buildServiceActionId, createAgentRuntimeSessionRequestDispatcher, createAssetTools, createContextCompactionMessageId, createContextWindowSignature, createCronJobSystemObjectProvider, createInboxDeliverySystemObjectProvider, createLlmUsageRecord, describeAgentRuntimeSessionTypes, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, getAutomaticUpdateCheckDelay, getServiceActionName, getServiceAppManifestPath, getUiContentParamsBootstrapScript, getUnsignedUpdateManifest, hasLlmUsageTelemetry, injectUiContentParamsBootstrap, isAppDataError, isAppPackageError, isContextCompactionProjectionMessage, isContextCompactionTimelineMessage, isContextWindowSnapshot, isInboxDeliveryError, isPanelAppAgentCapability, isPanelAppError, isPreferenceError, isProjectError, isReplyCapableChannel, isServiceAppError, isSessionContextCompactionError, isSessionMessageCursorError, isSessionSettingsError, isSystemObjectReferenceError, listExtensionChannelIds, listServiceAppManifestActions, mergeServiceAppRuntimeActions, normalizeAgentRuntimeSessionTypeIcon, normalizeLlmUsageModel, normalizeOptionalString, parseServiceAppManifest, parseSkillFrontmatter, readContextCompactionCheckpoint, readContextWindowEventSessionId, readLatestContextCompactionCheckpoint, readLearningLoopRuntimeConfig, readMetadataModel, readMetadataThinking, readServiceAppManifest, resolveAgentRuntimeEntries, resolveAutomaticUpdateCheckIntervalMs, resolveChannelReplyRoute, resolveEffectiveModel, resolveLegacyEventType, resolveSessionChannelContext, runGatewayInboundLoop, sanitizeLlmUsage, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, stripSkillFrontmatter, syncSessionThinkingPreference, toNcpMessages, waitForAgentRuntimeSessionReply };
2671
+ export { AUTOMATIC_UPDATE_CHECK_INTERVAL_MS, AccessLoginResult, AccessManager, AccessManagerOptions, AccessPasswordStatus, AccessPrincipal, AccessRole, AccessSessionRecord, AccessSessionState, AgentManager, AgentManagerOptions, AgentRunClient, type AgentRunReply, type AgentRunReplyOptions, AgentRunSession, type AgentRunStreamOptions, AgentRuntimeEntry, AgentRuntimeProviderRegistration, AgentRuntimeSessionRequestDispatcherOptions, AgentRuntimeSessionTypeDescribeParams, AgentRuntimeSessionTypeIcon, AgentRuntimeSessionTypeOption, AgentRuntimeSessionTypeProvider, AppDataDeleteResult, AppDataDiagnostic, AppDataEntry, AppDataError, AppDataErrorCode, AppDataLifecycle, AppDataList, AppDataManager, AppDataSource, AppPackageComponentKind, AppPackageComponentSource, AppPackageComponentView, AppPackageConflict, AppPackageError, AppPackageErrorCode, AppPackageHostTarget, AppPackageList, AppPackageManager, AppPackageOperationAction, AppPackageOperationInput, AppPackageOperationList, AppPackageOperationResult, AppPackageOperationStatus, AppPackageOperationView, AppPackageRuntimeHooks, AppPackageView, type AssetApi, AutomationManager, AutomationManagerOptions, type BuildAgentRunSendPayloadParams, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_CONTINUATION_TEXT, CONTEXT_COMPACTION_PROJECTION_KIND, CONTEXT_COMPACTION_PROJECTION_METADATA_KEY, CONTEXT_COMPACTION_SYSTEM_PREAMBLE, CONTEXT_COMPACTION_TIMELINE_KIND, ChannelManager, ChannelReplyRouterDispatchParams, CommandRegistry, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextCompactionJournalRecoveryService, ContextCompactionModelProjection, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextCompactionTrigger, CreateAgentRunSessionParams, CreateInboxDeliveryInput, CreateProjectInput, DEFAULT_AGENT_RUNTIME_ENTRY_ID, DEFAULT_SERVICE_ACTION_RISK, DirectPromptDispatchParams, ExtensionLoadProgress, ExtensionLoadResult, ExtensionManager, type ExtensionRuntimeStatus, GatewayInboundLoopRuntime, GatewayInboundProcessor, InboxDeliveryError, InboxDeliveryErrorCode, InboxDeliveryManager, InboxDeliveryManagerOptions, InstallationKind, InstalledSkillDetail, InstalledSkillSummary, InstalledSkillsList, type LearningLoopRuntimeConfig, LlmProviderManager, LlmProviderRuntime, LlmUsageManager, LlmUsageManagerOptions, LlmUsageRecord, LlmUsageSnapshot, LlmUsageStats, LlmUsageStore, LlmUsageStoreOptions, LlmUsageSummary, LocalizedTextMap, MAX_INBOX_DELIVERY_CONTENT_LENGTH, McpManager, McpServiceAppRuntimeService, NARP_HTTP_RUNTIME_KIND, NARP_STDIO_RUNTIME_KIND, NEXTCLAW_TIMELINE_KIND_METADATA_KEY, NcpAgentSessionJournalStore, NextclawKernel, NextclawKernelOptions, NextclawNcpResolvedAgentProfile, NextclawNcpResolvedRunContext, NextclawNcpRunContextResolveParams, PANEL_APP_AGENT_CAPABILITIES, PROJECT_TEMPLATE_IDS, PROVIDER_MODEL_CATALOG_REFRESH_INTERVAL_MS, PanelAppAgentCapability, PanelAppAgentGenerateObjectInput, PanelAppAgentGenerateObjectRequest, PanelAppAgentGenerateObjectResult, PanelAppAgentRunClient, PanelAppAgentSendPayload, PanelAppAgentSendRequest, PanelAppAgentSendResult, PanelAppAssetTokenService, PanelAppBridgeSession, PanelAppCapabilityGrant, PanelAppCapabilityGrantCaller, type PanelAppClientGrant, PanelAppContent, PanelAppDeleteResult, PanelAppEntry, PanelAppError, PanelAppErrorCode, PanelAppList, PanelAppManager, type PanelAppPreferencesUpdate, PreferenceEntry, PreferenceError, PreferenceErrorCode, PreferenceJsonValue, PreferenceManager, PreferenceManagerOptions, ProductActivityKind, ProductActivitySignal, ProductActivitySink, ProductActivitySource, ProjectError, ProjectErrorCode, ProjectManager, ProjectManagerOptions, ProjectRecord, ProjectTemplate, ProjectTemplateId, ProviderManagerNcpLLMApi, ProviderModelCatalogEntry, ProviderModelCatalogManager, ProviderModelCatalogSnapshot, ProviderModelsDiscoverInput, ResolvedAgentProfile, SERVICE_APP_MANIFEST_FILE_NAME, ServiceAction, ServiceActionCaller, ServiceActionGrant, ServiceActionGrantRequest, ServiceActionGrantState, ServiceActionInvokeRequest, ServiceActionInvokeResult, ServiceActionRisk, ServiceActionRuntimeState, ServiceAppDeleteResult, ServiceAppError, type ServiceAppErrorCode, ServiceAppList, ServiceAppManager, ServiceAppManifest, ServiceAppManifestAction, ServiceAppProtocol, ServiceAppRecord, ServiceAppRuntimeStatus, SessionContextCompactionError, SessionContextCompactionErrorCode, SessionContextCompactionManager, SessionContextCompactionResult, SessionManager, SessionManagerOptions, SessionMessageCursorError, SessionMessagePage, SessionModelTokenUsage, type SessionPendingInput, type SessionQueuedInput, SessionRequestManager, SessionRequestManagerOptions, SessionSettingsError, SessionSettingsPatch, type SessionSteerQueuedInputResult, SessionTokenUsageStatus, SessionTokenUsageSummary, SessionTokenUsageTotals, SkillFrontmatter, type SkillInfo, SkillManager, type SkillScope, SystemObjectReferenceError, SystemObjectReferenceErrorCode, SystemObjectReferenceManager, SystemObjectReferenceProvider, SystemObjectReferenceSnapshotSource, UnsignedUpdateManifest, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateSnapshot, UpdateStatus, type WorkspaceServiceDataOwner, buildAgentRunSendPayload, buildContextCompactionModelProjection, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildNextclawNcpRunContext, buildServiceActionId, createAgentRuntimeSessionRequestDispatcher, createAssetTools, createContextCompactionMessageId, createContextWindowSignature, createCronJobSystemObjectProvider, createInboxDeliverySystemObjectProvider, createLlmUsageRecord, describeAgentRuntimeSessionTypes, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, getAutomaticUpdateCheckDelay, getServiceActionName, getServiceAppManifestPath, getUiContentParamsBootstrapScript, getUnsignedUpdateManifest, hasLlmUsageTelemetry, injectUiContentParamsBootstrap, isAppDataError, isAppPackageError, isContextCompactionProjectionMessage, isContextCompactionTimelineMessage, isContextWindowSnapshot, isInboxDeliveryError, isPanelAppAgentCapability, isPanelAppError, isPreferenceError, isProjectError, isReplyCapableChannel, isServiceAppError, isSessionContextCompactionError, isSessionMessageCursorError, isSessionSettingsError, isSystemObjectReferenceError, listExtensionChannelIds, listServiceAppManifestActions, mergeServiceAppRuntimeActions, normalizeAgentRuntimeSessionTypeIcon, normalizeLlmUsageModel, normalizeOptionalString, parseServiceAppManifest, parseSkillFrontmatter, readContextCompactionCheckpoint, readContextWindowEventSessionId, readLatestContextCompactionCheckpoint, readLearningLoopRuntimeConfig, readMetadataModel, readMetadataThinking, readServiceAppManifest, resolveAgentRuntimeEntries, resolveAutomaticUpdateCheckIntervalMs, resolveChannelReplyRoute, resolveEffectiveModel, resolveLegacyEventType, resolveSessionChannelContext, runGatewayInboundLoop, sanitizeLlmUsage, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, stripSkillFrontmatter, syncSessionThinkingPreference, toNcpMessages, waitForAgentRuntimeSessionReply };
2589
2672
  //# sourceMappingURL=index.d.ts.map