withruntime 1.1.0 → 1.1.1
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/CHANGELOG.md +8 -0
- package/dist/v2/bin.d.ts +2 -0
- package/dist/v2/bin.js +15 -0
- package/dist/v2/cli.d.ts +0 -1
- package/dist/v2/cli.js +0 -15
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ Every release of the Runtime Cloud SDKs: npm `withruntime`, PyPI `withruntime`,
|
|
|
4
4
|
module `withruntime.com/go`. Versions follow [Semantic Versioning](https://semver.org). Each release is generated from
|
|
5
5
|
the API's OpenAPI description, `https://api.withruntime.com/v2/openapi.json`.
|
|
6
6
|
|
|
7
|
+
## 1.1.1 (24 November 2026), npm
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- `npx withruntime <command>` runs the command. In 1.0.0 and 1.1.0 it exited at once with no output, because the CLI
|
|
12
|
+
ran only when started under the name `runtime`; `npx withruntime login`, `npx withruntime mcp` and every other
|
|
13
|
+
command did nothing. The `runtime` command was not affected.
|
|
14
|
+
|
|
7
15
|
## 1.1.0 (24 November 2026), and Go v2.0.0
|
|
8
16
|
|
|
9
17
|
npm, PyPI and RubyGems `withruntime` 1.1.0. The Go module moves to `withruntime.com/go/v2` at v2.0.0: import
|
package/dist/v2/bin.d.ts
ADDED
package/dist/v2/bin.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/* The `runtime` and `withruntime` commands. This file only runs the CLI: npx starts it by a link named for the
|
|
3
|
+
command (node_modules/.bin/withruntime), so cli.ts never guesses from its own name whether it was started
|
|
4
|
+
(1.0.0's guard matched /runtime and /cli.js, and `npx withruntime ...` did nothing at all). */
|
|
5
|
+
import { main } from "./cli.js";
|
|
6
|
+
// exitCode, never exit(): a pipe's stdout on macOS is written after the call returns, and exit() cut --help at 64 KiB.
|
|
7
|
+
// A reader that closed its end (`runtime ... | head`) has all it wanted.
|
|
8
|
+
process.stdout.on("error", (e) => {
|
|
9
|
+
if (e.code !== "EPIPE")
|
|
10
|
+
throw e;
|
|
11
|
+
process.exit(process.exitCode ?? 0);
|
|
12
|
+
});
|
|
13
|
+
void main(process.argv.slice(2)).then((code) => {
|
|
14
|
+
process.exitCode = code;
|
|
15
|
+
});
|
package/dist/v2/cli.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
import { type Command, type Flag } from "./table.js";
|
|
3
2
|
/** One flag's text as its field's type in the API's description, refused here, before anything is sent, when it is
|
|
4
3
|
* not one. 18 Nov 2026: a number went as its text (`--memory-gb 4` as "4"), and the API refused it. */
|
package/dist/v2/cli.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
/* `runtime`: every verb and shortcut the API serves, as commands read from
|
|
3
2
|
its own description (./table.ts). Nothing here names a product: parsing
|
|
4
3
|
argv into a verb's arguments, printing its answer, and the primitives a
|
|
@@ -387,17 +386,3 @@ export async function main(argv) {
|
|
|
387
386
|
return 1;
|
|
388
387
|
}
|
|
389
388
|
}
|
|
390
|
-
if (import.meta.url === `file://${process.argv[1]}` ||
|
|
391
|
-
process.argv[1]?.endsWith("/runtime") ||
|
|
392
|
-
process.argv[1]?.endsWith("/cli.js")) {
|
|
393
|
-
// exitCode, never exit(): a pipe's stdout on macOS is written after the call returns, and exit() cut --help at 64 KiB.
|
|
394
|
-
// A reader that closed its end (`runtime ... | head`) has all it wanted.
|
|
395
|
-
process.stdout.on("error", (e) => {
|
|
396
|
-
if (e.code !== "EPIPE")
|
|
397
|
-
throw e;
|
|
398
|
-
process.exit(process.exitCode ?? 0);
|
|
399
|
-
});
|
|
400
|
-
void main(process.argv.slice(2)).then((code) => {
|
|
401
|
-
process.exitCode = code;
|
|
402
|
-
});
|
|
403
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "withruntime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Runtime Cloud: Linux sandboxes for agents. new Runtime(), a sandbox handle, every verb of the API typed, the runtime CLI, its MCP bridge and drop-ins for E2B, Daytona, Vercel, Blaxel, Morph, Modal, Cloudflare and Fly.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"./cloudflare": { "types": "./dist/v2/shims/cloudflare.d.ts", "default": "./dist/v2/shims/cloudflare.js" },
|
|
17
17
|
"./fly": { "types": "./dist/v2/shims/fly.d.ts", "default": "./dist/v2/shims/fly.js" }
|
|
18
18
|
},
|
|
19
|
-
"bin": { "runtime": "dist/v2/
|
|
19
|
+
"bin": { "runtime": "dist/v2/bin.js", "withruntime": "dist/v2/bin.js" },
|
|
20
20
|
"files": ["dist", "LICENSE", "README.md", "CHANGELOG.md"],
|
|
21
21
|
"keywords": ["sandbox", "cloud", "agents", "ai-agents", "microvm", "firecracker", "code-execution", "code-interpreter", "mcp", "browser", "desktop", "jupyter", "ci", "serverless", "containers"],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "tsc -p tsconfig.json && chmod +x dist/v2/
|
|
23
|
+
"build": "tsc -p tsconfig.json && chmod +x dist/v2/bin.js && cp openapi.json dist/v2/openapi.json"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": { "typescript": "5.9.3", "@types/node": "22.15.0" },
|
|
26
26
|
"engines": { "node": ">=22.12" },
|