@graphrefly/graphrefly 0.46.0 → 0.47.0
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/base/composition/index.cjs +69 -15
- package/dist/base/composition/index.cjs.map +1 -1
- package/dist/base/composition/index.d.cts +1 -2
- package/dist/base/composition/index.d.ts +1 -2
- package/dist/base/composition/index.js +1 -1
- package/dist/base/index.cjs +69 -15
- package/dist/base/index.cjs.map +1 -1
- package/dist/base/index.d.cts +1 -2
- package/dist/base/index.d.ts +1 -2
- package/dist/base/index.js +1 -1
- package/dist/{chunk-WKSWLSCX.js → chunk-22SG74BD.js} +2 -2
- package/dist/{chunk-OO5BM6CJ.js → chunk-5IMMNARC.js} +2 -2
- package/dist/{chunk-KIIXR252.js → chunk-EHRRQ4IC.js} +2 -2
- package/dist/{chunk-HULCUY35.js → chunk-GWRNLJNW.js} +2 -2
- package/dist/{chunk-5THCXDWY.js → chunk-JKTC747G.js} +2 -2
- package/dist/{chunk-RGL53X5G.js → chunk-TNX5ZGDJ.js} +3 -3
- package/dist/{chunk-LBAJK24K.js → chunk-VLAGJZSL.js} +11 -3
- package/dist/chunk-VLAGJZSL.js.map +1 -0
- package/dist/chunk-Z65DVDEQ.js +146 -0
- package/dist/chunk-Z65DVDEQ.js.map +1 -0
- package/dist/{chunk-GBCENOLN.js → chunk-ZT4WMQW4.js} +3 -3
- package/dist/{chunk-FR6RGA3B.js → chunk-ZVXXDWIB.js} +19 -14
- package/dist/{chunk-FR6RGA3B.js.map → chunk-ZVXXDWIB.js.map} +1 -1
- package/dist/compat/index.cjs +156 -93
- package/dist/compat/index.cjs.map +1 -1
- package/dist/compat/index.d.cts +3 -3
- package/dist/compat/index.d.ts +3 -3
- package/dist/compat/index.js +2 -2
- package/dist/compat/nestjs/index.cjs +156 -93
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +4 -4
- package/dist/compat/nestjs/index.d.ts +4 -4
- package/dist/compat/nestjs/index.js +4 -5
- package/dist/{index-5SU_O78r.d.cts → index-B_p8tnvf.d.cts} +19 -3
- package/dist/{index-CEXCtYYJ.d.ts → index-_HDSmPyp.d.ts} +19 -3
- package/dist/index.cjs +77 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +9 -9
- package/dist/observable-B25XqCbZ.d.cts +59 -0
- package/dist/observable-B25XqCbZ.d.ts +59 -0
- package/dist/presets/ai/index.js +5 -5
- package/dist/presets/harness/index.js +7 -7
- package/dist/presets/index.js +8 -8
- package/dist/solutions/index.js +6 -6
- package/dist/utils/ai/index.js +3 -3
- package/dist/utils/index.cjs +8 -3
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/memory/index.cjs +8 -3
- package/dist/utils/memory/index.cjs.map +1 -1
- package/dist/utils/memory/index.d.cts +78 -0
- package/dist/utils/memory/index.d.ts +78 -0
- package/dist/utils/memory/index.js +1 -1
- package/package.json +1 -5
- package/dist/chunk-3QZY5BI7.js +0 -92
- package/dist/chunk-3QZY5BI7.js.map +0 -1
- package/dist/chunk-LBAJK24K.js.map +0 -1
- package/dist/observable-BXQoW1P-.d.cts +0 -36
- package/dist/observable-BXQoW1P-.d.ts +0 -36
- /package/dist/{chunk-WKSWLSCX.js.map → chunk-22SG74BD.js.map} +0 -0
- /package/dist/{chunk-OO5BM6CJ.js.map → chunk-5IMMNARC.js.map} +0 -0
- /package/dist/{chunk-KIIXR252.js.map → chunk-EHRRQ4IC.js.map} +0 -0
- /package/dist/{chunk-HULCUY35.js.map → chunk-GWRNLJNW.js.map} +0 -0
- /package/dist/{chunk-5THCXDWY.js.map → chunk-JKTC747G.js.map} +0 -0
- /package/dist/{chunk-RGL53X5G.js.map → chunk-TNX5ZGDJ.js.map} +0 -0
- /package/dist/{chunk-GBCENOLN.js.map → chunk-ZT4WMQW4.js.map} +0 -0
package/dist/utils/index.js
CHANGED
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
withRateLimiter,
|
|
161
161
|
withRetry,
|
|
162
162
|
zeroPrice
|
|
163
|
-
} from "../chunk-
|
|
163
|
+
} from "../chunk-GWRNLJNW.js";
|
|
164
164
|
import {
|
|
165
165
|
compileSpec,
|
|
166
166
|
decompileSpec,
|
|
@@ -237,14 +237,14 @@ import {
|
|
|
237
237
|
promptNode,
|
|
238
238
|
toolExecution,
|
|
239
239
|
toolRegistry
|
|
240
|
-
} from "../chunk-
|
|
240
|
+
} from "../chunk-5IMMNARC.js";
|
|
241
241
|
import {
|
|
242
242
|
collection,
|
|
243
243
|
cosineSimilarity,
|
|
244
244
|
knowledgeGraph,
|
|
245
245
|
reactiveFactStore,
|
|
246
246
|
vectorIndex
|
|
247
|
-
} from "../chunk-
|
|
247
|
+
} from "../chunk-ZVXXDWIB.js";
|
|
248
248
|
import {
|
|
249
249
|
CONTEXT_TOPIC,
|
|
250
250
|
DEFERRED_TOPIC,
|
|
@@ -247,6 +247,8 @@ function reactiveFactStore(config) {
|
|
|
247
247
|
graph
|
|
248
248
|
});
|
|
249
249
|
const seqCursor = registerCursor(graph, "seq", 0);
|
|
250
|
+
const ingestLog = config.recordIngest ? (0, import_extra2.reactiveLog)([], { name: "ingest_log" }) : void 0;
|
|
251
|
+
if (ingestLog) graph.addDisposer(() => ingestLog.dispose());
|
|
250
252
|
const emptyStore = () => ({ byId: /* @__PURE__ */ new Map() });
|
|
251
253
|
const shards = [];
|
|
252
254
|
for (let s = 0; s < shardCount; s += 1) {
|
|
@@ -402,6 +404,8 @@ function reactiveFactStore(config) {
|
|
|
402
404
|
factId: dep,
|
|
403
405
|
rootFactId: f.id,
|
|
404
406
|
reason: "obsolete",
|
|
407
|
+
// `obsolete` guard above guarantees `f.validTo` is set.
|
|
408
|
+
rootValidTo: f.validTo,
|
|
405
409
|
iteration: cascadeIteration + 1,
|
|
406
410
|
causalReason: `dependentsIndex[${f.id}] \u2192 ${dep} (obsolete: validTo set)`
|
|
407
411
|
});
|
|
@@ -474,11 +478,10 @@ function reactiveFactStore(config) {
|
|
|
474
478
|
actions.emit([]);
|
|
475
479
|
return;
|
|
476
480
|
}
|
|
477
|
-
const
|
|
478
|
-
for (const [id] of byId) {
|
|
481
|
+
for (const [id, e] of byId) {
|
|
479
482
|
replaceFragment(
|
|
480
483
|
id,
|
|
481
|
-
(prev) => prev.validTo !== void 0 ? prev : { ...prev, validTo:
|
|
484
|
+
(prev) => prev.validTo !== void 0 ? prev : { ...prev, validTo: e.rootValidTo }
|
|
482
485
|
);
|
|
483
486
|
}
|
|
484
487
|
actions.emit([...byId.values()]);
|
|
@@ -636,6 +639,7 @@ function reactiveFactStore(config) {
|
|
|
636
639
|
t_ns: (0, import_core2.wallClockNs)(),
|
|
637
640
|
seq: bumpCursor(seqCursor)
|
|
638
641
|
});
|
|
642
|
+
ingestLog?.append(f);
|
|
639
643
|
}
|
|
640
644
|
actions.emit(f ?? null);
|
|
641
645
|
},
|
|
@@ -672,6 +676,7 @@ function reactiveFactStore(config) {
|
|
|
672
676
|
review,
|
|
673
677
|
consolidated,
|
|
674
678
|
events,
|
|
679
|
+
...ingestLog ? { ingestLog } : {},
|
|
675
680
|
itemNode
|
|
676
681
|
});
|
|
677
682
|
return out;
|