@indexnetwork/protocol 6.6.2-rc.388.1 → 6.6.4-rc.390.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 +2 -0
- package/dist/negotiation/negotiation.graph.d.ts +8 -2
- package/dist/negotiation/negotiation.graph.d.ts.map +1 -1
- package/dist/negotiation/negotiation.graph.js +19 -4
- package/dist/negotiation/negotiation.graph.js.map +1 -1
- package/dist/negotiation/negotiation.state.d.ts +5 -3
- package/dist/negotiation/negotiation.state.d.ts.map +1 -1
- package/dist/negotiation/negotiation.state.js +5 -1
- package/dist/negotiation/negotiation.state.js.map +1 -1
- package/dist/opportunity/opportunity.enricher.d.ts +5 -0
- package/dist/opportunity/opportunity.enricher.d.ts.map +1 -1
- package/dist/opportunity/opportunity.enricher.js +17 -1
- package/dist/opportunity/opportunity.enricher.js.map +1 -1
- package/dist/opportunity/opportunity.graph.d.ts +109 -247
- package/dist/opportunity/opportunity.graph.d.ts.map +1 -1
- package/dist/opportunity/opportunity.graph.js +199 -4
- package/dist/opportunity/opportunity.graph.js.map +1 -1
- package/dist/opportunity/opportunity.persist.d.ts +14 -1
- package/dist/opportunity/opportunity.persist.d.ts.map +1 -1
- package/dist/opportunity/opportunity.persist.js +33 -4
- package/dist/opportunity/opportunity.persist.js.map +1 -1
- package/dist/opportunity/opportunity.state.d.ts +17 -0
- package/dist/opportunity/opportunity.state.d.ts.map +1 -1
- package/dist/opportunity/opportunity.state.js +5 -0
- package/dist/opportunity/opportunity.state.js.map +1 -1
- package/dist/shared/interfaces/database.interface.d.ts +29 -5
- package/dist/shared/interfaces/database.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/database.interface.js.map +1 -1
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ export type OpportunityEvaluatorLike = {
|
|
|
41
41
|
}>>;
|
|
42
42
|
};
|
|
43
43
|
import type { Embedder } from '../shared/interfaces/embedder.interface.js';
|
|
44
|
-
import type { CreateOpportunityData, Opportunity } from '../shared/interfaces/database.interface.js';
|
|
44
|
+
import type { CreateOpportunityData, Opportunity, OpportunityStatus } from '../shared/interfaces/database.interface.js';
|
|
45
45
|
import type { NegotiationGraphLike, UserNegotiationContext } from "../negotiation/negotiation.state.js";
|
|
46
46
|
import type { AgentDispatcher } from "../shared/interfaces/agent-dispatcher.interface.js";
|
|
47
47
|
interface NegotiationIntentSource {
|
|
@@ -185,8 +185,11 @@ export declare class OpportunityGraphFactory {
|
|
|
185
185
|
candidateUserId: Id<"users">;
|
|
186
186
|
networkId: Id<"networks">;
|
|
187
187
|
existingOpportunityId?: Id<"opportunities">;
|
|
188
|
-
existingStatus?:
|
|
188
|
+
existingStatus?: OpportunityStatus;
|
|
189
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
190
|
+
existingTriggerIntentId?: string;
|
|
189
191
|
}[];
|
|
192
|
+
persistenceOutcome: import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined;
|
|
190
193
|
error: string | undefined;
|
|
191
194
|
readResult: {
|
|
192
195
|
count: number;
|
|
@@ -308,13 +311,18 @@ export declare class OpportunityGraphFactory {
|
|
|
308
311
|
candidateUserId: Id<"users">;
|
|
309
312
|
networkId: Id<"networks">;
|
|
310
313
|
existingOpportunityId?: Id<"opportunities">;
|
|
311
|
-
existingStatus?:
|
|
314
|
+
existingStatus?: OpportunityStatus;
|
|
315
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
316
|
+
existingTriggerIntentId?: string;
|
|
312
317
|
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
313
318
|
candidateUserId: Id<"users">;
|
|
314
319
|
networkId: Id<"networks">;
|
|
315
320
|
existingOpportunityId?: Id<"opportunities">;
|
|
316
|
-
existingStatus?:
|
|
321
|
+
existingStatus?: OpportunityStatus;
|
|
322
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
323
|
+
existingTriggerIntentId?: string;
|
|
317
324
|
}[]> | undefined;
|
|
325
|
+
persistenceOutcome?: import("./opportunity.state.js").OpportunityPersistenceOutcome | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined> | undefined;
|
|
318
326
|
error?: string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined;
|
|
319
327
|
readResult?: {
|
|
320
328
|
count: number;
|
|
@@ -496,18 +504,25 @@ export declare class OpportunityGraphFactory {
|
|
|
496
504
|
candidateUserId: Id<"users">;
|
|
497
505
|
networkId: Id<"networks">;
|
|
498
506
|
existingOpportunityId?: Id<"opportunities">;
|
|
499
|
-
existingStatus?:
|
|
507
|
+
existingStatus?: OpportunityStatus;
|
|
508
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
509
|
+
existingTriggerIntentId?: string;
|
|
500
510
|
}[], {
|
|
501
511
|
candidateUserId: Id<"users">;
|
|
502
512
|
networkId: Id<"networks">;
|
|
503
513
|
existingOpportunityId?: Id<"opportunities">;
|
|
504
|
-
existingStatus?:
|
|
514
|
+
existingStatus?: OpportunityStatus;
|
|
515
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
516
|
+
existingTriggerIntentId?: string;
|
|
505
517
|
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
506
518
|
candidateUserId: Id<"users">;
|
|
507
519
|
networkId: Id<"networks">;
|
|
508
520
|
existingOpportunityId?: Id<"opportunities">;
|
|
509
|
-
existingStatus?:
|
|
521
|
+
existingStatus?: OpportunityStatus;
|
|
522
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
523
|
+
existingTriggerIntentId?: string;
|
|
510
524
|
}[]>, unknown>;
|
|
525
|
+
persistenceOutcome: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined, import("./opportunity.state.js").OpportunityPersistenceOutcome | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined> | undefined, unknown>;
|
|
511
526
|
error: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
512
527
|
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
513
528
|
count: number;
|
|
@@ -736,18 +751,25 @@ export declare class OpportunityGraphFactory {
|
|
|
736
751
|
candidateUserId: Id<"users">;
|
|
737
752
|
networkId: Id<"networks">;
|
|
738
753
|
existingOpportunityId?: Id<"opportunities">;
|
|
739
|
-
existingStatus?:
|
|
754
|
+
existingStatus?: OpportunityStatus;
|
|
755
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
756
|
+
existingTriggerIntentId?: string;
|
|
740
757
|
}[], {
|
|
741
758
|
candidateUserId: Id<"users">;
|
|
742
759
|
networkId: Id<"networks">;
|
|
743
760
|
existingOpportunityId?: Id<"opportunities">;
|
|
744
|
-
existingStatus?:
|
|
761
|
+
existingStatus?: OpportunityStatus;
|
|
762
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
763
|
+
existingTriggerIntentId?: string;
|
|
745
764
|
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
746
765
|
candidateUserId: Id<"users">;
|
|
747
766
|
networkId: Id<"networks">;
|
|
748
767
|
existingOpportunityId?: Id<"opportunities">;
|
|
749
|
-
existingStatus?:
|
|
768
|
+
existingStatus?: OpportunityStatus;
|
|
769
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
770
|
+
existingTriggerIntentId?: string;
|
|
750
771
|
}[]>, unknown>;
|
|
772
|
+
persistenceOutcome: import("@langchain/langgraph").BaseChannel<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined, import("./opportunity.state.js").OpportunityPersistenceOutcome | import("@langchain/langgraph").OverwriteValue<import("./opportunity.state.js").OpportunityPersistenceOutcome | undefined> | undefined, unknown>;
|
|
751
773
|
error: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
752
774
|
readResult: import("@langchain/langgraph").BaseChannel<{
|
|
753
775
|
count: number;
|
|
@@ -1158,7 +1180,7 @@ export declare class OpportunityGraphFactory {
|
|
|
1158
1180
|
createdByName: string | undefined;
|
|
1159
1181
|
};
|
|
1160
1182
|
options: {
|
|
1161
|
-
initialStatus:
|
|
1183
|
+
initialStatus: OpportunityStatus;
|
|
1162
1184
|
minScore?: number;
|
|
1163
1185
|
limit?: number;
|
|
1164
1186
|
lenses?: import("../shared/hyde/lens.inferrer.js").Lens[];
|
|
@@ -1182,7 +1204,7 @@ export declare class OpportunityGraphFactory {
|
|
|
1182
1204
|
createdByName: string | undefined;
|
|
1183
1205
|
};
|
|
1184
1206
|
options: {
|
|
1185
|
-
initialStatus:
|
|
1207
|
+
initialStatus: OpportunityStatus;
|
|
1186
1208
|
minScore?: number;
|
|
1187
1209
|
limit?: number;
|
|
1188
1210
|
lenses?: import("../shared/hyde/lens.inferrer.js").Lens[];
|
|
@@ -1195,247 +1217,87 @@ export declare class OpportunityGraphFactory {
|
|
|
1195
1217
|
error?: undefined;
|
|
1196
1218
|
trace?: undefined;
|
|
1197
1219
|
};
|
|
1198
|
-
persist:
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
createdByName?: string;
|
|
1224
|
-
} | undefined, {
|
|
1225
|
-
createdByName?: string;
|
|
1226
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
1227
|
-
createdByName?: string;
|
|
1228
|
-
} | undefined> | undefined, unknown>;
|
|
1229
|
-
opportunityId: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
1230
|
-
newStatus: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
1231
|
-
indexedIntents: import("@langchain/langgraph").BaseChannel<IndexedIntent[], IndexedIntent[] | import("@langchain/langgraph").OverwriteValue<IndexedIntent[]>, unknown>;
|
|
1232
|
-
userNetworks: import("@langchain/langgraph").BaseChannel<Id<"networks">[], Id<"networks">[] | import("@langchain/langgraph").OverwriteValue<Id<"networks">[]>, unknown>;
|
|
1233
|
-
targetNetworks: import("@langchain/langgraph").BaseChannel<TargetNetwork[], TargetNetwork[] | import("@langchain/langgraph").OverwriteValue<TargetNetwork[]>, unknown>;
|
|
1234
|
-
indexRelevancyScores: import("@langchain/langgraph").BaseChannel<Record<string, number>, Record<string, number> | import("@langchain/langgraph").OverwriteValue<Record<string, number>>, unknown>;
|
|
1235
|
-
discoverySource: import("@langchain/langgraph").BaseChannel<"intent" | "context", "intent" | "context" | import("@langchain/langgraph").OverwriteValue<"intent" | "context">, unknown>;
|
|
1236
|
-
resolvedTriggerIntentId: import("@langchain/langgraph").BaseChannel<Id<"intents"> | undefined, Id<"intents"> | import("@langchain/langgraph").OverwriteValue<Id<"intents"> | undefined> | undefined, unknown>;
|
|
1237
|
-
sourceProfile: import("@langchain/langgraph").BaseChannel<SourceProfileData | null, SourceProfileData | import("@langchain/langgraph").OverwriteValue<SourceProfileData | null> | null, unknown>;
|
|
1238
|
-
sourcePremises: import("@langchain/langgraph").BaseChannel<{
|
|
1239
|
-
premiseId: Id<"premises">;
|
|
1240
|
-
embedding: number[];
|
|
1241
|
-
}[], {
|
|
1242
|
-
premiseId: Id<"premises">;
|
|
1243
|
-
embedding: number[];
|
|
1244
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1245
|
-
premiseId: Id<"premises">;
|
|
1246
|
-
embedding: number[];
|
|
1247
|
-
}[]>, unknown>;
|
|
1248
|
-
sourceContexts: import("@langchain/langgraph").BaseChannel<{
|
|
1249
|
-
contextId: string;
|
|
1250
|
-
networkId: Id<"networks">;
|
|
1251
|
-
text: string;
|
|
1252
|
-
embedding: number[];
|
|
1253
|
-
}[], {
|
|
1254
|
-
contextId: string;
|
|
1255
|
-
networkId: Id<"networks">;
|
|
1256
|
-
text: string;
|
|
1257
|
-
embedding: number[];
|
|
1258
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1259
|
-
contextId: string;
|
|
1260
|
-
networkId: Id<"networks">;
|
|
1261
|
-
text: string;
|
|
1262
|
-
embedding: number[];
|
|
1263
|
-
}[]>, unknown>;
|
|
1264
|
-
resolvedIntentInIndex: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
1265
|
-
createIntentSuggested: import("@langchain/langgraph").BaseChannel<boolean, boolean | import("@langchain/langgraph").OverwriteValue<boolean>, unknown>;
|
|
1266
|
-
suggestedIntentDescription: import("@langchain/langgraph").BaseChannel<string | undefined, string | import("@langchain/langgraph").OverwriteValue<string | undefined> | undefined, unknown>;
|
|
1267
|
-
hydeEmbeddings: import("@langchain/langgraph").BaseChannel<Record<string, number[]>, Record<string, number[]> | import("@langchain/langgraph").OverwriteValue<Record<string, number[]>>, unknown>;
|
|
1268
|
-
candidates: import("@langchain/langgraph").BaseChannel<CandidateMatch[], CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<CandidateMatch[]>, unknown>;
|
|
1269
|
-
remainingCandidates: import("@langchain/langgraph").BaseChannel<CandidateMatch[], CandidateMatch[] | import("@langchain/langgraph").OverwriteValue<CandidateMatch[]>, unknown>;
|
|
1270
|
-
discoveryId: import("@langchain/langgraph").BaseChannel<string | null, string | import("@langchain/langgraph").OverwriteValue<string | null> | null, unknown>;
|
|
1271
|
-
evaluatedCandidates: import("@langchain/langgraph").BaseChannel<EvaluatedCandidate[], EvaluatedCandidate[] | import("@langchain/langgraph").OverwriteValue<EvaluatedCandidate[]>, unknown>;
|
|
1272
|
-
evaluatedOpportunities: import("@langchain/langgraph").BaseChannel<EvaluatedOpportunity[], EvaluatedOpportunity[] | import("@langchain/langgraph").OverwriteValue<EvaluatedOpportunity[]>, unknown>;
|
|
1273
|
-
opportunities: import("@langchain/langgraph").BaseChannel<Opportunity[], Opportunity[] | import("@langchain/langgraph").OverwriteValue<Opportunity[]>, unknown>;
|
|
1274
|
-
existingBetweenActors: import("@langchain/langgraph").BaseChannel<{
|
|
1275
|
-
candidateUserId: Id<"users">;
|
|
1276
|
-
networkId: Id<"networks">;
|
|
1277
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
1278
|
-
existingStatus?: import("../shared/interfaces/database.interface.js").OpportunityStatus;
|
|
1279
|
-
}[], {
|
|
1280
|
-
candidateUserId: Id<"users">;
|
|
1281
|
-
networkId: Id<"networks">;
|
|
1282
|
-
existingOpportunityId?: Id<"opportunities">;
|
|
1283
|
-
existingStatus?: import("../shared/interfaces/database.interface.js").OpportunityStatus;
|
|
1284
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1220
|
+
persist: {
|
|
1221
|
+
opportunities: never[];
|
|
1222
|
+
persistenceOutcome: {
|
|
1223
|
+
evaluatedCount: number;
|
|
1224
|
+
createdCount: number;
|
|
1225
|
+
reactivatedCount: number;
|
|
1226
|
+
sameTriggerDuplicateSuppressions: number;
|
|
1227
|
+
pairActiveNegotiationSuppressions: number;
|
|
1228
|
+
crossTriggerAllowedCount: number;
|
|
1229
|
+
finalAtomicConflictCount: number;
|
|
1230
|
+
};
|
|
1231
|
+
existingBetweenActors?: undefined;
|
|
1232
|
+
dedupAlreadyAccepted?: undefined;
|
|
1233
|
+
trace?: undefined;
|
|
1234
|
+
error?: undefined;
|
|
1235
|
+
} | {
|
|
1236
|
+
opportunities: never[];
|
|
1237
|
+
persistenceOutcome?: undefined;
|
|
1238
|
+
existingBetweenActors?: undefined;
|
|
1239
|
+
dedupAlreadyAccepted?: undefined;
|
|
1240
|
+
trace?: undefined;
|
|
1241
|
+
error?: undefined;
|
|
1242
|
+
} | {
|
|
1243
|
+
opportunities: Opportunity[];
|
|
1244
|
+
existingBetweenActors: {
|
|
1285
1245
|
candidateUserId: Id<"users">;
|
|
1286
1246
|
networkId: Id<"networks">;
|
|
1287
1247
|
existingOpportunityId?: Id<"opportunities">;
|
|
1288
|
-
existingStatus?:
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
count: number;
|
|
1307
|
-
message?: string;
|
|
1308
|
-
opportunities: Array<{
|
|
1309
|
-
id: string;
|
|
1310
|
-
indexName: string;
|
|
1311
|
-
connectedWith: string[];
|
|
1312
|
-
suggestedBy: string | null;
|
|
1313
|
-
reasoning: string;
|
|
1314
|
-
status: string;
|
|
1315
|
-
category: string;
|
|
1316
|
-
confidence: number | null;
|
|
1317
|
-
source: string | null;
|
|
1318
|
-
}>;
|
|
1319
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
1320
|
-
count: number;
|
|
1321
|
-
message?: string;
|
|
1322
|
-
opportunities: Array<{
|
|
1323
|
-
id: string;
|
|
1324
|
-
indexName: string;
|
|
1325
|
-
connectedWith: string[];
|
|
1326
|
-
suggestedBy: string | null;
|
|
1327
|
-
reasoning: string;
|
|
1328
|
-
status: string;
|
|
1329
|
-
category: string;
|
|
1330
|
-
confidence: number | null;
|
|
1331
|
-
source: string | null;
|
|
1332
|
-
}>;
|
|
1333
|
-
} | undefined> | undefined, unknown>;
|
|
1334
|
-
mutationResult: import("@langchain/langgraph").BaseChannel<{
|
|
1335
|
-
success: boolean;
|
|
1336
|
-
message?: string;
|
|
1337
|
-
opportunityId?: string;
|
|
1338
|
-
notified?: string[];
|
|
1339
|
-
conversationId?: string;
|
|
1340
|
-
error?: string;
|
|
1341
|
-
} | undefined, {
|
|
1342
|
-
success: boolean;
|
|
1343
|
-
message?: string;
|
|
1344
|
-
opportunityId?: string;
|
|
1345
|
-
notified?: string[];
|
|
1346
|
-
conversationId?: string;
|
|
1347
|
-
error?: string;
|
|
1348
|
-
} | import("@langchain/langgraph").OverwriteValue<{
|
|
1349
|
-
success: boolean;
|
|
1350
|
-
message?: string;
|
|
1351
|
-
opportunityId?: string;
|
|
1352
|
-
notified?: string[];
|
|
1353
|
-
conversationId?: string;
|
|
1354
|
-
error?: string;
|
|
1355
|
-
} | undefined> | undefined, unknown>;
|
|
1356
|
-
trace: import("@langchain/langgraph").BaseChannel<{
|
|
1357
|
-
node: string;
|
|
1358
|
-
detail?: string;
|
|
1359
|
-
data?: Record<string, unknown>;
|
|
1360
|
-
}[], {
|
|
1361
|
-
node: string;
|
|
1362
|
-
detail?: string;
|
|
1363
|
-
data?: Record<string, unknown>;
|
|
1364
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1248
|
+
existingStatus?: OpportunityStatus;
|
|
1249
|
+
reason?: "same_trigger_recent_duplicate" | "pair_active_negotiation" | "final_atomic_conflict";
|
|
1250
|
+
existingTriggerIntentId?: string;
|
|
1251
|
+
}[];
|
|
1252
|
+
dedupAlreadyAccepted: {
|
|
1253
|
+
opportunityId: string;
|
|
1254
|
+
counterpartyUserId: string;
|
|
1255
|
+
}[];
|
|
1256
|
+
persistenceOutcome: {
|
|
1257
|
+
evaluatedCount: number;
|
|
1258
|
+
createdCount: number;
|
|
1259
|
+
reactivatedCount: number;
|
|
1260
|
+
sameTriggerDuplicateSuppressions: number;
|
|
1261
|
+
pairActiveNegotiationSuppressions: number;
|
|
1262
|
+
crossTriggerAllowedCount: number;
|
|
1263
|
+
finalAtomicConflictCount: number;
|
|
1264
|
+
};
|
|
1265
|
+
trace: {
|
|
1365
1266
|
node: string;
|
|
1366
|
-
detail
|
|
1367
|
-
data
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
indexContext: string;
|
|
1382
|
-
counterpartyId: string;
|
|
1383
|
-
turns: {
|
|
1384
|
-
reasoning: string;
|
|
1385
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1386
|
-
suggestedRoles: {
|
|
1387
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1388
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1267
|
+
detail: string;
|
|
1268
|
+
data: {
|
|
1269
|
+
created: number;
|
|
1270
|
+
reactivated: number;
|
|
1271
|
+
existingSkipped: number;
|
|
1272
|
+
alreadyAccepted: number;
|
|
1273
|
+
totalOutput: number;
|
|
1274
|
+
persistenceOutcome: {
|
|
1275
|
+
evaluatedCount: number;
|
|
1276
|
+
createdCount: number;
|
|
1277
|
+
reactivatedCount: number;
|
|
1278
|
+
sameTriggerDuplicateSuppressions: number;
|
|
1279
|
+
pairActiveNegotiationSuppressions: number;
|
|
1280
|
+
crossTriggerAllowedCount: number;
|
|
1281
|
+
finalAtomicConflictCount: number;
|
|
1389
1282
|
};
|
|
1390
|
-
|
|
1391
|
-
seedAssessmentScore?: number | undefined;
|
|
1392
|
-
}[], {
|
|
1393
|
-
outcome: {
|
|
1394
|
-
reasoning: string;
|
|
1395
|
-
hasOpportunity: boolean;
|
|
1396
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1397
|
-
agreedRoles?: {
|
|
1398
|
-
userId: string;
|
|
1399
|
-
role: "agent" | "patient" | "peer";
|
|
1400
|
-
}[] | undefined;
|
|
1283
|
+
durationMs: number;
|
|
1401
1284
|
};
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
seedAssessmentScore?: number | undefined;
|
|
1414
|
-
}[] | import("@langchain/langgraph").OverwriteValue<{
|
|
1415
|
-
outcome: {
|
|
1416
|
-
reasoning: string;
|
|
1417
|
-
hasOpportunity: boolean;
|
|
1418
|
-
reason?: "timeout" | "turn_cap" | "screened_out" | undefined;
|
|
1419
|
-
agreedRoles?: {
|
|
1420
|
-
userId: string;
|
|
1421
|
-
role: "agent" | "patient" | "peer";
|
|
1422
|
-
}[] | undefined;
|
|
1285
|
+
}[];
|
|
1286
|
+
error?: undefined;
|
|
1287
|
+
} | {
|
|
1288
|
+
opportunities: never[];
|
|
1289
|
+
existingBetweenActors: never[];
|
|
1290
|
+
error: string;
|
|
1291
|
+
trace: {
|
|
1292
|
+
node: string;
|
|
1293
|
+
detail: string;
|
|
1294
|
+
data: {
|
|
1295
|
+
error: string;
|
|
1423
1296
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
reasoning: string;
|
|
1429
|
-
action: "propose" | "accept" | "reject" | "counter" | "question" | "outreach" | "withdraw" | "decline" | "ask_user";
|
|
1430
|
-
suggestedRoles: {
|
|
1431
|
-
ownUser: "agent" | "patient" | "peer";
|
|
1432
|
-
otherUser: "agent" | "patient" | "peer";
|
|
1433
|
-
};
|
|
1434
|
-
}[];
|
|
1435
|
-
seedAssessmentScore?: number | undefined;
|
|
1436
|
-
}[]>, unknown>;
|
|
1437
|
-
discoverySummary: import("@langchain/langgraph").BaseChannel<import("../index.js").DiscoverySummary | null, import("../index.js").DiscoverySummary | import("@langchain/langgraph").OverwriteValue<import("../index.js").DiscoverySummary | null> | null, unknown>;
|
|
1438
|
-
}>;
|
|
1297
|
+
}[];
|
|
1298
|
+
persistenceOutcome?: undefined;
|
|
1299
|
+
dedupAlreadyAccepted?: undefined;
|
|
1300
|
+
};
|
|
1439
1301
|
read: {
|
|
1440
1302
|
readResult: {
|
|
1441
1303
|
count: number;
|
|
@@ -1446,7 +1308,7 @@ export declare class OpportunityGraphFactory {
|
|
|
1446
1308
|
connectedWith: string[];
|
|
1447
1309
|
suggestedBy: string | null;
|
|
1448
1310
|
reasoning: string;
|
|
1449
|
-
status:
|
|
1311
|
+
status: OpportunityStatus;
|
|
1450
1312
|
category: string;
|
|
1451
1313
|
confidence: number | null;
|
|
1452
1314
|
source: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opportunity.graph.d.ts","sourceRoot":"/","sources":["opportunity/opportunity.graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAyB,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExO,OAAO,EAAwB,KAAK,gBAAgB,EAAuC,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACzK,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAS3F,yDAAyD;AACzD,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,CACP,oBAAoB,E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