@sandblocks/cli 0.5.0-b.2 → 0.5.0-b.21
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/dist/cli.js +2237 -1693
- package/dist/cli.js.map +15 -15
- package/dist/{runtime.js → runtime-bin.js} +7 -11
- package/package.json +3 -9
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// src/runtime.ts
|
|
3
|
+
// packages/libs/cli/src/runtime.ts
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
5
5
|
import { access, chmod, mkdir, readdir, rm } from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import { pathToFileURL } from "node:url";
|
|
8
7
|
var RUNTIME_PATTERN = /^[a-z][a-z0-9-]{0,62}$/;
|
|
9
8
|
var NODE_ENV_RUNTIME = {
|
|
10
9
|
production: "prod",
|
|
@@ -107,12 +106,9 @@ function option(options, key) {
|
|
|
107
106
|
const value = options[key];
|
|
108
107
|
return typeof value === "string" ? value : undefined;
|
|
109
108
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
runRuntimeCommand
|
|
118
|
-
};
|
|
109
|
+
|
|
110
|
+
// packages/libs/cli/src/runtime-bin.ts
|
|
111
|
+
runRuntimeCommand(process.argv.slice(2)).catch((error) => {
|
|
112
|
+
console.error(`sandblocks-runtime: ${error instanceof Error ? error.message : String(error)}`);
|
|
113
|
+
process.exitCode = 1;
|
|
114
|
+
});
|
package/package.json
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sandblocks/cli",
|
|
3
|
-
"version": "0.5.0-b.
|
|
3
|
+
"version": "0.5.0-b.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Sandblocks command-line interface for workspaces, deployments, and agent sandboxes.",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sandblocks": "dist/cli.js",
|
|
8
|
-
"sandblocks-runtime": "dist/runtime.js"
|
|
8
|
+
"sandblocks-runtime": "dist/runtime-bin.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"start": "bun src/cli.ts",
|
|
15
|
-
"build": "rm -rf dist && bun build src/cli.ts --outdir dist --target=bun --format=esm --sourcemap=external && bun build src/runtime.ts --outfile dist/runtime.js --target=node --format=esm",
|
|
16
|
-
"test": "bun test",
|
|
17
|
-
"prepack": "bun run build && bun run test"
|
|
18
|
-
},
|
|
19
13
|
"publishConfig": {
|
|
20
14
|
"access": "public"
|
|
21
15
|
},
|
|
@@ -24,6 +18,6 @@
|
|
|
24
18
|
},
|
|
25
19
|
"devDependencies": {
|
|
26
20
|
"@sandblocks/manifest": "0.1.0",
|
|
27
|
-
"@sandblocks/sdk": "0.
|
|
21
|
+
"@sandblocks/sdk": "0.5.0-b.9"
|
|
28
22
|
}
|
|
29
23
|
}
|