@posoco/cetas 0.7.0 → 0.8.0
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/LICENSE +202 -0
- package/README.md +8 -6
- package/dist/cetas.js +643 -0
- package/package.json +10 -8
- package/bin/cetas.js +0 -35
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posoco/cetas",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Cetas terminal host — provider-neutral Posoco agent (JS bundle for Node.js)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -10,15 +10,17 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
+
"type": "module",
|
|
13
14
|
"bin": {
|
|
14
|
-
"cetas": "
|
|
15
|
+
"cetas": "dist/cetas.js"
|
|
15
16
|
},
|
|
16
17
|
"files": [
|
|
17
|
-
"
|
|
18
|
+
"dist"
|
|
18
19
|
],
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=24"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@earendil-works/pi-tui": "^0.85.1"
|
|
23
25
|
}
|
|
24
26
|
}
|
package/bin/cetas.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// cetas launcher: exec the cetas-bun binary for this platform from the
|
|
3
|
-
// matching @posoco/cetas-<os>-<arch> payload package. Runs under Node.js.
|
|
4
|
-
const { spawnSync } = require("node:child_process");
|
|
5
|
-
|
|
6
|
-
const OS = { darwin: "darwin", linux: "linux", win32: "windows" }[process.platform];
|
|
7
|
-
const supported = ["darwin-arm64", "linux-x64", "windows-x64"];
|
|
8
|
-
const target = OS ? `${OS}-${process.arch}` : null;
|
|
9
|
-
|
|
10
|
-
if (!supported.includes(target)) {
|
|
11
|
-
console.error(
|
|
12
|
-
`cetas: unsupported platform ${process.platform}-${process.arch} ` +
|
|
13
|
-
`(supported: ${supported.join(", ")})`,
|
|
14
|
-
);
|
|
15
|
-
process.exit(1);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const pkg = `@posoco/cetas-${target}`;
|
|
19
|
-
let bin;
|
|
20
|
-
try {
|
|
21
|
-
bin = require.resolve(`${pkg}/cetas-bun${process.platform === "win32" ? ".exe" : ""}`);
|
|
22
|
-
} catch {
|
|
23
|
-
console.error(
|
|
24
|
-
`cetas: payload package ${pkg} is missing ` +
|
|
25
|
-
`(skipped as an optional dependency? try: npm install ${pkg})`,
|
|
26
|
-
);
|
|
27
|
-
process.exit(1);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
31
|
-
if (result.error) {
|
|
32
|
-
console.error(`cetas: failed to launch ${bin}: ${result.error.message}`);
|
|
33
|
-
process.exit(1);
|
|
34
|
-
}
|
|
35
|
-
process.exit(result.status ?? 1);
|