@llman-sdd/cli 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/main.ts +19 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llman-sdd/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Spec-driven development workflow CLI (provides both `llman-sdd` and `llmanspec` commands)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "build": "bun run ./scripts/build-binary.ts"
29
29
  },
30
30
  "dependencies": {
31
- "@llman-sdd/core": "0.1.3",
31
+ "@llman-sdd/core": "0.1.4",
32
32
  "commander": "^15.0.0"
33
33
  },
34
34
  "engines": {
package/src/main.ts CHANGED
@@ -315,19 +315,26 @@ archive
315
315
  .option('--list', 'list entries already in the cold-backup archive')
316
316
  .action(
317
317
  async (options: { before?: string; keepRecent: string; dryRun?: boolean; list?: boolean }) => {
318
- const sz = await makeWasmSevenZip();
319
- const root = process.cwd();
320
- const io = makeIo(root);
321
- if (options.list) {
322
- for (const line of await runList(io, sz, root)) console.log(line);
323
- return;
318
+ try {
319
+ const sz = await makeWasmSevenZip();
320
+ const root = process.cwd();
321
+ const io = makeIo(root);
322
+ if (options.list) {
323
+ for (const line of await runList(io, sz, root)) console.log(line);
324
+ return;
325
+ }
326
+ const result = await runFreeze(io, sz, root, {
327
+ before: options.before,
328
+ keepRecent: Number(options.keepRecent),
329
+ dryRun: options.dryRun,
330
+ });
331
+ for (const line of result.lines) console.log(line);
332
+ } catch (error) {
333
+ // Emscripten aborts (e.g. wasm load failure) throw raw RuntimeErrors —
334
+ // keep the CLI surface one-line like thaw does.
335
+ console.error((error as Error).message);
336
+ process.exitCode = 1;
324
337
  }
325
- const result = await runFreeze(io, sz, root, {
326
- before: options.before,
327
- keepRecent: Number(options.keepRecent),
328
- dryRun: options.dryRun,
329
- });
330
- for (const line of result.lines) console.log(line);
331
338
  },
332
339
  );
333
340