@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
package/src/pdf/cli.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { lstatSync, readFileSync } from "node:fs";
|
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
|
|
4
4
|
import { redactSensitiveText } from "../clip/persist.js";
|
|
5
|
+
import { renderFailure, sentence, stderrStyle, terminalOutput } from "../cli-style.js";
|
|
5
6
|
import { sanitizeTerminalLine, sanitizeTerminalText } from "../clip/terminal.js";
|
|
6
7
|
import { parsePdfArguments, pdfUsage } from "./args.js";
|
|
7
8
|
import { runPdfCapture } from "./capture.js";
|
|
@@ -19,10 +20,10 @@ export type PdfCliOutput = {
|
|
|
19
20
|
readonly stderr: (value: string) => void;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
const defaultOutput: PdfCliOutput = {
|
|
23
|
+
const defaultOutput: PdfCliOutput = terminalOutput({
|
|
23
24
|
stdout: (value) => process.stdout.write(value),
|
|
24
25
|
stderr: (value) => process.stderr.write(value),
|
|
25
|
-
};
|
|
26
|
+
});
|
|
26
27
|
|
|
27
28
|
export type PdfCliDependencies = {
|
|
28
29
|
readonly runPdfCapture?: typeof runPdfCapture;
|
|
@@ -89,7 +90,7 @@ export async function main(
|
|
|
89
90
|
): Promise<number> {
|
|
90
91
|
const parsed = parsePdfArguments(rawArguments, environment);
|
|
91
92
|
if (!parsed.ok) {
|
|
92
|
-
output.stderr(
|
|
93
|
+
output.stderr(renderFailure(sentence(safe(parsed.message)), "wordcell pdf --help", stderrStyle(environment, output)));
|
|
93
94
|
return 2;
|
|
94
95
|
}
|
|
95
96
|
const arguments_ = parsed.value;
|
|
@@ -149,7 +150,7 @@ export async function main(
|
|
|
149
150
|
} catch (error) {
|
|
150
151
|
const message = safe(error instanceof Error ? error.message : String(error));
|
|
151
152
|
if (arguments_.json) output.stdout(terminalSafeJson({ ok: false, error: message }));
|
|
152
|
-
else output.stderr(
|
|
153
|
+
else output.stderr(renderFailure(message, "wordcell doctor", stderrStyle(environment, output)));
|
|
153
154
|
return 1;
|
|
154
155
|
} finally {
|
|
155
156
|
preparedSource?.dispose();
|
package/src/support-profile.ts
CHANGED
package/src/support.ts
CHANGED
|
@@ -52,6 +52,9 @@ export function isUsefulSupportResult(args: readonly string[], environment: Read
|
|
|
52
52
|
const metadata = parseUrlMetadataArguments(command.arguments, environment);
|
|
53
53
|
return metadata.ok && metadata.value.kind === "backfill";
|
|
54
54
|
}
|
|
55
|
+
case "mcp":
|
|
56
|
+
// stdout belongs to JSON-RPC frames, so a long-running server never invites.
|
|
57
|
+
return false;
|
|
55
58
|
default:
|
|
56
59
|
return false;
|
|
57
60
|
}
|