@jelou/cli 1.70.0 → 1.71.1

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/bin/jelou +26 -2
  2. package/package.json +11 -11
package/bin/jelou CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const { execFileSync } = require("child_process");
4
+ const fs = require("fs");
4
5
  const {
5
6
  PLATFORMS,
6
7
  platformKey,
@@ -36,9 +37,32 @@ if (!binPath) {
36
37
  process.exit(1);
37
38
  }
38
39
 
40
+ // `platformBinaryPath()` resolves via require.resolve of the package.json, so it
41
+ // returns a path even when the binary file itself has been deleted (the classic
42
+ // antivirus-quarantine case: the package dir survives, the .exe does not). Guard
43
+ // against it explicitly — otherwise execFileSync throws ENOENT and the catch
44
+ // below would exit 0 (see the guard fix), reading as silent success.
45
+ if (!fs.existsSync(binPath)) {
46
+ console.error(
47
+ `@jelou/cli: platform binary is missing at\n ${binPath}\n\n` +
48
+ `The ${pkg} package is installed but its executable is gone. The most\n` +
49
+ `common cause is antivirus / endpoint-security software quarantining or\n` +
50
+ `deleting the unsigned binary. Check your antivirus quarantine, allowlist\n` +
51
+ `the binary, then reinstall:\n\n` +
52
+ ` npm uninstall -g @jelou/cli\n` +
53
+ ` npm install -g @jelou/cli\n\n` +
54
+ `You can also download a release binary manually from\n` +
55
+ `https://github.com/JelouLatam/jelou-cli/releases\n`,
56
+ );
57
+ process.exit(1);
58
+ }
59
+
39
60
  try {
40
61
  execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
41
62
  } catch (err) {
42
- if (err.status !== undefined) process.exit(err.status);
43
- throw err;
63
+ // Only a real child exit carries a numeric err.status. Signal death
64
+ // (err.status === null, err.signal set) and spawn failures like ENOENT
65
+ // (err.status === null, err.code === "ENOENT") must NOT map to exit 0.
66
+ if (typeof err.status === "number") process.exit(err.status);
67
+ process.exit(1);
44
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jelou/cli",
3
- "version": "1.70.0",
3
+ "version": "1.71.1",
4
4
  "description": "Build AI agents on the Jelou platform — from your terminal or your AI editor.",
5
5
  "author": "Jelou Inc. (https://jelou.ai)",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -23,11 +23,11 @@
23
23
  "THIRD_PARTY_NOTICES.md"
24
24
  ],
25
25
  "optionalDependencies": {
26
- "@jelou/cli-darwin-arm64": "1.70.0",
27
- "@jelou/cli-darwin-x64": "1.70.0",
28
- "@jelou/cli-linux-x64": "1.70.0",
29
- "@jelou/cli-linux-arm64": "1.70.0",
30
- "@jelou/cli-win32-x64": "1.70.0"
26
+ "@jelou/cli-darwin-arm64": "1.71.1",
27
+ "@jelou/cli-darwin-x64": "1.71.1",
28
+ "@jelou/cli-linux-x64": "1.71.1",
29
+ "@jelou/cli-linux-arm64": "1.71.1",
30
+ "@jelou/cli-win32-x64": "1.71.1"
31
31
  },
32
32
  "keywords": [
33
33
  "jelou",
@@ -58,13 +58,13 @@
58
58
  "jelou": {
59
59
  "minVersion": "1.65.0",
60
60
  "release_notes": {
61
- "version": "1.70.0",
62
- "date": "2026-07-17",
63
- "headline": "`jelou bot list` now uses the v2 bots endpoint ahead of the v1 deprecation, returning every bot in a single response.",
61
+ "version": "1.71.1",
62
+ "date": "2026-07-21",
63
+ "headline": "`jelou project list --json` now reports each project's real workflow count instead of a stale 0.",
64
64
  "highlights": [
65
65
  {
66
- "type": "improved",
67
- "text": "`jelou bot list` (and the bot eligibility / provisioning checks that back other commands) now call the `/v2/bots` endpoint instead of the deprecated `/v1/bots`, fetching every bot in one non-paginated response. No change to command usage or output shape — this keeps bot listing working once `/v1/bots` is retired."
66
+ "type": "fixed",
67
+ "text": "`jelou project list --json` reports each project's real workflow (skill) count. It previously copied a denormalized field that could read 0 for projects that actually have workflows; `jelou project show` was already correct."
68
68
  }
69
69
  ]
70
70
  }