oonacode 0.3.201 → 0.3.202
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/bin/oona.js +28 -15
- package/package.json +3 -3
- package/postinstall.mjs +12 -3
package/bin/oona.js
CHANGED
|
@@ -28,8 +28,8 @@ const PLATFORM_PACKAGES = {
|
|
|
28
28
|
// 'win32-arm64': 'oonacode-win32-arm64', // deferred
|
|
29
29
|
// 'linux-arm64': 'oonacode-linux-arm64', // deferred — install.sh refuses aarch64 for the
|
|
30
30
|
// same reason: nothing is published for it
|
|
31
|
-
// 'darwin-x64': 'oonacode-darwin-x64', //
|
|
32
|
-
// 'darwin-arm64': 'oonacode-darwin-arm64', //
|
|
31
|
+
// 'darwin-x64': 'oonacode-darwin-x64', // built (mac-builder.sh), NOT published: unsigned
|
|
32
|
+
// 'darwin-arm64': 'oonacode-darwin-arm64', // not built yet
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
const IS_WIN = process.platform === 'win32';
|
|
@@ -41,22 +41,35 @@ const EXE_NAME = IS_WIN ? 'oona.exe' : 'oona';
|
|
|
41
41
|
const ENGINE_NAMES = IS_WIN ? ['oonaclaude.exe', 'claude.exe'] : ['oonaclaude', 'claude'];
|
|
42
42
|
const PLATFORM_KEY = `${process.platform}-${process.arch}`;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
'',
|
|
51
|
-
' Fixes:',
|
|
52
|
-
' - npm: reinstall with optional dependencies enabled (do not use --no-optional / --omit=optional)',
|
|
53
|
-
' - pnpm: allow the trusted postinstall: pnpm approve-builds (or add "oonacode" to pnpm.onlyBuiltDependencies)',
|
|
54
|
-
' - bun: bun pm trust oonacode',
|
|
55
|
-
' - or install without npm (recommended on Windows):',
|
|
56
|
-
' irm https://oonacode.oonak.ai/install.ps1 | iex',
|
|
44
|
+
// macOS: a build exists (packaging/mac-builder.sh) but is NOT published — it is unsigned, and Apple
|
|
45
|
+
// signing is the owner's decision (2026-10-03) — so npm has nothing to install on a Mac, and says so
|
|
46
|
+
// in words instead of a list of fixes that cannot work.
|
|
47
|
+
const MAC_HINT = [
|
|
48
|
+
`oonacode: OonaCode publishes no macOS build yet (${PLATFORM_KEY}): the macOS app is not signed yet,`,
|
|
49
|
+
' so nothing for a Mac is on npm or on oonacode.oonak.ai.',
|
|
50
|
+
' A local build installs with: packaging/install.sh --archive oonacode-darwin-<arch>.tar.gz',
|
|
57
51
|
'',
|
|
58
52
|
].join('\n');
|
|
59
53
|
|
|
54
|
+
const INSTALL_HINT =
|
|
55
|
+
process.platform === 'darwin'
|
|
56
|
+
? MAC_HINT
|
|
57
|
+
: [
|
|
58
|
+
`oonacode: no native binary found for ${PLATFORM_KEY}.`,
|
|
59
|
+
'',
|
|
60
|
+
PLATFORM_PACKAGES[PLATFORM_KEY]
|
|
61
|
+
? ` The platform package "${PLATFORM_PACKAGES[PLATFORM_KEY]}" is missing or was installed without its postinstall step.`
|
|
62
|
+
: ` Prebuilt binaries for ${PLATFORM_KEY} are not published yet (Windows and Linux x64 first).`,
|
|
63
|
+
'',
|
|
64
|
+
' Fixes:',
|
|
65
|
+
' - npm: reinstall with optional dependencies enabled (do not use --no-optional / --omit=optional)',
|
|
66
|
+
' - pnpm: allow the trusted postinstall: pnpm approve-builds (or add "oonacode" to pnpm.onlyBuiltDependencies)',
|
|
67
|
+
' - bun: bun pm trust oonacode',
|
|
68
|
+
' - or install without npm (recommended on Windows):',
|
|
69
|
+
' irm https://oonacode.oonak.ai/install.ps1 | iex',
|
|
70
|
+
'',
|
|
71
|
+
].join('\n');
|
|
72
|
+
|
|
60
73
|
function exists(p) {
|
|
61
74
|
try {
|
|
62
75
|
return fs.existsSync(p);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oonacode",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.202",
|
|
4
4
|
"description": "OonaCode — Windows-first multi-provider coding agent: the `oona` CLI, headless host service and local web UI. npm wrapper; the native binary is installed through the per-platform optional dependency.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "node --test test/wrapper.test.js test/packaging-scripts.test.js test/uninstall-scripts.test.js test/release-feed.test.js test/manifests.test.js test/set-version.test.js test/npm-stage.test.js test/ship-plan.test.js test/ship-checks.test.js test/release-platforms.test.js"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@oonacode/win32-x64": "0.3.
|
|
39
|
-
"@oonacode/linux-x64": "0.3.
|
|
38
|
+
"@oonacode/win32-x64": "0.3.202",
|
|
39
|
+
"@oonacode/linux-x64": "0.3.202"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -101,9 +101,18 @@ function main() {
|
|
|
101
101
|
const key = `${process.platform}-${process.arch}`;
|
|
102
102
|
const pkgName = PLATFORM_PACKAGES[key];
|
|
103
103
|
if (!pkgName) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
if (process.platform === 'darwin') {
|
|
105
|
+
// Built (packaging/mac-builder.sh) but not published: the macOS app is unsigned, and Apple
|
|
106
|
+
// signing is the owner's decision (2026-10-03). Never a failure: the hint is the answer.
|
|
107
|
+
log(
|
|
108
|
+
`OonaCode publishes no macOS build yet (${key}): it is not signed yet, so npm has nothing to install on a Mac.`,
|
|
109
|
+
);
|
|
110
|
+
log(
|
|
111
|
+
'a local build installs with: packaging/install.sh --archive oonacode-darwin-<arch>.tar.gz',
|
|
112
|
+
);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
log(`no prebuilt binary is published for ${key} yet (Windows and Linux x64 first).`);
|
|
107
116
|
log(INSTALL_HINT);
|
|
108
117
|
return;
|
|
109
118
|
}
|