@nextclaw/kernel 0.12.2 → 0.13.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
@@ -1,6 +1,6 @@
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, DiagnosticRuntime, EffectiveAgentProfile, ExtensionChannelBinding, ExtensionDiagnostic, ExtensionRegistry, ExtensionUiMetadata, GatewayController, InboundAttachment, InboundMessage, LLMProvider, LLMResponse, LLMResponse as LLMResponse$1, LLMStreamEvent, LLMStreamEvent as LLMStreamEvent$1, LocalExecutionClaimService, McpServerDefinition, McpServerDefinition as McpServerDefinition$1, MessageBus, ModelThinkingCapability, OutboundMessage, ProviderCatalogPlugin, ProviderCatalogPlugin as ProviderCatalogPlugin$1, ProviderModelDiscoveryResult, ProviderSpec, ProviderSpec as ProviderSpec$1, RequestSessionParams, RequestedSkillsMetadataReader, SearchConfig, SessionMessage, SessionRequestDispatcher, SessionRequestRecord, SessionRequestToolResult, SessionSearchService, SkillInfo, SkillInfo as SkillInfo$1, SkillScope, SpawnSessionAndRequestParams, ThinkingLevel, UpdateAgentProfileInput, buildCompressingCompactionCheckpoint, resolveThinkingLevel } from "@nextclaw/core";
3
+ import { BaseChannel, Config, ContextCompactionCheckpoint, ContextCompactionPhase, ContextCompactionPlan, ContextWindowSnapshot, CreateAgentProfileInput, CreateSessionContextInheritanceInput, CreateSessionInput, CreatedSession, CronService, DiagnosticRuntime, EffectiveAgentProfile, ExtensionChannelBinding, ExtensionDiagnostic, ExtensionRegistry, ExtensionUiMetadata, GatewayController, InboundAttachment, InboundMessage, LLMProvider, LLMResponse, LLMResponse as LLMResponse$1, LLMStreamEvent, LLMStreamEvent as LLMStreamEvent$1, LocalExecutionClaimService, McpServerDefinition, McpServerDefinition as McpServerDefinition$1, MessageBus, ModelThinkingCapability, OutboundMessage, ProviderCatalogPlugin, ProviderCatalogPlugin as ProviderCatalogPlugin$1, ProviderModelDiscoveryResult, ProviderSpec, ProviderSpec as ProviderSpec$1, RequestSessionParams, RequestedSkillsMetadataReader, SearchConfig, SessionMessage, SessionRequestDispatcher, SessionRequestRecord, SessionRequestSourceNotifier, SessionRequestToolResult, SessionSearchService, SkillInfo, SkillInfo as SkillInfo$1, SkillScope, SpawnSessionAndRequestParams, ThinkingLevel, UpdateAgentProfileInput, buildCompressingCompactionCheckpoint, resolveThinkingLevel } from "@nextclaw/core";
4
4
  import { ListMessagesOptions, ListSessionsOptions, NcpAgentConversationStateManager, NcpAgentRuntime, NcpContextTail, NcpEndpointEvent, NcpEndpointEvent as NcpEndpointEvent$1, NcpEventType, NcpInputDelivery, NcpJsonValue, NcpLLMApi, NcpLLMApiInput, NcpLLMApiOptions, NcpMessage, NcpMessage as NcpMessage$1, NcpMessagePart, NcpResolvedInputDelivery, NcpRunHandle, NcpRunTriggerInput, NcpSessionApi, NcpSessionMessagePageInfo, NcpSessionPatch, NcpSessionSummary, NcpTool, NcpTool as NcpTool$1, OpenAIChatChunk, OpenAIChatMessage } from "@nextclaw/ncp";
5
5
  import { LocalAssetStore } from "@nextclaw/ncp-agent-runtime";
6
6
  import { AgentRunSendIngressPayload, AppEventEmitOptions, AppEventEnvelope, AppEventHandler, AppEventKey, Contribution as Contribution$1, Disposer, Disposer as Disposer$1, EventBus, EventBus as EventBus$1, EventBusOptions, InboxDelivery, InboxDeliveryContentType, InboxDeliveryListView, InboxDeliverySource, InboxDeliveryStateAction, Ingress, Ingress as Ingress$1, IngressContext, IngressEnvelope, IngressHandler, Key, RuntimeModelSelectionMode, SystemObjectReferenceGroupDescriptor, SystemObjectReferenceItem, SystemObjectReferenceListView, SystemObjectResolvedReference, TypedKey, Unsubscribe, Unsubscribe as Unsubscribe$1, createTypedKey, eventKeys, ingressKeys } from "@nextclaw/shared";
@@ -635,6 +635,7 @@ declare class NcpAgentSessionJournalStore {
635
635
  sessionId: string;
636
636
  event: NcpAgentSessionJournalReplayEvent;
637
637
  }) => Promise<void>;
638
+ synchronizeSessionMessageProjection: (sessionId: string) => Promise<boolean>;
638
639
  getSession: (sessionId: string) => Promise<AgentSessionRecord | null>;
639
640
  listSessionSummaries: (options?: {
640
641
  limit?: number;
@@ -732,6 +733,14 @@ declare class ProjectManager {
732
733
  private isMissingFileError;
733
734
  }
734
735
  //#endregion
736
+ //#region src/services/session-event-coordinator.service.d.ts
737
+ type PublishSessionEventParams = {
738
+ sessionId: string;
739
+ event: NcpEndpointEvent$1;
740
+ source: string;
741
+ synchronizeMessageProjection?: boolean;
742
+ };
743
+ //#endregion
735
744
  //#region src/managers/session.manager.d.ts
736
745
  type CreateNcpSessionInput = CreateSessionInput & {
737
746
  sessionId?: string;
@@ -748,13 +757,14 @@ type SessionManagerOptions = {
748
757
  };
749
758
  declare class SessionManager implements NcpSessionApi {
750
759
  private readonly options;
751
- private readonly eventIngestion;
760
+ private readonly sessionEvents;
752
761
  private readonly settings;
753
762
  private readonly summaryProjection;
754
763
  private readonly workingDirResolver;
755
764
  constructor(options: SessionManagerOptions);
756
765
  start: () => Promise<void>;
757
766
  dispose: () => void;
767
+ publishSessionEvent: (params: PublishSessionEventParams) => Promise<void>;
758
768
  createSession: (params: CreateNcpSessionInput) => Promise<CreatedSession>;
759
769
  appendSessionEvent: (params: {
760
770
  sessionId: string;
@@ -1115,6 +1125,17 @@ type AppPackageComponentSource = {
1115
1125
  runtimeProfile: AppRuntimeProfile;
1116
1126
  isolation: AppRuntimeIsolation;
1117
1127
  permissions: AppPermissions;
1128
+ resolvedProviderIds?: string[];
1129
+ };
1130
+ type CapabilityProviderView = {
1131
+ providerId: string;
1132
+ appId: string;
1133
+ componentId: string;
1134
+ capabilities: Array<{
1135
+ id: string;
1136
+ version?: string;
1137
+ resourceTypes?: string[];
1138
+ }>;
1118
1139
  };
1119
1140
  type AppPackageUnavailableDiagnostic = {
1120
1141
  appId: string;
@@ -1131,6 +1152,45 @@ type AppPackageComponentView = AppPackageComponentSource & {
1131
1152
  titleI18n?: Record<string, string>;
1132
1153
  descriptionI18n?: Record<string, string>;
1133
1154
  };
1155
+ type AppPackageReadinessStatus = "ready" | "needs-capability" | "needs-configuration";
1156
+ type AppPackageReadinessRequirement = {
1157
+ componentId: string;
1158
+ kind: "capability" | "configuration";
1159
+ id: string;
1160
+ title: string;
1161
+ description?: string;
1162
+ remediation?: {
1163
+ kind: "agent-setup";
1164
+ summary: string;
1165
+ requiresUserAction?: boolean;
1166
+ };
1167
+ };
1168
+ type AppPackageReadiness = {
1169
+ status: AppPackageReadinessStatus;
1170
+ requirements: AppPackageReadinessRequirement[];
1171
+ };
1172
+ type AppPackageDependencyBinding = {
1173
+ componentId: string;
1174
+ requirementKind: "capability" | "resource";
1175
+ requirementId: string;
1176
+ providerId: string;
1177
+ };
1178
+ type AppPackageDependencyCandidate = {
1179
+ requirement: AppPackageReadinessRequirement;
1180
+ providers: CapabilityProviderView[];
1181
+ };
1182
+ type AppPackageDependencyView = {
1183
+ readiness: AppPackageReadiness;
1184
+ bindings: AppPackageDependencyBinding[];
1185
+ candidates: AppPackageDependencyCandidate[];
1186
+ resolvedProviderIds: Record<string, string[]>;
1187
+ };
1188
+ type AppPackageDependencyBindingInput = {
1189
+ componentId: string;
1190
+ requirementKind: "capability" | "resource";
1191
+ requirementId: string;
1192
+ providerId: string;
1193
+ };
1134
1194
  type AppPackageView = {
1135
1195
  id: string;
1136
1196
  name: string;
@@ -1150,6 +1210,8 @@ type AppPackageView = {
1150
1210
  storageUsage?: AppStorageUsage;
1151
1211
  runtimeProfile: AppRuntimeProfile;
1152
1212
  isolation: AppRuntimeIsolation;
1213
+ readiness: AppPackageReadiness;
1214
+ dependencies: AppPackageDependencyView;
1153
1215
  };
1154
1216
  type AppPackageHostTarget = {
1155
1217
  key: string;
@@ -1213,12 +1275,13 @@ type AppPackageConflict = {
1213
1275
  };
1214
1276
  type AppPackageUninstallRollback = () => Promise<void>;
1215
1277
  type AppPackageRuntimeHooks = {
1278
+ listCapabilityProviders: () => Promise<CapabilityProviderView[]>;
1216
1279
  assertCanActivate: (sources: AppPackageComponentSource[]) => Promise<void>;
1217
1280
  afterActivate: (sources: AppPackageComponentSource[]) => Promise<void>;
1218
1281
  beforeDeactivate: (sources: AppPackageComponentSource[]) => Promise<void>;
1219
1282
  beforeUninstall: (sources: AppPackageComponentSource[]) => Promise<AppPackageUninstallRollback | void>;
1220
1283
  };
1221
- type AppPackageErrorCode = "APP_PACKAGE_CONFLICT" | "APP_PACKAGE_INCOMPATIBLE" | "APP_PACKAGE_NOT_FOUND" | "APP_PACKAGE_OPERATION_FAILED";
1284
+ type AppPackageErrorCode = "APP_PACKAGE_CONFLICT" | "APP_PACKAGE_INCOMPATIBLE" | "APP_PACKAGE_NOT_READY" | "APP_PACKAGE_NOT_FOUND" | "APP_PACKAGE_OPERATION_FAILED";
1222
1285
  declare class AppPackageError extends Error {
1223
1286
  readonly code: AppPackageErrorCode;
1224
1287
  constructor(code: AppPackageErrorCode, message: string);
@@ -1232,8 +1295,9 @@ declare class AppPackageManager {
1232
1295
  private readonly installationService;
1233
1296
  private readonly manifestService;
1234
1297
  private readonly operationManager;
1235
- private readonly platformTargetService;
1298
+ private readonly hostTargetService;
1236
1299
  private readonly presentationService;
1300
+ private readonly dependencyCoordinator;
1237
1301
  private readonly runtimeActivationService;
1238
1302
  private readonly registryService;
1239
1303
  private runtimeHooks;
@@ -1244,17 +1308,21 @@ declare class AppPackageManager {
1244
1308
  builtInAppsDirectory?: string;
1245
1309
  productVersion?: string;
1246
1310
  });
1247
- installRuntimeHooks: (hooks: AppPackageRuntimeHooks) => void;
1311
+ installRuntimeHooks: (hooks: Partial<AppPackageRuntimeHooks>) => void;
1248
1312
  start: () => Promise<void>;
1249
1313
  listPackages: (options?: {
1250
1314
  includeStorageUsage?: boolean;
1251
1315
  }) => Promise<AppPackageList>;
1252
- private readHostTarget;
1253
1316
  listInstalledDataOwners: () => Promise<Array<{
1254
1317
  id: string;
1255
1318
  name: string;
1256
1319
  }>>;
1257
1320
  getPackage: (appId: string) => Promise<AppPackageView>;
1321
+ inspectDependencies: (appId: string) => Promise<AppPackageDependencyView>;
1322
+ verifyDependencies: (appId: string) => Promise<AppPackageDependencyView>;
1323
+ setupDependencies: (appId: string) => Promise<AppPackageDependencyView>;
1324
+ bindDependency: (appId: string, input: AppPackageDependencyBindingInput) => Promise<AppPackageDependencyView>;
1325
+ unbindDependency: (appId: string, input: Omit<AppPackageDependencyBindingInput, "providerId">) => Promise<AppPackageDependencyView>;
1258
1326
  listActiveComponentSources: () => Promise<AppPackageComponentSource[]>;
1259
1327
  listActiveComponentSourcesWithDiagnostics: () => Promise<AppPackageComponentSourceList>;
1260
1328
  listOperations: () => Promise<AppPackageOperationList>;
@@ -1472,6 +1540,46 @@ type ServiceAppLifecycle = {
1472
1540
  } | {
1473
1541
  mode: "provider";
1474
1542
  };
1543
+ /**
1544
+ * A dependency intentionally kept outside a portable `.napp` artifact.
1545
+ * It never carries credentials, connection strings, or installation commands.
1546
+ */
1547
+ type ServiceAppExternalRemediation = {
1548
+ kind: "agent-setup";
1549
+ summary: string;
1550
+ requiresUserAction?: boolean;
1551
+ };
1552
+ type ServiceAppCapabilityRequirement = {
1553
+ id: string;
1554
+ version?: string;
1555
+ title?: string;
1556
+ description?: string;
1557
+ remediation?: ServiceAppExternalRemediation;
1558
+ };
1559
+ type ServiceAppResourceRequirement = {
1560
+ binding: string;
1561
+ type: string;
1562
+ required?: boolean;
1563
+ title?: string;
1564
+ description?: string;
1565
+ remediation?: ServiceAppExternalRemediation;
1566
+ };
1567
+ type ServiceAppRequirements = {
1568
+ capabilities?: ServiceAppCapabilityRequirement[];
1569
+ resources?: ServiceAppResourceRequirement[];
1570
+ };
1571
+ /**
1572
+ * A stable capability exposed by a Service Provider App. Provider identity is
1573
+ * still the Service id; this declaration only describes what it can satisfy.
1574
+ */
1575
+ type ServiceAppCapabilityProvision = {
1576
+ id: string;
1577
+ version: string;
1578
+ resourceTypes?: string[];
1579
+ };
1580
+ type ServiceAppProvides = {
1581
+ capabilities?: ServiceAppCapabilityProvision[];
1582
+ };
1475
1583
  type ServiceAppManifest = {
1476
1584
  id: string;
1477
1585
  title: string;
@@ -1483,6 +1591,8 @@ type ServiceAppManifest = {
1483
1591
  componentEntry?: string;
1484
1592
  providerIds?: string[];
1485
1593
  lifecycle?: ServiceAppLifecycle;
1594
+ requires?: ServiceAppRequirements;
1595
+ provides?: ServiceAppProvides;
1486
1596
  actions: Record<string, ServiceAppManifestAction>;
1487
1597
  };
1488
1598
  type ServiceAppRecord = {
@@ -2667,6 +2777,20 @@ declare class PreferenceManager {
2667
2777
  private isPlainRecord;
2668
2778
  }
2669
2779
  //#endregion
2780
+ //#region src/services/portable-service-runner-client.service.d.ts
2781
+ type RunnerOperation = "deliver-event" | "invoke" | "list-actions" | "start-provider" | "start-resident" | "stats" | "stop";
2782
+ type PortableRunnerObservation = {
2783
+ operation: RunnerOperation;
2784
+ appId?: string;
2785
+ durationMs: number;
2786
+ runnerPid: number | null;
2787
+ memory: {
2788
+ rssBytes: number | null;
2789
+ pssBytes: number | null;
2790
+ } | null;
2791
+ logs: string[];
2792
+ };
2793
+ //#endregion
2670
2794
  //#region src/services/service-app-runtime.service.d.ts
2671
2795
  type RuntimeCall = {
2672
2796
  app: ServiceAppRecord;
@@ -2687,6 +2811,7 @@ declare class ServiceAppRuntimeService {
2687
2811
  lastReadyAt?: string;
2688
2812
  lastFailedAt?: string;
2689
2813
  };
2814
+ getLastObservation: () => PortableRunnerObservation | undefined;
2690
2815
  start: (call: RuntimeCall) => Promise<void>;
2691
2816
  listActions: (call: RuntimeCall) => Promise<ServiceAction[]>;
2692
2817
  invokeAction: (call: RuntimeCall & {
@@ -2712,10 +2837,11 @@ type ServiceAppRemovalDiagnostic = {
2712
2837
  };
2713
2838
  //#endregion
2714
2839
  //#region src/utils/service-app-error.utils.d.ts
2715
- 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";
2840
+ 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" | "WASI_ABI_VERSION_MISMATCH" | "WASI_CAPABILITY_DENIED" | "WASI_COMPONENT_FAILED" | "WASI_COMPONENT_TRAP" | "WASI_GUEST_EXPORT_MISSING" | "WASI_INPUT_SCHEMA_MISMATCH";
2716
2841
  declare class ServiceAppError extends Error {
2717
2842
  readonly code: ServiceAppErrorCode;
2718
- constructor(code: ServiceAppErrorCode, message: string);
2843
+ readonly details?: Record<string, unknown> | undefined;
2844
+ constructor(code: ServiceAppErrorCode, message: string, details?: Record<string, unknown> | undefined);
2719
2845
  }
2720
2846
  declare const isServiceAppError: (error: unknown) => error is ServiceAppError;
2721
2847
  //#endregion
@@ -2750,6 +2876,7 @@ declare class ServiceAppManager {
2750
2876
  });
2751
2877
  start: () => Promise<void>;
2752
2878
  listServiceApps: () => Promise<ServiceAppList>;
2879
+ listCapabilityProviders: () => Promise<CapabilityProviderView[]>;
2753
2880
  getServiceApp: (appId: string) => Promise<ServiceAppRecord>;
2754
2881
  listServiceActions: (params?: {
2755
2882
  caller?: ServiceActionCaller;
@@ -2859,6 +2986,7 @@ declare class SkillManager {
2859
2986
  //#region src/features/session-request/managers/session-request.manager.d.ts
2860
2987
  type SessionRequestManagerOptions = {
2861
2988
  dispatcher: SessionRequestDispatcher;
2989
+ notifySourceSession?: SessionRequestSourceNotifier;
2862
2990
  sessionManager: SessionManager;
2863
2991
  };
2864
2992
  declare class SessionRequestManager {
@@ -2871,7 +2999,8 @@ declare class SessionRequestManager {
2871
2999
  private buildToolResult;
2872
3000
  private appendRequestEvents;
2873
3001
  private runRequest;
2874
- private runRequestAndUpdateToolCallResult;
3002
+ private runRequestAndDeliverOutcome;
3003
+ private updateSourceToolResult;
2875
3004
  private appendAcceptedRequestEvent;
2876
3005
  private appendRequestEvent;
2877
3006
  }
@@ -2881,6 +3010,13 @@ type AgentRuntimeSessionRequestDispatcherOptions = {
2881
3010
  eventBus: EventBus$1;
2882
3011
  ingress: Ingress$1;
2883
3012
  };
3013
+ declare function buildSessionRequestCompletionMessage(input: {
3014
+ request: SessionRequestRecord;
3015
+ result: SessionRequestToolResult;
3016
+ }): NcpMessage$1;
3017
+ declare function createAgentRuntimeSessionRequestSourceNotifier(options: {
3018
+ ingress: Ingress$1;
3019
+ }): SessionRequestSourceNotifier;
2884
3020
  declare function waitForAgentRuntimeSessionReply(input: {
2885
3021
  eventBus: EventBus$1;
2886
3022
  onAccepted: (messageId: string) => void;
@@ -3724,5 +3860,5 @@ declare function resolveLegacyEventType(message: SessionMessage): string;
3724
3860
  declare function getUiContentParamsBootstrapScript(): string;
3725
3861
  declare function injectUiContentParamsBootstrap(html: string): string;
3726
3862
  //#endregion
3727
- export { AUTOMATIC_UPDATE_CHECK_INTERVAL_MS, AccessLoginResult, AccessManager, AccessManagerOptions, AccessPasswordStatus, AccessPrincipal, AccessRole, AccessSessionRecord, AccessSessionState, AgentManager, AgentManagerOptions, AgentRunClient, type AgentRunReply, type AgentRunReplyOptions, AgentRunSession, type AgentRunStreamOptions, type AgentRuntimeEntry, type AgentRuntimeProviderRegistration, AgentRuntimeSessionRequestDispatcherOptions, type AgentRuntimeSessionTypeCatalog, type AgentRuntimeSessionTypeDescribeParams, AgentRuntimeSessionTypeIcon, type AgentRuntimeSessionTypeOption, AgentRuntimeSessionTypeProvider, AgentServiceActionCaller, AppDataDeleteResult, AppDataDiagnostic, AppDataEntry, AppDataError, AppDataErrorCode, AppDataLifecycle, AppDataList, AppDataManager, AppDataSource, type AppEventEmitOptions, type AppEventEnvelope, type AppEventHandler, type AppEventKey, AppPackageComponentKind, AppPackageComponentSource, AppPackageComponentSourceList, AppPackageComponentView, AppPackageConflict, AppPackageError, AppPackageErrorCode, AppPackageHostTarget, AppPackageList, AppPackageManager, AppPackageOperationAction, AppPackageOperationInput, AppPackageOperationList, AppPackageOperationResult, AppPackageOperationStatus, AppPackageOperationView, AppPackageRuntimeHooks, AppPackageUnavailableDiagnostic, AppPackageUninstallRollback, AppPackageView, type AssetApi, AutomationManager, AutomationManagerOptions, BindContextInput, type BuildAgentRunSendPayloadParams, BuildContextTailInput, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_CONTINUATION_TEXT, CONTEXT_COMPACTION_PROJECTION_KIND, CONTEXT_COMPACTION_PROJECTION_METADATA_KEY, CONTEXT_COMPACTION_SYSTEM_PREAMBLE, CONTEXT_COMPACTION_TIMELINE_KIND, CapabilityGrant, CapabilityGrantDecision, CapabilityGrantFilter, CapabilityGrantLegacyMigrationService, CapabilityGrantListener, CapabilityGrantManager, CapabilityGrantRequest, CapabilityGrantResource, CapabilityGrantRevocationListener, CapabilityGrantStore, CapabilityGrantSubject, ChannelManager, ChannelReplyRouterDispatchParams, CommandRegistry, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextBinding, type ContextBlock, ContextCompactionJournalRecoveryService, ContextCompactionModelProjection, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextCompactionTrigger, type ContextProvider, type ContextProviderRequest, Contribution, CreateAgentRunSessionParams, CreateInboxDeliveryInput, CreateProjectInput, DEFAULT_AGENT_RUNTIME_ENTRY_ID, DEFAULT_SERVICE_ACTION_RISK, DESKTOP_HOST_ACCESS, DESKTOP_HOST_PROTOCOL_VERSION, DesktopApplicationTarget, DesktopCapabilityError, DesktopCapabilityErrorCode, DesktopHost, DesktopHostAccess, DesktopHostCaller, DesktopHostCapabilityDeclaration, DesktopHostCapabilityManager, DesktopHostEvent, DesktopHostEventListener, DesktopHostManifest, DesktopHostMethod, DesktopHostRequest, DesktopHostResponse, DesktopHostStatus, DesktopNodeReplService, DesktopSessionCaller, DesktopSessionStateService, DesktopSnapshotOptions, DirectPromptDispatchExecution, DirectPromptDispatchParams, DirectPromptDispatchResult, type Disposer, EventAdmissionPolicy, EventBus, type EventBusOptions, EventDelivery, EventSubscription, EventSubscriptionBudget, ExtensionLoadProgress, ExtensionLoadResult, ExtensionManager, type ExtensionRuntimeStatus, FeatureControlsService, GatewayInboundLoopRuntime, GatewayInboundProcessor, type IContextRegistry, type IKernel, type IMcpRegistry, type IModelRegistry, type INextclawAgent, type INextclawAgentRegistry, type INextclawAgentSessions, type INextclawContributionRegistry, type INextclawHarness, type INextclawRun, type INextclawSession, type INextclawSessionRegistry, type IRuntimeRegistry, type IToolRegistry, InboxDeliveryError, InboxDeliveryErrorCode, InboxDeliveryManager, InboxDeliveryManagerOptions, Ingress, type IngressContext, type IngressEnvelope, type IngressHandler, InstallationKind, InstalledSkillDetail, InstalledSkillSummary, InstalledSkillsList, JsonPointer, JsonValue, type Key, type LLMResponse, type LLMStreamEvent, type LearningLoopRuntimeConfig, LlmProviderManager, LlmProviderRuntime, LlmUsageManager, LlmUsageManagerOptions, LlmUsageRecord, LlmUsageSnapshot, LlmUsageStats, LlmUsageStore, LlmUsageStoreOptions, LlmUsageSummary, LocalizedTextMap, MAX_INBOX_DELIVERY_CONTENT_LENGTH, type McpCatalogFilter, McpManager, type McpServerDefinition, type McpServerRecord, McpServiceAppRuntimeService, type McpToolCallInput, type McpToolCatalogEntry, type ModelChatInput, NARP_HTTP_RUNTIME_KIND, NARP_STDIO_RUNTIME_KIND, NEXTCLAW_TIMELINE_KIND_METADATA_KEY, NcpAgentSessionJournalStore, type NcpEndpointEvent, type NcpMessage, type NcpTool, type NextclawAgentDefinition, type NextclawContributionDescriptor, NextclawHarness, NextclawHarnessError, type NextclawHarnessErrorCode, type NextclawHarnessOptions, NextclawKernel, NextclawKernelOptions, NextclawNcpResolvedAgentProfile, NextclawNcpResolvedRunContext, NextclawNcpRunContextResolveParams, type NextclawRunStatus, type NextclawSessionCreateInput, type NextclawSessionRunInput, type NextclawTaskInput, type NextclawTaskResult, ObservationCapabilityDescriptor, ObservationContextTail, ObservationEvent, ObservationEventAdmissionDecision, ObservationExtensionRuntime, ObservationManager, ObservationManagerOptions, ObservationRef, ObservationRelationshipStatus, ObservationState, ObservationTarget, 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, PanelAppClientGrant, PanelAppContent, PanelAppDeleteResult, PanelAppEntry, PanelAppError, PanelAppErrorCode, PanelAppList, PanelAppManager, type PanelAppPreferencesUpdate, PanelServiceActionCaller, PreferenceEntry, PreferenceError, PreferenceErrorCode, PreferenceJsonValue, PreferenceManager, PreferenceManagerOptions, ProductActivityKind, ProductActivitySignal, ProductActivitySink, ProductActivitySource, type ProductFeatureControls, ProjectError, ProjectErrorCode, ProjectManager, ProjectManagerOptions, ProjectRecord, ProjectTemplate, ProjectTemplateId, type ProviderCatalogPlugin, ProviderManagerNcpLLMApi, ProviderModelCatalogEntry, ProviderModelCatalogManager, ProviderModelCatalogSnapshot, ProviderModelsDiscoverInput, type ProviderSpec, ResolvedAgentProfile, ResolvedDesktopApplicationTarget, SERVICE_APP_MANIFEST_FILE_NAME, ServiceAction, ServiceActionCaller, ServiceActionGrant, ServiceActionGrantRequest, ServiceActionGrantState, ServiceActionInvokeRequest, ServiceActionInvokeResult, ServiceActionRisk, ServiceActionRuntimeState, ServiceAppDeleteResult, ServiceAppError, type ServiceAppErrorCode, ServiceAppLifecycle, ServiceAppList, ServiceAppManager, ServiceAppManifest, ServiceAppManifestAction, ServiceAppProtocol, ServiceAppRecord, ServiceAppRuntimeService, 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, SubscribeEventsInput, SystemObjectReferenceError, SystemObjectReferenceErrorCode, SystemObjectReferenceManager, SystemObjectReferenceProvider, SystemObjectReferenceSnapshotSource, type TypedKey, TypedPredicate, UnavailableDesktopHost, UnsignedUpdateManifest, type Unsubscribe, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateSnapshot, UpdateStatus, type WorkspaceServiceDataOwner, assertObservationJsonValue, assertObservationPredicate, buildAgentRunSendPayload, buildContextCompactionModelProjection, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildNextclawNcpRunContext, buildObservationEventModelMessage, buildServiceActionId, capabilityGrantCovers, createAgentRuntimeSessionRequestDispatcher, createAssetTools, createCapabilityDeclarationFingerprint, createContextCompactionMessageId, createContextWindowSignature, createCronJobSystemObjectProvider, createDesktopHostError, createInboxDeliverySystemObjectProvider, createLlmUsageRecord, createPanelAppAgentGrantRequest, createPanelAppClientGrantRequest, createServiceActionGrantRequest, createTypedKey, describeAgentRuntimeSessionTypes, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, dispatchPromptOverNcpResult, evaluateObservationEventAdmission, eventKeys, getAutomaticUpdateCheckDelay, getCapabilityGrantKey, getServiceActionName, getServiceAppManifestPath, getUiContentParamsBootstrapScript, getUnsignedUpdateManifest, hasLlmUsageTelemetry, ingressKeys, injectUiContentParamsBootstrap, isAppDataError, isAppPackageError, isContextCompactionProjectionMessage, isContextCompactionTimelineMessage, isContextWindowSnapshot, isInboxDeliveryError, isPanelAppAgentCapability, isPanelAppError, isPreferenceError, isProjectError, isReplyCapableChannel, isServiceAppError, isSessionContextCompactionError, isSessionMessageCursorError, isSessionSettingsError, isSystemObjectReferenceError, listExtensionChannelIds, listServiceAppManifestActions, matchesCapabilityGrantFilter, matchesObservationPredicate, mergeServiceAppRuntimeActions, normalizeAgentRuntimeSessionTypeIcon, normalizeCapabilityGrantRequest, normalizeLlmUsageModel, normalizeOptionalString, parseObservationDuration, parseServiceAppManifest, parseSkillFrontmatter, readContextCompactionCheckpoint, readContextWindowEventSessionId, readJsonPointer, readLatestContextCompactionCheckpoint, readLearningLoopRuntimeConfig, readMetadataModel, readMetadataThinking, readServiceActionTargetId, readServiceAppManifest, resolveAgentRuntimeEntries, resolveAutomaticUpdateCheckIntervalMs, resolveChannelReplyRoute, resolveEffectiveModel, resolveLegacyEventType, resolveSessionChannelContext, runGatewayInboundLoop, runNextclawTask, sanitizeLlmUsage, serializeContextTail, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, startPromptOverNcpExecution, stripSkillFrontmatter, syncSessionThinkingPreference, toBoundedJson, toNcpMessages, waitForAgentRuntimeSessionReply };
3863
+ export { AUTOMATIC_UPDATE_CHECK_INTERVAL_MS, AccessLoginResult, AccessManager, AccessManagerOptions, AccessPasswordStatus, AccessPrincipal, AccessRole, AccessSessionRecord, AccessSessionState, AgentManager, AgentManagerOptions, AgentRunClient, type AgentRunReply, type AgentRunReplyOptions, AgentRunSession, type AgentRunStreamOptions, type AgentRuntimeEntry, type AgentRuntimeProviderRegistration, AgentRuntimeSessionRequestDispatcherOptions, type AgentRuntimeSessionTypeCatalog, type AgentRuntimeSessionTypeDescribeParams, AgentRuntimeSessionTypeIcon, type AgentRuntimeSessionTypeOption, AgentRuntimeSessionTypeProvider, AgentServiceActionCaller, AppDataDeleteResult, AppDataDiagnostic, AppDataEntry, AppDataError, AppDataErrorCode, AppDataLifecycle, AppDataList, AppDataManager, AppDataSource, type AppEventEmitOptions, type AppEventEnvelope, type AppEventHandler, type AppEventKey, AppPackageComponentKind, AppPackageComponentSource, AppPackageComponentSourceList, AppPackageComponentView, AppPackageConflict, AppPackageDependencyBinding, AppPackageDependencyBindingInput, AppPackageDependencyCandidate, AppPackageDependencyView, AppPackageError, AppPackageErrorCode, AppPackageHostTarget, AppPackageList, AppPackageManager, AppPackageOperationAction, AppPackageOperationInput, AppPackageOperationList, AppPackageOperationResult, AppPackageOperationStatus, AppPackageOperationView, AppPackageReadiness, AppPackageReadinessRequirement, AppPackageReadinessStatus, AppPackageRuntimeHooks, AppPackageUnavailableDiagnostic, AppPackageUninstallRollback, AppPackageView, type AssetApi, AutomationManager, AutomationManagerOptions, BindContextInput, type BuildAgentRunSendPayloadParams, BuildContextTailInput, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_CONTINUATION_TEXT, CONTEXT_COMPACTION_PROJECTION_KIND, CONTEXT_COMPACTION_PROJECTION_METADATA_KEY, CONTEXT_COMPACTION_SYSTEM_PREAMBLE, CONTEXT_COMPACTION_TIMELINE_KIND, CapabilityGrant, CapabilityGrantDecision, CapabilityGrantFilter, CapabilityGrantLegacyMigrationService, CapabilityGrantListener, CapabilityGrantManager, CapabilityGrantRequest, CapabilityGrantResource, CapabilityGrantRevocationListener, CapabilityGrantStore, CapabilityGrantSubject, CapabilityProviderView, ChannelManager, ChannelReplyRouterDispatchParams, CommandRegistry, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextBinding, type ContextBlock, ContextCompactionJournalRecoveryService, ContextCompactionModelProjection, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextCompactionTrigger, type ContextProvider, type ContextProviderRequest, Contribution, CreateAgentRunSessionParams, CreateInboxDeliveryInput, CreateProjectInput, DEFAULT_AGENT_RUNTIME_ENTRY_ID, DEFAULT_SERVICE_ACTION_RISK, DESKTOP_HOST_ACCESS, DESKTOP_HOST_PROTOCOL_VERSION, DesktopApplicationTarget, DesktopCapabilityError, DesktopCapabilityErrorCode, DesktopHost, DesktopHostAccess, DesktopHostCaller, DesktopHostCapabilityDeclaration, DesktopHostCapabilityManager, DesktopHostEvent, DesktopHostEventListener, DesktopHostManifest, DesktopHostMethod, DesktopHostRequest, DesktopHostResponse, DesktopHostStatus, DesktopNodeReplService, DesktopSessionCaller, DesktopSessionStateService, DesktopSnapshotOptions, DirectPromptDispatchExecution, DirectPromptDispatchParams, DirectPromptDispatchResult, type Disposer, EventAdmissionPolicy, EventBus, type EventBusOptions, EventDelivery, EventSubscription, EventSubscriptionBudget, ExtensionLoadProgress, ExtensionLoadResult, ExtensionManager, type ExtensionRuntimeStatus, FeatureControlsService, GatewayInboundLoopRuntime, GatewayInboundProcessor, type IContextRegistry, type IKernel, type IMcpRegistry, type IModelRegistry, type INextclawAgent, type INextclawAgentRegistry, type INextclawAgentSessions, type INextclawContributionRegistry, type INextclawHarness, type INextclawRun, type INextclawSession, type INextclawSessionRegistry, type IRuntimeRegistry, type IToolRegistry, InboxDeliveryError, InboxDeliveryErrorCode, InboxDeliveryManager, InboxDeliveryManagerOptions, Ingress, type IngressContext, type IngressEnvelope, type IngressHandler, InstallationKind, InstalledSkillDetail, InstalledSkillSummary, InstalledSkillsList, JsonPointer, JsonValue, type Key, type LLMResponse, type LLMStreamEvent, type LearningLoopRuntimeConfig, LlmProviderManager, LlmProviderRuntime, LlmUsageManager, LlmUsageManagerOptions, LlmUsageRecord, LlmUsageSnapshot, LlmUsageStats, LlmUsageStore, LlmUsageStoreOptions, LlmUsageSummary, LocalizedTextMap, MAX_INBOX_DELIVERY_CONTENT_LENGTH, type McpCatalogFilter, McpManager, type McpServerDefinition, type McpServerRecord, McpServiceAppRuntimeService, type McpToolCallInput, type McpToolCatalogEntry, type ModelChatInput, NARP_HTTP_RUNTIME_KIND, NARP_STDIO_RUNTIME_KIND, NEXTCLAW_TIMELINE_KIND_METADATA_KEY, NcpAgentSessionJournalStore, type NcpEndpointEvent, type NcpMessage, type NcpTool, type NextclawAgentDefinition, type NextclawContributionDescriptor, NextclawHarness, NextclawHarnessError, type NextclawHarnessErrorCode, type NextclawHarnessOptions, NextclawKernel, NextclawKernelOptions, NextclawNcpResolvedAgentProfile, NextclawNcpResolvedRunContext, NextclawNcpRunContextResolveParams, type NextclawRunStatus, type NextclawSessionCreateInput, type NextclawSessionRunInput, type NextclawTaskInput, type NextclawTaskResult, ObservationCapabilityDescriptor, ObservationContextTail, ObservationEvent, ObservationEventAdmissionDecision, ObservationExtensionRuntime, ObservationManager, ObservationManagerOptions, ObservationRef, ObservationRelationshipStatus, ObservationState, ObservationTarget, 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, PanelAppClientGrant, PanelAppContent, PanelAppDeleteResult, PanelAppEntry, PanelAppError, PanelAppErrorCode, PanelAppList, PanelAppManager, type PanelAppPreferencesUpdate, PanelServiceActionCaller, type PortableRunnerObservation, PreferenceEntry, PreferenceError, PreferenceErrorCode, PreferenceJsonValue, PreferenceManager, PreferenceManagerOptions, ProductActivityKind, ProductActivitySignal, ProductActivitySink, ProductActivitySource, type ProductFeatureControls, ProjectError, ProjectErrorCode, ProjectManager, ProjectManagerOptions, ProjectRecord, ProjectTemplate, ProjectTemplateId, type ProviderCatalogPlugin, ProviderManagerNcpLLMApi, ProviderModelCatalogEntry, ProviderModelCatalogManager, ProviderModelCatalogSnapshot, ProviderModelsDiscoverInput, type ProviderSpec, ResolvedAgentProfile, ResolvedDesktopApplicationTarget, SERVICE_APP_MANIFEST_FILE_NAME, ServiceAction, ServiceActionCaller, ServiceActionGrant, ServiceActionGrantRequest, ServiceActionGrantState, ServiceActionInvokeRequest, ServiceActionInvokeResult, ServiceActionRisk, ServiceActionRuntimeState, ServiceAppCapabilityProvision, ServiceAppCapabilityRequirement, ServiceAppDeleteResult, ServiceAppError, type ServiceAppErrorCode, ServiceAppExternalRemediation, ServiceAppLifecycle, ServiceAppList, ServiceAppManager, ServiceAppManifest, ServiceAppManifestAction, ServiceAppProtocol, ServiceAppProvides, ServiceAppRecord, ServiceAppRequirements, ServiceAppResourceRequirement, ServiceAppRuntimeService, 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, SubscribeEventsInput, SystemObjectReferenceError, SystemObjectReferenceErrorCode, SystemObjectReferenceManager, SystemObjectReferenceProvider, SystemObjectReferenceSnapshotSource, type TypedKey, TypedPredicate, UnavailableDesktopHost, UnsignedUpdateManifest, type Unsubscribe, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateSnapshot, UpdateStatus, type WorkspaceServiceDataOwner, assertObservationJsonValue, assertObservationPredicate, buildAgentRunSendPayload, buildContextCompactionModelProjection, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildNextclawNcpRunContext, buildObservationEventModelMessage, buildServiceActionId, buildSessionRequestCompletionMessage, capabilityGrantCovers, createAgentRuntimeSessionRequestDispatcher, createAgentRuntimeSessionRequestSourceNotifier, createAssetTools, createCapabilityDeclarationFingerprint, createContextCompactionMessageId, createContextWindowSignature, createCronJobSystemObjectProvider, createDesktopHostError, createInboxDeliverySystemObjectProvider, createLlmUsageRecord, createPanelAppAgentGrantRequest, createPanelAppClientGrantRequest, createServiceActionGrantRequest, createTypedKey, describeAgentRuntimeSessionTypes, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, dispatchPromptOverNcpResult, evaluateObservationEventAdmission, eventKeys, getAutomaticUpdateCheckDelay, getCapabilityGrantKey, getServiceActionName, getServiceAppManifestPath, getUiContentParamsBootstrapScript, getUnsignedUpdateManifest, hasLlmUsageTelemetry, ingressKeys, injectUiContentParamsBootstrap, isAppDataError, isAppPackageError, isContextCompactionProjectionMessage, isContextCompactionTimelineMessage, isContextWindowSnapshot, isInboxDeliveryError, isPanelAppAgentCapability, isPanelAppError, isPreferenceError, isProjectError, isReplyCapableChannel, isServiceAppError, isSessionContextCompactionError, isSessionMessageCursorError, isSessionSettingsError, isSystemObjectReferenceError, listExtensionChannelIds, listServiceAppManifestActions, matchesCapabilityGrantFilter, matchesObservationPredicate, mergeServiceAppRuntimeActions, normalizeAgentRuntimeSessionTypeIcon, normalizeCapabilityGrantRequest, normalizeLlmUsageModel, normalizeOptionalString, parseObservationDuration, parseServiceAppManifest, parseSkillFrontmatter, readContextCompactionCheckpoint, readContextWindowEventSessionId, readJsonPointer, readLatestContextCompactionCheckpoint, readLearningLoopRuntimeConfig, readMetadataModel, readMetadataThinking, readServiceActionTargetId, readServiceAppManifest, resolveAgentRuntimeEntries, resolveAutomaticUpdateCheckIntervalMs, resolveChannelReplyRoute, resolveEffectiveModel, resolveLegacyEventType, resolveSessionChannelContext, runGatewayInboundLoop, runNextclawTask, sanitizeLlmUsage, serializeContextTail, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, startPromptOverNcpExecution, stripSkillFrontmatter, syncSessionThinkingPreference, toBoundedJson, toNcpMessages, waitForAgentRuntimeSessionReply };
3728
3864
  //# sourceMappingURL=index.d.ts.map