@hraness/wordcell 0.22.5 → 0.23.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/README.md +56 -18
- package/dist/authoring.js +2 -2
- package/dist/{authority-3ga47syb.js → authority-35cbvp1x.js} +2 -2
- package/dist/benchmark.js +3 -3
- package/dist/capture.js +6 -6
- package/dist/cli.js +26 -24
- package/dist/clip/acquire.js +3 -3
- package/dist/clip/args.js +1 -1
- package/dist/clip/cli.js +6 -6
- package/dist/clip/doctor.js +4 -4
- 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-bcknqxrq.js → index-0eacgvpv.js} +9 -1
- package/dist/{index-f75zmmdr.js → index-1er88ckw.js} +4 -4
- package/dist/{index-8v6k9h4r.js → index-1s8mc4hz.js} +1 -1
- package/dist/{index-de2w8crk.js → index-2fmnttca.js} +82 -15
- package/dist/{index-aer0jdrq.js → index-ahyhryb8.js} +1 -1
- package/dist/{index-f7fnww7a.js → index-b0khj0h5.js} +164 -9
- package/dist/{index-qdb8f8va.js → index-bdwcjvr4.js} +1 -1
- package/dist/{index-dfag79p7.js → index-byz4kzww.js} +3 -0
- package/dist/{index-hgve9rh2.js → index-cd75vky9.js} +96 -1
- package/dist/{index-n57tewfr.js → index-fp732bgg.js} +2 -2
- package/dist/{index-zy7an84p.js → index-jvb7w0gg.js} +5 -2
- package/dist/{index-f984hw45.js → index-k86wepd8.js} +1 -1
- package/dist/{index-1r5rnkfr.js → index-mnq2wy34.js} +2 -2
- package/dist/{index-p96kb6t2.js → index-nn67kzwa.js} +1 -1
- package/dist/{index-fc4dr114.js → index-nwrehke7.js} +1 -1
- package/dist/{index-n9kwenpt.js → index-p70t8j13.js} +1 -1
- package/dist/{index-pz2b2x0y.js → index-pgtm2nhf.js} +1 -1
- package/dist/{index-054mb7d3.js → index-qfqjfxaa.js} +10 -9
- package/dist/{index-xzvcw9ga.js → index-r0m5taz2.js} +2 -2
- package/dist/{index-h2qn3y3f.js → index-r4qs6vq4.js} +4 -4
- package/dist/{index-gtwqye5a.js → index-tcaq1c7f.js} +4 -4
- package/dist/{index-42tb8qqp.js → index-tvd2sqrx.js} +7 -7
- package/dist/{index-8bgnhjgq.js → index-vtwbapjr.js} +3810 -159
- package/dist/{index-g5vsqmdy.js → index-xwxy71ew.js} +190 -4
- package/dist/index.js +15 -13
- package/dist/pdf.js +3 -3
- 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-jf9v10j7.js → support-c8hy7qfa.js} +25 -23
- package/dist/url-intelligence.js +1 -1
- package/dist/workflows/decision-context.js +10 -10
- package/dist/workflows/index.js +10 -10
- package/package.json +11 -4
- package/skills/wordcell/AGENTS.md +1 -0
- package/skills/wordcell/SKILL.md +5 -3
- package/skills/wordcell/references/query.md +35 -1
- package/skills/wordcell/references/session-memory.md +207 -0
- package/src/authoring-import.ts +32 -0
- package/src/authoring-model.ts +185 -2
- package/src/authoring-program.ts +19 -7
- package/src/cli-help.ts +893 -0
- package/src/cli-intro.ts +1 -1
- package/src/cli-program.ts +571 -80
- package/src/cli-style.ts +132 -0
- package/src/clip/acquire.ts +20 -0
- package/src/clip/args.ts +3 -0
- package/src/clip/cli.ts +82 -5
- package/src/clip/cookie-permission.ts +241 -0
- package/src/clip/url-metadata-cli.ts +6 -5
- package/src/clip/url-metadata.ts +14 -0
- package/src/graph.ts +9 -4
- package/src/import-supermemory.ts +1629 -0
- package/src/mcp-server.ts +415 -0
- package/src/mcp-tools.ts +1122 -0
- package/src/pdf/cli.ts +5 -4
- package/src/support-profile.ts +1 -1
- package/src/support.ts +3 -0
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
countWords,
|
|
4
4
|
sniffImage
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-k86wepd8.js";
|
|
6
6
|
import {
|
|
7
|
+
renderFailure,
|
|
8
|
+
sentence,
|
|
7
9
|
slugify,
|
|
10
|
+
stderrStyle,
|
|
11
|
+
terminalOutput,
|
|
8
12
|
yamlString
|
|
9
|
-
} from "./index-
|
|
13
|
+
} from "./index-cd75vky9.js";
|
|
10
14
|
import {
|
|
11
15
|
safeFetch
|
|
12
16
|
} from "./index-e5fbsywq.js";
|
|
@@ -1858,10 +1862,10 @@ async function preparePdfSource(input, options = {}, dependencies = {}) {
|
|
|
1858
1862
|
}
|
|
1859
1863
|
|
|
1860
1864
|
// src/pdf/cli.ts
|
|
1861
|
-
var defaultOutput = {
|
|
1865
|
+
var defaultOutput = terminalOutput({
|
|
1862
1866
|
stdout: (value) => process.stdout.write(value),
|
|
1863
1867
|
stderr: (value) => process.stderr.write(value)
|
|
1864
|
-
};
|
|
1868
|
+
});
|
|
1865
1869
|
function safe(value) {
|
|
1866
1870
|
return sanitizeTerminalLine(redactSensitiveText(value));
|
|
1867
1871
|
}
|
|
@@ -1905,9 +1909,7 @@ function pdfCaptureSummary(outcome) {
|
|
|
1905
1909
|
async function main(rawArguments = process.argv.slice(2), environment = process.env, output = defaultOutput, dependencies = {}) {
|
|
1906
1910
|
const parsed = parsePdfArguments(rawArguments, environment);
|
|
1907
1911
|
if (!parsed.ok) {
|
|
1908
|
-
output.stderr(
|
|
1909
|
-
|
|
1910
|
-
${sanitizeTerminalText(pdfUsage)}`);
|
|
1912
|
+
output.stderr(renderFailure(sentence(safe(parsed.message)), "wordcell pdf --help", stderrStyle(environment, output)));
|
|
1911
1913
|
return 2;
|
|
1912
1914
|
}
|
|
1913
1915
|
const arguments_ = parsed.value;
|
|
@@ -1961,8 +1963,7 @@ ${sanitizeTerminalText(pdfUsage)}`);
|
|
|
1961
1963
|
if (arguments_.json)
|
|
1962
1964
|
output.stdout(terminalSafeJson({ ok: false, error: message }));
|
|
1963
1965
|
else
|
|
1964
|
-
output.stderr(
|
|
1965
|
-
`);
|
|
1966
|
+
output.stderr(renderFailure(message, "wordcell doctor", stderrStyle(environment, output)));
|
|
1966
1967
|
return 1;
|
|
1967
1968
|
} finally {
|
|
1968
1969
|
preparedSource?.dispose();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
scanVault
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1s8mc4hz.js";
|
|
5
5
|
import {
|
|
6
6
|
navigateLinks
|
|
7
7
|
} from "./index-d13v9ckt.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
lookupNote,
|
|
41
41
|
normalizeVaultPath
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-jvb7w0gg.js";
|
|
43
43
|
|
|
44
44
|
// src/publish.ts
|
|
45
45
|
import { createHash } from "crypto";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
MAX_SEARCH_RESULTS,
|
|
6
6
|
openKnowledgeBase,
|
|
7
7
|
validateKnowledgeBaseSearchHistory
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-tvd2sqrx.js";
|
|
9
9
|
import {
|
|
10
10
|
expandSearchRequest,
|
|
11
11
|
parseSearchRules
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./index-1gwbassd.js";
|
|
16
16
|
import {
|
|
17
17
|
validateSearchQuery
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-ahyhryb8.js";
|
|
19
19
|
import {
|
|
20
20
|
scanVault
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-1s8mc4hz.js";
|
|
22
22
|
import {
|
|
23
23
|
validateQueryOptions
|
|
24
24
|
} from "./index-48pz4jpc.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
parseVaultKey,
|
|
33
33
|
portfolioDocumentIdentity,
|
|
34
34
|
portfolioVaultIdentity
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-jvb7w0gg.js";
|
|
36
36
|
|
|
37
37
|
// src/portfolio.ts
|
|
38
38
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
percolateVault
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bdwcjvr4.js";
|
|
5
5
|
import {
|
|
6
6
|
createGraphSnapshot,
|
|
7
7
|
openGraphAuthority
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-1er88ckw.js";
|
|
9
9
|
import {
|
|
10
10
|
GraphAuthorityError,
|
|
11
11
|
validateGraphPercolationOptions
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-pgtm2nhf.js";
|
|
13
13
|
import {
|
|
14
14
|
analyzeVault,
|
|
15
15
|
lookupNote,
|
|
16
16
|
parseNote
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-jvb7w0gg.js";
|
|
18
18
|
|
|
19
19
|
// src/graph-percolation.ts
|
|
20
20
|
async function percolateWithGraph(snapshot, options) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
openSemanticSearchSession,
|
|
9
9
|
recommendedEmbeddingModel
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-fp732bgg.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-tcaq1c7f.js";
|
|
23
23
|
import {
|
|
24
24
|
openGraphAuthority
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-1er88ckw.js";
|
|
26
26
|
import {
|
|
27
27
|
validateGraphPercolationOptions,
|
|
28
28
|
validateGraphQueryRequest
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-pgtm2nhf.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-ahyhryb8.js";
|
|
45
45
|
import {
|
|
46
46
|
scanVault
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-1s8mc4hz.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-jvb7w0gg.js";
|
|
58
58
|
|
|
59
59
|
// src/sdk.ts
|
|
60
60
|
import { resolve } from "path";
|