digdig 0.0.1 → 0.0.3
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/README.md +437 -2
- package/digdig.config.example.json +14 -0
- package/dist/claims/deterministic-checks.d.ts +48 -0
- package/dist/claims/deterministic-checks.d.ts.map +1 -0
- package/dist/claims/deterministic-checks.js +162 -0
- package/dist/claims/deterministic-checks.js.map +1 -0
- package/dist/claims/policy.d.ts +25 -0
- package/dist/claims/policy.d.ts.map +1 -0
- package/dist/claims/policy.js +168 -0
- package/dist/claims/policy.js.map +1 -0
- package/dist/claims/store.d.ts +37 -0
- package/dist/claims/store.d.ts.map +1 -0
- package/dist/claims/store.js +152 -0
- package/dist/claims/store.js.map +1 -0
- package/dist/claims/types.d.ts +98 -0
- package/dist/claims/types.d.ts.map +1 -0
- package/dist/claims/types.js +9 -0
- package/dist/claims/types.js.map +1 -0
- package/dist/commands/claim.d.ts +13 -0
- package/dist/commands/claim.d.ts.map +1 -0
- package/dist/commands/claim.js +131 -0
- package/dist/commands/claim.js.map +1 -0
- package/dist/commands/coverage.d.ts +7 -0
- package/dist/commands/coverage.d.ts.map +1 -0
- package/dist/commands/coverage.js +78 -0
- package/dist/commands/coverage.js.map +1 -0
- package/dist/commands/doc-index.d.ts +12 -0
- package/dist/commands/doc-index.d.ts.map +1 -0
- package/dist/commands/doc-index.js +49 -0
- package/dist/commands/doc-index.js.map +1 -0
- package/dist/commands/doc-search.d.ts +16 -0
- package/dist/commands/doc-search.d.ts.map +1 -0
- package/dist/commands/doc-search.js +41 -0
- package/dist/commands/doc-search.js.map +1 -0
- package/dist/commands/evidence.d.ts +20 -0
- package/dist/commands/evidence.d.ts.map +1 -0
- package/dist/commands/evidence.js +215 -0
- package/dist/commands/evidence.js.map +1 -0
- package/dist/commands/extract.d.ts +10 -0
- package/dist/commands/extract.d.ts.map +1 -0
- package/dist/commands/extract.js +77 -0
- package/dist/commands/extract.js.map +1 -0
- package/dist/commands/graph-add.d.ts +7 -0
- package/dist/commands/graph-add.d.ts.map +1 -0
- package/dist/commands/graph-add.js +93 -0
- package/dist/commands/graph-add.js.map +1 -0
- package/dist/commands/graph-drill.d.ts +11 -0
- package/dist/commands/graph-drill.d.ts.map +1 -0
- package/dist/commands/graph-drill.js +26 -0
- package/dist/commands/graph-drill.js.map +1 -0
- package/dist/commands/graph-explore.d.ts +10 -0
- package/dist/commands/graph-explore.d.ts.map +1 -0
- package/dist/commands/graph-explore.js +32 -0
- package/dist/commands/graph-explore.js.map +1 -0
- package/dist/commands/graph-obfuscate.d.ts +17 -0
- package/dist/commands/graph-obfuscate.d.ts.map +1 -0
- package/dist/commands/graph-obfuscate.js +110 -0
- package/dist/commands/graph-obfuscate.js.map +1 -0
- package/dist/commands/graph-search.d.ts +11 -0
- package/dist/commands/graph-search.d.ts.map +1 -0
- package/dist/commands/graph-search.js +19 -0
- package/dist/commands/graph-search.js.map +1 -0
- package/dist/commands/graph-traverse.d.ts +10 -0
- package/dist/commands/graph-traverse.d.ts.map +1 -0
- package/dist/commands/graph-traverse.js +39 -0
- package/dist/commands/graph-traverse.js.map +1 -0
- package/dist/commands/json-input.d.ts +18 -0
- package/dist/commands/json-input.d.ts.map +1 -0
- package/dist/commands/json-input.js +50 -0
- package/dist/commands/json-input.js.map +1 -0
- package/dist/commands/query-graph.d.ts +13 -0
- package/dist/commands/query-graph.d.ts.map +1 -0
- package/dist/commands/query-graph.js +219 -0
- package/dist/commands/query-graph.js.map +1 -0
- package/dist/commands/results-add.d.ts +10 -0
- package/dist/commands/results-add.d.ts.map +1 -0
- package/dist/commands/results-add.js +80 -0
- package/dist/commands/results-add.js.map +1 -0
- package/dist/commands/review.d.ts +12 -0
- package/dist/commands/review.d.ts.map +1 -0
- package/dist/commands/review.js +119 -0
- package/dist/commands/review.js.map +1 -0
- package/dist/commands/session.d.ts +28 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +149 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/verdict.d.ts +9 -0
- package/dist/commands/verdict.d.ts.map +1 -0
- package/dist/commands/verdict.js +40 -0
- package/dist/commands/verdict.js.map +1 -0
- package/dist/config.d.ts +28 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +148 -0
- package/dist/config.js.map +1 -0
- package/dist/deep/co-occurrence.d.ts +50 -0
- package/dist/deep/co-occurrence.d.ts.map +1 -0
- package/dist/deep/co-occurrence.js +95 -0
- package/dist/deep/co-occurrence.js.map +1 -0
- package/dist/deep/coverage.d.ts +81 -0
- package/dist/deep/coverage.d.ts.map +1 -0
- package/dist/deep/coverage.js +183 -0
- package/dist/deep/coverage.js.map +1 -0
- package/dist/deep/dedupe.d.ts +27 -0
- package/dist/deep/dedupe.d.ts.map +1 -0
- package/dist/deep/dedupe.js +115 -0
- package/dist/deep/dedupe.js.map +1 -0
- package/dist/deep/degree-utils.d.ts +39 -0
- package/dist/deep/degree-utils.d.ts.map +1 -0
- package/dist/deep/degree-utils.js +42 -0
- package/dist/deep/degree-utils.js.map +1 -0
- package/dist/deep/extractor.d.ts +42 -0
- package/dist/deep/extractor.d.ts.map +1 -0
- package/dist/deep/extractor.js +392 -0
- package/dist/deep/extractor.js.map +1 -0
- package/dist/deep/fuse.d.ts +63 -0
- package/dist/deep/fuse.d.ts.map +1 -0
- package/dist/deep/fuse.js +108 -0
- package/dist/deep/fuse.js.map +1 -0
- package/dist/deep/graph-explore.d.ts +115 -0
- package/dist/deep/graph-explore.d.ts.map +1 -0
- package/dist/deep/graph-explore.js +588 -0
- package/dist/deep/graph-explore.js.map +1 -0
- package/dist/deep/graph-obfuscate.d.ts +51 -0
- package/dist/deep/graph-obfuscate.d.ts.map +1 -0
- package/dist/deep/graph-obfuscate.js +226 -0
- package/dist/deep/graph-obfuscate.js.map +1 -0
- package/dist/deep/graph-preprocess.d.ts +48 -0
- package/dist/deep/graph-preprocess.d.ts.map +1 -0
- package/dist/deep/graph-preprocess.js +40 -0
- package/dist/deep/graph-preprocess.js.map +1 -0
- package/dist/deep/graph-sampling.d.ts +51 -0
- package/dist/deep/graph-sampling.d.ts.map +1 -0
- package/dist/deep/graph-sampling.js +410 -0
- package/dist/deep/graph-sampling.js.map +1 -0
- package/dist/deep/graph.d.ts +87 -0
- package/dist/deep/graph.d.ts.map +1 -0
- package/dist/deep/graph.js +200 -0
- package/dist/deep/graph.js.map +1 -0
- package/dist/deep/index.d.ts +10 -0
- package/dist/deep/index.d.ts.map +1 -0
- package/dist/deep/index.js +10 -0
- package/dist/deep/index.js.map +1 -0
- package/dist/deep/iteration-data.d.ts +34 -0
- package/dist/deep/iteration-data.d.ts.map +1 -0
- package/dist/deep/iteration-data.js +45 -0
- package/dist/deep/iteration-data.js.map +1 -0
- package/dist/deep/local-doc/indexer.d.ts +26 -0
- package/dist/deep/local-doc/indexer.d.ts.map +1 -0
- package/dist/deep/local-doc/indexer.js +420 -0
- package/dist/deep/local-doc/indexer.js.map +1 -0
- package/dist/deep/local-doc/scanner.d.ts +10 -0
- package/dist/deep/local-doc/scanner.d.ts.map +1 -0
- package/dist/deep/local-doc/scanner.js +165 -0
- package/dist/deep/local-doc/scanner.js.map +1 -0
- package/dist/deep/local-doc/searcher.d.ts +38 -0
- package/dist/deep/local-doc/searcher.d.ts.map +1 -0
- package/dist/deep/local-doc/searcher.js +211 -0
- package/dist/deep/local-doc/searcher.js.map +1 -0
- package/dist/deep/local-doc/types.d.ts +61 -0
- package/dist/deep/local-doc/types.d.ts.map +1 -0
- package/dist/deep/local-doc/types.js +18 -0
- package/dist/deep/local-doc/types.js.map +1 -0
- package/dist/deep/path-extraction.d.ts +53 -0
- package/dist/deep/path-extraction.d.ts.map +1 -0
- package/dist/deep/path-extraction.js +229 -0
- package/dist/deep/path-extraction.js.map +1 -0
- package/dist/deep/pending-facts.d.ts +64 -0
- package/dist/deep/pending-facts.d.ts.map +1 -0
- package/dist/deep/pending-facts.js +74 -0
- package/dist/deep/pending-facts.js.map +1 -0
- package/dist/deep/query-redundancy.d.ts +52 -0
- package/dist/deep/query-redundancy.d.ts.map +1 -0
- package/dist/deep/query-redundancy.js +122 -0
- package/dist/deep/query-redundancy.js.map +1 -0
- package/dist/deep/query-suggest.d.ts +33 -0
- package/dist/deep/query-suggest.d.ts.map +1 -0
- package/dist/deep/query-suggest.js +90 -0
- package/dist/deep/query-suggest.js.map +1 -0
- package/dist/deep/rrf.d.ts +13 -0
- package/dist/deep/rrf.d.ts.map +1 -0
- package/dist/deep/rrf.js +23 -0
- package/dist/deep/rrf.js.map +1 -0
- package/dist/deep/search-strategy.d.ts +37 -0
- package/dist/deep/search-strategy.d.ts.map +1 -0
- package/dist/deep/search-strategy.js +106 -0
- package/dist/deep/search-strategy.js.map +1 -0
- package/dist/deep/session.d.ts +182 -0
- package/dist/deep/session.d.ts.map +1 -0
- package/dist/deep/session.js +663 -0
- package/dist/deep/session.js.map +1 -0
- package/dist/deep/simhash.d.ts +17 -0
- package/dist/deep/simhash.d.ts.map +1 -0
- package/dist/deep/simhash.js +72 -0
- package/dist/deep/simhash.js.map +1 -0
- package/dist/deep/tfidf.d.ts +38 -0
- package/dist/deep/tfidf.d.ts.map +1 -0
- package/dist/deep/tfidf.js +103 -0
- package/dist/deep/tfidf.js.map +1 -0
- package/dist/deepseek-service.d.ts +22 -0
- package/dist/deepseek-service.d.ts.map +1 -0
- package/dist/deepseek-service.js +84 -0
- package/dist/deepseek-service.js.map +1 -0
- package/dist/entry.d.ts +14 -0
- package/dist/entry.d.ts.map +1 -0
- package/dist/entry.js +29 -0
- package/dist/entry.js.map +1 -0
- package/dist/errors.d.ts +76 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +117 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/init.d.ts +16 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/init.js +143 -0
- package/dist/init.js.map +1 -0
- package/dist/legacy.d.ts +60 -0
- package/dist/legacy.d.ts.map +1 -0
- package/dist/legacy.js +119 -0
- package/dist/legacy.js.map +1 -0
- package/dist/ollama-service.d.ts +22 -0
- package/dist/ollama-service.d.ts.map +1 -0
- package/dist/ollama-service.js +71 -0
- package/dist/ollama-service.js.map +1 -0
- package/dist/protocol.d.ts +23 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +26 -0
- package/dist/protocol.js.map +1 -0
- package/dist/runCli.d.ts +8 -0
- package/dist/runCli.d.ts.map +1 -0
- package/dist/runCli.js +1356 -0
- package/dist/runCli.js.map +1 -0
- package/dist/service.d.ts +73 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +145 -0
- package/dist/service.js.map +1 -0
- package/dist/sxng.d.ts +11 -0
- package/dist/sxng.d.ts.map +1 -0
- package/dist/sxng.js +14 -0
- package/dist/sxng.js.map +1 -0
- package/package.json +56 -12
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Two-stage search strategy (GraphWalker-inspired).
|
|
3
|
+
*
|
|
4
|
+
* Stage 1 — Broad Exploration: general engines, wide scope.
|
|
5
|
+
* Stage 2 — Targeted Deep-Dive: specialized engines, obfuscated queries.
|
|
6
|
+
*
|
|
7
|
+
* Transition signal: entity richness growth rate slows below threshold.
|
|
8
|
+
* CLI only outputs stage recommendation — Agent decides whether to follow.
|
|
9
|
+
*/
|
|
10
|
+
const DEFAULT_CONFIG = {
|
|
11
|
+
broadEngines: ['google', 'bing', 'duckduckgo'],
|
|
12
|
+
deepEngines: ['arxiv', 'semantic_scholar', 'github', 'stackoverflow'],
|
|
13
|
+
broadRounds: 2,
|
|
14
|
+
autoTransition: true,
|
|
15
|
+
transitionThreshold: 0.2,
|
|
16
|
+
};
|
|
17
|
+
// ── Stage determination ───────────────────────────────────────────
|
|
18
|
+
/** Count entities by their supporting result count; rounds are no longer semantic provenance. */
|
|
19
|
+
function entityCountsByRound(graph) {
|
|
20
|
+
const counts = new Map();
|
|
21
|
+
const roundForResult = (resultId) => {
|
|
22
|
+
if (!graph.hasNode(resultId))
|
|
23
|
+
return undefined;
|
|
24
|
+
const attrs = graph.getNodeAttributes(resultId);
|
|
25
|
+
const rounds = attrs.origins?.map(origin => origin.round).filter((round) => Number.isSafeInteger(round)) ?? [];
|
|
26
|
+
return rounds.length ? Math.max(...rounds) : undefined;
|
|
27
|
+
};
|
|
28
|
+
graph.forEachNode((_node, attrs) => {
|
|
29
|
+
if (attrs.type !== 'entity')
|
|
30
|
+
return;
|
|
31
|
+
const sources = attrs.sourceResultIds;
|
|
32
|
+
const rounds = sources?.map(roundForResult).filter((round) => round !== undefined) ?? [];
|
|
33
|
+
if (rounds.length > 0) {
|
|
34
|
+
const bucket = Math.max(...rounds);
|
|
35
|
+
counts.set(bucket, (counts.get(bucket) ?? 0) + 1);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
// No round info → count as round 0
|
|
39
|
+
counts.set(0, (counts.get(0) ?? 0) + 1);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return counts;
|
|
43
|
+
}
|
|
44
|
+
/** Count total query rounds in the graph. */
|
|
45
|
+
function countQueryRounds(graph) {
|
|
46
|
+
let maxRound = 0;
|
|
47
|
+
graph.forEachNode((_node, attrs) => {
|
|
48
|
+
if (attrs.type === 'query' && attrs.round != null) {
|
|
49
|
+
maxRound = Math.max(maxRound, attrs.round);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return maxRound;
|
|
53
|
+
}
|
|
54
|
+
/** Compute entity richness growth rate between last two rounds.
|
|
55
|
+
* growthRate = (newEntitiesThisRound - newEntitiesLastRound) / max(newEntitiesLastRound, 1)
|
|
56
|
+
* When growth rate slows below threshold, it signals transition to deep-dive. */
|
|
57
|
+
export function computeGrowthRate(graph) {
|
|
58
|
+
const countsByRound = entityCountsByRound(graph);
|
|
59
|
+
if (countsByRound.size < 2) {
|
|
60
|
+
// Not enough data → assume still growing
|
|
61
|
+
return 1.0;
|
|
62
|
+
}
|
|
63
|
+
const sortedRounds = Array.from(countsByRound.keys()).sort((a, b) => b - a);
|
|
64
|
+
const thisRound = sortedRounds[0];
|
|
65
|
+
const lastRound = sortedRounds[1];
|
|
66
|
+
const newThis = countsByRound.get(thisRound) ?? 0;
|
|
67
|
+
const newLast = countsByRound.get(lastRound) ?? 0;
|
|
68
|
+
return (newThis - newLast) / Math.max(newLast, 1);
|
|
69
|
+
}
|
|
70
|
+
/** Determine current search stage based on session state.
|
|
71
|
+
* Returns the stage recommendation — Agent may choose to ignore. */
|
|
72
|
+
export function determineSearchStage(graph, config) {
|
|
73
|
+
const c = { ...DEFAULT_CONFIG, ...config };
|
|
74
|
+
if (!c.autoTransition) {
|
|
75
|
+
return 'broad_exploration';
|
|
76
|
+
}
|
|
77
|
+
const rounds = countQueryRounds(graph);
|
|
78
|
+
if (rounds < c.broadRounds) {
|
|
79
|
+
return 'broad_exploration';
|
|
80
|
+
}
|
|
81
|
+
const growthRate = computeGrowthRate(graph);
|
|
82
|
+
if (growthRate < c.transitionThreshold) {
|
|
83
|
+
return 'targeted_deep_dive';
|
|
84
|
+
}
|
|
85
|
+
return 'broad_exploration';
|
|
86
|
+
}
|
|
87
|
+
/** Get full strategy info for Agent decision-making. */
|
|
88
|
+
export function getStrategyInfo(graph, config) {
|
|
89
|
+
const c = { ...DEFAULT_CONFIG, ...config };
|
|
90
|
+
const currentStage = determineSearchStage(graph, c);
|
|
91
|
+
const growthRate = computeGrowthRate(graph);
|
|
92
|
+
const roundNumber = countQueryRounds(graph);
|
|
93
|
+
let transitionReason;
|
|
94
|
+
if (currentStage === 'targeted_deep_dive') {
|
|
95
|
+
transitionReason = `Entity richness growth rate (${growthRate.toFixed(2)}) below threshold (${c.transitionThreshold}) after ${roundNumber} rounds`;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
currentStage,
|
|
99
|
+
recommendedEngines: currentStage === 'broad_exploration' ? c.broadEngines : c.deepEngines,
|
|
100
|
+
recommendedCategories: currentStage === 'broad_exploration' ? ['general'] : ['science', 'it'],
|
|
101
|
+
roundNumber,
|
|
102
|
+
growthRate,
|
|
103
|
+
transitionReason,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=search-strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-strategy.js","sourceRoot":"","sources":["../../src/deep/search-strategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAyBH,MAAM,cAAc,GAAmB;IACnC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAC;IAC9C,WAAW,EAAE,CAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,eAAe,CAAC;IACrE,WAAW,EAAE,CAAC;IACd,cAAc,EAAE,IAAI;IACpB,mBAAmB,EAAE,GAAG;CAC3B,CAAC;AAEF,qEAAqE;AAErE,iGAAiG;AACjG,SAAS,mBAAmB,CACxB,KAAoD;IAEpD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEzC,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAsB,EAAE;QAC5D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;YAAE,OAAO,SAAS,CAAC;QAC/C,MAAM,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;QAChI,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,CAAC,CAA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AE,CAAC;QACrC,OAAO,oBAAoB,CAAC;IAChC,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC/B,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,eAAe,CAC3B,KAAoD,EACpD,MAAgC;IAEhC,MAAM,CAAC,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,MAAM,EAAE,CAAC;IAC3C,MAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpD,MAAM,UAAU,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAE5C,IAAI,gBAAoC,CAAC;IACzC,IAAI,YAAY,KAAK,oBAAoB,EAAE,CAAC;QACxC,gBAAgB,GAAG,gCAAgC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,mBAAmB,WAAW,WAAW,SAAS,CAAC;IACvJ,CAAC;IAED,OAAO;QACH,YAAY;QACZ,kBAAkB,EAAE,YAAY,KAAK,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW;QACzF,qBAAqB,EAAE,YAAY,KAAK,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC;QAC7F,WAAW;QACX,UAAU;QACV,gBAAgB;KACnB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session state is the authority for discovery, extracted bodies, and approval.
|
|
3
|
+
* Every mutation uses an atomic same-directory write so an interrupted command
|
|
4
|
+
* cannot turn a valid session into an empty one.
|
|
5
|
+
*/
|
|
6
|
+
import { DirectedGraph } from 'graphology';
|
|
7
|
+
import { GraphEdgeAttrs, GraphNodeAttrs } from './graph.js';
|
|
8
|
+
export type ResultContentType = 'search' | 'extracted';
|
|
9
|
+
export type ResultStatus = 'pending' | 'approved';
|
|
10
|
+
export interface ResultOrigin {
|
|
11
|
+
tool: string;
|
|
12
|
+
engine?: string;
|
|
13
|
+
query: string;
|
|
14
|
+
round?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ResultFailure {
|
|
17
|
+
code: 'network' | 'parse' | 'empty' | 'tool';
|
|
18
|
+
message: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SessionResult {
|
|
21
|
+
id: string;
|
|
22
|
+
revision: number;
|
|
23
|
+
url: string;
|
|
24
|
+
title: string;
|
|
25
|
+
contentType: ResultContentType;
|
|
26
|
+
excerpt?: string;
|
|
27
|
+
content?: string;
|
|
28
|
+
extractor?: string;
|
|
29
|
+
extractedAt?: number;
|
|
30
|
+
origins: ResultOrigin[];
|
|
31
|
+
status: ResultStatus;
|
|
32
|
+
skippedAt?: number;
|
|
33
|
+
failureCount?: number;
|
|
34
|
+
lastFailedAt?: number;
|
|
35
|
+
lastFailure?: ResultFailure;
|
|
36
|
+
engine?: string;
|
|
37
|
+
category?: string;
|
|
38
|
+
score?: number;
|
|
39
|
+
fusionScore?: number;
|
|
40
|
+
retrievedAt?: number;
|
|
41
|
+
rank?: number;
|
|
42
|
+
publishedDate?: string;
|
|
43
|
+
byline?: string;
|
|
44
|
+
siteName?: string;
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export interface SessionResultInput {
|
|
48
|
+
url: string;
|
|
49
|
+
title: string;
|
|
50
|
+
contentType?: ResultContentType;
|
|
51
|
+
excerpt?: string;
|
|
52
|
+
content?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The search layer's display blurb, accepted only so `appendSessionResults`
|
|
55
|
+
* can fold it into `excerpt` at the one place the two layers meet. It is not
|
|
56
|
+
* stored: `SessionResult` has no such field, and a search body that kept both
|
|
57
|
+
* names would be one thing described twice.
|
|
58
|
+
*/
|
|
59
|
+
snippet?: string;
|
|
60
|
+
extractor?: string;
|
|
61
|
+
extractedAt?: number;
|
|
62
|
+
origins?: ResultOrigin[];
|
|
63
|
+
engine?: string;
|
|
64
|
+
category?: string;
|
|
65
|
+
score?: number;
|
|
66
|
+
fusionScore?: number;
|
|
67
|
+
retrievedAt?: number;
|
|
68
|
+
rank?: number;
|
|
69
|
+
publishedDate?: string;
|
|
70
|
+
byline?: string;
|
|
71
|
+
siteName?: string;
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
}
|
|
74
|
+
export interface ApprovalSelection {
|
|
75
|
+
id: string;
|
|
76
|
+
revision: number;
|
|
77
|
+
}
|
|
78
|
+
export interface ApprovalError {
|
|
79
|
+
code: 'RESULT_NOT_FOUND' | 'RESULT_REVISION_CONFLICT' | 'RESULT_NOT_VERIFIED' | 'RESULT_SKIPPED';
|
|
80
|
+
message: string;
|
|
81
|
+
id?: string;
|
|
82
|
+
revision?: number;
|
|
83
|
+
}
|
|
84
|
+
export interface ApprovalResult {
|
|
85
|
+
approved: number;
|
|
86
|
+
total: number;
|
|
87
|
+
approvedResults: SessionResult[];
|
|
88
|
+
error?: ApprovalError;
|
|
89
|
+
}
|
|
90
|
+
export interface SessionResultsFile {
|
|
91
|
+
status: 'ok';
|
|
92
|
+
data: {
|
|
93
|
+
results: SessionResult[];
|
|
94
|
+
rounds: number;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export declare class SessionStateError extends Error {
|
|
98
|
+
readonly code: 'SESSION_BUSY' | 'SESSION_CORRUPTED';
|
|
99
|
+
constructor(code: 'SESSION_BUSY' | 'SESSION_CORRUPTED', message: string);
|
|
100
|
+
}
|
|
101
|
+
/** Keep related session artifacts consistent while one command updates them. */
|
|
102
|
+
export declare function mutateSessionState<T>(sessionDir: string, action: () => T): T;
|
|
103
|
+
/** A result may enter evidence and semantic workflows only with a captured body. */
|
|
104
|
+
export declare function hasVerifiedContent(result: SessionResult): result is SessionResult & {
|
|
105
|
+
content: string;
|
|
106
|
+
extractedAt: number;
|
|
107
|
+
extractor: string;
|
|
108
|
+
};
|
|
109
|
+
export declare function resolveSessionPath(sessionValue: string): string;
|
|
110
|
+
export declare function initSessionDir(sessionDir: string, owner?: string, description?: string, query?: string): void;
|
|
111
|
+
/** Agent write inputs must belong to exactly the session being mutated. */
|
|
112
|
+
export declare function validateSessionInputFile(sessionDir: string, inputFile: string): string | undefined;
|
|
113
|
+
export declare function loadSessionResults(sessionDir: string): SessionResult[];
|
|
114
|
+
export declare function loadSessionRounds(sessionDir: string): number;
|
|
115
|
+
export declare function appendSessionResults(sessionDir: string, newResults: SessionResultInput[]): {
|
|
116
|
+
added: number;
|
|
117
|
+
updated: number;
|
|
118
|
+
total: number;
|
|
119
|
+
round: number;
|
|
120
|
+
approvedResults: SessionResult[];
|
|
121
|
+
};
|
|
122
|
+
/** A search result still waiting for a body, and not yet given up on. */
|
|
123
|
+
export declare function isPendingExtraction(result: SessionResult): boolean;
|
|
124
|
+
/** An extracted record awaiting an approval decision. */
|
|
125
|
+
export declare function isPendingApproval(result: SessionResult): boolean;
|
|
126
|
+
export declare function getPendingExtractionResults(sessionDir: string): SessionResult[];
|
|
127
|
+
/** Extracted records awaiting an approval decision. */
|
|
128
|
+
export declare function getPendingResults(sessionDir: string): SessionResult[];
|
|
129
|
+
export declare function getApprovedResults(sessionDir: string): SessionResult[];
|
|
130
|
+
export declare function approveResults(sessionDir: string, selections: ApprovalSelection[]): ApprovalResult;
|
|
131
|
+
export declare function setSkipped(sessionDir: string, selections: ApprovalSelection[], skipped: boolean): {
|
|
132
|
+
changed: number;
|
|
133
|
+
results: SessionResult[];
|
|
134
|
+
error?: ApprovalError;
|
|
135
|
+
};
|
|
136
|
+
export declare function recordExtractionOutcome(sessionDir: string, outcomes: Array<{
|
|
137
|
+
url: string;
|
|
138
|
+
content?: string;
|
|
139
|
+
title?: string;
|
|
140
|
+
excerpt?: string;
|
|
141
|
+
byline?: string;
|
|
142
|
+
siteName?: string;
|
|
143
|
+
length?: number;
|
|
144
|
+
extractedAt?: number;
|
|
145
|
+
extractor?: string;
|
|
146
|
+
failure?: ResultFailure;
|
|
147
|
+
}>): {
|
|
148
|
+
updated: number;
|
|
149
|
+
failed: number;
|
|
150
|
+
total: number;
|
|
151
|
+
};
|
|
152
|
+
/** Compatibility name for callers that already provide extraction output. */
|
|
153
|
+
export declare function mergeExtractedContent(sessionDir: string, extracted: Array<{
|
|
154
|
+
url: string;
|
|
155
|
+
content: string;
|
|
156
|
+
title?: string;
|
|
157
|
+
excerpt?: string;
|
|
158
|
+
byline?: string;
|
|
159
|
+
siteName?: string;
|
|
160
|
+
length?: number;
|
|
161
|
+
extractedAt?: number;
|
|
162
|
+
extractor?: string;
|
|
163
|
+
error?: string;
|
|
164
|
+
}>): {
|
|
165
|
+
updated: number;
|
|
166
|
+
total: number;
|
|
167
|
+
};
|
|
168
|
+
export declare function loadSessionGraph(sessionDir: string): DirectedGraph<GraphNodeAttrs, GraphEdgeAttrs>;
|
|
169
|
+
/** Serialize graph read-modify-write operations under one session lock. */
|
|
170
|
+
export declare function mutateSessionGraph<T>(sessionDir: string, action: (graph: DirectedGraph<GraphNodeAttrs, GraphEdgeAttrs>, approved: SessionResult[]) => T, options?: {
|
|
171
|
+
reconcileStructural?: boolean;
|
|
172
|
+
}): T;
|
|
173
|
+
export declare function injectApprovedResults(sessionDir: string, approved: SessionResult[]): {
|
|
174
|
+
nodesAdded: number;
|
|
175
|
+
edgesAdded: number;
|
|
176
|
+
};
|
|
177
|
+
export declare function countPendingResults(sessionDir: string): number;
|
|
178
|
+
export declare function updateSessionGraph(sessionDir: string, query: string, results: SessionResult[], round?: number): {
|
|
179
|
+
nodesAdded: number;
|
|
180
|
+
edgesAdded: number;
|
|
181
|
+
};
|
|
182
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/deep/session.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,aAAa,EAAsB,MAAM,Y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