turnzero 0.21.2 → 0.21.3
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 -1
- package/dist/turnzero-cloud.mjs +22 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Your AI coding tool writes the app; Turn Zero Cloud runs it, with hosting, datab
|
|
|
8
8
|
|
|
9
9
|
The turnzero command-line tool is used by the Turn Zero Cloud MCP server. Your AI coding tool runs it on your computer for the work the platform cannot do from the cloud: reading your files, writing files, and starting your application.
|
|
10
10
|
|
|
11
|
-
Install it once with `npm install -g turnzero`, then run `turnzero login` once in a terminal of your own and approve the login in your browser. The MCP server then gives your AI coding tool each command line to run, such as `turnzero deploy --application <id>`. On Windows the lines run `turnzero.cmd`. Where the command is not installed, the same line runs through npx as `npx -y turnzero@latest`. It needs Node.js 24 or later.
|
|
11
|
+
Install it once with `npm install -g turnzero`, then run `turnzero login` once in a terminal of your own and approve the login in your browser. The MCP server then gives your AI coding tool each command line to run, such as `turnzero deploy --application <id>`. On Windows the lines run `turnzero.cmd`. Where the command is not installed, the same line runs through npx as `npx --no-update-notifier -y turnzero@latest`. It needs Node.js 24 or later.
|
|
12
12
|
|
|
13
13
|
## Subcommands
|
|
14
14
|
|
package/dist/turnzero-cloud.mjs
CHANGED
|
@@ -88,8 +88,13 @@ var LINE_PROGRAM = TURNZERO_CLOUD_PACKAGE;
|
|
|
88
88
|
var WINDOWS_LINE_PROGRAM = `${TURNZERO_CLOUD_PACKAGE}.cmd`;
|
|
89
89
|
var LINE_RUNNER = LINE_PROGRAM;
|
|
90
90
|
var WINDOWS_LINE_RUNNER = WINDOWS_LINE_PROGRAM;
|
|
91
|
-
var
|
|
92
|
-
var
|
|
91
|
+
var NPX_NO_NOTIFIER = "--no-update-notifier";
|
|
92
|
+
var NPX_PROGRAM = "npx";
|
|
93
|
+
var NPX_WINDOWS_PROGRAM = "npx.cmd";
|
|
94
|
+
var NPX_LINE_RUNNER = `${NPX_PROGRAM} ${NPX_NO_NOTIFIER} -y`;
|
|
95
|
+
var NPX_WINDOWS_LINE_RUNNER = `${NPX_WINDOWS_PROGRAM} ${NPX_NO_NOTIFIER} -y`;
|
|
96
|
+
var FORMER_NPX_LINE_RUNNER = `${NPX_PROGRAM} -y`;
|
|
97
|
+
var FORMER_NPX_WINDOWS_LINE_RUNNER = `${NPX_WINDOWS_PROGRAM} -y`;
|
|
93
98
|
var installLineOf = (origin) => `npm install -g ${TURNZERO_CLOUD_PACKAGE}${origin === DEFAULT_COMMAND_ORIGIN ? "" : `@${commandTagOf(origin)}`}`;
|
|
94
99
|
var npxFormOf = (line, origin) => {
|
|
95
100
|
const runner = `${LINE_RUNNER} `;
|
|
@@ -104,7 +109,8 @@ var LINE_GRANT_HEAD = /^echo \S+ \| $/;
|
|
|
104
109
|
var windowsLineOf = (line) => {
|
|
105
110
|
for (const [head, windows] of [
|
|
106
111
|
[LINE_RUNNER, WINDOWS_LINE_RUNNER],
|
|
107
|
-
[NPX_LINE_RUNNER, NPX_WINDOWS_LINE_RUNNER]
|
|
112
|
+
[NPX_LINE_RUNNER, NPX_WINDOWS_LINE_RUNNER],
|
|
113
|
+
[FORMER_NPX_LINE_RUNNER, FORMER_NPX_WINDOWS_LINE_RUNNER]
|
|
108
114
|
]) {
|
|
109
115
|
const runner = `${head} `;
|
|
110
116
|
const at = line.indexOf(runner);
|
|
@@ -2368,13 +2374,14 @@ var noteLinesOf = (notes, health, zipped = null) => {
|
|
|
2368
2374
|
|
|
2369
2375
|
// src/turnzero_cloud_command/artifact_checks.ts
|
|
2370
2376
|
var DeployRefusal = class extends Error {
|
|
2371
|
-
constructor(status, code, detail, members = {}, operator = {}) {
|
|
2377
|
+
constructor(status, code, detail, members = {}, operator = {}, next) {
|
|
2372
2378
|
super(detail);
|
|
2373
2379
|
this.status = status;
|
|
2374
2380
|
this.code = code;
|
|
2375
2381
|
this.detail = detail;
|
|
2376
2382
|
this.members = members;
|
|
2377
2383
|
this.operator = operator;
|
|
2384
|
+
this.next = next;
|
|
2378
2385
|
}
|
|
2379
2386
|
status;
|
|
2380
2387
|
code;
|
|
@@ -2389,8 +2396,9 @@ var DeployRefusal = class extends Error {
|
|
|
2389
2396
|
* `error` or `detail` themselves — failRun keeps those two first. The
|
|
2390
2397
|
* wire mapping (main.ts's actRefusal) reads status, code, and detail, the
|
|
2391
2398
|
* two hashes for `upload_hash_mismatch` alone, and `limit` for
|
|
2392
|
-
* `deploy_files_too_large` alone
|
|
2393
|
-
* the row, not the
|
|
2399
|
+
* `deploy_files_too_large` alone, and `next` (below) for any refusal
|
|
2400
|
+
* carrying one; a refusal thrown after the 202 reaches the row, not the
|
|
2401
|
+
* wire. */
|
|
2394
2402
|
members;
|
|
2395
2403
|
/** The fields the control plane's `version failed` line carries beside
|
|
2396
2404
|
* the refusal for the operator alone (MAPI-10), never the row's or the
|
|
@@ -2398,6 +2406,14 @@ var DeployRefusal = class extends Error {
|
|
|
2398
2406
|
* (PLD-L0-90), or the production pair's provisioning detail naming its
|
|
2399
2407
|
* server (DBS-L0-02). Empty for every other refusal. */
|
|
2400
2408
|
operator;
|
|
2409
|
+
/** The one exact call that remedies the refusal, the object alone as
|
|
2410
|
+
* MAPI-24 gives one call, where the refusal's owner gives one (MAPI-24's
|
|
2411
|
+
* refusal paragraph; #5935): `setting_secret_missing`'s `store_secret`
|
|
2412
|
+
* call for the target scope, which names no value. Absent for every other
|
|
2413
|
+
* refusal. It rides onto the wire (main.ts's actRefusal) and into
|
|
2414
|
+
* check_deploy's entry, and never into a row's outcome: failRun reads
|
|
2415
|
+
* `members` alone. */
|
|
2416
|
+
next;
|
|
2401
2417
|
};
|
|
2402
2418
|
var isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2403
2419
|
var BYTE_ORDER_MARK2 = String.fromCharCode(65279);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "turnzero",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Turn Zero Cloud command, which an AI coding tool runs on your machine to deploy an application, store a secret, upload a file, download an export, take a library entry, write a local run's settings, start the application locally, and scaffold a new service from a template.",
|
|
6
6
|
"license": "Apache-2.0",
|