@hyperwindmill/caretaker-cli 0.14.1 → 0.14.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAgBA,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA2E1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAgBA,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAqF1D"}
package/dist/cli/index.js CHANGED
@@ -26,8 +26,17 @@ export async function runCli(argv) {
26
26
  }
27
27
  // Read the version from package.json at runtime (relative to this module, not
28
28
  // the CWD) so it tracks the single Changesets-managed version without a static
29
- // JSON import that would break tsc's rootDir constraint.
30
- const { version } = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url), 'utf8'));
29
+ // JSON import that would break tsc's rootDir constraint. Guarded: this runs for
30
+ // every subcommand, and package.json is not always co-located with dist/ (e.g.
31
+ // the Electron desktop bundle ships dist/ only) — an unreadable file must never
32
+ // take the whole process down, only degrade the reported version.
33
+ let version = '0.0.0';
34
+ try {
35
+ version = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url), 'utf8')).version;
36
+ }
37
+ catch {
38
+ // ponytail: fall back to a placeholder version if package.json isn't bundled
39
+ }
31
40
  const program = new Command();
32
41
  program
33
42
  .name('caretaker-cli')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperwindmill/caretaker-cli",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "type": "module",
5
5
  "description": "Caretaker — in-process agent harness, TUI, file-based state.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -83,8 +83,8 @@
83
83
  "typescript": "^5.9.3",
84
84
  "typescript-eslint": "^8.59.2",
85
85
  "zod": "^4.4.3",
86
- "caretaker-types": "0.14.1",
87
- "webview-ui": "0.14.1"
86
+ "webview-ui": "0.14.2",
87
+ "caretaker-types": "0.14.2"
88
88
  },
89
89
  "dependencies": {
90
90
  "@hono/node-server": "^2.0.4",