@indexnetwork/protocol 66.0.0-rc.615.1 → 66.0.0-rc.619.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities/intents.d.ts +5 -5
- package/dist/internal/intents/graph/intent.graph.d.ts +5 -5
- package/dist/internal/intents/graph/intent.graph.execute.js +2 -2
- package/dist/internal/intents/graph/intent.graph.reconcile.d.ts +1 -1
- package/dist/internal/intents/graph/intent.graph.state.d.ts +3 -3
- package/dist/platform/database/entities.d.ts +6 -6
- package/dist/platform/database/identity-queries.d.ts +3 -3
- package/dist/platform/runtime/follow-up.d.ts +1 -1
- package/package.json +1 -1
|
@@ -71,7 +71,7 @@ export declare class Intents {
|
|
|
71
71
|
conversationContext: import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined;
|
|
72
72
|
targetIntentIds: string[] | undefined;
|
|
73
73
|
archive: boolean;
|
|
74
|
-
status: "
|
|
74
|
+
status: "active" | "paused" | undefined;
|
|
75
75
|
expectedIntentFingerprint: string | undefined;
|
|
76
76
|
networkId: string | undefined;
|
|
77
77
|
networkIds: string[] | undefined;
|
|
@@ -121,7 +121,7 @@ export declare class Intents {
|
|
|
121
121
|
conversationContext?: import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined;
|
|
122
122
|
targetIntentIds?: string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined;
|
|
123
123
|
archive?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
124
|
-
status?: "
|
|
124
|
+
status?: "active" | "paused" | import("@langchain/langgraph").OverwriteValue<"active" | "paused" | undefined> | undefined;
|
|
125
125
|
expectedIntentFingerprint?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
126
126
|
networkId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
127
127
|
networkIds?: string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined;
|
|
@@ -212,7 +212,7 @@ export declare class Intents {
|
|
|
212
212
|
conversationContext: import("@langchain/langgraph").BaseChannel<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined, import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined, unknown>;
|
|
213
213
|
targetIntentIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
214
214
|
archive: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
215
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
215
|
+
status: import("@langchain/langgraph").BaseChannel<"active" | "paused" | undefined, "active" | "paused" | import("@langchain/langgraph").OverwriteValue<"active" | "paused" | undefined> | undefined, unknown>;
|
|
216
216
|
expectedIntentFingerprint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
217
217
|
networkId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
218
218
|
networkIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
@@ -324,7 +324,7 @@ export declare class Intents {
|
|
|
324
324
|
conversationContext: import("@langchain/langgraph").BaseChannel<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined, import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined, unknown>;
|
|
325
325
|
targetIntentIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
326
326
|
archive: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
327
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
327
|
+
status: import("@langchain/langgraph").BaseChannel<"active" | "paused" | undefined, "active" | "paused" | import("@langchain/langgraph").OverwriteValue<"active" | "paused" | undefined> | undefined, unknown>;
|
|
328
328
|
expectedIntentFingerprint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
329
329
|
networkId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
330
330
|
networkIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
@@ -543,7 +543,7 @@ export declare class Intents {
|
|
|
543
543
|
actions: {
|
|
544
544
|
type: "transition";
|
|
545
545
|
id: string;
|
|
546
|
-
status: "
|
|
546
|
+
status: "active" | "paused";
|
|
547
547
|
}[];
|
|
548
548
|
agentTimings: import("../index.js").DebugMetaAgent[];
|
|
549
549
|
trace: {
|
|
@@ -29,7 +29,7 @@ export declare class IntentGraphFactory {
|
|
|
29
29
|
conversationContext: import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined;
|
|
30
30
|
targetIntentIds: string[] | undefined;
|
|
31
31
|
archive: boolean;
|
|
32
|
-
status: "
|
|
32
|
+
status: "active" | "paused" | undefined;
|
|
33
33
|
expectedIntentFingerprint: string | undefined;
|
|
34
34
|
networkId: string | undefined;
|
|
35
35
|
networkIds: string[] | undefined;
|
|
@@ -79,7 +79,7 @@ export declare class IntentGraphFactory {
|
|
|
79
79
|
conversationContext?: import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined;
|
|
80
80
|
targetIntentIds?: string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined;
|
|
81
81
|
archive?: boolean | import("@langchain/langgraph").OverwriteValue<boolean> | undefined;
|
|
82
|
-
status?: "
|
|
82
|
+
status?: "active" | "paused" | import("@langchain/langgraph").OverwriteValue<"active" | "paused" | undefined> | undefined;
|
|
83
83
|
expectedIntentFingerprint?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
84
84
|
networkId?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
85
85
|
networkIds?: string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined;
|
|
@@ -170,7 +170,7 @@ export declare class IntentGraphFactory {
|
|
|
170
170
|
conversationContext: import("@langchain/langgraph").BaseChannel<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined, import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined, unknown>;
|
|
171
171
|
targetIntentIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
172
172
|
archive: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
173
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
173
|
+
status: import("@langchain/langgraph").BaseChannel<"active" | "paused" | undefined, "active" | "paused" | import("@langchain/langgraph").OverwriteValue<"active" | "paused" | undefined> | undefined, unknown>;
|
|
174
174
|
expectedIntentFingerprint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
175
175
|
networkId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
176
176
|
networkIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
@@ -282,7 +282,7 @@ export declare class IntentGraphFactory {
|
|
|
282
282
|
conversationContext: import("@langchain/langgraph").BaseChannel<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined, import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | import("@langchain/langgraph").OverwriteValue<import("@langchain/core/messages").BaseMessage<import("@langchain/core/messages").MessageStructure<import("@langchain/core/messages").MessageToolSet>, import("@langchain/core/messages").MessageType>[] | undefined> | undefined, unknown>;
|
|
283
283
|
targetIntentIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
284
284
|
archive: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
285
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
285
|
+
status: import("@langchain/langgraph").BaseChannel<"active" | "paused" | undefined, "active" | "paused" | import("@langchain/langgraph").OverwriteValue<"active" | "paused" | undefined> | undefined, unknown>;
|
|
286
286
|
expectedIntentFingerprint: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
287
287
|
networkId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
288
288
|
networkIds: import("@langchain/langgraph").BaseChannel<string[] | undefined, string[] | import("@langchain/langgraph").OverwriteValue<string[] | undefined> | undefined, unknown>;
|
|
@@ -501,7 +501,7 @@ export declare class IntentGraphFactory {
|
|
|
501
501
|
actions: {
|
|
502
502
|
type: "transition";
|
|
503
503
|
id: string;
|
|
504
|
-
status: "
|
|
504
|
+
status: "active" | "paused";
|
|
505
505
|
}[];
|
|
506
506
|
agentTimings: import("../../../index.js").DebugMetaAgent[];
|
|
507
507
|
trace: {
|
|
@@ -147,7 +147,7 @@ export async function executorNode(state, deps) {
|
|
|
147
147
|
networkScopeId,
|
|
148
148
|
});
|
|
149
149
|
let outcome;
|
|
150
|
-
if (dbResult.kind !== 'success' || dbResult.status === '
|
|
150
|
+
if (dbResult.kind !== 'success' || dbResult.status === 'paused') {
|
|
151
151
|
outcome = dbResult;
|
|
152
152
|
}
|
|
153
153
|
else {
|
|
@@ -189,7 +189,7 @@ export async function executorNode(state, deps) {
|
|
|
189
189
|
outcome = {
|
|
190
190
|
kind: 'enqueue_failed',
|
|
191
191
|
id: dbResult.id,
|
|
192
|
-
status:
|
|
192
|
+
status: authoritative?.status ?? dbResult.status,
|
|
193
193
|
lifecycleVersionMs: authoritative?.lifecycleVersionMs ?? dbResult.lifecycleVersionMs,
|
|
194
194
|
};
|
|
195
195
|
}
|
|
@@ -43,7 +43,7 @@ export interface ExecutionResult {
|
|
|
43
43
|
export interface TransitionIntentAction {
|
|
44
44
|
type: 'transition';
|
|
45
45
|
id: string;
|
|
46
|
-
status: '
|
|
46
|
+
status: 'active' | 'paused';
|
|
47
47
|
}
|
|
48
48
|
/** Every action kind the executor can carry out. */
|
|
49
49
|
export type IntentGraphAction = {
|
|
@@ -66,7 +66,7 @@ export type IntentGraphAction = {
|
|
|
66
66
|
export type TransitionOutcome = {
|
|
67
67
|
kind: 'success';
|
|
68
68
|
id: string;
|
|
69
|
-
status: '
|
|
69
|
+
status: 'active' | 'paused';
|
|
70
70
|
changed: boolean;
|
|
71
71
|
lifecycleVersionMs: number;
|
|
72
72
|
} | {
|
|
@@ -148,7 +148,7 @@ export declare const IntentGraphState: import("@langchain/langgraph").Annotation
|
|
|
148
148
|
/** Archive route: expire every id in `targetIntentIds`. Requires `targetIntentIds`. */
|
|
149
149
|
archive: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
150
150
|
/** Transition route: pause/resume the single id in `targetIntentIds`. Requires `targetIntentIds`. */
|
|
151
|
-
status: import("@langchain/langgraph").BaseChannel<"
|
|
151
|
+
status: import("@langchain/langgraph").BaseChannel<"active" | "paused" | undefined, "active" | "paused" | import("@langchain/langgraph").OverwriteValue<"active" | "paused" | undefined> | undefined, unknown>;
|
|
152
152
|
/**
|
|
153
153
|
* Optional material compare-and-set guard used only by recovery-answer
|
|
154
154
|
* updates. The database rechecks it while holding the final intent row lock.
|
|
@@ -248,8 +248,8 @@ export interface IntentRecord extends CreatedIntent {
|
|
|
248
248
|
sourceType?: string | null;
|
|
249
249
|
/** Source ID for provenance */
|
|
250
250
|
sourceId?: string | null;
|
|
251
|
-
/** Lifecycle admission state; null is a legacy
|
|
252
|
-
status?: '
|
|
251
|
+
/** Lifecycle admission state; null is a legacy active row. */
|
|
252
|
+
status?: 'active' | 'paused' | null;
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
255
|
* Intent with similarity score from vector search.
|
|
@@ -267,15 +267,15 @@ export interface ArchiveResult {
|
|
|
267
267
|
/** Error message if failed */
|
|
268
268
|
error?: string;
|
|
269
269
|
}
|
|
270
|
-
/** An intent's admission lifecycle status; null/legacy rows are
|
|
271
|
-
export type IntentLifecycleStatus = '
|
|
270
|
+
/** An intent's admission lifecycle status; null/legacy rows are active. */
|
|
271
|
+
export type IntentLifecycleStatus = 'active' | 'paused';
|
|
272
272
|
/**
|
|
273
|
-
* Result of an atomic
|
|
273
|
+
* Result of an atomic active/paused lifecycle transition.
|
|
274
274
|
*/
|
|
275
275
|
export type TransitionLifecycleResult = {
|
|
276
276
|
kind: 'success';
|
|
277
277
|
id: string;
|
|
278
|
-
status: '
|
|
278
|
+
status: 'active' | 'paused';
|
|
279
279
|
changed: boolean;
|
|
280
280
|
lifecycleVersionMs: number;
|
|
281
281
|
} | {
|
|
@@ -130,7 +130,7 @@ export interface DatabaseIdentityQueries {
|
|
|
130
130
|
*/
|
|
131
131
|
archiveIntent(intentId: string): Promise<ArchiveResult>;
|
|
132
132
|
/**
|
|
133
|
-
* Atomically transition an owned intent between
|
|
133
|
+
* Atomically transition an owned intent between active and paused.
|
|
134
134
|
* Terminal/archived intents and out-of-scope requests are rejected.
|
|
135
135
|
* Idempotent: re-requesting the current status reports `changed: false`.
|
|
136
136
|
*
|
|
@@ -139,11 +139,11 @@ export interface DatabaseIdentityQueries {
|
|
|
139
139
|
transitionIntentLifecycle(input: {
|
|
140
140
|
intentId: string;
|
|
141
141
|
userId: string;
|
|
142
|
-
status: '
|
|
142
|
+
status: 'active' | 'paused';
|
|
143
143
|
networkScopeId?: string | null;
|
|
144
144
|
}): Promise<TransitionLifecycleResult>;
|
|
145
145
|
/**
|
|
146
|
-
* Compare-and-set a resume back to
|
|
146
|
+
* Compare-and-set a resume back to paused when its discovery-enqueue
|
|
147
147
|
* acknowledgement failed. A concurrent lifecycle write is never overwritten.
|
|
148
148
|
*/
|
|
149
149
|
compensateFailedResume(input: {
|
|
@@ -27,7 +27,7 @@ export interface IntentFollowUp {
|
|
|
27
27
|
onIntentArchived(data: {
|
|
28
28
|
intentId: string;
|
|
29
29
|
}): Promise<unknown>;
|
|
30
|
-
/** Start discovery for an intent resumed from
|
|
30
|
+
/** Start discovery for an intent resumed from paused back to active. */
|
|
31
31
|
onIntentResumed(data: {
|
|
32
32
|
intentId: string;
|
|
33
33
|
userId: string;
|