@indexnetwork/protocol 5.4.0-rc.374.1 → 6.1.0-rc.376.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/CHANGELOG.md +1 -0
- package/dist/index.d.ts +50 -121
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -55
- package/dist/index.js.map +1 -1
- package/dist/intent/intent.graph.d.ts +19 -19
- package/dist/intent/intent.indexer.d.ts +3 -3
- package/dist/intent/intent.inferrer.d.ts +8 -8
- package/dist/intent/intent.reconciler.d.ts +11 -11
- package/dist/intent/intent.state.d.ts +4 -4
- package/dist/intent/intent.verifier.d.ts +6 -6
- package/dist/negotiation/negotiation.agent.d.ts +10 -0
- package/dist/negotiation/negotiation.agent.d.ts.map +1 -1
- package/dist/negotiation/negotiation.agent.js +11 -1
- package/dist/negotiation/negotiation.agent.js.map +1 -1
- package/dist/negotiation/negotiation.deadlock.d.ts +96 -0
- package/dist/negotiation/negotiation.deadlock.d.ts.map +1 -0
- package/dist/negotiation/negotiation.deadlock.js +103 -0
- package/dist/negotiation/negotiation.deadlock.js.map +1 -0
- package/dist/negotiation/negotiation.graph.d.ts +7 -1
- package/dist/negotiation/negotiation.graph.d.ts.map +1 -1
- package/dist/negotiation/negotiation.graph.js +67 -0
- package/dist/negotiation/negotiation.graph.js.map +1 -1
- package/dist/negotiation/negotiation.state.d.ts +9 -0
- package/dist/negotiation/negotiation.state.d.ts.map +1 -1
- package/dist/negotiation/negotiation.state.js +11 -0
- package/dist/negotiation/negotiation.state.js.map +1 -1
- package/dist/network/indexer/indexer.graph.d.ts +15 -15
- package/dist/network/indexer/indexer.state.d.ts +4 -4
- package/dist/network/membership/membership.graph.d.ts +4 -4
- package/dist/network/membership/membership.state.d.ts +1 -1
- package/dist/network/network.graph.d.ts +4 -4
- package/dist/network/network.state.d.ts +1 -1
- package/dist/opportunity/discriminator/discriminator.assigner.d.ts +4 -4
- package/dist/opportunity/opportunity.evaluator.d.ts +9 -9
- package/dist/opportunity/opportunity.graph.d.ts +6 -6
- package/dist/opportunity/opportunity.state.d.ts +1 -1
- package/dist/premise/premise.analyzer.d.ts +2 -2
- package/dist/premise/premise.decomposer.d.ts +2 -2
- package/dist/premise/premise.indexer.d.ts +2 -2
- package/dist/shared/hyde/hyde.frame.d.ts +4 -4
- package/dist/shared/hyde/hyde.validator.d.ts +4 -4
- package/dist/shared/hyde/lens.inferrer.d.ts +6 -6
- package/dist/shared/interfaces/database.interface.d.ts +10 -0
- package/dist/shared/interfaces/database.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/database.interface.js.map +1 -1
- package/dist/shared/schemas/negotiation-digest.schema.d.ts +2 -2
- package/dist/shared/schemas/question.schema.d.ts +36 -36
- package/package.json +1 -1
|
@@ -15,11 +15,11 @@ export declare const QuestionOptionSchema: z.ZodObject<{
|
|
|
15
15
|
/** Explains the consequence of choosing this option, not just its definition. */
|
|
16
16
|
description: z.ZodString;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
description: string;
|
|
19
18
|
label: string;
|
|
20
|
-
}, {
|
|
21
19
|
description: string;
|
|
20
|
+
}, {
|
|
22
21
|
label: string;
|
|
22
|
+
description: string;
|
|
23
23
|
}>;
|
|
24
24
|
export declare const QuestionSchema: z.ZodObject<{
|
|
25
25
|
/** ≤12 chars. Noun of the decision domain — e.g. "Stage", "Timing", "Role". */
|
|
@@ -33,11 +33,11 @@ export declare const QuestionSchema: z.ZodObject<{
|
|
|
33
33
|
/** Explains the consequence of choosing this option, not just its definition. */
|
|
34
34
|
description: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
description: string;
|
|
37
36
|
label: string;
|
|
38
|
-
}, {
|
|
39
37
|
description: string;
|
|
38
|
+
}, {
|
|
40
39
|
label: string;
|
|
40
|
+
description: string;
|
|
41
41
|
}>, "many">;
|
|
42
42
|
/** True when options are not mutually exclusive (priorities, bundles). */
|
|
43
43
|
multiSelect: z.ZodBoolean;
|
|
@@ -48,20 +48,20 @@ export declare const QuestionSchema: z.ZodObject<{
|
|
|
48
48
|
*/
|
|
49
49
|
evidence: z.ZodOptional<z.ZodString>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
prompt: string;
|
|
51
52
|
options: {
|
|
52
|
-
description: string;
|
|
53
53
|
label: string;
|
|
54
|
+
description: string;
|
|
54
55
|
}[];
|
|
55
|
-
prompt: string;
|
|
56
56
|
title: string;
|
|
57
57
|
multiSelect: boolean;
|
|
58
58
|
evidence?: string | undefined;
|
|
59
59
|
}, {
|
|
60
|
+
prompt: string;
|
|
60
61
|
options: {
|
|
61
|
-
description: string;
|
|
62
62
|
label: string;
|
|
63
|
+
description: string;
|
|
63
64
|
}[];
|
|
64
|
-
prompt: string;
|
|
65
65
|
title: string;
|
|
66
66
|
multiSelect: boolean;
|
|
67
67
|
evidence?: string | undefined;
|
|
@@ -81,11 +81,11 @@ export declare const QuestionWithStrategySchema: z.ZodObject<{
|
|
|
81
81
|
/** Explains the consequence of choosing this option, not just its definition. */
|
|
82
82
|
description: z.ZodString;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
description: string;
|
|
85
84
|
label: string;
|
|
86
|
-
}, {
|
|
87
85
|
description: string;
|
|
86
|
+
}, {
|
|
88
87
|
label: string;
|
|
88
|
+
description: string;
|
|
89
89
|
}>, "many">;
|
|
90
90
|
/** True when options are not mutually exclusive (priorities, bundles). */
|
|
91
91
|
multiSelect: z.ZodBoolean;
|
|
@@ -100,22 +100,22 @@ export declare const QuestionWithStrategySchema: z.ZodObject<{
|
|
|
100
100
|
/** QUD repair category, or null when the question is not an underspecification repair. */
|
|
101
101
|
underspecificationType: z.ZodNullable<z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
prompt: string;
|
|
103
104
|
options: {
|
|
104
|
-
description: string;
|
|
105
105
|
label: string;
|
|
106
|
+
description: string;
|
|
106
107
|
}[];
|
|
107
|
-
prompt: string;
|
|
108
108
|
title: string;
|
|
109
109
|
multiSelect: boolean;
|
|
110
110
|
strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
|
|
111
111
|
underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
|
|
112
112
|
evidence?: string | undefined;
|
|
113
113
|
}, {
|
|
114
|
+
prompt: string;
|
|
114
115
|
options: {
|
|
115
|
-
description: string;
|
|
116
116
|
label: string;
|
|
117
|
+
description: string;
|
|
117
118
|
}[];
|
|
118
|
-
prompt: string;
|
|
119
119
|
title: string;
|
|
120
120
|
multiSelect: boolean;
|
|
121
121
|
strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
|
|
@@ -135,11 +135,11 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
|
|
|
135
135
|
/** Explains the consequence of choosing this option, not just its definition. */
|
|
136
136
|
description: z.ZodString;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
description: string;
|
|
139
138
|
label: string;
|
|
140
|
-
}, {
|
|
141
139
|
description: string;
|
|
140
|
+
}, {
|
|
142
141
|
label: string;
|
|
142
|
+
description: string;
|
|
143
143
|
}>, "many">;
|
|
144
144
|
/** True when options are not mutually exclusive (priorities, bundles). */
|
|
145
145
|
multiSelect: z.ZodBoolean;
|
|
@@ -154,22 +154,22 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
|
|
|
154
154
|
/** QUD repair category, or null when the question is not an underspecification repair. */
|
|
155
155
|
underspecificationType: z.ZodNullable<z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>>;
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
prompt: string;
|
|
157
158
|
options: {
|
|
158
|
-
description: string;
|
|
159
159
|
label: string;
|
|
160
|
+
description: string;
|
|
160
161
|
}[];
|
|
161
|
-
prompt: string;
|
|
162
162
|
title: string;
|
|
163
163
|
multiSelect: boolean;
|
|
164
164
|
strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
|
|
165
165
|
underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
|
|
166
166
|
evidence?: string | undefined;
|
|
167
167
|
}, {
|
|
168
|
+
prompt: string;
|
|
168
169
|
options: {
|
|
169
|
-
description: string;
|
|
170
170
|
label: string;
|
|
171
|
+
description: string;
|
|
171
172
|
}[];
|
|
172
|
-
prompt: string;
|
|
173
173
|
title: string;
|
|
174
174
|
multiSelect: boolean;
|
|
175
175
|
strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
|
|
@@ -178,11 +178,11 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
|
|
|
178
178
|
}>, "many">;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
questions: {
|
|
181
|
+
prompt: string;
|
|
181
182
|
options: {
|
|
182
|
-
description: string;
|
|
183
183
|
label: string;
|
|
184
|
+
description: string;
|
|
184
185
|
}[];
|
|
185
|
-
prompt: string;
|
|
186
186
|
title: string;
|
|
187
187
|
multiSelect: boolean;
|
|
188
188
|
strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
|
|
@@ -191,11 +191,11 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
|
|
|
191
191
|
}[];
|
|
192
192
|
}, {
|
|
193
193
|
questions: {
|
|
194
|
+
prompt: string;
|
|
194
195
|
options: {
|
|
195
|
-
description: string;
|
|
196
196
|
label: string;
|
|
197
|
+
description: string;
|
|
197
198
|
}[];
|
|
198
|
-
prompt: string;
|
|
199
199
|
title: string;
|
|
200
200
|
multiSelect: boolean;
|
|
201
201
|
strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
|
|
@@ -492,9 +492,9 @@ export declare const QuestionPoolPushSchema: z.ZodObject<{
|
|
|
492
492
|
failure: z.ZodOptional<z.ZodString>;
|
|
493
493
|
}, "strip", z.ZodTypeAny, {
|
|
494
494
|
source: "pool_discovery";
|
|
495
|
+
intentId: string;
|
|
495
496
|
version: 1;
|
|
496
497
|
recipientId: string;
|
|
497
|
-
intentId: string;
|
|
498
498
|
cycleKey: string;
|
|
499
499
|
messageId: string;
|
|
500
500
|
surfaces: ["personal_agent_badge", "negotiator_dm"];
|
|
@@ -506,9 +506,9 @@ export declare const QuestionPoolPushSchema: z.ZodObject<{
|
|
|
506
506
|
failure?: string | undefined;
|
|
507
507
|
}, {
|
|
508
508
|
source: "pool_discovery";
|
|
509
|
+
intentId: string;
|
|
509
510
|
version: 1;
|
|
510
511
|
recipientId: string;
|
|
511
|
-
intentId: string;
|
|
512
512
|
cycleKey: string;
|
|
513
513
|
messageId: string;
|
|
514
514
|
surfaces: ["personal_agent_badge", "negotiator_dm"];
|
|
@@ -760,9 +760,9 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
760
760
|
failure: z.ZodOptional<z.ZodString>;
|
|
761
761
|
}, "strip", z.ZodTypeAny, {
|
|
762
762
|
source: "pool_discovery";
|
|
763
|
+
intentId: string;
|
|
763
764
|
version: 1;
|
|
764
765
|
recipientId: string;
|
|
765
|
-
intentId: string;
|
|
766
766
|
cycleKey: string;
|
|
767
767
|
messageId: string;
|
|
768
768
|
surfaces: ["personal_agent_badge", "negotiator_dm"];
|
|
@@ -774,9 +774,9 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
774
774
|
failure?: string | undefined;
|
|
775
775
|
}, {
|
|
776
776
|
source: "pool_discovery";
|
|
777
|
+
intentId: string;
|
|
777
778
|
version: 1;
|
|
778
779
|
recipientId: string;
|
|
779
|
-
intentId: string;
|
|
780
780
|
cycleKey: string;
|
|
781
781
|
messageId: string;
|
|
782
782
|
surfaces: ["personal_agent_badge", "negotiator_dm"];
|
|
@@ -792,15 +792,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
792
792
|
/** Authoritative successful-delivery ledger timestamp. Internal only. */
|
|
793
793
|
pushedAt: z.ZodOptional<z.ZodString>;
|
|
794
794
|
}, "strip", z.ZodTypeAny, {
|
|
795
|
-
mode: "
|
|
795
|
+
mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
|
|
796
796
|
sourceType: string;
|
|
797
797
|
sourceId: string;
|
|
798
798
|
timestamp: string;
|
|
799
799
|
push?: {
|
|
800
800
|
source: "pool_discovery";
|
|
801
|
+
intentId: string;
|
|
801
802
|
version: 1;
|
|
802
803
|
recipientId: string;
|
|
803
|
-
intentId: string;
|
|
804
804
|
cycleKey: string;
|
|
805
805
|
messageId: string;
|
|
806
806
|
surfaces: ["personal_agent_badge", "negotiator_dm"];
|
|
@@ -860,15 +860,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
860
860
|
voidedReason?: "pool_drift" | "intent_edit" | undefined;
|
|
861
861
|
pushedAt?: string | undefined;
|
|
862
862
|
}, {
|
|
863
|
-
mode: "
|
|
863
|
+
mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
|
|
864
864
|
sourceType: string;
|
|
865
865
|
sourceId: string;
|
|
866
866
|
timestamp: string;
|
|
867
867
|
push?: {
|
|
868
868
|
source: "pool_discovery";
|
|
869
|
+
intentId: string;
|
|
869
870
|
version: 1;
|
|
870
871
|
recipientId: string;
|
|
871
|
-
intentId: string;
|
|
872
872
|
cycleKey: string;
|
|
873
873
|
messageId: string;
|
|
874
874
|
surfaces: ["personal_agent_badge", "negotiator_dm"];
|
|
@@ -928,15 +928,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
928
928
|
voidedReason?: "pool_drift" | "intent_edit" | undefined;
|
|
929
929
|
pushedAt?: string | undefined;
|
|
930
930
|
}>, {
|
|
931
|
-
mode: "
|
|
931
|
+
mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
|
|
932
932
|
sourceType: string;
|
|
933
933
|
sourceId: string;
|
|
934
934
|
timestamp: string;
|
|
935
935
|
push?: {
|
|
936
936
|
source: "pool_discovery";
|
|
937
|
+
intentId: string;
|
|
937
938
|
version: 1;
|
|
938
939
|
recipientId: string;
|
|
939
|
-
intentId: string;
|
|
940
940
|
cycleKey: string;
|
|
941
941
|
messageId: string;
|
|
942
942
|
surfaces: ["personal_agent_badge", "negotiator_dm"];
|
|
@@ -996,15 +996,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
996
996
|
voidedReason?: "pool_drift" | "intent_edit" | undefined;
|
|
997
997
|
pushedAt?: string | undefined;
|
|
998
998
|
}, {
|
|
999
|
-
mode: "
|
|
999
|
+
mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
|
|
1000
1000
|
sourceType: string;
|
|
1001
1001
|
sourceId: string;
|
|
1002
1002
|
timestamp: string;
|
|
1003
1003
|
push?: {
|
|
1004
1004
|
source: "pool_discovery";
|
|
1005
|
+
intentId: string;
|
|
1005
1006
|
version: 1;
|
|
1006
1007
|
recipientId: string;
|
|
1007
|
-
intentId: string;
|
|
1008
1008
|
cycleKey: string;
|
|
1009
1009
|
messageId: string;
|
|
1010
1010
|
surfaces: ["personal_agent_badge", "negotiator_dm"];
|