@hraness/wordcell 0.21.1 → 0.21.2
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 +4 -4
- package/dist/cli.js +14 -0
- package/package.json +2 -1
- package/skills/wordcell/SKILL.md +1 -1
- package/src/cli-intro.ts +5 -0
- package/src/cli-program.ts +2 -0
package/README.md
CHANGED
|
@@ -18,14 +18,14 @@ The CLI and TypeScript SDK run with Bun. Choose one installation source:
|
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
20
|
# Canonical, versioned GitHub archive
|
|
21
|
-
bun add --global --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.21.
|
|
21
|
+
bun add --global --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.21.2/hraness-wordcell-0.21.2.tgz
|
|
22
22
|
wordcell --help
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
The same release is mirrored to [npm](https://www.npmjs.com/package/@hraness/wordcell):
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
npm install --global --ignore-scripts @hraness/wordcell@0.21.
|
|
28
|
+
npm install --global --ignore-scripts @hraness/wordcell@0.21.2
|
|
29
29
|
wordcell --help
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ Install the single public Agent Skill into your choice of compatible agent,
|
|
|
39
39
|
including Claude Code, Codex, Cursor, or GitHub Copilot:
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
bunx skills add hraness/wordcell#v0.21.
|
|
42
|
+
bunx skills add hraness/wordcell#v0.21.2 --skill wordcell
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Then ask:
|
|
@@ -161,7 +161,7 @@ exist. [Graph queries and proof limits](https://github.com/hraness/wordcell/blob
|
|
|
161
161
|
Add the same immutable release to a Bun project:
|
|
162
162
|
|
|
163
163
|
```sh
|
|
164
|
-
bun add --exact --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.21.
|
|
164
|
+
bun add --exact --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.21.2/hraness-wordcell-0.21.2.tgz
|
|
165
165
|
```
|
|
166
166
|
|
|
167
167
|
The SDK provides read-only vault sessions, metadata queries, search, graph
|
package/dist/cli.js
CHANGED
|
@@ -150,6 +150,18 @@ import {
|
|
|
150
150
|
import"./index-5n05se68.js";
|
|
151
151
|
import"./index-z1w83f81.js";
|
|
152
152
|
|
|
153
|
+
// src/cli-intro.ts
|
|
154
|
+
function terminalIntro(terminal) {
|
|
155
|
+
if (terminal.isTTY !== true || terminal.term === "dumb" || (terminal.columns ?? 80) < 48)
|
|
156
|
+
return "";
|
|
157
|
+
return ` .----. /
|
|
158
|
+
| ===| / wordcell
|
|
159
|
+
| ===|/ Markdown memory for your agents.
|
|
160
|
+
|____/
|
|
161
|
+
|
|
162
|
+
`;
|
|
163
|
+
}
|
|
164
|
+
|
|
153
165
|
// src/cli-program.ts
|
|
154
166
|
import { open } from "fs/promises";
|
|
155
167
|
import { cpus, release, totalmem } from "os";
|
|
@@ -3618,6 +3630,8 @@ ${sanitizeTerminalText(usage)}`);
|
|
|
3618
3630
|
}
|
|
3619
3631
|
const command = parsed.value;
|
|
3620
3632
|
if (command.kind === "help") {
|
|
3633
|
+
if (output === defaultOutput2 && !jsonRequested)
|
|
3634
|
+
output.stdout(terminalIntro({ isTTY: process.stdout.isTTY, columns: process.stdout.columns, term: process.env.TERM }));
|
|
3621
3635
|
output.stdout(sanitizeTerminalText(usage));
|
|
3622
3636
|
return 0;
|
|
3623
3637
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hraness/wordcell",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"description": "A knowledge base for coding agents, built from Markdown, backlinks, semantic search, and Git context.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -295,6 +295,7 @@
|
|
|
295
295
|
"src/capture.ts",
|
|
296
296
|
"src/url-intelligence.ts",
|
|
297
297
|
"src/cli.ts",
|
|
298
|
+
"src/cli-intro.ts",
|
|
298
299
|
"src/cli-program.ts",
|
|
299
300
|
"src/clip/acquire.ts",
|
|
300
301
|
"src/clip/archive-today.ts",
|
package/skills/wordcell/SKILL.md
CHANGED
|
@@ -55,7 +55,7 @@ missing:
|
|
|
55
55
|
```sh
|
|
56
56
|
command -v wordcell >/dev/null 2>&1 || {
|
|
57
57
|
command -v bun >/dev/null 2>&1 || exit 1
|
|
58
|
-
bun add --global --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.21.
|
|
58
|
+
bun add --global --ignore-scripts https://github.com/hraness/wordcell/releases/download/v0.21.2/hraness-wordcell-0.21.2.tgz
|
|
59
59
|
}
|
|
60
60
|
wordcell --help
|
|
61
61
|
```
|
package/src/cli-intro.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Compact ASCII identity for interactive root help; never command output. */
|
|
2
|
+
export function terminalIntro(terminal: Readonly<{ isTTY: boolean | undefined; columns: number | undefined; term: string | undefined }>): string {
|
|
3
|
+
if (terminal.isTTY !== true || terminal.term === "dumb" || (terminal.columns ?? 80) < 48) return "";
|
|
4
|
+
return " .----. /\n | ===| / wordcell\n | ===|/ Markdown memory for your agents.\n |____/\n\n";
|
|
5
|
+
}
|
package/src/cli-program.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { terminalIntro } from "./cli-intro.js";
|
|
1
2
|
import { open } from "node:fs/promises";
|
|
2
3
|
import { cpus, release, totalmem } from "node:os";
|
|
3
4
|
import { relative, resolve } from "node:path";
|
|
@@ -3535,6 +3536,7 @@ export async function main(
|
|
|
3535
3536
|
}
|
|
3536
3537
|
const command = parsed.value;
|
|
3537
3538
|
if (command.kind === "help") {
|
|
3539
|
+
if (output === defaultOutput && !jsonRequested) output.stdout(terminalIntro({ isTTY: process.stdout.isTTY, columns: process.stdout.columns, term: process.env.TERM }));
|
|
3538
3540
|
output.stdout(sanitizeTerminalText(usage));
|
|
3539
3541
|
return 0;
|
|
3540
3542
|
}
|