@zuke-build/cli 2.11.0 → 2.13.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/README.md +1 -2
- package/mod.js +2 -1
- package/package.json +2 -2
- package/src/runtime_install.d.ts +3 -4
- package/src/runtime_install.js +6 -9
- package/src/uv_path.d.ts +1 -2
- package/src/uv_pin.d.ts +6 -0
- package/src/uv_pin.js +2 -2
- package/src/version.js +1 -1
package/README.md
CHANGED
|
@@ -352,8 +352,7 @@ interface WorkerTasksApi
|
|
|
352
352
|
resolveProgram(program: string): Promise<string>
|
|
353
353
|
The executable to start a worker whose `sdk.command` begins with
|
|
354
354
|
`program`: for `uv`, the one on `PATH`, else the pinned uv `zuke`
|
|
355
|
-
installed, else that uv installed now (
|
|
356
|
-
it asks first); any
|
|
355
|
+
installed, else that uv installed now (asking first on a terminal); any
|
|
357
356
|
other program unchanged. The `zuke` binary hands this to the engine as its
|
|
358
357
|
`resolveProgram`.
|
|
359
358
|
|
package/mod.js
CHANGED
|
@@ -58,7 +58,8 @@ export const defaultPrompter = {
|
|
|
58
58
|
return answer === null || answer === "" ? fallback : answer;
|
|
59
59
|
},
|
|
60
60
|
confirm(question) {
|
|
61
|
-
|
|
61
|
+
// Core's prompt, which reads the terminal on Node as well as Deno.
|
|
62
|
+
return RuntimeTasks.confirm(question);
|
|
62
63
|
},
|
|
63
64
|
};
|
|
64
65
|
/** Parse the argument list following `zuke setup`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuke-build/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "The zuke command-line tool — scaffold a Zuke project with `zuke setup`, including a starter build, launchers, and tasks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@zuke/console": "npm:@zuke-build/console@^1.1.0",
|
|
34
|
-
"@zuke/core": "npm:@zuke-build/core@^1.
|
|
34
|
+
"@zuke/core": "npm:@zuke-build/core@^1.89.0",
|
|
35
35
|
"@zuke/gh": "npm:@zuke-build/gh@^1.6.0"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/runtime_install.d.ts
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A build file runs on Node or on Deno. When `zuke` finds neither the one on
|
|
5
5
|
* `PATH` nor the pinned release it installed before, it offers to install the
|
|
6
|
-
* pinned release itself
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* terminal to ask on (CI, a pipe, an MCP client). The
|
|
6
|
+
* pinned release itself: on a terminal it asks first, on Node (the standalone
|
|
7
|
+
* binary, the npm package) as on Deno, and with no terminal to ask on (CI, a
|
|
8
|
+
* pipe, an MCP client) it installs and says so on stderr. The
|
|
10
9
|
* download is verified against the SHA-256 pinned in `node_pin.ts` or
|
|
11
10
|
* `deno_pin.ts` before anything is unpacked, by core's `installTree` and
|
|
12
11
|
* `installRelease`.
|
package/src/runtime_install.js
CHANGED
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* A build file runs on Node or on Deno. When `zuke` finds neither the one on
|
|
7
7
|
* `PATH` nor the pinned release it installed before, it offers to install the
|
|
8
|
-
* pinned release itself
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* terminal to ask on (CI, a pipe, an MCP client). The
|
|
8
|
+
* pinned release itself: on a terminal it asks first, on Node (the standalone
|
|
9
|
+
* binary, the npm package) as on Deno, and with no terminal to ask on (CI, a
|
|
10
|
+
* pipe, an MCP client) it installs and says so on stderr. The
|
|
12
11
|
* download is verified against the SHA-256 pinned in `node_pin.ts` or
|
|
13
12
|
* `deno_pin.ts` before anything is unpacked, by core's `installTree` and
|
|
14
13
|
* `installRelease`.
|
|
@@ -116,11 +115,9 @@ export function uvReleaseOptions(binDir, platform) {
|
|
|
116
115
|
}
|
|
117
116
|
/** The real {@link RuntimeSetup}: the terminal, stderr and core's installers. */
|
|
118
117
|
export const defaultRuntimeSetup = {
|
|
119
|
-
|
|
120
|
-
//
|
|
121
|
-
|
|
122
|
-
typeof globalThis.confirm === "function",
|
|
123
|
-
confirm: (question) => confirm(question),
|
|
118
|
+
interactive: () => RuntimeTasks.isTerminal("stdin"),
|
|
119
|
+
// Core's prompt reads the terminal on Node as well as Deno.
|
|
120
|
+
confirm: (question) => RuntimeTasks.confirm(question),
|
|
124
121
|
notice: (line) => output.error(line),
|
|
125
122
|
installNode: async (root) => {
|
|
126
123
|
await installTree(nodeTreeOptions(root, hostPlatform()));
|
package/src/uv_path.d.ts
CHANGED
|
@@ -33,8 +33,7 @@ export interface WorkerTasksApi {
|
|
|
33
33
|
/**
|
|
34
34
|
* The executable to start a worker whose `sdk.command` begins with
|
|
35
35
|
* `program`: for `uv`, the one on `PATH`, else the pinned uv `zuke`
|
|
36
|
-
* installed, else that uv installed now (
|
|
37
|
-
* it asks first); any
|
|
36
|
+
* installed, else that uv installed now (asking first on a terminal); any
|
|
38
37
|
* other program unchanged. The `zuke` binary hands this to the engine as its
|
|
39
38
|
* `resolveProgram`.
|
|
40
39
|
*
|
package/src/uv_pin.d.ts
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
* both from `https://pypi.org/pypi/uv/<version>/json`. Bump the version, the
|
|
9
9
|
* URLs and the checksums together.
|
|
10
10
|
*
|
|
11
|
+
* On Linux the pin is a wheel whose `uv` is statically linked, so the one
|
|
12
|
+
* binary runs on glibc and musl (Alpine) alike: the `musllinux` wheel for
|
|
13
|
+
* x86_64, and for aarch64 the one wheel uv publishes, tagged both ways. The
|
|
14
|
+
* `manylinux` x86_64 wheel's binary needs glibc's loader. Check with `file`
|
|
15
|
+
* when bumping: it must say `static`.
|
|
16
|
+
*
|
|
11
17
|
* @module
|
|
12
18
|
*/
|
|
13
19
|
/** A platform uv publishes a wheel for, as `zuke` names hosts: `os-arch`. */
|
package/src/uv_pin.js
CHANGED
|
@@ -8,8 +8,8 @@ export const UV_PIN = {
|
|
|
8
8
|
version: "0.13.10",
|
|
9
9
|
wheels: {
|
|
10
10
|
"linux-x86_64": {
|
|
11
|
-
url: `${FILES}/
|
|
12
|
-
sha256: "
|
|
11
|
+
url: `${FILES}/84/23/e5cef4e193cc203afaa4e034a6537cc1d63c3a4fdceb17986da0704aabb7/uv-0.13.10-py3-none-musllinux_1_1_x86_64.whl`,
|
|
12
|
+
sha256: "ee403b6bbcfda1bc7db269be5c40c1624df27b3b838d3f8a416648e00e2de5d4",
|
|
13
13
|
},
|
|
14
14
|
"linux-aarch64": {
|
|
15
15
|
url: `${FILES}/97/4b/12a9e73be39829da3ece358385c3c019ecdea91a5fc704381d584ad9a387/uv-0.13.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl`,
|
package/src/version.js
CHANGED