turnzero 0.22.0 → 0.23.0-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.
- package/dist/turnzero-cloud.mjs +13 -2
- package/package.json +1 -1
package/dist/turnzero-cloud.mjs
CHANGED
|
@@ -2241,6 +2241,14 @@ var filesLineOf = (names) => {
|
|
|
2241
2241
|
var leftOutLineOf = (paths) => paths.length === 0 ? null : `${LEFT_OUT_LINE_HEAD}${listedNames(paths)}`;
|
|
2242
2242
|
var zipFileName = (name) => name.toLowerCase().endsWith(".zip");
|
|
2243
2243
|
var rootZipLineOf = (names) => names.length === 0 ? null : `${WARNING_LINE_HEAD}the folder's root holds ${names.length === 1 ? "a .zip file" : `${names.length} .zip files`}, and the upload includes ${names.length === 1 ? "it" : "them"}: ${listedNames(names)}. Keep a build's zip outside the application's folder, unless the application reads it.`;
|
|
2244
|
+
var ROOT_RUN_OUTPUT_ENDINGS = Object.freeze([".log", ".pid", ".err", ".tmp"]);
|
|
2245
|
+
var ROOT_RUN_OUTPUT_NAMES = Object.freeze(["nohup.out"]);
|
|
2246
|
+
var rootRunOutputName = (name) => {
|
|
2247
|
+
if (name.includes("/")) return false;
|
|
2248
|
+
const lower = name.toLowerCase();
|
|
2249
|
+
return ROOT_RUN_OUTPUT_NAMES.includes(lower) || ROOT_RUN_OUTPUT_ENDINGS.some((ending) => lower.endsWith(ending));
|
|
2250
|
+
};
|
|
2251
|
+
var rootRunOutputLineOf = (names) => names.length === 0 ? null : `${WARNING_LINE_HEAD}the folder's root holds ${names.length === 1 ? "a file that looks like a local run's output" : `${names.length} files that look like a local run's output`}, and the upload includes ${names.length === 1 ? "it" : "them"}: ${listedNames(names)}. Keep a local run's logs and process files outside the application's folder, unless the application reads them.`;
|
|
2244
2252
|
var healthPathOf = (manifest) => {
|
|
2245
2253
|
let parsed;
|
|
2246
2254
|
try {
|
|
@@ -2440,7 +2448,7 @@ var localWriteLineIn = (data) => {
|
|
|
2440
2448
|
var localWriteLineOf = (found) => found === null ? null : `${WARNING_LINE_HEAD}${shownNoteName(found.name)}, line ${found.line}, writes to a local file inside the application's folder. A running copy's disk is lost whenever the copy is replaced or stops: keep files in a storage area and records in a database, as read_documentation's pages /cloud/guides/store-files/ and /cloud/guides/add-a-database/ describe.`;
|
|
2441
2449
|
var LIST_LINE_HEAD = "file: ";
|
|
2442
2450
|
var listLineOf = (file) => `${LIST_LINE_HEAD}${file.size} ${shownWhole(file.name)}`;
|
|
2443
|
-
var NO_NOTES = Object.freeze({ leftOut: Object.freeze([]), rootZips: Object.freeze([]), credentialFiles: Object.freeze([]), localWrite: null, unservedHealthPath: null });
|
|
2451
|
+
var NO_NOTES = Object.freeze({ leftOut: Object.freeze([]), rootZips: Object.freeze([]), rootRunOutput: Object.freeze([]), credentialFiles: Object.freeze([]), localWrite: null, unservedHealthPath: null });
|
|
2444
2452
|
var noteLinesOf = (notes, health, zipped = null) => {
|
|
2445
2453
|
const lines = [];
|
|
2446
2454
|
const files = zipped === null ? null : filesLineOf(zipped.map((file) => file.name));
|
|
@@ -2449,6 +2457,8 @@ var noteLinesOf = (notes, health, zipped = null) => {
|
|
|
2449
2457
|
if (leftOut !== null) lines.push(leftOut);
|
|
2450
2458
|
const rootZip = rootZipLineOf(notes.rootZips);
|
|
2451
2459
|
if (rootZip !== null) lines.push(rootZip);
|
|
2460
|
+
const runOutput = rootRunOutputLineOf(notes.rootRunOutput);
|
|
2461
|
+
if (runOutput !== null) lines.push(runOutput);
|
|
2452
2462
|
const credential = credentialLineOf(notes.credentialFiles);
|
|
2453
2463
|
if (credential !== null) lines.push(credential);
|
|
2454
2464
|
const localWrite = localWriteLineOf(notes.localWrite);
|
|
@@ -3482,6 +3492,7 @@ function zipFolder(root, seams = {}) {
|
|
|
3482
3492
|
notes: {
|
|
3483
3493
|
leftOut,
|
|
3484
3494
|
rootZips: files.filter((file) => !file.name.includes("/") && zipFileName(file.name)).map((file) => file.name),
|
|
3495
|
+
rootRunOutput: files.filter((file) => rootRunOutputName(file.name)).map((file) => file.name),
|
|
3485
3496
|
credentialFiles,
|
|
3486
3497
|
localWrite,
|
|
3487
3498
|
unservedHealthPath: segment !== null && !held ? healthPath : null
|
|
@@ -4223,7 +4234,7 @@ async function hash(named, io2, flags = /* @__PURE__ */ new Set()) {
|
|
|
4223
4234
|
}
|
|
4224
4235
|
var HASH_ROW = Object.freeze({
|
|
4225
4236
|
name: HASH_SUBCOMMAND,
|
|
4226
|
-
summary: `Prints ${HASH_LINE_HEAD}<hash> on the line after the version line: the SHA-256 of the zip deploy uploads from the same folder, or of a .zip file's bytes. It reads what a deploy from the folder would upload, and no deploy needs it first. A further line follows only where there is something to name: the paths the zip left out, a .zip file at the folder's root, a file that looks like a key or a credential, or a health path of manifest.json that no file names, package files and documentation set aside. With ${HASH_OPTION.list}, one line follows for each file the zip holds. It reads no grant and sends nothing, so a ${HASH_OPTION.origin} the line carries is checked and set aside.`,
|
|
4237
|
+
summary: `Prints ${HASH_LINE_HEAD}<hash> on the line after the version line: the SHA-256 of the zip deploy uploads from the same folder, or of a .zip file's bytes. It reads what a deploy from the folder would upload, and no deploy needs it first. A further line follows only where there is something to name: the paths the zip left out, or a warning. A warning names a .zip file or a local run's output at the folder's root, a file that looks like a key or a credential, a source file that writes inside the folder, or a health path of manifest.json that no file names, package files and documentation set aside. With ${HASH_OPTION.list}, one line follows for each file the zip holds. It reads no grant and sends nothing, so a ${HASH_OPTION.origin} the line carries is checked and set aside.`,
|
|
4227
4238
|
options: HASH_OPTIONS,
|
|
4228
4239
|
credential: null,
|
|
4229
4240
|
statuses: { done: "the hash printed", nothing_started: "no hash was printed" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "turnzero",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0-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",
|