turnzero 0.21.0-next.1 → 0.21.1-next.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.
@@ -5272,6 +5272,7 @@ var writeApplicationManifest = (io2, manifest, packages) => {
5272
5272
  if (!("parsed" in manifest)) return manifest;
5273
5273
  return writeManifestMember(io2, manifest, "packages", packages) ? { written: manifest.at } : { at: manifest.at, unwritten: "write_failed" };
5274
5274
  };
5275
+ var COPY_ROWS_YOURSELF = "copy these rows into the application manifest's packages member yourself";
5275
5276
  var packagesWhereOf = (root, outcome) => {
5276
5277
  const shown2 = shownFrom(root);
5277
5278
  if ("written" in outcome) return `written to ${shown2(outcome.written)}`;
@@ -5283,7 +5284,7 @@ var packagesWhereOf = (root, outcome) => {
5283
5284
  library_manifest: `${at} is the library folder's own manifest`,
5284
5285
  write_failed: `the write of ${at} failed`
5285
5286
  };
5286
- return `not written: ${why[outcome.unwritten]}`;
5287
+ return `not written: ${why[outcome.unwritten]}; ${COPY_ROWS_YOURSELF}`;
5287
5288
  };
5288
5289
  var committedFilesOf = (copied, written) => {
5289
5290
  const files = ["the library folder", ...copied ? ["the copy", "the package file", "its lockfile"] : [], ...written ? ["the application manifest"] : []];
@@ -6053,7 +6054,8 @@ var PROVISION_CREDENTIAL = Object.freeze({
6053
6054
  call: "the submit_manifest call naming local_run",
6054
6055
  mintedToken: true,
6055
6056
  emptyPipeRefused: true,
6056
- bare: `with nothing piped and neither token, it keeps a verifier and prints the challenge and the submit_manifest call naming local_run and ${CODE_CHALLENGE_MEMBER}, and a grant piped is presented with that verifier`
6057
+ bare: `with nothing piped and neither token, it keeps a verifier and prints the challenge and the submit_manifest call naming local_run and ${CODE_CHALLENGE_MEMBER}, and a grant piped is presented with that verifier`,
6058
+ claim: `this computer's pending verifier, under ${PROVISION_CLAIM_FLAG}`
6057
6059
  });
6058
6060
  var NOTHING_REMINTED = "Nothing was re-minted, and the environment file is as it stood.";
6059
6061
  var CLAIM_FALLBACK_ERRORS = Object.freeze(["authentication_required", "secret_grant_not_admitted", "secret_grant_expired", "secret_grant_spent"]);
@@ -9247,7 +9249,7 @@ var pipedLinesOf = (subcommand) => {
9247
9249
  const credential = subcommand.credential;
9248
9250
  if (credential === null || credential.piped === false) return [];
9249
9251
  return [
9250
- ` ${subcommand.name} reads ${credential.aGrant} from standard input, as the line ${credential.call} answers pipes it in${credential.mintedToken ? `; and otherwise a minted token from ${MINTED_TOKEN_VARIABLE} where it is set, or this computer's token from its credential file` : credential.computerToken === true ? `; and otherwise this computer's token from its credential file, never a minted token from ${MINTED_TOKEN_VARIABLE}, whose being set refuses the run` : ""}${credential.bare !== void 0 ? `; ${credential.bare}` : ""}.`
9252
+ ` ${subcommand.name} reads ${credential.aGrant} from standard input, as the line ${credential.call} answers pipes it in${credential.mintedToken ? `; and otherwise a minted token from ${MINTED_TOKEN_VARIABLE} where it is set, or this computer's token from its credential file${credential.claim !== void 0 ? `, else ${credential.claim}` : ""}` : credential.computerToken === true ? `; and otherwise this computer's token from its credential file, never a minted token from ${MINTED_TOKEN_VARIABLE}, whose being set refuses the run` : ""}${credential.bare !== void 0 ? `; ${credential.bare}` : ""}.`
9251
9253
  ];
9252
9254
  };
9253
9255
  var readsLinesOf = (subcommand) => subcommand.reads !== void 0 ? [` ${subcommand.name} reads ${subcommand.reads}.`] : [];
@@ -9311,6 +9313,7 @@ var tokenArgumentSentence = () => `An argument holds a minted token, and the com
9311
9313
  var NOTHING_STARTED2 = "Nothing was started.";
9312
9314
  var unquoted = (value) => value.length >= 2 && value.startsWith('"') && value.endsWith('"') ? value.slice(1, -1) : value;
9313
9315
  var quoteInPathSentence = (name) => `${name} names a path, and its value holds a double quote, which no path on Windows holds. The usual cause is a path written with a backslash before its closing quote, which cmd and Windows PowerShell 5.1 read as keeping the quote, joining the arguments after it into the value. Write the path with no backslash at its end. ${NOTHING_STARTED2}`;
9316
+ var emptyValueSentence = (name) => `${name} was given an empty value, as an unset shell variable gives. Name its value, or leave ${name} out where the line means its default. ${NOTHING_STARTED2}`;
9314
9317
  var valuePlacesOf = (argv2) => {
9315
9318
  const places = /* @__PURE__ */ new Set();
9316
9319
  const subcommand = SUBCOMMANDS.find((entry) => entry.name === argv2[0]);
@@ -9375,7 +9378,8 @@ var parseArguments = (argv2, onWindows2 = ON_WINDOWS) => {
9375
9378
  index += 1;
9376
9379
  }
9377
9380
  const value = given === void 0 ? void 0 : unquoted(given);
9378
- if (value === void 0 || value === "") return { kind: "refused", sentence: `${name} takes a value. ${NOTHING_STARTED2}` };
9381
+ if (value === void 0) return { kind: "refused", sentence: `${name} takes a value. ${NOTHING_STARTED2}` };
9382
+ if (value === "") return { kind: "refused", sentence: emptyValueSentence(name) };
9379
9383
  if (onWindows2 && PATH_OPTION_NAMES.includes(name) && value.includes('"')) return { kind: "refused", sentence: quoteInPathSentence(name) };
9380
9384
  named[name] = value;
9381
9385
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turnzero",
3
- "version": "0.21.0-next.1",
3
+ "version": "0.21.1-next.1",
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",