@hraness/wordcell 0.22.4 → 0.22.5
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 +20 -17
- package/dist/authoring.js +2 -2
- package/dist/{authority-06eqhqam.js → authority-3ga47syb.js} +2 -2
- package/dist/benchmark.js +3 -3
- package/dist/cli.js +15 -15
- package/dist/evaluation-builder.js +10 -10
- package/dist/evaluation-kb.js +10 -10
- package/dist/graph-authority.js +4 -4
- package/dist/graph-percolation.js +6 -6
- package/dist/graph.js +3 -1
- package/dist/{index-1k595z6v.js → index-1r5rnkfr.js} +2 -2
- package/dist/{index-q7tbg07z.js → index-42tb8qqp.js} +7 -7
- package/dist/{index-9h7zh0wt.js → index-8bgnhjgq.js} +17 -16
- package/dist/{index-233z9wmn.js → index-8v6k9h4r.js} +13 -5
- package/dist/{index-vnybgywh.js → index-aer0jdrq.js} +1 -1
- package/dist/{index-xv80vzfp.js → index-f75zmmdr.js} +4 -4
- package/dist/{index-ecqpgr5y.js → index-f7fnww7a.js} +1 -1
- package/dist/{index-djrcc1yf.js → index-gtwqye5a.js} +4 -4
- package/dist/{index-bqtqeak3.js → index-h2qn3y3f.js} +4 -4
- package/dist/{index-rr9kzq4n.js → index-n57tewfr.js} +2 -2
- package/dist/{index-76dbn6pe.js → index-n9kwenpt.js} +1 -1
- package/dist/{index-n386evxj.js → index-p96kb6t2.js} +1 -1
- package/dist/{index-tf4wzjew.js → index-pz2b2x0y.js} +1 -1
- package/dist/{index-jk1sgx36.js → index-qdb8f8va.js} +1 -1
- package/dist/{index-pnt9wr59.js → index-xzvcw9ga.js} +2 -2
- package/dist/{index-qbssx940.js → index-zy7an84p.js} +223 -8
- package/dist/index.js +20 -14
- package/dist/percolate.js +2 -2
- package/dist/portfolio.js +10 -10
- package/dist/publish.js +3 -3
- package/dist/sdk.js +9 -9
- package/dist/search.js +2 -2
- package/dist/semantic.js +4 -4
- package/dist/{support-m3t917ev.js → support-jf9v10j7.js} +14 -14
- package/dist/workflows/decision-context.js +10 -10
- package/dist/workflows/index.js +10 -10
- package/package.json +5 -4
- package/skills/wordcell/SKILL.md +1 -1
- package/skills/wordcell/references/plan-structure.md +1 -1
- package/skills/wordcell/references/url-platforms.md +1 -1
- package/src/cli-program.ts +4 -2
- package/src/graph.ts +79 -9
- package/src/mention-index.ts +194 -0
- package/src/vault.ts +26 -2
package/README.md
CHANGED
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
[](https://github.com/hraness/wordcell/tree/main/skills/wordcell)
|
|
5
5
|
|
|
6
6
|
A local Markdown knowledge base with superpowers. Save decisions, sources, and
|
|
7
|
-
plans as files you own, then
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
remember.
|
|
7
|
+
plans as files you own, then find them by exact words or, with an optional
|
|
8
|
+
local model, by meaning. Links and Git history show how each note connects and
|
|
9
|
+
where it came from. Coding agents can look up the notes tied to the code they
|
|
10
|
+
change, and the same vault holds everything else you want to remember.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
Read the files in Obsidian or any editor, review changes in Git, and rebuild
|
|
13
|
+
every index from the Markdown. Exact search and graph queries run on your
|
|
14
|
+
machine with no account or model. Web capture, hosted agents, and optional
|
|
15
|
+
remote reranking reach other services;
|
|
16
|
+
[Privacy and boundaries](#privacy-and-boundaries) says what each one sends.
|
|
16
17
|
|
|
17
18
|
[Documentation](https://wordcell.io/docs) · [Comparisons](https://github.com/hraness/wordcell/blob/main/docs/comparisons.md) · [Measured evidence](https://github.com/hraness/wordcell/blob/main/docs/evidence.md) · [Changelog](https://github.com/hraness/wordcell/blob/main/CHANGELOG.md)
|
|
18
19
|
|
|
@@ -25,11 +26,13 @@ optional remote reranking have [separate privacy boundaries](#privacy-and-bounda
|
|
|
25
26
|
Optional local semantic search joins each match to current metadata, links,
|
|
26
27
|
and history instead of returning isolated text.
|
|
27
28
|
- **Author the connections.** Wikilinks and typed relationships turn notes into
|
|
28
|
-
a
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
a graph you can query. Backlinks and graph queries use only what you wrote,
|
|
30
|
+
and `wordcell percolate` suggests missing links for you to review without
|
|
31
|
+
writing them into your notes.
|
|
32
|
+
- **Give coding agents the reasons behind the code.** Tie notes to repository
|
|
33
|
+
paths, list the commits behind a note, and let the next session start from
|
|
34
|
+
the notes for the file it is changing. Only context you save becomes part of
|
|
35
|
+
the record.
|
|
33
36
|
|
|
34
37
|
Plain Markdown may be enough for a small set of notes. QMD is a good fit for
|
|
35
38
|
local document retrieval and also supplies Wordcell's optional semantic search.
|
|
@@ -42,14 +45,14 @@ Git evidence, and selective publishing. [Compare the tradeoffs](https://github.c
|
|
|
42
45
|
The CLI and TypeScript SDK run with Bun. Install the versioned GitHub archive:
|
|
43
46
|
|
|
44
47
|
```sh
|
|
45
|
-
bun add --global --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.22.
|
|
48
|
+
bun add --global --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.22.5/hraness-wordcell-0.22.5.tgz
|
|
46
49
|
wordcell --help
|
|
47
50
|
```
|
|
48
51
|
|
|
49
52
|
Prefer npm? The same release is [mirrored there](https://www.npmjs.com/package/@hraness/wordcell):
|
|
50
53
|
|
|
51
54
|
```sh
|
|
52
|
-
npm install --global --ignore-scripts @hraness/wordcell@0.22.
|
|
55
|
+
npm install --global --ignore-scripts @hraness/wordcell@0.22.5
|
|
53
56
|
wordcell --help
|
|
54
57
|
```
|
|
55
58
|
|
|
@@ -91,7 +94,7 @@ After trying the CLI, install the public Agent Skill into a compatible agent,
|
|
|
91
94
|
such as Claude Code, Codex, Cursor, or GitHub Copilot:
|
|
92
95
|
|
|
93
96
|
```sh
|
|
94
|
-
bunx skills add hraness/wordcell#v0.22.
|
|
97
|
+
bunx skills add hraness/wordcell#v0.22.5 --skill wordcell
|
|
95
98
|
```
|
|
96
99
|
|
|
97
100
|
Then ask:
|
|
@@ -283,7 +286,7 @@ exist. [Graph queries and proof limits](https://github.com/hraness/wordcell/blob
|
|
|
283
286
|
Add the same immutable release to a Bun project:
|
|
284
287
|
|
|
285
288
|
```sh
|
|
286
|
-
bun add --exact --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.22.
|
|
289
|
+
bun add --exact --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.22.5/hraness-wordcell-0.22.5.tgz
|
|
287
290
|
```
|
|
288
291
|
|
|
289
292
|
The SDK provides read-only vault sessions, metadata queries, search, graph
|
package/dist/authoring.js
CHANGED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
noteRevision,
|
|
15
15
|
removeNoteRelation,
|
|
16
16
|
updateNoteBody
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-f7fnww7a.js";
|
|
18
18
|
import"./index-3rm7cz6h.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-zy7an84p.js";
|
|
20
20
|
import"./index-z1w83f81.js";
|
|
21
21
|
export {
|
|
22
22
|
updateNoteBody,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
GRAPH_LIMITS,
|
|
4
4
|
GraphAuthorityError,
|
|
5
5
|
validateGraphQueryRequest
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-pz2b2x0y.js";
|
|
7
7
|
import {
|
|
8
8
|
validateRepositoryScopeSelection
|
|
9
9
|
} from "./index-06c9ctr6.js";
|
|
@@ -11,7 +11,7 @@ import"./index-5vwpzb5a.js";
|
|
|
11
11
|
import {
|
|
12
12
|
isCanonicalNoteId,
|
|
13
13
|
isCanonicalRelationPredicate
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-zy7an84p.js";
|
|
15
15
|
import"./index-z1w83f81.js";
|
|
16
16
|
|
|
17
17
|
// src/oh/authority.ts
|
package/dist/benchmark.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
createSyntheticRankFusionFixture,
|
|
5
5
|
evaluateRanking,
|
|
6
6
|
evaluateRetrievalBenchmark
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-p96kb6t2.js";
|
|
8
|
+
import"./index-aer0jdrq.js";
|
|
9
9
|
import"./index-d13v9ckt.js";
|
|
10
10
|
import"./index-48pz4jpc.js";
|
|
11
11
|
import"./index-06c9ctr6.js";
|
|
12
12
|
import"./index-5vwpzb5a.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-zy7an84p.js";
|
|
14
14
|
import"./index-z1w83f81.js";
|
|
15
15
|
export {
|
|
16
16
|
evaluateRetrievalBenchmark,
|
package/dist/cli.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
parseArguments,
|
|
6
6
|
runExecutable,
|
|
7
7
|
usage
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-8bgnhjgq.js";
|
|
9
9
|
import"./index-bcknqxrq.js";
|
|
10
10
|
import"./index-054mb7d3.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-h2qn3y3f.js";
|
|
12
12
|
import"./index-j4zgmzjr.js";
|
|
13
13
|
import"./index-de2w8crk.js";
|
|
14
14
|
import"./index-6jcz0m1c.js";
|
|
@@ -27,22 +27,22 @@ import"./index-mxxxytys.js";
|
|
|
27
27
|
import"./index-23z4zxgg.js";
|
|
28
28
|
import"./index-pj501bh1.js";
|
|
29
29
|
import"./index-9rf81m0p.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-1r5rnkfr.js";
|
|
31
|
+
import"./index-42tb8qqp.js";
|
|
32
32
|
import"./index-adx6khj5.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-n57tewfr.js";
|
|
34
34
|
import"./index-4j3tt0c3.js";
|
|
35
35
|
import"./index-j70m75wd.js";
|
|
36
36
|
import"./index-b88v3vtm.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
37
|
+
import"./index-gtwqye5a.js";
|
|
38
|
+
import"./index-qdb8f8va.js";
|
|
39
|
+
import"./index-f75zmmdr.js";
|
|
40
|
+
import"./index-pz2b2x0y.js";
|
|
41
41
|
import"./index-1gwbassd.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-aer0jdrq.js";
|
|
43
43
|
import"./index-1xxnjn0d.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
44
|
+
import"./index-xzvcw9ga.js";
|
|
45
|
+
import"./index-8v6k9h4r.js";
|
|
46
46
|
import"./index-d13v9ckt.js";
|
|
47
47
|
import"./index-48pz4jpc.js";
|
|
48
48
|
import"./index-06c9ctr6.js";
|
|
@@ -52,16 +52,16 @@ import"./index-23m6bbjt.js";
|
|
|
52
52
|
import"./index-hya40gb2.js";
|
|
53
53
|
import"./index-5vwpzb5a.js";
|
|
54
54
|
import"./index-x3fthpsc.js";
|
|
55
|
-
import"./index-
|
|
55
|
+
import"./index-f7fnww7a.js";
|
|
56
56
|
import"./index-3rm7cz6h.js";
|
|
57
|
-
import"./index-
|
|
57
|
+
import"./index-zy7an84p.js";
|
|
58
58
|
import {
|
|
59
59
|
__require
|
|
60
60
|
} from "./index-z1w83f81.js";
|
|
61
61
|
|
|
62
62
|
// src/cli.ts
|
|
63
63
|
if (import.meta.main) {
|
|
64
|
-
const { standaloneSupportEnvironment, isUsefulSupportResult, runProductSupportCommand, showProductSupportInvitation } = await import("./support-
|
|
64
|
+
const { standaloneSupportEnvironment, isUsefulSupportResult, runProductSupportCommand, showProductSupportInvitation } = await import("./support-jf9v10j7.js");
|
|
65
65
|
const env = standaloneSupportEnvironment();
|
|
66
66
|
const args = process.argv.slice(2);
|
|
67
67
|
if (args[0] === "support") {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
knowledgeBaseEvaluationRetrieverIds,
|
|
5
5
|
openKnowledgeBaseEvaluation,
|
|
6
6
|
verifyFrozenEvaluationSnapshot
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-1r5rnkfr.js";
|
|
8
|
+
import"./index-42tb8qqp.js";
|
|
9
9
|
import"./index-adx6khj5.js";
|
|
10
10
|
import {
|
|
11
11
|
indexSemanticVault,
|
|
12
12
|
recommendedEmbeddingModel,
|
|
13
13
|
recommendedEmbeddingModelSha256
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-n57tewfr.js";
|
|
15
15
|
import"./index-4j3tt0c3.js";
|
|
16
16
|
import"./index-j70m75wd.js";
|
|
17
17
|
import {
|
|
@@ -19,24 +19,24 @@ import {
|
|
|
19
19
|
MAX_EVALUATION_EVIDENCE_BYTES,
|
|
20
20
|
MAX_EVALUATION_RESULTS_PER_QUERY
|
|
21
21
|
} from "./index-b88v3vtm.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
22
|
+
import"./index-gtwqye5a.js";
|
|
23
|
+
import"./index-qdb8f8va.js";
|
|
24
|
+
import"./index-f75zmmdr.js";
|
|
25
|
+
import"./index-pz2b2x0y.js";
|
|
26
26
|
import {
|
|
27
27
|
runGitCommand
|
|
28
28
|
} from "./index-1gwbassd.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-aer0jdrq.js";
|
|
30
30
|
import"./index-1xxnjn0d.js";
|
|
31
31
|
import {
|
|
32
32
|
scanVault
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-8v6k9h4r.js";
|
|
34
34
|
import"./index-d13v9ckt.js";
|
|
35
35
|
import"./index-48pz4jpc.js";
|
|
36
36
|
import"./index-06c9ctr6.js";
|
|
37
37
|
import"./index-5vwpzb5a.js";
|
|
38
38
|
import"./index-3rm7cz6h.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-zy7an84p.js";
|
|
40
40
|
import"./index-z1w83f81.js";
|
|
41
41
|
|
|
42
42
|
// src/evaluation-builder.ts
|
package/dist/evaluation-kb.js
CHANGED
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
knowledgeBaseEvaluationRetrieverIds,
|
|
5
5
|
openKnowledgeBaseEvaluation,
|
|
6
6
|
verifyFrozenEvaluationSnapshot
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-1r5rnkfr.js";
|
|
8
|
+
import"./index-42tb8qqp.js";
|
|
9
9
|
import"./index-adx6khj5.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-n57tewfr.js";
|
|
11
11
|
import"./index-4j3tt0c3.js";
|
|
12
12
|
import"./index-j70m75wd.js";
|
|
13
13
|
import"./index-b88v3vtm.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
14
|
+
import"./index-gtwqye5a.js";
|
|
15
|
+
import"./index-qdb8f8va.js";
|
|
16
|
+
import"./index-f75zmmdr.js";
|
|
17
|
+
import"./index-pz2b2x0y.js";
|
|
18
18
|
import"./index-1gwbassd.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-aer0jdrq.js";
|
|
20
20
|
import"./index-1xxnjn0d.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-8v6k9h4r.js";
|
|
22
22
|
import"./index-d13v9ckt.js";
|
|
23
23
|
import"./index-48pz4jpc.js";
|
|
24
24
|
import"./index-06c9ctr6.js";
|
|
25
25
|
import"./index-5vwpzb5a.js";
|
|
26
26
|
import"./index-3rm7cz6h.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-zy7an84p.js";
|
|
28
28
|
import"./index-z1w83f81.js";
|
|
29
29
|
export {
|
|
30
30
|
verifyFrozenEvaluationSnapshot,
|
package/dist/graph-authority.js
CHANGED
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
queryGraph,
|
|
6
6
|
rebuildGraph,
|
|
7
7
|
verifyGraph
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-f75zmmdr.js";
|
|
9
9
|
import {
|
|
10
10
|
GRAPH_LIMITS,
|
|
11
11
|
GraphAuthorityError,
|
|
12
12
|
validateGraphQueryRequest
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
} from "./index-pz2b2x0y.js";
|
|
14
|
+
import"./index-8v6k9h4r.js";
|
|
15
15
|
import"./index-06c9ctr6.js";
|
|
16
16
|
import"./index-5vwpzb5a.js";
|
|
17
17
|
import"./index-3rm7cz6h.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-zy7an84p.js";
|
|
19
19
|
import"./index-z1w83f81.js";
|
|
20
20
|
export {
|
|
21
21
|
verifyGraph,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
percolateWithGraph
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
4
|
+
} from "./index-gtwqye5a.js";
|
|
5
|
+
import"./index-qdb8f8va.js";
|
|
6
|
+
import"./index-f75zmmdr.js";
|
|
7
|
+
import"./index-pz2b2x0y.js";
|
|
8
|
+
import"./index-8v6k9h4r.js";
|
|
9
9
|
import"./index-06c9ctr6.js";
|
|
10
10
|
import"./index-5vwpzb5a.js";
|
|
11
11
|
import"./index-3rm7cz6h.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-zy7an84p.js";
|
|
13
13
|
import"./index-z1w83f81.js";
|
|
14
14
|
export {
|
|
15
15
|
percolateWithGraph
|
package/dist/graph.js
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
MAX_MENTION_PAIRS,
|
|
7
7
|
VaultAnalysisBudgetError,
|
|
8
8
|
analyzeVault,
|
|
9
|
+
analyzeVaultComplete,
|
|
9
10
|
catalogEnd,
|
|
10
11
|
catalogStart,
|
|
11
12
|
isCanonicalNoteId,
|
|
@@ -18,7 +19,7 @@ import {
|
|
|
18
19
|
replaceCatalog,
|
|
19
20
|
searchableMarkdown,
|
|
20
21
|
wikiLinks
|
|
21
|
-
} from "./index-
|
|
22
|
+
} from "./index-zy7an84p.js";
|
|
22
23
|
import"./index-z1w83f81.js";
|
|
23
24
|
export {
|
|
24
25
|
wikiLinks,
|
|
@@ -33,6 +34,7 @@ export {
|
|
|
33
34
|
isCanonicalNoteId,
|
|
34
35
|
catalogStart,
|
|
35
36
|
catalogEnd,
|
|
37
|
+
analyzeVaultComplete,
|
|
36
38
|
analyzeVault,
|
|
37
39
|
VaultAnalysisBudgetError,
|
|
38
40
|
MAX_MENTION_PAIRS,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
MAX_SEARCH_RESULTS,
|
|
4
4
|
openKnowledgeBase
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-42tb8qqp.js";
|
|
6
6
|
import {
|
|
7
7
|
MAX_EVALUATION_EVIDENCE_BYTES,
|
|
8
8
|
redactEvaluationMachinePaths
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./index-1gwbassd.js";
|
|
13
13
|
import {
|
|
14
14
|
scanVault
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-8v6k9h4r.js";
|
|
16
16
|
import {
|
|
17
17
|
MAX_REPOSITORY_MEMORY_DETAIL_LIMIT,
|
|
18
18
|
MAX_REPOSITORY_MEMORY_GROUP_LIMIT,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
openSemanticSearchSession,
|
|
9
9
|
recommendedEmbeddingModel
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-n57tewfr.js";
|
|
11
11
|
import {
|
|
12
12
|
UntrustedContentBudgetError,
|
|
13
13
|
createUntrustedToolResult
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
} from "./index-j70m75wd.js";
|
|
20
20
|
import {
|
|
21
21
|
percolateWithGraph
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-gtwqye5a.js";
|
|
23
23
|
import {
|
|
24
24
|
openGraphAuthority
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-f75zmmdr.js";
|
|
26
26
|
import {
|
|
27
27
|
validateGraphPercolationOptions,
|
|
28
28
|
validateGraphQueryRequest
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-pz2b2x0y.js";
|
|
30
30
|
import {
|
|
31
31
|
GitHistoryError,
|
|
32
32
|
gitHistoryForNotes,
|
|
@@ -41,10 +41,10 @@ import {
|
|
|
41
41
|
fuseRankedCandidates,
|
|
42
42
|
searchExactVault,
|
|
43
43
|
validateSearchQuery
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-aer0jdrq.js";
|
|
45
45
|
import {
|
|
46
46
|
scanVault
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-8v6k9h4r.js";
|
|
48
48
|
import {
|
|
49
49
|
NavigationBudgetError,
|
|
50
50
|
navigateLinks
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./index-48pz4jpc.js";
|
|
55
55
|
import {
|
|
56
56
|
lookupNote
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-zy7an84p.js";
|
|
58
58
|
|
|
59
59
|
// src/sdk.ts
|
|
60
60
|
import { resolve } from "path";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
loadPortfolioRegistry,
|
|
13
13
|
openKnowledgePortfolio,
|
|
14
14
|
snapshotPortfolioRegistry
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-h2qn3y3f.js";
|
|
16
16
|
import {
|
|
17
17
|
diffCaptureBundle
|
|
18
18
|
} from "./index-j4zgmzjr.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
knowledgeBaseEvaluationRetrieverIds,
|
|
41
41
|
openKnowledgeBaseEvaluation
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-1r5rnkfr.js";
|
|
43
43
|
import {
|
|
44
44
|
DEFAULT_SEARCH_RESULTS,
|
|
45
45
|
MAX_SEARCH_CANDIDATES,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
MAX_SEARCH_RESULTS,
|
|
49
49
|
openKnowledgeBase,
|
|
50
50
|
searchEvidenceRank
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-42tb8qqp.js";
|
|
52
52
|
import {
|
|
53
53
|
MAX_SEARCH_RULE_CONFIG_BYTES,
|
|
54
54
|
parseSearchRules
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
recommendedEmbeddingModel,
|
|
60
60
|
recommendedEmbeddingModelSha256,
|
|
61
61
|
sha256EmbeddingModelFile
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-n57tewfr.js";
|
|
63
63
|
import {
|
|
64
64
|
MAX_RERANK_CANDIDATES
|
|
65
65
|
} from "./index-j70m75wd.js";
|
|
@@ -72,25 +72,25 @@ import {
|
|
|
72
72
|
} from "./index-b88v3vtm.js";
|
|
73
73
|
import {
|
|
74
74
|
percolateWithGraph
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-gtwqye5a.js";
|
|
76
76
|
import {
|
|
77
77
|
MAX_PERCOLATION_MENTIONS,
|
|
78
78
|
MAX_PERCOLATION_MENTION_PAIRS,
|
|
79
79
|
MAX_PERCOLATION_NOTES,
|
|
80
80
|
MAX_SCOPED_PERCOLATION_MENTION_PAIRS,
|
|
81
81
|
percolateVault
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-qdb8f8va.js";
|
|
83
83
|
import {
|
|
84
84
|
queryGraph,
|
|
85
85
|
rebuildGraph,
|
|
86
86
|
verifyGraph
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-f75zmmdr.js";
|
|
88
88
|
import {
|
|
89
89
|
validateGraphQueryRequest
|
|
90
|
-
} from "./index-
|
|
90
|
+
} from "./index-pz2b2x0y.js";
|
|
91
91
|
import {
|
|
92
92
|
validateSearchQuery
|
|
93
|
-
} from "./index-
|
|
93
|
+
} from "./index-aer0jdrq.js";
|
|
94
94
|
import {
|
|
95
95
|
sanitizeTerminalLine,
|
|
96
96
|
sanitizeTerminalText
|
|
@@ -100,11 +100,12 @@ import {
|
|
|
100
100
|
MAX_PUBLISH_LIST_LIMIT,
|
|
101
101
|
publishVault,
|
|
102
102
|
renderPublishReportText
|
|
103
|
-
} from "./index-
|
|
103
|
+
} from "./index-xzvcw9ga.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
scanVault
|
|
107
|
-
|
|
105
|
+
refreshVaultComplete,
|
|
106
|
+
scanVault,
|
|
107
|
+
scanVaultComplete
|
|
108
|
+
} from "./index-8v6k9h4r.js";
|
|
108
109
|
import {
|
|
109
110
|
navigateLinks
|
|
110
111
|
} from "./index-d13v9ckt.js";
|
|
@@ -143,12 +144,12 @@ import {
|
|
|
143
144
|
addNoteRelation,
|
|
144
145
|
createNote,
|
|
145
146
|
removeNoteRelation
|
|
146
|
-
} from "./index-
|
|
147
|
+
} from "./index-f7fnww7a.js";
|
|
147
148
|
import {
|
|
148
149
|
lookupNote,
|
|
149
150
|
parseVaultKey,
|
|
150
151
|
renderCatalog
|
|
151
|
-
} from "./index-
|
|
152
|
+
} from "./index-zy7an84p.js";
|
|
152
153
|
|
|
153
154
|
// src/clip/url-metadata-cli.ts
|
|
154
155
|
import { resolve as resolve2 } from "path";
|
|
@@ -4090,7 +4091,7 @@ async function runAgents(command, output, dependencies) {
|
|
|
4090
4091
|
return errors.length === 0 ? 0 : 3;
|
|
4091
4092
|
}
|
|
4092
4093
|
async function runVault(command, output, dependencies) {
|
|
4093
|
-
const snapshot = command.kind === "refresh" ? await (dependencies.refreshVault ??
|
|
4094
|
+
const snapshot = command.kind === "refresh" ? await (dependencies.refreshVault ?? refreshVaultComplete)(command.root, command.options) : await (dependencies.scanVault ?? (command.kind === "check" ? scanVaultComplete : scanVault))(command.root, command.options);
|
|
4094
4095
|
if (command.kind === "refresh" || command.kind === "check") {
|
|
4095
4096
|
const noCatalog = command.kind === "check" && command.noCatalog === true;
|
|
4096
4097
|
const attachments = command.kind === "check" ? await (dependencies.validateMarkdownAttachments ?? validateMarkdownAttachments)({
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
MAX_ANALYZED_NOTES,
|
|
4
4
|
analyzeVault,
|
|
5
|
+
analyzeVaultComplete,
|
|
5
6
|
isCanonicalNoteId,
|
|
6
7
|
lookupNote,
|
|
7
8
|
normalizeVaultPath,
|
|
8
9
|
parseNote,
|
|
9
10
|
renderCatalog,
|
|
10
11
|
replaceCatalog
|
|
11
|
-
} from "./index-
|
|
12
|
+
} from "./index-zy7an84p.js";
|
|
12
13
|
|
|
13
14
|
// src/vault.ts
|
|
14
15
|
import { randomUUID } from "crypto";
|
|
@@ -313,7 +314,7 @@ async function atomicReplace(root, path, content, expected) {
|
|
|
313
314
|
throw error;
|
|
314
315
|
}
|
|
315
316
|
}
|
|
316
|
-
async function snapshot(rootInput, options, writeIndex) {
|
|
317
|
+
async function snapshot(rootInput, options, writeIndex, completeMentions = false) {
|
|
317
318
|
const requestedRoot = resolve(rootInput);
|
|
318
319
|
const root = await realpath(requestedRoot);
|
|
319
320
|
const rootMetadata = await lstat(root);
|
|
@@ -384,14 +385,15 @@ async function snapshot(rootInput, options, writeIndex) {
|
|
|
384
385
|
catalogMode,
|
|
385
386
|
index,
|
|
386
387
|
notes,
|
|
387
|
-
analysis: analyzeVault(notes, {
|
|
388
|
+
analysis: (completeMentions ? analyzeVaultComplete : analyzeVault)(notes, {
|
|
388
389
|
catalogNoteId,
|
|
389
390
|
...options.includeInSuggestions === undefined ? {} : { includeInSuggestions: options.includeInSuggestions },
|
|
390
391
|
...mentionScopePredicate === undefined ? {} : { mentionScope: mentionScopePredicate },
|
|
391
392
|
...options.maxNotes === undefined ? {} : { maxNotes: options.maxNotes },
|
|
392
393
|
...options.maxConnectionObservations === undefined ? {} : { maxConnectionObservations: options.maxConnectionObservations },
|
|
393
394
|
...options.maxMentionPairs === undefined ? {} : { maxMentionPairs: options.maxMentionPairs },
|
|
394
|
-
...options.maxMentions === undefined ? {} : { maxMentions: options.maxMentions }
|
|
395
|
+
...options.maxMentions === undefined ? {} : { maxMentions: options.maxMentions },
|
|
396
|
+
...!completeMentions || options.mentionIndexLimits === undefined ? {} : { mentionIndexLimits: options.mentionIndexLimits }
|
|
395
397
|
})
|
|
396
398
|
};
|
|
397
399
|
}
|
|
@@ -401,5 +403,11 @@ async function scanVault(root = ".", options = {}) {
|
|
|
401
403
|
async function refreshVault(root = ".", options = {}) {
|
|
402
404
|
return snapshot(root, options, true);
|
|
403
405
|
}
|
|
406
|
+
async function scanVaultComplete(root = ".", options = {}) {
|
|
407
|
+
return snapshot(root, options, false, true);
|
|
408
|
+
}
|
|
409
|
+
async function refreshVaultComplete(root = ".", options = {}) {
|
|
410
|
+
return snapshot(root, options, true, true);
|
|
411
|
+
}
|
|
404
412
|
|
|
405
|
-
export { MAX_SCANNED_NOTES, MAX_NOTE_UTF8_BYTES, MAX_VAULT_UTF8_BYTES, VaultScanBudgetError, defaultIgnoredDirectories, markdownFiles, readVaultNotes, scanVault, refreshVault };
|
|
413
|
+
export { MAX_SCANNED_NOTES, MAX_NOTE_UTF8_BYTES, MAX_VAULT_UTF8_BYTES, VaultScanBudgetError, defaultIgnoredDirectories, markdownFiles, readVaultNotes, scanVault, refreshVault, scanVaultComplete, refreshVaultComplete };
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
GRAPH_LIMITS,
|
|
4
4
|
GraphAuthorityError,
|
|
5
5
|
validateGraphQueryRequest
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-pz2b2x0y.js";
|
|
7
7
|
import {
|
|
8
8
|
scanVault
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-8v6k9h4r.js";
|
|
10
10
|
import {
|
|
11
11
|
analyzeAuthoredRepositoryScopes
|
|
12
12
|
} from "./index-06c9ctr6.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
documentIdState,
|
|
20
20
|
isCanonicalNoteId,
|
|
21
21
|
parseNote
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-zy7an84p.js";
|
|
23
23
|
import {
|
|
24
24
|
__require
|
|
25
25
|
} from "./index-z1w83f81.js";
|
|
@@ -231,7 +231,7 @@ import { lstat, open } from "fs/promises";
|
|
|
231
231
|
var graphCacheFileSystem = { lstat, open };
|
|
232
232
|
|
|
233
233
|
// src/graph-authority.ts
|
|
234
|
-
var openOhGraphAdapter = async (...args) => await (await import("./authority-
|
|
234
|
+
var openOhGraphAdapter = async (...args) => await (await import("./authority-3ga47syb.js")).openOhGraphAdapter(...args);
|
|
235
235
|
var MAX_CACHE_BYTES = 67108864;
|
|
236
236
|
var ignoredCache = `# Disposable Wordcell graph state. Rebuild from Markdown.
|
|
237
237
|
*
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
percolateVault
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-qdb8f8va.js";
|
|
5
5
|
import {
|
|
6
6
|
createGraphSnapshot,
|
|
7
7
|
openGraphAuthority
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-f75zmmdr.js";
|
|
9
9
|
import {
|
|
10
10
|
GraphAuthorityError,
|
|
11
11
|
validateGraphPercolationOptions
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-pz2b2x0y.js";
|
|
13
13
|
import {
|
|
14
14
|
analyzeVault,
|
|
15
15
|
lookupNote,
|
|
16
16
|
parseNote
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-zy7an84p.js";
|
|
18
18
|
|
|
19
19
|
// src/graph-percolation.ts
|
|
20
20
|
async function percolateWithGraph(snapshot, options) {
|