@blade-ai/orca 0.5.21 → 0.5.22-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/package.json CHANGED
@@ -1,43 +1,25 @@
1
1
  {
2
- "name": "@blade-ai/orca",
3
- "version": "0.5.21",
4
- "description": "Orca Agent: a DeepSeek-native terminal coding agent.",
5
- "keywords": [
6
- "orca",
7
- "orca-agent",
8
- "deepseek",
9
- "deepseek-agent",
10
- "coding-agent",
11
- "cli",
12
- "terminal",
13
- "ai-agent"
14
- ],
15
- "homepage": "https://orcaagent.dev/",
16
2
  "license": "MIT",
17
- "bin": {
18
- "orca": "bin/orca.js"
19
- },
20
- "type": "module",
21
- "engines": {
22
- "node": ">=16"
23
- },
3
+ "homepage": "https://orcaagent.dev/",
24
4
  "files": [
25
- "bin/orca.js",
26
- "bin/signals.js",
5
+ "vendor",
27
6
  "README.md",
28
7
  "LICENSE"
29
8
  ],
30
9
  "repository": {
31
10
  "type": "git",
32
- "url": "git+https://github.com/echoVic/orca-agent.git",
33
- "directory": "npm/orca"
11
+ "url": "git+https://github.com/echoVic/orca-agent.git"
12
+ },
13
+ "engines": {
14
+ "node": ">=16"
34
15
  },
35
- "optionalDependencies": {
36
- "@blade-ai/orca-darwin-arm64": "npm:@blade-ai/orca@0.5.21-darwin-arm64",
37
- "@blade-ai/orca-darwin-x64": "npm:@blade-ai/orca@0.5.21-darwin-x64",
38
- "@blade-ai/orca-linux-arm64": "npm:@blade-ai/orca@0.5.21-linux-arm64",
39
- "@blade-ai/orca-linux-x64": "npm:@blade-ai/orca@0.5.21-linux-x64",
40
- "@blade-ai/orca-win32-arm64": "npm:@blade-ai/orca@0.5.21-win32-arm64",
41
- "@blade-ai/orca-win32-x64": "npm:@blade-ai/orca@0.5.21-win32-x64"
42
- }
16
+ "name": "@blade-ai/orca",
17
+ "version": "0.5.22-darwin-arm64",
18
+ "description": "Native Orca binary for darwin/arm64.",
19
+ "os": [
20
+ "darwin"
21
+ ],
22
+ "cpu": [
23
+ "arm64"
24
+ ]
43
25
  }
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/vendor/aarch64-apple-darwin/bin/orca
3
+ size: 70662512 bytes
4
+ sha256: fde17f15d05e3dd45937b063ce2dfceeb5d862b3c189dd11baebfd89eeeb89a2
package/bin/orca.js DELETED
@@ -1,131 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { spawn } from "node:child_process";
4
- import { existsSync, realpathSync } from "node:fs";
5
- import { createRequire } from "node:module";
6
- import path from "node:path";
7
- import { fileURLToPath, pathToFileURL } from "node:url";
8
-
9
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = path.dirname(__filename);
11
- const require = createRequire(import.meta.url);
12
-
13
- // Run through npm's `.bin` link with `node --preserve-symlinks-main`, as the
14
- // release smoke runs it, this module's own URL is the link's: a module beside
15
- // it is found from the real file's directory, not the link's.
16
- const { signalDispositions } = await import(
17
- pathToFileURL(path.join(path.dirname(realpathSync(__filename)), "signals.js")).href
18
- );
19
-
20
- const TARGETS = {
21
- "darwin:arm64": {
22
- packageName: "@blade-ai/orca-darwin-arm64",
23
- targetTriple: "aarch64-apple-darwin",
24
- binaryName: "orca"
25
- },
26
- "darwin:x64": {
27
- packageName: "@blade-ai/orca-darwin-x64",
28
- targetTriple: "x86_64-apple-darwin",
29
- binaryName: "orca"
30
- },
31
- "linux:arm64": {
32
- packageName: "@blade-ai/orca-linux-arm64",
33
- targetTriple: "aarch64-unknown-linux-gnu",
34
- binaryName: "orca"
35
- },
36
- "linux:x64": {
37
- packageName: "@blade-ai/orca-linux-x64",
38
- targetTriple: "x86_64-unknown-linux-gnu",
39
- binaryName: "orca"
40
- },
41
- "win32:arm64": {
42
- packageName: "@blade-ai/orca-win32-arm64",
43
- targetTriple: "aarch64-pc-windows-msvc",
44
- binaryName: "orca.exe"
45
- },
46
- "win32:x64": {
47
- packageName: "@blade-ai/orca-win32-x64",
48
- targetTriple: "x86_64-pc-windows-msvc",
49
- binaryName: "orca.exe"
50
- }
51
- };
52
-
53
- const target = TARGETS[`${process.platform}:${process.arch}`];
54
- if (!target) {
55
- throw new Error(`Unsupported platform: ${process.platform} (${process.arch})`);
56
- }
57
-
58
- function findExecutable() {
59
- let vendorRoot;
60
- try {
61
- const packageJsonPath = require.resolve(`${target.packageName}/package.json`);
62
- vendorRoot = path.join(path.dirname(packageJsonPath), "vendor");
63
- } catch {
64
- vendorRoot = path.join(__dirname, "..", "vendor");
65
- }
66
-
67
- const executable = path.join(vendorRoot, target.targetTriple, "bin", target.binaryName);
68
- if (existsSync(executable)) {
69
- return executable;
70
- }
71
-
72
- throw new Error(
73
- `Missing optional dependency ${target.packageName}. Reinstall with: npm install -g @blade-ai/orca`
74
- );
75
- }
76
-
77
- const binaryPath = findExecutable();
78
- const env = {
79
- ...process.env,
80
- ORCA_MANAGED_BY_NPM: "1",
81
- ORCA_MANAGED_PACKAGE_ROOT: realpathSync(path.join(__dirname, "..")),
82
- ORCA_NODE_PATH: process.env.ORCA_NODE_PATH || process.execPath
83
- };
84
-
85
- // Register before spawn: a fast child can announce readiness while spawn is
86
- // still returning. SIGINT must never take Node's default exit path in that gap.
87
- let child;
88
- const pendingSignals = new Set();
89
- const dispositions = signalDispositions(process.platform);
90
- const handledSignals = Object.keys(dispositions);
91
- const forwardSignal = (signal) => {
92
- if (!child) {
93
- pendingSignals.add(signal);
94
- } else if (!child.killed) {
95
- child.kill(signal);
96
- }
97
- };
98
-
99
- for (const signal of handledSignals) {
100
- process.on(signal, dispositions[signal] === "forward" ? () => forwardSignal(signal) : () => {});
101
- }
102
-
103
- child = spawn(binaryPath, process.argv.slice(2), {
104
- stdio: "inherit",
105
- env
106
- });
107
- child.on("error", (error) => {
108
- console.error(error);
109
- process.exit(1);
110
- });
111
- for (const signal of pendingSignals) forwardSignal(signal);
112
- pendingSignals.clear();
113
-
114
- const result = await new Promise((resolve) => {
115
- child.on("exit", (code, signal) => {
116
- if (signal) {
117
- resolve({ type: "signal", signal });
118
- } else {
119
- resolve({ type: "code", exitCode: code ?? 1 });
120
- }
121
- });
122
- });
123
-
124
- if (result.type === "signal") {
125
- for (const signal of handledSignals) {
126
- process.removeAllListeners(signal);
127
- }
128
- process.kill(process.pid, result.signal);
129
- } else {
130
- process.exit(result.exitCode);
131
- }
package/bin/signals.js DELETED
@@ -1,14 +0,0 @@
1
- // What the launcher does with each signal it takes over while the native
2
- // binary runs, on `platform` (a `process.platform` value): "forward" passes
3
- // the signal on to the binary, "ignore" only keeps it from ending the launcher.
4
- //
5
- // On Windows child.kill() is TerminateProcess whatever the signal, which would
6
- // end orca.exe before it can stop its run and exit with 130. Ctrl+C is left to
7
- // the console, which delivers it to orca.exe too, as it shares the launcher's
8
- // console; the launcher stays up and exits with orca.exe's code.
9
- export function signalDispositions(platform) {
10
- if (platform === "win32") {
11
- return { SIGINT: "ignore", SIGTERM: "forward" };
12
- }
13
- return { SIGINT: "forward", SIGTERM: "forward", SIGHUP: "forward" };
14
- }