@candorsystems/candor-cli 0.3.137 → 0.3.138-darwin-arm64

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
@@ -12,4 +12,4 @@ candor version
12
12
  candor setup
13
13
  ```
14
14
 
15
- Version: 0.3.137
15
+ Version: 0.3.138
package/bin/candor CHANGED
@@ -1,84 +1,4 @@
1
- #!/usr/bin/env node
2
- const childProcess = require("node:child_process");
3
- const fs = require("node:fs");
4
- const path = require("node:path");
5
- const os = require("node:os");
6
-
7
- const packageName = "@candorsystems/candor-cli";
8
- const aliasPrefix = packageName;
9
- const signalExitCodes = { SIGHUP: 129, SIGINT: 130, SIGTERM: 143 };
10
-
11
- function spawnAndExit(target) {
12
- const child = childProcess.spawn(target, process.argv.slice(2), {
13
- stdio: "inherit",
14
- });
15
- child.on("error", (error) => {
16
- console.error(error.message);
17
- process.exit(1);
18
- });
19
- const forward = (signal) => {
20
- if (!child.killed) {
21
- try {
22
- child.kill(signal);
23
- } catch {}
24
- }
25
- };
26
- ["SIGINT", "SIGTERM", "SIGHUP"].forEach((signal) => {
27
- process.on(signal, () => forward(signal));
28
- });
29
- child.on("exit", (code, signal) => {
30
- if (signal) {
31
- process.exit(signalExitCodes[signal] || 1);
32
- return;
33
- }
34
- process.exit(typeof code === "number" ? code : 0);
35
- });
36
- }
37
-
38
- if (process.env.CANDOR_BIN_PATH) {
39
- spawnAndExit(process.env.CANDOR_BIN_PATH);
40
- return;
41
- }
42
-
43
- const platformMap = { darwin: "darwin", linux: "linux", win32: "win32" };
44
- const archMap = { arm64: "arm64", x64: "x64" };
45
- const platform = platformMap[os.platform()];
46
- const arch = archMap[os.arch()];
47
- const target = platform && arch ? platform + "-" + arch : undefined;
48
- const supportedTargets = new Set(["darwin-arm64","darwin-x64","linux-arm64","linux-x64","win32-x64"]);
49
-
50
- if (!target || !supportedTargets.has(target)) {
51
- console.error(
52
- "candor: npm install supports macOS and Linux on arm64/x64, and Windows on x64."
53
- );
54
- process.exit(1);
55
- }
56
-
57
- const packageAlias = aliasPrefix + "-" + platform + "-" + arch;
58
-
59
- try {
60
- const packageJson = require.resolve(packageAlias + "/package.json");
61
- const candidate = path.join(
62
- path.dirname(packageJson),
63
- "bin",
64
- platform === "win32" ? "candor.exe" : "candor"
65
- );
66
- if (fs.existsSync(candidate)) {
67
- spawnAndExit(candidate);
68
- return;
69
- }
70
- } catch {
71
- // Fall through to the actionable reinstall message below.
72
- }
73
-
74
- console.error(
75
- "candor: could not locate the platform binary for " +
76
- os.platform() +
77
- "-" +
78
- os.arch() +
79
- ".\nTried optional dependency: " +
80
- packageAlias +
81
- "\nTo fix: npm install -g " +
82
- packageName
83
- );
84
- process.exit(1);
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/bin/candor
3
+ size: 66880096 bytes
4
+ sha256: 4115aa95d2d406deb841b67bad3c3e82a80a2e75c7b274094af0c15a748f0b47
Binary file
package/package.json CHANGED
@@ -1,39 +1,23 @@
1
1
  {
2
2
  "name": "@candorsystems/candor-cli",
3
- "version": "0.3.137",
4
- "description": "Candor CLI launcher for the candor command.",
5
- "keywords": [
6
- "finance",
7
- "personal-finance",
8
- "budgeting",
9
- "money-management",
10
- "financial-planning",
11
- "ai-agent",
12
- "cli"
13
- ],
3
+ "version": "0.3.138-darwin-arm64",
4
+ "description": "Candor CLI binary for darwin-arm64.",
14
5
  "license": "UNLICENSED",
15
6
  "homepage": "https://candor.money",
16
7
  "repository": {
17
8
  "type": "git",
18
9
  "url": "git+https://github.com/candorsystems/candor-finance.git"
19
10
  },
20
- "bin": {
21
- "candor": "bin/candor"
22
- },
11
+ "os": [
12
+ "darwin"
13
+ ],
14
+ "cpu": [
15
+ "arm64"
16
+ ],
23
17
  "files": [
24
18
  "bin",
25
19
  "README.md"
26
20
  ],
27
- "optionalDependencies": {
28
- "@candorsystems/candor-cli-darwin-arm64": "npm:@candorsystems/candor-cli@0.3.137-darwin-arm64",
29
- "@candorsystems/candor-cli-darwin-x64": "npm:@candorsystems/candor-cli@0.3.137-darwin-x64",
30
- "@candorsystems/candor-cli-linux-arm64": "npm:@candorsystems/candor-cli@0.3.137-linux-arm64",
31
- "@candorsystems/candor-cli-linux-x64": "npm:@candorsystems/candor-cli@0.3.137-linux-x64",
32
- "@candorsystems/candor-cli-win32-x64": "npm:@candorsystems/candor-cli@0.3.137-win32-x64"
33
- },
34
- "engines": {
35
- "node": ">=20"
36
- },
37
21
  "publishConfig": {
38
22
  "access": "public"
39
23
  }