@nextclaw/kernel 0.1.4 → 0.1.6
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 +14 -1
- package/dist/index.js +881 -112
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -279,6 +279,7 @@ type AgentRuntimeHandle = AgentRuntimeEndpoint & {
|
|
|
279
279
|
};
|
|
280
280
|
declare function createAgentRuntimeHandle(params: {
|
|
281
281
|
backend: DefaultNcpAgentBackend;
|
|
282
|
+
agentClientEndpoint?: NcpAgentClientEndpoint;
|
|
282
283
|
runtimeRegistry: AgentRuntimeRegistry;
|
|
283
284
|
refreshPluginRuntimeRegistrations: () => void;
|
|
284
285
|
refreshConfiguredRuntimeEntries: () => void;
|
|
@@ -493,8 +494,11 @@ declare class AgentRuntimeManager {
|
|
|
493
494
|
private disposed;
|
|
494
495
|
constructor(params: AgentRuntimeManagerOptions);
|
|
495
496
|
get currentHandle(): AgentRuntimeHandle | null;
|
|
497
|
+
isLiveSessionRunning: (sessionId: string) => boolean;
|
|
496
498
|
connectGatewayController: (gatewayController: GatewayController) => void;
|
|
497
499
|
bootstrap: () => Promise<AgentRuntimeHandle>;
|
|
500
|
+
private readonly materializeAgentSendEnvelope;
|
|
501
|
+
private readonly createMaterializingAgentClientEndpoint;
|
|
498
502
|
warmDerivedCapabilities: () => Promise<void>;
|
|
499
503
|
dispose: () => Promise<void>;
|
|
500
504
|
private readonly registerCoreRuntimes;
|
|
@@ -653,9 +657,15 @@ declare class ToolManager {
|
|
|
653
657
|
}
|
|
654
658
|
//#endregion
|
|
655
659
|
//#region src/services/ncp-session-api.service.d.ts
|
|
660
|
+
type NcpAgentSessionReadableStore = AgentSessionStore & {
|
|
661
|
+
listSessionSummaries?: () => Promise<NcpSessionSummary[]>;
|
|
662
|
+
listSessionMessages?: (sessionId: string) => Promise<NcpMessage[]>;
|
|
663
|
+
};
|
|
656
664
|
type NcpSessionApiServiceOptions = {
|
|
657
665
|
eventBus: EventBus;
|
|
658
666
|
getConfig: () => Config;
|
|
667
|
+
isLiveSessionRunning?: (sessionId: string) => boolean;
|
|
668
|
+
ncpAgentSessionStore?: NcpAgentSessionReadableStore;
|
|
659
669
|
sessionManager: SessionManager;
|
|
660
670
|
};
|
|
661
671
|
declare class NcpSessionApiService implements NcpSessionApi {
|
|
@@ -671,6 +681,7 @@ declare class NcpSessionApiService implements NcpSessionApi {
|
|
|
671
681
|
getSession: (sessionId: string) => Promise<NcpSessionSummary | null>;
|
|
672
682
|
updateSession: (sessionId: string, patch: NcpSessionPatch) => Promise<NcpSessionSummary | null>;
|
|
673
683
|
deleteSession: (sessionId: string) => Promise<void>;
|
|
684
|
+
private withLiveSessionStatus;
|
|
674
685
|
}
|
|
675
686
|
//#endregion
|
|
676
687
|
//#region src/app/nextclaw-kernel.d.ts
|
|
@@ -713,7 +724,8 @@ declare class NextclawKernel {
|
|
|
713
724
|
readonly learningLoop: LearningLoopManager;
|
|
714
725
|
private readonly sessionLifecycleEvents;
|
|
715
726
|
private readonly ncpAgentSessionStore;
|
|
716
|
-
private
|
|
727
|
+
private readonly ncpAgentSessionJournalStore;
|
|
728
|
+
private readonly contributions;
|
|
717
729
|
constructor(options?: NextclawKernelOptions);
|
|
718
730
|
start: () => Promise<void>;
|
|
719
731
|
dispose: () => Promise<void>;
|
|
@@ -952,6 +964,7 @@ declare function createNcpSessionSummary(params: {
|
|
|
952
964
|
sessionId: string;
|
|
953
965
|
agentId?: string;
|
|
954
966
|
messages: readonly NcpMessage[];
|
|
967
|
+
createdAt: string;
|
|
955
968
|
updatedAt: string;
|
|
956
969
|
status: NcpSessionStatus;
|
|
957
970
|
metadata?: Record<string, unknown>;
|