@nextclaw/kernel 0.1.15-beta.5 → 0.1.15-beta.7

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,9 +1,10 @@
1
1
  import { a as getUnsignedUpdateManifest, c as UpdateBlockReason, d as UpdateSnapshot, f as UpdateStatus, i as UpdateManifestReader, l as UpdatePreferences, n as UpdateHostKind, o as serializeUnsignedUpdateManifest, r as UpdateManifest, s as InstallationKind, t as UnsignedUpdateManifest, u as UpdateProgress } from "./update-manifest.types-DLWDvs_v.js";
2
- import { AgentRouteResolver, BaseChannel, ChannelManager, ChannelManager as ChannelManager$1, Config, ContextCompactionPlan, ContextWindowSnapshot, CreateSessionInput, CreatedSession, CronService, Disposable, ExtensionChannelBinding, ExtensionDiagnostic, ExtensionRegistry, ExtensionUiMetadata, GatewayController, InboundAttachment, InboundMessage, LLMProvider, LLMResponse, LLMStreamEvent, MessageBus, RequestSessionParams, RequestedSkillsMetadataReader, SearchConfig, Session, SessionManager, SessionMessage, SessionRequestDispatcher, SessionRequestRecord, SessionRequestToolResult, SessionSearchManager, SkillInfo, SkillInfo as SkillInfo$1, SkillScope, SpawnSessionAndRequestParams, ThinkingLevel, buildCompressingCompactionCheckpoint, resolveThinkingLevel } from "@nextclaw/core";
3
- import { AgentRunSendIngressPayload, EventBus, Ingress, Unsubscribe } from "@nextclaw/shared";
4
- import { ListMessagesOptions, ListSessionsOptions, NcpAgentRuntime, NcpEndpointEvent, NcpEventType, NcpLLMApi, NcpLLMApiInput, NcpLLMApiOptions, NcpMessage, NcpRunHandle, NcpSessionApi, NcpSessionPatch, NcpSessionSummary, NcpTool, OpenAIChatChunk } from "@nextclaw/ncp";
2
+ import { ListMessagesOptions, ListSessionsOptions, NcpAgentConversationStateManager, NcpAgentRuntime, NcpEndpointEvent, NcpEventType, NcpLLMApi, NcpLLMApiInput, NcpLLMApiOptions, NcpMessage, NcpMessagePart, NcpRunHandle, NcpSessionApi, NcpSessionPatch, NcpSessionSummary, NcpTool, OpenAIChatChunk } from "@nextclaw/ncp";
3
+ import { BaseChannel, ChannelManager, ChannelManager as ChannelManager$1, Config, ContextCompactionPlan, ContextWindowSnapshot, CreateSessionInput, CreatedSession, CronService, Disposable, ExtensionChannelBinding, ExtensionDiagnostic, ExtensionRegistry, ExtensionUiMetadata, GatewayController, InboundAttachment, InboundMessage, LLMProvider, LLMResponse, LLMStreamEvent, MessageBus, RequestSessionParams, RequestedSkillsMetadataReader, SearchConfig, Session, SessionMessage, SessionRequestDispatcher, SessionRequestRecord, SessionRequestToolResult, SessionSearchManager, SkillInfo, SkillInfo as SkillInfo$1, SkillScope, SpawnSessionAndRequestParams, ThinkingLevel, buildCompressingCompactionCheckpoint, resolveThinkingLevel } from "@nextclaw/core";
5
4
  import { LocalAssetStore } from "@nextclaw/ncp-agent-runtime";
5
+ import { AgentRunSendIngressPayload, EventBus, Ingress, Unsubscribe } from "@nextclaw/shared";
6
6
  import { AgentSessionRecord, ChatTarget, NcpReplyInput, RuntimeFactoryParams } from "@nextclaw/ncp-toolkit";
7
+
7
8
  //#region src/features/runtime-registry/services/agent-runtime-registry.service.d.ts
8
9
  type AgentRuntimeSessionTypeIcon = {
9
10
  kind: "image";
@@ -128,14 +129,6 @@ declare class AgentManager {
128
129
  detachTool: (agentId: AgentId, toolId: ToolId) => never;
129
130
  }
130
131
  //#endregion
131
- //#region src/managers/automation.manager.d.ts
132
- type AutomationManagerOptions = {
133
- storePath: string;
134
- };
135
- declare class AutomationManager extends CronService {
136
- constructor(options: AutomationManagerOptions);
137
- }
138
- //#endregion
139
132
  //#region src/managers/llm-provider.manager.d.ts
140
133
  type ProviderChatParams = {
141
134
  messages: Array<Record<string, unknown>>;
@@ -257,6 +250,339 @@ declare class ConfigManager {
257
250
  private createConfigMutationResult;
258
251
  }
259
252
  //#endregion
253
+ //#region src/utils/ncp-agent-session-journal.utils.d.ts
254
+ declare const NCP_AGENT_SESSION_SNAPSHOT_MESSAGE_EVENT_TYPE = "session.snapshot.message";
255
+ declare const NCP_SESSION_REQUEST_ACCEPTED_EVENT_TYPE = "session.request.accepted";
256
+ declare const NCP_SESSION_REQUEST_COMPLETED_EVENT_TYPE = "session.request.completed";
257
+ declare const NCP_SESSION_REQUEST_FAILED_EVENT_TYPE = "session.request.failed";
258
+ type NcpAgentSessionSnapshotMessageEvent = {
259
+ type: typeof NCP_AGENT_SESSION_SNAPSHOT_MESSAGE_EVENT_TYPE;
260
+ payload: Extract<NcpEndpointEvent, {
261
+ type: NcpEventType.MessageSent;
262
+ }>["payload"];
263
+ };
264
+ type NcpSessionRequestJournalEventType = typeof NCP_SESSION_REQUEST_ACCEPTED_EVENT_TYPE | typeof NCP_SESSION_REQUEST_COMPLETED_EVENT_TYPE | typeof NCP_SESSION_REQUEST_FAILED_EVENT_TYPE;
265
+ type NcpSessionRequestJournalEvent = {
266
+ type: NcpSessionRequestJournalEventType;
267
+ payload: {
268
+ sessionId: string;
269
+ request: unknown;
270
+ };
271
+ };
272
+ type NcpAgentSessionJournalReplayEvent = NcpEndpointEvent | NcpAgentSessionSnapshotMessageEvent | NcpSessionRequestJournalEvent;
273
+ //#endregion
274
+ //#region src/stores/ncp-agent-session-journal.store.d.ts
275
+ declare class NcpAgentSessionJournalStore {
276
+ private readonly journalDir;
277
+ private readonly sessions;
278
+ private readonly nextSeqBySession;
279
+ private readonly writeChains;
280
+ private readonly metadataStore;
281
+ private readonly summaryIndexStore;
282
+ constructor(journalDir: string);
283
+ appendSessionEvent: (params: {
284
+ sessionId: string;
285
+ event: NcpAgentSessionJournalReplayEvent;
286
+ }) => Promise<void>;
287
+ getSession: (sessionId: string) => Promise<AgentSessionRecord | null>;
288
+ listSessionSummaries: () => Promise<NcpSessionSummary[]>;
289
+ listSessionMessages: (sessionId: string) => Promise<NcpMessage[]>;
290
+ setSessionMetadata: (params: {
291
+ sessionId: string;
292
+ metadata: Record<string, unknown>;
293
+ }) => Promise<boolean>;
294
+ updateSessionMetadata: (params: {
295
+ sessionId: string;
296
+ metadata: Record<string, unknown>;
297
+ }) => Promise<boolean>;
298
+ private setSessionMetadataNow;
299
+ private updateSessionMetadataNow;
300
+ importSessionSnapshot: (record: AgentSessionRecord) => Promise<void>;
301
+ deleteSession: (sessionId: string) => Promise<AgentSessionRecord | null>;
302
+ hasSession: (sessionId: string) => Promise<boolean>;
303
+ private appendSessionEventNow;
304
+ private withMetadata;
305
+ private loadSession;
306
+ private parseSessionJournal;
307
+ private appendJournalEntry;
308
+ private ensureJournalDir;
309
+ private sessionPath;
310
+ }
311
+ //#endregion
312
+ //#region src/types/agent-run.types.d.ts
313
+ type ThinkingEffort = string;
314
+ type ContextBlock = string;
315
+ type AgentRunRequest = {
316
+ sessionId?: string;
317
+ peerId?: string;
318
+ message: NcpMessage;
319
+ agentRuntimeId?: string;
320
+ agentId?: string;
321
+ projectRoot?: string;
322
+ channel?: string;
323
+ correlationId?: string;
324
+ metadata?: Record<string, unknown>;
325
+ model?: string;
326
+ maxTokens?: number;
327
+ thinkingEffort?: ThinkingEffort | null;
328
+ };
329
+ type AgentRunSpec = {
330
+ runId: string;
331
+ agentId: string;
332
+ model: string;
333
+ maxTokens?: number;
334
+ thinkingEffort?: ThinkingEffort | null;
335
+ correlationId?: string;
336
+ };
337
+ type ContextProvider = {
338
+ provide: (request: AgentRunRequest) => Promise<readonly ContextBlock[]> | readonly ContextBlock[];
339
+ };
340
+ type ToolProvider = {
341
+ provide: (request: AgentRunRequest) => Promise<readonly NcpTool[]> | readonly NcpTool[];
342
+ };
343
+ //#endregion
344
+ //#region src/types/session.types.d.ts
345
+ type AgentRunSession = {
346
+ sessionId: string;
347
+ agentId?: string;
348
+ agentRuntimeId: string;
349
+ metadata: Record<string, unknown>;
350
+ model?: string;
351
+ projectRoot?: string;
352
+ thinkingEffort?: ThinkingEffort | null;
353
+ };
354
+ type CreateAgentRunSessionParams = {
355
+ sessionId?: string;
356
+ peerId?: string;
357
+ agentId?: string;
358
+ agentRuntimeId?: string;
359
+ channel?: string;
360
+ metadata?: Record<string, unknown>;
361
+ model?: string;
362
+ projectRoot?: string;
363
+ task?: string;
364
+ thinkingEffort?: ThinkingEffort | null;
365
+ };
366
+ //#endregion
367
+ //#region src/managers/session.manager.d.ts
368
+ type CreateNcpSessionInput = CreateSessionInput & {
369
+ sessionId?: string;
370
+ };
371
+ type SessionManagerOptions = {
372
+ configManager: ConfigManager;
373
+ eventBus: EventBus;
374
+ journalStore: NcpAgentSessionJournalStore;
375
+ sessionSearch: SessionSearchManager;
376
+ };
377
+ declare class SessionManager implements NcpSessionApi {
378
+ private readonly options;
379
+ readonly cleanups: Array<() => void>;
380
+ private readonly contextWindowPreview;
381
+ private started;
382
+ constructor(options: SessionManagerOptions);
383
+ start: () => void;
384
+ dispose: () => void;
385
+ createSession: (params: CreateNcpSessionInput) => Promise<CreatedSession>;
386
+ appendSessionEvent: (params: {
387
+ sessionId: string;
388
+ event: NcpAgentSessionJournalReplayEvent;
389
+ }) => Promise<void>;
390
+ setSessionMetadata: (sessionId: string, metadata: Record<string, unknown>) => Promise<boolean>;
391
+ updateSessionMetadata: (sessionId: string, metadata: Record<string, unknown>) => Promise<boolean>;
392
+ updateSession: (sessionId: string, patch: NcpSessionPatch) => Promise<NcpSessionSummary | null>;
393
+ deleteSession: (sessionId: string) => Promise<void>;
394
+ getSessionRecord: (sessionId: string) => Promise<AgentSessionRecord | null>;
395
+ listSessions: (options?: ListSessionsOptions) => Promise<NcpSessionSummary[]>;
396
+ listSessionMessages: (sessionId: string, options?: ListMessagesOptions) => Promise<NcpMessage[]>;
397
+ getSession: (sessionId: string) => Promise<NcpSessionSummary | null>;
398
+ getContextWindow: (sessionId: string, liveRecord?: AgentSessionRecord | null) => Promise<Record<string, unknown> | null>;
399
+ getAgentRunSession: (sessionId: string) => Promise<AgentRunSession>;
400
+ createAgentRunSession: (params: CreateAgentRunSessionParams) => Promise<AgentRunSession>;
401
+ getOrCreateAgentRunSession: (params: CreateAgentRunSessionParams) => Promise<AgentRunSession>;
402
+ patchSessionMetadata: (sessionId: string, patch: Record<string, unknown>) => Promise<void>;
403
+ clearSessionMessages: (sessionId: string) => Promise<number>;
404
+ publishSessionChange: (sessionKey: string) => Promise<void>;
405
+ private createSummaryFromRecord;
406
+ private publishSessionMetadataChanged;
407
+ }
408
+ //#endregion
409
+ //#region src/managers/agent-run-context-compaction.manager.d.ts
410
+ type AgentRunContextCompactionInput = {
411
+ sessionId: string;
412
+ agentId: string;
413
+ messages: readonly NcpMessage[];
414
+ metadata: Record<string, unknown>;
415
+ };
416
+ declare class AgentRunContextCompactionManager {
417
+ private readonly sessionManager;
418
+ private readonly preflightService;
419
+ constructor(configManager: ConfigManager, providerManager: LlmProviderRuntime, sessionManager: SessionManager);
420
+ runPreflight: (input: AgentRunContextCompactionInput) => Promise<readonly NcpEndpointEvent[]>;
421
+ private toEvents;
422
+ }
423
+ //#endregion
424
+ //#region src/managers/session-run.manager.d.ts
425
+ type SessionRunSnapshot = {
426
+ messages: readonly NcpMessage[];
427
+ };
428
+ type SessionRunSeed = {
429
+ sessionId: string;
430
+ messages: readonly NcpMessage[];
431
+ };
432
+ type SessionRunEventPublishMeta = {
433
+ emittedAt?: string;
434
+ source: string;
435
+ };
436
+ type SessionRunActiveRun = {
437
+ runId: string;
438
+ signal: AbortSignal;
439
+ };
440
+ declare class MessageInbox<T> {
441
+ private readonly messages;
442
+ enqueue: (message: T) => void;
443
+ drain: () => T[];
444
+ isEmpty: () => boolean;
445
+ }
446
+ declare class SessionRun {
447
+ private readonly eventBus?;
448
+ private readonly stateManager;
449
+ readonly inbox: MessageInbox<NcpMessage>;
450
+ readonly sessionId: string;
451
+ private activeRunId;
452
+ private activeRunController;
453
+ constructor(seed: SessionRunSeed, eventBus?: EventBus | undefined, stateManager?: NcpAgentConversationStateManager);
454
+ getSnapshot: () => SessionRunSnapshot;
455
+ applyEvents: (events: readonly NcpEndpointEvent[]) => Promise<void>;
456
+ applyAndPublishEvents: (events: readonly NcpEndpointEvent[], meta: SessionRunEventPublishMeta) => Promise<void>;
457
+ beginRun: () => SessionRunActiveRun;
458
+ abortRun: (runId?: string) => boolean;
459
+ isRunning: () => boolean;
460
+ dispose: () => void;
461
+ private applyRunEvents;
462
+ }
463
+ declare class SessionRunManager {
464
+ private readonly sessionManager;
465
+ private readonly eventBus?;
466
+ private readonly runs;
467
+ constructor(sessionManager: SessionManager, eventBus?: EventBus | undefined);
468
+ getSessionRun: (sessionId: string) => SessionRun | null;
469
+ isSessionRunning: (sessionId: string) => boolean;
470
+ createSessionRun: (sessionId: string) => Promise<SessionRun>;
471
+ deleteSessionRun: (sessionId: string) => boolean;
472
+ dispose: () => void;
473
+ }
474
+ //#endregion
475
+ //#region src/managers/agent-runtime.manager.d.ts
476
+ type AgentRuntimeRunOptions = {
477
+ sessionRun: SessionRun;
478
+ contextBlocks: readonly ContextBlock[];
479
+ tools: readonly NcpTool[];
480
+ signal?: AbortSignal;
481
+ };
482
+ type AgentRuntime = {
483
+ run: (spec: AgentRunSpec, options: AgentRuntimeRunOptions) => AsyncIterable<NcpEndpointEvent>;
484
+ dispose?: () => Promise<void> | void;
485
+ };
486
+ type AgentRuntimeRegistration = {
487
+ kind: string;
488
+ label: string;
489
+ defaultReuseScope: AgentRuntimeReuseScope;
490
+ createRuntime: (params: AgentRuntimeCreateParams) => AgentRuntime;
491
+ describeSessionTypeForEntry?: (params: {
492
+ entry: AgentRuntimeEntry;
493
+ describeParams?: AgentRuntimeSessionTypeDescribeParams;
494
+ }) => Promise<Omit<AgentRuntimeSessionTypeOption, "value" | "label"> | null | undefined> | Omit<AgentRuntimeSessionTypeOption, "value" | "label"> | null | undefined;
495
+ };
496
+ type AgentRuntimeReuseScope = "global" | "session";
497
+ type AgentRuntimeCreateParams = {
498
+ entry: AgentRuntimeEntry;
499
+ session: AgentRunSession;
500
+ sessionRun: SessionRun;
501
+ };
502
+ type AgentRuntimeCacheParams = {
503
+ agentRuntimeId: string;
504
+ session: AgentRunSession;
505
+ sessionRun: SessionRun;
506
+ };
507
+ declare class AgentRuntimeManager {
508
+ private readonly providers;
509
+ private readonly entries;
510
+ private readonly globalRuntimes;
511
+ private readonly sessionRuntimes;
512
+ register: (registration: AgentRuntimeRegistration) => (() => Promise<void>);
513
+ applyEntries: (entries: readonly AgentRuntimeEntry[]) => void;
514
+ getOrCreate: (params: AgentRuntimeCacheParams) => AgentRuntime;
515
+ listSessionTypes: (_params?: AgentRuntimeSessionTypeDescribeParams) => Promise<{
516
+ defaultType: string;
517
+ options: AgentRuntimeSessionTypeOption[];
518
+ }>;
519
+ dispose: () => Promise<void>;
520
+ private normalizeId;
521
+ private getEntry;
522
+ private getProvider;
523
+ private resolveReuseScope;
524
+ private disposeAllRuntimes;
525
+ }
526
+ //#endregion
527
+ //#region src/managers/context-provider.manager.d.ts
528
+ declare class ContextProviderManager {
529
+ private readonly providers;
530
+ register: (provider: ContextProvider) => (() => void);
531
+ buildContext: (request: AgentRunRequest) => Promise<readonly ContextBlock[]>;
532
+ dispose: () => void;
533
+ }
534
+ //#endregion
535
+ //#region src/managers/tool-provider.manager.d.ts
536
+ type ToolRunContext = {
537
+ agentId: string;
538
+ channel: string;
539
+ chatId: string;
540
+ config: Config;
541
+ execTimeoutSeconds: number;
542
+ handoffDepth: number;
543
+ metadata: Record<string, unknown>;
544
+ restrictToWorkspace: boolean;
545
+ searchConfig: SearchConfig;
546
+ sessionId: string;
547
+ workspace: string;
548
+ };
549
+ declare class ToolProviderManager {
550
+ private readonly providers;
551
+ register: (provider: ToolProvider) => (() => void);
552
+ buildTools: (request: AgentRunRequest) => Promise<readonly NcpTool[]>;
553
+ dispose: () => void;
554
+ }
555
+ //#endregion
556
+ //#region src/managers/agent-run-request.manager.d.ts
557
+ declare class AgentRunRequestManager {
558
+ private readonly agentRuntimeManager;
559
+ private readonly configManager;
560
+ private readonly contextProviderManager;
561
+ private readonly eventBus;
562
+ private readonly ingress;
563
+ private readonly sessionManager;
564
+ private readonly sessionRunManager;
565
+ private readonly toolProviderManager;
566
+ readonly cleanups: Array<() => void>;
567
+ private started;
568
+ constructor(agentRuntimeManager: AgentRuntimeManager, configManager: ConfigManager, contextProviderManager: ContextProviderManager, eventBus: EventBus, ingress: Ingress, sessionManager: SessionManager, sessionRunManager: SessionRunManager, toolProviderManager: ToolProviderManager);
569
+ start: () => void;
570
+ dispose: () => void;
571
+ private handleSendRequest;
572
+ private handleAbortRequest;
573
+ private handleSessionMessageRequest;
574
+ private send;
575
+ private abort;
576
+ }
577
+ //#endregion
578
+ //#region src/managers/automation.manager.d.ts
579
+ type AutomationManagerOptions = {
580
+ storePath: string;
581
+ };
582
+ declare class AutomationManager extends CronService {
583
+ constructor(options: AutomationManagerOptions);
584
+ }
585
+ //#endregion
260
586
  //#region src/managers/extension.manager.d.ts
261
587
  type ExtensionLoadProgress = {
262
588
  extensionId: string;
@@ -417,99 +743,6 @@ declare class McpManager {
417
743
  private prewarmEnabledServersSafely;
418
744
  }
419
745
  //#endregion
420
- //#region src/utils/ncp-agent-session-journal.utils.d.ts
421
- declare const NCP_AGENT_SESSION_SNAPSHOT_MESSAGE_EVENT_TYPE = "session.snapshot.message";
422
- declare const NCP_SESSION_REQUEST_ACCEPTED_EVENT_TYPE = "session.request.accepted";
423
- declare const NCP_SESSION_REQUEST_COMPLETED_EVENT_TYPE = "session.request.completed";
424
- declare const NCP_SESSION_REQUEST_FAILED_EVENT_TYPE = "session.request.failed";
425
- type NcpAgentSessionSnapshotMessageEvent = {
426
- type: typeof NCP_AGENT_SESSION_SNAPSHOT_MESSAGE_EVENT_TYPE;
427
- payload: Extract<NcpEndpointEvent, {
428
- type: NcpEventType.MessageSent;
429
- }>["payload"];
430
- };
431
- type NcpSessionRequestJournalEventType = typeof NCP_SESSION_REQUEST_ACCEPTED_EVENT_TYPE | typeof NCP_SESSION_REQUEST_COMPLETED_EVENT_TYPE | typeof NCP_SESSION_REQUEST_FAILED_EVENT_TYPE;
432
- type NcpSessionRequestJournalEvent = {
433
- type: NcpSessionRequestJournalEventType;
434
- payload: {
435
- sessionId: string;
436
- request: unknown;
437
- };
438
- };
439
- type NcpAgentSessionJournalReplayEvent = NcpEndpointEvent | NcpAgentSessionSnapshotMessageEvent | NcpSessionRequestJournalEvent;
440
- //#endregion
441
- //#region src/stores/ncp-agent-session-journal.store.d.ts
442
- declare class NcpAgentSessionJournalStore {
443
- private readonly journalDir;
444
- private readonly sessions;
445
- private readonly nextSeqBySession;
446
- private readonly writeChains;
447
- private readonly metadataStore;
448
- private readonly summaryIndexStore;
449
- constructor(journalDir: string);
450
- appendSessionEvent: (params: {
451
- sessionId: string;
452
- event: NcpAgentSessionJournalReplayEvent;
453
- }) => Promise<void>;
454
- getSession: (sessionId: string) => Promise<AgentSessionRecord | null>;
455
- listSessionSummaries: () => Promise<NcpSessionSummary[]>;
456
- listSessionMessages: (sessionId: string) => Promise<NcpMessage[]>;
457
- setSessionMetadata: (params: {
458
- sessionId: string;
459
- metadata: Record<string, unknown>;
460
- }) => Promise<boolean>;
461
- updateSessionMetadata: (params: {
462
- sessionId: string;
463
- metadata: Record<string, unknown>;
464
- }) => Promise<boolean>;
465
- private setSessionMetadataNow;
466
- private updateSessionMetadataNow;
467
- importSessionSnapshot: (record: AgentSessionRecord) => Promise<void>;
468
- deleteSession: (sessionId: string) => Promise<AgentSessionRecord | null>;
469
- hasSession: (sessionId: string) => Promise<boolean>;
470
- private appendSessionEventNow;
471
- private withMetadata;
472
- private loadSession;
473
- private parseSessionJournal;
474
- private appendJournalEntry;
475
- private ensureJournalDir;
476
- private sessionPath;
477
- }
478
- //#endregion
479
- //#region src/managers/ncp-session.manager.d.ts
480
- type CreateNcpSessionInput = CreateSessionInput & {
481
- sessionId?: string;
482
- };
483
- type NcpSessionManagerOptions = {
484
- configManager: ConfigManager;
485
- eventBus: EventBus;
486
- journalStore: NcpAgentSessionJournalStore;
487
- sessionSearch: SessionSearchManager;
488
- };
489
- declare class NcpSessionManager implements NcpSessionApi {
490
- private readonly options;
491
- private readonly contextWindowPreview;
492
- constructor(options: NcpSessionManagerOptions);
493
- dispose: () => void;
494
- createSession: (params: CreateNcpSessionInput) => Promise<CreatedSession>;
495
- appendSessionEvent: (params: {
496
- sessionId: string;
497
- event: NcpAgentSessionJournalReplayEvent;
498
- }) => Promise<void>;
499
- setSessionMetadata: (sessionId: string, metadata: Record<string, unknown>) => Promise<boolean>;
500
- updateSessionMetadata: (sessionId: string, metadata: Record<string, unknown>) => Promise<boolean>;
501
- updateSession: (sessionId: string, patch: NcpSessionPatch) => Promise<NcpSessionSummary | null>;
502
- deleteSession: (sessionId: string) => Promise<void>;
503
- getSessionRecord: (sessionId: string) => Promise<AgentSessionRecord | null>;
504
- listSessions: (options?: ListSessionsOptions) => Promise<NcpSessionSummary[]>;
505
- listSessionMessages: (sessionId: string, options?: ListMessagesOptions) => Promise<NcpMessage[]>;
506
- getSession: (sessionId: string) => Promise<NcpSessionSummary | null>;
507
- getContextWindow: (sessionId: string, liveRecord?: AgentSessionRecord | null) => Promise<Record<string, unknown> | null>;
508
- publishSessionChange: (sessionKey: string) => Promise<void>;
509
- private createSummaryFromRecord;
510
- private publishSessionMetadataChanged;
511
- }
512
- //#endregion
513
746
  //#region src/stores/panel-app-state.store.d.ts
514
747
  type PanelAppPreferencesUpdate = {
515
748
  favorite?: boolean;
@@ -589,6 +822,62 @@ type ServiceActionGrantRequest = {
589
822
  declaredActions: string[];
590
823
  };
591
824
  //#endregion
825
+ //#region src/types/panel-app.types.d.ts
826
+ 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_BRIDGE_SESSION_NOT_FOUND" | "PANEL_APP_CAPABILITY_NOT_DECLARED" | "PANEL_APP_INVALID_ID" | "PANEL_APP_NOT_FOUND" | "PANEL_APP_READ_FAILED";
827
+ declare class PanelAppError extends Error {
828
+ readonly code: PanelAppErrorCode;
829
+ constructor(code: PanelAppErrorCode, message: string);
830
+ }
831
+ declare function isPanelAppError(error: unknown): error is PanelAppError;
832
+ type PanelAppAgentCapability = "agent:send" | "agent:generateObject";
833
+ declare function isPanelAppAgentCapability(value: unknown): value is PanelAppAgentCapability;
834
+ type PanelAppCapabilityGrantCaller = {
835
+ surface: "panel-app";
836
+ appId: string;
837
+ };
838
+ type PanelAppCapabilityGrant = {
839
+ caller: PanelAppCapabilityGrantCaller;
840
+ capability: PanelAppAgentCapability;
841
+ grantedAt: string;
842
+ };
843
+ type PanelAppAgentSendPayload = {
844
+ sessionId?: string;
845
+ peerId?: string;
846
+ content: NcpMessagePart[];
847
+ message?: never;
848
+ metadata?: Record<string, unknown>;
849
+ } | {
850
+ sessionId?: string;
851
+ peerId?: string;
852
+ message: NcpMessage | (Omit<NcpMessage, "sessionId"> & {
853
+ sessionId?: string;
854
+ });
855
+ content?: never;
856
+ metadata?: Record<string, unknown>;
857
+ };
858
+ type PanelAppAgentSendRequest = {
859
+ payload: PanelAppAgentSendPayload;
860
+ };
861
+ type PanelAppAgentSendResult = NcpRunHandle;
862
+ type PanelAppAgentRunClient = {
863
+ send: (input: AgentRunSendIngressPayload) => Promise<NcpRunHandle>;
864
+ sendAndStreamEvents: (input: AgentRunSendIngressPayload) => AsyncGenerator<NcpEndpointEvent>;
865
+ };
866
+ type PanelAppAgentGenerateObjectInput = {
867
+ peerId: string;
868
+ prompt: string;
869
+ context?: unknown;
870
+ schema: Record<string, unknown>;
871
+ title?: string;
872
+ timeoutMs?: number;
873
+ };
874
+ type PanelAppAgentGenerateObjectRequest = {
875
+ input: PanelAppAgentGenerateObjectInput;
876
+ };
877
+ type PanelAppAgentGenerateObjectResult = {
878
+ result: unknown;
879
+ };
880
+ //#endregion
592
881
  //#region src/managers/panel-app.manager.d.ts
593
882
  declare const PANEL_APP_CONTENT_TYPE: "text/html; charset=utf-8";
594
883
  type PanelAppEntry = {
@@ -598,6 +887,7 @@ type PanelAppEntry = {
598
887
  description?: string;
599
888
  icon?: string;
600
889
  contentPath: string;
890
+ createdAt: string;
601
891
  updatedAt: string;
602
892
  sizeBytes: number;
603
893
  favorite: boolean;
@@ -614,6 +904,7 @@ type PanelAppContent = {
614
904
  fileName: string;
615
905
  html: string;
616
906
  contentType: typeof PANEL_APP_CONTENT_TYPE;
907
+ capabilities: string[];
617
908
  serviceActions: string[];
618
909
  };
619
910
  type PanelAppBridgeSession = {
@@ -622,21 +913,20 @@ type PanelAppBridgeSession = {
622
913
  panelAppId: string;
623
914
  tabId: string;
624
915
  caller: ServiceActionCaller;
916
+ declaredCapabilities: string[];
625
917
  declaredActions: string[];
626
918
  createdAt: string;
627
919
  expiresAt: string;
628
920
  };
629
- type PanelAppErrorCode = "PANEL_APP_BRIDGE_SESSION_NOT_FOUND" | "PANEL_APP_INVALID_ID" | "PANEL_APP_NOT_FOUND" | "PANEL_APP_READ_FAILED";
630
- declare class PanelAppError extends Error {
631
- readonly code: PanelAppErrorCode;
632
- constructor(code: PanelAppErrorCode, message: string);
633
- }
634
- declare function isPanelAppError(error: unknown): error is PanelAppError;
635
921
  declare class PanelAppManager {
636
922
  private readonly params;
637
923
  private readonly bridgeSessions;
924
+ private readonly agentRunClient;
638
925
  constructor(params: {
926
+ agentRunClient?: PanelAppAgentRunClient;
639
927
  configManager: ConfigManager;
928
+ eventBus?: EventBus;
929
+ ingress?: Ingress;
640
930
  });
641
931
  listPanelApps: () => Promise<PanelAppList>;
642
932
  getPanelAppContent: (id: string) => Promise<PanelAppContent>;
@@ -647,11 +937,23 @@ declare class PanelAppManager {
647
937
  }) => Promise<PanelAppBridgeSession>;
648
938
  resolvePanelAppBridgeSession: (token: string) => PanelAppBridgeSession;
649
939
  deletePanelAppBridgeSession: (token: string) => void;
940
+ sendAgentMessage: (bridgeSessionToken: string, payload: PanelAppAgentSendPayload) => Promise<PanelAppAgentSendResult>;
941
+ generateAgentObject: (bridgeSessionToken: string, input: PanelAppAgentGenerateObjectInput) => Promise<PanelAppAgentGenerateObjectResult>;
942
+ grantAgentCapability: (bridgeSessionToken: string, capability: PanelAppAgentCapability) => Promise<PanelAppCapabilityGrant>;
650
943
  updatePanelAppPreferences: (id: string, preferences: PanelAppPreferencesUpdate) => Promise<PanelAppEntry>;
651
944
  recordPanelAppOpened: (id: string) => Promise<PanelAppEntry>;
945
+ deletePanelApp: (id: string) => Promise<{
946
+ deleted: true;
947
+ fileName: string;
948
+ id: string;
949
+ }>;
950
+ private assertAgentCapabilityGranted;
951
+ private assertDeclaredCapability;
952
+ private requireAgentRunClient;
652
953
  private getWorkspacePath;
653
954
  private getPanelsPath;
654
955
  private createStateStore;
956
+ private createCapabilityGrantStore;
655
957
  private listPanelAppFileNames;
656
958
  private buildPanelAppEntry;
657
959
  private resolvePanelAppFileName;
@@ -660,8 +962,8 @@ declare class PanelAppManager {
660
962
  private isPanelAppFileName;
661
963
  private toPanelAppTitle;
662
964
  private comparePanelApps;
663
- private compareIsoDesc;
664
965
  private deleteExpiredBridgeSessions;
966
+ private deleteBridgeSessionsByPanelAppId;
665
967
  private isMissingFileError;
666
968
  }
667
969
  //#endregion
@@ -829,7 +1131,7 @@ declare class SkillManager {
829
1131
  //#region src/features/session-request/managers/session-request.manager.d.ts
830
1132
  type SessionRequestManagerOptions = {
831
1133
  dispatcher: SessionRequestDispatcher;
832
- ncpSessionManager: NcpSessionManager;
1134
+ sessionManager: SessionManager;
833
1135
  };
834
1136
  declare class SessionRequestManager {
835
1137
  private readonly options;
@@ -892,7 +1194,6 @@ declare class NextclawKernel {
892
1194
  readonly llmUsage: LlmUsageManager;
893
1195
  readonly configManager: ConfigManager;
894
1196
  readonly agents: AgentManager;
895
- readonly sessions: SessionManager;
896
1197
  readonly control: NextclawKernelControlManager<unknown, unknown, unknown>;
897
1198
  readonly skills: SkillManager;
898
1199
  readonly automation: AutomationManager;
@@ -901,13 +1202,17 @@ declare class NextclawKernel {
901
1202
  readonly sessionSearch: SessionSearchManager;
902
1203
  readonly assetStore: LocalAssetStore;
903
1204
  readonly mcpManager: McpManager;
904
- readonly ncpSessionManager: NcpSessionManager;
1205
+ readonly sessionManager: SessionManager;
905
1206
  readonly panelAppManager: PanelAppManager;
906
1207
  readonly serviceAppManager: ServiceAppManager;
907
1208
  readonly extensions: ExtensionManager;
1209
+ readonly agentRuntimeManager: AgentRuntimeManager;
1210
+ readonly contextCompactionManager: AgentRunContextCompactionManager;
1211
+ readonly contextProviderManager: ContextProviderManager;
1212
+ readonly sessionRunManager: SessionRunManager;
1213
+ readonly toolProviderManager: ToolProviderManager;
1214
+ readonly agentRunRequestManager: AgentRunRequestManager;
908
1215
  private readonly ncpAgentSessionJournalStore;
909
- private readonly kernelBranch;
910
- private readonly agentRunContribution;
911
1216
  private readonly contributions;
912
1217
  private gatewayController;
913
1218
  constructor(options?: NextclawKernelOptions);
@@ -944,22 +1249,28 @@ declare class BuiltinNarpRuntimeProviderService {
944
1249
  private createStdioRuntime;
945
1250
  }
946
1251
  //#endregion
947
- //#region src/features/agent-run/managers/tool-provider.manager.d.ts
948
- type ToolRunContext = {
949
- agentId: string;
950
- channel: string;
951
- chatId: string;
952
- config: Config;
953
- execTimeoutSeconds: number;
954
- handoffDepth: number;
955
- metadata: Record<string, unknown>;
956
- restrictToWorkspace: boolean;
957
- searchConfig: SearchConfig;
1252
+ //#region src/utils/agent-run-send-payload.utils.d.ts
1253
+ type AssetApi = {
1254
+ putBytes: (input: {
1255
+ fileName: string;
1256
+ mimeType?: string | null;
1257
+ bytes: Uint8Array;
1258
+ createdAt?: Date;
1259
+ }) => Promise<{
1260
+ uri: string;
1261
+ }>;
1262
+ resolveContentPath?: (uri: string) => string | null;
1263
+ };
1264
+ type BuildAgentRunSendPayloadParams = {
958
1265
  sessionId: string;
959
- workspace: string;
1266
+ content: string;
1267
+ attachments?: InboundAttachment[];
1268
+ metadata?: Record<string, unknown>;
1269
+ assetApi?: AssetApi;
960
1270
  };
1271
+ declare function buildAgentRunSendPayload(params: BuildAgentRunSendPayloadParams): Promise<AgentRunSendIngressPayload>;
961
1272
  //#endregion
962
- //#region src/features/agent-run/services/agent-run-client.service.d.ts
1273
+ //#region src/services/agent-run-client.service.d.ts
963
1274
  type AgentRunReplyOptions = {
964
1275
  abortSignal?: AbortSignal;
965
1276
  onAssistantDelta?: (delta: string) => void;
@@ -989,27 +1300,6 @@ declare class AgentRunClient {
989
1300
  private sendWithCorrelation;
990
1301
  }
991
1302
  //#endregion
992
- //#region src/features/agent-run/utils/agent-run-send-payload.utils.d.ts
993
- type AssetApi = {
994
- putBytes: (input: {
995
- fileName: string;
996
- mimeType?: string | null;
997
- bytes: Uint8Array;
998
- createdAt?: Date;
999
- }) => Promise<{
1000
- uri: string;
1001
- }>;
1002
- resolveContentPath?: (uri: string) => string | null;
1003
- };
1004
- type BuildAgentRunSendPayloadParams = {
1005
- sessionId: string;
1006
- content: string;
1007
- attachments?: InboundAttachment[];
1008
- metadata?: Record<string, unknown>;
1009
- assetApi?: AssetApi;
1010
- };
1011
- declare function buildAgentRunSendPayload(params: BuildAgentRunSendPayloadParams): Promise<AgentRunSendIngressPayload>;
1012
- //#endregion
1013
1303
  //#region src/features/ncp-dispatch/services/gateway-inbound-processor.service.d.ts
1014
1304
  type GatewayInboundLoopRuntime = {
1015
1305
  kernel: {
@@ -1081,6 +1371,53 @@ type DirectPromptDispatchParams = {
1081
1371
  };
1082
1372
  declare function dispatchPromptOverNcp(params: DirectPromptDispatchParams): Promise<string>;
1083
1373
  //#endregion
1374
+ //#region src/services/command-registry.service.d.ts
1375
+ type CommandOptionType = "string" | "boolean" | "number";
1376
+ type CommandOption = {
1377
+ name: string;
1378
+ description: string;
1379
+ type: CommandOptionType;
1380
+ required?: boolean;
1381
+ };
1382
+ type CommandExecutionContext = {
1383
+ channel: string;
1384
+ chatId: string;
1385
+ senderId: string;
1386
+ sessionKey?: string;
1387
+ };
1388
+ type CommandResult = {
1389
+ content: string;
1390
+ ephemeral?: boolean;
1391
+ };
1392
+ type ParsedTextCommand = {
1393
+ name: string;
1394
+ args: Record<string, unknown>;
1395
+ };
1396
+ type SlashCommandSpec = {
1397
+ name: string;
1398
+ description: string;
1399
+ options?: CommandOption[];
1400
+ };
1401
+ declare class CommandRegistry {
1402
+ private readonly config;
1403
+ private readonly sessionManager?;
1404
+ private readonly specs;
1405
+ private readonly lookup;
1406
+ constructor(config: Config, sessionManager?: SessionManager | undefined);
1407
+ listSlashCommands: () => SlashCommandSpec[];
1408
+ execute: (name: string, args: Record<string, unknown> | undefined, ctx: CommandExecutionContext) => Promise<CommandResult>;
1409
+ parseTextCommand: (input: string) => ParsedTextCommand | null;
1410
+ executeText: (input: string, ctx: CommandExecutionContext) => Promise<CommandResult | null>;
1411
+ private registerDefaults;
1412
+ private register;
1413
+ private buildHelpText;
1414
+ private getOrCreateCommandSession;
1415
+ private resolveSessionModel;
1416
+ private resolveSessionThinking;
1417
+ private parseTextArgs;
1418
+ private parseTextOptionValue;
1419
+ }
1420
+ //#endregion
1084
1421
  //#region src/features/context-compaction/managers/context-compaction.manager.d.ts
1085
1422
  declare class ContextWindowPreviewManager {
1086
1423
  private readonly options;
@@ -1288,5 +1625,5 @@ type SkillRecord = {
1288
1625
  metadata: Record<string, unknown>;
1289
1626
  };
1290
1627
  //#endregion
1291
- export { AgentId, AgentManager, AgentRecord, AgentRunClient, type AgentRunReply, type AgentRunReplyOptions, type AgentRunStreamOptions, AgentRuntimeEntry, AgentRuntimeProviderRegistration, AgentRuntimeRegistry, AgentRuntimeSessionRequestDispatcherOptions, AgentRuntimeSessionTypeDescribeParams, AgentRuntimeSessionTypeIcon, AgentRuntimeSessionTypeOption, type AssetApi, AutomationId, AutomationManager, AutomationManagerOptions, type BuildAgentRunSendPayloadParams, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_TIMELINE_KIND, ChannelId, ChannelManager, ChannelReplyRouterDispatchParams, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextWindowPreviewManager, DEFAULT_AGENT_RUNTIME_ENTRY_ID, DirectPromptDispatchParams, ExtensionLoadProgress, ExtensionLoadResult, ExtensionManager, GatewayInboundLoopRuntime, GatewayInboundProcessor, InstallationKind, InstalledSkillDetail, InstalledSkillSummary, InstalledSkillsList, type LearningLoopRuntimeConfig, LlmProviderManager, LlmProviderRuntime, LlmUsageManager, LlmUsageManagerOptions, LlmUsageRecord, LlmUsageSnapshot, LlmUsageStats, LlmUsageStore, LlmUsageStoreOptions, LlmUsageSummary, LocalizedTextMap, McpManager, NARP_HTTP_RUNTIME_KIND, NARP_STDIO_RUNTIME_KIND, NEXTCLAW_TIMELINE_KIND_METADATA_KEY, NcpAgentSessionJournalStore, NcpSessionManager, NcpSessionManagerOptions, NextclawKernel, NextclawKernelOptions, NextclawNcpResolvedAgentProfile, NextclawNcpResolvedRunContext, NextclawNcpRunContextParams, PanelAppBridgeSession, PanelAppContent, PanelAppEntry, PanelAppError, PanelAppErrorCode, PanelAppList, PanelAppManager, type PanelAppPreferencesUpdate, ProviderManagerNcpLLMApi, ServiceAction, ServiceActionCaller, ServiceActionGrant, ServiceActionGrantRequest, ServiceActionGrantState, ServiceActionInvokeRequest, ServiceActionInvokeResult, ServiceActionRisk, ServiceActionRuntimeState, ServiceAppError, ServiceAppErrorCode, ServiceAppList, ServiceAppManager, ServiceAppManifest, ServiceAppManifestAction, ServiceAppProtocol, ServiceAppRecord, ServiceAppRuntimeStatus, SessionId, SessionRequestManager, SessionRequestManagerOptions, SkillFrontmatter, SkillId, type SkillInfo, SkillManager, SkillRecord, type SkillScope, TaskId, ToolId, ToolRecord, UnsignedUpdateManifest, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdatePreferences, UpdateProgress, UpdateSnapshot, UpdateStatus, buildAgentRunSendPayload, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildSessionOrchestrationSection, createAgentRuntimeSessionRequestDispatcher, createAssetTools, createContextWindowSignature, createLlmUsageRecord, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, getUnsignedUpdateManifest, hasLlmUsageTelemetry, isContextCompactionTimelineMessage, isContextWindowSnapshot, isPanelAppError, isReplyCapableChannel, isServiceAppError, listExtensionChannelIds, normalizeAgentRuntimeSessionTypeIcon, normalizeLlmUsageModel, normalizeOptionalString, parseSkillFrontmatter, projectNcpMessagesWithContextCompaction, readContextWindowEventSessionId, readLearningLoopRuntimeConfig, readMetadataModel, readMetadataThinking, resolveAgentRuntimeEntries, resolveChannelReplyRoute, resolveEffectiveModel, resolveLegacyEventType, resolveNextclawNcpRunContext, resolveSessionChannelContext, runGatewayInboundLoop, sanitizeLlmUsage, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, stripSkillFrontmatter, syncSessionThinkingPreference, toNcpMessages, upsertContextCompactionTimelineMessage, waitForAgentRuntimeSessionReply };
1628
+ export { AgentId, AgentManager, AgentRecord, AgentRunClient, type AgentRunReply, type AgentRunReplyOptions, AgentRunSession, type AgentRunStreamOptions, AgentRuntimeEntry, AgentRuntimeProviderRegistration, AgentRuntimeRegistry, AgentRuntimeSessionRequestDispatcherOptions, AgentRuntimeSessionTypeDescribeParams, AgentRuntimeSessionTypeIcon, AgentRuntimeSessionTypeOption, type AssetApi, AutomationId, AutomationManager, AutomationManagerOptions, type BuildAgentRunSendPayloadParams, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_TIMELINE_KIND, ChannelId, ChannelManager, ChannelReplyRouterDispatchParams, CommandRegistry, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextWindowPreviewManager, CreateAgentRunSessionParams, DEFAULT_AGENT_RUNTIME_ENTRY_ID, DirectPromptDispatchParams, ExtensionLoadProgress, ExtensionLoadResult, ExtensionManager, GatewayInboundLoopRuntime, GatewayInboundProcessor, InstallationKind, InstalledSkillDetail, InstalledSkillSummary, InstalledSkillsList, type LearningLoopRuntimeConfig, LlmProviderManager, LlmProviderRuntime, LlmUsageManager, LlmUsageManagerOptions, LlmUsageRecord, LlmUsageSnapshot, LlmUsageStats, LlmUsageStore, LlmUsageStoreOptions, LlmUsageSummary, LocalizedTextMap, McpManager, NARP_HTTP_RUNTIME_KIND, NARP_STDIO_RUNTIME_KIND, NEXTCLAW_TIMELINE_KIND_METADATA_KEY, NcpAgentSessionJournalStore, NextclawKernel, NextclawKernelOptions, NextclawNcpResolvedAgentProfile, NextclawNcpResolvedRunContext, NextclawNcpRunContextParams, PanelAppAgentCapability, PanelAppAgentGenerateObjectInput, PanelAppAgentGenerateObjectRequest, PanelAppAgentGenerateObjectResult, PanelAppAgentRunClient, PanelAppAgentSendPayload, PanelAppAgentSendRequest, PanelAppAgentSendResult, PanelAppBridgeSession, PanelAppCapabilityGrant, PanelAppCapabilityGrantCaller, PanelAppContent, PanelAppEntry, PanelAppError, PanelAppErrorCode, PanelAppList, PanelAppManager, type PanelAppPreferencesUpdate, ProviderManagerNcpLLMApi, ServiceAction, ServiceActionCaller, ServiceActionGrant, ServiceActionGrantRequest, ServiceActionGrantState, ServiceActionInvokeRequest, ServiceActionInvokeResult, ServiceActionRisk, ServiceActionRuntimeState, ServiceAppError, ServiceAppErrorCode, ServiceAppList, ServiceAppManager, ServiceAppManifest, ServiceAppManifestAction, ServiceAppProtocol, ServiceAppRecord, ServiceAppRuntimeStatus, SessionId, SessionManager, SessionManagerOptions, SessionRequestManager, SessionRequestManagerOptions, SkillFrontmatter, SkillId, type SkillInfo, SkillManager, SkillRecord, type SkillScope, TaskId, ToolId, ToolRecord, UnsignedUpdateManifest, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdatePreferences, UpdateProgress, UpdateSnapshot, UpdateStatus, buildAgentRunSendPayload, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildSessionOrchestrationSection, createAgentRuntimeSessionRequestDispatcher, createAssetTools, createContextWindowSignature, createLlmUsageRecord, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, getUnsignedUpdateManifest, hasLlmUsageTelemetry, isContextCompactionTimelineMessage, isContextWindowSnapshot, isPanelAppAgentCapability, isPanelAppError, isReplyCapableChannel, isServiceAppError, listExtensionChannelIds, normalizeAgentRuntimeSessionTypeIcon, normalizeLlmUsageModel, normalizeOptionalString, parseSkillFrontmatter, projectNcpMessagesWithContextCompaction, readContextWindowEventSessionId, readLearningLoopRuntimeConfig, readMetadataModel, readMetadataThinking, resolveAgentRuntimeEntries, resolveChannelReplyRoute, resolveEffectiveModel, resolveLegacyEventType, resolveNextclawNcpRunContext, resolveSessionChannelContext, runGatewayInboundLoop, sanitizeLlmUsage, serializeUnsignedUpdateManifest, shouldRefreshContextWindowDuringStream, shouldRefreshContextWindowImmediately, stripSkillFrontmatter, syncSessionThinkingPreference, toNcpMessages, upsertContextCompactionTimelineMessage, waitForAgentRuntimeSessionReply };
1292
1629
  //# sourceMappingURL=index.d.ts.map