@nextclaw/kernel 0.6.21 → 0.6.23
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 +273 -94
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2639 -857
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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, ContextCompactionPlan, ContextWindowSnapshot, CreateAgentProfileInput, CreateSessionContextInheritanceInput, CreateSessionInput, CreatedSession, CronService, EffectiveAgentProfile, ExtensionChannelBinding, ExtensionDiagnostic, ExtensionRegistry, ExtensionUiMetadata, GatewayController, InboundAttachment, InboundMessage, LLMProvider, LLMResponse, LLMStreamEvent, MessageBus, ModelThinkingCapability, OutboundMessage, 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, 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
4
|
import { ListMessagesOptions, ListSessionsOptions, NcpAgentConversationStateManager, NcpAgentRuntime, NcpEndpointEvent, NcpEventType, NcpLLMApi, NcpLLMApiInput, NcpLLMApiOptions, NcpMessage, NcpMessagePart, NcpRunHandle, NcpSessionApi, NcpSessionMessagePageInfo, NcpSessionPatch, NcpSessionSummary, NcpTool, OpenAIChatChunk } from "@nextclaw/ncp";
|
|
5
|
-
import { LocalAssetStore } from "@nextclaw/ncp-agent-runtime";
|
|
6
5
|
import { AgentRunSendIngressPayload, EventBus, InboxDelivery, InboxDeliveryContentType, InboxDeliveryContinueResult, InboxDeliveryListView, InboxDeliverySource, InboxDeliveryStateAction, Ingress, RuntimeModelSelectionMode, Unsubscribe } from "@nextclaw/shared";
|
|
6
|
+
import { LocalAssetStore } from "@nextclaw/ncp-agent-runtime";
|
|
7
7
|
import { AgentSessionRecord, ChatTarget, NcpReplyInput, RuntimeFactoryParams } from "@nextclaw/ncp-toolkit";
|
|
8
8
|
|
|
9
9
|
//#region src/features/runtime-registry/utils/agent-runtime-registry.utils.d.ts
|
|
@@ -156,8 +156,16 @@ type ProviderConnectionTestInput = {
|
|
|
156
156
|
maxTokens?: number;
|
|
157
157
|
signal?: AbortSignal;
|
|
158
158
|
};
|
|
159
|
+
type ProviderModelsDiscoverInput = {
|
|
160
|
+
providerName: string | null;
|
|
161
|
+
apiKey?: string | null;
|
|
162
|
+
apiBase?: string | null;
|
|
163
|
+
extraHeaders?: Record<string, string> | null;
|
|
164
|
+
signal?: AbortSignal;
|
|
165
|
+
};
|
|
159
166
|
declare class LlmProviderManager {
|
|
160
167
|
private readonly providerRegistry;
|
|
168
|
+
private readonly providerModelDiscovery;
|
|
161
169
|
private readonly providerPool;
|
|
162
170
|
private readonly missingProvider;
|
|
163
171
|
private config;
|
|
@@ -167,6 +175,8 @@ declare class LlmProviderManager {
|
|
|
167
175
|
readonly chat: (params: ProviderChatParams) => Promise<LLMResponse>;
|
|
168
176
|
readonly chatStream: (this: LlmProviderManager, params: ProviderChatParams) => AsyncGenerator<LLMStreamEvent>;
|
|
169
177
|
readonly testConnection: (input: ProviderConnectionTestInput) => Promise<void>;
|
|
178
|
+
supportsModelDiscovery: (providerName: string | null) => boolean;
|
|
179
|
+
discoverModels: (input: ProviderModelsDiscoverInput) => Promise<ProviderModelDiscoveryResult>;
|
|
170
180
|
private resolveRoute;
|
|
171
181
|
private resolveProvider;
|
|
172
182
|
private matchPrefixedProvider;
|
|
@@ -180,11 +190,62 @@ declare class LlmProviderManager {
|
|
|
180
190
|
private buildCacheKey;
|
|
181
191
|
}
|
|
182
192
|
//#endregion
|
|
193
|
+
//#region src/managers/provider-model-catalog.manager.d.ts
|
|
194
|
+
declare const PROVIDER_MODEL_CATALOG_REFRESH_INTERVAL_MS: number;
|
|
195
|
+
type ProviderModelCatalogEntry = {
|
|
196
|
+
providerId: string;
|
|
197
|
+
models: string[];
|
|
198
|
+
source: "provider" | "catalog" | null;
|
|
199
|
+
fetchedAt: string | null;
|
|
200
|
+
lastError: {
|
|
201
|
+
message: string;
|
|
202
|
+
occurredAt: string;
|
|
203
|
+
} | null;
|
|
204
|
+
};
|
|
205
|
+
type ProviderModelCatalogSnapshot = {
|
|
206
|
+
refreshIntervalMs: number;
|
|
207
|
+
refreshing: boolean;
|
|
208
|
+
lastRefreshStartedAt: string | null;
|
|
209
|
+
lastRefreshCompletedAt: string | null;
|
|
210
|
+
providers: Record<string, ProviderModelCatalogEntry>;
|
|
211
|
+
};
|
|
212
|
+
type ProviderModelCatalogManagerOptions = {
|
|
213
|
+
refreshIntervalMs?: number;
|
|
214
|
+
providerTimeoutMs?: number;
|
|
215
|
+
now?: () => Date;
|
|
216
|
+
};
|
|
217
|
+
declare class ProviderModelCatalogManager {
|
|
218
|
+
private readonly providerManager;
|
|
219
|
+
private config;
|
|
220
|
+
private readonly entries;
|
|
221
|
+
private readonly providerTimeoutMs;
|
|
222
|
+
private readonly refreshIntervalMs;
|
|
223
|
+
private readonly now;
|
|
224
|
+
private refreshTask;
|
|
225
|
+
private refreshPending;
|
|
226
|
+
private refreshTimer;
|
|
227
|
+
private started;
|
|
228
|
+
private lastRefreshStartedAt;
|
|
229
|
+
private lastRefreshCompletedAt;
|
|
230
|
+
constructor(providerManager: Pick<LlmProviderManager, "discoverModels" | "supportsModelDiscovery">, options?: ProviderModelCatalogManagerOptions);
|
|
231
|
+
load: (config: Config) => void;
|
|
232
|
+
start: () => void;
|
|
233
|
+
dispose: () => void;
|
|
234
|
+
refresh: () => Promise<void>;
|
|
235
|
+
getSnapshot: () => ProviderModelCatalogSnapshot;
|
|
236
|
+
private refreshConfiguredProviders;
|
|
237
|
+
private refreshProvider;
|
|
238
|
+
}
|
|
239
|
+
//#endregion
|
|
183
240
|
//#region src/managers/config.manager.d.ts
|
|
184
241
|
type ConfigManagerRuntimeHooks = {
|
|
185
242
|
resolveChannelConfig?: (config: Config) => Config;
|
|
186
243
|
getExtensionChannels?: () => ExtensionRegistry["channels"];
|
|
187
244
|
applyAgentRuntimeConfig?: (config: Config) => void;
|
|
245
|
+
reloadExtensions?: (params: {
|
|
246
|
+
config: Config;
|
|
247
|
+
changedPaths: string[];
|
|
248
|
+
}) => Promise<void> | void;
|
|
188
249
|
reloadCompanion?: (params: {
|
|
189
250
|
config: Config;
|
|
190
251
|
changedPaths: string[];
|
|
@@ -199,6 +260,7 @@ type ConfigManagerOptions = {
|
|
|
199
260
|
configPath?: string;
|
|
200
261
|
channels: ChannelManager;
|
|
201
262
|
providerManager: LlmProviderManager;
|
|
263
|
+
providerModelCatalogManager?: Pick<ProviderModelCatalogManager, "load">;
|
|
202
264
|
};
|
|
203
265
|
type ConfigMutationResult = Record<string, unknown> & {
|
|
204
266
|
ok: boolean;
|
|
@@ -275,6 +337,10 @@ declare class AgentManager {
|
|
|
275
337
|
getAgent: (agentId: string) => EffectiveAgentProfile | null;
|
|
276
338
|
getDefaultAgentId: () => string;
|
|
277
339
|
resolveAgentProfile: (agentId?: string | null) => ResolvedAgentProfile;
|
|
340
|
+
resolveAgentProfileForContextWindow: (params: {
|
|
341
|
+
agentId: string;
|
|
342
|
+
contextTokens: number;
|
|
343
|
+
}) => ResolvedAgentProfile;
|
|
278
344
|
resolveAgentProfileForRun: (params?: {
|
|
279
345
|
agentId?: string | null;
|
|
280
346
|
requestMetadata?: Record<string, unknown>;
|
|
@@ -288,27 +354,6 @@ declare class AgentManager {
|
|
|
288
354
|
private resolveAgentProfileFromConfig;
|
|
289
355
|
}
|
|
290
356
|
//#endregion
|
|
291
|
-
//#region src/utils/ncp-agent-session-journal.utils.d.ts
|
|
292
|
-
declare const NCP_AGENT_SESSION_SNAPSHOT_MESSAGE_EVENT_TYPE = "session.snapshot.message";
|
|
293
|
-
declare const NCP_SESSION_REQUEST_ACCEPTED_EVENT_TYPE = "session.request.accepted";
|
|
294
|
-
declare const NCP_SESSION_REQUEST_COMPLETED_EVENT_TYPE = "session.request.completed";
|
|
295
|
-
declare const NCP_SESSION_REQUEST_FAILED_EVENT_TYPE = "session.request.failed";
|
|
296
|
-
type NcpAgentSessionSnapshotMessageEvent = {
|
|
297
|
-
type: typeof NCP_AGENT_SESSION_SNAPSHOT_MESSAGE_EVENT_TYPE;
|
|
298
|
-
payload: Extract<NcpEndpointEvent, {
|
|
299
|
-
type: NcpEventType.MessageSent;
|
|
300
|
-
}>["payload"];
|
|
301
|
-
};
|
|
302
|
-
type NcpSessionRequestJournalEventType = typeof NCP_SESSION_REQUEST_ACCEPTED_EVENT_TYPE | typeof NCP_SESSION_REQUEST_COMPLETED_EVENT_TYPE | typeof NCP_SESSION_REQUEST_FAILED_EVENT_TYPE;
|
|
303
|
-
type NcpSessionRequestJournalEvent = {
|
|
304
|
-
type: NcpSessionRequestJournalEventType;
|
|
305
|
-
payload: {
|
|
306
|
-
sessionId: string;
|
|
307
|
-
request: unknown;
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
type NcpAgentSessionJournalReplayEvent = NcpEndpointEvent | NcpAgentSessionSnapshotMessageEvent | NcpSessionRequestJournalEvent;
|
|
311
|
-
//#endregion
|
|
312
357
|
//#region src/types/agent-run.types.d.ts
|
|
313
358
|
type ThinkingEffort = string;
|
|
314
359
|
type ContextBlock = string;
|
|
@@ -350,6 +395,125 @@ type ToolProvider = {
|
|
|
350
395
|
provide: (request: AgentRunRequest) => Promise<readonly NcpTool[]> | readonly NcpTool[];
|
|
351
396
|
};
|
|
352
397
|
//#endregion
|
|
398
|
+
//#region src/managers/context-provider.manager.d.ts
|
|
399
|
+
declare class ContextProviderManager {
|
|
400
|
+
private readonly providers;
|
|
401
|
+
register: (provider: ContextProvider) => (() => void);
|
|
402
|
+
buildContext: (request: AgentRunRequest) => Promise<readonly ContextBlock[]>;
|
|
403
|
+
dispose: () => void;
|
|
404
|
+
}
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region src/managers/tool-provider.manager.d.ts
|
|
407
|
+
type ToolRunContext = {
|
|
408
|
+
agentId: string;
|
|
409
|
+
channel: string;
|
|
410
|
+
chatId: string;
|
|
411
|
+
config: Config;
|
|
412
|
+
execTimeoutSeconds: number;
|
|
413
|
+
handoffDepth: number;
|
|
414
|
+
metadata: Record<string, unknown>;
|
|
415
|
+
restrictToWorkspace: boolean;
|
|
416
|
+
searchConfig: SearchConfig;
|
|
417
|
+
sessionId: string;
|
|
418
|
+
workspace: string;
|
|
419
|
+
};
|
|
420
|
+
declare class ToolProviderManager {
|
|
421
|
+
private readonly providers;
|
|
422
|
+
register: (provider: ToolProvider) => (() => void);
|
|
423
|
+
buildTools: (request: AgentRunRequest) => Promise<readonly NcpTool[]>;
|
|
424
|
+
dispose: () => void;
|
|
425
|
+
}
|
|
426
|
+
//#endregion
|
|
427
|
+
//#region src/managers/agent-context-window.manager.d.ts
|
|
428
|
+
type AgentContextWindowEvaluation = {
|
|
429
|
+
agentId: string;
|
|
430
|
+
contextTokens: number;
|
|
431
|
+
fixedInputTokens: number;
|
|
432
|
+
minimumContextTokens: number;
|
|
433
|
+
reservedContextTokens: number;
|
|
434
|
+
};
|
|
435
|
+
type AgentRunSurface = {
|
|
436
|
+
contextBlocks: readonly string[];
|
|
437
|
+
tools: readonly NcpTool[];
|
|
438
|
+
};
|
|
439
|
+
declare class AgentContextWindowManager {
|
|
440
|
+
private readonly agentManager;
|
|
441
|
+
private readonly contextProviderManager;
|
|
442
|
+
private readonly toolProviderManager;
|
|
443
|
+
private readonly runInputBudgetBySession;
|
|
444
|
+
private readonly preflightService;
|
|
445
|
+
constructor(agentManager: AgentManager, contextProviderManager: ContextProviderManager, toolProviderManager: ToolProviderManager);
|
|
446
|
+
resolveRunSurface: (request: AgentRunRequest) => Promise<AgentRunSurface>;
|
|
447
|
+
forgetSession: (sessionId: string) => void;
|
|
448
|
+
previewSession: (params: {
|
|
449
|
+
requestMetadata: Record<string, unknown>;
|
|
450
|
+
sessionId: string;
|
|
451
|
+
sessionMessages: readonly NcpMessage[];
|
|
452
|
+
storedAgentId?: string;
|
|
453
|
+
storedMetadata: Record<string, unknown>;
|
|
454
|
+
}) => Promise<ContextWindowSnapshot | null>;
|
|
455
|
+
assertCanSave: (params: {
|
|
456
|
+
agentId: string;
|
|
457
|
+
contextTokens: number;
|
|
458
|
+
}) => Promise<AgentContextWindowEvaluation>;
|
|
459
|
+
assertDefaultCanSave: (contextTokens: number) => Promise<AgentContextWindowEvaluation[]>;
|
|
460
|
+
private createValidationRequest;
|
|
461
|
+
private estimateFixedInputTokens;
|
|
462
|
+
private resolveSessionFixedInputTokens;
|
|
463
|
+
private buildRunSurface;
|
|
464
|
+
private resolveMinimumContextTokens;
|
|
465
|
+
}
|
|
466
|
+
//#endregion
|
|
467
|
+
//#region src/managers/agent-run-context-compaction.manager.d.ts
|
|
468
|
+
type AgentRunContextCompactionInput = {
|
|
469
|
+
sessionId: string;
|
|
470
|
+
agentId: string;
|
|
471
|
+
contextBlocks: readonly string[];
|
|
472
|
+
messages: readonly NcpMessage[];
|
|
473
|
+
metadata: Record<string, unknown>;
|
|
474
|
+
model: string;
|
|
475
|
+
phase?: ContextCompactionPhase;
|
|
476
|
+
signal?: AbortSignal;
|
|
477
|
+
tools?: readonly NcpTool[];
|
|
478
|
+
};
|
|
479
|
+
declare class AgentRunContextCompactionManager {
|
|
480
|
+
private readonly preflightService;
|
|
481
|
+
constructor(agentManager: AgentManager, providerManager: LlmProviderRuntime);
|
|
482
|
+
runPreflight: (input: AgentRunContextCompactionInput) => AsyncIterable<NcpEndpointEvent>;
|
|
483
|
+
runManual: (input: AgentRunContextCompactionInput) => Promise<readonly NcpEndpointEvent[]>;
|
|
484
|
+
private run;
|
|
485
|
+
private toEvent;
|
|
486
|
+
}
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region src/utils/ncp-agent-session-journal.utils.d.ts
|
|
489
|
+
declare const NCP_AGENT_SESSION_SNAPSHOT_MESSAGE_EVENT_TYPE = "session.snapshot.message";
|
|
490
|
+
declare const NCP_SESSION_REQUEST_ACCEPTED_EVENT_TYPE = "session.request.accepted";
|
|
491
|
+
declare const NCP_SESSION_REQUEST_COMPLETED_EVENT_TYPE = "session.request.completed";
|
|
492
|
+
declare const NCP_SESSION_REQUEST_FAILED_EVENT_TYPE = "session.request.failed";
|
|
493
|
+
type NcpAgentSessionSnapshotMessageEvent = {
|
|
494
|
+
type: typeof NCP_AGENT_SESSION_SNAPSHOT_MESSAGE_EVENT_TYPE;
|
|
495
|
+
payload: Extract<NcpEndpointEvent, {
|
|
496
|
+
type: NcpEventType.MessageSent;
|
|
497
|
+
}>["payload"];
|
|
498
|
+
};
|
|
499
|
+
type NcpSessionRequestJournalEventType = typeof NCP_SESSION_REQUEST_ACCEPTED_EVENT_TYPE | typeof NCP_SESSION_REQUEST_COMPLETED_EVENT_TYPE | typeof NCP_SESSION_REQUEST_FAILED_EVENT_TYPE;
|
|
500
|
+
type NcpSessionRequestJournalEvent = {
|
|
501
|
+
type: NcpSessionRequestJournalEventType;
|
|
502
|
+
payload: {
|
|
503
|
+
sessionId: string;
|
|
504
|
+
request: unknown;
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
type NcpAgentSessionJournalReplayEvent = NcpEndpointEvent | NcpAgentSessionSnapshotMessageEvent | NcpSessionRequestJournalEvent;
|
|
508
|
+
//#endregion
|
|
509
|
+
//#region src/utils/ncp-agent-unfinished-run.utils.d.ts
|
|
510
|
+
type UnfinishedNcpAgentRun = {
|
|
511
|
+
sessionId: string;
|
|
512
|
+
messageId?: string;
|
|
513
|
+
runId?: string;
|
|
514
|
+
startedAt?: string;
|
|
515
|
+
};
|
|
516
|
+
//#endregion
|
|
353
517
|
//#region src/types/session.types.d.ts
|
|
354
518
|
type SessionMessagePage = {
|
|
355
519
|
messages: NcpMessage[];
|
|
@@ -409,6 +573,7 @@ declare class NcpAgentSessionJournalStore {
|
|
|
409
573
|
private readonly writeChains;
|
|
410
574
|
private readonly metadataStore;
|
|
411
575
|
private readonly messageProjectionStore;
|
|
576
|
+
private readonly unfinishedRunStore;
|
|
412
577
|
private readonly summaryIndexStore;
|
|
413
578
|
constructor(journalDir: string);
|
|
414
579
|
appendSessionEvent: (params: {
|
|
@@ -417,6 +582,7 @@ declare class NcpAgentSessionJournalStore {
|
|
|
417
582
|
}) => Promise<void>;
|
|
418
583
|
getSession: (sessionId: string) => Promise<AgentSessionRecord | null>;
|
|
419
584
|
listSessionSummaries: () => Promise<NcpSessionSummary[]>;
|
|
585
|
+
listUnfinishedRuns: () => Promise<UnfinishedNcpAgentRun[]>;
|
|
420
586
|
listSessionMessages: (sessionId: string) => Promise<NcpMessage[]>;
|
|
421
587
|
listSessionMessagePage: (params: {
|
|
422
588
|
sessionId: string;
|
|
@@ -505,6 +671,7 @@ type CreateNcpSessionInput = CreateSessionInput & {
|
|
|
505
671
|
sessionId?: string;
|
|
506
672
|
};
|
|
507
673
|
type SessionManagerOptions = {
|
|
674
|
+
agentContextWindowManager: AgentContextWindowManager;
|
|
508
675
|
agentManager: AgentManager;
|
|
509
676
|
configManager: ConfigManager;
|
|
510
677
|
eventBus: EventBus;
|
|
@@ -514,13 +681,10 @@ type SessionManagerOptions = {
|
|
|
514
681
|
};
|
|
515
682
|
declare class SessionManager implements NcpSessionApi {
|
|
516
683
|
private readonly options;
|
|
517
|
-
readonly cleanups: Array<() => void>;
|
|
518
|
-
private readonly contextWindowPreview;
|
|
519
684
|
private readonly eventIngestion;
|
|
520
685
|
private readonly workingDirResolver;
|
|
521
|
-
private started;
|
|
522
686
|
constructor(options: SessionManagerOptions);
|
|
523
|
-
start: () => void
|
|
687
|
+
start: () => Promise<void>;
|
|
524
688
|
dispose: () => void;
|
|
525
689
|
createSession: (params: CreateNcpSessionInput) => Promise<CreatedSession>;
|
|
526
690
|
appendSessionEvent: (params: {
|
|
@@ -548,31 +712,14 @@ declare class SessionManager implements NcpSessionApi {
|
|
|
548
712
|
getOrCreateAgentRunSession: (params: CreateAgentRunSessionParams) => Promise<AgentRunSession>;
|
|
549
713
|
patchSessionMetadata: (sessionId: string, patch: Record<string, unknown>) => Promise<void>;
|
|
550
714
|
clearSessionMessages: (sessionId: string) => Promise<number>;
|
|
715
|
+
rewindSessionBeforeMessage: (sessionId: string, messageId: string) => Promise<AgentSessionRecord>;
|
|
551
716
|
publishSessionChange: (sessionKey: string) => Promise<void>;
|
|
552
717
|
private createSummaryFromRecord;
|
|
718
|
+
private createSummaryWithContextWindow;
|
|
553
719
|
private publishSessionMetadataChanged;
|
|
554
720
|
private applySessionProjectPatch;
|
|
555
721
|
}
|
|
556
722
|
//#endregion
|
|
557
|
-
//#region src/managers/agent-run-context-compaction.manager.d.ts
|
|
558
|
-
type AgentRunContextCompactionInput = {
|
|
559
|
-
sessionId: string;
|
|
560
|
-
agentId: string;
|
|
561
|
-
contextBlocks: readonly string[];
|
|
562
|
-
messages: readonly NcpMessage[];
|
|
563
|
-
metadata: Record<string, unknown>;
|
|
564
|
-
model: string;
|
|
565
|
-
};
|
|
566
|
-
declare class AgentRunContextCompactionManager {
|
|
567
|
-
private readonly sessionManager;
|
|
568
|
-
private readonly preflightService;
|
|
569
|
-
constructor(agentManager: AgentManager, providerManager: LlmProviderRuntime, sessionManager: SessionManager);
|
|
570
|
-
runPreflight: (input: AgentRunContextCompactionInput) => Promise<readonly NcpEndpointEvent[]>;
|
|
571
|
-
runManual: (input: AgentRunContextCompactionInput) => Promise<readonly NcpEndpointEvent[]>;
|
|
572
|
-
private run;
|
|
573
|
-
private toEvents;
|
|
574
|
-
}
|
|
575
|
-
//#endregion
|
|
576
723
|
//#region src/managers/session-run.manager.d.ts
|
|
577
724
|
type SessionRunQueuedRequest = {
|
|
578
725
|
id: string;
|
|
@@ -605,6 +752,7 @@ declare class SessionRun {
|
|
|
605
752
|
messages: readonly NcpMessage[];
|
|
606
753
|
};
|
|
607
754
|
applyEvents: (events: readonly NcpEndpointEvent[]) => Promise<void>;
|
|
755
|
+
replaceMessages: (messages: readonly NcpMessage[]) => void;
|
|
608
756
|
onStatusChange: (listener: (status: "idle" | "running") => void) => (() => void);
|
|
609
757
|
enqueueRequest: (request: AgentRunRequest, session: AgentRunSession) => SessionRunQueuedRequest;
|
|
610
758
|
listQueuedRequests: () => readonly SessionRunQueuedRequest[];
|
|
@@ -692,56 +840,29 @@ declare class AgentRuntimeManager {
|
|
|
692
840
|
private disposeAllRuntimes;
|
|
693
841
|
}
|
|
694
842
|
//#endregion
|
|
695
|
-
//#region src/managers/context-provider.manager.d.ts
|
|
696
|
-
declare class ContextProviderManager {
|
|
697
|
-
private readonly providers;
|
|
698
|
-
register: (provider: ContextProvider) => (() => void);
|
|
699
|
-
buildContext: (request: AgentRunRequest) => Promise<readonly ContextBlock[]>;
|
|
700
|
-
dispose: () => void;
|
|
701
|
-
}
|
|
702
|
-
//#endregion
|
|
703
|
-
//#region src/managers/tool-provider.manager.d.ts
|
|
704
|
-
type ToolRunContext = {
|
|
705
|
-
agentId: string;
|
|
706
|
-
channel: string;
|
|
707
|
-
chatId: string;
|
|
708
|
-
config: Config;
|
|
709
|
-
execTimeoutSeconds: number;
|
|
710
|
-
handoffDepth: number;
|
|
711
|
-
metadata: Record<string, unknown>;
|
|
712
|
-
restrictToWorkspace: boolean;
|
|
713
|
-
searchConfig: SearchConfig;
|
|
714
|
-
sessionId: string;
|
|
715
|
-
workspace: string;
|
|
716
|
-
};
|
|
717
|
-
declare class ToolProviderManager {
|
|
718
|
-
private readonly providers;
|
|
719
|
-
register: (provider: ToolProvider) => (() => void);
|
|
720
|
-
buildTools: (request: AgentRunRequest) => Promise<readonly NcpTool[]>;
|
|
721
|
-
dispose: () => void;
|
|
722
|
-
}
|
|
723
|
-
//#endregion
|
|
724
843
|
//#region src/managers/agent-run-request.manager.d.ts
|
|
725
844
|
declare class AgentRunRequestManager {
|
|
726
845
|
private readonly agentRuntimeManager;
|
|
727
846
|
private readonly agentManager;
|
|
728
847
|
private readonly configManager;
|
|
729
|
-
private readonly
|
|
848
|
+
private readonly agentContextWindowManager;
|
|
730
849
|
private readonly eventBus;
|
|
731
850
|
private readonly ingress;
|
|
732
851
|
private readonly sessionManager;
|
|
733
852
|
private readonly sessionRunManager;
|
|
734
|
-
private readonly toolProviderManager;
|
|
735
853
|
readonly cleanups: Array<() => void>;
|
|
736
854
|
private readonly observedSessionRuns;
|
|
855
|
+
private readonly sessionCommandManager;
|
|
737
856
|
private started;
|
|
738
|
-
constructor(agentRuntimeManager: AgentRuntimeManager, agentManager: AgentManager, configManager: ConfigManager,
|
|
857
|
+
constructor(agentRuntimeManager: AgentRuntimeManager, agentManager: AgentManager, configManager: ConfigManager, agentContextWindowManager: AgentContextWindowManager, eventBus: EventBus, ingress: Ingress, sessionManager: SessionManager, sessionRunManager: SessionRunManager);
|
|
739
858
|
start: () => void;
|
|
740
859
|
dispose: () => void;
|
|
741
860
|
listQueuedInputs: (sessionId: string) => readonly SessionQueuedInput[];
|
|
742
861
|
removeQueuedInput: (sessionId: string, queuedInputId: string) => SessionQueuedInput | null;
|
|
743
862
|
private handleSendRequest;
|
|
744
863
|
private handleAbortRequest;
|
|
864
|
+
private handleEditMessageRequest;
|
|
865
|
+
private handleContinueRequest;
|
|
745
866
|
private handleSessionMessageRequest;
|
|
746
867
|
private send;
|
|
747
868
|
private startQueuedRun;
|
|
@@ -894,11 +1015,14 @@ declare class ExtensionManager {
|
|
|
894
1015
|
getExtensionRegistry: () => ExtensionRegistry;
|
|
895
1016
|
getChannelBindings: () => ExtensionChannelBinding[];
|
|
896
1017
|
getUiMetadata: () => ExtensionUiMetadata[];
|
|
1018
|
+
getRuntimeStatus: () => ExtensionRuntimeStatus[];
|
|
897
1019
|
authenticateEventStreamCredential: (input: {
|
|
898
1020
|
extensionId: string | null;
|
|
1021
|
+
generation: string | null;
|
|
899
1022
|
token: string | null;
|
|
900
1023
|
}) => {
|
|
901
1024
|
extensionId: string;
|
|
1025
|
+
generation: string;
|
|
902
1026
|
} | null;
|
|
903
1027
|
toConfigView: (config: Config) => Config;
|
|
904
1028
|
mergeConfigView: (current: Config, nextConfigView: Record<string, unknown>) => Config;
|
|
@@ -1588,6 +1712,7 @@ declare class NextclawKernel {
|
|
|
1588
1712
|
readonly ingress: Ingress;
|
|
1589
1713
|
readonly messageBus: MessageBus;
|
|
1590
1714
|
readonly llmProviders: LlmProviderManager;
|
|
1715
|
+
readonly providerModelCatalog: ProviderModelCatalogManager;
|
|
1591
1716
|
readonly llmUsage: LlmUsageManager;
|
|
1592
1717
|
readonly configManager: ConfigManager;
|
|
1593
1718
|
readonly accessManager: AccessManager;
|
|
@@ -1608,6 +1733,7 @@ declare class NextclawKernel {
|
|
|
1608
1733
|
readonly serviceAppManager: ServiceAppManager;
|
|
1609
1734
|
readonly extensions: ExtensionManager;
|
|
1610
1735
|
readonly agentRuntimeManager: AgentRuntimeManager;
|
|
1736
|
+
readonly agentContextWindowManager: AgentContextWindowManager;
|
|
1611
1737
|
readonly contextCompactionManager: AgentRunContextCompactionManager;
|
|
1612
1738
|
readonly contextProviderManager: ContextProviderManager;
|
|
1613
1739
|
readonly sessionRunManager: SessionRunManager;
|
|
@@ -1872,23 +1998,19 @@ declare const DEFAULT_SERVICE_ACTION_RISK: ServiceActionRisk;
|
|
|
1872
1998
|
declare function buildServiceActionId(appId: string, actionName: string): string;
|
|
1873
1999
|
declare function getServiceActionName(actionId: string, appId: string): string;
|
|
1874
2000
|
//#endregion
|
|
1875
|
-
//#region src/features/context-compaction/
|
|
1876
|
-
declare class
|
|
1877
|
-
private readonly
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
storedAgentId?: string;
|
|
1884
|
-
storedMetadata: Record<string, unknown>;
|
|
1885
|
-
}) => ContextWindowSnapshot | null;
|
|
2001
|
+
//#region src/features/context-compaction/services/context-compaction-journal-recovery.service.d.ts
|
|
2002
|
+
declare class ContextCompactionJournalRecoveryService {
|
|
2003
|
+
private readonly pendingMessageIds;
|
|
2004
|
+
private readonly recoveredTerminals;
|
|
2005
|
+
seed: (messages: readonly NcpMessage[]) => void;
|
|
2006
|
+
track: (event: NcpEndpointEvent) => void;
|
|
2007
|
+
terminalize: (message: NcpMessage) => NcpMessage;
|
|
2008
|
+
private readCheckpoint;
|
|
1886
2009
|
}
|
|
1887
2010
|
//#endregion
|
|
1888
2011
|
//#region src/features/context-compaction/services/context-compaction-preflight.service.d.ts
|
|
1889
2012
|
type ContextCompactionPreflightResult = {
|
|
1890
2013
|
contextWindow: ContextWindowSnapshot;
|
|
1891
|
-
metadataPatch: Record<string, unknown>;
|
|
1892
2014
|
sessionMessages: NcpMessage[];
|
|
1893
2015
|
timelineMessage: NcpMessage | null;
|
|
1894
2016
|
};
|
|
@@ -1898,13 +2020,21 @@ type ContextCompactionPreflightBeginResult = {
|
|
|
1898
2020
|
pendingCompaction: ContextCompactionPendingWork | null;
|
|
1899
2021
|
};
|
|
1900
2022
|
type ContextCompactionTrigger = "automatic" | "manual";
|
|
2023
|
+
type ContinuationMessageBoundary = {
|
|
2024
|
+
messageId: string;
|
|
2025
|
+
coveredPartCount: number;
|
|
2026
|
+
};
|
|
1901
2027
|
type ContextCompactionPendingWork = {
|
|
1902
2028
|
checkpoint: ReturnType<typeof buildCompressingCompactionCheckpoint>;
|
|
2029
|
+
contextBlockMessages: Record<string, unknown>[];
|
|
2030
|
+
continuationMessageBoundary: ContinuationMessageBoundary | null;
|
|
1903
2031
|
contextTokens: number;
|
|
2032
|
+
phase: ContextCompactionPhase;
|
|
1904
2033
|
serviceMessageId: string;
|
|
1905
2034
|
model: string;
|
|
1906
2035
|
plan: ContextCompactionPlan;
|
|
1907
2036
|
reservedContextTokens: number;
|
|
2037
|
+
snapshotFixedInputTokens: number;
|
|
1908
2038
|
sessionId: string;
|
|
1909
2039
|
sessionMessages: NcpMessage[];
|
|
1910
2040
|
};
|
|
@@ -1915,25 +2045,30 @@ declare class ContextCompactionPreflightService {
|
|
|
1915
2045
|
private readonly contextWindowBudgetService;
|
|
1916
2046
|
constructor(agentManager: AgentManager, providerManager?: LlmProviderRuntime | undefined);
|
|
1917
2047
|
preview: (params: {
|
|
2048
|
+
completeInputBudget?: boolean;
|
|
1918
2049
|
contextBlocks?: readonly string[];
|
|
2050
|
+
fixedInputTokens?: number;
|
|
1919
2051
|
requestMetadata: Record<string, unknown>;
|
|
1920
2052
|
sessionId: string;
|
|
1921
2053
|
sessionMessages: readonly NcpMessage[];
|
|
1922
2054
|
storedAgentId?: string;
|
|
1923
2055
|
storedMetadata: Record<string, unknown>;
|
|
2056
|
+
tools?: readonly NcpTool[];
|
|
1924
2057
|
}) => ContextWindowSnapshot | null;
|
|
1925
2058
|
begin: (params: {
|
|
1926
2059
|
contextBlocks?: readonly string[];
|
|
1927
2060
|
inputMessages: readonly NcpMessage[];
|
|
1928
2061
|
model: string;
|
|
2062
|
+
phase?: ContextCompactionPhase;
|
|
1929
2063
|
requestMetadata: Record<string, unknown>;
|
|
1930
2064
|
sessionId: string;
|
|
1931
2065
|
sessionMessages: readonly NcpMessage[];
|
|
1932
2066
|
storedAgentId?: string;
|
|
1933
2067
|
storedMetadata: Record<string, unknown>;
|
|
2068
|
+
tools?: readonly NcpTool[];
|
|
1934
2069
|
trigger?: ContextCompactionTrigger;
|
|
1935
2070
|
}) => ContextCompactionPreflightBeginResult;
|
|
1936
|
-
finish: (pending: ContextCompactionPendingWork) => Promise<ContextCompactionPreflightResult>;
|
|
2071
|
+
finish: (pending: ContextCompactionPendingWork, signal?: AbortSignal) => Promise<ContextCompactionPreflightResult>;
|
|
1937
2072
|
private generateSummary;
|
|
1938
2073
|
private resolveCompactionProfile;
|
|
1939
2074
|
}
|
|
@@ -1943,7 +2078,10 @@ declare const NEXTCLAW_TIMELINE_KIND_METADATA_KEY = "nextclaw_timeline_kind";
|
|
|
1943
2078
|
declare const CONTEXT_COMPACTION_TIMELINE_KIND = "context_compaction";
|
|
1944
2079
|
declare const CONTEXT_COMPACTION_PROJECTION_METADATA_KEY = "nextclaw_context_projection";
|
|
1945
2080
|
declare const CONTEXT_COMPACTION_PROJECTION_KIND = "compressed_context";
|
|
2081
|
+
declare const CONTEXT_COMPACTION_CONTINUATION_TEXT = "Continue the active run from the compressed working context. Do not repeat completed tool calls; proceed with the next required action.";
|
|
2082
|
+
declare const CONTEXT_COMPACTION_SYSTEM_PREAMBLE: string;
|
|
1946
2083
|
type ContextCompactionTimelineCheckpoint = ContextCompactionCheckpoint;
|
|
2084
|
+
declare function readContextCompactionCheckpoint(message: NcpMessage): ContextCompactionCheckpoint | null;
|
|
1947
2085
|
declare function createContextCompactionMessageId(): string;
|
|
1948
2086
|
declare function buildContextCompactionTimelineNcpMessage(params: {
|
|
1949
2087
|
messageId: string;
|
|
@@ -1957,10 +2095,14 @@ declare function isContextCompactionProjectionMessage(message: {
|
|
|
1957
2095
|
metadata?: Record<string, unknown> | undefined;
|
|
1958
2096
|
} | null | undefined): boolean;
|
|
1959
2097
|
declare function readLatestContextCompactionCheckpoint(sessionMessages: readonly NcpMessage[]): ContextCompactionCheckpoint | null;
|
|
1960
|
-
|
|
2098
|
+
type ContextCompactionModelProjection = {
|
|
2099
|
+
messages: NcpMessage[];
|
|
2100
|
+
stablePrefixMessageCount: number;
|
|
2101
|
+
};
|
|
2102
|
+
declare function buildContextCompactionModelProjection(params: {
|
|
1961
2103
|
sessionId: string;
|
|
1962
2104
|
sessionMessages: readonly NcpMessage[];
|
|
1963
|
-
}):
|
|
2105
|
+
}): ContextCompactionModelProjection;
|
|
1964
2106
|
declare function readContextWindowEventSessionId(event: NcpEndpointEvent): string | null;
|
|
1965
2107
|
declare function isContextWindowSnapshot(value: unknown): value is Record<string, unknown>;
|
|
1966
2108
|
declare function createContextWindowSignature(value: Record<string, unknown>): string;
|
|
@@ -2040,6 +2182,43 @@ declare function resolveSessionChannelContext(params: {
|
|
|
2040
2182
|
metadata: Record<string, unknown>;
|
|
2041
2183
|
};
|
|
2042
2184
|
//#endregion
|
|
2185
|
+
//#region src/features/extension-runtime/types/extension-runtime.types.d.ts
|
|
2186
|
+
type ExtensionProcessState = "stopped" | "starting" | "running" | "stopping" | "failed";
|
|
2187
|
+
type ExtensionLeaseReason = {
|
|
2188
|
+
kind: "enabled-channel";
|
|
2189
|
+
channelId: string;
|
|
2190
|
+
} | {
|
|
2191
|
+
kind: "auth-session";
|
|
2192
|
+
sessionId: string;
|
|
2193
|
+
expiresAt: string;
|
|
2194
|
+
} | {
|
|
2195
|
+
kind: "auth-handoff";
|
|
2196
|
+
channelId: string;
|
|
2197
|
+
expiresAt: string;
|
|
2198
|
+
} | {
|
|
2199
|
+
kind: "request";
|
|
2200
|
+
requestId: string;
|
|
2201
|
+
};
|
|
2202
|
+
type ExtensionRuntimeStatus = {
|
|
2203
|
+
extensionId: string;
|
|
2204
|
+
generation: string | null;
|
|
2205
|
+
lastExit: {
|
|
2206
|
+
at: string;
|
|
2207
|
+
code: number | null;
|
|
2208
|
+
expected: boolean;
|
|
2209
|
+
signal: string | null;
|
|
2210
|
+
} | null;
|
|
2211
|
+
leaseReasons: ExtensionLeaseReason[];
|
|
2212
|
+
memory: {
|
|
2213
|
+
pssBytes: number | null;
|
|
2214
|
+
rssBytes: number | null;
|
|
2215
|
+
} | null;
|
|
2216
|
+
pid: number | null;
|
|
2217
|
+
startedAt: string | null;
|
|
2218
|
+
state: ExtensionProcessState;
|
|
2219
|
+
startupDurationMs: number | null;
|
|
2220
|
+
};
|
|
2221
|
+
//#endregion
|
|
2043
2222
|
//#region src/features/extension-runtime/utils/extension-channel-catalog.utils.d.ts
|
|
2044
2223
|
declare function listExtensionChannelIds(params: {
|
|
2045
2224
|
config: Config;
|
|
@@ -2054,5 +2233,5 @@ declare function resolveLegacyEventType(message: SessionMessage): string;
|
|
|
2054
2233
|
declare function getUiContentParamsBootstrapScript(): string;
|
|
2055
2234
|
declare function injectUiContentParamsBootstrap(html: string): string;
|
|
2056
2235
|
//#endregion
|
|
2057
|
-
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, type AssetApi, AutomationManager, AutomationManagerOptions, type BuildAgentRunSendPayloadParams, BuiltinNarpRuntimeProviderService, CONTEXT_COMPACTION_PROJECTION_KIND, CONTEXT_COMPACTION_PROJECTION_METADATA_KEY, CONTEXT_COMPACTION_TIMELINE_KIND, ChannelManager, ChannelReplyRouterDispatchParams, CommandRegistry, ConfigManager, ConfigManagerOptions, ConfigManagerRuntimeHooks, ConfigMutationResult, ContextCompactionPreflightBeginResult, ContextCompactionPreflightResult, ContextCompactionPreflightService, ContextCompactionTimelineCheckpoint, ContextCompactionTrigger,
|
|
2236
|
+
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, 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, type SessionQueuedInput, SessionRequestManager, SessionRequestManagerOptions, SessionSettingsError, SessionSettingsPatch, SkillFrontmatter, type SkillInfo, SkillManager, type SkillScope, UnsignedUpdateManifest, UpdateBlockReason, UpdateHostKind, UpdateManifest, UpdateManifestReader, UpdateProgress, UpdateSnapshot, UpdateStatus, buildAgentRunSendPayload, buildContextCompactionModelProjection, buildContextCompactionTimelineNcpMessage, buildLlmUsageSummary, buildLocalizedTextMap, buildNextclawNcpRunContext, buildServiceActionId, createAgentRuntimeSessionRequestDispatcher, createAssetTools, createContextCompactionMessageId, createContextWindowSignature, createLlmUsageRecord, describeAgentRuntimeSessionTypes, dispatchAgentRuntimeSessionRequest, dispatchChannelReplyRoute, dispatchPromptOverNcp, getAutomaticUpdateCheckDelay, getServiceActionName, getServiceAppManifestPath, getUiContentParamsBootstrapScript, getUnsignedUpdateManifest, hasLlmUsageTelemetry, injectUiContentParamsBootstrap, isContextCompactionProjectionMessage, isContextCompactionTimelineMessage, isContextWindowSnapshot, isInboxDeliveryError, isPanelAppAgentCapability, isPanelAppError, isPreferenceError, isProjectError, isReplyCapableChannel, isServiceAppError, isSessionContextCompactionError, isSessionMessageCursorError, isSessionSettingsError, 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 };
|
|
2058
2237
|
//# sourceMappingURL=index.d.ts.map
|