@gizai/cli 2.1.0 → 2.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @gizai/cli
2
2
 
3
- GizStack 0.1.0-preview.20261022.1 from npm: a native language, web server and database in one stack. TypeScript syntax; PostgreSQL, Redis and S3 protocols. Docs: https://gizstack.com/docs/start
3
+ GizStack 0.1.0-preview.20261023.5 from npm: natively compiled TypeScript, with the whole stack built in: a modern web framework and server, OLTP and OLAP SQL (PostgreSQL- and Oracle-compatible), vector search, key-value, distributed POSIX and S3 storage, GPU tensors, and local LLM, image and video generation. Docs: https://gizstack.com/docs/start
4
4
 
5
5
  ```sh
6
6
  npm install -g @gizai/cli
package/bin/giz.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // The npm entry of GizStack 0.1.0-preview.20261022.1 (generated by tools/distribution/channels).
2
+ // The npm entry of GizStack 0.1.0-preview.20261023.5 (generated by tools/distribution/channels).
3
3
  // The giz.ai commands (auth api-key credits model models chat generate job drive table upload computer app connection plugin agent invoke mcp skill engine update __update-check), help and --version run the command line binary of this platform's package
4
4
  // (@gizai/cli-OS-CPU, an optional dependency), which needs no toolchain: giz.ai CLI 2.0's users keep working right after
5
5
  // `npm install`. Every other command needs the toolchain: the first such run installs this version with install.sh, which
@@ -12,7 +12,7 @@ const fs = require("fs");
12
12
  const os = require("os");
13
13
  const path = require("path");
14
14
 
15
- const VERSION = "0.1.0-preview.20261022.1";
15
+ const VERSION = "0.1.0-preview.20261023.5";
16
16
  const ACCOUNT = new Set("auth api-key credits model models chat generate job drive table upload computer app connection plugin agent invoke mcp skill engine update __update-check".split(" ").filter(Boolean));
17
17
  // 2.0's flags that take no value: the command is the first word that is not a flag or a flag's value.
18
18
  const BOOLEANS = new Set(["help", "json", "no-open", "version", "device"]);
@@ -65,7 +65,8 @@ if (process.platform === "win32") {
65
65
  if (!own) fail("the Windows binary package was not installed; reinstall without --omit=optional");
66
66
  run(own, true);
67
67
  }
68
- if (own && (ACCOUNT.has(command) || argv.length === 0 || command === "help" || command === "-h" || (command === "" && (argv.includes("--version") || argv.includes("--help"))))) {
68
+ // `--version` goes to the toolchain: it names the toolchain's version, and the install guide's first command fetches it.
69
+ if (own && (ACCOUNT.has(command) || argv.length === 0 || command === "help" || command === "-h" || (command === "" && argv.includes("--help")))) {
69
70
  run(own, true);
70
71
  }
71
72
  const root = process.env.GIZ_INSTALL || path.join(os.homedir(), ".giz");
package/bin/install.sh CHANGED
@@ -37,7 +37,7 @@ ACCESS=''
37
37
  # Generated from $SITE/api/releases when this script was served.
38
38
  releases() {
39
39
  cat <<'RELEASES'
40
- toolchain x86_64-unknown-linux-gnu 0.1.0-preview.20261022.1 e628a629819b7e9a4f965ca8038ec5d364644ee3c526316be2a577c5d300b506
40
+ toolchain x86_64-unknown-linux-gnu 0.1.0-preview.20261023.5 1f73b27cdf6024e1f1dee7b428bb1210cc2933851fff75e35361d27a4ad1ef31
41
41
  gizdb x86_64-unknown-linux-gnu 0.1.0-preview.20261015.5 cc102bb96abcbe04a98dbc697595310e28b7d997a716f979258ff2afaf4620c6
42
42
  RELEASES
43
43
  }
@@ -91,8 +91,15 @@ download() { # URL FILE
91
91
  elif command -v wget >/dev/null 2>&1; then
92
92
  if [ -n "$KEY" ]; then wget --https-only -q --header="Authorization: Bearer $KEY" -O "$2" "$1"
93
93
  else wget --https-only -q -O "$2" "$1"; fi
94
+ elif command -v node >/dev/null 2>&1; then
95
+ # The npm package runs this script, so Node.js is there even where curl and wget are not (node:*-slim, a minimal WSL).
96
+ node -e 'const [u, f, k] = process.argv.slice(1); if (!u.startsWith("https://")) { console.error("not https: " + u); process.exit(1); }
97
+ require("https").get(u, { headers: k ? { Authorization: "Bearer " + k } : {} }, (r) => {
98
+ if (r.statusCode !== 200) { console.error("HTTP " + r.statusCode + " for " + u); process.exit(1); }
99
+ r.pipe(require("fs").createWriteStream(f)).on("error", (e) => { console.error(e.message); process.exit(1); });
100
+ }).on("error", (e) => { console.error(e.message); process.exit(1); });' "$1" "$2" "$KEY"
94
101
  else
95
- fail "curl or wget is required"
102
+ fail "curl, wget or node is required"
96
103
  fi
97
104
  }
98
105
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gizai/cli",
3
- "version": "2.1.0",
4
- "description": "GizStack: a native language, web server and database in one stack. TypeScript syntax; PostgreSQL, Redis and S3 protocols",
3
+ "version": "2.1.1",
4
+ "description": "GizStack: natively compiled TypeScript, with the whole stack built in: a modern web framework and server, OLTP and OLAP SQL (PostgreSQL- and Oracle-compatible), vector search, key-value, distributed POSIX and S3 storage, GPU tensors, and local LLM, image and video generation",
5
5
  "homepage": "https://gizstack.com",
6
6
  "repository": {
7
7
  "type": "git",
@@ -22,7 +22,6 @@
22
22
  "node": ">=16"
23
23
  },
24
24
  "optionalDependencies": {
25
- "@gizai/cli-linux-x64": "2.1.0",
26
- "@gizai/cli-win32-x64": "2.1.0"
25
+ "@gizai/cli-linux-x64": "2.1.1"
27
26
  }
28
27
  }