@deleted-ai/deleted 0.1.310 → 0.1.336

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 CHANGED
@@ -2,11 +2,24 @@
2
2
 
3
3
  npm wrapper for the Deleted AI `deleted` CLI on **Linux arm64** (v0 support floor).
4
4
 
5
+ A brokered tool call with **no Rust toolchain** — Node is the only prerequisite:
6
+
7
+ ```bash
8
+ npx @deleted-ai/deleted run --starter chat-tools -- "tool:one two three"
9
+ # → completed: word-count:3
10
+ ```
11
+
5
12
  ```bash
6
13
  npx @deleted-ai/deleted web
7
14
  npx @deleted-ai/deleted init my-box
8
15
  ```
9
16
 
17
+ `--starter` runs a pre-signed bundle from `share/starter/` (`chat-tools` or
18
+ `chat-echo`). Sources for the same assembly ship in
19
+ `share/samples/chat-tools/` next to pre-built `prebuilt/*.wasm`; rebuilding them
20
+ with `deleted pack build` (Rust + `wasm-tools` 1.235.x) reproduces the shipped
21
+ binaries byte for byte.
22
+
10
23
  On install (or first run), the package extracts the bundled linux-arm64 release
11
24
  binary (or downloads from GitHub Releases when authenticated). No kernel source
12
25
  ships in this package.
Binary file
package/lib/paths.js CHANGED
@@ -62,6 +62,8 @@ export function cacheMatchesManifest(cacheDir, manifest) {
62
62
  /** @param {string} cacheDir */
63
63
  export function isInstalled(cacheDir) {
64
64
  const binary = nativeBinaryPath(cacheDir);
65
- const starter = path.join(cacheDir, 'share', 'starter', 'chat-echo', 'deployment.lock');
66
- return fs.existsSync(binary) && fs.existsSync(starter);
65
+ const starters = ['chat-echo', 'chat-tools'].map((name) =>
66
+ path.join(cacheDir, 'share', 'starter', name, 'deployment.lock'),
67
+ );
68
+ return fs.existsSync(binary) && starters.every((p) => fs.existsSync(p));
67
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deleted-ai/deleted",
3
- "version": "0.1.310",
3
+ "version": "0.1.336",
4
4
  "description": "Deleted AI CLI wrapper — downloads the linux-arm64 native binary on install",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,8 +1,9 @@
1
1
  {
2
- "version": "0.1.310",
3
- "gitSha": "262d5c4",
4
- "tarballSha256": "9a703d41bbc9087ced2526192e1e054fd30494fe3eed746772a794a75e75f82a",
2
+ "_comment": "Placeholder in git; scripts/publish-deleted-npm.sh stamps version, gitSha, and tarballSha256 at publish. Install fails closed while tarballSha256 is the zero sentinel.",
3
+ "version": "0.1.336",
4
+ "gitSha": "58fe984",
5
5
  "repo": "cdlconsultants/deleted-ai",
6
6
  "tarballPrefix": "deleted-linux-arm64",
7
- "releaseTagPrefix": "npm-v"
7
+ "releaseTagPrefix": "npm-v",
8
+ "tarballSha256": "0ae6889e4bb84a270ef44b56e2b93d801ce67d75928f8536057299ab3633a252"
8
9
  }