@hraness/wordcell 0.24.0 → 0.24.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/README.md +14 -12
- package/dist/authoring.js +2 -1
- package/dist/cli.js +10 -9
- package/dist/clip/jobs.js +5 -1
- package/dist/evaluation-builder.js +5 -4
- package/dist/evaluation-kb.js +5 -4
- package/dist/graph-authority.js +2 -1
- package/dist/graph-percolation.js +3 -2
- package/dist/{index-1er88ckw.js → index-3gc2yk4k.js} +10 -5
- package/dist/{index-mvs6f7ne.js → index-59bcxqee.js} +1 -1
- package/dist/{index-1w0sp1q7.js → index-7drercgk.js} +1 -1
- package/dist/{index-tcaq1c7f.js → index-e26mdwxz.js} +1 -1
- package/dist/{index-f184qyh1.js → index-hz2wyggk.js} +1 -1
- package/dist/{index-44kw9tr8.js → index-jqkkb4fr.js} +14 -8
- package/dist/{index-5d1rd5v9.js → index-mcpppwbq.js} +2 -2
- package/dist/index-qkesh4c6.js +7 -0
- package/dist/{index-b0khj0h5.js → index-qt2zwza8.js} +6 -1
- package/dist/{index-0eacgvpv.js → index-t0fh8a1q.js} +7 -3
- package/dist/index.js +6 -5
- package/dist/portfolio.js +5 -4
- package/dist/sdk.js +4 -3
- package/dist/{support-1yhv6vm6.js → support-07jpt1z4.js} +9 -8
- package/dist/url-intelligence.js +2 -1
- package/dist/workflows/decision-context.js +5 -4
- package/dist/workflows/index.js +5 -4
- package/package.json +9 -6
- package/skills/wordcell/SKILL.md +1 -1
- package/skills/wordcell/references/publish.md +2 -1
- package/src/authoring-platform.ts +3 -0
- package/src/clip/jobs.ts +2 -1
- package/src/clip/metadata-search-tool/Cargo.lock +2 -0
- package/src/clip/metadata-search-tool/Cargo.toml +2 -0
- package/src/clip/metadata-search-tool/runner.ts +4 -1
- package/src/clip/metadata-search-tool/src/duckduckgo.rs +534 -0
- package/src/clip/metadata-search-tool/src/main.rs +31 -18
- package/src/clip/metadata-search.ts +4 -2
- package/src/clip/url-metadata.ts +2 -1
- package/src/directory-sync.ts +9 -0
- package/src/graph-authority.ts +5 -2
package/README.md
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
[](https://github.com/hraness/wordcell/tree/main/skills/wordcell)
|
|
5
5
|
|
|
6
|
-
Wordcell
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
Wordcell is a Markdown knowledge base and local MCP memory server for coding
|
|
7
|
+
agents such as Claude Code, Codex, and Cursor. It keeps decisions, plans, and
|
|
8
|
+
sources as Markdown files beside your code, and agents find them by exact
|
|
9
|
+
words, by meaning with an optional local model, or from the file they are
|
|
10
|
+
about to change.
|
|
9
11
|
|
|
10
12
|
A new coding-agent session can read your code, but not the decisions that
|
|
11
13
|
stayed in the last session's chat. Wordcell keeps those decisions as Markdown
|
|
@@ -20,7 +22,7 @@ Web capture, optional hosted reranking, and your agent's provider reach other
|
|
|
20
22
|
services; [Privacy and boundaries](#privacy-and-boundaries) says what each one
|
|
21
23
|
sends.
|
|
22
24
|
|
|
23
|
-
[Documentation](https://wordcell.io/docs) · [Comparisons](https://
|
|
25
|
+
[Documentation](https://wordcell.io/docs) · [Comparisons](https://wordcell.io/docs/comparisons) · [Measured evidence](https://wordcell.io/docs/evidence) · [Changelog](https://github.com/hraness/wordcell/blob/main/CHANGELOG.md)
|
|
24
26
|
|
|
25
27
|
## Why Wordcell
|
|
26
28
|
|
|
@@ -42,7 +44,7 @@ sends.
|
|
|
42
44
|
Plain Markdown may be enough for a small set of notes. QMD is a good fit for
|
|
43
45
|
local document retrieval and also supplies Wordcell's optional semantic search.
|
|
44
46
|
Wordcell adds a connected workflow for repository context, authored relationships,
|
|
45
|
-
Git evidence, and selective publishing. [Compare the tradeoffs](https://
|
|
47
|
+
Git evidence, and selective publishing. [Compare the tradeoffs](https://wordcell.io/docs/comparisons).
|
|
46
48
|
|
|
47
49
|
Wordcell keeps the record in Markdown files you own, rebuilds every index from those files, and lets the next session start from the notes for the file it is changing: the design every Hraness project shares. [The thread through hraness](https://hraness.com/writing/the-thread-through-hraness) follows that design across the projects, and the [ALGAL vision](https://algal.computer/docs/vision/) states the bet behind it.
|
|
48
50
|
|
|
@@ -52,14 +54,14 @@ Wordcell keeps the record in Markdown files you own, rebuilds every index from t
|
|
|
52
54
|
The CLI and TypeScript SDK run with Bun. Install the versioned GitHub archive:
|
|
53
55
|
|
|
54
56
|
```sh
|
|
55
|
-
bun add --global --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.24.
|
|
57
|
+
bun add --global --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.24.1/hraness-wordcell-0.24.1.tgz
|
|
56
58
|
wordcell --help
|
|
57
59
|
```
|
|
58
60
|
|
|
59
61
|
Prefer npm? The same release is [mirrored there](https://www.npmjs.com/package/@hraness/wordcell):
|
|
60
62
|
|
|
61
63
|
```sh
|
|
62
|
-
npm install --global --ignore-scripts @hraness/wordcell@0.24.
|
|
64
|
+
npm install --global --ignore-scripts @hraness/wordcell@0.24.1
|
|
63
65
|
wordcell --help
|
|
64
66
|
```
|
|
65
67
|
|
|
@@ -101,7 +103,7 @@ After trying the CLI, install the public Agent Skill into a compatible agent,
|
|
|
101
103
|
such as Claude Code, Codex, Cursor, or GitHub Copilot:
|
|
102
104
|
|
|
103
105
|
```sh
|
|
104
|
-
bunx skills add hraness/wordcell#v0.24.
|
|
106
|
+
bunx skills add hraness/wordcell#v0.24.1 --skill wordcell
|
|
105
107
|
```
|
|
106
108
|
|
|
107
109
|
Then ask:
|
|
@@ -270,9 +272,9 @@ Wordcell's benefit is selecting relevant context and keeping its sources
|
|
|
270
272
|
inspectable. Local ownership is also available in other tools, and Wordcell
|
|
271
273
|
does not claim to beat QMD's retrieval quality or every Markdown workflow.
|
|
272
274
|
|
|
273
|
-
[Measured evidence](https://
|
|
275
|
+
[Measured evidence](https://wordcell.io/docs/evidence)
|
|
274
276
|
shows a reproducible public-vault example, with the inputs, output sizes, and
|
|
275
|
-
limits beside each result. [The comparison guide](https://
|
|
277
|
+
limits beside each result. [The comparison guide](https://wordcell.io/docs/comparisons)
|
|
276
278
|
covers Markdown alone, QMD, Basic Memory, Obsidian, static publishing tools,
|
|
277
279
|
Supermemory, Mem0, and Zep using their own documentation. Choose the smallest
|
|
278
280
|
workflow that meets your needs.
|
|
@@ -332,7 +334,7 @@ exist. [Graph queries and proof limits](https://github.com/hraness/wordcell/blob
|
|
|
332
334
|
Add the same immutable release to a Bun project:
|
|
333
335
|
|
|
334
336
|
```sh
|
|
335
|
-
bun add --exact --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.24.
|
|
337
|
+
bun add --exact --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.24.1/hraness-wordcell-0.24.1.tgz
|
|
336
338
|
```
|
|
337
339
|
|
|
338
340
|
The SDK provides read-only vault sessions, metadata queries, search, graph
|
|
@@ -369,7 +371,7 @@ the design. Browse it on the [documentation index](https://wordcell.io/docs).
|
|
|
369
371
|
| [Web capture](https://github.com/hraness/wordcell/blob/main/docs/capture.md) and [PDF capture](https://github.com/hraness/wordcell/blob/main/docs/pdf.md) | Save sources with provenance, assets, and explicit completeness limits. |
|
|
370
372
|
| [Publish selected notes](https://github.com/hraness/wordcell/blob/main/docs/publish.md) | Preview a slice, build a static site, and choose how to host it. |
|
|
371
373
|
| [Graph guide](https://github.com/hraness/wordcell/blob/main/docs/graph-authority.md) | Named queries, proofs, revisions, resource limits, and cache recovery. |
|
|
372
|
-
| [
|
|
374
|
+
| [Search several vaults together](https://github.com/hraness/wordcell/blob/main/docs/portfolio.md) | Search only selected, authorized vaults. |
|
|
373
375
|
| [Sync with Git](https://github.com/hraness/wordcell/blob/main/docs/sync.md) | Keep one vault current on several machines with a private repository. |
|
|
374
376
|
| [Migrate from Supermemory](https://github.com/hraness/wordcell/blob/main/docs/migration-from-supermemory.md) | Export documents and memory entries, import them as notes, and replace connectors. |
|
|
375
377
|
| [Design](https://github.com/hraness/wordcell/blob/main/docs/design.md) and [memory rationale](https://github.com/hraness/wordcell/blob/main/docs/agent-memory.md) | File contracts, design choices, and evaluation context. |
|
package/dist/authoring.js
CHANGED
|
@@ -14,8 +14,9 @@ import {
|
|
|
14
14
|
noteRevision,
|
|
15
15
|
removeNoteRelation,
|
|
16
16
|
updateNoteBody
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-qt2zwza8.js";
|
|
18
18
|
import"./index-3rm7cz6h.js";
|
|
19
|
+
import"./index-qkesh4c6.js";
|
|
19
20
|
import"./index-jvb7w0gg.js";
|
|
20
21
|
import"./index-z1w83f81.js";
|
|
21
22
|
export {
|
package/dist/cli.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
parseArguments,
|
|
7
7
|
runExecutable,
|
|
8
8
|
usage
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-jqkkb4fr.js";
|
|
10
|
+
import"./index-t0fh8a1q.js";
|
|
11
11
|
import"./index-qfqjfxaa.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-hz2wyggk.js";
|
|
13
13
|
import"./index-j4zgmzjr.js";
|
|
14
14
|
import"./index-2fmnttca.js";
|
|
15
15
|
import"./index-6jcz0m1c.js";
|
|
@@ -28,16 +28,16 @@ import"./index-mxxxytys.js";
|
|
|
28
28
|
import"./index-23z4zxgg.js";
|
|
29
29
|
import"./index-pj501bh1.js";
|
|
30
30
|
import"./index-9rf81m0p.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-59bcxqee.js";
|
|
32
|
+
import"./index-mcpppwbq.js";
|
|
33
33
|
import"./index-adx6khj5.js";
|
|
34
34
|
import"./index-fp732bgg.js";
|
|
35
35
|
import"./index-4j3tt0c3.js";
|
|
36
36
|
import"./index-j70m75wd.js";
|
|
37
37
|
import"./index-b88v3vtm.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-e26mdwxz.js";
|
|
39
39
|
import"./index-bdwcjvr4.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-3gc2yk4k.js";
|
|
41
41
|
import"./index-pgtm2nhf.js";
|
|
42
42
|
import"./index-1gwbassd.js";
|
|
43
43
|
import"./index-ahyhryb8.js";
|
|
@@ -53,8 +53,9 @@ import"./index-23m6bbjt.js";
|
|
|
53
53
|
import"./index-hya40gb2.js";
|
|
54
54
|
import"./index-5vwpzb5a.js";
|
|
55
55
|
import"./index-x3fthpsc.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-qt2zwza8.js";
|
|
57
57
|
import"./index-3rm7cz6h.js";
|
|
58
|
+
import"./index-qkesh4c6.js";
|
|
58
59
|
import"./index-jvb7w0gg.js";
|
|
59
60
|
import {
|
|
60
61
|
__require
|
|
@@ -62,7 +63,7 @@ import {
|
|
|
62
63
|
|
|
63
64
|
// src/cli.ts
|
|
64
65
|
if (import.meta.main) {
|
|
65
|
-
const { standaloneSupportEnvironment, isUsefulSupportResult, runProductSupportCommand, showProductSupportInvitation } = await import("./support-
|
|
66
|
+
const { standaloneSupportEnvironment, isUsefulSupportResult, runProductSupportCommand, showProductSupportInvitation } = await import("./support-07jpt1z4.js");
|
|
66
67
|
const env = standaloneSupportEnvironment();
|
|
67
68
|
const args = process.argv.slice(2);
|
|
68
69
|
if (args[0] === "support") {
|
package/dist/clip/jobs.js
CHANGED
|
@@ -9,6 +9,9 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
acquireFileLease
|
|
11
11
|
} from "../index-3rm7cz6h.js";
|
|
12
|
+
import {
|
|
13
|
+
syncsDirectories
|
|
14
|
+
} from "../index-qkesh4c6.js";
|
|
12
15
|
import"../index-z1w83f81.js";
|
|
13
16
|
|
|
14
17
|
// src/clip/jobs.ts
|
|
@@ -360,7 +363,8 @@ async function fsyncStore(store) {
|
|
|
360
363
|
if (!stat.isDirectory() || !sameIdentity(stat, expected)) {
|
|
361
364
|
throw new CaptureJobSafetyError("Capture job store changed before synchronization.");
|
|
362
365
|
}
|
|
363
|
-
|
|
366
|
+
if (syncsDirectories())
|
|
367
|
+
await handle.sync();
|
|
364
368
|
} finally {
|
|
365
369
|
await handle.close();
|
|
366
370
|
}
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
knowledgeBaseEvaluationRetrieverIds,
|
|
5
5
|
openKnowledgeBaseEvaluation,
|
|
6
6
|
verifyFrozenEvaluationSnapshot
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-59bcxqee.js";
|
|
8
|
+
import"./index-mcpppwbq.js";
|
|
9
9
|
import"./index-adx6khj5.js";
|
|
10
10
|
import {
|
|
11
11
|
indexSemanticVault,
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
MAX_EVALUATION_EVIDENCE_BYTES,
|
|
20
20
|
MAX_EVALUATION_RESULTS_PER_QUERY
|
|
21
21
|
} from "./index-b88v3vtm.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-e26mdwxz.js";
|
|
23
23
|
import"./index-bdwcjvr4.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-3gc2yk4k.js";
|
|
25
25
|
import"./index-pgtm2nhf.js";
|
|
26
26
|
import {
|
|
27
27
|
runGitCommand
|
|
@@ -36,6 +36,7 @@ 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-qkesh4c6.js";
|
|
39
40
|
import"./index-jvb7w0gg.js";
|
|
40
41
|
import"./index-z1w83f81.js";
|
|
41
42
|
|
package/dist/evaluation-kb.js
CHANGED
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
knowledgeBaseEvaluationRetrieverIds,
|
|
5
5
|
openKnowledgeBaseEvaluation,
|
|
6
6
|
verifyFrozenEvaluationSnapshot
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-59bcxqee.js";
|
|
8
|
+
import"./index-mcpppwbq.js";
|
|
9
9
|
import"./index-adx6khj5.js";
|
|
10
10
|
import"./index-fp732bgg.js";
|
|
11
11
|
import"./index-4j3tt0c3.js";
|
|
12
12
|
import"./index-j70m75wd.js";
|
|
13
13
|
import"./index-b88v3vtm.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-e26mdwxz.js";
|
|
15
15
|
import"./index-bdwcjvr4.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-3gc2yk4k.js";
|
|
17
17
|
import"./index-pgtm2nhf.js";
|
|
18
18
|
import"./index-1gwbassd.js";
|
|
19
19
|
import"./index-ahyhryb8.js";
|
|
@@ -24,6 +24,7 @@ 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-qkesh4c6.js";
|
|
27
28
|
import"./index-jvb7w0gg.js";
|
|
28
29
|
import"./index-z1w83f81.js";
|
|
29
30
|
export {
|
package/dist/graph-authority.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
queryGraph,
|
|
6
6
|
rebuildGraph,
|
|
7
7
|
verifyGraph
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-3gc2yk4k.js";
|
|
9
9
|
import {
|
|
10
10
|
GRAPH_LIMITS,
|
|
11
11
|
GraphAuthorityError,
|
|
@@ -15,6 +15,7 @@ import"./index-1s8mc4hz.js";
|
|
|
15
15
|
import"./index-06c9ctr6.js";
|
|
16
16
|
import"./index-5vwpzb5a.js";
|
|
17
17
|
import"./index-3rm7cz6h.js";
|
|
18
|
+
import"./index-qkesh4c6.js";
|
|
18
19
|
import"./index-jvb7w0gg.js";
|
|
19
20
|
import"./index-z1w83f81.js";
|
|
20
21
|
export {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
percolateWithGraph
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-e26mdwxz.js";
|
|
5
5
|
import"./index-bdwcjvr4.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-3gc2yk4k.js";
|
|
7
7
|
import"./index-pgtm2nhf.js";
|
|
8
8
|
import"./index-1s8mc4hz.js";
|
|
9
9
|
import"./index-06c9ctr6.js";
|
|
10
10
|
import"./index-5vwpzb5a.js";
|
|
11
11
|
import"./index-3rm7cz6h.js";
|
|
12
|
+
import"./index-qkesh4c6.js";
|
|
12
13
|
import"./index-jvb7w0gg.js";
|
|
13
14
|
import"./index-z1w83f81.js";
|
|
14
15
|
export {
|
|
@@ -13,6 +13,9 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
acquireFileLease
|
|
15
15
|
} from "./index-3rm7cz6h.js";
|
|
16
|
+
import {
|
|
17
|
+
syncsDirectories
|
|
18
|
+
} from "./index-qkesh4c6.js";
|
|
16
19
|
import {
|
|
17
20
|
VaultAnalysisBudgetError,
|
|
18
21
|
analyzeVault,
|
|
@@ -443,11 +446,13 @@ async function rebuildGraph(rootInput, options = {}) {
|
|
|
443
446
|
await handle.close();
|
|
444
447
|
}
|
|
445
448
|
await rename(stagedPath, path);
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
449
|
+
if (syncsDirectories()) {
|
|
450
|
+
const directory = await graphCacheFileSystem.open(cache, constants.O_RDONLY);
|
|
451
|
+
try {
|
|
452
|
+
await directory.sync();
|
|
453
|
+
} finally {
|
|
454
|
+
await directory.close();
|
|
455
|
+
}
|
|
451
456
|
}
|
|
452
457
|
return result;
|
|
453
458
|
} finally {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
backfillSavedUrlMetadata,
|
|
4
4
|
createRustMetadataSearchProvider,
|
|
5
5
|
savedSourceProblem
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-t0fh8a1q.js";
|
|
7
7
|
import {
|
|
8
8
|
main as main2
|
|
9
9
|
} from "./index-qfqjfxaa.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
loadPortfolioRegistry,
|
|
14
14
|
openKnowledgePortfolio,
|
|
15
15
|
snapshotPortfolioRegistry
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-hz2wyggk.js";
|
|
17
17
|
import {
|
|
18
18
|
diffCaptureBundle
|
|
19
19
|
} from "./index-j4zgmzjr.js";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
knowledgeBaseEvaluationRetrieverIds,
|
|
53
53
|
openKnowledgeBaseEvaluation
|
|
54
|
-
} from "./index-
|
|
54
|
+
} from "./index-59bcxqee.js";
|
|
55
55
|
import {
|
|
56
56
|
DEFAULT_SEARCH_RESULTS,
|
|
57
57
|
MAX_SEARCH_CANDIDATES,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
MAX_SEARCH_RESULTS,
|
|
61
61
|
openKnowledgeBase,
|
|
62
62
|
searchEvidenceRank
|
|
63
|
-
} from "./index-
|
|
63
|
+
} from "./index-mcpppwbq.js";
|
|
64
64
|
import {
|
|
65
65
|
MAX_SEARCH_RULE_CONFIG_BYTES,
|
|
66
66
|
parseSearchRules
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
} from "./index-b88v3vtm.js";
|
|
86
86
|
import {
|
|
87
87
|
percolateWithGraph
|
|
88
|
-
} from "./index-
|
|
88
|
+
} from "./index-e26mdwxz.js";
|
|
89
89
|
import {
|
|
90
90
|
MAX_PERCOLATION_MENTIONS,
|
|
91
91
|
MAX_PERCOLATION_MENTION_PAIRS,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
queryGraph,
|
|
98
98
|
rebuildGraph,
|
|
99
99
|
verifyGraph
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-3gc2yk4k.js";
|
|
101
101
|
import {
|
|
102
102
|
validateGraphQueryRequest
|
|
103
103
|
} from "./index-pgtm2nhf.js";
|
|
@@ -184,7 +184,10 @@ import {
|
|
|
184
184
|
sha256,
|
|
185
185
|
updateNoteBody,
|
|
186
186
|
updateNoteBodyProgram
|
|
187
|
-
} from "./index-
|
|
187
|
+
} from "./index-qt2zwza8.js";
|
|
188
|
+
import {
|
|
189
|
+
syncsDirectories
|
|
190
|
+
} from "./index-qkesh4c6.js";
|
|
188
191
|
import {
|
|
189
192
|
isMetadataNumber,
|
|
190
193
|
lookupNote,
|
|
@@ -440,7 +443,10 @@ function installMetadataSearchExecutable(input) {
|
|
|
440
443
|
const backupName = `.${executableName}.${process.pid}.${randomUUID()}.backup`;
|
|
441
444
|
const stagingPath = join(toolDirectory, stagingName);
|
|
442
445
|
const backupPath = join(toolDirectory, backupName);
|
|
443
|
-
const syncDirectory = input.syncDirectory ?? ((descriptor) =>
|
|
446
|
+
const syncDirectory = input.syncDirectory ?? ((descriptor) => {
|
|
447
|
+
if (syncsDirectories())
|
|
448
|
+
fsyncSync(descriptor);
|
|
449
|
+
});
|
|
444
450
|
const toolBinding = openBoundDirectory(toolDirectory, "metadata-search tool directory");
|
|
445
451
|
let targetBinding = null;
|
|
446
452
|
let releaseBinding = null;
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
} from "./index-j70m75wd.js";
|
|
20
20
|
import {
|
|
21
21
|
percolateWithGraph
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-e26mdwxz.js";
|
|
23
23
|
import {
|
|
24
24
|
openGraphAuthority
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-3gc2yk4k.js";
|
|
26
26
|
import {
|
|
27
27
|
validateGraphPercolationOptions,
|
|
28
28
|
validateGraphQueryRequest
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
acquireNoteLock
|
|
4
4
|
} from "./index-3rm7cz6h.js";
|
|
5
|
+
import {
|
|
6
|
+
syncsDirectories
|
|
7
|
+
} from "./index-qkesh4c6.js";
|
|
5
8
|
import {
|
|
6
9
|
isCanonicalNoteId,
|
|
7
10
|
isCanonicalRelationPredicate,
|
|
@@ -844,7 +847,9 @@ async function cleanupTemporary(temporaryPath, identity) {
|
|
|
844
847
|
throw error;
|
|
845
848
|
}
|
|
846
849
|
}
|
|
847
|
-
async function fsyncDirectory(path, openDirectory = open) {
|
|
850
|
+
async function fsyncDirectory(path, openDirectory = open, platform = process.platform) {
|
|
851
|
+
if (!syncsDirectories(platform))
|
|
852
|
+
return;
|
|
848
853
|
const handle = await openDirectory(path, constants.O_RDONLY);
|
|
849
854
|
try {
|
|
850
855
|
await handle.sync();
|
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
sanitizeArtifactUrl
|
|
16
16
|
} from "./index-mxxxytys.js";
|
|
17
|
+
import {
|
|
18
|
+
syncsDirectories
|
|
19
|
+
} from "./index-qkesh4c6.js";
|
|
17
20
|
|
|
18
21
|
// src/clip/metadata-search.ts
|
|
19
22
|
import { spawn } from "child_process";
|
|
@@ -320,7 +323,7 @@ async function resolveEngineHosts(resolver, timeoutMs) {
|
|
|
320
323
|
allowPrivateNetwork: false,
|
|
321
324
|
timeoutMs
|
|
322
325
|
});
|
|
323
|
-
if (addresses.length === 0
|
|
326
|
+
if (addresses.length === 0) {
|
|
324
327
|
throw new Error("metadata search engine DNS answer count is invalid");
|
|
325
328
|
}
|
|
326
329
|
const unique = new Map;
|
|
@@ -333,7 +336,7 @@ async function resolveEngineHosts(resolver, timeoutMs) {
|
|
|
333
336
|
throw new Error("metadata search engine DNS answer is duplicated");
|
|
334
337
|
return Object.freeze({
|
|
335
338
|
hostname,
|
|
336
|
-
addresses: Object.freeze([...unique.values()].sort((left, right) => left.family - right.family || (left.address < right.address ? -1 : left.address > right.address ? 1 : 0)))
|
|
339
|
+
addresses: Object.freeze([...unique.values()].sort((left, right) => left.family - right.family || (left.address < right.address ? -1 : left.address > right.address ? 1 : 0)).slice(0, MAX_ENGINE_ADDRESSES))
|
|
337
340
|
});
|
|
338
341
|
}));
|
|
339
342
|
return Object.freeze(resolved);
|
|
@@ -1524,7 +1527,8 @@ function writeUrlMetadataDocument(saved, document) {
|
|
|
1524
1527
|
throw new Error(`URL metadata sidecar failed post-install verification: ${saved.sidecarPath}`);
|
|
1525
1528
|
}
|
|
1526
1529
|
assertHeldUrlMetadataWriteLockCurrent(heldLock);
|
|
1527
|
-
|
|
1530
|
+
if (syncsDirectories())
|
|
1531
|
+
fsyncSync2(directoryDescriptor);
|
|
1528
1532
|
return { changed: true, path: saved.sidecarPath };
|
|
1529
1533
|
} catch (error) {
|
|
1530
1534
|
operationError = error;
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
knowledgeBaseEvaluationRetrieverIds,
|
|
38
38
|
openKnowledgeBaseEvaluation,
|
|
39
39
|
verifyFrozenEvaluationSnapshot
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-59bcxqee.js";
|
|
41
41
|
import {
|
|
42
42
|
DEFAULT_SEARCH_RESULTS,
|
|
43
43
|
MAX_SEARCH_CANDIDATES,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
packUntrustedSearchContext,
|
|
51
51
|
searchEvidenceRank,
|
|
52
52
|
validateKnowledgeBaseSearchHistory
|
|
53
|
-
} from "./index-
|
|
53
|
+
} from "./index-mcpppwbq.js";
|
|
54
54
|
import"./index-adx6khj5.js";
|
|
55
55
|
import {
|
|
56
56
|
MAX_EMBEDDING_MODEL_BYTES,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
} from "./index-b88v3vtm.js";
|
|
95
95
|
import {
|
|
96
96
|
percolateWithGraph
|
|
97
|
-
} from "./index-
|
|
97
|
+
} from "./index-e26mdwxz.js";
|
|
98
98
|
import {
|
|
99
99
|
DEFAULT_PERCOLATION_LIMIT,
|
|
100
100
|
DEFAULT_PERCOLATION_MIN_SUPPORT,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
queryGraph,
|
|
123
123
|
rebuildGraph,
|
|
124
124
|
verifyGraph
|
|
125
|
-
} from "./index-
|
|
125
|
+
} from "./index-3gc2yk4k.js";
|
|
126
126
|
import {
|
|
127
127
|
GRAPH_LIMITS,
|
|
128
128
|
GraphAuthorityError,
|
|
@@ -297,8 +297,9 @@ import {
|
|
|
297
297
|
noteRevision,
|
|
298
298
|
removeNoteRelation,
|
|
299
299
|
updateNoteBody
|
|
300
|
-
} from "./index-
|
|
300
|
+
} from "./index-qt2zwza8.js";
|
|
301
301
|
import"./index-3rm7cz6h.js";
|
|
302
|
+
import"./index-qkesh4c6.js";
|
|
302
303
|
import {
|
|
303
304
|
MAX_ANALYZED_NOTES,
|
|
304
305
|
MAX_CONNECTION_OBSERVATIONS,
|
package/dist/portfolio.js
CHANGED
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
selectAuthorizedVaults,
|
|
21
21
|
snapshotPortfolioRegistry,
|
|
22
22
|
validateResolvedPortfolioVaults
|
|
23
|
-
} from "./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
} from "./index-hz2wyggk.js";
|
|
24
|
+
import"./index-mcpppwbq.js";
|
|
25
25
|
import"./index-adx6khj5.js";
|
|
26
26
|
import"./index-fp732bgg.js";
|
|
27
27
|
import"./index-4j3tt0c3.js";
|
|
28
28
|
import"./index-j70m75wd.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-e26mdwxz.js";
|
|
30
30
|
import"./index-bdwcjvr4.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-3gc2yk4k.js";
|
|
32
32
|
import"./index-pgtm2nhf.js";
|
|
33
33
|
import"./index-1gwbassd.js";
|
|
34
34
|
import"./index-ahyhryb8.js";
|
|
@@ -40,6 +40,7 @@ import"./index-06c9ctr6.js";
|
|
|
40
40
|
import"./index-5vwpzb5a.js";
|
|
41
41
|
import"./index-x3fthpsc.js";
|
|
42
42
|
import"./index-3rm7cz6h.js";
|
|
43
|
+
import"./index-qkesh4c6.js";
|
|
43
44
|
import {
|
|
44
45
|
MAX_DOCUMENT_ID_BYTES,
|
|
45
46
|
MAX_PORTFOLIO_NAME_BYTES,
|
package/dist/sdk.js
CHANGED
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
packUntrustedSearchContext,
|
|
12
12
|
searchEvidenceRank,
|
|
13
13
|
validateKnowledgeBaseSearchHistory
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-mcpppwbq.js";
|
|
15
15
|
import"./index-adx6khj5.js";
|
|
16
16
|
import"./index-fp732bgg.js";
|
|
17
17
|
import"./index-4j3tt0c3.js";
|
|
18
18
|
import"./index-j70m75wd.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-e26mdwxz.js";
|
|
20
20
|
import"./index-bdwcjvr4.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-3gc2yk4k.js";
|
|
22
22
|
import"./index-pgtm2nhf.js";
|
|
23
23
|
import"./index-1gwbassd.js";
|
|
24
24
|
import"./index-ahyhryb8.js";
|
|
@@ -29,6 +29,7 @@ import"./index-48pz4jpc.js";
|
|
|
29
29
|
import"./index-06c9ctr6.js";
|
|
30
30
|
import"./index-5vwpzb5a.js";
|
|
31
31
|
import"./index-3rm7cz6h.js";
|
|
32
|
+
import"./index-qkesh4c6.js";
|
|
32
33
|
import"./index-jvb7w0gg.js";
|
|
33
34
|
import"./index-z1w83f81.js";
|
|
34
35
|
export {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseArguments as parseArguments2,
|
|
4
4
|
parseUrlMetadataArguments
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
5
|
+
} from "./index-jqkkb4fr.js";
|
|
6
|
+
import"./index-t0fh8a1q.js";
|
|
7
7
|
import {
|
|
8
8
|
parsePdfArguments
|
|
9
9
|
} from "./index-qfqjfxaa.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-hz2wyggk.js";
|
|
11
11
|
import"./index-j4zgmzjr.js";
|
|
12
12
|
import"./index-2fmnttca.js";
|
|
13
13
|
import"./index-6jcz0m1c.js";
|
|
@@ -28,16 +28,16 @@ import"./index-mxxxytys.js";
|
|
|
28
28
|
import"./index-23z4zxgg.js";
|
|
29
29
|
import"./index-pj501bh1.js";
|
|
30
30
|
import"./index-9rf81m0p.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-59bcxqee.js";
|
|
32
|
+
import"./index-mcpppwbq.js";
|
|
33
33
|
import"./index-adx6khj5.js";
|
|
34
34
|
import"./index-fp732bgg.js";
|
|
35
35
|
import"./index-4j3tt0c3.js";
|
|
36
36
|
import"./index-j70m75wd.js";
|
|
37
37
|
import"./index-b88v3vtm.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-e26mdwxz.js";
|
|
39
39
|
import"./index-bdwcjvr4.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-3gc2yk4k.js";
|
|
41
41
|
import"./index-pgtm2nhf.js";
|
|
42
42
|
import"./index-1gwbassd.js";
|
|
43
43
|
import"./index-ahyhryb8.js";
|
|
@@ -53,8 +53,9 @@ import"./index-23m6bbjt.js";
|
|
|
53
53
|
import"./index-hya40gb2.js";
|
|
54
54
|
import"./index-5vwpzb5a.js";
|
|
55
55
|
import"./index-x3fthpsc.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-qt2zwza8.js";
|
|
57
57
|
import"./index-3rm7cz6h.js";
|
|
58
|
+
import"./index-qkesh4c6.js";
|
|
58
59
|
import"./index-jvb7w0gg.js";
|
|
59
60
|
import"./index-z1w83f81.js";
|
|
60
61
|
|