deployai 0.1.0-beta.43 → 0.1.0-beta.45
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 -0
- package/dist/index.js +1187 -508
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -86,7 +86,7 @@ var ISSUES = [
|
|
|
86
86
|
titleEn: "Long-running or background process",
|
|
87
87
|
titleHe: "\u05EA\u05D4\u05DC\u05D9\u05DA \u05E9\u05E8\u05E5 \u05D1\u05E8\u05E7\u05E2 \u05DB\u05DC \u05D4\u05D6\u05DE\u05DF",
|
|
88
88
|
agentLine: "{loc} starts a long-running or background process{detail}.",
|
|
89
|
-
fixForAgent:
|
|
89
|
+
fixForAgent: `The site runs per request, nothing stays running between requests. Remove timers, job queues and cron libraries. For work on a clock, list its times in the wrangler config under "triggers": { "crons": ["0 3 * * *"] } and export a scheduled handler beside fetch: export default { fetch, async scheduled(event, env, ctx) { ... } }. DeployAI runs it at those times (UTC), at most every 5 minutes, with the site's own bindings.`
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
code: "websocket_server",
|
|
@@ -219,6 +219,15 @@ var ISSUES = [
|
|
|
219
219
|
agentLine: "The site sends email with{detail}, which needs SMTP. SMTP does not run on DeployAI, so the email part will fail.",
|
|
220
220
|
fixForAgent: "For email to the site owner (a form answer, a new order), use the built-in email: POST JSON { subject, text, replyTo } to `${DEPLOYAI_API}/api/site/notify` with Authorization: Bearer DEPLOYAI_KEY, with no keys to ask for. For email to customers, use an HTTP email API (Resend, Postmark) with its key set by npx deployai@latest env set. Remove the SMTP library."
|
|
221
221
|
},
|
|
222
|
+
{
|
|
223
|
+
// D-982: a schedule our scheduler will not run (D-979), told before the deploy instead of only on Data and files.
|
|
224
|
+
code: "schedule_not_run",
|
|
225
|
+
severity: "warning",
|
|
226
|
+
titleEn: "A schedule that will not run",
|
|
227
|
+
titleHe: "\u05DE\u05E9\u05D9\u05DE\u05D4 \u05DE\u05EA\u05D5\u05D6\u05DE\u05E0\u05EA \u05E9\u05DC\u05D0 \u05EA\u05E8\u05D5\u05E5",
|
|
228
|
+
agentLine: "A schedule in triggers.crons will not run{detail} ({loc}).",
|
|
229
|
+
fixForAgent: 'DeployAI runs each line of triggers.crons at its times in UTC, at most once every 5 minutes. A line that runs more often, or that is not a five part cron line (minute, hour, day of month, month, day of week), does not run at all. Change it, for example "*/5 * * * *" for every 5 minutes or "0 3 * * *" for 03:00 UTC each day.'
|
|
230
|
+
},
|
|
222
231
|
{
|
|
223
232
|
code: "no_build_script",
|
|
224
233
|
severity: "warning",
|
|
@@ -754,9 +763,9 @@ function durableObjectsOf(v) {
|
|
|
754
763
|
return { name: str2(o.name), className: str2(o.class_name), script: str2(o.script_name) || null };
|
|
755
764
|
});
|
|
756
765
|
}
|
|
757
|
-
function tomlDurableObjects(
|
|
766
|
+
function tomlDurableObjects(value2) {
|
|
758
767
|
const q = (t, k) => new RegExp(`\\b${k}\\s*=\\s*(?:"([^"]+)"|'([^']+)')`).exec(t);
|
|
759
|
-
return [...
|
|
768
|
+
return [...value2.matchAll(/\{([^}]*)\}/g)].map((m) => {
|
|
760
769
|
const t = m[1];
|
|
761
770
|
const pick2 = (k) => {
|
|
762
771
|
const r = q(t, k);
|
|
@@ -765,12 +774,25 @@ function tomlDurableObjects(value) {
|
|
|
765
774
|
return { name: pick2("name"), className: pick2("class_name"), script: pick2("script_name") || null };
|
|
766
775
|
});
|
|
767
776
|
}
|
|
777
|
+
function cronsOf(triggers) {
|
|
778
|
+
const list = triggers && typeof triggers === "object" ? triggers.crons : null;
|
|
779
|
+
return Array.isArray(list) ? [...new Set(list.filter((x) => typeof x === "string" && x.trim() !== "").map((x) => x.trim()))] : [];
|
|
780
|
+
}
|
|
781
|
+
function queuesOf(v) {
|
|
782
|
+
const o = v && typeof v === "object" ? v : {};
|
|
783
|
+
const str2 = (x) => typeof x === "string" ? x : "";
|
|
784
|
+
const rows2 = (x) => Array.isArray(x) ? x.map((r) => r && typeof r === "object" ? r : {}) : [];
|
|
785
|
+
return {
|
|
786
|
+
producers: rows2(o.producers).map((r) => ({ binding: str2(r.binding), queue: str2(r.queue) })).filter((r) => r.binding || r.queue),
|
|
787
|
+
consumers: rows2(o.consumers).map((r) => ({ queue: str2(r.queue) })).filter((r) => r.queue)
|
|
788
|
+
};
|
|
789
|
+
}
|
|
768
790
|
function bindingsOf(list) {
|
|
769
791
|
if (!Array.isArray(list)) return [];
|
|
770
792
|
return list.map((x) => x && typeof x === "object" && typeof x.binding === "string" ? { binding: x.binding } : null).filter((x) => x !== null);
|
|
771
793
|
}
|
|
772
794
|
function parseWranglerConfig(fileName, text2) {
|
|
773
|
-
const empty = { d1: [], r2: [], vars: [], main: null, assetsDir: null, compatibilityDate: null, compatibilityFlags: [], durableObjects: [] };
|
|
795
|
+
const empty = { d1: [], r2: [], vars: [], main: null, assetsDir: null, compatibilityDate: null, compatibilityFlags: [], durableObjects: [], crons: [], queues: { producers: [], consumers: [] } };
|
|
774
796
|
if (/\.toml$/.test(fileName)) return parseWranglerToml(text2);
|
|
775
797
|
let j;
|
|
776
798
|
try {
|
|
@@ -789,7 +811,9 @@ function parseWranglerConfig(fileName, text2) {
|
|
|
789
811
|
assetsDir: assets && typeof assets.directory === "string" ? assets.directory : null,
|
|
790
812
|
compatibilityDate: typeof j.compatibility_date === "string" ? j.compatibility_date : null,
|
|
791
813
|
compatibilityFlags: Array.isArray(j.compatibility_flags) ? j.compatibility_flags.filter((x) => typeof x === "string") : [],
|
|
792
|
-
durableObjects: durableObjectsOf(j.durable_objects)
|
|
814
|
+
durableObjects: durableObjectsOf(j.durable_objects),
|
|
815
|
+
crons: cronsOf(j.triggers),
|
|
816
|
+
queues: queuesOf(j.queues)
|
|
793
817
|
};
|
|
794
818
|
}
|
|
795
819
|
function tomlString(v) {
|
|
@@ -797,17 +821,25 @@ function tomlString(v) {
|
|
|
797
821
|
return m ? m[1] ?? m[2] ?? "" : null;
|
|
798
822
|
}
|
|
799
823
|
function parseWranglerToml(text2) {
|
|
800
|
-
const decl = { d1: [], r2: [], vars: [], main: null, assetsDir: null, compatibilityDate: null, compatibilityFlags: [], durableObjects: [] };
|
|
824
|
+
const decl = { d1: [], r2: [], vars: [], main: null, assetsDir: null, compatibilityDate: null, compatibilityFlags: [], durableObjects: [], crons: [], queues: { producers: [], consumers: [] } };
|
|
801
825
|
let section = "";
|
|
826
|
+
let cronLines = false;
|
|
802
827
|
for (const rawLine of text2.split(/\r?\n/)) {
|
|
803
828
|
const line = rawLine.replace(/\s+#.*$/, "").replace(/^#.*$/, "").trim();
|
|
804
829
|
if (!line) continue;
|
|
830
|
+
if (cronLines) {
|
|
831
|
+
for (const m of line.matchAll(/"([^"]*)"|'([^']*)'/g)) decl.crons.push((m[1] ?? m[2]).trim());
|
|
832
|
+
if (line.includes("]")) cronLines = false;
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
805
835
|
const arr = /^\[\[\s*([\w.]+)\s*\]\]$/.exec(line);
|
|
806
836
|
if (arr) {
|
|
807
837
|
section = `[[${arr[1]}]]`;
|
|
808
838
|
if (arr[1] === "d1_databases") decl.d1.push({ binding: "" });
|
|
809
839
|
if (arr[1] === "r2_buckets") decl.r2.push({ binding: "" });
|
|
810
840
|
if (arr[1] === "durable_objects.bindings") decl.durableObjects.push({ name: "", className: "", script: null });
|
|
841
|
+
if (arr[1] === "queues.producers") decl.queues.producers.push({ binding: "", queue: "" });
|
|
842
|
+
if (arr[1] === "queues.consumers") decl.queues.consumers.push({ queue: "" });
|
|
811
843
|
continue;
|
|
812
844
|
}
|
|
813
845
|
const tbl = /^\[\s*([\w.]+)\s*\]$/.exec(line);
|
|
@@ -818,41 +850,54 @@ function parseWranglerToml(text2) {
|
|
|
818
850
|
const kv = /^([\w-]+|"[^"]+")\s*=\s*(.*)$/.exec(line);
|
|
819
851
|
if (!kv) continue;
|
|
820
852
|
const key2 = kv[1].replace(/^"|"$/g, "");
|
|
821
|
-
const
|
|
853
|
+
const value2 = kv[2];
|
|
822
854
|
if (section === "") {
|
|
823
|
-
if (key2 === "main") decl.main = tomlString(
|
|
824
|
-
if (key2 === "compatibility_date") decl.compatibilityDate = tomlString(
|
|
825
|
-
if (key2 === "compatibility_flags") decl.compatibilityFlags = [...
|
|
855
|
+
if (key2 === "main") decl.main = tomlString(value2);
|
|
856
|
+
if (key2 === "compatibility_date") decl.compatibilityDate = tomlString(value2);
|
|
857
|
+
if (key2 === "compatibility_flags") decl.compatibilityFlags = [...value2.matchAll(/"([^"]+)"|'([^']+)'/g)].map((m) => m[1] ?? m[2]);
|
|
826
858
|
if (key2 === "d1_databases" || key2 === "r2_buckets") {
|
|
827
859
|
const target = key2 === "d1_databases" ? decl.d1 : decl.r2;
|
|
828
|
-
for (const m of
|
|
860
|
+
for (const m of value2.matchAll(/binding\s*=\s*(?:"([^"]+)"|'([^']+)')/g)) target.push({ binding: m[1] ?? m[2] });
|
|
829
861
|
}
|
|
830
|
-
if (key2 === "vars") for (const m of
|
|
831
|
-
if (key2 === "durable_objects") decl.durableObjects.push(...tomlDurableObjects(
|
|
862
|
+
if (key2 === "vars") for (const m of value2.matchAll(/([\w-]+)\s*=/g)) decl.vars.push(m[1]);
|
|
863
|
+
if (key2 === "durable_objects") decl.durableObjects.push(...tomlDurableObjects(value2));
|
|
832
864
|
} else if (section === "durable_objects" && key2 === "bindings") {
|
|
833
|
-
decl.durableObjects.push(...tomlDurableObjects(
|
|
865
|
+
decl.durableObjects.push(...tomlDurableObjects(value2));
|
|
834
866
|
} else if (section === "[[durable_objects.bindings]]" && (key2 === "name" || key2 === "class_name" || key2 === "script_name")) {
|
|
835
|
-
const v = tomlString(
|
|
867
|
+
const v = tomlString(value2);
|
|
836
868
|
const last = decl.durableObjects[decl.durableObjects.length - 1];
|
|
837
869
|
if (v != null && last) {
|
|
838
870
|
if (key2 === "name") last.name = v;
|
|
839
871
|
else if (key2 === "class_name") last.className = v;
|
|
840
872
|
else last.script = v || null;
|
|
841
873
|
}
|
|
874
|
+
} else if (section === "triggers" && key2 === "crons") {
|
|
875
|
+
for (const m of value2.matchAll(/"([^"]*)"|'([^']*)'/g)) decl.crons.push((m[1] ?? m[2]).trim());
|
|
876
|
+
cronLines = value2.includes("[") && !value2.includes("]");
|
|
877
|
+
} else if (section === "[[queues.producers]]" && (key2 === "binding" || key2 === "queue")) {
|
|
878
|
+
const v = tomlString(value2);
|
|
879
|
+
const last = decl.queues.producers[decl.queues.producers.length - 1];
|
|
880
|
+
if (v != null && last) last[key2] = v;
|
|
881
|
+
} else if (section === "[[queues.consumers]]" && key2 === "queue") {
|
|
882
|
+
const v = tomlString(value2);
|
|
883
|
+
const last = decl.queues.consumers[decl.queues.consumers.length - 1];
|
|
884
|
+
if (v != null && last) last.queue = v;
|
|
842
885
|
} else if (section === "vars") {
|
|
843
886
|
decl.vars.push(key2);
|
|
844
887
|
} else if (section === "assets" && key2 === "directory") {
|
|
845
|
-
decl.assetsDir = tomlString(
|
|
888
|
+
decl.assetsDir = tomlString(value2);
|
|
846
889
|
} else if (section === "[[d1_databases]]" && key2 === "binding") {
|
|
847
|
-
const v = tomlString(
|
|
890
|
+
const v = tomlString(value2);
|
|
848
891
|
if (v != null) decl.d1[decl.d1.length - 1].binding = v;
|
|
849
892
|
} else if (section === "[[r2_buckets]]" && key2 === "binding") {
|
|
850
|
-
const v = tomlString(
|
|
893
|
+
const v = tomlString(value2);
|
|
851
894
|
if (v != null) decl.r2[decl.r2.length - 1].binding = v;
|
|
852
895
|
}
|
|
853
896
|
}
|
|
854
897
|
decl.d1 = decl.d1.filter((b) => b.binding);
|
|
855
898
|
decl.r2 = decl.r2.filter((b) => b.binding);
|
|
899
|
+
decl.crons = [...new Set(decl.crons.filter(Boolean))];
|
|
900
|
+
decl.queues = { producers: decl.queues.producers.filter((r) => r.binding || r.queue), consumers: decl.queues.consumers.filter((r) => r.queue) };
|
|
856
901
|
return decl;
|
|
857
902
|
}
|
|
858
903
|
|
|
@@ -989,13 +1034,26 @@ var ISSUE_HELP = {
|
|
|
989
1034
|
he: {
|
|
990
1035
|
what: "\u05D4\u05D0\u05EA\u05E8 \u05DE\u05E4\u05E2\u05D9\u05DC \u05DE\u05E9\u05D4\u05D5 \u05E9\u05E8\u05E5 \u05D1\u05E8\u05E7\u05E2 \u05DB\u05DC \u05D4\u05D6\u05DE\u05DF, \u05DB\u05DE\u05D5 \u05D8\u05D9\u05D9\u05DE\u05E8, \u05EA\u05D5\u05E8 \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05D0\u05D5 \u05DE\u05E9\u05D9\u05DE\u05D4 \u05DE\u05EA\u05D5\u05D6\u05DE\u05E0\u05EA.",
|
|
991
1036
|
why: "\u05D0\u05E6\u05DC\u05E0\u05D5 \u05D4\u05D0\u05EA\u05E8 \u05E8\u05E5 \u05E8\u05E7 \u05DB\u05E9\u05DE\u05D9\u05E9\u05D4\u05D5 \u05E0\u05DB\u05E0\u05E1, \u05D5\u05E9\u05D5\u05DD \u05D3\u05D1\u05E8 \u05DC\u05D0 \u05E0\u05E9\u05D0\u05E8 \u05E4\u05D5\u05E2\u05DC \u05D1\u05D9\u05DF \u05DB\u05E0\u05D9\u05E1\u05D4 \u05DC\u05DB\u05E0\u05D9\u05E1\u05D4. \u05DE\u05D4 \u05E9\u05E8\u05E5 \u05D1\u05E8\u05E7\u05E2 \u05E4\u05E9\u05D5\u05D8 \u05DC\u05D0 \u05D9\u05E4\u05E2\u05DC, \u05D5\u05DC\u05DB\u05DF \u05D4\u05D0\u05EA\u05E8 \u05DC\u05D0 \u05D9\u05E2\u05DC\u05D4.",
|
|
992
|
-
fix: ["\u05DE\u05D5\u05E6\u05D9\u05D0\u05D9\u05DD \u05DE\u05D4\u05D0\u05EA\u05E8 \u05D8\u05D9\u05D9\u05DE\u05E8\u05D9\u05DD, \u05EA\u05D5\u05E8\u05D9 \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05D5\u05E1\u05E4\u05E8\u05D9\u05D5\u05EA \u05E9\u05DC \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05DE\u05EA\u05D5\u05D6\u05DE\u05E0\u05D5\u05EA.", "\
|
|
993
|
-
prompt:
|
|
1037
|
+
fix: ["\u05DE\u05D5\u05E6\u05D9\u05D0\u05D9\u05DD \u05DE\u05D4\u05D0\u05EA\u05E8 \u05D8\u05D9\u05D9\u05DE\u05E8\u05D9\u05DD, \u05EA\u05D5\u05E8\u05D9 \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05D5\u05E1\u05E4\u05E8\u05D9\u05D5\u05EA \u05E9\u05DC \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05DE\u05EA\u05D5\u05D6\u05DE\u05E0\u05D5\u05EA.", "\u05E6\u05E8\u05D9\u05DB\u05D9\u05DD \u05DE\u05E9\u05D9\u05DE\u05D4 \u05E9\u05E8\u05E6\u05D4 \u05DC\u05E4\u05D9 \u05E9\u05E2\u05D5\u05DF, \u05DB\u05DE\u05D5 \u05D2\u05D9\u05D1\u05D5\u05D9 \u05D1\u05DB\u05DC \u05DC\u05D9\u05DC\u05D4? \u05D4\u05E1\u05D5\u05DB\u05DF \u05E7\u05D5\u05D1\u05E2 \u05DC\u05D4 \u05D6\u05DE\u05E0\u05D9\u05DD, \u05D5\u05D0\u05E0\u05D7\u05E0\u05D5 \u05DE\u05E8\u05D9\u05E6\u05D9\u05DD \u05D0\u05D5\u05EA\u05D4 \u05D1\u05D6\u05DE\u05E0\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4, \u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8 \u05E4\u05E2\u05DD \u05D1\u05BE5 \u05D3\u05E7\u05D5\u05EA. \u05DB\u05DE\u05D4 \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05DB\u05D0\u05DC\u05D4 \u05D9\u05E9 \u05DC\u05DB\u05DC \u05D0\u05EA\u05E8, \u05D6\u05D4 \u05DC\u05E4\u05D9 \u05D4\u05D7\u05D1\u05D9\u05DC\u05D4.", "\u05DE\u05E8\u05D9\u05E6\u05D9\u05DD \u05E9\u05D5\u05D1 \u05D0\u05EA \u05D4\u05D1\u05D3\u05D9\u05E7\u05D4."],
|
|
1038
|
+
prompt: '\u05D4\u05D0\u05EA\u05E8 \u05E8\u05E5 \u05DC\u05DB\u05DC \u05D1\u05E7\u05E9\u05D4 \u05D1\u05E0\u05E4\u05E8\u05D3, \u05D5\u05E9\u05D5\u05DD \u05D3\u05D1\u05E8 \u05DC\u05D0 \u05E0\u05E9\u05D0\u05E8 \u05E4\u05D5\u05E2\u05DC \u05D1\u05D9\u05DF \u05D1\u05E7\u05E9\u05D5\u05EA. \u05D4\u05E1\u05E8 \u05D8\u05D9\u05D9\u05DE\u05E8\u05D9\u05DD, \u05EA\u05D5\u05E8\u05D9 \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05D5\u05E1\u05E4\u05E8\u05D9\u05D5\u05EA cron. \u05DC\u05E2\u05D1\u05D5\u05D3\u05D4 \u05DC\u05E4\u05D9 \u05E9\u05E2\u05D5\u05DF, \u05E8\u05E9\u05D5\u05DD \u05D0\u05EA \u05D4\u05D6\u05DE\u05E0\u05D9\u05DD \u05E9\u05DC\u05D4 \u05D1\u05E7\u05D5\u05D1\u05E5 \u05D4\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05E9\u05DC wrangler \u05EA\u05D7\u05EA "triggers": { "crons": ["0 3 * * *"] }, \u05D5\u05D9\u05D9\u05E6\u05D0 \u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D9\u05EA scheduled \u05DC\u05E6\u05D3 fetch: export default { fetch, async scheduled(event, env, ctx) { ... } }. DeployAI \u05DE\u05E8\u05D9\u05E5 \u05D0\u05D5\u05EA\u05D4 \u05D1\u05D6\u05DE\u05E0\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4 (\u05DC\u05E4\u05D9 UTC), \u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8 \u05E4\u05E2\u05DD \u05D1\u05BE5 \u05D3\u05E7\u05D5\u05EA, \u05E2\u05DD \u05D4\u05BEbindings \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05E2\u05E6\u05DE\u05D5.'
|
|
994
1039
|
},
|
|
995
1040
|
en: {
|
|
996
1041
|
what: "The site starts something that keeps running in the background, such as a timer, a job queue or a scheduled task.",
|
|
997
1042
|
why: "On DeployAI the site runs only when someone visits, and nothing stays running between visits. Background work would simply not run, so the site will not go live.",
|
|
998
|
-
fix: ["Remove timers, job queues and scheduled task libraries from the site.", "
|
|
1043
|
+
fix: ["Remove timers, job queues and scheduled task libraries from the site.", "Need a task on a clock, like a nightly backup? Your agent sets its times, and we run it then, at most every 5 minutes. How many such tasks a site can have depends on your plan.", "Run the check again."]
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
schedule_not_run: {
|
|
1047
|
+
he: {
|
|
1048
|
+
what: "\u05D0\u05D7\u05EA \u05D4\u05DE\u05E9\u05D9\u05DE\u05D5\u05EA \u05D4\u05DE\u05EA\u05D5\u05D6\u05DE\u05E0\u05D5\u05EA \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DC\u05D0 \u05EA\u05E8\u05D5\u05E5: \u05D4\u05D9\u05D0 \u05E7\u05D1\u05D5\u05E2\u05D4 \u05DC\u05E8\u05D5\u05E5 \u05D9\u05D5\u05EA\u05E8 \u05DE\u05E4\u05E2\u05DD \u05D1\u05BE5 \u05D3\u05E7\u05D5\u05EA, \u05D0\u05D5 \u05E9\u05D0\u05D9 \u05D0\u05E4\u05E9\u05E8 \u05DC\u05E7\u05E8\u05D5\u05D0 \u05D0\u05EA \u05D4\u05D6\u05DE\u05DF \u05E9\u05DC\u05D4.",
|
|
1049
|
+
why: "\u05D0\u05E0\u05D7\u05E0\u05D5 \u05DE\u05E8\u05D9\u05E6\u05D9\u05DD \u05DE\u05E9\u05D9\u05DE\u05D4 \u05DE\u05EA\u05D5\u05D6\u05DE\u05E0\u05EA \u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8 \u05E4\u05E2\u05DD \u05D1\u05BE5 \u05D3\u05E7\u05D5\u05EA. \u05DE\u05E9\u05D9\u05DE\u05D4 \u05E9\u05E7\u05D1\u05D5\u05E2\u05D4 \u05DC\u05E8\u05D5\u05E5 \u05DC\u05E2\u05D9\u05EA\u05D9\u05DD \u05E7\u05E8\u05D5\u05D1\u05D5\u05EA \u05D9\u05D5\u05EA\u05E8, \u05D0\u05D5 \u05E9\u05D4\u05D6\u05DE\u05DF \u05E9\u05DC\u05D4 \u05DB\u05EA\u05D5\u05D1 \u05D1\u05E6\u05D5\u05E8\u05D4 \u05E9\u05D0\u05E0\u05D7\u05E0\u05D5 \u05DC\u05D0 \u05DE\u05D1\u05D9\u05E0\u05D9\u05DD, \u05DC\u05D0 \u05E8\u05E6\u05D4 \u05D1\u05DB\u05DC\u05DC. \u05E9\u05D0\u05E8 \u05D4\u05D0\u05EA\u05E8 \u05E2\u05D5\u05DC\u05D4 \u05DB\u05E8\u05D2\u05D9\u05DC.",
|
|
1050
|
+
fix: ["\u05D4\u05E1\u05D5\u05DB\u05DF \u05DE\u05E9\u05E0\u05D4 \u05D0\u05EA \u05D4\u05D6\u05DE\u05DF \u05E9\u05DC \u05D4\u05DE\u05E9\u05D9\u05DE\u05D4, \u05DC\u05DE\u05E9\u05DC \u05DC\u05E4\u05E2\u05DD \u05D1\u05BE5 \u05D3\u05E7\u05D5\u05EA \u05D0\u05D5 \u05DC\u05E4\u05E2\u05DD \u05D1\u05D9\u05D5\u05DD.", "\u05DE\u05E8\u05D9\u05E6\u05D9\u05DD \u05E9\u05D5\u05D1 \u05D0\u05EA \u05D4\u05D1\u05D3\u05D9\u05E7\u05D4."],
|
|
1051
|
+
prompt: 'DeployAI \u05DE\u05E8\u05D9\u05E5 \u05DB\u05DC \u05E9\u05D5\u05E8\u05D4 \u05D1\u05BEtriggers.crons \u05D1\u05D6\u05DE\u05E0\u05D9\u05DD \u05E9\u05DC\u05D4 \u05DC\u05E4\u05D9 UTC, \u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8 \u05E4\u05E2\u05DD \u05D1\u05BE5 \u05D3\u05E7\u05D5\u05EA. \u05E9\u05D5\u05E8\u05D4 \u05E9\u05E8\u05E6\u05D4 \u05DC\u05E2\u05D9\u05EA\u05D9\u05DD \u05E7\u05E8\u05D5\u05D1\u05D5\u05EA \u05D9\u05D5\u05EA\u05E8, \u05D0\u05D5 \u05E9\u05D0\u05D9\u05E0\u05D4 \u05E9\u05D5\u05E8\u05EA cron \u05D1\u05EA \u05D7\u05DE\u05D9\u05E9\u05D4 \u05D7\u05DC\u05E7\u05D9\u05DD (\u05D3\u05E7\u05D4, \u05E9\u05E2\u05D4, \u05D9\u05D5\u05DD \u05D1\u05D7\u05D5\u05D3\u05E9, \u05D7\u05D5\u05D3\u05E9, \u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2), \u05DC\u05D0 \u05E8\u05E6\u05D4 \u05D1\u05DB\u05DC\u05DC. \u05E9\u05E0\u05D4 \u05D0\u05D5\u05EA\u05D4, \u05DC\u05DE\u05E9\u05DC \u05DC\u05BE"*/5 * * * *" \u05DC\u05DB\u05DC 5 \u05D3\u05E7\u05D5\u05EA \u05D0\u05D5 \u05DC\u05BE"0 3 * * *" \u05DC\u05E9\u05E2\u05D4 03:00 UTC \u05D1\u05DB\u05DC \u05D9\u05D5\u05DD.'
|
|
1052
|
+
},
|
|
1053
|
+
en: {
|
|
1054
|
+
what: "One of the site's scheduled tasks will not run: it is set to run more often than every 5 minutes, or we cannot read its time.",
|
|
1055
|
+
why: "We run a scheduled task at most once every 5 minutes. A task set to run more often, or with a time written in a way we cannot read, does not run at all. The rest of the site goes live as usual.",
|
|
1056
|
+
fix: ["Your agent changes the task's time, for example to every 5 minutes or once a day.", "Run the check again."]
|
|
999
1057
|
}
|
|
1000
1058
|
},
|
|
1001
1059
|
durable_objects: {
|
|
@@ -2075,10 +2133,10 @@ function getEnumValues(entries) {
|
|
|
2075
2133
|
function joinValues(array2, separator = "|") {
|
|
2076
2134
|
return array2.map((val) => stringifyPrimitive(val)).join(separator);
|
|
2077
2135
|
}
|
|
2078
|
-
function jsonStringifyReplacer(_,
|
|
2079
|
-
if (typeof
|
|
2080
|
-
return
|
|
2081
|
-
return
|
|
2136
|
+
function jsonStringifyReplacer(_, value2) {
|
|
2137
|
+
if (typeof value2 === "bigint")
|
|
2138
|
+
return value2.toString();
|
|
2139
|
+
return value2;
|
|
2082
2140
|
}
|
|
2083
2141
|
var Cached = class {
|
|
2084
2142
|
constructor(getter) {
|
|
@@ -2115,17 +2173,17 @@ function floatSafeRemainder(val, step) {
|
|
|
2115
2173
|
}
|
|
2116
2174
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
2117
2175
|
function defineLazy(object2, key2, getter) {
|
|
2118
|
-
let
|
|
2176
|
+
let value2 = void 0;
|
|
2119
2177
|
Object.defineProperty(object2, key2, {
|
|
2120
2178
|
get() {
|
|
2121
|
-
if (
|
|
2179
|
+
if (value2 === EVALUATING) {
|
|
2122
2180
|
return void 0;
|
|
2123
2181
|
}
|
|
2124
|
-
if (
|
|
2125
|
-
|
|
2126
|
-
|
|
2182
|
+
if (value2 === void 0) {
|
|
2183
|
+
value2 = EVALUATING;
|
|
2184
|
+
value2 = getter();
|
|
2127
2185
|
}
|
|
2128
|
-
return
|
|
2186
|
+
return value2;
|
|
2129
2187
|
},
|
|
2130
2188
|
set(v) {
|
|
2131
2189
|
Object.defineProperty(object2, key2, {
|
|
@@ -2139,9 +2197,9 @@ function defineLazy(object2, key2, getter) {
|
|
|
2139
2197
|
function objectClone(obj) {
|
|
2140
2198
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
2141
2199
|
}
|
|
2142
|
-
function assignProp(target, prop,
|
|
2200
|
+
function assignProp(target, prop, value2) {
|
|
2143
2201
|
Object.defineProperty(target, prop, {
|
|
2144
|
-
value,
|
|
2202
|
+
value: value2,
|
|
2145
2203
|
writable: true,
|
|
2146
2204
|
enumerable: true,
|
|
2147
2205
|
configurable: true
|
|
@@ -2157,19 +2215,19 @@ function sourceShape(schema) {
|
|
|
2157
2215
|
function deferProp(target, key2, getter) {
|
|
2158
2216
|
Object.defineProperty(target, key2, {
|
|
2159
2217
|
get() {
|
|
2160
|
-
const
|
|
2161
|
-
assignProp(this, key2,
|
|
2162
|
-
return
|
|
2218
|
+
const value2 = getter();
|
|
2219
|
+
assignProp(this, key2, value2);
|
|
2220
|
+
return value2;
|
|
2163
2221
|
},
|
|
2164
2222
|
enumerable: true,
|
|
2165
2223
|
configurable: true
|
|
2166
2224
|
});
|
|
2167
2225
|
}
|
|
2168
|
-
function putProp(target, key2,
|
|
2226
|
+
function putProp(target, key2, value2) {
|
|
2169
2227
|
if (key2 in target)
|
|
2170
|
-
assignProp(target, key2,
|
|
2228
|
+
assignProp(target, key2, value2);
|
|
2171
2229
|
else
|
|
2172
|
-
target[key2] =
|
|
2230
|
+
target[key2] = value2;
|
|
2173
2231
|
}
|
|
2174
2232
|
function mirrorShape(target, source, keys, wrap) {
|
|
2175
2233
|
const raw = sourceShape(source);
|
|
@@ -2179,8 +2237,8 @@ function mirrorShape(target, source, keys, wrap) {
|
|
|
2179
2237
|
continue;
|
|
2180
2238
|
if (desc.get) {
|
|
2181
2239
|
deferProp(target, key2, () => {
|
|
2182
|
-
const
|
|
2183
|
-
return wrap ? wrap(
|
|
2240
|
+
const value2 = source._zod.def.shape[key2];
|
|
2241
|
+
return wrap ? wrap(value2, key2) : value2;
|
|
2184
2242
|
});
|
|
2185
2243
|
} else
|
|
2186
2244
|
putProp(target, key2, wrap ? wrap(desc.value, key2) : desc.value);
|
|
@@ -2379,9 +2437,9 @@ function createTransparentProxy(getter) {
|
|
|
2379
2437
|
target ?? (target = getter());
|
|
2380
2438
|
return Reflect.get(target, prop, receiver);
|
|
2381
2439
|
},
|
|
2382
|
-
set(_, prop,
|
|
2440
|
+
set(_, prop, value2, receiver) {
|
|
2383
2441
|
target ?? (target = getter());
|
|
2384
|
-
return Reflect.set(target, prop,
|
|
2442
|
+
return Reflect.set(target, prop, value2, receiver);
|
|
2385
2443
|
},
|
|
2386
2444
|
has(_, prop) {
|
|
2387
2445
|
target ?? (target = getter());
|
|
@@ -2405,12 +2463,12 @@ function createTransparentProxy(getter) {
|
|
|
2405
2463
|
}
|
|
2406
2464
|
});
|
|
2407
2465
|
}
|
|
2408
|
-
function stringifyPrimitive(
|
|
2409
|
-
if (typeof
|
|
2410
|
-
return
|
|
2411
|
-
if (typeof
|
|
2412
|
-
return `"${
|
|
2413
|
-
return `${
|
|
2466
|
+
function stringifyPrimitive(value2) {
|
|
2467
|
+
if (typeof value2 === "bigint")
|
|
2468
|
+
return value2.toString() + "n";
|
|
2469
|
+
if (typeof value2 === "string")
|
|
2470
|
+
return `"${value2}"`;
|
|
2471
|
+
return `${value2}`;
|
|
2414
2472
|
}
|
|
2415
2473
|
function optionalKeys(shape) {
|
|
2416
2474
|
return Object.keys(shape).filter((k) => {
|
|
@@ -2519,15 +2577,15 @@ function partial(Class2, schema, mask, name = "partial") {
|
|
|
2519
2577
|
}
|
|
2520
2578
|
const selected = mask ? new Set(maskedKeys(schema, mask)) : void 0;
|
|
2521
2579
|
const newShape = {};
|
|
2522
|
-
mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), Class2 && ((
|
|
2580
|
+
mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), Class2 && ((value2, key2) => selected && !selected.has(key2) ? value2 : new Class2({ type: "optional", innerType: value2 })));
|
|
2523
2581
|
return clone(schema, mergeDefs(schema._zod.def, { shape: newShape, checks: [] }));
|
|
2524
2582
|
}
|
|
2525
2583
|
function required(Class2, schema, mask) {
|
|
2526
2584
|
const selected = mask ? new Set(maskedKeys(schema, mask)) : void 0;
|
|
2527
2585
|
const newShape = {};
|
|
2528
|
-
mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), (
|
|
2586
|
+
mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), (value2, key2) => (
|
|
2529
2587
|
// overwrite with non-optional
|
|
2530
|
-
selected && !selected.has(key2) ?
|
|
2588
|
+
selected && !selected.has(key2) ? value2 : new Class2({ type: "nonoptional", innerType: value2 })
|
|
2531
2589
|
));
|
|
2532
2590
|
return clone(schema, mergeDefs(schema._zod.def, { shape: newShape }));
|
|
2533
2591
|
}
|
|
@@ -2722,12 +2780,12 @@ function members(proto, table) {
|
|
|
2722
2780
|
defineBound(proto, key2, desc.value);
|
|
2723
2781
|
}
|
|
2724
2782
|
}
|
|
2725
|
-
function own(inst, key2,
|
|
2726
|
-
Object.defineProperty(inst, key2, { configurable: true, writable: true, enumerable, value });
|
|
2727
|
-
return
|
|
2783
|
+
function own(inst, key2, value2, enumerable = true) {
|
|
2784
|
+
Object.defineProperty(inst, key2, { configurable: true, writable: true, enumerable, value: value2 });
|
|
2785
|
+
return value2;
|
|
2728
2786
|
}
|
|
2729
|
-
function hide(inst, key2,
|
|
2730
|
-
return own(inst, key2,
|
|
2787
|
+
function hide(inst, key2, value2) {
|
|
2788
|
+
return own(inst, key2, value2, false);
|
|
2731
2789
|
}
|
|
2732
2790
|
// @__NO_SIDE_EFFECTS__
|
|
2733
2791
|
function derived(computes, table) {
|
|
@@ -2739,8 +2797,8 @@ function derived(computes, table) {
|
|
|
2739
2797
|
get() {
|
|
2740
2798
|
return own(this, key2, compute(this));
|
|
2741
2799
|
},
|
|
2742
|
-
set(
|
|
2743
|
-
own(this, key2,
|
|
2800
|
+
set(value2) {
|
|
2801
|
+
own(this, key2, value2);
|
|
2744
2802
|
}
|
|
2745
2803
|
});
|
|
2746
2804
|
}
|
|
@@ -2752,8 +2810,8 @@ function defineBound(proto, key2, fn) {
|
|
|
2752
2810
|
get() {
|
|
2753
2811
|
return this == null ? fn : own(this, key2, fn.bind(this));
|
|
2754
2812
|
},
|
|
2755
|
-
set(
|
|
2756
|
-
own(this, key2,
|
|
2813
|
+
set(value2) {
|
|
2814
|
+
own(this, key2, value2);
|
|
2757
2815
|
}
|
|
2758
2816
|
});
|
|
2759
2817
|
}
|
|
@@ -2784,21 +2842,21 @@ function defineLazyInternal(inst, key2, compute) {
|
|
|
2784
2842
|
const outer = broke;
|
|
2785
2843
|
broke = false;
|
|
2786
2844
|
try {
|
|
2787
|
-
const
|
|
2845
|
+
const value2 = compute(this);
|
|
2788
2846
|
if (broke)
|
|
2789
2847
|
delete this[key2];
|
|
2790
2848
|
else
|
|
2791
|
-
Object.defineProperty(this, key2, { configurable: true, writable: true, value });
|
|
2849
|
+
Object.defineProperty(this, key2, { configurable: true, writable: true, value: value2 });
|
|
2792
2850
|
broke = broke || outer;
|
|
2793
|
-
return
|
|
2851
|
+
return value2;
|
|
2794
2852
|
} catch (err2) {
|
|
2795
2853
|
delete this[key2];
|
|
2796
2854
|
broke = broke || outer;
|
|
2797
2855
|
throw err2;
|
|
2798
2856
|
}
|
|
2799
2857
|
},
|
|
2800
|
-
set(
|
|
2801
|
-
Object.defineProperty(this, key2, { configurable: true, writable: true, value });
|
|
2858
|
+
set(value2) {
|
|
2859
|
+
Object.defineProperty(this, key2, { configurable: true, writable: true, value: value2 });
|
|
2802
2860
|
}
|
|
2803
2861
|
});
|
|
2804
2862
|
}
|
|
@@ -2815,14 +2873,14 @@ function installLazyProp(inst, key2, make, enumerable) {
|
|
|
2815
2873
|
Object.defineProperty(this, key2, desc);
|
|
2816
2874
|
return desc.value;
|
|
2817
2875
|
},
|
|
2818
|
-
set(
|
|
2819
|
-
Object.defineProperty(this, key2, { configurable: true, writable: true, enumerable, value });
|
|
2876
|
+
set(value2) {
|
|
2877
|
+
Object.defineProperty(this, key2, { configurable: true, writable: true, enumerable, value: value2 });
|
|
2820
2878
|
}
|
|
2821
2879
|
});
|
|
2822
2880
|
}
|
|
2823
2881
|
var CONSTANT_CATCH = "~constantCatch";
|
|
2824
|
-
function constantCatch(
|
|
2825
|
-
const fn = () =>
|
|
2882
|
+
function constantCatch(value2) {
|
|
2883
|
+
const fn = () => value2;
|
|
2826
2884
|
fn[CONSTANT_CATCH] = true;
|
|
2827
2885
|
return fn;
|
|
2828
2886
|
}
|
|
@@ -2955,8 +3013,8 @@ function _getMessage() {
|
|
|
2955
3013
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
2956
3014
|
return internals.message;
|
|
2957
3015
|
}
|
|
2958
|
-
function _setMessage(
|
|
2959
|
-
this._zod.message =
|
|
3016
|
+
function _setMessage(value2) {
|
|
3017
|
+
this._zod.message = value2;
|
|
2960
3018
|
}
|
|
2961
3019
|
var _messageDesc = {
|
|
2962
3020
|
get: _getMessage,
|
|
@@ -2979,12 +3037,12 @@ var initializer = (inst, def) => {
|
|
|
2979
3037
|
configurable: true,
|
|
2980
3038
|
enumerable: false,
|
|
2981
3039
|
get() {
|
|
2982
|
-
const
|
|
2983
|
-
Object.defineProperty(this, "toString", { value, configurable: true, writable: true });
|
|
2984
|
-
return
|
|
3040
|
+
const value2 = () => this.message;
|
|
3041
|
+
Object.defineProperty(this, "toString", { value: value2, configurable: true, writable: true });
|
|
3042
|
+
return value2;
|
|
2985
3043
|
},
|
|
2986
|
-
set(
|
|
2987
|
-
Object.defineProperty(this, "toString", { value, configurable: true, writable: true });
|
|
3044
|
+
set(value2) {
|
|
3045
|
+
Object.defineProperty(this, "toString", { value: value2, configurable: true, writable: true });
|
|
2988
3046
|
}
|
|
2989
3047
|
});
|
|
2990
3048
|
}
|
|
@@ -3146,9 +3204,9 @@ function finalizeParams(callee, params) {
|
|
|
3146
3204
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
3147
3205
|
}
|
|
3148
3206
|
var _parse = (_Err) => {
|
|
3149
|
-
const fn = (schema,
|
|
3207
|
+
const fn = (schema, value2, _ctx, _params) => {
|
|
3150
3208
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
3151
|
-
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
3209
|
+
const result = schema._zod.run({ value: value2, issues: [] }, ctx);
|
|
3152
3210
|
if (result instanceof Promise) {
|
|
3153
3211
|
throw new $ZodAsyncError();
|
|
3154
3212
|
}
|
|
@@ -3163,9 +3221,9 @@ var _parse = (_Err) => {
|
|
|
3163
3221
|
};
|
|
3164
3222
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
3165
3223
|
var _parseAsync = (_Err) => {
|
|
3166
|
-
const fn = async (schema,
|
|
3224
|
+
const fn = async (schema, value2, _ctx, params) => {
|
|
3167
3225
|
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
3168
|
-
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
3226
|
+
let result = schema._zod.run({ value: value2, issues: [] }, ctx);
|
|
3169
3227
|
if (result instanceof Promise)
|
|
3170
3228
|
result = await result;
|
|
3171
3229
|
if (result.issues.length) {
|
|
@@ -3178,9 +3236,9 @@ var _parseAsync = (_Err) => {
|
|
|
3178
3236
|
return fn;
|
|
3179
3237
|
};
|
|
3180
3238
|
var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
|
|
3181
|
-
var _safeParse = (_Err) => (schema,
|
|
3239
|
+
var _safeParse = (_Err) => (schema, value2, _ctx) => {
|
|
3182
3240
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
3183
|
-
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
3241
|
+
const result = schema._zod.run({ value: value2, issues: [] }, ctx);
|
|
3184
3242
|
if (result instanceof Promise) {
|
|
3185
3243
|
throw new $ZodAsyncError();
|
|
3186
3244
|
}
|
|
@@ -3206,9 +3264,9 @@ function failure(Err, issues, ctx) {
|
|
|
3206
3264
|
}
|
|
3207
3265
|
};
|
|
3208
3266
|
}
|
|
3209
|
-
var _safeParseAsync = (_Err) => async (schema,
|
|
3267
|
+
var _safeParseAsync = (_Err) => async (schema, value2, _ctx) => {
|
|
3210
3268
|
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
3211
|
-
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
3269
|
+
let result = schema._zod.run({ value: value2, issues: [] }, ctx);
|
|
3212
3270
|
if (result instanceof Promise)
|
|
3213
3271
|
result = await result;
|
|
3214
3272
|
return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value };
|
|
@@ -3216,88 +3274,88 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
3216
3274
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
3217
3275
|
var COMPILE_INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
|
|
3218
3276
|
var COMPILE_FALLBACK = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
|
|
3219
|
-
var validate = ((schema,
|
|
3277
|
+
var validate = ((schema, value2, _ctx) => {
|
|
3220
3278
|
const validator = schema._zod.bag.validator;
|
|
3221
3279
|
if (validator !== void 0) {
|
|
3222
|
-
if (validator(
|
|
3280
|
+
if (validator(value2) !== COMPILE_INVALID)
|
|
3223
3281
|
return true;
|
|
3224
3282
|
if (validator.definite === true && _ctx === void 0)
|
|
3225
3283
|
return false;
|
|
3226
3284
|
}
|
|
3227
|
-
return validateFallback(schema,
|
|
3285
|
+
return validateFallback(schema, value2, _ctx);
|
|
3228
3286
|
});
|
|
3229
|
-
function validateFallback(schema,
|
|
3287
|
+
function validateFallback(schema, value2, _ctx) {
|
|
3230
3288
|
const ctx = _ctx ? { ..._ctx, async: false, abortEarly: true } : { async: false, abortEarly: true };
|
|
3231
3289
|
const fallbackRun = schema._zod.bag.fallbackRun;
|
|
3232
3290
|
let result;
|
|
3233
3291
|
if (fallbackRun) {
|
|
3234
3292
|
ctx[COMPILE_FALLBACK] = true;
|
|
3235
|
-
result = fallbackRun({ value, issues: [] }, ctx);
|
|
3293
|
+
result = fallbackRun({ value: value2, issues: [] }, ctx);
|
|
3236
3294
|
} else {
|
|
3237
|
-
result = schema._zod.run({ value, issues: [] }, ctx);
|
|
3295
|
+
result = schema._zod.run({ value: value2, issues: [] }, ctx);
|
|
3238
3296
|
}
|
|
3239
3297
|
if (result instanceof Promise) {
|
|
3240
3298
|
throw new $ZodAsyncError();
|
|
3241
3299
|
}
|
|
3242
3300
|
return result.issues.length === 0;
|
|
3243
3301
|
}
|
|
3244
|
-
var validateAsync = async (schema,
|
|
3302
|
+
var validateAsync = async (schema, value2, _ctx) => {
|
|
3245
3303
|
const ctx = _ctx ? { ..._ctx, async: true, abortEarly: true } : { async: true, abortEarly: true };
|
|
3246
|
-
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
3304
|
+
let result = schema._zod.run({ value: value2, issues: [] }, ctx);
|
|
3247
3305
|
if (result instanceof Promise)
|
|
3248
3306
|
result = await result;
|
|
3249
3307
|
return result.issues.length === 0;
|
|
3250
3308
|
};
|
|
3251
3309
|
var _encode = (_Err) => {
|
|
3252
3310
|
const parse3 = _parse(_Err);
|
|
3253
|
-
const fn = (schema,
|
|
3311
|
+
const fn = (schema, value2, _ctx, _params) => {
|
|
3254
3312
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
3255
|
-
return parse3(schema,
|
|
3313
|
+
return parse3(schema, value2, ctx, finalizeParams(fn, _params));
|
|
3256
3314
|
};
|
|
3257
3315
|
return fn;
|
|
3258
3316
|
};
|
|
3259
3317
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
3260
3318
|
var _decode = (_Err) => {
|
|
3261
3319
|
const parse3 = _parse(_Err);
|
|
3262
|
-
const fn = (schema,
|
|
3263
|
-
return parse3(schema,
|
|
3320
|
+
const fn = (schema, value2, _ctx, _params) => {
|
|
3321
|
+
return parse3(schema, value2, _ctx, finalizeParams(fn, _params));
|
|
3264
3322
|
};
|
|
3265
3323
|
return fn;
|
|
3266
3324
|
};
|
|
3267
3325
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
3268
3326
|
var _encodeAsync = (_Err) => {
|
|
3269
3327
|
const parseAsync3 = _parseAsync(_Err);
|
|
3270
|
-
const fn = async (schema,
|
|
3328
|
+
const fn = async (schema, value2, _ctx, _params) => {
|
|
3271
3329
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
3272
|
-
return await parseAsync3(schema,
|
|
3330
|
+
return await parseAsync3(schema, value2, ctx, finalizeParams(fn, _params));
|
|
3273
3331
|
};
|
|
3274
3332
|
return fn;
|
|
3275
3333
|
};
|
|
3276
3334
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
3277
3335
|
var _decodeAsync = (_Err) => {
|
|
3278
3336
|
const parseAsync3 = _parseAsync(_Err);
|
|
3279
|
-
const fn = async (schema,
|
|
3280
|
-
return await parseAsync3(schema,
|
|
3337
|
+
const fn = async (schema, value2, _ctx, _params) => {
|
|
3338
|
+
return await parseAsync3(schema, value2, _ctx, finalizeParams(fn, _params));
|
|
3281
3339
|
};
|
|
3282
3340
|
return fn;
|
|
3283
3341
|
};
|
|
3284
3342
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
3285
|
-
var _safeEncode = (_Err) => (schema,
|
|
3343
|
+
var _safeEncode = (_Err) => (schema, value2, _ctx) => {
|
|
3286
3344
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
3287
|
-
return _safeParse(_Err)(schema,
|
|
3345
|
+
return _safeParse(_Err)(schema, value2, ctx);
|
|
3288
3346
|
};
|
|
3289
3347
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
3290
|
-
var _safeDecode = (_Err) => (schema,
|
|
3291
|
-
return _safeParse(_Err)(schema,
|
|
3348
|
+
var _safeDecode = (_Err) => (schema, value2, _ctx) => {
|
|
3349
|
+
return _safeParse(_Err)(schema, value2, _ctx);
|
|
3292
3350
|
};
|
|
3293
3351
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
3294
|
-
var _safeEncodeAsync = (_Err) => async (schema,
|
|
3352
|
+
var _safeEncodeAsync = (_Err) => async (schema, value2, _ctx) => {
|
|
3295
3353
|
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
3296
|
-
return _safeParseAsync(_Err)(schema,
|
|
3354
|
+
return _safeParseAsync(_Err)(schema, value2, ctx);
|
|
3297
3355
|
};
|
|
3298
3356
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
3299
|
-
var _safeDecodeAsync = (_Err) => async (schema,
|
|
3300
|
-
return _safeParseAsync(_Err)(schema,
|
|
3357
|
+
var _safeDecodeAsync = (_Err) => async (schema, value2, _ctx) => {
|
|
3358
|
+
return _safeParseAsync(_Err)(schema, value2, _ctx);
|
|
3301
3359
|
};
|
|
3302
3360
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
3303
3361
|
|
|
@@ -4103,26 +4161,26 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
4103
4161
|
get "~standard"() {
|
|
4104
4162
|
return hide(this, "~standard", standardProps(this));
|
|
4105
4163
|
},
|
|
4106
|
-
set "~standard"(
|
|
4107
|
-
own(this, "~standard",
|
|
4164
|
+
set "~standard"(value2) {
|
|
4165
|
+
own(this, "~standard", value2);
|
|
4108
4166
|
}
|
|
4109
4167
|
});
|
|
4110
4168
|
var toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => finalizeIssue(iss, ctx, config())) } : { value: r.value };
|
|
4111
|
-
async function validateAsync2(inst,
|
|
4169
|
+
async function validateAsync2(inst, value2) {
|
|
4112
4170
|
const ctx = { async: true };
|
|
4113
|
-
return toStandardResult(await inst._zod.run({ value, issues: [] }, ctx), ctx);
|
|
4171
|
+
return toStandardResult(await inst._zod.run({ value: value2, issues: [] }, ctx), ctx);
|
|
4114
4172
|
}
|
|
4115
4173
|
function standardProps(inst) {
|
|
4116
4174
|
return {
|
|
4117
|
-
validate: (
|
|
4175
|
+
validate: (value2) => {
|
|
4118
4176
|
const ctx = { async: false };
|
|
4119
4177
|
try {
|
|
4120
|
-
const r = inst._zod.run({ value, issues: [] }, ctx);
|
|
4178
|
+
const r = inst._zod.run({ value: value2, issues: [] }, ctx);
|
|
4121
4179
|
if (!(r instanceof Promise))
|
|
4122
4180
|
return toStandardResult(r, ctx);
|
|
4123
4181
|
} catch (_) {
|
|
4124
4182
|
}
|
|
4125
|
-
return validateAsync2(inst,
|
|
4183
|
+
return validateAsync2(inst, value2);
|
|
4126
4184
|
},
|
|
4127
4185
|
vendor: "zod",
|
|
4128
4186
|
version: 1
|
|
@@ -4214,8 +4272,8 @@ function parseURLObject(trimmed, def) {
|
|
|
4214
4272
|
}
|
|
4215
4273
|
}
|
|
4216
4274
|
var asciiTabOrNewline = /[\t\n\r]/g;
|
|
4217
|
-
function stripTabAndNewline(
|
|
4218
|
-
return
|
|
4275
|
+
function stripTabAndNewline(value2) {
|
|
4276
|
+
return value2.replace(asciiTabOrNewline, "");
|
|
4219
4277
|
}
|
|
4220
4278
|
function urlHostnameOk(url2, hostname4) {
|
|
4221
4279
|
hostname4.lastIndex = 0;
|
|
@@ -4342,10 +4400,10 @@ var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
|
4342
4400
|
$ZodStringFormat.init(inst, def);
|
|
4343
4401
|
});
|
|
4344
4402
|
var ipv6Alphabet = /^[0-9a-fA-F:.]+$/;
|
|
4345
|
-
function isValidIPv6(
|
|
4346
|
-
if (!ipv6Alphabet.test(
|
|
4403
|
+
function isValidIPv6(value2) {
|
|
4404
|
+
if (!ipv6Alphabet.test(value2))
|
|
4347
4405
|
return false;
|
|
4348
|
-
return canParseURL(`http://[${
|
|
4406
|
+
return canParseURL(`http://[${value2}]`);
|
|
4349
4407
|
}
|
|
4350
4408
|
var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
4351
4409
|
def.pattern ?? (def.pattern = ipv6);
|
|
@@ -4370,8 +4428,8 @@ var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
|
4370
4428
|
def.pattern ?? (def.pattern = cidrv4);
|
|
4371
4429
|
$ZodStringFormat.init(inst, def);
|
|
4372
4430
|
});
|
|
4373
|
-
function isValidCIDRv6(
|
|
4374
|
-
const parts2 =
|
|
4431
|
+
function isValidCIDRv6(value2) {
|
|
4432
|
+
const parts2 = value2.split("/");
|
|
4375
4433
|
if (parts2.length !== 2)
|
|
4376
4434
|
return false;
|
|
4377
4435
|
const [address, prefix] = parts2;
|
|
@@ -4462,9 +4520,9 @@ function isLuhnAlgo(digits) {
|
|
|
4462
4520
|
let bit = 1;
|
|
4463
4521
|
let sum = 0;
|
|
4464
4522
|
while (length) {
|
|
4465
|
-
const
|
|
4523
|
+
const value2 = digits.charCodeAt(--length) - 48;
|
|
4466
4524
|
bit ^= 1;
|
|
4467
|
-
sum += bit ? [0, 2, 4, 6, 8, 1, 3, 5, 7, 9][
|
|
4525
|
+
sum += bit ? [0, 2, 4, 6, 8, 1, 3, 5, 7, 9][value2] : value2;
|
|
4468
4526
|
}
|
|
4469
4527
|
return sum % 10 === 0;
|
|
4470
4528
|
}
|
|
@@ -4940,14 +4998,14 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
4940
4998
|
const shape = zod.def.shape;
|
|
4941
4999
|
const propValues = {};
|
|
4942
5000
|
for (const key2 in shape) {
|
|
4943
|
-
const
|
|
4944
|
-
if (
|
|
5001
|
+
const field2 = shape[key2]._zod;
|
|
5002
|
+
if (field2.values) {
|
|
4945
5003
|
if (!Object.prototype.hasOwnProperty.call(propValues, key2)) {
|
|
4946
5004
|
assignProp(propValues, key2, /* @__PURE__ */ new Set());
|
|
4947
5005
|
}
|
|
4948
|
-
for (const v of
|
|
5006
|
+
for (const v of field2.values)
|
|
4949
5007
|
propValues[key2].add(v);
|
|
4950
|
-
if (
|
|
5008
|
+
if (field2.optin !== void 0)
|
|
4951
5009
|
propValues[key2].add(void 0);
|
|
4952
5010
|
}
|
|
4953
5011
|
}
|
|
@@ -4955,11 +5013,11 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
4955
5013
|
});
|
|
4956
5014
|
const isObject2 = isObject;
|
|
4957
5015
|
const catchall = def.catchall;
|
|
4958
|
-
let
|
|
5016
|
+
let value2;
|
|
4959
5017
|
const memo2 = globalConfig.memoizer;
|
|
4960
5018
|
memo2?.attach(inst);
|
|
4961
5019
|
inst._zod.parse = (payload, ctx) => {
|
|
4962
|
-
|
|
5020
|
+
value2 ?? (value2 = _normalized.value);
|
|
4963
5021
|
const input2 = payload.value;
|
|
4964
5022
|
if (!isObject2(input2)) {
|
|
4965
5023
|
payload.issues.push({
|
|
@@ -4972,10 +5030,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
4972
5030
|
}
|
|
4973
5031
|
payload.value = memo2 ? memo2.alloc(inst, payload, {}, ctx) : {};
|
|
4974
5032
|
const proms = [];
|
|
4975
|
-
const shape =
|
|
5033
|
+
const shape = value2.shape;
|
|
4976
5034
|
const abortEarly = ctx?.abortEarly;
|
|
4977
5035
|
let seen = payload.issues.length;
|
|
4978
|
-
for (const key2 of
|
|
5036
|
+
for (const key2 of value2.allKeys) {
|
|
4979
5037
|
if (abortEarly && payload.issues.length !== seen) {
|
|
4980
5038
|
if (aborted(payload, seen))
|
|
4981
5039
|
break;
|
|
@@ -5102,9 +5160,9 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
5102
5160
|
const allowsEval2 = allowsEval;
|
|
5103
5161
|
const fastEnabled = jit && allowsEval2.value;
|
|
5104
5162
|
const catchall = def.catchall;
|
|
5105
|
-
let
|
|
5163
|
+
let value2;
|
|
5106
5164
|
inst._zod.parse = (payload, ctx) => {
|
|
5107
|
-
|
|
5165
|
+
value2 ?? (value2 = _normalized.value);
|
|
5108
5166
|
const input2 = payload.value;
|
|
5109
5167
|
if (!isObject2(input2)) {
|
|
5110
5168
|
payload.issues.push({
|
|
@@ -5121,7 +5179,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
5121
5179
|
payload = fastpass(payload, ctx);
|
|
5122
5180
|
if (!catchall)
|
|
5123
5181
|
return payload;
|
|
5124
|
-
return handleCatchall([], input2, payload, ctx,
|
|
5182
|
+
return handleCatchall([], input2, payload, ctx, value2, inst, ctx?.abortEarly === true);
|
|
5125
5183
|
}
|
|
5126
5184
|
return superParse(payload, ctx);
|
|
5127
5185
|
};
|
|
@@ -5249,16 +5307,16 @@ var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
|
5249
5307
|
});
|
|
5250
5308
|
};
|
|
5251
5309
|
});
|
|
5252
|
-
function getDiscriminatedOption(union2,
|
|
5310
|
+
function getDiscriminatedOption(union2, value2) {
|
|
5253
5311
|
const internals = union2._zod;
|
|
5254
5312
|
let map2 = internals.bag.optionsMap;
|
|
5255
5313
|
if (!map2) {
|
|
5256
5314
|
map2 = discriminatorMap(internals.def);
|
|
5257
5315
|
internals.bag.optionsMap = map2;
|
|
5258
5316
|
}
|
|
5259
|
-
const option = map2.get(
|
|
5317
|
+
const option = map2.get(value2);
|
|
5260
5318
|
if (option === null)
|
|
5261
|
-
throw new Error(`Ambiguous discriminator value "${String(
|
|
5319
|
+
throw new Error(`Ambiguous discriminator value "${String(value2)}"`);
|
|
5262
5320
|
return option;
|
|
5263
5321
|
}
|
|
5264
5322
|
function discriminatorMap(def) {
|
|
@@ -5267,13 +5325,13 @@ function discriminatorMap(def) {
|
|
|
5267
5325
|
const values = option._zod.propValues?.[def.discriminator];
|
|
5268
5326
|
if (!values || values.size === 0)
|
|
5269
5327
|
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
|
|
5270
|
-
for (const
|
|
5271
|
-
if (map2.has(
|
|
5272
|
-
if (
|
|
5273
|
-
throw new Error(`Duplicate discriminator value "${String(
|
|
5274
|
-
map2.set(
|
|
5328
|
+
for (const value2 of values) {
|
|
5329
|
+
if (map2.has(value2)) {
|
|
5330
|
+
if (value2 !== void 0)
|
|
5331
|
+
throw new Error(`Duplicate discriminator value "${String(value2)}"`);
|
|
5332
|
+
map2.set(value2, null);
|
|
5275
5333
|
} else {
|
|
5276
|
-
map2.set(
|
|
5334
|
+
map2.set(value2, option);
|
|
5277
5335
|
}
|
|
5278
5336
|
}
|
|
5279
5337
|
}
|
|
@@ -5323,9 +5381,9 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
5323
5381
|
});
|
|
5324
5382
|
return payload;
|
|
5325
5383
|
}
|
|
5326
|
-
const
|
|
5327
|
-
const opt = disc.value.get(
|
|
5328
|
-
if (opt && (
|
|
5384
|
+
const value2 = input2?.[def.discriminator];
|
|
5385
|
+
const opt = disc.value.get(value2);
|
|
5386
|
+
if (opt && (value2 !== void 0 || ctx.direction !== "backward")) {
|
|
5329
5387
|
return opt._zod.run(payload, ctx);
|
|
5330
5388
|
}
|
|
5331
5389
|
if (def.unionFallback || ctx.direction === "backward") {
|
|
@@ -5336,7 +5394,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
5336
5394
|
errors: [],
|
|
5337
5395
|
note: "No matching discriminator",
|
|
5338
5396
|
discriminator: def.discriminator,
|
|
5339
|
-
options: Array.from(disc.value.keys()).filter((
|
|
5397
|
+
options: Array.from(disc.value.keys()).filter((value3) => disc.value.get(value3) !== null),
|
|
5340
5398
|
input: input2,
|
|
5341
5399
|
path: [def.discriminator],
|
|
5342
5400
|
inst
|
|
@@ -5755,14 +5813,14 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
|
|
|
5755
5813
|
payload.value = memo2 ? memo2.alloc(inst, payload, /* @__PURE__ */ new Map(), ctx) : /* @__PURE__ */ new Map();
|
|
5756
5814
|
const abortEarly = ctx?.abortEarly;
|
|
5757
5815
|
let seen = payload.issues.length;
|
|
5758
|
-
for (const [key2,
|
|
5816
|
+
for (const [key2, value2] of input2) {
|
|
5759
5817
|
if (abortEarly && payload.issues.length !== seen) {
|
|
5760
5818
|
if (aborted(payload, seen))
|
|
5761
5819
|
break;
|
|
5762
5820
|
seen = payload.issues.length;
|
|
5763
5821
|
}
|
|
5764
5822
|
const keyResult = def.keyType._zod.run({ value: key2, issues: [] }, ctx);
|
|
5765
|
-
const valueResult = def.valueType._zod.run({ value, issues: [] }, ctx);
|
|
5823
|
+
const valueResult = def.valueType._zod.run({ value: value2, issues: [] }, ctx);
|
|
5766
5824
|
if (keyResult instanceof Promise || valueResult instanceof Promise) {
|
|
5767
5825
|
proms.push(Promise.all([keyResult, valueResult]).then(([keyResult2, valueResult2]) => {
|
|
5768
5826
|
handleMapResult(keyResult2, valueResult2, payload, key2, input2, inst, ctx);
|
|
@@ -6175,23 +6233,23 @@ function handleCodecAResult(result, def, ctx) {
|
|
|
6175
6233
|
if (direction === "forward") {
|
|
6176
6234
|
const transformed = def.transform(result.value, result);
|
|
6177
6235
|
if (transformed instanceof Promise) {
|
|
6178
|
-
return transformed.then((
|
|
6236
|
+
return transformed.then((value2) => handleCodecTxResult(result, value2, def.out, ctx));
|
|
6179
6237
|
}
|
|
6180
6238
|
return handleCodecTxResult(result, transformed, def.out, ctx);
|
|
6181
6239
|
} else {
|
|
6182
6240
|
const transformed = def.reverseTransform(result.value, result);
|
|
6183
6241
|
if (transformed instanceof Promise) {
|
|
6184
|
-
return transformed.then((
|
|
6242
|
+
return transformed.then((value2) => handleCodecTxResult(result, value2, def.in, ctx));
|
|
6185
6243
|
}
|
|
6186
6244
|
return handleCodecTxResult(result, transformed, def.in, ctx);
|
|
6187
6245
|
}
|
|
6188
6246
|
}
|
|
6189
|
-
function handleCodecTxResult(left,
|
|
6247
|
+
function handleCodecTxResult(left, value2, nextSchema, ctx) {
|
|
6190
6248
|
if (left.issues.length) {
|
|
6191
6249
|
left.aborted = true;
|
|
6192
6250
|
return left;
|
|
6193
6251
|
}
|
|
6194
|
-
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
6252
|
+
return nextSchema._zod.run({ value: value2, issues: left.issues }, ctx);
|
|
6195
6253
|
}
|
|
6196
6254
|
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
6197
6255
|
$ZodPipe.init(inst, def);
|
|
@@ -6448,8 +6506,8 @@ var $ZodCyclicError = class extends Error {
|
|
|
6448
6506
|
};
|
|
6449
6507
|
var STATE = "~memo";
|
|
6450
6508
|
var NO_ISSUES = [];
|
|
6451
|
-
function isRef(
|
|
6452
|
-
return
|
|
6509
|
+
function isRef(value2) {
|
|
6510
|
+
return value2 !== null && typeof value2 === "object";
|
|
6453
6511
|
}
|
|
6454
6512
|
function cloneIssues(issues) {
|
|
6455
6513
|
return issues.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss });
|
|
@@ -6576,13 +6634,13 @@ function isRecursive(inst, stack, resolve10) {
|
|
|
6576
6634
|
const desc = Object.getOwnPropertyDescriptor(def, key2);
|
|
6577
6635
|
if (!desc || desc.get)
|
|
6578
6636
|
continue;
|
|
6579
|
-
const
|
|
6580
|
-
if (!
|
|
6637
|
+
const value2 = desc.value;
|
|
6638
|
+
if (!value2 || typeof value2 !== "object")
|
|
6581
6639
|
continue;
|
|
6582
|
-
if (
|
|
6583
|
-
check2(
|
|
6584
|
-
else if (Array.isArray(
|
|
6585
|
-
for (const el of
|
|
6640
|
+
if (value2._zod)
|
|
6641
|
+
check2(value2);
|
|
6642
|
+
else if (Array.isArray(value2))
|
|
6643
|
+
for (const el of value2)
|
|
6586
6644
|
check2(el);
|
|
6587
6645
|
}
|
|
6588
6646
|
}
|
|
@@ -6711,9 +6769,9 @@ var memo = {
|
|
|
6711
6769
|
function memoizer() {
|
|
6712
6770
|
return memo;
|
|
6713
6771
|
}
|
|
6714
|
-
function isBackEdge(ctx,
|
|
6772
|
+
function isBackEdge(ctx, value2) {
|
|
6715
6773
|
const backEdges = ctx[STATE]?.backEdges;
|
|
6716
|
-
return backEdges !== void 0 && isRef(
|
|
6774
|
+
return backEdges !== void 0 && isRef(value2) && backEdges.has(value2);
|
|
6717
6775
|
}
|
|
6718
6776
|
|
|
6719
6777
|
// ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/locales/index.js
|
|
@@ -14463,13 +14521,13 @@ ${code}
|
|
|
14463
14521
|
fn.definite = ctx.definite;
|
|
14464
14522
|
return fn;
|
|
14465
14523
|
}
|
|
14466
|
-
function addConstant(ctx,
|
|
14524
|
+
function addConstant(ctx, value2) {
|
|
14467
14525
|
for (const [name2, v] of ctx.constants) {
|
|
14468
|
-
if (v ===
|
|
14526
|
+
if (v === value2)
|
|
14469
14527
|
return name2;
|
|
14470
14528
|
}
|
|
14471
14529
|
const name = `c${ctx.constantCounter++}`;
|
|
14472
|
-
ctx.constants.set(name,
|
|
14530
|
+
ctx.constants.set(name, value2);
|
|
14473
14531
|
return name;
|
|
14474
14532
|
}
|
|
14475
14533
|
function addUserConstant(ctx, fn) {
|
|
@@ -14479,8 +14537,8 @@ function addUserConstant(ctx, fn) {
|
|
|
14479
14537
|
function newVar(ctx) {
|
|
14480
14538
|
return `v${ctx.varCounter++}`;
|
|
14481
14539
|
}
|
|
14482
|
-
function runtimeRun(schema,
|
|
14483
|
-
const result = schema._zod.run({ value, issues: [] }, {});
|
|
14540
|
+
function runtimeRun(schema, value2) {
|
|
14541
|
+
const result = schema._zod.run({ value: value2, issues: [] }, {});
|
|
14484
14542
|
if (result && typeof result.then === "function")
|
|
14485
14543
|
return INVALID;
|
|
14486
14544
|
const r = result;
|
|
@@ -14612,27 +14670,27 @@ function codePointLengthVar(doc, ctx, accessor, inDoubt) {
|
|
|
14612
14670
|
doc.write(`const ${v} = typeof ${accessor} === "string" && ${inDoubt} ? ${cpLen}(${accessor}) : ${accessor}.length;`);
|
|
14613
14671
|
return v;
|
|
14614
14672
|
}
|
|
14615
|
-
function numericOperand(
|
|
14616
|
-
if (typeof
|
|
14617
|
-
throw new ZodCompileUnsupportedError(`${label} bound of type ${typeof
|
|
14673
|
+
function numericOperand(value2, label) {
|
|
14674
|
+
if (typeof value2 !== "number" || !Number.isFinite(value2)) {
|
|
14675
|
+
throw new ZodCompileUnsupportedError(`${label} bound of type ${typeof value2}`);
|
|
14618
14676
|
}
|
|
14619
|
-
return `${
|
|
14677
|
+
return `${value2}`;
|
|
14620
14678
|
}
|
|
14621
|
-
function comparisonOperand(ctx,
|
|
14622
|
-
if (typeof
|
|
14623
|
-
return `${
|
|
14624
|
-
if (typeof
|
|
14625
|
-
if (Number.isNaN(
|
|
14679
|
+
function comparisonOperand(ctx, value2) {
|
|
14680
|
+
if (typeof value2 === "bigint")
|
|
14681
|
+
return `${value2}n`;
|
|
14682
|
+
if (typeof value2 === "number") {
|
|
14683
|
+
if (Number.isNaN(value2))
|
|
14626
14684
|
throw new ZodCompileUnsupportedError("comparison check with NaN bound");
|
|
14627
|
-
return `${
|
|
14685
|
+
return `${value2}`;
|
|
14628
14686
|
}
|
|
14629
|
-
if (
|
|
14630
|
-
if (Number.isNaN(
|
|
14687
|
+
if (value2 instanceof Date) {
|
|
14688
|
+
if (Number.isNaN(value2.getTime())) {
|
|
14631
14689
|
throw new ZodCompileUnsupportedError("comparison check with Invalid Date bound");
|
|
14632
14690
|
}
|
|
14633
|
-
return addConstant(ctx,
|
|
14691
|
+
return addConstant(ctx, value2);
|
|
14634
14692
|
}
|
|
14635
|
-
throw new ZodCompileUnsupportedError(`comparison check bound of type ${typeof
|
|
14693
|
+
throw new ZodCompileUnsupportedError(`comparison check bound of type ${typeof value2}`);
|
|
14636
14694
|
}
|
|
14637
14695
|
function generateGreaterThanCheck(doc, ctx, def, accessor) {
|
|
14638
14696
|
const op = def.inclusive ? "<" : "<=";
|
|
@@ -14753,8 +14811,8 @@ function generateCustomRefineCheck(doc, ctx, check2, accessor) {
|
|
|
14753
14811
|
throw new ZodCompileAsyncError("z.compile: async .superRefine() / check functions are not supported");
|
|
14754
14812
|
}
|
|
14755
14813
|
const checkFn = check2._zod.check;
|
|
14756
|
-
const helperFn = (
|
|
14757
|
-
const fakePayload = { value, issues: [], addIssue: pushIssue };
|
|
14814
|
+
const helperFn = (value2) => {
|
|
14815
|
+
const fakePayload = { value: value2, issues: [], addIssue: pushIssue };
|
|
14758
14816
|
const result = checkFn(fakePayload);
|
|
14759
14817
|
if (result instanceof Promise)
|
|
14760
14818
|
throwAsync();
|
|
@@ -15405,24 +15463,24 @@ function generateLiteralCheck(doc, ctx, schema, accessor) {
|
|
|
15405
15463
|
doc.write(`if (!${literalSet}.has(${accessor})) return INVALID;`);
|
|
15406
15464
|
return accessor;
|
|
15407
15465
|
}
|
|
15408
|
-
const
|
|
15409
|
-
if (typeof
|
|
15466
|
+
const value2 = values[0];
|
|
15467
|
+
if (typeof value2 === "number" && Number.isNaN(value2)) {
|
|
15410
15468
|
const literalSet = addConstant(ctx, new Set(values));
|
|
15411
15469
|
doc.write(`if (!${literalSet}.has(${accessor})) return INVALID;`);
|
|
15412
15470
|
return accessor;
|
|
15413
15471
|
}
|
|
15414
|
-
if (typeof
|
|
15415
|
-
doc.write(`if (${accessor} !== ${esc(
|
|
15416
|
-
} else if (typeof
|
|
15417
|
-
doc.write(`if (${accessor} !== ${
|
|
15418
|
-
} else if (
|
|
15472
|
+
if (typeof value2 === "string") {
|
|
15473
|
+
doc.write(`if (${accessor} !== ${esc(value2)}) return INVALID;`);
|
|
15474
|
+
} else if (typeof value2 === "number" || typeof value2 === "boolean") {
|
|
15475
|
+
doc.write(`if (${accessor} !== ${value2}) return INVALID;`);
|
|
15476
|
+
} else if (value2 === null) {
|
|
15419
15477
|
doc.write(`if (${accessor} !== null) return INVALID;`);
|
|
15420
|
-
} else if (
|
|
15478
|
+
} else if (value2 === void 0) {
|
|
15421
15479
|
doc.write(`if (${accessor} !== undefined) return INVALID;`);
|
|
15422
|
-
} else if (typeof
|
|
15423
|
-
doc.write(`if (${accessor} !== ${
|
|
15480
|
+
} else if (typeof value2 === "bigint") {
|
|
15481
|
+
doc.write(`if (${accessor} !== ${value2}n) return INVALID;`);
|
|
15424
15482
|
} else {
|
|
15425
|
-
throw new ZodCompileUnsupportedError(`literal type ${typeof
|
|
15483
|
+
throw new ZodCompileUnsupportedError(`literal type ${typeof value2}`);
|
|
15426
15484
|
}
|
|
15427
15485
|
return accessor;
|
|
15428
15486
|
}
|
|
@@ -15622,13 +15680,13 @@ function generateDiscriminatedUnionCheck(doc, ctx, def, accessor) {
|
|
|
15622
15680
|
if (!values || values.size === 0) {
|
|
15623
15681
|
throw new ZodCompileUnsupportedError("discriminated union option without static discriminator values");
|
|
15624
15682
|
}
|
|
15625
|
-
for (const
|
|
15626
|
-
if (claimed.has(
|
|
15627
|
-
throw new ZodCompileUnsupportedError(`duplicate discriminator value ${String(
|
|
15683
|
+
for (const value2 of values) {
|
|
15684
|
+
if (claimed.has(value2)) {
|
|
15685
|
+
throw new ZodCompileUnsupportedError(`duplicate discriminator value ${String(value2)}`);
|
|
15628
15686
|
}
|
|
15629
|
-
claimed.add(
|
|
15687
|
+
claimed.add(value2);
|
|
15630
15688
|
}
|
|
15631
|
-
const conditions = Array.from(values, (
|
|
15689
|
+
const conditions = Array.from(values, (value2) => literalEquality(ctx, discVar, value2));
|
|
15632
15690
|
const prefix = firstBranch ? "if" : "else if";
|
|
15633
15691
|
doc.write(`${prefix} (${conditions.join(" || ")}) {`);
|
|
15634
15692
|
doc.indented((d) => {
|
|
@@ -15641,27 +15699,27 @@ function generateDiscriminatedUnionCheck(doc, ctx, def, accessor) {
|
|
|
15641
15699
|
doc.write(`else { return INVALID; }`);
|
|
15642
15700
|
return outputVar;
|
|
15643
15701
|
}
|
|
15644
|
-
function literalEquality(ctx, accessor,
|
|
15645
|
-
if (typeof
|
|
15646
|
-
return `${accessor} === ${esc(
|
|
15647
|
-
if (typeof
|
|
15648
|
-
if (Number.isNaN(
|
|
15702
|
+
function literalEquality(ctx, accessor, value2) {
|
|
15703
|
+
if (typeof value2 === "string")
|
|
15704
|
+
return `${accessor} === ${esc(value2)}`;
|
|
15705
|
+
if (typeof value2 === "number") {
|
|
15706
|
+
if (Number.isNaN(value2))
|
|
15649
15707
|
return `Number.isNaN(${accessor})`;
|
|
15650
|
-
return `${accessor} === ${
|
|
15708
|
+
return `${accessor} === ${value2}`;
|
|
15651
15709
|
}
|
|
15652
|
-
if (typeof
|
|
15653
|
-
return `${accessor} === ${
|
|
15654
|
-
if (
|
|
15710
|
+
if (typeof value2 === "boolean")
|
|
15711
|
+
return `${accessor} === ${value2}`;
|
|
15712
|
+
if (value2 === null)
|
|
15655
15713
|
return `${accessor} === null`;
|
|
15656
|
-
if (
|
|
15714
|
+
if (value2 === void 0)
|
|
15657
15715
|
return `${accessor} === undefined`;
|
|
15658
|
-
if (typeof
|
|
15659
|
-
return `${accessor} === ${
|
|
15660
|
-
if (typeof
|
|
15661
|
-
const symbolConst = addConstant(ctx,
|
|
15716
|
+
if (typeof value2 === "bigint")
|
|
15717
|
+
return `${accessor} === ${value2}n`;
|
|
15718
|
+
if (typeof value2 === "symbol") {
|
|
15719
|
+
const symbolConst = addConstant(ctx, value2);
|
|
15662
15720
|
return `${accessor} === ${symbolConst}`;
|
|
15663
15721
|
}
|
|
15664
|
-
throw new ZodCompileUnsupportedError(`literal discriminator value ${String(
|
|
15722
|
+
throw new ZodCompileUnsupportedError(`literal discriminator value ${String(value2)}`);
|
|
15665
15723
|
}
|
|
15666
15724
|
function generateIntersectionCheck(doc, ctx, schema, accessor) {
|
|
15667
15725
|
const def = schema._zod.def;
|
|
@@ -15852,9 +15910,9 @@ function generatePipeCheck(doc, ctx, schema, accessor) {
|
|
|
15852
15910
|
throw new ZodCompileAsyncError("z.compile: async transforms in pipes are not supported");
|
|
15853
15911
|
}
|
|
15854
15912
|
const transformFn = def.transform;
|
|
15855
|
-
const helperFn = (
|
|
15856
|
-
const fakePayload = { value, issues: [], addIssue: pushIssue };
|
|
15857
|
-
const result = transformFn(
|
|
15913
|
+
const helperFn = (value2) => {
|
|
15914
|
+
const fakePayload = { value: value2, issues: [], addIssue: pushIssue };
|
|
15915
|
+
const result = transformFn(value2, fakePayload);
|
|
15858
15916
|
if (result instanceof Promise)
|
|
15859
15917
|
return INVALID;
|
|
15860
15918
|
return fakePayload.issues.length === 0 ? result : INVALID;
|
|
@@ -15888,8 +15946,8 @@ function generateCustomCheck(doc, ctx, schema, accessor) {
|
|
|
15888
15946
|
}
|
|
15889
15947
|
return accessor;
|
|
15890
15948
|
}
|
|
15891
|
-
function runtimeCatch(innerSchema, catchValue,
|
|
15892
|
-
const result = innerSchema._zod.run({ value, issues: [] }, {});
|
|
15949
|
+
function runtimeCatch(innerSchema, catchValue, value2) {
|
|
15950
|
+
const result = innerSchema._zod.run({ value: value2, issues: [] }, {});
|
|
15893
15951
|
if (result && typeof result.then === "function")
|
|
15894
15952
|
return INVALID;
|
|
15895
15953
|
const r = result;
|
|
@@ -15927,9 +15985,9 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
|
|
|
15927
15985
|
throw new ZodCompileAsyncError("z.compile: async transforms are not supported");
|
|
15928
15986
|
}
|
|
15929
15987
|
const transformFn = def.transform;
|
|
15930
|
-
const helperFn = (
|
|
15931
|
-
const fakePayload = { value, issues: [], addIssue: pushIssue };
|
|
15932
|
-
const result = transformFn(
|
|
15988
|
+
const helperFn = (value2) => {
|
|
15989
|
+
const fakePayload = { value: value2, issues: [], addIssue: pushIssue };
|
|
15990
|
+
const result = transformFn(value2, fakePayload);
|
|
15933
15991
|
if (result instanceof Promise)
|
|
15934
15992
|
return INVALID;
|
|
15935
15993
|
return fakePayload.issues.length === 0 ? result : INVALID;
|
|
@@ -16435,38 +16493,38 @@ function _nan(Class2, params) {
|
|
|
16435
16493
|
});
|
|
16436
16494
|
}
|
|
16437
16495
|
// @__NO_SIDE_EFFECTS__
|
|
16438
|
-
function _lt(
|
|
16496
|
+
function _lt(value2, params) {
|
|
16439
16497
|
return new $ZodCheckLessThan({
|
|
16440
16498
|
check: "less_than",
|
|
16441
16499
|
...normalizeParams(params),
|
|
16442
|
-
value,
|
|
16500
|
+
value: value2,
|
|
16443
16501
|
inclusive: false
|
|
16444
16502
|
});
|
|
16445
16503
|
}
|
|
16446
16504
|
// @__NO_SIDE_EFFECTS__
|
|
16447
|
-
function _lte(
|
|
16505
|
+
function _lte(value2, params) {
|
|
16448
16506
|
return new $ZodCheckLessThan({
|
|
16449
16507
|
check: "less_than",
|
|
16450
16508
|
...normalizeParams(params),
|
|
16451
|
-
value,
|
|
16509
|
+
value: value2,
|
|
16452
16510
|
inclusive: true
|
|
16453
16511
|
});
|
|
16454
16512
|
}
|
|
16455
16513
|
// @__NO_SIDE_EFFECTS__
|
|
16456
|
-
function _gt(
|
|
16514
|
+
function _gt(value2, params) {
|
|
16457
16515
|
return new $ZodCheckGreaterThan({
|
|
16458
16516
|
check: "greater_than",
|
|
16459
16517
|
...normalizeParams(params),
|
|
16460
|
-
value,
|
|
16518
|
+
value: value2,
|
|
16461
16519
|
inclusive: false
|
|
16462
16520
|
});
|
|
16463
16521
|
}
|
|
16464
16522
|
// @__NO_SIDE_EFFECTS__
|
|
16465
|
-
function _gte(
|
|
16523
|
+
function _gte(value2, params) {
|
|
16466
16524
|
return new $ZodCheckGreaterThan({
|
|
16467
16525
|
check: "greater_than",
|
|
16468
16526
|
...normalizeParams(params),
|
|
16469
|
-
value,
|
|
16527
|
+
value: value2,
|
|
16470
16528
|
inclusive: true
|
|
16471
16529
|
});
|
|
16472
16530
|
}
|
|
@@ -16487,11 +16545,11 @@ function _nonnegative(params) {
|
|
|
16487
16545
|
return /* @__PURE__ */ _gte(0, params);
|
|
16488
16546
|
}
|
|
16489
16547
|
// @__NO_SIDE_EFFECTS__
|
|
16490
|
-
function _multipleOf(
|
|
16548
|
+
function _multipleOf(value2, params) {
|
|
16491
16549
|
return new $ZodCheckMultipleOf({
|
|
16492
16550
|
check: "multiple_of",
|
|
16493
16551
|
...normalizeParams(params),
|
|
16494
|
-
value
|
|
16552
|
+
value: value2
|
|
16495
16553
|
});
|
|
16496
16554
|
}
|
|
16497
16555
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -16747,10 +16805,10 @@ function _nativeEnum(Class2, entries, params) {
|
|
|
16747
16805
|
});
|
|
16748
16806
|
}
|
|
16749
16807
|
// @__NO_SIDE_EFFECTS__
|
|
16750
|
-
function _literal(Class2,
|
|
16808
|
+
function _literal(Class2, value2, params) {
|
|
16751
16809
|
return new Class2({
|
|
16752
16810
|
type: "literal",
|
|
16753
|
-
values: Array.isArray(
|
|
16811
|
+
values: Array.isArray(value2) ? value2 : [value2],
|
|
16754
16812
|
...normalizeParams(params)
|
|
16755
16813
|
});
|
|
16756
16814
|
}
|
|
@@ -17533,22 +17591,22 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
17533
17591
|
};
|
|
17534
17592
|
|
|
17535
17593
|
// ../../node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
17536
|
-
var narrowMin = (agg, key2,
|
|
17537
|
-
if (agg[key2] === void 0 ||
|
|
17538
|
-
agg[key2] =
|
|
17594
|
+
var narrowMin = (agg, key2, value2) => {
|
|
17595
|
+
if (agg[key2] === void 0 || value2 > agg[key2])
|
|
17596
|
+
agg[key2] = value2;
|
|
17539
17597
|
};
|
|
17540
|
-
var narrowMax = (agg, key2,
|
|
17541
|
-
if (agg[key2] === void 0 ||
|
|
17542
|
-
agg[key2] =
|
|
17598
|
+
var narrowMax = (agg, key2, value2) => {
|
|
17599
|
+
if (agg[key2] === void 0 || value2 < agg[key2])
|
|
17600
|
+
agg[key2] = value2;
|
|
17543
17601
|
};
|
|
17544
|
-
var narrowBoth = (agg,
|
|
17545
|
-
narrowMin(agg, "minimum",
|
|
17546
|
-
narrowMax(agg, "maximum",
|
|
17602
|
+
var narrowBoth = (agg, value2) => {
|
|
17603
|
+
narrowMin(agg, "minimum", value2);
|
|
17604
|
+
narrowMax(agg, "maximum", value2);
|
|
17547
17605
|
};
|
|
17548
|
-
var addDivisor = (agg,
|
|
17606
|
+
var addDivisor = (agg, value2) => {
|
|
17549
17607
|
agg.multipleOf ?? (agg.multipleOf = []);
|
|
17550
|
-
if (!agg.multipleOf.includes(
|
|
17551
|
-
agg.multipleOf.push(
|
|
17608
|
+
if (!agg.multipleOf.includes(value2))
|
|
17609
|
+
agg.multipleOf.push(value2);
|
|
17552
17610
|
};
|
|
17553
17611
|
var addPattern = (agg, pattern) => {
|
|
17554
17612
|
agg.patterns ?? (agg.patterns = /* @__PURE__ */ new Set());
|
|
@@ -17885,8 +17943,8 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
17885
17943
|
}
|
|
17886
17944
|
const requiredKeys = [];
|
|
17887
17945
|
for (const key2 of Object.keys(shape)) {
|
|
17888
|
-
const
|
|
17889
|
-
if (ctx.io === "input" ? inputOptin(
|
|
17946
|
+
const field2 = def.shape[key2];
|
|
17947
|
+
if (ctx.io === "input" ? inputOptin(field2) === void 0 : field2._zod.optout === void 0) {
|
|
17890
17948
|
requiredKeys.push(key2);
|
|
17891
17949
|
}
|
|
17892
17950
|
}
|
|
@@ -18124,9 +18182,9 @@ var nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
|
18124
18182
|
seen.ref = def.innerType;
|
|
18125
18183
|
};
|
|
18126
18184
|
var UNREPRESENTABLE_DEFAULT = /* @__PURE__ */ Symbol();
|
|
18127
|
-
function serializeDefaultValue(
|
|
18185
|
+
function serializeDefaultValue(value2, schema, ctx, json2, params) {
|
|
18128
18186
|
let unrepresentable = false;
|
|
18129
|
-
const serialized = JSON.stringify(
|
|
18187
|
+
const serialized = JSON.stringify(value2, (_, val) => {
|
|
18130
18188
|
if (typeof val !== "bigint")
|
|
18131
18189
|
return val;
|
|
18132
18190
|
unrepresentable = true;
|
|
@@ -18142,9 +18200,9 @@ var defaultProcessor = (schema, ctx, json2, params) => {
|
|
|
18142
18200
|
processSchema(def.innerType, ctx, params);
|
|
18143
18201
|
const seen = ctx.seen.get(schema);
|
|
18144
18202
|
seen.ref = def.innerType;
|
|
18145
|
-
const
|
|
18146
|
-
if (
|
|
18147
|
-
json2.default =
|
|
18203
|
+
const value2 = serializeDefaultValue(def.defaultValue, schema, ctx, json2, params);
|
|
18204
|
+
if (value2 !== UNREPRESENTABLE_DEFAULT)
|
|
18205
|
+
json2.default = value2;
|
|
18148
18206
|
};
|
|
18149
18207
|
var prefaultProcessor = (schema, ctx, json2, params) => {
|
|
18150
18208
|
const def = schema._zod.def;
|
|
@@ -18153,9 +18211,9 @@ var prefaultProcessor = (schema, ctx, json2, params) => {
|
|
|
18153
18211
|
seen.ref = def.innerType;
|
|
18154
18212
|
if (ctx.io !== "input")
|
|
18155
18213
|
return;
|
|
18156
|
-
const
|
|
18157
|
-
if (
|
|
18158
|
-
json2._prefault =
|
|
18214
|
+
const value2 = serializeDefaultValue(def.defaultValue, schema, ctx, json2, params);
|
|
18215
|
+
if (value2 !== UNREPRESENTABLE_DEFAULT)
|
|
18216
|
+
json2._prefault = value2;
|
|
18159
18217
|
};
|
|
18160
18218
|
var catchProcessor = (schema, ctx, json2, params) => {
|
|
18161
18219
|
const def = schema._zod.def;
|
|
@@ -18307,8 +18365,8 @@ var JSONSchemaGenerator = class {
|
|
|
18307
18365
|
get counter() {
|
|
18308
18366
|
return this.ctx.counter;
|
|
18309
18367
|
}
|
|
18310
|
-
set counter(
|
|
18311
|
-
this.ctx.counter =
|
|
18368
|
+
set counter(value2) {
|
|
18369
|
+
this.ctx.counter = value2;
|
|
18312
18370
|
}
|
|
18313
18371
|
/** @deprecated Access via ctx instead */
|
|
18314
18372
|
get seen() {
|
|
@@ -18584,12 +18642,12 @@ function _lazyMethod(proto, key2, make) {
|
|
|
18584
18642
|
configurable: true,
|
|
18585
18643
|
enumerable: false,
|
|
18586
18644
|
get() {
|
|
18587
|
-
const
|
|
18588
|
-
Object.defineProperty(this, key2, { value, configurable: true, writable: true });
|
|
18589
|
-
return
|
|
18645
|
+
const value2 = make(this);
|
|
18646
|
+
Object.defineProperty(this, key2, { value: value2, configurable: true, writable: true });
|
|
18647
|
+
return value2;
|
|
18590
18648
|
},
|
|
18591
|
-
set(
|
|
18592
|
-
Object.defineProperty(this, key2, { value, configurable: true, writable: true });
|
|
18649
|
+
set(value2) {
|
|
18650
|
+
Object.defineProperty(this, key2, { value: value2, configurable: true, writable: true });
|
|
18593
18651
|
}
|
|
18594
18652
|
});
|
|
18595
18653
|
}
|
|
@@ -18757,8 +18815,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
18757
18815
|
}
|
|
18758
18816
|
});
|
|
18759
18817
|
},
|
|
18760
|
-
set "~standard"(
|
|
18761
|
-
util_exports.own(this, "~standard",
|
|
18818
|
+
set "~standard"(value2) {
|
|
18819
|
+
util_exports.own(this, "~standard", value2);
|
|
18762
18820
|
},
|
|
18763
18821
|
parse: function _parse2(data, params) {
|
|
18764
18822
|
return parse2(this, data, params, { callee: _parse2 });
|
|
@@ -18776,8 +18834,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
18776
18834
|
get spa() {
|
|
18777
18835
|
return this?.safeParseAsync;
|
|
18778
18836
|
},
|
|
18779
|
-
set spa(
|
|
18780
|
-
util_exports.own(this, "spa",
|
|
18837
|
+
set spa(value2) {
|
|
18838
|
+
util_exports.own(this, "spa", value2);
|
|
18781
18839
|
},
|
|
18782
18840
|
validate(data, params) {
|
|
18783
18841
|
return validate(this, data, params);
|
|
@@ -19203,23 +19261,23 @@ var ZodNumber = /* @__PURE__ */ $constructor(
|
|
|
19203
19261
|
},
|
|
19204
19262
|
format: (inst) => aggregateChecks(inst).format ?? null
|
|
19205
19263
|
}, {
|
|
19206
|
-
gt(
|
|
19207
|
-
return this.check(_gt(
|
|
19264
|
+
gt(value2, params) {
|
|
19265
|
+
return this.check(_gt(value2, params));
|
|
19208
19266
|
},
|
|
19209
|
-
gte(
|
|
19210
|
-
return this.check(_gte(
|
|
19267
|
+
gte(value2, params) {
|
|
19268
|
+
return this.check(_gte(value2, params));
|
|
19211
19269
|
},
|
|
19212
|
-
min(
|
|
19213
|
-
return this.check(_gte(
|
|
19270
|
+
min(value2, params) {
|
|
19271
|
+
return this.check(_gte(value2, params));
|
|
19214
19272
|
},
|
|
19215
|
-
lt(
|
|
19216
|
-
return this.check(_lt(
|
|
19273
|
+
lt(value2, params) {
|
|
19274
|
+
return this.check(_lt(value2, params));
|
|
19217
19275
|
},
|
|
19218
|
-
lte(
|
|
19219
|
-
return this.check(_lte(
|
|
19276
|
+
lte(value2, params) {
|
|
19277
|
+
return this.check(_lte(value2, params));
|
|
19220
19278
|
},
|
|
19221
|
-
max(
|
|
19222
|
-
return this.check(_lte(
|
|
19279
|
+
max(value2, params) {
|
|
19280
|
+
return this.check(_lte(value2, params));
|
|
19223
19281
|
},
|
|
19224
19282
|
int(params) {
|
|
19225
19283
|
return this.check(int(params));
|
|
@@ -19239,11 +19297,11 @@ var ZodNumber = /* @__PURE__ */ $constructor(
|
|
|
19239
19297
|
nonpositive(params) {
|
|
19240
19298
|
return this.check(_lte(0, params));
|
|
19241
19299
|
},
|
|
19242
|
-
multipleOf(
|
|
19243
|
-
return this.check(_multipleOf(
|
|
19300
|
+
multipleOf(value2, params) {
|
|
19301
|
+
return this.check(_multipleOf(value2, params));
|
|
19244
19302
|
},
|
|
19245
|
-
step(
|
|
19246
|
-
return this.check(_multipleOf(
|
|
19303
|
+
step(value2, params) {
|
|
19304
|
+
return this.check(_multipleOf(value2, params));
|
|
19247
19305
|
},
|
|
19248
19306
|
finite() {
|
|
19249
19307
|
return this;
|
|
@@ -19292,23 +19350,23 @@ var ZodBigInt = /* @__PURE__ */ $constructor(
|
|
|
19292
19350
|
maxValue: (inst) => aggregateChecks(inst).maximum ?? null,
|
|
19293
19351
|
format: (inst) => aggregateChecks(inst).format ?? null
|
|
19294
19352
|
}, {
|
|
19295
|
-
gte(
|
|
19296
|
-
return this.check(_gte(
|
|
19353
|
+
gte(value2, params) {
|
|
19354
|
+
return this.check(_gte(value2, params));
|
|
19297
19355
|
},
|
|
19298
|
-
min(
|
|
19299
|
-
return this.check(_gte(
|
|
19356
|
+
min(value2, params) {
|
|
19357
|
+
return this.check(_gte(value2, params));
|
|
19300
19358
|
},
|
|
19301
|
-
gt(
|
|
19302
|
-
return this.check(_gt(
|
|
19359
|
+
gt(value2, params) {
|
|
19360
|
+
return this.check(_gt(value2, params));
|
|
19303
19361
|
},
|
|
19304
|
-
lt(
|
|
19305
|
-
return this.check(_lt(
|
|
19362
|
+
lt(value2, params) {
|
|
19363
|
+
return this.check(_lt(value2, params));
|
|
19306
19364
|
},
|
|
19307
|
-
lte(
|
|
19308
|
-
return this.check(_lte(
|
|
19365
|
+
lte(value2, params) {
|
|
19366
|
+
return this.check(_lte(value2, params));
|
|
19309
19367
|
},
|
|
19310
|
-
max(
|
|
19311
|
-
return this.check(_lte(
|
|
19368
|
+
max(value2, params) {
|
|
19369
|
+
return this.check(_lte(value2, params));
|
|
19312
19370
|
},
|
|
19313
19371
|
positive(params) {
|
|
19314
19372
|
return this.check(_gt(BigInt(0), params));
|
|
@@ -19322,8 +19380,8 @@ var ZodBigInt = /* @__PURE__ */ $constructor(
|
|
|
19322
19380
|
nonnegative(params) {
|
|
19323
19381
|
return this.check(_gte(BigInt(0), params));
|
|
19324
19382
|
},
|
|
19325
|
-
multipleOf(
|
|
19326
|
-
return this.check(_multipleOf(
|
|
19383
|
+
multipleOf(value2, params) {
|
|
19384
|
+
return this.check(_multipleOf(value2, params));
|
|
19327
19385
|
}
|
|
19328
19386
|
})
|
|
19329
19387
|
);
|
|
@@ -19402,8 +19460,8 @@ var ZodDate = /* @__PURE__ */ $constructor(
|
|
|
19402
19460
|
$ZodDate.init(inst, def);
|
|
19403
19461
|
ZodType.init(inst, def);
|
|
19404
19462
|
inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
|
|
19405
|
-
inst.min = (
|
|
19406
|
-
inst.max = (
|
|
19463
|
+
inst.min = (value2, params) => inst.check(_gte(value2, params));
|
|
19464
|
+
inst.max = (value2, params) => inst.check(_lte(value2, params));
|
|
19407
19465
|
},
|
|
19408
19466
|
/* @__PURE__ */ util_exports.derived({
|
|
19409
19467
|
minDate: (inst) => {
|
|
@@ -19695,11 +19753,11 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
|
19695
19753
|
const keys = new Set(Object.keys(def.entries));
|
|
19696
19754
|
inst.extract = (values, params) => {
|
|
19697
19755
|
const newEntries = {};
|
|
19698
|
-
for (const
|
|
19699
|
-
if (keys.has(
|
|
19700
|
-
newEntries[
|
|
19756
|
+
for (const value2 of values) {
|
|
19757
|
+
if (keys.has(value2)) {
|
|
19758
|
+
newEntries[value2] = def.entries[value2];
|
|
19701
19759
|
} else
|
|
19702
|
-
throw new Error(`Key ${
|
|
19760
|
+
throw new Error(`Key ${value2} not found in enum`);
|
|
19703
19761
|
}
|
|
19704
19762
|
return new ZodEnum({
|
|
19705
19763
|
...def,
|
|
@@ -19710,11 +19768,11 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
|
19710
19768
|
};
|
|
19711
19769
|
inst.exclude = (values, params) => {
|
|
19712
19770
|
const newEntries = { ...def.entries };
|
|
19713
|
-
for (const
|
|
19714
|
-
if (keys.has(
|
|
19715
|
-
delete newEntries[
|
|
19771
|
+
for (const value2 of values) {
|
|
19772
|
+
if (keys.has(value2)) {
|
|
19773
|
+
delete newEntries[value2];
|
|
19716
19774
|
} else
|
|
19717
|
-
throw new Error(`Key ${
|
|
19775
|
+
throw new Error(`Key ${value2} not found in enum`);
|
|
19718
19776
|
}
|
|
19719
19777
|
return new ZodEnum({
|
|
19720
19778
|
...def,
|
|
@@ -19753,10 +19811,10 @@ var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
|
|
|
19753
19811
|
}
|
|
19754
19812
|
});
|
|
19755
19813
|
});
|
|
19756
|
-
function literal(
|
|
19814
|
+
function literal(value2, params) {
|
|
19757
19815
|
return new ZodLiteral({
|
|
19758
19816
|
type: "literal",
|
|
19759
|
-
values: Array.isArray(
|
|
19817
|
+
values: Array.isArray(value2) ? value2 : [value2],
|
|
19760
19818
|
...util_exports.normalizeParams(params)
|
|
19761
19819
|
});
|
|
19762
19820
|
}
|
|
@@ -20268,11 +20326,11 @@ function resolveRef(ref, ctx) {
|
|
|
20268
20326
|
throw new Error(`Reference not found: ${ref}`);
|
|
20269
20327
|
}
|
|
20270
20328
|
function checkObjectGuards(objectSchema, guards) {
|
|
20271
|
-
const guard = z.transform((
|
|
20272
|
-
const
|
|
20273
|
-
if (typeof
|
|
20329
|
+
const guard = z.transform((value2) => value2).check((payload) => {
|
|
20330
|
+
const value2 = payload.value;
|
|
20331
|
+
if (typeof value2 !== "object" || value2 === null || Array.isArray(value2))
|
|
20274
20332
|
return;
|
|
20275
|
-
const keys = Object.getOwnPropertyNames(
|
|
20333
|
+
const keys = Object.getOwnPropertyNames(value2);
|
|
20276
20334
|
if (guards.minProperties !== void 0 && keys.length < guards.minProperties) {
|
|
20277
20335
|
payload.issues.push({
|
|
20278
20336
|
origin: "object",
|
|
@@ -20280,7 +20338,7 @@ function checkObjectGuards(objectSchema, guards) {
|
|
|
20280
20338
|
minimum: guards.minProperties,
|
|
20281
20339
|
inclusive: true,
|
|
20282
20340
|
message: `Too small: expected object to have >=${guards.minProperties} properties`,
|
|
20283
|
-
input:
|
|
20341
|
+
input: value2,
|
|
20284
20342
|
inst: objectSchema,
|
|
20285
20343
|
continue: true
|
|
20286
20344
|
});
|
|
@@ -20292,7 +20350,7 @@ function checkObjectGuards(objectSchema, guards) {
|
|
|
20292
20350
|
maximum: guards.maxProperties,
|
|
20293
20351
|
inclusive: true,
|
|
20294
20352
|
message: `Too big: expected object to have <=${guards.maxProperties} properties`,
|
|
20295
|
-
input:
|
|
20353
|
+
input: value2,
|
|
20296
20354
|
inst: objectSchema,
|
|
20297
20355
|
continue: true
|
|
20298
20356
|
});
|
|
@@ -20315,23 +20373,23 @@ function checkObjectGuards(objectSchema, guards) {
|
|
|
20315
20373
|
});
|
|
20316
20374
|
return guard.pipe(objectSchema);
|
|
20317
20375
|
}
|
|
20318
|
-
function canonicalKey(
|
|
20319
|
-
if (
|
|
20376
|
+
function canonicalKey(value2, seen) {
|
|
20377
|
+
if (value2 === null)
|
|
20320
20378
|
return "z";
|
|
20321
|
-
const type = typeof
|
|
20379
|
+
const type = typeof value2;
|
|
20322
20380
|
if (type !== "object") {
|
|
20323
|
-
if (type === "number" && Number.isNaN(
|
|
20381
|
+
if (type === "number" && Number.isNaN(value2))
|
|
20324
20382
|
return null;
|
|
20325
|
-
const raw = String(
|
|
20383
|
+
const raw = String(value2);
|
|
20326
20384
|
return `${type[0]}${raw.length}:${raw}`;
|
|
20327
20385
|
}
|
|
20328
|
-
if (seen.has(
|
|
20386
|
+
if (seen.has(value2))
|
|
20329
20387
|
return null;
|
|
20330
|
-
seen.add(
|
|
20388
|
+
seen.add(value2);
|
|
20331
20389
|
try {
|
|
20332
|
-
if (Array.isArray(
|
|
20390
|
+
if (Array.isArray(value2)) {
|
|
20333
20391
|
const parts3 = [];
|
|
20334
|
-
for (const item of
|
|
20392
|
+
for (const item of value2) {
|
|
20335
20393
|
const key2 = canonicalKey(item, seen);
|
|
20336
20394
|
if (key2 === null)
|
|
20337
20395
|
return null;
|
|
@@ -20339,17 +20397,17 @@ function canonicalKey(value, seen) {
|
|
|
20339
20397
|
}
|
|
20340
20398
|
return `a${parts3.length}:[${parts3.join(",")}]`;
|
|
20341
20399
|
}
|
|
20342
|
-
const keys = Object.keys(
|
|
20400
|
+
const keys = Object.keys(value2).sort();
|
|
20343
20401
|
const parts2 = [];
|
|
20344
20402
|
for (const k of keys) {
|
|
20345
|
-
const key2 = canonicalKey(
|
|
20403
|
+
const key2 = canonicalKey(value2[k], seen);
|
|
20346
20404
|
if (key2 === null)
|
|
20347
20405
|
return null;
|
|
20348
20406
|
parts2.push(`${k.length}:${k}=${key2}`);
|
|
20349
20407
|
}
|
|
20350
20408
|
return `o${parts2.length}:{${parts2.join(",")}}`;
|
|
20351
20409
|
} finally {
|
|
20352
|
-
seen.delete(
|
|
20410
|
+
seen.delete(value2);
|
|
20353
20411
|
}
|
|
20354
20412
|
}
|
|
20355
20413
|
var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([
|
|
@@ -20378,14 +20436,14 @@ var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
20378
20436
|
"$defs",
|
|
20379
20437
|
"definitions"
|
|
20380
20438
|
]);
|
|
20381
|
-
function containsRef(
|
|
20382
|
-
if (typeof
|
|
20439
|
+
function containsRef(value2) {
|
|
20440
|
+
if (typeof value2 !== "object" || value2 === null)
|
|
20383
20441
|
return false;
|
|
20384
|
-
if (Array.isArray(
|
|
20385
|
-
return
|
|
20386
|
-
if (typeof
|
|
20442
|
+
if (Array.isArray(value2))
|
|
20443
|
+
return value2.some(containsRef);
|
|
20444
|
+
if (typeof value2.$ref === "string")
|
|
20387
20445
|
return true;
|
|
20388
|
-
return Object.entries(
|
|
20446
|
+
return Object.entries(value2).some(([key2, sub]) => {
|
|
20389
20447
|
if (SCHEMA_KEYWORDS.has(key2))
|
|
20390
20448
|
return containsRef(sub);
|
|
20391
20449
|
if (!SCHEMA_MAP_KEYWORDS.has(key2) || typeof sub !== "object" || sub === null)
|
|
@@ -20397,7 +20455,7 @@ function plural(n2) {
|
|
|
20397
20455
|
return n2 === 1 ? "element" : "elements";
|
|
20398
20456
|
}
|
|
20399
20457
|
function checkArrayGuards(arraySchema, guards) {
|
|
20400
|
-
const guard = z.transform((
|
|
20458
|
+
const guard = z.transform((value2) => value2).check((payload) => {
|
|
20401
20459
|
const items = payload.value;
|
|
20402
20460
|
if (!Array.isArray(items))
|
|
20403
20461
|
return;
|
|
@@ -21294,6 +21352,9 @@ var Version = external_exports.object({
|
|
|
21294
21352
|
});
|
|
21295
21353
|
var VersionsResponse = external_exports.object({ versions: external_exports.array(Version) });
|
|
21296
21354
|
var RequestsResponse = external_exports.object({ lines: external_exports.array(external_exports.object({ at: external_exports.number(), method: external_exports.string(), path: external_exports.string(), status: external_exports.number(), outcome: external_exports.string(), country: external_exports.string(), dropped: external_exports.number().optional() })).nullable() });
|
|
21355
|
+
var LogLine = external_exports.object({ at: external_exports.number(), kind: external_exports.enum(["request", "log", "exception"]), level: external_exports.string(), text: external_exports.string() });
|
|
21356
|
+
var LogsReady = external_exports.object({ name: external_exports.string(), url: external_exports.string().nullable(), until: external_exports.number() });
|
|
21357
|
+
var LogsEnd = external_exports.object({ reason: external_exports.enum(["time", "replaced", "cloudflare"]) });
|
|
21297
21358
|
var EnvSetRequest = external_exports.object({ projectId: external_exports.string(), key: external_exports.string(), value: external_exports.string(), secret: external_exports.boolean().default(true) });
|
|
21298
21359
|
var EnvSetResponse = external_exports.object({ ok: external_exports.literal(true), key: external_exports.string(), secret: external_exports.boolean(), delivered: external_exports.boolean() });
|
|
21299
21360
|
var EnvRemoveRequest = external_exports.object({ projectId: external_exports.string(), key: external_exports.string() });
|
|
@@ -21352,7 +21413,9 @@ var StatusResponse = external_exports.object({
|
|
|
21352
21413
|
/** The live site's country rule shuts out the country this call came from (D-682). `settingsUrl` is null when only the owner can change it. */
|
|
21353
21414
|
closedHere: external_exports.object({ country: external_exports.string(), countries: external_exports.array(external_exports.string()), settingsUrl: external_exports.string().nullable() }).nullable().optional(),
|
|
21354
21415
|
/** How the live version went live and when (D-817). `via` is cli, chat, dashboard or deploy; null for one from before it was recorded. */
|
|
21355
|
-
liveVia: external_exports.object({ via: external_exports.string().nullable(), at: external_exports.string() }).nullable().optional()
|
|
21416
|
+
liveVia: external_exports.object({ via: external_exports.string().nullable(), at: external_exports.string() }).nullable().optional(),
|
|
21417
|
+
/** The newest version that waits in an open pull request on GitHub (D-997), with the line to print in each language. */
|
|
21418
|
+
githubPull: external_exports.object({ version: external_exports.number(), number: external_exports.number(), url: external_exports.string(), he: external_exports.string(), en: external_exports.string() }).nullable().optional()
|
|
21356
21419
|
});
|
|
21357
21420
|
var ApiError = external_exports.object({
|
|
21358
21421
|
error: external_exports.string(),
|
|
@@ -21613,6 +21676,7 @@ var ARCH_EDGES = [
|
|
|
21613
21676
|
{ id: "uptime-web", from: "uptime-worker", to: "web", kind: "http", label: "health check" },
|
|
21614
21677
|
{ id: "dispatch-requests", from: "dispatch", to: "requests-worker", kind: "http", label: "request lines, service binding" },
|
|
21615
21678
|
{ id: "web-requests", from: "web", to: "requests-worker", kind: "http", label: "signed reads" },
|
|
21679
|
+
{ id: "web-dispatch-tail", from: "web", to: "dispatch", kind: "http", label: "live tail for deployai logs (D-991)" },
|
|
21616
21680
|
{ id: "web-app-uptime", from: "web", to: "app-uptime", kind: "http", label: "signed /__app/ calls" },
|
|
21617
21681
|
{ id: "web-app-cron", from: "web", to: "app-cron", kind: "http", label: "signed /__app/ calls" },
|
|
21618
21682
|
{ id: "app-cron-web", from: "app-cron", to: "web", kind: "http", label: "failure and slow-run email" },
|
|
@@ -22240,8 +22304,8 @@ function shareLine(text2, max = 70) {
|
|
|
22240
22304
|
return pause >= 20 ? cut.slice(0, pause) : cut.replace(/\s+\S*$/, "");
|
|
22241
22305
|
}
|
|
22242
22306
|
var hex22 = (n2) => Math.max(0, Math.min(255, Math.round(n2))).toString(16).padStart(2, "0");
|
|
22243
|
-
function toHexColor(
|
|
22244
|
-
const v =
|
|
22307
|
+
function toHexColor(value2) {
|
|
22308
|
+
const v = value2.trim().toLowerCase();
|
|
22245
22309
|
let m = /^#([0-9a-f]{3})$/.exec(v);
|
|
22246
22310
|
if (m) return `#${[...m[1]].map((c) => c + c).join("")}`;
|
|
22247
22311
|
m = /^#([0-9a-f]{6})(ff)?$/.exec(v);
|
|
@@ -22458,7 +22522,7 @@ function mapPsi(json2, strategy) {
|
|
|
22458
22522
|
const originExp = json2?.originLoadingExperience;
|
|
22459
22523
|
const urlField = urlExp && !urlExp.origin_fallback ? fieldOf(urlExp) : [];
|
|
22460
22524
|
const originField = fieldOf(originExp);
|
|
22461
|
-
const
|
|
22525
|
+
const field2 = urlField.length ? { scope: "url", metrics: urlField } : originField.length ? { scope: "origin", metrics: originField } : null;
|
|
22462
22526
|
return {
|
|
22463
22527
|
strategy,
|
|
22464
22528
|
requestedUrl: clean2(lr.requestedUrl ?? json2?.id, 2e3),
|
|
@@ -22467,7 +22531,7 @@ function mapPsi(json2, strategy) {
|
|
|
22467
22531
|
lighthouseVersion: clean2(lr.lighthouseVersion, 20) || null,
|
|
22468
22532
|
scores: { performance: score("performance"), accessibility: score("accessibility"), seo: score("seo"), bestPractices: score("best-practices") },
|
|
22469
22533
|
lab,
|
|
22470
|
-
field,
|
|
22534
|
+
field: field2,
|
|
22471
22535
|
opportunities,
|
|
22472
22536
|
accessibility,
|
|
22473
22537
|
seo: (cats.seo?.auditRefs ?? []).filter((r) => r?.id && (r.weight ?? 0) > 0).map((r) => audits[r.id] && toAudit(r.id, audits[r.id])).filter((a) => !!a && a.score !== null && a.score < 1),
|
|
@@ -22518,19 +22582,19 @@ function parseRobots(text2) {
|
|
|
22518
22582
|
const m = /^([A-Za-z-]+)\s*:\s*(.*)$/.exec(line);
|
|
22519
22583
|
if (!m) continue;
|
|
22520
22584
|
const key2 = m[1].toLowerCase();
|
|
22521
|
-
const
|
|
22585
|
+
const value2 = m[2].trim();
|
|
22522
22586
|
if (key2 === "user-agent") {
|
|
22523
22587
|
if (!current || !lastWasAgent) {
|
|
22524
22588
|
current = { agents: [], rules: [] };
|
|
22525
22589
|
groups.push(current);
|
|
22526
22590
|
}
|
|
22527
|
-
current.agents.push(
|
|
22591
|
+
current.agents.push(value2.toLowerCase());
|
|
22528
22592
|
lastWasAgent = true;
|
|
22529
22593
|
continue;
|
|
22530
22594
|
}
|
|
22531
22595
|
lastWasAgent = false;
|
|
22532
|
-
if (key2 === "sitemap") sitemaps.push(
|
|
22533
|
-
else if ((key2 === "allow" || key2 === "disallow") && current) current.rules.push({ allow: key2 === "allow", path:
|
|
22596
|
+
if (key2 === "sitemap") sitemaps.push(value2);
|
|
22597
|
+
else if ((key2 === "allow" || key2 === "disallow") && current) current.rules.push({ allow: key2 === "allow", path: value2 });
|
|
22534
22598
|
}
|
|
22535
22599
|
return { groups, sitemaps };
|
|
22536
22600
|
}
|
|
@@ -22653,6 +22717,7 @@ function deployToolFromEnv(env) {
|
|
|
22653
22717
|
}
|
|
22654
22718
|
|
|
22655
22719
|
// ../shared/src/start-flow.ts
|
|
22720
|
+
var START_ID_ALPHABET = "abcdefghjkmnpqrstuvwxyz23456789";
|
|
22656
22721
|
var START_ID_RE = /^[a-hjkmnp-z2-9]{10}$/;
|
|
22657
22722
|
var MIGRATION_DIR = ".deployai/migration";
|
|
22658
22723
|
var BRIEF_FILE = ".deployai/brief.md";
|
|
@@ -22663,7 +22728,7 @@ var FIRST_LOOK_MESSAGE = "first look";
|
|
|
22663
22728
|
var FIRST_SITE_RULE = 'A site that has never been live (this folder is not linked yet, or npx deployai@latest status shows no live version) follows this, and not the rule for later changes. Right at the start, before you build, ask once, naming the site and its address when you know it: "When your site is ready, should I put it live for you? Anyone will be able to see it." The answers: Yes, put it live (recommended), or Show me first. Then go on working, and do not ask it again for this first version. Deploy twice. First, the first look: when a first version works, deploy without --live and send the owner the preview address. Make every change they ask for in the folder, without deploying. Second, when everything they asked for is done: on Yes, deploy with --live and give them the live address, with no more questions. On Show me first, deploy without it, send the preview address and ask: "Put it live, or change something first?" If nothing changed since the first look, there is nothing to build: run promote on that version instead of a second deploy. Deploy again only when a deploy failed, or the owner asks for more after the last one, and then put all of it in one deploy. Database changes still get their own yes.';
|
|
22664
22729
|
var DEPLOY_ASK_RULE = 'Once a site has been live, never deploy on your own, and never after each small edit: every deploy is a full build. Deploy only when what the owner asked for is done. Then say in short what changed and ask: "Put it live, see a preview first, or not yet?" Put it live: deploy with --live. Preview first: deploy without it and send the owner the preview address. Not yet: keep working, and the next change goes up in the same deploy. If the owner said to always put changes live, deploy with --live without asking. When deploy says the site goes live by itself, that is a setting the owner chose: do not ask about going live or a preview, deploy once the request is done, and tell the owner it is live and that Settings on the site page can make versions wait. Database changes still get their own yes. A version that is only your own test (an experiment, a size or speed check, a half done feature) deploys with --hold: it stays a preview and never goes live by itself, also on a site that goes live by itself (D-961).';
|
|
22665
22730
|
var LOCAL_PREVIEW_RULE = "While you build, show the site on this computer, never a deploy after each change. Start the site's own dev command (the dev script in package.json, for example npm run dev) yourself, in the background, so it keeps running while you work: in Claude Code as a background command, in another tool with its own way to run a command in the background or in a terminal of its own. Never ask the owner to open a terminal or type a command. If a local preview of this folder is already running, use it instead of starting a second one. Send the owner the local address it prints once, as a link, and say in one line that it updates by itself while you work and opens only on this computer. Check every change there yourself. To see a page at phone width, run npx deployai@latest shot <address> and look at the phone picture it saves: resizing a browser window often keeps the page at desktop width, so never judge the phone layout from the code alone (D-916). The local preview is not the hosting: it has a local test database that starts empty, and the built-in email to the owner, visitor countries, 301 redirects and the DeployAI badge work only on a deployed preview, so test those there, and the owner checks a phone there. When to deploy does not change. When the work is done, stop the local preview you started.";
|
|
22666
|
-
var GIT_HISTORY_RULE = "Keep the site's history with git in this folder: run git init if there is none, commit before you start and after each part that works, with a short message in the owner's language about what they see changed. Never commit .env files or secrets. When the owner asks to undo a change, or to bring back or remove a feature, do it from the git history yourself and tell them in one line what changed; never ask them to run git. Git brings back code, not data: rows, files and tables that were deleted stay deleted, so ask the owner before a change that removes data.";
|
|
22731
|
+
var GIT_HISTORY_RULE = "Keep the site's history with git in this folder: run git init if there is none, commit before you start and after each part that works, with a short message in the owner's language about what they see changed. Never commit .env files or secrets. When the owner asks to undo a change, or to bring back or remove a feature, do it from the git history yourself and tell them in one line what changed; never ask them to run git. Git brings back code, not data: rows, files and tables that were deleted stay deleted, so ask the owner before a change that removes data. This git history is on this computer only; the team's shared history is the site's versions. When others work on the site too, deploy and start bring their newer live work into this folder by themselves and add their versions to git, so never copy their files in by hand.";
|
|
22667
22732
|
var ASK_OWNER_RULE = `When a question to the owner has set answers, use your tool's own question feature with clickable choices if it has one, for example AskUserQuestion in Claude Code, AskQuestion in Cursor, askQuestions in Copilot in VS Code, request_user_input in Codex, or ask_user_question in Grok Build. Use the owner's language, with each answer as its own choice. If your tool has no such feature, or it is refused or fails, ask the same question once in plain text and go on. Never change a mode or a setting to get it. A yes or no question has set answers too. This holds for every question, also one you think of yourself in the middle of the work: say what you have to say, then ask through the feature, never as the last line of your message. A question about going live names the site and its address when you know it, and says anyone will be able to see it, so the owner's answer is about this exact site (D-691). Open details, like a phone number or hours, stay in plain text, in one short list. How the owner wants you to work is saved in .deployai/owner-mode (D-865): on-my-own or check-with-me. If the file is missing, ask once, "How should I work?", with "On my own (recommended)": I build and choose the recommended option at every step, I stop only for money, deleting your content or your real domain, and I leave you a short list at the end; and "Check with me". Save the answer there, and change it when the owner says so. On my own: take the recommended option without asking, install the tools you need, and stop only for money, deleting the owner's content, a real domain going live or a fact you would have to invent, which you leave out and list. Every question opens with a short tag naming who asks, like "Search add-on \xB7 1 of 2" or "Move \xB7 forms", and a question with several items offers "Approve all (recommended)" first. Never ask the owner about a package, library, framework, tool, file path or size: ask about the outcome in plain words.`;
|
|
22668
22733
|
var QUESTION_FEATURE = { claudeCode: "AskUserQuestion", cursor: "AskQuestion", copilot: "askQuestions", codex: "request_user_input", grok: "ask_user_question" };
|
|
22669
22734
|
function toolAskLine(tool) {
|
|
@@ -22852,6 +22917,8 @@ var CLI_MAP_NODES = [
|
|
|
22852
22917
|
n("api-sql", "server", "/api/cli/sql", "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05E9\u05DE\u05D7\u05DB\u05D9\u05DD \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8, \u05D5\u05E7\u05D5\u05D3 \u05E9\u05DE\u05D7\u05D1\u05E8 \u05D0\u05EA \u05D4\u05D0\u05D9\u05E9\u05D5\u05E8 \u05D0\u05DC\u05D9\u05D4\u05DD.", "The changes that wait for a yes, and a code that ties the yes to them."),
|
|
22853
22918
|
n("cmd-versions", "cli", "versions", "\u05E8\u05E9\u05D9\u05DE\u05EA \u05D4\u05D2\u05E8\u05E1\u05D0\u05D5\u05EA \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8.", "The site's versions."),
|
|
22854
22919
|
n("cmd-requests", "cli", "requests / requests open <address>", "\u05D4\u05D1\u05E7\u05E9\u05D5\u05EA \u05D4\u05E0\u05DB\u05E0\u05E1\u05D5\u05EA \u05DC\u05D0\u05EA\u05E8 \u05D5\u05DE\u05D4 \u05E7\u05E8\u05D4 \u05DC\u05D4\u05DF, \u05D5\u05E4\u05EA\u05D9\u05D7\u05EA \u05DB\u05EA\u05D5\u05D1\u05EA \u05DB\u05DE\u05D5 webhook \u05DC\u05DB\u05DC \u05D4\u05DE\u05D3\u05D9\u05E0\u05D5\u05EA.", "The site's incoming requests and what happened to them, and opening an address such as a webhook to every country."),
|
|
22920
|
+
n("cmd-logs", "cli", "logs [--json] [--errors]", "\u05DC\u05D5\u05D2\u05D9\u05DD \u05D7\u05D9\u05D9\u05DD \u05E9\u05DC \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8: \u05D1\u05E7\u05E9\u05D5\u05EA, \u05E9\u05D5\u05E8\u05D5\u05EA console \u05D5\u05E9\u05D2\u05D9\u05D0\u05D5\u05EA, \u05E2\u05D3 10 \u05D3\u05E7\u05D5\u05EA. \u05E8\u05E7 \u05DC\u05D1\u05E2\u05DC\u05D9\u05DD \u05D0\u05D5 \u05DC\u05E2\u05D5\u05E8\u05DA, \u05D5\u05DC\u05D0 \u05E0\u05E9\u05DE\u05E8\u05D9\u05DD \u05D0\u05E6\u05DC\u05E0\u05D5.", "Live logs of the site's code: requests, console lines and errors, up to 10 minutes. Owner or editor only, never stored by us."),
|
|
22921
|
+
n("api-logs", "server", "/api/cli/logs", "\u05D6\u05E8\u05DD \u05D0\u05D9\u05E8\u05D5\u05E2\u05D9\u05DD \u05DE\u05D4\u05BEtail \u05E9\u05DC \u05D4\u05BEdispatch Worker, \u05DE\u05E1\u05D5\u05E0\u05DF \u05DC\u05E1\u05E7\u05E8\u05D9\u05E4\u05D8 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D1\u05DC\u05D1\u05D3. \u05D1\u05DC\u05D9 \u05DB\u05D5\u05EA\u05E8\u05D5\u05EA \u05D5\u05D1\u05DC\u05D9 IP.", "An event stream from the dispatch Worker's tail, filtered to the site's own script. No headers and no IP."),
|
|
22855
22922
|
n("api-requests", "server", "/api/cli/requests", "\u05D4\u05E8\u05E9\u05D9\u05DE\u05D4 \u05D1\u05DC\u05D9 IP \u05D5\u05D1\u05DC\u05D9 \u05EA\u05D5\u05DB\u05DF, \u05D5\u05E4\u05EA\u05D9\u05D7\u05D4 \u05D0\u05D5 \u05E1\u05D2\u05D9\u05E8\u05D4 \u05E9\u05DC \u05DB\u05EA\u05D5\u05D1\u05EA.", "The list with no IP and no content, and opening or closing an address."),
|
|
22856
22923
|
n("cmd-rollback", "cli", "rollback v<N>", "\u05D7\u05D5\u05D6\u05E8 \u05DC\u05D2\u05E8\u05E1\u05D4 \u05E7\u05D5\u05D3\u05DE\u05EA.", "Goes back to an earlier version."),
|
|
22857
22924
|
n("cmd-addons", "cli", "addons / addon next / addon buy", "\u05D4\u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8, \u05D4\u05E9\u05DC\u05D1 \u05D4\u05D1\u05D0 \u05E9\u05DC \u05EA\u05D5\u05E1\u05E3 \u05E9\u05E0\u05E7\u05E0\u05D4, \u05D5\u05E7\u05D9\u05E9\u05D5\u05E8 \u05E7\u05E0\u05D9\u05D9\u05D4 \u05DC\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8.", "The site's add-ons, the next step of one it bought, and a buy link for the owner."),
|
|
@@ -22935,6 +23002,7 @@ var CLI_MAP_EDGES = [
|
|
|
22935
23002
|
e("cmd-telemetry", "api-check"),
|
|
22936
23003
|
e("cmd-feedback", "api-check"),
|
|
22937
23004
|
e("cmd-requests", "api-requests"),
|
|
23005
|
+
e("cmd-logs", "api-logs"),
|
|
22938
23006
|
e("cmd-status", "api-status"),
|
|
22939
23007
|
e("cmd-versions", "api-status"),
|
|
22940
23008
|
e("cmd-promote", "api-promote"),
|
|
@@ -23193,11 +23261,11 @@ function readContainer(js, container) {
|
|
|
23193
23261
|
const triggers = /* @__PURE__ */ new Map();
|
|
23194
23262
|
const unescape = (v) => v.replace(/\\u([0-9a-f]{4})/gi, (_, h) => String.fromCharCode(parseInt(h, 16))).replace(/\\(["/\\])/g, "$1");
|
|
23195
23263
|
for (const m of body.matchAll(/\{"function":"(_css|_eq|_cn|_sw)","arg0":\["macro",\d+\],"arg1":"((?:[^"\\]|\\.)*)"/g)) {
|
|
23196
|
-
const
|
|
23197
|
-
if (!
|
|
23198
|
-
if (m[1] === "_css") triggers.set(`s|${
|
|
23199
|
-
else if (
|
|
23200
|
-
else if (m[1] === "_eq" && /^[a-zA-Z][\w.-]{1,50}$/.test(
|
|
23264
|
+
const value2 = unescape(m[2]);
|
|
23265
|
+
if (!value2 || value2.length > 200) continue;
|
|
23266
|
+
if (m[1] === "_css") triggers.set(`s|${value2}`, { type: "selector", value: value2, container });
|
|
23267
|
+
else if (value2.startsWith("/") && !/\s/.test(value2)) triggers.set(`p|${value2}`, { type: "page", value: value2, container });
|
|
23268
|
+
else if (m[1] === "_eq" && /^[a-zA-Z][\w.-]{1,50}$/.test(value2) && !value2.startsWith("gtm.")) triggers.set(`e|${value2}`, { type: "event", value: value2, container });
|
|
23201
23269
|
}
|
|
23202
23270
|
const { tags: tags2 } = scanPageTags(text2, "https://container.invalid/");
|
|
23203
23271
|
return { tags: tags2.filter((t) => t.key !== "gtm"), triggers: [...triggers.values()] };
|
|
@@ -23616,7 +23684,7 @@ var ENV_KEYS = {
|
|
|
23616
23684
|
TURNSTILE_SECRET: { scope: "server", section: "tools", about: "The Turnstile secret key of the same widget." },
|
|
23617
23685
|
TOOLS_FETCH_SECRET: { scope: "same", section: "tools", about: "Shared secret between the app and the tools Worker, 32 random characters or more. pnpm tools:deploy uploads it." },
|
|
23618
23686
|
APPS_SIGNING_SECRET: { scope: "own", section: "tools", about: 'Signs the 60 second tokens from the app to the Uptime app Worker, and the alert calls back from it (D-556); pnpm app-uptime:deploy uploads it. Unset: Apps answer "not set up". openssl rand -hex 32' },
|
|
23619
|
-
APP_GATE_SECRET: { scope: "own", section: "tools", about: "The gate on app sites (D-567): our server signs every /__app/op call with it and the dispatch Worker lets those paths reach an app only with a valid signature, so the public never starts a paused app. pnpm dispatch:deploy sends it to the dispatch Worker. Unset: no platform call reaches an app site. openssl rand -hex 32" },
|
|
23687
|
+
APP_GATE_SECRET: { scope: "own", section: "tools", about: "The gate on app sites (D-567): our server signs every /__app/op call with it and the dispatch Worker lets those paths reach an app only with a valid signature, so the public never starts a paused app. It also signs every run of a site schedule (D-979). pnpm dispatch:deploy sends it to the dispatch Worker. Unset: no platform call reaches an app site and no site schedule runs. openssl rand -hex 32" },
|
|
23620
23688
|
APP_TRIAL_KEYS: { scope: "own", section: "tools", about: "The trial key ring (D-567, docs/30 F3): v1:<hex>! (the ! marks the current key). Trial records keep only an HMAC of the mailbox under these keys. To rotate, add a key, deploy, then move the ! (docs/30). Unset: no trial can start. v1: then openssl rand -hex 32, then !" },
|
|
23621
23689
|
UPTIME_ALERT_TO: { scope: "own", section: "tools", about: "Who gets the down and back up emails of the uptime Worker, comma separated. Without it no email is sent." },
|
|
23622
23690
|
UPTIME_ALERT_TOKEN: { scope: "own", section: "tools", about: "A Cloudflare token with Email Sending edit only, stored as the uptime Worker's secret. Default CF_API_TOKEN." },
|
|
@@ -23713,16 +23781,31 @@ var SPACES = {
|
|
|
23713
23781
|
test: build("test", { ...CLOUDFLARE_SPACES.prod, kvNamespaceId: "", sitesZoneId: null, backupBucket: null, toolsWorkerUrl: "", requestsWorkerUrl: "" }, { ...SPACE_ADDRESSES.prod, appUrl: "http://localhost:3000", siteUrl: "http://localhost:3000", trustedOrigins: [], storage: "local" })
|
|
23714
23782
|
};
|
|
23715
23783
|
|
|
23784
|
+
// ../shared/src/scheduled-run.ts
|
|
23785
|
+
var SCHEDULED_PATH = "/__deployai/scheduled";
|
|
23786
|
+
|
|
23716
23787
|
// ../shared/src/protection-rule.ts
|
|
23788
|
+
var SKIP_ALWAYS = [
|
|
23789
|
+
"cf.client.bot",
|
|
23790
|
+
'starts_with(http.request.uri.path, "/__app/")',
|
|
23791
|
+
// Our scheduler's run of a site's own scheduled handler (D-979, D-982): a site in Attack mode keeps its schedules.
|
|
23792
|
+
`(http.request.method eq "POST" and http.request.uri.path eq "${SCHEDULED_PATH}")`,
|
|
23793
|
+
'http.request.uri.path eq "/api/kit/mcp"',
|
|
23794
|
+
'starts_with(http.request.uri.path, "/api/kit/oauth/")',
|
|
23795
|
+
'starts_with(http.request.uri.path, "/.well-known/")',
|
|
23796
|
+
'any(http.request.headers.names[*] == "x-deployai-probe")'
|
|
23797
|
+
];
|
|
23717
23798
|
var SKIP_COUNTRY = [`http.cookie contains "${HUMAN_COOKIE}"`, 'http.request.uri.query contains "deployai_preview"', 'http.cookie contains "deployai_preview"', 'http.request.uri.query contains "deployai_team"', 'http.cookie contains "__deployai_team"', ...UNVERIFIED_BOT_TOKENS.map((t) => `lower(http.user_agent) contains "${t}"`)];
|
|
23718
23799
|
var HUMAN_CHECK_CLAUSE = `http.request.uri.path eq "${HUMAN_CHECK_PATH}"`;
|
|
23719
23800
|
|
|
23720
23801
|
// ../shared/src/agent-rules.ts
|
|
23721
23802
|
var IPHONE_RULE = "iPhone: Safari is its own browser engine, so working in Chrome or on Android proves nothing. Full height sections use svh or dvh, never 100vh. Typing fields are at least 16px, or the page zooms. A video that plays by itself has muted and playsinline. Bars fixed to the bottom pad with env(safe-area-inset-bottom). Nothing needs a hover. Newer CSS and browser features need a working fallback.";
|
|
23803
|
+
var JOBS_RULE = "Background jobs (work that must not hold up a request): never create a queue of your own. Declare it in the wrangler config under queues.producers ({ binding, queue }) and queues.consumers ({ queue }), and export queue(batch, env, ctx) from the Worker entry. On DeployAI there is no env.<BINDING>: send with ctx.props.queues.<BINDING>.send(body, { delaySeconds }) or .sendBatch([{ body }]), from a request, a scheduled run or a queue run, only while that run lasts. When ctx.props.queues is missing (background jobs are off, or the plan has none), do the work in the request instead. In queue(), call ack() or retry() on each message, or throw to try the rest again; each message gets 4 tries. Keep bodies under 120 KB. The site's Data and files tab shows what was sent, done and failed.";
|
|
23722
23804
|
var BUILD_WITH = [
|
|
23723
23805
|
`Frameworks: ${SUPPORTED_FRAMEWORKS.map((f) => f.name).join(", ")}. In beta: ${BETA_FRAMEWORKS.map((f) => f.name).join(", ")} (Next.js through the OpenNext Cloudflare adapter).`,
|
|
23724
23806
|
"Database: Cloudflare D1 (SQLite), through Drizzle with drizzle-orm/d1 or Prisma with the D1 adapter.",
|
|
23725
|
-
|
|
23807
|
+
// D-978: R2 only for files that come in or change after the build, so a site does not get an empty bucket.
|
|
23808
|
+
"Files: add Cloudflare R2 (object storage) only when the site keeps files that people upload or that change after the build, and never write them to the local disk. Images and files that ship with the site stay in its own files, never in R2.",
|
|
23726
23809
|
"Settings and secrets: environment variables, set with: npx deployai@latest env set <key>",
|
|
23727
23810
|
"Images: resize at build time or serve them as they are; no native image modules at runtime.",
|
|
23728
23811
|
// D-616: an icon is part of a finished site, and the command keeps one the site has.
|
|
@@ -23734,6 +23817,10 @@ var BUILD_WITH = [
|
|
|
23734
23817
|
"Webhooks: a site answers only its own countries. When you add a webhook a service abroad calls, run: npx deployai@latest requests open <its address>, and make the code check the sender's signature, since anyone can now reach it. To see whether a request arrived and what happened to it, run: npx deployai@latest requests",
|
|
23735
23818
|
IPHONE_RULE,
|
|
23736
23819
|
"Server code runs per request: no long-running processes, background servers or child processes.",
|
|
23820
|
+
// D-984: one shared queue of ours; the site gets its producer in the request's props, never a queue binding of its own.
|
|
23821
|
+
JOBS_RULE,
|
|
23822
|
+
// D-979, D-982: our scheduler runs a site's triggers.crons; user Workers have no Cron Triggers of their own.
|
|
23823
|
+
`Schedules (work on a clock, such as a nightly cleanup or reminders): list the times in the wrangler config, "triggers": { "crons": ["0 3 * * *"] }, and export a scheduled handler beside fetch: export default { fetch, async scheduled(event, env, ctx) { ... } }. DeployAI runs it at those times with the site's own bindings. Times are UTC (Israel is 2 or 3 hours ahead), at most one run every 5 minutes, and the plan sets how many schedules a site has (a temporary site has none). Keep a run short: we wait up to 50 seconds for it. Never node-cron, setInterval or a job queue library. The owner sees each schedule, its last run and its error on the site's Data and files tab.`,
|
|
23737
23824
|
// D-611: Durable Objects run when the site's own code exports them; D1 stays the default, they cost more for plain data.
|
|
23738
23825
|
"Data goes in D1 by default. Use a Durable Object only for live state that needs one place to coordinate (a chat room, a live counter, booking slots that must not double-book, presence): export the class from this site's Worker and bind it with a name and class_name in the wrangler config, never script_name. Never remove or rename a class once it is live: that would delete its data, so the upload is refused. A preview starts with empty objects.",
|
|
23739
23826
|
// D-535: the agent knows our built-in email, so it never adds an email provider or asks the owner for keys to email them.
|
|
@@ -23751,6 +23838,44 @@ var AGENT_POINTER = "Read DEPLOYAI.md before your first answer and before you wr
|
|
|
23751
23838
|
var SITE_COPY_RULE = "Words on the site: write each language from what a visitor must know, the way a native writer of that language says it, never word for word from another language. Read each page alone in its own language: if it sounds translated, rewrite it. Keep one term for each thing in every language (when .deployai/glossary.md exists, use its terms and add new ones to it), and dates, prices, phone numbers and addresses in the local form of that language. Never reword text the owner wrote without asking. When you wrote a language you are not sure of, or a legal page, say in one line that a native speaker should read it.";
|
|
23752
23839
|
var FOLDER_READY_RULE = `This folder is already set up. When the owner has not asked for anything yet, say only, in their language: "The folder is set up and ready. What do you want to change?" Add the site's name when .deployai/project.json has it. If the folder has no site files yet, ask instead: "The folder is set up and ready. What do you want to build?" Never ask them for a start line, a command or an id. While the folder holds a site, never offer a sample or a new start: go on with that site.`;
|
|
23753
23840
|
|
|
23841
|
+
// ../shared/src/blocked-reasons.ts
|
|
23842
|
+
var BLOCKED_REASONS = [
|
|
23843
|
+
// migrate verify: old pages on the preview
|
|
23844
|
+
"pages_missing",
|
|
23845
|
+
"pages_moved",
|
|
23846
|
+
"pages_error",
|
|
23847
|
+
"title_lost",
|
|
23848
|
+
"description_lost",
|
|
23849
|
+
// migrate verify: tags and connections (the tag finding's own problem)
|
|
23850
|
+
"tag_lost",
|
|
23851
|
+
"trigger_lost",
|
|
23852
|
+
"field_lost",
|
|
23853
|
+
"verification_lost",
|
|
23854
|
+
"file_lost",
|
|
23855
|
+
"blocked_by_headers",
|
|
23856
|
+
"event_lost",
|
|
23857
|
+
// migrate verify: what is left of the old site
|
|
23858
|
+
"builder_credit",
|
|
23859
|
+
"vendor_files",
|
|
23860
|
+
"old_host_assets",
|
|
23861
|
+
// migrate scan
|
|
23862
|
+
"source_closed",
|
|
23863
|
+
// deploy
|
|
23864
|
+
"check_blocked",
|
|
23865
|
+
"build_failed",
|
|
23866
|
+
"preview_down",
|
|
23867
|
+
"not_live",
|
|
23868
|
+
// start
|
|
23869
|
+
"login_wait",
|
|
23870
|
+
"other_account",
|
|
23871
|
+
// sync
|
|
23872
|
+
"sync_conflicts"
|
|
23873
|
+
];
|
|
23874
|
+
function blockedLine(codes) {
|
|
23875
|
+
const set2 = new Set(codes);
|
|
23876
|
+
return BLOCKED_REASONS.filter((c) => set2.has(c)).join(" ");
|
|
23877
|
+
}
|
|
23878
|
+
|
|
23754
23879
|
// ../shared/src/deployai-md.ts
|
|
23755
23880
|
var DEPLOYAI_MD = `# DeployAI rules
|
|
23756
23881
|
|
|
@@ -23882,7 +24007,7 @@ function stackBlock(s) {
|
|
|
23882
24007
|
`- Fonts: ${fonts.join(", ")}, from Google Fonts.`,
|
|
23883
24008
|
`- CSS: ${s.css === "tailwind" ? "Tailwind CSS" : "plain CSS"}.`,
|
|
23884
24009
|
`- Database: ${s.bindings.includes("d1") ? "Cloudflare D1 (SQLite) through Drizzle with drizzle-orm/d1." : "none."}`,
|
|
23885
|
-
`- Files: ${s.bindings.includes("r2") ? "Cloudflare R2, never the local disk." : "none."}`
|
|
24010
|
+
`- Files: ${s.bindings.includes("r2") ? "Cloudflare R2 for the files the owner uploads, never the local disk. Images and files that ship with the site stay in its own files." : "none. Images and files that ship with the site stay in its own files; do not add R2."}`
|
|
23886
24011
|
];
|
|
23887
24012
|
if (s.needs.length) lines.push(`- The site has: ${s.needs.map((n2) => NEED_TEXT[n2]).join("; ")}.`);
|
|
23888
24013
|
return lines.join("\n") + "\n";
|
|
@@ -24327,6 +24452,142 @@ var enc2 = new TextEncoder();
|
|
|
24327
24452
|
// ../shared/src/app-gate.ts
|
|
24328
24453
|
var enc3 = new TextEncoder();
|
|
24329
24454
|
|
|
24455
|
+
// ../shared/src/site-cron.ts
|
|
24456
|
+
var SITE_SCHEDULE_MIN_MINUTES = 5;
|
|
24457
|
+
var MONTHS = ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"];
|
|
24458
|
+
var DAYS = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
|
|
24459
|
+
function value(token, min, max, names) {
|
|
24460
|
+
const named = names ? names.indexOf(token.toUpperCase()) : -1;
|
|
24461
|
+
const n2 = named >= 0 ? named + min : /^\d{1,2}$/.test(token) ? Number(token) : NaN;
|
|
24462
|
+
return Number.isInteger(n2) && n2 >= min && n2 <= max ? n2 : null;
|
|
24463
|
+
}
|
|
24464
|
+
function field(text2, min, max, names) {
|
|
24465
|
+
const out2 = /* @__PURE__ */ new Set();
|
|
24466
|
+
for (const part of text2.split(",")) {
|
|
24467
|
+
const m = /^(\*|\?|[A-Za-z0-9]+(?:-[A-Za-z0-9]+)?)(?:\/(\d{1,2}))?$/.exec(part);
|
|
24468
|
+
if (!m) return null;
|
|
24469
|
+
const step = m[2] ? Number(m[2]) : 1;
|
|
24470
|
+
if (step < 1) return null;
|
|
24471
|
+
let lo = min;
|
|
24472
|
+
let hi = max;
|
|
24473
|
+
if (m[1] !== "*" && m[1] !== "?") {
|
|
24474
|
+
const [a, b] = m[1].split("-");
|
|
24475
|
+
const x = value(a, min, max, names);
|
|
24476
|
+
const y = b === void 0 ? m[2] ? max : x : value(b, min, max, names);
|
|
24477
|
+
if (x === null || y === null || y < x) return null;
|
|
24478
|
+
lo = x;
|
|
24479
|
+
hi = y;
|
|
24480
|
+
}
|
|
24481
|
+
for (let v = lo; v <= hi; v += step) out2.add(v);
|
|
24482
|
+
}
|
|
24483
|
+
return [...out2].sort((a, b) => a - b);
|
|
24484
|
+
}
|
|
24485
|
+
function parseSiteCron(expr) {
|
|
24486
|
+
const raw = expr.trim().split(/\s+/);
|
|
24487
|
+
if (raw.length !== 5 || expr.length > 100) return { error: "A schedule has five parts: minute, hour, day of month, month, day of week." };
|
|
24488
|
+
const [mi, ho, dm, mo, dw] = raw;
|
|
24489
|
+
const minutes2 = field(mi, 0, 59);
|
|
24490
|
+
const hours = field(ho, 0, 23);
|
|
24491
|
+
const months = field(mo, 1, 12, MONTHS);
|
|
24492
|
+
if (!minutes2 || !hours || !months) return { error: "The minute, hour or month part does not read." };
|
|
24493
|
+
const dom = { any: dm === "*" || dm === "?", days: [], last: false, lastWeekday: false, nearest: [] };
|
|
24494
|
+
if (!dom.any) {
|
|
24495
|
+
for (const part of dm.split(",")) {
|
|
24496
|
+
const up = part.toUpperCase();
|
|
24497
|
+
if (up === "L") dom.last = true;
|
|
24498
|
+
else if (up === "LW") dom.lastWeekday = true;
|
|
24499
|
+
else if (/^\d{1,2}W$/.test(up) && value(up.slice(0, -1), 1, 31) !== null) dom.nearest.push(Number(up.slice(0, -1)));
|
|
24500
|
+
else {
|
|
24501
|
+
const list = field(part, 1, 31);
|
|
24502
|
+
if (!list) return { error: "The day of month part does not read." };
|
|
24503
|
+
dom.days.push(...list);
|
|
24504
|
+
}
|
|
24505
|
+
}
|
|
24506
|
+
}
|
|
24507
|
+
const dow = { any: dw === "*" || dw === "?", days: [], last: [], nth: [] };
|
|
24508
|
+
if (!dow.any) {
|
|
24509
|
+
for (const part of dw.split(",")) {
|
|
24510
|
+
const last = /^([A-Za-z]{3}|\d)L$/.exec(part);
|
|
24511
|
+
const nth = /^([A-Za-z]{3}|\d)#([1-5])$/.exec(part);
|
|
24512
|
+
if (last) {
|
|
24513
|
+
const d = value(last[1], 1, 7, DAYS);
|
|
24514
|
+
if (d === null) return { error: "The day of week part does not read. Days are 1 to 7, 1 is Sunday, or SUN to SAT." };
|
|
24515
|
+
dow.last.push(d);
|
|
24516
|
+
} else if (nth) {
|
|
24517
|
+
const d = value(nth[1], 1, 7, DAYS);
|
|
24518
|
+
if (d === null) return { error: "The day of week part does not read. Days are 1 to 7, 1 is Sunday, or SUN to SAT." };
|
|
24519
|
+
dow.nth.push([d, Number(nth[2])]);
|
|
24520
|
+
} else {
|
|
24521
|
+
const list = field(part, 1, 7, DAYS);
|
|
24522
|
+
if (!list) return { error: "The day of week part does not read. Days are 1 to 7, 1 is Sunday, or SUN to SAT." };
|
|
24523
|
+
dow.days.push(...list);
|
|
24524
|
+
}
|
|
24525
|
+
}
|
|
24526
|
+
}
|
|
24527
|
+
return { raw: [mi, ho, dm, mo, dw], minutes: minutes2, hours, dom, months, dow };
|
|
24528
|
+
}
|
|
24529
|
+
var isSiteCronSpec = (x) => !("error" in x);
|
|
24530
|
+
var lastDayOf = (y, m) => new Date(Date.UTC(y, m, 0)).getUTCDate();
|
|
24531
|
+
var weekday = (y, m, d) => new Date(Date.UTC(y, m - 1, d)).getUTCDay();
|
|
24532
|
+
function nearestWeekday(y, m, n2) {
|
|
24533
|
+
const last = lastDayOf(y, m);
|
|
24534
|
+
const d = Math.min(n2, last);
|
|
24535
|
+
const w = weekday(y, m, d);
|
|
24536
|
+
if (w === 6) return d === 1 ? 3 : d - 1;
|
|
24537
|
+
if (w === 0) return d === last ? d - 2 : d + 1;
|
|
24538
|
+
return d;
|
|
24539
|
+
}
|
|
24540
|
+
function dayMatches(s, y, m, d) {
|
|
24541
|
+
const last = lastDayOf(y, m);
|
|
24542
|
+
const w = weekday(y, m, d) + 1;
|
|
24543
|
+
const domHit = s.dom.days.includes(d) || s.dom.last && d === last || s.dom.lastWeekday && d === nearestWeekday(y, m, last) || s.dom.nearest.some((n2) => d === nearestWeekday(y, m, n2));
|
|
24544
|
+
const dowHit = s.dow.days.includes(w) || s.dow.last.includes(w) && d + 7 > last || s.dow.nth.some(([day, k]) => day === w && Math.ceil(d / 7) === k);
|
|
24545
|
+
if (!s.dom.any && !s.dow.any) return domHit || dowHit;
|
|
24546
|
+
if (!s.dom.any) return domHit;
|
|
24547
|
+
if (!s.dow.any) return dowHit;
|
|
24548
|
+
return true;
|
|
24549
|
+
}
|
|
24550
|
+
function nextSiteCronRun(s, after) {
|
|
24551
|
+
let t = Math.floor(after.getTime() / 6e4) * 6e4 + 6e4;
|
|
24552
|
+
for (let guard = 0; guard < 3e3; guard++) {
|
|
24553
|
+
const at = new Date(t);
|
|
24554
|
+
const y = at.getUTCFullYear();
|
|
24555
|
+
const m = at.getUTCMonth() + 1;
|
|
24556
|
+
const d = at.getUTCDate();
|
|
24557
|
+
if (!s.months.includes(m)) {
|
|
24558
|
+
t = Date.UTC(y, m, 1);
|
|
24559
|
+
continue;
|
|
24560
|
+
}
|
|
24561
|
+
if (dayMatches(s, y, m, d)) {
|
|
24562
|
+
const h0 = at.getUTCHours();
|
|
24563
|
+
const m0 = at.getUTCMinutes();
|
|
24564
|
+
for (const h of s.hours) {
|
|
24565
|
+
if (h < h0) continue;
|
|
24566
|
+
const minute = s.minutes.find((x) => h > h0 || x >= m0);
|
|
24567
|
+
if (minute !== void 0) return new Date(Date.UTC(y, m - 1, d, h, minute));
|
|
24568
|
+
}
|
|
24569
|
+
}
|
|
24570
|
+
t = Date.UTC(y, m - 1, d + 1);
|
|
24571
|
+
}
|
|
24572
|
+
return null;
|
|
24573
|
+
}
|
|
24574
|
+
function siteCronGapMinutes(s, from = new Date(Date.UTC(2026, 0, 1))) {
|
|
24575
|
+
const first = nextSiteCronRun(s, new Date(from.getTime() - 6e4));
|
|
24576
|
+
if (!first) return null;
|
|
24577
|
+
const end = first.getTime() + 8 * 864e5;
|
|
24578
|
+
let prev = first;
|
|
24579
|
+
let gap = null;
|
|
24580
|
+
for (let i = 0; i < 500; i++) {
|
|
24581
|
+
const next = nextSiteCronRun(s, prev);
|
|
24582
|
+
if (!next || next.getTime() > end) break;
|
|
24583
|
+
const g = (next.getTime() - prev.getTime()) / 6e4;
|
|
24584
|
+
gap = gap === null ? g : Math.min(gap, g);
|
|
24585
|
+
if (gap < SITE_SCHEDULE_MIN_MINUTES) break;
|
|
24586
|
+
prev = next;
|
|
24587
|
+
}
|
|
24588
|
+
return gap;
|
|
24589
|
+
}
|
|
24590
|
+
|
|
24330
24591
|
// ../shared/src/files.ts
|
|
24331
24592
|
var FILES_PART_BYTES = 20 * 1024 * 1024;
|
|
24332
24593
|
var FILES_MIN_EXPIRY_S = 5 * 60;
|
|
@@ -24577,14 +24838,16 @@ function updateProject(root, patch) {
|
|
|
24577
24838
|
|
|
24578
24839
|
// src/errors.ts
|
|
24579
24840
|
var CliError = class extends Error {
|
|
24580
|
-
constructor(message, exitCode = 1, category = "error") {
|
|
24841
|
+
constructor(message, exitCode = 1, category = "error", reason2) {
|
|
24581
24842
|
super(message);
|
|
24582
24843
|
this.exitCode = exitCode;
|
|
24583
24844
|
this.category = category;
|
|
24845
|
+
this.reason = reason2;
|
|
24584
24846
|
this.name = "CliError";
|
|
24585
24847
|
}
|
|
24586
24848
|
exitCode;
|
|
24587
24849
|
category;
|
|
24850
|
+
reason;
|
|
24588
24851
|
};
|
|
24589
24852
|
|
|
24590
24853
|
// src/i18n.ts
|
|
@@ -24662,7 +24925,7 @@ var M = {
|
|
|
24662
24925
|
ownerKeys: "Owner keys for this site (shown once, save them now):",
|
|
24663
24926
|
guestLive: "The site goes live when its build is done (about a minute).",
|
|
24664
24927
|
guestClaim: "Open the claim link to keep the site (sign up or log in).",
|
|
24665
|
-
claimLink: "Keep link
|
|
24928
|
+
claimLink: "Keep link for this temporary site: {url}",
|
|
24666
24929
|
pulled: "Downloaded the code of version v{v}: {n} files.",
|
|
24667
24930
|
pulledHistory: "Downloaded the history: {n} versions as git commits, up to the live version v{v}.",
|
|
24668
24931
|
pullNoGit: "The history needs git on this computer. Install it from https://git-scm.com, or run pull without --history.",
|
|
@@ -24675,7 +24938,7 @@ var M = {
|
|
|
24675
24938
|
claimEmailed: "Sent the keep link to {email}. A reminder comes 3 days before the site is deleted.",
|
|
24676
24939
|
claimNoLink: "No temporary site was deployed from this folder on this computer, so there is no keep link here.",
|
|
24677
24940
|
rollbackQueued: "Rollback to v{n} queued. No rebuild needed.",
|
|
24678
|
-
promoteQueued: "
|
|
24941
|
+
promoteQueued: "Putting v{n} live is queued.",
|
|
24679
24942
|
runStatus: " Run: npx deployai@latest status",
|
|
24680
24943
|
statusTitle: "DeployAI status",
|
|
24681
24944
|
state: "State",
|
|
@@ -24701,7 +24964,7 @@ var M = {
|
|
|
24701
24964
|
homeFix: " Fix it and deploy again. This version did not go live; do not send its link to the owner yet.",
|
|
24702
24965
|
creditLeft: " The site still shows a builder's credit: {text}",
|
|
24703
24966
|
creditFix: " Remove it and put the site's own name and the year in its place, unless the owner asked to keep it.",
|
|
24704
|
-
askLiveFirst: "Put it live as soon as the build is done?
|
|
24967
|
+
askLiveFirst: "Put it live as soon as the build is done? Answer no to see the preview first. (y/N) ",
|
|
24705
24968
|
askLiveNow: "Put v{n} live now? (y/N) ",
|
|
24706
24969
|
waitBuild: "Waiting for the build of v{n}. Ctrl+C stops the waiting, not the build.",
|
|
24707
24970
|
waitState: " v{n}: {s}",
|
|
@@ -24768,6 +25031,12 @@ var M = {
|
|
|
24768
25031
|
syncClash: "Two database changes have the same number: {mine} (this folder) and {theirs} (live). Give {mine} the next free number.",
|
|
24769
25032
|
syncNext: "Next: npx deployai@latest check, then deploy again.",
|
|
24770
25033
|
syncNextConflicts: "Show the owner each one in plain words, ask which to keep, then edit the file so it holds only that (no <<<<<<<, ======= or >>>>>>> lines). Then: npx deployai@latest check, and deploy again. Everything before the sync is in git, so it can be undone.",
|
|
25034
|
+
caughtUp: "Brought in newer work from {names} (live version v{v}): {taken} files taken from the live site, {merged} joined with your changes.",
|
|
25035
|
+
historyAdded: "Their versions are in this folder's git now too, as commits on refs/deployai/live ({n}), so undo covers their work.",
|
|
25036
|
+
behindNoBase: "Version v{v} went live after this folder took its code, and nothing tells which version they share, so it cannot be joined by itself. Tell the owner: going live stops until this folder has v{v}. Get it with npx deployai@latest pull in a new empty folder, then copy your changed files in.",
|
|
25037
|
+
caughtUpConflicts: "Not uploaded: the live site's newer work changed the same places as this folder. Show the owner each one above in plain words, ask which to keep, edit the file so it holds only that, then deploy again. Everything before is in git, so it can be undone.",
|
|
25038
|
+
caughtUpNoLive: "Not going live this time: this upload joins someone else's work with yours, so the owner looks at the preview first.",
|
|
25039
|
+
caughtUpPreview: "v{n} holds both sets of changes. Show the owner the preview; after their yes: npx deployai@latest promote {n}",
|
|
24771
25040
|
syncLeftovers: "Not uploaded: the last sync left these for the owner to decide: {files}. Settle each one, then deploy again.",
|
|
24772
25041
|
workOthers: "Also working on this site now: {names}. Tell the owner, so you do not change the same thing at once.",
|
|
24773
25042
|
workYouElsewhere: "you, from another folder or computer",
|
|
@@ -24820,7 +25089,7 @@ var M = {
|
|
|
24820
25089
|
deployNotLoggedIn: "Not logged in. Run: npx deployai@latest login, or deploy without an account: npx deployai@latest deploy --guest",
|
|
24821
25090
|
deployBlocked: "Deploy stopped: fix the blockers above, then run: npx deployai@latest deploy",
|
|
24822
25091
|
nothingToUpload: "Nothing to upload in this folder.",
|
|
24823
|
-
uploadTooLarge: "
|
|
25092
|
+
uploadTooLarge: "The upload is too large: {size}, and the limit is {max}. Add folders to .deployaiignore to leave them out.",
|
|
24824
25093
|
uploadTooLargeGuest: "Upload too large for a site without an account: packed {size}, max {max}. Log in to upload more: npx deployai@latest login",
|
|
24825
25094
|
notLinked: "This folder is not linked to a site. Run: npx deployai@latest link",
|
|
24826
25095
|
askGuest: "Deploy without an account? You get a temporary site you can claim later. (y/N) ",
|
|
@@ -24882,24 +25151,35 @@ var M = {
|
|
|
24882
25151
|
runLink: " Run: npx deployai@latest link",
|
|
24883
25152
|
nextSteps: "Next steps",
|
|
24884
25153
|
readme: "Read README.md in the folder for what each file does.",
|
|
25154
|
+
logsWatching: "Live logs of {name} ({url}) until {time}. Ctrl+C stops.",
|
|
25155
|
+
logsErrorsOnly: "Errors only.",
|
|
25156
|
+
logsNote: "Only what runs the site's code shows here: pages and files sent as they are do not. DeployAI does not save these lines.",
|
|
25157
|
+
logsEndTime: "Stopped after 10 minutes. To keep watching, run: npx deployai@latest logs",
|
|
25158
|
+
logsEndReplaced: "Stopped: logs of this site were opened somewhere else. One at a time per site.",
|
|
25159
|
+
logsEndCloudflare: "The logs stopped on Cloudflare's side. Run the same command again.",
|
|
25160
|
+
logsEndClosed: "The connection to DeployAI closed. Run the same command again.",
|
|
25161
|
+
logsStopped: "Stopped.",
|
|
25162
|
+
logsNotLive: 'This site has nothing live yet, so there are no logs. Put a version live first: npx deployai@latest deploy -m "<message>" --live',
|
|
25163
|
+
logsSiteOff: "The site is off, so its code does not run and there are no logs. The owner turns it back on in the dashboard.",
|
|
25164
|
+
logsUnavailable: "Logs cannot be read right now. Try again in a few minutes.",
|
|
24885
25165
|
states: { online: "live", building: "building", ready: "ready for review", failed: "failed", paused: "paused", off: "off", queued: "waiting", replaced: "replaced by a newer upload", deleted: "deleted", new: "new" }
|
|
24886
25166
|
},
|
|
24887
25167
|
he: {
|
|
24888
25168
|
startTitle: "DeployAI start",
|
|
24889
25169
|
startNewFolder: "\u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DB\u05D1\u05E8 \u05D9\u05E9 \u05E7\u05D1\u05E6\u05D9\u05DD, \u05D0\u05D6 \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D7\u05D3\u05E9 \u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D7\u05D3\u05E9\u05D4: {dir}",
|
|
24890
|
-
startUpdateFolder: "\u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05D9\u05E9 \u05E7\u05D1\u05E6\u05D9\u05DD \u05D0\u05D7\u05E8\u05D9\u05DD, \u05D0\u05D6 \u05D4\
|
|
25170
|
+
startUpdateFolder: "\u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05D9\u05E9 \u05E7\u05D1\u05E6\u05D9\u05DD \u05D0\u05D7\u05E8\u05D9\u05DD, \u05D0\u05D6 \u05D4\u05D5\u05E8\u05D3\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DC\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D7\u05D3\u05E9\u05D4: {dir}. \u05DB\u05D0\u05DF \u05DC\u05D0 \u05E9\u05D9\u05E0\u05D9\u05E0\u05D5 \u05DB\u05DC\u05D5\u05DD.",
|
|
24891
25171
|
nodeTooOld: "\u05D2\u05E8\u05E1\u05EA \u05D4\u05BENode.js \u05E9\u05DC\u05DB\u05DD \u05D4\u05D9\u05D0 {have}, \u05D5\u05BEDeployAI \u05E6\u05E8\u05D9\u05DA \u05D2\u05E8\u05E1\u05D4 {need} \u05D5\u05DE\u05E2\u05DC\u05D4. \u05DE\u05EA\u05E7\u05D9\u05E0\u05D9\u05DD \u05D0\u05EA \u05D2\u05E8\u05E1\u05EA \u05D4\u05BELTS \u05DE\u05BEnodejs.org, \u05E4\u05D5\u05EA\u05D7\u05D9\u05DD \u05D8\u05E8\u05DE\u05D9\u05E0\u05DC \u05D7\u05D3\u05E9 \u05D5\u05DE\u05E8\u05D9\u05E6\u05D9\u05DD \u05E9\u05D5\u05D1 \u05D0\u05EA \u05D4\u05E4\u05E7\u05D5\u05D3\u05D4. \u05D0\u05D9\u05DA \u05E2\u05D5\u05E9\u05D9\u05DD \u05D0\u05EA \u05D6\u05D4: {url}",
|
|
24892
|
-
startDownloaded: "\u05D4\u05D3\u05D5\
|
|
24893
|
-
startInstalled: "\u05D4\u05D7\u05D1\u05D9\u05DC\u05D5\u05EA \u05E9\u05DC\u05D4
|
|
24894
|
-
startBrief: "\u05D4\u05E4\u05E8\u05D8\u05D9\u05DD \u05E9\u05DC \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \
|
|
24895
|
-
startLinked: '\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \
|
|
24896
|
-
startRules: "\u05D4\u05DB\u05DC\u05DC\u05D9\u05DD \u05DC\u05E1\u05D5\u05DB\u05DF \
|
|
24897
|
-
startStarter: "\
|
|
24898
|
-
startStack: "\
|
|
24899
|
-
startScanned: "\
|
|
25172
|
+
startDownloaded: "\u05D4\u05D5\u05E8\u05D3\u05E0\u05D5 \u05D0\u05EA \u05D4\u05D3\u05D5\u05D2\u05DE\u05D4 {key}: {n} \u05E7\u05D1\u05E6\u05D9\u05DD.",
|
|
25173
|
+
startInstalled: "\u05D4\u05EA\u05E7\u05E0\u05D5 \u05D0\u05EA \u05D4\u05D7\u05D1\u05D9\u05DC\u05D5\u05EA \u05E9\u05DC\u05D4 (npm install).",
|
|
25174
|
+
startBrief: "\u05DB\u05EA\u05D1\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E4\u05E8\u05D8\u05D9\u05DD \u05E9\u05DC \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D1\u05BE{file} (\u05D4\u05E7\u05D5\u05D1\u05E5 \u05DC\u05D0 \u05E0\u05DB\u05E0\u05E1 \u05DC\u05BEgit \u05D5\u05DC\u05D0 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05EA\u05E8).",
|
|
25175
|
+
startLinked: '\u05D7\u05D9\u05D1\u05E8\u05E0\u05D5 \u05D0\u05EA \u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05DC\u05D0\u05EA\u05E8 "{name}".',
|
|
25176
|
+
startRules: "\u05DB\u05EA\u05D1\u05E0\u05D5 \u05D0\u05EA \u05D4\u05DB\u05DC\u05DC\u05D9\u05DD \u05DC\u05E1\u05D5\u05DB\u05DF \u05D1\u05BEDEPLOYAI.md (\u05D4\u05E7\u05D5\u05D1\u05E5 \u05DC\u05D0 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05EA\u05E8).",
|
|
25177
|
+
startStarter: "\u05DB\u05EA\u05D1\u05E0\u05D5 \u05D3\u05E3 \u05E4\u05EA\u05D9\u05D7\u05D4 (index.html) \u05E9\u05E2\u05DC\u05D9\u05D5 \u05D1\u05D5\u05E0\u05D9\u05DD \u05D0\u05EA \u05D4\u05D0\u05EA\u05E8.",
|
|
25178
|
+
startStack: "\u05E9\u05DE\u05E8\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E1\u05D8\u05D0\u05E7 \u05E9\u05E0\u05D1\u05D7\u05E8 \u05D1\u05D0\u05EA\u05E8: {stack}.",
|
|
25179
|
+
startScanned: "\u05E1\u05E8\u05E7\u05E0\u05D5 \u05D0\u05EA \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D9\u05E9\u05DF {url}: \u05D4\u05D3\u05E4\u05D9\u05DD, \u05D4\u05EA\u05DE\u05D5\u05E0\u05D5\u05EA \u05D5\u05D4\u05EA\u05D5\u05DB\u05DF \u05E9\u05DC\u05D5 \u05E0\u05DE\u05E6\u05D0\u05D9\u05DD \u05D1\u05BE{dir}.",
|
|
24900
25180
|
startBesideCode: "\u05D4\u05D0\u05EA\u05E8 \u05D4\u05D7\u05D3\u05E9 \u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05DE\u05E9\u05DC\u05D5, \u05DC\u05D9\u05D3 \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05E9\u05D4\u05D9\u05D5 \u05DB\u05D0\u05DF ({dir}). \u05D0\u05DD \u05D4\u05DD \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D9\u05E9\u05DF, \u05E7\u05E8\u05D0 \u05D0\u05D5\u05EA\u05DD \u05DC\u05E4\u05E0\u05D9 \u05D4\u05EA\u05DB\u05E0\u05D5\u05DF.",
|
|
24901
25181
|
stackDiffers: "\u05E9\u05D9\u05DE\u05D5 \u05DC\u05D1: \u05D4\u05E1\u05D8\u05D0\u05E7 \u05E9\u05E0\u05D1\u05D7\u05E8 \u05D1\u05D0\u05EA\u05E8 \u05D4\u05D5\u05D0 {chosen}, \u05D0\u05D1\u05DC \u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05D4\u05D9\u05D0 {found}. \u05D4\u05DE\u05E9\u05D9\u05DB\u05D5 \u05D1\u05E1\u05D8\u05D0\u05E7 \u05E9\u05E0\u05D1\u05D7\u05E8, \u05D0\u05D5 \u05D4\u05E1\u05D1\u05D9\u05E8\u05D5 \u05DC\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DC\u05DE\u05D4 \u05D4\u05D5\u05D0 \u05D4\u05E9\u05EA\u05E0\u05D4.",
|
|
24902
|
-
startRelinked: '\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \
|
|
25182
|
+
startRelinked: '\u05D7\u05D9\u05D1\u05E8\u05E0\u05D5 \u05D0\u05EA \u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05DC\u05D0\u05EA\u05E8 "{name}", \u05D1\u05DE\u05E7\u05D5\u05DD \u05D4\u05D0\u05EA\u05E8 \u05E9\u05D4\u05D9\u05D9\u05EA\u05D4 \u05DE\u05D7\u05D5\u05D1\u05E8\u05EA \u05D0\u05DC\u05D9\u05D5.',
|
|
24903
25183
|
statusLine: "\u05DE\u05E6\u05D1: {s}",
|
|
24904
25184
|
ready: "\u05DE\u05D5\u05DB\u05DF \u05DC\u05E2\u05DC\u05D5\u05EA",
|
|
24905
25185
|
readyWarnings: "\u05DE\u05D5\u05DB\u05DF \u05DC\u05E2\u05DC\u05D5\u05EA, \u05E2\u05DD \u05D0\u05D6\u05D4\u05E8\u05D5\u05EA",
|
|
@@ -24913,13 +25193,13 @@ var M = {
|
|
|
24913
25193
|
copied: " (\u05D4\u05D5\u05E2\u05EA\u05E7)",
|
|
24914
25194
|
runDeploy: ' \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest deploy -m "<message>"',
|
|
24915
25195
|
movedSlug: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D4\u05D0\u05EA\u05E8 \u05DC\u05E4\u05D9 \u05D4\u05D3\u05D5\u05DE\u05D9\u05D9\u05DF \u05D4\u05D9\u05E9\u05DF: {url}",
|
|
24916
|
-
autoLiveOn: "\u05D4\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DC\u05D1\u05D3 \u05DB\u05E9\u05D4\
|
|
25196
|
+
autoLiveOn: "\u05D4\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DC\u05D1\u05D3 \u05DB\u05E9\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05DE\u05E1\u05EA\u05D9\u05D9\u05DE\u05EA, \u05DB\u05DE\u05D5 \u05E9\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D2\u05D3\u05D9\u05E8 \u05D1\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05D4\u05D0\u05EA\u05E8. \u05DE\u05D7\u05DB\u05D9\u05DD \u05E9\u05D9\u05E2\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8.",
|
|
24917
25197
|
holdOn: "\u05D2\u05E8\u05E1\u05EA \u05D1\u05D3\u05D9\u05E7\u05D4: v{n} \u05E0\u05E9\u05D0\u05E8\u05EA \u05D1\u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4 \u05D5\u05DC\u05D0 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E2\u05D3 \u05E9\u05D4\u05D1\u05E2\u05DC\u05D9\u05DD \u05D9\u05D0\u05E9\u05E8\u05D5, \u05D2\u05DD \u05D1\u05D0\u05EA\u05E8 \u05E9\u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DC\u05D1\u05D3.",
|
|
24918
25198
|
holdAndLive: "--hold \u05DE\u05E9\u05D0\u05D9\u05E8 \u05D0\u05EA \u05D4\u05D2\u05E8\u05E1\u05D4 \u05D1\u05D4\u05DE\u05EA\u05E0\u05D4 \u05D5\u05BE--live \u05DE\u05E2\u05DC\u05D4 \u05D0\u05D5\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8. \u05D1\u05D7\u05E8\u05D5 \u05D0\u05D7\u05D3 \u05DE\u05D4\u05DD.",
|
|
24919
25199
|
holdGuest: "\u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05D0\u05D7\u05E8\u05D9 \u05DB\u05DC \u05D1\u05E0\u05D9\u05D9\u05D4, \u05D5\u05DC\u05DB\u05DF \u200E--hold \u05DC\u05D0 \u05D7\u05DC \u05E2\u05DC\u05D9\u05D5.",
|
|
24920
|
-
moveOfferGranted: "\u05D4\u05D0\u05EA\u05E8 \u05E2\
|
|
24921
|
-
moveOfferCap: "\u05D4\u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05D4\u05D7\u05D9\u05E0\u05DE\u05D9\u05D9\u05DD \u05DC\u05D0\u05EA\u05E8\u05D9\u05DD \u05E9\
|
|
24922
|
-
moveOfferOver: "\u05DE\u05D1\u05E6\u05E2 \u05D4\u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05D4\u05D7\u05D9\u05E0\u05DE\u05D9\u05D9\u05DD \u05DC\u05D0\u05EA\u05E8\u05D9\u05DD \u05E9\u05E2\u05D1\u05E8\u05D5 \u05D4\u05E1\u05EA\u05D9\u05D9\u05DD.",
|
|
25200
|
+
moveOfferGranted: "\u05D4\u05D0\u05EA\u05E8 \u05D4\u05D2\u05D9\u05E2 \u05D3\u05E8\u05DA \u200E/move \u05D5\u05E7\u05D9\u05D1\u05DC {n} \u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05D1\u05D7\u05D9\u05E0\u05DD. \u05E0\u05E6\u05D9\u05E2 \u05D0\u05D5\u05EA\u05DD \u05D1\u05E9\u05DC\u05D1 \u05D4\u05D0\u05D7\u05E8\u05D5\u05DF, \u05D0\u05D7\u05E8\u05D9 \u05E9\u05D4\u05D4\u05E2\u05D1\u05E8\u05D4 \u05DE\u05E1\u05EA\u05D9\u05D9\u05DE\u05EA.",
|
|
25201
|
+
moveOfferCap: "\u05DB\u05D1\u05E8 \u05D4\u05E9\u05EA\u05DE\u05E9\u05EA\u05DD \u05D1\u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05D4\u05D7\u05D9\u05E0\u05DE\u05D9\u05D9\u05DD \u05DC\u05D0\u05EA\u05E8\u05D9\u05DD \u05E9\u05D4\u05D5\u05E2\u05D1\u05E8\u05D5 \u05D1\u05BE3 \u05D0\u05EA\u05E8\u05D9\u05DD \u05D1\u05D7\u05E9\u05D1\u05D5\u05DF \u05D4\u05D6\u05D4.",
|
|
25202
|
+
moveOfferOver: "\u05DE\u05D1\u05E6\u05E2 \u05D4\u05EA\u05D5\u05E1\u05E4\u05D9\u05DD \u05D4\u05D7\u05D9\u05E0\u05DE\u05D9\u05D9\u05DD \u05DC\u05D0\u05EA\u05E8\u05D9\u05DD \u05E9\u05D4\u05D5\u05E2\u05D1\u05E8\u05D5 \u05D4\u05E1\u05EA\u05D9\u05D9\u05DD.",
|
|
24923
25203
|
initHint: " \u05DB\u05D3\u05D9 \u05E9\u05D4\u05E1\u05D5\u05DB\u05DF \u05D9\u05E2\u05D1\u05D5\u05D3 \u05DC\u05E4\u05D9 \u05D4\u05DB\u05DC\u05DC\u05D9\u05DD \u05E9\u05DC DeployAI, \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest init",
|
|
24924
25204
|
emptyFolder: "\u05D0\u05D9\u05DF \u05E2\u05D3\u05D9\u05D9\u05DF \u05DE\u05D4 \u05DC\u05D1\u05D3\u05D5\u05E7: \u05D0\u05D9\u05DF \u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05D0\u05EA\u05E8. \u05D1\u05E0\u05D5 \u05DB\u05D0\u05DF \u05D0\u05EA \u05D4\u05D0\u05EA\u05E8, \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest check",
|
|
24925
25205
|
deployTitle: "DeployAI deploy",
|
|
@@ -24936,8 +25216,8 @@ var M = {
|
|
|
24936
25216
|
goesLive: "\u05D4\u05D2\u05E8\u05E1\u05D4 \u05D4\u05D7\u05D3\u05E9\u05D4 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DB\u05E9\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05E9\u05DC\u05D4 \u05DE\u05E1\u05EA\u05D9\u05D9\u05DE\u05EA.",
|
|
24937
25217
|
followBuild: " \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest status (\u05DB\u05D3\u05D9 \u05DC\u05E2\u05E7\u05D5\u05D1 \u05D0\u05D7\u05E8\u05D9 \u05D4\u05D1\u05E0\u05D9\u05D9\u05D4)",
|
|
24938
25218
|
thenPromote: " \u05D5\u05E8\u05E7 \u05D0\u05D7\u05E8\u05D9 \u05E9\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D0\u05D9\u05E9\u05E8 \u05D0\u05EA \u05D4\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4: npx deployai@latest promote v{n} (\u05DB\u05D3\u05D9 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05D5\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8)",
|
|
24939
|
-
heavyPage: "\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D9\u05EA \u05D8\u05D5\u05E2\u05DF {n} \u05E7\u05D1\u05E6\u05D9\u05DD \u05DE\u05D4\u05D0\u05EA\u05E8. \u05E4\u05D7\u05D5\u05EA \u05E7\u05D1\u05E6\u05D9\u05DD \
|
|
24940
|
-
prefetchPage: "\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D9\u05EA \u05D8\u05D5\u05E2\u05DF \u05E2\u05DE\u05D5\u05D3\u05D9\u05DD \u05DC\u05E4\u05E0\u05D9 \u05E9\u05DE\u05D9\u05E9\u05D4\u05D5 \u05E4\u05D5\u05EA\u05D7 \u05D0\u05D5\u05EA\u05DD (prefetch). \u05DB\u05D9\
|
|
25219
|
+
heavyPage: "\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D9\u05EA \u05D8\u05D5\u05E2\u05DF {n} \u05E7\u05D1\u05E6\u05D9\u05DD \u05DE\u05D4\u05D0\u05EA\u05E8. \u05DB\u05DB\u05DC \u05E9\u05D9\u05E9 \u05E4\u05D7\u05D5\u05EA \u05E7\u05D1\u05E6\u05D9\u05DD, \u05D4\u05D0\u05EA\u05E8 \u05E0\u05D8\u05E2\u05DF \u05DE\u05D4\u05E8 \u05D9\u05D5\u05EA\u05E8 \u05DC\u05DE\u05D1\u05E7\u05E8\u05D9\u05DD.",
|
|
25220
|
+
prefetchPage: "\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D9\u05EA \u05D8\u05D5\u05E2\u05DF \u05E2\u05DE\u05D5\u05D3\u05D9\u05DD \u05DC\u05E4\u05E0\u05D9 \u05E9\u05DE\u05D9\u05E9\u05D4\u05D5 \u05E4\u05D5\u05EA\u05D7 \u05D0\u05D5\u05EA\u05DD (prefetch). \u05D0\u05DD \u05DE\u05DB\u05D1\u05D9\u05DD \u05D0\u05EA \u05D6\u05D4 \u05D1\u05E8\u05E9\u05D9\u05DE\u05D5\u05EA \u05E7\u05D9\u05E9\u05D5\u05E8\u05D9\u05DD \u05D0\u05E8\u05D5\u05DB\u05D5\u05EA, \u05D4\u05DE\u05D1\u05E7\u05E8\u05D9\u05DD \u05D7\u05D5\u05E1\u05DB\u05D9\u05DD \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD.",
|
|
24941
25221
|
speedHint: " \u05DC\u05D1\u05D3\u05D9\u05E7\u05D4: npx deployai@latest speed {url}",
|
|
24942
25222
|
queueWaiting: "\u05DE\u05DE\u05EA\u05D9\u05DF \u05D1\u05EA\u05D5\u05E8, \u05DE\u05E7\u05D5\u05DD {n}",
|
|
24943
25223
|
files: "\u05E7\u05D1\u05E6\u05D9\u05DD",
|
|
@@ -24948,8 +25228,8 @@ var M = {
|
|
|
24948
25228
|
guestClaim: "\u05E4\u05EA\u05D7\u05D5 \u05D0\u05EA \u05E7\u05D9\u05E9\u05D5\u05E8 \u05D4\u05E9\u05DE\u05D9\u05E8\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05E9\u05DE\u05D5\u05E8 \u05D0\u05EA \u05D4\u05D0\u05EA\u05E8 (\u05D4\u05E8\u05E9\u05DE\u05D4 \u05D0\u05D5 \u05DB\u05E0\u05D9\u05E1\u05D4).",
|
|
24949
25229
|
claimLink: "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05D4\u05E9\u05DE\u05D9\u05E8\u05D4 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D6\u05DE\u05E0\u05D9: {url}",
|
|
24950
25230
|
pulled: "\u05D4\u05D5\u05E8\u05D3\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D2\u05E8\u05E1\u05D4 v{v}: {n} \u05E7\u05D1\u05E6\u05D9\u05DD.",
|
|
24951
|
-
pulledHistory: "\u05D4\
|
|
24952
|
-
pullNoGit: "\u05DB\u05D3\u05D9 \u05DC\u05D4\u05D5\u05E8\u05D9\u05D3 \u05D0\u05EA \u05D4\u05D4\u05D9\u05E1\u05D8\u05D5\u05E8\u05D9\u05D4 \u05E6\u05E8\u05D9\u05DA git \u05D1\u05DE\u05D7\u05E9\u05D1. \u05D4\u05EA\u05E7\u05D9\u05E0\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05DE
|
|
25231
|
+
pulledHistory: "\u05D4\u05D5\u05E8\u05D3\u05E0\u05D5 \u05D0\u05EA \u05D4\u05D4\u05D9\u05E1\u05D8\u05D5\u05E8\u05D9\u05D4: {n} \u05D2\u05E8\u05E1\u05D0\u05D5\u05EA \u05DB\u05BEcommits \u05D1\u05BEgit, \u05E2\u05D3 \u05D4\u05D2\u05E8\u05E1\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 v{v}.",
|
|
25232
|
+
pullNoGit: "\u05DB\u05D3\u05D9 \u05DC\u05D4\u05D5\u05E8\u05D9\u05D3 \u05D0\u05EA \u05D4\u05D4\u05D9\u05E1\u05D8\u05D5\u05E8\u05D9\u05D4 \u05E6\u05E8\u05D9\u05DA git \u05D1\u05DE\u05D7\u05E9\u05D1. \u05D4\u05EA\u05E7\u05D9\u05E0\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05DE\u05BEhttps://git-scm.com, \u05D0\u05D5 \u05D4\u05E8\u05D9\u05E6\u05D5 pull \u05D1\u05DC\u05D9 \u200E--history.",
|
|
24953
25233
|
pullNotLinked: "\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DC\u05D0 \u05DE\u05D7\u05D5\u05D1\u05E8\u05EA \u05DC\u05D0\u05EA\u05E8. \u05D4\u05E2\u05EA\u05D9\u05E7\u05D5 \u05E9\u05D5\u05D1 \u05D0\u05EA \u05D4\u05E9\u05D5\u05E8\u05D4 \u05DE\u05D3\u05E3 \u05D4\u05D0\u05EA\u05E8 \u05D1\u05BEDeployAI.",
|
|
24954
25234
|
pullNotEmpty: "\u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DB\u05D1\u05E8 \u05D9\u05E9 \u05E7\u05D1\u05E6\u05D9\u05DD, \u05D0\u05D6 \u05DC\u05D0 \u05D4\u05D5\u05E8\u05D3\u05E0\u05D5 \u05DB\u05DC\u05D5\u05DD. \u05D4\u05E9\u05EA\u05DE\u05E9\u05D5 \u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05E8\u05D9\u05E7\u05D4.",
|
|
24955
25235
|
pullNoSource: "\u05DC\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05E2\u05D5\u05D3 \u05D0\u05D9\u05DF \u05D2\u05E8\u05E1\u05D4 \u05DC\u05D4\u05D5\u05E8\u05D9\u05D3.",
|
|
@@ -24958,17 +25238,17 @@ var M = {
|
|
|
24958
25238
|
guestEmailHint: "\u05DC\u05E7\u05D1\u05DC \u05D0\u05D5\u05EA\u05D5 \u05D1\u05DE\u05D9\u05D9\u05DC, \u05E2\u05DD \u05EA\u05D6\u05DB\u05D5\u05E8\u05EA \u05DC\u05E4\u05E0\u05D9 \u05D4\u05DE\u05D7\u05D9\u05E7\u05D4: npx deployai@latest claim --email <email>",
|
|
24959
25239
|
claimEmailed: "\u05E9\u05DC\u05D7\u05E0\u05D5 \u05D0\u05EA \u05E7\u05D9\u05E9\u05D5\u05E8 \u05D4\u05E9\u05DE\u05D9\u05E8\u05D4 \u05DC\u05BE{email}. \u05EA\u05D6\u05DB\u05D5\u05E8\u05EA \u05EA\u05D2\u05D9\u05E2 3 \u05D9\u05DE\u05D9\u05DD \u05DC\u05E4\u05E0\u05D9 \u05E9\u05D4\u05D0\u05EA\u05E8 \u05E0\u05DE\u05D7\u05E7.",
|
|
24960
25240
|
claimNoLink: "\u05DE\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DC\u05D0 \u05D4\u05D5\u05E2\u05DC\u05D4 \u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9 \u05DE\u05D4\u05DE\u05D7\u05E9\u05D1 \u05D4\u05D6\u05D4, \u05D0\u05D6 \u05D0\u05D9\u05DF \u05DB\u05D0\u05DF \u05E7\u05D9\u05E9\u05D5\u05E8 \u05E9\u05DE\u05D9\u05E8\u05D4.",
|
|
24961
|
-
rollbackQueued: "\u05D4\u05D7\u05D6\u05E8\u05D4 \u05DC\u05BEv{n} \
|
|
24962
|
-
promoteQueued: "\u05D4\u05E2\u05DC\u05D0\u05EA v{n} \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \
|
|
25241
|
+
rollbackQueued: "\u05D4\u05D7\u05D6\u05E8\u05D4 \u05DC\u05BEv{n} \u05E0\u05DB\u05E0\u05E1\u05D4 \u05DC\u05EA\u05D5\u05E8. \u05DC\u05D0 \u05E6\u05E8\u05D9\u05DA \u05DC\u05D1\u05E0\u05D5\u05EA \u05DE\u05D7\u05D3\u05E9.",
|
|
25242
|
+
promoteQueued: "\u05D4\u05E2\u05DC\u05D0\u05EA v{n} \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E0\u05DB\u05E0\u05E1\u05D4 \u05DC\u05EA\u05D5\u05E8.",
|
|
24963
25243
|
runStatus: " \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest status",
|
|
24964
25244
|
statusTitle: "DeployAI status",
|
|
24965
25245
|
state: "\u05DE\u05E6\u05D1",
|
|
24966
|
-
liveVersion: "\u05D2\u05E8\u05E1\u05D4 \
|
|
25246
|
+
liveVersion: "\u05D2\u05E8\u05E1\u05D4 \u05D1\u05D0\u05D5\u05D5\u05D9\u05E8",
|
|
24967
25247
|
newestVersion: "\u05D2\u05E8\u05E1\u05D4 \u05D0\u05D7\u05E8\u05D5\u05E0\u05D4",
|
|
24968
25248
|
promoteReady: " \u05D0\u05D7\u05E8\u05D9 \u05E9\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D0\u05D9\u05E9\u05E8 \u05D0\u05EA \u05D4\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4: npx deployai@latest promote v{n} (\u05DB\u05D3\u05D9 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05D5\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8)",
|
|
24969
|
-
firstLookNext: " \u05D2\u05E8\u05E1\u05D4 {n} \u05D4\u05D9\u05D0 \u05D4\u05DE\u05D1\u05D8 \u05D4\u05E8\u05D0\u05E9\u05D5\u05DF \u05D4\u05E4\u05E8\u05D8\u05D9
|
|
25249
|
+
firstLookNext: " \u05D2\u05E8\u05E1\u05D4 {n} \u05D4\u05D9\u05D0 \u05D4\u05DE\u05D1\u05D8 \u05D4\u05E8\u05D0\u05E9\u05D5\u05DF \u05D4\u05E4\u05E8\u05D8\u05D9, \u05D5\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DC\u05D0 \u05E6\u05E8\u05D9\u05DA \u05DC\u05D0\u05E9\u05E8 \u05D0\u05D5\u05EA\u05D4: \u05E9\u05DC\u05D7\u05D5 \u05D0\u05EA \u05DB\u05EA\u05D5\u05D1\u05EA \u05D4\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4 \u05D5\u05D4\u05DE\u05E9\u05D9\u05DB\u05D5 \u05DC\u05E9\u05DC\u05D1 \u05D4\u05D1\u05D0.",
|
|
24970
25250
|
previewNotYet: "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05D4\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4 \u05E2\u05D5\u05D3 \u05DC\u05D0 \u05E2\u05D5\u05E0\u05D4. \u05D6\u05D4 \u05D9\u05DB\u05D5\u05DC \u05DC\u05E7\u05D7\u05EA \u05DB\u05DE\u05D4 \u05D3\u05E7\u05D5\u05EA: \u05D4\u05DE\u05E9\u05D9\u05DB\u05D5 \u05DC\u05E2\u05D1\u05D5\u05D3, \u05D5\u05E4\u05EA\u05D7\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05D0\u05D7\u05E8\u05D9 \u05D4\u05E9\u05DC\u05D1 \u05D4\u05D1\u05D0.",
|
|
24971
|
-
publicLeftOut: " {count} \u05E7\u05D1\u05E6\u05D9\u05DD \u05E9\u05D4\u05D0\u05EA\u05E8 \u05DE\u05D2\u05D9\u05E9 \u05DC\u05D0 \u05E2\u05D5\u05DC\u05D9\u05DD, \u05DB\u05D9 \u200E.gitignore \u05DE\
|
|
25251
|
+
publicLeftOut: " {count} \u05E7\u05D1\u05E6\u05D9\u05DD \u05E9\u05D4\u05D0\u05EA\u05E8 \u05DE\u05D2\u05D9\u05E9 \u05DC\u05D0 \u05E2\u05D5\u05DC\u05D9\u05DD, \u05DB\u05D9 \u200E.gitignore \u05DE\u05E9\u05D0\u05D9\u05E8 \u05D0\u05D5\u05EA\u05DD \u05D1\u05D7\u05D5\u05E5. \u05D4\u05E8\u05D0\u05E9\u05D5\u05DF: {file}",
|
|
24972
25252
|
sameNameChanged: " {count} \u05E7\u05D1\u05E6\u05D9\u05DD \u05D4\u05E9\u05EA\u05E0\u05D5 \u05D0\u05D1\u05DC \u05E9\u05DE\u05E8\u05D5 \u05E2\u05DC \u05D4\u05E9\u05DD, \u05D0\u05D6 \u05DE\u05D1\u05E7\u05E8\u05D9\u05DD \u05D7\u05D5\u05D6\u05E8\u05D9\u05DD \u05E2\u05DC\u05D5\u05DC\u05D9\u05DD \u05DC\u05E8\u05D0\u05D5\u05EA \u05D0\u05EA \u05D4\u05D9\u05E9\u05DF \u05E2\u05D3 \u05D7\u05D5\u05D3\u05E9. \u05D4\u05E8\u05D0\u05E9\u05D5\u05DF: {file}. \u05E9\u05DE\u05E8\u05D5 \u05EA\u05DE\u05D5\u05E0\u05D4 \u05E9\u05D4\u05E9\u05EA\u05E0\u05EA\u05D4 \u05D1\u05E9\u05DD \u05D7\u05D3\u05E9 \u05E2\u05DD \u05E7\u05D5\u05D3 \u05E7\u05E6\u05E8, \u05DB\u05DE\u05D5 team-3f9a2c.webp, \u05D5\u05E2\u05D3\u05DB\u05E0\u05D5 \u05D0\u05D9\u05E4\u05D4 \u05E9\u05D4\u05D9\u05D0 \u05D1\u05E9\u05D9\u05DE\u05D5\u05E9.",
|
|
24973
25253
|
publicLeftOutFix: " \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05D5\u05EA\u05DD, \u05D4\u05D5\u05E1\u05D9\u05E4\u05D5 \u05D0\u05EA \u05D4\u05E9\u05D5\u05E8\u05D4 \u05D4\u05D6\u05D5 \u05DC\u05E7\u05D5\u05D1\u05E5 \u200E.deployaiignore: !{dir}/",
|
|
24974
25254
|
statusWait: " \u05DB\u05D3\u05D9 \u05DC\u05D7\u05DB\u05D5\u05EA \u05DB\u05D0\u05DF \u05E2\u05D3 \u05E9\u05D6\u05D4 \u05E0\u05D2\u05DE\u05E8: npx deployai@latest status --wait",
|
|
@@ -24982,20 +25262,20 @@ var M = {
|
|
|
24982
25262
|
askOwner: ' \u05D2\u05E8\u05E1\u05D4 {n} \u05DE\u05D5\u05DB\u05E0\u05D4 \u05D5\u05E2\u05D5\u05D3 \u05DC\u05D0 \u05D1\u05D0\u05D5\u05D5\u05D9\u05E8. \u05E9\u05D0\u05DC\u05D5 \u05D0\u05EA \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8: "\u05D2\u05E8\u05E1\u05D4 {n} \u05DE\u05D5\u05DB\u05E0\u05D4. \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05D5\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8?"',
|
|
24983
25263
|
showPreview: " \u05E9\u05DC\u05D7\u05D5 \u05E7\u05D5\u05D3\u05DD \u05D0\u05EA \u05D4\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4: {url}",
|
|
24984
25264
|
homeBroken: " \u05D3\u05E3 \u05D4\u05D1\u05D9\u05EA \u05D1\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4 \u05DE\u05D7\u05D6\u05D9\u05E8 {status}, \u05D5\u05DC\u05DB\u05DF \u05DE\u05D1\u05E7\u05E8\u05D9\u05DD \u05DC\u05D0 \u05D9\u05E8\u05D0\u05D5 \u05D0\u05EA \u05D4\u05D0\u05EA\u05E8.",
|
|
24985
|
-
homeFix: " \u05EA\u05E7\u05E0\u05D5 \u05D5\
|
|
25265
|
+
homeFix: " \u05EA\u05E7\u05E0\u05D5 \u05D5\u05D4\u05E2\u05DC\u05D5 \u05E9\u05D5\u05D1. \u05D4\u05D2\u05E8\u05E1\u05D4 \u05D4\u05D6\u05D5 \u05DC\u05D0 \u05E2\u05DC\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8, \u05D0\u05D6 \u05E2\u05D5\u05D3 \u05D0\u05DC \u05EA\u05E9\u05DC\u05D7\u05D5 \u05D0\u05EA \u05D4\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8.",
|
|
24986
25266
|
creditLeft: " \u05D4\u05D0\u05EA\u05E8 \u05E2\u05D3\u05D9\u05D9\u05DF \u05DE\u05E6\u05D9\u05D2 \u05E7\u05E8\u05D3\u05D9\u05D8 \u05E9\u05DC \u05D1\u05D5\u05E0\u05D4 \u05D0\u05EA\u05E8\u05D9\u05DD: {text}",
|
|
24987
25267
|
creditFix: " \u05D4\u05E1\u05D9\u05E8\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05D5\u05E9\u05D9\u05DE\u05D5 \u05D1\u05DE\u05E7\u05D5\u05DE\u05D5 \u05D0\u05EA \u05E9\u05DD \u05D4\u05D0\u05EA\u05E8 \u05D5\u05D4\u05E9\u05E0\u05D4, \u05D0\u05DC\u05D0 \u05D0\u05DD \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D1\u05D9\u05E7\u05E9 \u05DC\u05D4\u05E9\u05D0\u05D9\u05E8 \u05D0\u05D5\u05EA\u05D5.",
|
|
24988
|
-
askLiveFirst: "\u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DE\u05D9\u05D3 \u05DB\u05E9\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05DE\u05E1\u05EA\u05D9\u05D9\u05DE\u05EA? \u05DC\u05D0 \
|
|
25268
|
+
askLiveFirst: "\u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DE\u05D9\u05D3 \u05DB\u05E9\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05DE\u05E1\u05EA\u05D9\u05D9\u05DE\u05EA? \u05D0\u05DD \u05EA\u05E2\u05E0\u05D5 \u05DC\u05D0, \u05EA\u05E8\u05D0\u05D5 \u05E7\u05D5\u05D3\u05DD \u05D0\u05EA \u05D4\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4. (y/N) ",
|
|
24989
25269
|
askLiveNow: "\u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05EA v{n} \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E2\u05DB\u05E9\u05D9\u05D5? (y/N) ",
|
|
24990
25270
|
waitBuild: "\u05DE\u05D7\u05DB\u05D9\u05DD \u05DC\u05D1\u05E0\u05D9\u05D9\u05D4 \u05E9\u05DC v{n}. Ctrl+C \u05DE\u05E4\u05E1\u05D9\u05E7 \u05D0\u05EA \u05D4\u05D4\u05DE\u05EA\u05E0\u05D4, \u05DC\u05D0 \u05D0\u05EA \u05D4\u05D1\u05E0\u05D9\u05D9\u05D4.",
|
|
24991
25271
|
waitState: " v{n}: {s}",
|
|
24992
25272
|
buildSlow: "\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05E9\u05DC v{n} \u05DC\u05D5\u05E7\u05D7\u05EA \u05D9\u05D5\u05EA\u05E8 \u05D6\u05DE\u05DF \u05DE\u05D4\u05E8\u05D2\u05D9\u05DC.",
|
|
24993
25273
|
liveNow: "v{n} \u05D1\u05D0\u05D5\u05D5\u05D9\u05E8: {url}",
|
|
24994
25274
|
soundOn: "\u05D4\u05E6\u05DC\u05D9\u05DC \u05E4\u05D5\u05E2\u05DC: \u05D4\u05DE\u05D7\u05E9\u05D1 \u05D4\u05D6\u05D4 \u05D9\u05E9\u05DE\u05D9\u05E2 \u05E6\u05DC\u05D9\u05DC \u05DB\u05E9\u05D4\u05D0\u05EA\u05E8 \u05DE\u05D5\u05DB\u05DF. \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E4\u05E1\u05D9\u05E7: npx deployai@latest sound off.",
|
|
24995
|
-
soundAgentOn: "\u05D2\u05DD \u05D1\u05D8\u05E8\u05DE\u05D9\u05E0\u05DC \u05D4\u05D6\u05D4: \u05E6\u05DC\u05D9\u05DC \u05E8\u05DA \u05DB\u05E9\u05D4\u05E1\u05D5\u05DB\u05DF \u05DE\u05E1\u05D9\u05D9\u05DD, \u05D5\u05E6\u05DC\u05D9\u05DC \u05E0\u05D5\u05E1\u05E3 \u05DB\u05E9\u05D4\u05D5\u05D0 \u05E6\u05E8\u05D9\u05DA \u05D0\u05EA\u05DB\u05DD. \u05D4\u05E0\u05E7\u05D5\u05D3\u05D4 \u05D4\u05E6\u05D1\u05E2\u05D5\u05E0\u05D9\u05EA \u05D1\u05DC\u05E9\u05D5\u05E0\u05D9\u05EA \u05EA\u05D5\u05E4\u05D9\u05E2 \u05D1\u05E4\u05E2\u05DD \u05D4\u05D1\u05D0\u05D4 \u05E9
|
|
25275
|
+
soundAgentOn: "\u05D2\u05DD \u05D1\u05D8\u05E8\u05DE\u05D9\u05E0\u05DC \u05D4\u05D6\u05D4: \u05E6\u05DC\u05D9\u05DC \u05E8\u05DA \u05DB\u05E9\u05D4\u05E1\u05D5\u05DB\u05DF \u05DE\u05E1\u05D9\u05D9\u05DD, \u05D5\u05E6\u05DC\u05D9\u05DC \u05E0\u05D5\u05E1\u05E3 \u05DB\u05E9\u05D4\u05D5\u05D0 \u05E6\u05E8\u05D9\u05DA \u05D0\u05EA\u05DB\u05DD. \u05D4\u05E0\u05E7\u05D5\u05D3\u05D4 \u05D4\u05E6\u05D1\u05E2\u05D5\u05E0\u05D9\u05EA \u05D1\u05DC\u05E9\u05D5\u05E0\u05D9\u05EA \u05EA\u05D5\u05E4\u05D9\u05E2 \u05D1\u05E4\u05E2\u05DD \u05D4\u05D1\u05D0\u05D4 \u05E9\u05BEClaude Code \u05E0\u05E4\u05EA\u05D7.",
|
|
24996
25276
|
soundOff: "\u05D4\u05E6\u05DC\u05D9\u05DC \u05DB\u05D1\u05D5\u05D9. \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E4\u05E2\u05D9\u05DC: npx deployai@latest sound on.",
|
|
24997
|
-
soundTest: "\u05D4\
|
|
24998
|
-
closedHere: "\u05D4\u05D0\u05EA\u05E8 \u05E4\u05EA\u05D5\u05D7 \u05E8\u05E7 \u05DC\u05DE\u05D1\u05E7\u05E8\u05D9\u05DD \u05DE: {countries}. \u05DE\u05DB\u05D0\u05DF ({country}) \u05DE\u05D5\u05E6\u05D2 \u05D3\u05E3 \u05D7\u05E1\u05D5\u05DD.",
|
|
25277
|
+
soundTest: "\u05D4\u05E9\u05DE\u05E2\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E6\u05DC\u05D9\u05DC. \u05DC\u05D0 \u05E9\u05DE\u05E2\u05EA\u05DD? \u05D1\u05D3\u05E7\u05D5 \u05D0\u05EA \u05D4\u05E8\u05DE\u05E7\u05D5\u05DC\u05D9\u05DD: \u05DE\u05D4 \u05E9\u05DE\u05D5\u05D3\u05E4\u05E1 \u05DB\u05D0\u05DF \u05EA\u05DE\u05D9\u05D3 \u05D0\u05D5\u05DE\u05E8 \u05D0\u05EA \u05D0\u05D5\u05EA\u05D5 \u05D4\u05D3\u05D1\u05E8.",
|
|
25278
|
+
closedHere: "\u05D4\u05D0\u05EA\u05E8 \u05E4\u05EA\u05D5\u05D7 \u05E8\u05E7 \u05DC\u05DE\u05D1\u05E7\u05E8\u05D9\u05DD \u05DE\u05D4\u05DE\u05D3\u05D9\u05E0\u05D5\u05EA \u05D4\u05D0\u05DC\u05D4: {countries}. \u05DE\u05DB\u05D0\u05DF ({country}) \u05DE\u05D5\u05E6\u05D2 \u05D3\u05E3 \u05D7\u05E1\u05D5\u05DD.",
|
|
24999
25279
|
closedHereOpen: " \u05E4\u05EA\u05D7\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05D2\u05DD \u05DC\u05BE{country}: {url}",
|
|
25000
25280
|
closedHereAsk: " \u05D1\u05E7\u05E9\u05D5 \u05DE\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05D5\u05EA\u05D5 \u05D2\u05DD \u05DC\u05BE{country}.",
|
|
25001
25281
|
closedHereVpn: " \u05D0\u05D5 \u05D4\u05E9\u05EA\u05DE\u05E9\u05D5 \u05D1\u05BEVPN \u05D3\u05E8\u05DA \u05DE\u05D3\u05D9\u05E0\u05D4 \u05E9\u05D4\u05D0\u05EA\u05E8 \u05E4\u05EA\u05D5\u05D7 \u05D1\u05D4.",
|
|
@@ -25008,12 +25288,12 @@ var M = {
|
|
|
25008
25288
|
envNone: "\u05DC\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05E2\u05D5\u05D3 \u05D0\u05D9\u05DF \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD. \u05D4\u05D5\u05E1\u05D9\u05E4\u05D5 \u05D0\u05D7\u05D3: npx deployai@latest env set <KEY> <value>",
|
|
25009
25289
|
envSecret: "\u05E1\u05D5\u05D3",
|
|
25010
25290
|
envPlain: "\u05D2\u05DC\u05D5\u05D9",
|
|
25011
|
-
envNeedValue: '\u05DB\u05EA\u05D1\u05D5 \u05D0\u05EA \u05D4\u05E2\u05E8\u05DA \u05D0\u05D7\u05E8\u05D9 \u05D4\u05E9\u05DD, \u05D0\u05D5 \u05D4\u05E2\u05D1\u05D9\u05E8\u05D5 \u05D0\u05D5\u05EA\u05D5 \
|
|
25291
|
+
envNeedValue: '\u05DB\u05EA\u05D1\u05D5 \u05D0\u05EA \u05D4\u05E2\u05E8\u05DA \u05D0\u05D7\u05E8\u05D9 \u05D4\u05E9\u05DD, \u05D0\u05D5 \u05D4\u05E2\u05D1\u05D9\u05E8\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05DE\u05E4\u05E7\u05D5\u05D3\u05D4 \u05D0\u05D7\u05E8\u05EA: echo "<value>" | npx deployai@latest env set <KEY>',
|
|
25012
25292
|
envSavedSecret: "\u05E9\u05DE\u05E8\u05E0\u05D5 \u05D0\u05EA {key} \u05DB\u05E1\u05D5\u05D3 \u05D1\u05D0\u05EA\u05E8 \u05D4\u05D7\u05D9. \u05D4\u05E2\u05E8\u05DA \u05DC\u05D0 \u05E0\u05E9\u05DE\u05E8 \u05D0\u05E6\u05DC\u05E0\u05D5 \u05D5\u05DC\u05D0 \u05D9\u05D5\u05E6\u05D2 \u05E9\u05D5\u05D1.",
|
|
25013
25293
|
envSavedPlain: "\u05E9\u05DE\u05E8\u05E0\u05D5 \u05D0\u05EA {key}. \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D7\u05D9 \u05D9\u05E7\u05D1\u05DC \u05D0\u05D5\u05EA\u05D5 \u05EA\u05D5\u05DA \u05DB\u05D3\u05E7\u05D4.",
|
|
25014
25294
|
envRemoved: "\u05D4\u05E1\u05E8\u05E0\u05D5 \u05D0\u05EA {key}. \u05D4\u05D5\u05D0 \u05D9\u05D9\u05E2\u05DC\u05DD \u05DE\u05D4\u05D0\u05EA\u05E8 \u05D4\u05D7\u05D9 \u05EA\u05D5\u05DA \u05DB\u05D3\u05E7\u05D4.",
|
|
25015
|
-
guestNoEnv: "\u05DC\u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9 \u05D0\u05D9\u05DF \u05DE\u05E9\u05EA\u05E0\u05D9 \u05E1\u05D1\u05D9\u05D1\u05D4. \u05E9\u05DE\u05E8\u05D5 \u05D0\u05D5\u05EA\u05D5 \
|
|
25016
|
-
envInvalidKey: "\u05E9\u05DD \u05DE\u05E9\u05EA\u05E0\u05D4: \u05D0\u05D5\u05EA\u05D9\u05D5\u05EA \u05D2\u05D3\u05D5\u05DC\u05D5\u05EA \u05D1\u05D0\u05E0\u05D2\u05DC\u05D9\u05EA, \u05E1\u05E4\u05E8\u05D5\u05EA \u05D5
|
|
25295
|
+
guestNoEnv: "\u05DC\u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9 \u05D0\u05D9\u05DF \u05DE\u05E9\u05EA\u05E0\u05D9 \u05E1\u05D1\u05D9\u05D1\u05D4. \u05E7\u05D5\u05D3\u05DD \u05E9\u05DE\u05E8\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05D1\u05D7\u05E9\u05D1\u05D5\u05DF: npx deployai@latest claim",
|
|
25296
|
+
envInvalidKey: "\u05E9\u05DD \u05DE\u05E9\u05EA\u05E0\u05D4: \u05D0\u05D5\u05EA\u05D9\u05D5\u05EA \u05D2\u05D3\u05D5\u05DC\u05D5\u05EA \u05D1\u05D0\u05E0\u05D2\u05DC\u05D9\u05EA, \u05E1\u05E4\u05E8\u05D5\u05EA \u05D5\u05BE_, \u05DE\u05EA\u05D7\u05D9\u05DC \u05D1\u05D0\u05D5\u05EA, \u05E2\u05D3 64 \u05EA\u05D5\u05D5\u05D9\u05DD, \u05DB\u05DE\u05D5 STRIPE_KEY.",
|
|
25017
25297
|
envTooLong: "\u05D4\u05E2\u05E8\u05DA \u05D2\u05D3\u05D5\u05DC \u05DE\u05BE5KB, \u05D0\u05E8\u05D5\u05DA \u05DE\u05D3\u05D9 \u05DC\u05DE\u05E9\u05EA\u05E0\u05D4.",
|
|
25018
25298
|
envSendFailed: "\u05D4\u05E1\u05D5\u05D3 \u05DC\u05D0 \u05D4\u05D2\u05D9\u05E2 \u05DC\u05D0\u05EA\u05E8. \u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1 \u05D1\u05E2\u05D5\u05D3 \u05D3\u05E7\u05D4.",
|
|
25019
25299
|
envNoKey: "\u05DC\u05D0\u05EA\u05E8 \u05D0\u05D9\u05DF \u05DE\u05E9\u05EA\u05E0\u05D4 \u05D1\u05E9\u05DD \u05D4\u05D6\u05D4. \u05DC\u05E8\u05E9\u05D9\u05DE\u05D4: npx deployai@latest env list",
|
|
@@ -25023,8 +25303,8 @@ var M = {
|
|
|
25023
25303
|
buildLogTail: "\u05E1\u05D5\u05E3 \u05D9\u05D5\u05DE\u05DF \u05D4\u05D1\u05E0\u05D9\u05D9\u05D4:",
|
|
25024
25304
|
buildFixHint: '\u05EA\u05E7\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E9\u05D2\u05D9\u05D0\u05D4 \u05E9\u05DC\u05DE\u05E2\u05DC\u05D4, \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest check, \u05D5\u05D0\u05D7\u05E8\u05D9\u05D5 npx deployai@latest deploy -m "<message>" --fixed "<one sentence: what you changed, no code>"',
|
|
25025
25305
|
buildFixHintNoNote: '\u05EA\u05E7\u05E0\u05D5 \u05D0\u05EA \u05D4\u05E9\u05D2\u05D9\u05D0\u05D4 \u05E9\u05DC\u05DE\u05E2\u05DC\u05D4, \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest check, \u05D5\u05D0\u05D7\u05E8\u05D9\u05D5 npx deployai@latest deploy -m "<message>"',
|
|
25026
|
-
buildFailedAfter: '\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05E2\u05E6\u05DE\u05D4 \u05D4\u05E1\u05EA\u05D9\u05D9\u05DE\u05D4: \u05D4\u05D9\u05D5\u05DE\u05DF \u05E9\u05DC\u05D4 \u05E0\u05D2\u05DE\u05E8 \u05D1\u05DC\u05D9 \u05E9\u05D2\u05D9\u05D0\u05D4, \u05DB\u05DA \u05E9\u05D4\u05DB\u05D9\u05E9\u05DC\u05D5\u05DF \u05E7\u05E8\u05D4 \u05D1\u05E9\u05DC\u05D1 \u05E9\u05D0\u05D7\u05E8\u05D9\u05D4, \u05D0\u05E6\u05DC\u05E0\u05D5. \u05D0\u05DC \u05EA\u05E9\u05E0\u05D5 \u05DB\u05DC\u05D5\u05DD \u05D5\
|
|
25027
|
-
linkedTo: "\u05DE\u05D7\u05D5\u05D1\u05E8 \u05DC
|
|
25306
|
+
buildFailedAfter: '\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05E2\u05E6\u05DE\u05D4 \u05D4\u05E1\u05EA\u05D9\u05D9\u05DE\u05D4: \u05D4\u05D9\u05D5\u05DE\u05DF \u05E9\u05DC\u05D4 \u05E0\u05D2\u05DE\u05E8 \u05D1\u05DC\u05D9 \u05E9\u05D2\u05D9\u05D0\u05D4, \u05DB\u05DA \u05E9\u05D4\u05DB\u05D9\u05E9\u05DC\u05D5\u05DF \u05E7\u05E8\u05D4 \u05D1\u05E9\u05DC\u05D1 \u05E9\u05D0\u05D7\u05E8\u05D9\u05D4, \u05D0\u05E6\u05DC\u05E0\u05D5. \u05D0\u05DC \u05EA\u05E9\u05E0\u05D5 \u05DB\u05DC\u05D5\u05DD, \u05D5\u05D4\u05E2\u05DC\u05D5 \u05E9\u05D5\u05D1 \u05D1\u05D0\u05D5\u05EA\u05D4 \u05E4\u05E7\u05D5\u05D3\u05D4. \u05D0\u05DD \u05D6\u05D4 \u05E0\u05DB\u05E9\u05DC \u05E9\u05D5\u05D1 \u05D1\u05D0\u05D5\u05EA\u05D4 \u05E6\u05D5\u05E8\u05D4, \u05E1\u05E4\u05E8\u05D5 \u05DC\u05E0\u05D5: npx deployai@latest feedback --kind blocker --command deploy --what "<what you ran and what it printed>"',
|
|
25307
|
+
linkedTo: "\u05DE\u05D7\u05D5\u05D1\u05E8 \u05DC\u05BE{name} ({slug}).",
|
|
25028
25308
|
loginTitle: "DeployAI login",
|
|
25029
25309
|
browserOpened: "\u05D4\u05D3\u05E4\u05D3\u05E4\u05DF \u05E0\u05E4\u05EA\u05D7. \u05D0\u05E9\u05E8\u05D5 \u05E9\u05DD \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3.",
|
|
25030
25310
|
openAddress: "\u05E4\u05EA\u05D7\u05D5 \u05D0\u05EA \u05D4\u05DB\u05EA\u05D5\u05D1\u05EA \u05E9\u05DC\u05DE\u05E2\u05DC\u05D4 \u05D1\u05D3\u05E4\u05D3\u05E4\u05DF \u05D5\u05D0\u05E9\u05E8\u05D5 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3.",
|
|
@@ -25038,21 +25318,27 @@ var M = {
|
|
|
25038
25318
|
notEntitled: "\u05DC\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05D0\u05D9\u05DF \u05D0\u05EA \u05D4\u05EA\u05D5\u05E1\u05E3 \u05D4\u05D6\u05D4. \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D9\u05DB\u05D5\u05DC \u05DC\u05E7\u05E0\u05D5\u05EA \u05D0\u05D5\u05EA\u05D5 \u05DC\u05D0\u05EA\u05E8 \u05DB\u05D0\u05DF: {url}",
|
|
25039
25319
|
forbidden: "\u05D4\u05D7\u05E9\u05D1\u05D5\u05DF \u05D4\u05D6\u05D4 \u05DC\u05D0 \u05D9\u05DB\u05D5\u05DC \u05DC\u05E9\u05E0\u05D5\u05EA \u05D0\u05EA \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4. \u05D1\u05D3\u05E7\u05D5 \u05E9\u05E0\u05DB\u05E0\u05E1\u05EA\u05DD \u05E2\u05DD \u05D4\u05D7\u05E9\u05D1\u05D5\u05DF \u05E9\u05D4\u05D0\u05EA\u05E8 \u05E9\u05D9\u05D9\u05DA \u05DC\u05D5.",
|
|
25040
25320
|
versionStale: "\u05D2\u05E8\u05E1\u05D4 {n} \u05E0\u05D1\u05E0\u05EA\u05D4 \u05DC\u05E4\u05E0\u05D9 \u05E9\u05D2\u05E8\u05E1\u05D4 {live} \u05E2\u05DC\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 ({by}). \u05D4\u05E2\u05DC\u05D0\u05D4 \u05E2\u05DB\u05E9\u05D9\u05D5 \u05EA\u05D5\u05E8\u05D9\u05D3 \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4 \u05DE\u05D4\u05D0\u05EA\u05E8. \u05E7\u05D5\u05D3\u05DD \u05DE\u05DB\u05E0\u05D9\u05E1\u05D9\u05DD \u05D0\u05D5\u05EA\u05DD: npx deployai@latest sync, \u05D5\u05D0\u05D6 \u05DE\u05E2\u05DC\u05D9\u05DD \u05E9\u05D5\u05D1. \u05E8\u05E7 \u05D0\u05DD \u05D4\u05D1\u05E2\u05DC\u05D9\u05DD \u05D0\u05D5\u05DE\u05E8\u05D9\u05DD \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D1\u05DB\u05DC \u05D6\u05D0\u05EA: npx deployai@latest promote {n} --anyway",
|
|
25041
|
-
versionRolledBack: "\u05D4\u05D0\u05EA\u05E8 \
|
|
25321
|
+
versionRolledBack: "\u05D4\u05D0\u05EA\u05E8 \u05D7\u05D6\u05E8 \u05DC\u05D2\u05E8\u05E1\u05D4 {live} \u05D0\u05D7\u05E8\u05D9 \u05E9\u05DE\u05D9\u05E9\u05D4\u05D5 \u05DC\u05E7\u05D7 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D2\u05E8\u05E1\u05D4 {n}, \u05D5\u05D1\u05E7\u05D5\u05D3 \u05D4\u05D6\u05D4 \u05E2\u05D3\u05D9\u05D9\u05DF \u05D9\u05E9 \u05D0\u05EA \u05DE\u05D4 \u05E9\u05D9\u05E8\u05D3 \u05DE\u05D4\u05D0\u05EA\u05E8 (\u05D2\u05E8\u05E1\u05D0\u05D5\u05EA {dropped}). \u05E9\u05D0\u05DC\u05D5 \u05D0\u05EA \u05D4\u05D1\u05E2\u05DC\u05D9\u05DD: \u05DC\u05D4\u05E9\u05D0\u05D9\u05E8 \u05D0\u05EA \u05D4\u05D0\u05EA\u05E8 \u05DB\u05DE\u05D5 \u05E9\u05D4\u05D5\u05D0 \u05E2\u05DB\u05E9\u05D9\u05D5 (npx deployai@latest sync \u05D5\u05D0\u05D6 \u05DE\u05E2\u05DC\u05D9\u05DD \u05E9\u05D5\u05D1), \u05D0\u05D5 \u05DC\u05D4\u05D7\u05D6\u05D9\u05E8 \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD (npx deployai@latest promote {n} --anyway).",
|
|
25042
25322
|
someone: "\u05DE\u05D9\u05E9\u05D4\u05D5",
|
|
25043
25323
|
syncNoGit: "\u05DB\u05D3\u05D9 \u05DC\u05D7\u05D1\u05E8 \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05E6\u05E8\u05D9\u05DA git \u05D1\u05DE\u05D7\u05E9\u05D1 \u05D4\u05D6\u05D4. \u05D4\u05EA\u05E7\u05D9\u05E0\u05D5 \u05D0\u05EA git (https://git-scm.com/downloads), \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest sync",
|
|
25044
25324
|
syncNoBase: "\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DC\u05D0 \u05D9\u05D5\u05D3\u05E2\u05EA \u05DE\u05D0\u05D9\u05D6\u05D5 \u05D2\u05E8\u05E1\u05D4 \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC\u05D4 \u05D1\u05D0, \u05D5\u05DC\u05DB\u05DF \u05D0\u05D9 \u05D0\u05E4\u05E9\u05E8 \u05DC\u05D7\u05D1\u05E8 \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05DE\u05D4\u05D0\u05EA\u05E8 \u05D1\u05D1\u05D8\u05D7\u05D4. \u05D4\u05D5\u05E8\u05D9\u05D3\u05D5 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DC\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05E8\u05D9\u05E7\u05D4 \u05D7\u05D3\u05E9\u05D4 (npx deployai@latest pull), \u05D4\u05E2\u05EA\u05D9\u05E7\u05D5 \u05D0\u05DC\u05D9\u05D4 \u05D0\u05EA \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05E9\u05E9\u05D9\u05E0\u05D9\u05EA\u05DD, \u05D5\u05D4\u05E2\u05DC\u05D5 \u05DE\u05E9\u05DD.",
|
|
25045
25325
|
syncUpToDate: "\u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DB\u05D1\u05E8 \u05D9\u05E9 \u05D0\u05EA \u05D4\u05D2\u05E8\u05E1\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 (v{v}). \u05D0\u05D9\u05DF \u05DE\u05D4 \u05DC\u05D4\u05DB\u05E0\u05D9\u05E1.",
|
|
25046
|
-
syncDone: "\u05D4\
|
|
25326
|
+
syncDone: "\u05D4\u05DB\u05E0\u05E1\u05E0\u05D5 \u05D0\u05EA \u05D4\u05D2\u05E8\u05E1\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 v{v}: \u05DC\u05E7\u05D7\u05E0\u05D5 {taken} \u05E7\u05D1\u05E6\u05D9\u05DD \u05DE\u05D4\u05D0\u05EA\u05E8, \u05D5\u05D7\u05D9\u05D1\u05E8\u05E0\u05D5 {merged} \u05E2\u05DD \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05E9\u05DC\u05DB\u05DD.",
|
|
25047
25327
|
syncConflicts: "\u05D0\u05EA \u05D0\u05DC\u05D4 \u05E9\u05D9\u05E0\u05D5 \u05D1\u05E9\u05E0\u05D9 \u05D4\u05E6\u05D3\u05D3\u05D9\u05DD, \u05D5\u05D4\u05D1\u05E2\u05DC\u05D9\u05DD \u05DE\u05D7\u05DC\u05D9\u05D8\u05D9\u05DD:",
|
|
25048
25328
|
syncWhy_both: "\u05E9\u05D5\u05E0\u05D4 \u05D1\u05D0\u05D5\u05EA\u05D5 \u05DE\u05E7\u05D5\u05DD; \u05E9\u05EA\u05D9 \u05D4\u05D2\u05E8\u05E1\u05D0\u05D5\u05EA \u05D1\u05E7\u05D5\u05D1\u05E5 \u05D1\u05D9\u05DF \u05D4\u05E9\u05D5\u05E8\u05D5\u05EA <<<<<<< \u05D5\u05BE>>>>>>>",
|
|
25049
25329
|
syncWhy_binary: "\u05EA\u05DE\u05D5\u05E0\u05D4 \u05D0\u05D5 \u05E7\u05D5\u05D1\u05E5 \u05D0\u05D7\u05E8 \u05E9\u05D4\u05E9\u05EA\u05E0\u05D4 \u05D1\u05E9\u05E0\u05D9 \u05D4\u05E6\u05D3\u05D3\u05D9\u05DD; \u05E9\u05DC\u05DB\u05DD \u05E0\u05E9\u05D0\u05E8, \u05D6\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E0\u05DE\u05E6\u05D0 \u05D1\u05BE{live}",
|
|
25050
25330
|
syncWhy_deleted_here: "\u05E0\u05DE\u05D7\u05E7 \u05DB\u05D0\u05DF \u05D0\u05D1\u05DC \u05E9\u05D5\u05E0\u05D4 \u05D1\u05D0\u05EA\u05E8; \u05D6\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 \u05D7\u05D6\u05E8",
|
|
25051
25331
|
syncWhy_deleted_live: "\u05E0\u05DE\u05D7\u05E7 \u05D1\u05D0\u05EA\u05E8 \u05D0\u05D1\u05DC \u05E9\u05D5\u05E0\u05D4 \u05DB\u05D0\u05DF; \u05E9\u05DC\u05DB\u05DD \u05E0\u05E9\u05D0\u05E8",
|
|
25052
25332
|
syncClash: "\u05DC\u05E9\u05E0\u05D9 \u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05D9\u05E9 \u05D0\u05D5\u05EA\u05D5 \u05DE\u05E1\u05E4\u05E8: {mine} (\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5) \u05D5\u05BE{theirs} (\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8). \u05EA\u05E0\u05D5 \u05DC\u05BE{mine} \u05D0\u05EA \u05D4\u05DE\u05E1\u05E4\u05E8 \u05D4\u05E4\u05E0\u05D5\u05D9 \u05D4\u05D1\u05D0.",
|
|
25053
|
-
syncNext: "\u05D4\u05D1\u05D0: npx deployai@latest check, \u05D5\u05D0\u05D6 \u05DE\u05E2\u05DC\u05D9\u05DD \u05E9\u05D5\u05D1.",
|
|
25333
|
+
syncNext: "\u05D4\u05E9\u05DC\u05D1 \u05D4\u05D1\u05D0: npx deployai@latest check, \u05D5\u05D0\u05D6 \u05DE\u05E2\u05DC\u05D9\u05DD \u05E9\u05D5\u05D1.",
|
|
25054
25334
|
syncNextConflicts: "\u05D4\u05E8\u05D0\u05D5 \u05DC\u05D1\u05E2\u05DC\u05D9\u05DD \u05DB\u05DC \u05D0\u05D7\u05D3 \u05D1\u05DE\u05D9\u05DC\u05D9\u05DD \u05E4\u05E9\u05D5\u05D8\u05D5\u05EA, \u05E9\u05D0\u05DC\u05D5 \u05DE\u05D4 \u05DC\u05D4\u05E9\u05D0\u05D9\u05E8, \u05D5\u05E2\u05E8\u05DB\u05D5 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D1\u05E5 \u05DB\u05DA \u05E9\u05D9\u05D9\u05E9\u05D0\u05E8 \u05E8\u05E7 \u05D6\u05D4 (\u05D1\u05DC\u05D9 \u05E9\u05D5\u05E8\u05D5\u05EA <<<<<<<, ======= \u05D0\u05D5 >>>>>>>). \u05D5\u05D0\u05D6: npx deployai@latest check, \u05D5\u05DE\u05E2\u05DC\u05D9\u05DD \u05E9\u05D5\u05D1. \u05DB\u05DC \u05DE\u05D4 \u05E9\u05D4\u05D9\u05D4 \u05DC\u05E4\u05E0\u05D9 \u05D4\u05BEsync \u05E9\u05DE\u05D5\u05E8 \u05D1\u05BEgit, \u05D5\u05D0\u05E4\u05E9\u05E8 \u05DC\u05D1\u05D8\u05DC.",
|
|
25055
|
-
|
|
25335
|
+
caughtUp: "\u05D4\u05DB\u05E0\u05E1\u05E0\u05D5 \u05E2\u05D1\u05D5\u05D3\u05D4 \u05D7\u05D3\u05E9\u05D4 \u05D9\u05D5\u05EA\u05E8 \u05E9\u05DC {names} (\u05D4\u05D2\u05E8\u05E1\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8, v{v}): \u05DC\u05E7\u05D7\u05E0\u05D5 {taken} \u05E7\u05D1\u05E6\u05D9\u05DD \u05DE\u05D4\u05D0\u05EA\u05E8, \u05D5\u05D7\u05D9\u05D1\u05E8\u05E0\u05D5 {merged} \u05E2\u05DD \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05E9\u05DC\u05DB\u05DD.",
|
|
25336
|
+
historyAdded: "\u05D4\u05D2\u05E8\u05E1\u05D0\u05D5\u05EA \u05E9\u05DC\u05D4\u05DD \u05E0\u05DE\u05E6\u05D0\u05D5\u05EA \u05E2\u05DB\u05E9\u05D9\u05D5 \u05D2\u05DD \u05D1\u05BEgit \u05E9\u05DC \u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 ({n} \u05E9\u05DE\u05D9\u05E8\u05D5\u05EA \u05D1\u05BErefs/deployai/live), \u05DB\u05DA \u05E9\u05D0\u05E4\u05E9\u05E8 \u05DC\u05D7\u05D6\u05D5\u05E8 \u05D2\u05DD \u05DC\u05E2\u05D1\u05D5\u05D3\u05D4 \u05E9\u05DC\u05D4\u05DD.",
|
|
25337
|
+
behindNoBase: "\u05D2\u05E8\u05E1\u05D4 v{v} \u05E2\u05DC\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05D0\u05D7\u05E8\u05D9 \u05E9\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DC\u05E7\u05D7\u05D4 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3, \u05D5\u05D0\u05D9\u05DF \u05D3\u05E8\u05DA \u05DC\u05D3\u05E2\u05EA \u05DE\u05D0\u05D9\u05D6\u05D5 \u05D2\u05E8\u05E1\u05D4 \u05DE\u05E9\u05D5\u05EA\u05E4\u05EA \u05E9\u05EA\u05D9\u05D4\u05DF \u05D4\u05EA\u05D7\u05D9\u05DC\u05D5, \u05D5\u05DC\u05DB\u05DF \u05D0\u05D9 \u05D0\u05E4\u05E9\u05E8 \u05DC\u05D7\u05D1\u05E8 \u05D0\u05D5\u05EA\u05DF \u05DC\u05D1\u05D3. \u05E1\u05E4\u05E8\u05D5 \u05DC\u05D1\u05E2\u05DC\u05D9\u05DD: \u05D4\u05E2\u05DC\u05D9\u05D9\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05EA\u05D9\u05E2\u05E6\u05E8 \u05E2\u05D3 \u05E9\u05EA\u05D4\u05D9\u05D4 \u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D2\u05E8\u05E1\u05D4 v{v}. \u05DE\u05D5\u05E8\u05D9\u05D3\u05D9\u05DD \u05D0\u05D5\u05EA\u05D4 \u05E2\u05DD npx deployai@latest pull \u05DC\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05E8\u05D9\u05E7\u05D4 \u05D7\u05D3\u05E9\u05D4, \u05D5\u05DE\u05E2\u05EA\u05D9\u05E7\u05D9\u05DD \u05D0\u05DC\u05D9\u05D4 \u05D0\u05EA \u05D4\u05E7\u05D1\u05E6\u05D9\u05DD \u05E9\u05E9\u05D9\u05E0\u05D9\u05EA\u05DD.",
|
|
25338
|
+
caughtUpConflicts: "\u05DC\u05D0 \u05D4\u05D5\u05E2\u05DC\u05D4: \u05D4\u05E2\u05D1\u05D5\u05D3\u05D4 \u05D4\u05D7\u05D3\u05E9\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E9\u05D9\u05E0\u05EA\u05D4 \u05D0\u05EA \u05D0\u05D5\u05EA\u05DD \u05DE\u05E7\u05D5\u05DE\u05D5\u05EA \u05DB\u05DE\u05D5 \u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5. \u05D4\u05E8\u05D0\u05D5 \u05DC\u05D1\u05E2\u05DC\u05D9\u05DD \u05DB\u05DC \u05D0\u05D7\u05D3 \u05DE\u05D4\u05DD \u05D1\u05DE\u05D9\u05DC\u05D9\u05DD \u05E4\u05E9\u05D5\u05D8\u05D5\u05EA, \u05E9\u05D0\u05DC\u05D5 \u05DE\u05D4 \u05DC\u05D4\u05E9\u05D0\u05D9\u05E8, \u05E2\u05E8\u05DB\u05D5 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D1\u05E5 \u05DB\u05DA \u05E9\u05D9\u05D9\u05E9\u05D0\u05E8 \u05E8\u05E7 \u05D6\u05D4, \u05D5\u05D4\u05E2\u05DC\u05D5 \u05E9\u05D5\u05D1. \u05DB\u05DC \u05DE\u05D4 \u05E9\u05D4\u05D9\u05D4 \u05E7\u05D5\u05D3\u05DD \u05E9\u05DE\u05D5\u05E8 \u05D1\u05BEgit, \u05D5\u05D0\u05E4\u05E9\u05E8 \u05DC\u05D1\u05D8\u05DC.",
|
|
25339
|
+
caughtUpNoLive: "\u05D4\u05E4\u05E2\u05DD \u05D6\u05D4 \u05DC\u05D0 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8: \u05D4\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D4\u05D6\u05D5 \u05DE\u05D7\u05D1\u05E8\u05EA \u05D0\u05EA \u05D4\u05E2\u05D1\u05D5\u05D3\u05D4 \u05E9\u05DC \u05DE\u05D9\u05E9\u05D4\u05D5 \u05D0\u05D7\u05E8 \u05E2\u05DD \u05E9\u05DC\u05DB\u05DD, \u05D5\u05DC\u05DB\u05DF \u05D4\u05D1\u05E2\u05DC\u05D9\u05DD \u05D1\u05D5\u05D3\u05E7\u05D9\u05DD \u05E7\u05D5\u05D3\u05DD \u05D1\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4.",
|
|
25340
|
+
caughtUpPreview: "\u05D1\u05BEv{n} \u05D9\u05E9 \u05D0\u05EA \u05E9\u05E0\u05D9 \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD. \u05D4\u05E8\u05D0\u05D5 \u05DC\u05D1\u05E2\u05DC\u05D9\u05DD \u05D0\u05EA \u05D4\u05EA\u05E6\u05D5\u05D2\u05D4 \u05D4\u05DE\u05E7\u05D3\u05D9\u05DE\u05D4; \u05D0\u05D7\u05E8\u05D9 \u05E9\u05D9\u05D0\u05E9\u05E8\u05D5: npx deployai@latest promote {n}",
|
|
25341
|
+
syncLeftovers: "\u05DC\u05D0 \u05D4\u05D5\u05E2\u05DC\u05D4: \u05D4\u05BEsync \u05D4\u05D0\u05D7\u05E8\u05D5\u05DF \u05D4\u05E9\u05D0\u05D9\u05E8 \u05D0\u05EA \u05D0\u05DC\u05D4 \u05DC\u05D4\u05D7\u05DC\u05D8\u05EA \u05D4\u05D1\u05E2\u05DC\u05D9\u05DD: {files}. \u05D4\u05D7\u05DC\u05D9\u05D8\u05D5 \u05E2\u05DC \u05DB\u05DC \u05D0\u05D7\u05D3, \u05D5\u05D0\u05D6 \u05D4\u05E2\u05DC\u05D5 \u05E9\u05D5\u05D1.",
|
|
25056
25342
|
workOthers: "\u05E2\u05D5\u05D1\u05D3\u05D9\u05DD \u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05E2\u05DB\u05E9\u05D9\u05D5 \u05D2\u05DD: {names}. \u05E1\u05E4\u05E8\u05D5 \u05DC\u05D1\u05E2\u05DC\u05D9\u05DD, \u05DB\u05D3\u05D9 \u05E9\u05DC\u05D0 \u05EA\u05E9\u05E0\u05D5 \u05D0\u05EA \u05D0\u05D5\u05EA\u05D5 \u05D3\u05D1\u05E8 \u05D1\u05D0\u05D5\u05EA\u05D5 \u05D6\u05DE\u05DF.",
|
|
25057
25343
|
workYouElsewhere: "\u05D0\u05EA\u05DD, \u05DE\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D0\u05D5 \u05DE\u05DE\u05D7\u05E9\u05D1 \u05D0\u05D7\u05E8\u05D9\u05DD",
|
|
25058
25344
|
workMinutesAgo: "\u05DC\u05E4\u05E0\u05D9 {n} \u05D3\u05E7\u05F3",
|
|
@@ -25096,7 +25382,7 @@ var M = {
|
|
|
25096
25382
|
deployLimitNoMax: "\u05D4\u05D2\u05E2\u05EA\u05DD \u05DC\u05DE\u05D2\u05D1\u05DC\u05EA \u05D4\u05D4\u05E2\u05DC\u05D0\u05D5\u05EA \u05D4\u05D9\u05D5\u05DE\u05D9\u05EA. \u05D0\u05E4\u05E9\u05E8 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05E9\u05D5\u05D1 \u05DE\u05D7\u05E8.",
|
|
25097
25383
|
bundleTooLarge: "\u05D4\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D2\u05D3\u05D5\u05DC\u05D4 \u05DE\u05D3\u05D9: \u05E2\u05D3 50MB \u05DC\u05D0\u05EA\u05E8, \u05D5\u05E2\u05D3 10MB \u05DC\u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9. \u05D4\u05E9\u05D0\u05D9\u05E8\u05D5 \u05D1\u05D7\u05D5\u05E5 \u05E7\u05D1\u05E6\u05D9\u05DD \u05D2\u05D3\u05D5\u05DC\u05D9\u05DD \u05D5\u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1.",
|
|
25098
25384
|
guestExpired: "\u05D4\u05D0\u05EA\u05E8 \u05D4\u05D6\u05DE\u05E0\u05D9 \u05D4\u05D6\u05D4 \u05E4\u05D2 \u05D5\u05E0\u05DE\u05D7\u05E7. \u05DB\u05D3\u05D9 \u05DC\u05E7\u05D1\u05DC \u05D0\u05EA\u05E8 \u05D7\u05D3\u05E9, \u05D4\u05E2\u05DC\u05D5 \u05E9\u05D5\u05D1: npx deployai@latest deploy --guest",
|
|
25099
|
-
envUploaded: "\u05E7\u05D5\u05D1\u05E5 .env \
|
|
25385
|
+
envUploaded: "\u05E7\u05D5\u05D1\u05E5 \u200E.env \u05D0\u05E3 \u05E4\u05E2\u05DD \u05DC\u05D0 \u05E2\u05D5\u05DC\u05D4. \u05D4\u05E1\u05D9\u05E8\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05DE\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05E9\u05D0\u05EA\u05DD \u05DE\u05E2\u05DC\u05D9\u05DD \u05D5\u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1.",
|
|
25100
25386
|
secretInFile: "\u05D1\u05E7\u05D5\u05D1\u05E5 {file} \u05D9\u05E9 \u05DE\u05E4\u05EA\u05D7 \u05E1\u05D5\u05D3\u05D9 ({kind}). \u05DE\u05D7\u05E7\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05DE\u05D4\u05E7\u05D5\u05D1\u05E5, \u05E9\u05DE\u05E8\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05E2\u05DD npx deployai@latest env set <KEY> \u05D5\u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1. \u05D0\u05DD \u05D4\u05D5\u05D0 \u05DB\u05D1\u05E8 \u05E0\u05D7\u05E9\u05E3, \u05D4\u05D7\u05DC\u05D9\u05E4\u05D5 \u05D0\u05D5\u05EA\u05D5 \u05D0\u05E6\u05DC \u05D4\u05E1\u05E4\u05E7.",
|
|
25101
25387
|
guestBindings: "\u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9 \u05D9\u05DB\u05D5\u05DC \u05DC\u05DB\u05DC\u05D5\u05DC \u05DE\u05E1\u05D3 \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E7\u05D8\u05DF, \u05D0\u05D1\u05DC \u05DC\u05D0 \u05D0\u05D7\u05E1\u05D5\u05DF \u05E7\u05D1\u05E6\u05D9\u05DD \u05D0\u05D5 \u05DE\u05E9\u05EA\u05E0\u05D9 \u05E1\u05D1\u05D9\u05D1\u05D4. \u05E9\u05DE\u05E8\u05D5 \u05D0\u05EA \u05D4\u05D0\u05EA\u05E8 \u05D1\u05D7\u05E9\u05D1\u05D5\u05DF \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E9\u05EA\u05DE\u05E9 \u05D1\u05D4\u05DD.",
|
|
25102
25388
|
guestIpLimit: "\u05D4\u05D2\u05E2\u05EA\u05DD \u05DC\u05DE\u05D2\u05D1\u05DC\u05D4 \u05D4\u05D9\u05D5\u05DE\u05D9\u05EA \u05E9\u05DC \u05D0\u05EA\u05E8\u05D9\u05DD \u05D6\u05DE\u05E0\u05D9\u05D9\u05DD. \u05D4\u05D9\u05E8\u05E9\u05DE\u05D5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05E2\u05D5\u05D3.",
|
|
@@ -25104,8 +25390,8 @@ var M = {
|
|
|
25104
25390
|
deployNotLoggedIn: "\u05DC\u05D0 \u05DE\u05D7\u05D5\u05D1\u05E8\u05D9\u05DD. \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest login, \u05D0\u05D5 \u05D4\u05E2\u05DC\u05D5 \u05D1\u05DC\u05D9 \u05D7\u05E9\u05D1\u05D5\u05DF: npx deployai@latest deploy --guest",
|
|
25105
25391
|
deployBlocked: "\u05D4\u05D4\u05E2\u05DC\u05D0\u05D4 \u05E0\u05E2\u05E6\u05E8\u05D4: \u05EA\u05E7\u05E0\u05D5 \u05D0\u05EA \u05D4\u05D7\u05D5\u05E1\u05DE\u05D9\u05DD \u05E9\u05DC\u05DE\u05E2\u05DC\u05D4, \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest deploy",
|
|
25106
25392
|
nothingToUpload: "\u05D0\u05D9\u05DF \u05DE\u05D4 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5.",
|
|
25107
|
-
uploadTooLarge: "\u05D4\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D2\u05D3\u05D5\u05DC\u05D4 \u05DE\u05D3\u05D9: {size}, \
|
|
25108
|
-
uploadTooLargeGuest: "\u05D4\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D2\u05D3\u05D5\u05DC\u05D4 \u05DE\u05D3\u05D9 \u05DC\u05D0\u05EA\u05E8 \u05D1\u05DC\u05D9 \u05D7\u05E9\u05D1\u05D5\u05DF: {size} \u05D0\u05D7\u05E8\u05D9 \u05DB\u05D9\u05D5\u05D5\u05E5, \
|
|
25393
|
+
uploadTooLarge: "\u05D4\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D2\u05D3\u05D5\u05DC\u05D4 \u05DE\u05D3\u05D9: {size}, \u05D5\u05D0\u05E4\u05E9\u05E8 \u05E2\u05D3 {max}. \u05D4\u05D5\u05E1\u05D9\u05E4\u05D5 \u05EA\u05D9\u05E7\u05D9\u05D5\u05EA \u05DC\u05E7\u05D5\u05D1\u05E5 \u200E.deployaiignore \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E9\u05D0\u05D9\u05E8 \u05D0\u05D5\u05EA\u05DF \u05D1\u05D7\u05D5\u05E5.",
|
|
25394
|
+
uploadTooLargeGuest: "\u05D4\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D2\u05D3\u05D5\u05DC\u05D4 \u05DE\u05D3\u05D9 \u05DC\u05D0\u05EA\u05E8 \u05D1\u05DC\u05D9 \u05D7\u05E9\u05D1\u05D5\u05DF: {size} \u05D0\u05D7\u05E8\u05D9 \u05DB\u05D9\u05D5\u05D5\u05E5, \u05D5\u05D0\u05E4\u05E9\u05E8 \u05E2\u05D3 {max}. \u05D4\u05EA\u05D7\u05D1\u05E8\u05D5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D9\u05D5\u05EA\u05E8: npx deployai@latest login",
|
|
25109
25395
|
notLinked: "\u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DC\u05D0 \u05DE\u05D7\u05D5\u05D1\u05E8\u05EA \u05DC\u05D0\u05EA\u05E8. \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest link",
|
|
25110
25396
|
askGuest: "\u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D1\u05DC\u05D9 \u05D7\u05E9\u05D1\u05D5\u05DF? \u05EA\u05E7\u05D1\u05DC\u05D5 \u05D0\u05EA\u05E8 \u05D6\u05DE\u05E0\u05D9 \u05E9\u05D0\u05E4\u05E9\u05E8 \u05DC\u05E9\u05DE\u05D5\u05E8 \u05D0\u05D7\u05E8 \u05DB\u05DA. (y/N) ",
|
|
25111
25397
|
inviteOnly: "\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D1\u05DC\u05D9 \u05D7\u05E9\u05D1\u05D5\u05DF \u05DE\u05D5\u05E9\u05D4\u05D9\u05EA \u05DB\u05DC \u05E2\u05D5\u05D3 \u05D4\u05D4\u05E8\u05E9\u05DE\u05D4 \u05DC\u05BEDeployAI \u05D1\u05D4\u05D6\u05DE\u05E0\u05D4 \u05D1\u05DC\u05D1\u05D3. \u05D0\u05DD \u05D9\u05E9 \u05DC\u05DB\u05DD \u05D7\u05E9\u05D1\u05D5\u05DF \u05D0\u05D5 \u05D4\u05D6\u05DE\u05E0\u05D4, \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest login",
|
|
@@ -25131,32 +25417,32 @@ var M = {
|
|
|
25131
25417
|
sqlDestructive: "\u05D0\u05DC\u05D4 \u05DE\u05D5\u05D7\u05E7\u05D9\u05DD \u05D0\u05D5 \u05D3\u05D5\u05E8\u05E1\u05D9\u05DD \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD, \u05D5\u05D7\u05D6\u05E8\u05D4 \u05DC\u05D2\u05E8\u05E1\u05D4 \u05E7\u05D5\u05D3\u05DE\u05EA \u05DC\u05D0 \u05DE\u05D7\u05D6\u05D9\u05E8\u05D4 \u05D0\u05D5\u05EA\u05DD:",
|
|
25132
25418
|
sqlRunningNow: "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E9\u05DC v{n} \u05DB\u05D1\u05E8 \u05E8\u05E6\u05D9\u05DD. \u05D4\u05D9\u05D0 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DB\u05E9\u05D4\u05DD \u05DE\u05E1\u05EA\u05D9\u05D9\u05DE\u05D9\u05DD.",
|
|
25133
25419
|
sqlRunningNowShort: "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05DB\u05D1\u05E8 \u05E8\u05E6\u05D9\u05DD. \u05D4\u05D2\u05E8\u05E1\u05D4 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05DB\u05E9\u05D4\u05DD \u05DE\u05E1\u05EA\u05D9\u05D9\u05DE\u05D9\u05DD: {url}",
|
|
25134
|
-
sqlOwnerOnly: "\u05D4\u05D7\u05E9\u05D1\u05D5\u05DF \u05D4\u05D6\u05D4 \u05D0
|
|
25135
|
-
sqlNotOwner: "\u05D4
|
|
25420
|
+
sqlOwnerOnly: "\u05D4\u05D7\u05E9\u05D1\u05D5\u05DF \u05D4\u05D6\u05D4 \u05DC\u05D0 \u05D4\u05D1\u05E2\u05DC\u05D9\u05DD \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8, \u05D5\u05E8\u05E7 \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DE\u05D0\u05E9\u05E8 \u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD. \u05E9\u05DC\u05D7\u05D5 \u05D0\u05EA \u05D4\u05D3\u05E3 \u05D4\u05D6\u05D4 \u05DC\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8: {url}\n\u05D0\u05DD \u05D4\u05D0\u05EA\u05E8 \u05E9\u05DC\u05DB\u05DD, \u05D4\u05EA\u05D7\u05D1\u05E8\u05D5 \u05E2\u05DD \u05D4\u05D7\u05E9\u05D1\u05D5\u05DF \u05E9\u05D4\u05D0\u05EA\u05E8 \u05E9\u05D9\u05D9\u05DA \u05DC\u05D5: npx deployai@latest login \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5 \u05E9\u05D5\u05D1.",
|
|
25421
|
+
sqlNotOwner: "\u05D4\u05BECLI \u05DE\u05D7\u05D5\u05D1\u05E8 \u05D1\u05EA\u05D5\u05E8 {account}, \u05E9\u05D4\u05D5\u05D0 \u05DC\u05D0 \u05D4\u05D1\u05E2\u05DC\u05D9\u05DD \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8, \u05D5\u05E8\u05E7 \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DE\u05D0\u05E9\u05E8 \u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD. \u05E9\u05DC\u05D7\u05D5 \u05D0\u05EA \u05D4\u05D3\u05E3 \u05D4\u05D6\u05D4 \u05DC\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8: {url}\n\u05D0\u05DD \u05D4\u05D0\u05EA\u05E8 \u05E9\u05DC\u05DB\u05DD, \u05D4\u05EA\u05D7\u05D1\u05E8\u05D5 \u05E2\u05DD \u05D4\u05D7\u05E9\u05D1\u05D5\u05DF \u05E9\u05D4\u05D0\u05EA\u05E8 \u05E9\u05D9\u05D9\u05DA \u05DC\u05D5: npx deployai@latest login \u05D5\u05D0\u05D6 \u05D4\u05E8\u05D9\u05E6\u05D5 \u05E9\u05D5\u05D1.",
|
|
25136
25422
|
sqlDashboard: "\u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4 \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05DE\u05E1\u05D3\u05E8\u05D9\u05DD \u05D1\u05DC\u05D5\u05D7 \u05D4\u05D1\u05E7\u05E8\u05D4: {url}",
|
|
25137
25423
|
sqlTypeDatabase: "\u05DB\u05D3\u05D9 \u05DC\u05D4\u05E8\u05D9\u05E5 \u05D0\u05D5\u05EA\u05DD \u05D5\u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05EA v{n} \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8, \u05D4\u05E7\u05DC\u05D9\u05D3\u05D5 \u05D0\u05EA \u05E9\u05DD \u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD ({db}): ",
|
|
25138
25424
|
sqlAskRun: "\u05DC\u05D4\u05E8\u05D9\u05E5 \u05D0\u05D5\u05EA\u05DD \u05E2\u05DC {db} \u05D5\u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05EA v{n} \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8? (y/N) ",
|
|
25139
|
-
sqlNotRun: "\u05DC\u05D0 \u05E8\
|
|
25140
|
-
sqlAgentDestructive: " \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4 \u05DE\u05D5\u05D7\u05E7\u05D9\u05DD \u05D0\u05D5 \u05D3\u05D5\u05E8\u05E1\u05D9\u05DD \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD, \u05D5\u05DC\u05DB\u05DF \u05E8\u05E7 \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DE\u05D0\u05E9\u05E8 \u05D0\u05D5\u05EA\u05DD: \u05D1\u05DE\
|
|
25425
|
+
sqlNotRun: "\u05DC\u05D0 \u05D4\u05E8\u05E6\u05E0\u05D5 \u05DB\u05DC\u05D5\u05DD. \u05E9\u05D5\u05DD \u05D3\u05D1\u05E8 \u05DC\u05D0 \u05D4\u05E9\u05EA\u05E0\u05D4.",
|
|
25426
|
+
sqlAgentDestructive: " \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4 \u05DE\u05D5\u05D7\u05E7\u05D9\u05DD \u05D0\u05D5 \u05D3\u05D5\u05E8\u05E1\u05D9\u05DD \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD, \u05D5\u05DC\u05DB\u05DF \u05E8\u05E7 \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DE\u05D0\u05E9\u05E8 \u05D0\u05D5\u05EA\u05DD: \u05D1\u05D8\u05E8\u05DE\u05D9\u05E0\u05DC \u05E9\u05DC \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 (npx deployai@latest promote v{n}) \u05D0\u05D5 \u05DB\u05D0\u05DF: {url}",
|
|
25141
25427
|
sqlChanged: "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E9\u05DC v{n} \u05D4\u05E9\u05EA\u05E0\u05D5 \u05DE\u05D0\u05D6 \u05E9\u05D4\u05D5\u05E6\u05D2\u05D5. \u05D4\u05E8\u05D9\u05E6\u05D5 npx deployai@latest sql v{n}, \u05D4\u05E8\u05D0\u05D5 \u05E9\u05D5\u05D1 \u05DC\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D5\u05E9\u05D0\u05DC\u05D5 \u05E9\u05D5\u05D1.",
|
|
25142
25428
|
sqlChangedServer: "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05D4\u05E9\u05EA\u05E0\u05D5 \u05DE\u05D0\u05D6 \u05E9\u05D4\u05D5\u05E6\u05D2\u05D5. \u05D4\u05E6\u05D9\u05D2\u05D5 \u05D0\u05D5\u05EA\u05DD \u05E9\u05D5\u05D1 \u05D5\u05E9\u05D0\u05DC\u05D5 \u05E9\u05D5\u05D1: {url}",
|
|
25143
|
-
sqlConfirmServer: "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4 \u05DE\u05D5\u05D7\u05E7\u05D9\u05DD \u05D0\u05D5 \u05D3\u05D5\u05E8\u05E1\u05D9\u05DD \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD, \u05D5\u05DC\u05DB\u05DF \u05DE\u05D0\u05E9\u05E8\u05D9\u05DD \u05D0\u05D5\u05EA\u05DD \u05E8\u05E7 \u05D1\u05DE\
|
|
25429
|
+
sqlConfirmServer: "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D4\u05D0\u05DC\u05D4 \u05DE\u05D5\u05D7\u05E7\u05D9\u05DD \u05D0\u05D5 \u05D3\u05D5\u05E8\u05E1\u05D9\u05DD \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD, \u05D5\u05DC\u05DB\u05DF \u05DE\u05D0\u05E9\u05E8\u05D9\u05DD \u05D0\u05D5\u05EA\u05DD \u05E8\u05E7 \u05D1\u05D8\u05E8\u05DE\u05D9\u05E0\u05DC \u05E9\u05DC \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D0\u05D5 \u05D1\u05DC\u05D5\u05D7 \u05D4\u05D1\u05E7\u05E8\u05D4: {url}",
|
|
25144
25430
|
sqlAgentAsk: ' \u05D4\u05E8\u05D0\u05D5 \u05DC\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05DC\u05DE\u05E2\u05DC\u05D4 \u05D5\u05E9\u05D0\u05DC\u05D5: "\u05D2\u05E8\u05E1\u05D4 {n} \u05DE\u05E9\u05E0\u05D4 \u05D0\u05EA \u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD {db}. \u05DC\u05D4\u05E8\u05D9\u05E5 \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D5\u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05D5\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8?"',
|
|
25145
|
-
sqlAgentThen: " \u05D0\u05D7\u05E8\u05D9 \
|
|
25431
|
+
sqlAgentThen: " \u05D0\u05D7\u05E8\u05D9 \u05E9\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D0\u05D9\u05E9\u05E8: npx deployai@latest promote v{n} --approve-sql {hash}",
|
|
25146
25432
|
sqlLater: " \u05D2\u05E8\u05E1\u05D4 {n} \u05DE\u05E9\u05E0\u05D4 \u05D0\u05EA \u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD. \u05E9\u05D5\u05DD \u05D3\u05D1\u05E8 \u05DC\u05D0 \u05E8\u05E5 \u05E2\u05DB\u05E9\u05D9\u05D5 \u05D5\u05E9\u05D5\u05DD \u05D3\u05D1\u05E8 \u05DC\u05D0 \u05E2\u05D5\u05DC\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8: \u05D0\u05DC \u05EA\u05E9\u05D0\u05DC\u05D5 \u05E2\u05DC \u05D6\u05D4 \u05E2\u05D3\u05D9\u05D9\u05DF. \u05DB\u05E9\u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DE\u05D0\u05E9\u05E8 \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05D0\u05D5\u05EA\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8, \u05D4\u05E8\u05D9\u05E6\u05D5 npx deployai@latest promote v{n}, \u05D5\u05D4\u05D5\u05D0 \u05D9\u05E8\u05D0\u05D4 \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8.",
|
|
25147
25433
|
sqlNone: "\u05D1\u05BEv{n} \u05D0\u05D9\u05DF \u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D7\u05D3\u05E9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD.",
|
|
25148
25434
|
sqlFirst: "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E8\u05E6\u05D9\u05DD \u05E7\u05D5\u05D3\u05DD. \u05D0\u05DD \u05D4\u05DD \u05E0\u05DB\u05E9\u05DC\u05D9\u05DD, \u05D4\u05D2\u05E8\u05E1\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E0\u05E9\u05D0\u05E8\u05EA.",
|
|
25149
25435
|
sqlFailed: "\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E9\u05DC v{n} \u05E0\u05DB\u05E9\u05DC\u05D5. \u05D4\u05D2\u05E8\u05E1\u05D4 \u05E9\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E0\u05E9\u05D0\u05E8\u05D4.",
|
|
25150
25436
|
sqlRetry: " \u05D0\u05D7\u05E8\u05D9 \u05EA\u05D9\u05E7\u05D5\u05DF, \u05D4\u05E2\u05DC\u05D5 \u05E9\u05D5\u05D1, \u05D0\u05D5 \u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1: npx deployai@latest promote v{n}",
|
|
25151
|
-
sqlRunningState: "\u05DE\u05E8\u05D9\
|
|
25437
|
+
sqlRunningState: "\u05DE\u05E8\u05D9\u05E6\u05D9\u05DD \u05D0\u05EA \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD",
|
|
25152
25438
|
sqlBeforeUpload: "\u05D1\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D4\u05D6\u05D5 \u05D9\u05E9 \u05E7\u05D5\u05D1\u05E6\u05D9 SQL. \u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D7\u05D3\u05E9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E8\u05E6\u05D9\u05DD \u05E8\u05E7 \u05D0\u05D7\u05E8\u05D9 \u05D0\u05D9\u05E9\u05D5\u05E8, \u05DB\u05E9\u05D4\u05D1\u05E0\u05D9\u05D9\u05D4 \u05DE\u05E1\u05EA\u05D9\u05D9\u05DE\u05EA.",
|
|
25153
25439
|
sqlWaiting: "\u05D1\u05D2\u05E8\u05E1\u05D4 \u05D4\u05D6\u05D5 \u05D9\u05E9 \u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05D1\u05DE\u05E1\u05D3 \u05D4\u05E0\u05EA\u05D5\u05E0\u05D9\u05DD (SQL) \u05E9\u05E2\u05D5\u05D3 \u05DC\u05D0 \u05E8\u05E6\u05D5. \u05D0\u05E9\u05E8\u05D5 \u05D0\u05D5\u05EA\u05DD \u05E7\u05D5\u05D3\u05DD \u05D1\u05DC\u05D5\u05D7 \u05D4\u05D1\u05E7\u05E8\u05D4, \u05D5\u05D0\u05D6 \u05D4\u05E2\u05DC\u05D5 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8 \u05E9\u05D5\u05D1: {url}",
|
|
25154
|
-
tokenOtherApi: "\u05D4\u05DB\u05E0\u05D9\u05E1\u05D4 \u05D1\u05DE\u05D7\u05E9\u05D1 \u05D4\u05D6\u05D4 \u05D4\u05D9\u05D0 \u05DC
|
|
25155
|
-
linkConfirm: "\u05DC\u05D7\u05D1\u05E8 \u05D0\u05EA \u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DC
|
|
25440
|
+
tokenOtherApi: "\u05D4\u05DB\u05E0\u05D9\u05E1\u05D4 \u05D1\u05DE\u05D7\u05E9\u05D1 \u05D4\u05D6\u05D4 \u05D4\u05D9\u05D0 \u05DC\u05BE{saved}, \u05DC\u05D0 \u05DC\u05BE{url}. \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest login --api {url}, \u05D0\u05D5 \u05D4\u05D5\u05E8\u05D9\u05D3\u05D5 \u05D0\u05EA --api \u05D5\u05D0\u05EA DEPLOYAI_API_URL.",
|
|
25441
|
+
linkConfirm: "\u05DC\u05D7\u05D1\u05E8 \u05D0\u05EA \u05D4\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05D4\u05D6\u05D5 \u05DC\u05BE{name} ({address})? (y/N) ",
|
|
25156
25442
|
linkOnlyOne: "\u05D9\u05E9 \u05DC\u05DB\u05DD \u05D0\u05EA\u05E8 \u05D0\u05D7\u05D3: {name} ({address}). \u05DB\u05D3\u05D9 \u05DC\u05D7\u05D1\u05E8 \u05D0\u05D5\u05EA\u05D5, \u05D0\u05D5 \u05D0\u05EA\u05E8 \u05D7\u05D3\u05E9, \u05D4\u05E8\u05D9\u05E6\u05D5:",
|
|
25157
25443
|
linkCancelled: "\u05DC\u05D0 \u05D7\u05D5\u05D1\u05E8. \u05E9\u05D5\u05DD \u05D3\u05D1\u05E8 \u05DC\u05D0 \u05D4\u05E9\u05EA\u05E0\u05D4.",
|
|
25158
25444
|
loggedOutLocalOnly: "\u05D4\u05EA\u05E0\u05EA\u05E7\u05EA\u05DD \u05D1\u05DE\u05D7\u05E9\u05D1 \u05D4\u05D6\u05D4. \u05DC\u05D0 \u05D4\u05E6\u05DC\u05D7\u05E0\u05D5 \u05DC\u05D4\u05D2\u05D9\u05E2 \u05DC\u05BEDeployAI, \u05D0\u05D6 \u05D4\u05D8\u05D5\u05E7\u05DF \u05EA\u05E7\u05E3 \u05E2\u05D3 \u05E9\u05D9\u05E4\u05D5\u05D2 (30 \u05D9\u05D5\u05DD).",
|
|
25159
|
-
savedIn: "\u05E0\u05E9\u05DE\u05E8 \u05D1 .deployai/project.json",
|
|
25445
|
+
savedIn: "\u05E0\u05E9\u05DE\u05E8 \u05D1\u05E7\u05D5\u05D1\u05E5 \u200E.deployai/project.json",
|
|
25160
25446
|
createdProject: "\u05E0\u05D5\u05E6\u05E8 \u05D4\u05D0\u05EA\u05E8 {name}.",
|
|
25161
25447
|
noProjects: "\u05D0\u05D9\u05DF \u05E2\u05D3\u05D9\u05D9\u05DF \u05D0\u05EA\u05E8\u05D9\u05DD.",
|
|
25162
25448
|
projects: "\u05D0\u05EA\u05E8\u05D9\u05DD",
|
|
@@ -25166,6 +25452,17 @@ var M = {
|
|
|
25166
25452
|
runLink: " \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest link",
|
|
25167
25453
|
nextSteps: "\u05D4\u05E9\u05DC\u05D1\u05D9\u05DD \u05D4\u05D1\u05D0\u05D9\u05DD",
|
|
25168
25454
|
readme: "\u05D1\u05BEREADME.md \u05E9\u05D1\u05EA\u05D9\u05E7\u05D9\u05D9\u05D4 \u05DB\u05EA\u05D5\u05D1 \u05DE\u05D4 \u05DB\u05DC \u05E7\u05D5\u05D1\u05E5 \u05E2\u05D5\u05E9\u05D4.",
|
|
25455
|
+
logsWatching: "\u05DC\u05D5\u05D2\u05D9\u05DD \u05D7\u05D9\u05D9\u05DD \u05E9\u05DC {name} ({url}) \u05E2\u05D3 {time}. \u05DC\u05E2\u05E6\u05D9\u05E8\u05D4: Ctrl+C.",
|
|
25456
|
+
logsErrorsOnly: "\u05E8\u05E7 \u05E9\u05D2\u05D9\u05D0\u05D5\u05EA.",
|
|
25457
|
+
logsNote: "\u05DE\u05D5\u05E4\u05D9\u05E2 \u05DB\u05D0\u05DF \u05E8\u05E7 \u05DE\u05D4 \u05E9\u05DE\u05E8\u05D9\u05E5 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8. \u05D3\u05E4\u05D9\u05DD \u05D5\u05E7\u05D1\u05E6\u05D9\u05DD \u05E9\u05E0\u05E9\u05DC\u05D7\u05D9\u05DD \u05DB\u05DE\u05D5 \u05E9\u05D4\u05DD \u05DC\u05D0 \u05DE\u05D5\u05E4\u05D9\u05E2\u05D9\u05DD. DeployAI \u05DC\u05D0 \u05E9\u05D5\u05DE\u05E8\u05EA \u05D0\u05EA \u05D4\u05E9\u05D5\u05E8\u05D5\u05EA \u05D4\u05D0\u05DC\u05D4.",
|
|
25458
|
+
logsEndTime: "\u05E2\u05E6\u05E8\u05E0\u05D5 \u05D0\u05D7\u05E8\u05D9 10 \u05D3\u05E7\u05D5\u05EA. \u05DB\u05D3\u05D9 \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA \u05DC\u05E8\u05D0\u05D5\u05EA, \u05D4\u05E8\u05D9\u05E6\u05D5: npx deployai@latest logs",
|
|
25459
|
+
logsEndReplaced: "\u05E0\u05E2\u05E6\u05E8: \u05D4\u05DC\u05D5\u05D2\u05D9\u05DD \u05E9\u05DC \u05D4\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05E0\u05E4\u05EA\u05D7\u05D5 \u05D1\u05DE\u05E7\u05D5\u05DD \u05D0\u05D7\u05E8. \u05D0\u05E4\u05E9\u05E8 \u05DC\u05E6\u05E4\u05D5\u05EA \u05D1\u05D4\u05DD \u05E8\u05E7 \u05D1\u05DE\u05E7\u05D5\u05DD \u05D0\u05D7\u05D3 \u05D1\u05DB\u05DC \u05E4\u05E2\u05DD.",
|
|
25460
|
+
logsEndCloudflare: "\u05D4\u05DC\u05D5\u05D2\u05D9\u05DD \u05E0\u05E2\u05E6\u05E8\u05D5 \u05D1\u05E6\u05D3 \u05E9\u05DC Cloudflare. \u05D4\u05E8\u05D9\u05E6\u05D5 \u05E9\u05D5\u05D1 \u05D0\u05EA \u05D0\u05D5\u05EA\u05D4 \u05E4\u05E7\u05D5\u05D3\u05D4.",
|
|
25461
|
+
logsEndClosed: "\u05D4\u05D7\u05D9\u05D1\u05D5\u05E8 \u05DC\u05BEDeployAI \u05E0\u05E1\u05D2\u05E8. \u05D4\u05E8\u05D9\u05E6\u05D5 \u05E9\u05D5\u05D1 \u05D0\u05EA \u05D0\u05D5\u05EA\u05D4 \u05E4\u05E7\u05D5\u05D3\u05D4.",
|
|
25462
|
+
logsStopped: "\u05E0\u05E2\u05E6\u05E8.",
|
|
25463
|
+
logsNotLive: '\u05DC\u05D0\u05EA\u05E8 \u05D4\u05D6\u05D4 \u05E2\u05D5\u05D3 \u05D0\u05D9\u05DF \u05D2\u05E8\u05E1\u05D4 \u05D1\u05D0\u05D5\u05D5\u05D9\u05E8, \u05D5\u05DC\u05DB\u05DF \u05D0\u05D9\u05DF \u05DC\u05D5\u05D2\u05D9\u05DD. \u05D4\u05E2\u05DC\u05D5 \u05E7\u05D5\u05D3\u05DD \u05D2\u05E8\u05E1\u05D4 \u05DC\u05D0\u05D5\u05D5\u05D9\u05E8: npx deployai@latest deploy -m "<message>" --live',
|
|
25464
|
+
logsSiteOff: "\u05D4\u05D0\u05EA\u05E8 \u05DB\u05D1\u05D5\u05D9, \u05D5\u05DC\u05DB\u05DF \u05D4\u05E7\u05D5\u05D3 \u05E9\u05DC\u05D5 \u05DC\u05D0 \u05E8\u05E5 \u05D5\u05D0\u05D9\u05DF \u05DC\u05D5\u05D2\u05D9\u05DD. \u05D1\u05E2\u05DC \u05D4\u05D0\u05EA\u05E8 \u05DE\u05D3\u05DC\u05D9\u05E7 \u05D0\u05D5\u05EA\u05D5 \u05DE\u05D7\u05D3\u05E9 \u05D1\u05DC\u05D5\u05D7 \u05D4\u05D1\u05E7\u05E8\u05D4.",
|
|
25465
|
+
logsUnavailable: "\u05D0\u05D9 \u05D0\u05E4\u05E9\u05E8 \u05DC\u05E7\u05E8\u05D5\u05D0 \u05DC\u05D5\u05D2\u05D9\u05DD \u05DB\u05E8\u05D2\u05E2. \u05E0\u05E1\u05D5 \u05E9\u05D5\u05D1 \u05D1\u05E2\u05D5\u05D3 \u05DB\u05DE\u05D4 \u05D3\u05E7\u05D5\u05EA.",
|
|
25169
25466
|
states: { online: "\u05D1\u05D0\u05D5\u05D5\u05D9\u05E8", building: "\u05D1\u05D1\u05E0\u05D9\u05D9\u05D4", ready: "\u05DE\u05D7\u05DB\u05D4 \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8", failed: "\u05E0\u05DB\u05E9\u05DC", paused: "\u05DE\u05D5\u05E9\u05D4\u05D4", off: "\u05DB\u05D1\u05D5\u05D9", queued: "\u05D1\u05EA\u05D5\u05E8", replaced: "\u05D4\u05D5\u05D7\u05DC\u05E4\u05D4 \u05D1\u05D4\u05E2\u05DC\u05D0\u05D4 \u05D7\u05D3\u05E9\u05D4 \u05D9\u05D5\u05EA\u05E8", deleted: "\u05E0\u05DE\u05D7\u05E7", new: "\u05D7\u05D3\u05E9" }
|
|
25170
25467
|
}
|
|
25171
25468
|
};
|
|
@@ -25189,8 +25486,8 @@ function err(line = "") {
|
|
|
25189
25486
|
function pad(text2, width) {
|
|
25190
25487
|
return text2.length >= width ? text2 + " " : text2 + " ".repeat(width - text2.length);
|
|
25191
25488
|
}
|
|
25192
|
-
function row(label,
|
|
25193
|
-
return pad(label, width) +
|
|
25489
|
+
function row(label, value2, width = LABEL_WIDTH) {
|
|
25490
|
+
return pad(label, width) + value2;
|
|
25194
25491
|
}
|
|
25195
25492
|
function rows(items) {
|
|
25196
25493
|
const width = Math.max(LABEL_WIDTH, ...items.map(([l]) => l.length + 2));
|
|
@@ -25203,7 +25500,7 @@ function formatBytes(n2) {
|
|
|
25203
25500
|
}
|
|
25204
25501
|
|
|
25205
25502
|
// src/version.ts
|
|
25206
|
-
var CLI_VERSION = "0.1.0-beta.
|
|
25503
|
+
var CLI_VERSION = "0.1.0-beta.45";
|
|
25207
25504
|
|
|
25208
25505
|
// src/api.ts
|
|
25209
25506
|
function apiContext(apiFlag, root) {
|
|
@@ -25390,7 +25687,7 @@ import { arch as arch2, platform as platform2 } from "os";
|
|
|
25390
25687
|
var TELEMETRY_SENT = [
|
|
25391
25688
|
"Install id (random, made on this computer) and CLI version",
|
|
25392
25689
|
"After each command: command name, result (success, blocked, error category), how long it took and which AI tool ran it, when the environment says so. A start that has to wait for a login sends one more, before it waits",
|
|
25393
|
-
"After an error: the error line with addresses, paths, file names, emails and ids removed, or the wrong command or flag name",
|
|
25690
|
+
"After an error: the error line with addresses, paths, file names, emails and ids removed, or the wrong command or flag name. After a blocked result: a short code for the check that stopped it (for example pages_missing)",
|
|
25394
25691
|
"A note your agent sends with the feedback command: what got in its way and what would help, or in general words what owners ask it for, one sentence each, shown to you as it was sent",
|
|
25395
25692
|
"Linked project id, detected framework and version",
|
|
25396
25693
|
"After each check: compatible or not, blocker and warning codes (for example fs_write)",
|
|
@@ -25454,7 +25751,7 @@ function buildTelemetryEvent(installId, command, result, errorCategory, extra =
|
|
|
25454
25751
|
const tool = deployToolFromEnv(process.env);
|
|
25455
25752
|
if (tool) ev.tool = tool;
|
|
25456
25753
|
if (extra.durationMs !== void 0) ev.durationMs = Math.max(0, Math.round(extra.durationMs));
|
|
25457
|
-
if (result === "error" && extra.errorLine) ev.errorLine = scrubText(extra.errorLine, ERROR_LINE_MAX);
|
|
25754
|
+
if ((result === "error" || result === "blocked") && extra.errorLine) ev.errorLine = scrubText(extra.errorLine, ERROR_LINE_MAX);
|
|
25458
25755
|
return ev;
|
|
25459
25756
|
}
|
|
25460
25757
|
async function sendTelemetryEvent(ctx, event) {
|
|
@@ -25475,6 +25772,73 @@ async function sendTelemetryEvent(ctx, event) {
|
|
|
25475
25772
|
}
|
|
25476
25773
|
}
|
|
25477
25774
|
|
|
25775
|
+
// src/blocked.ts
|
|
25776
|
+
var reasons = /* @__PURE__ */ new Set();
|
|
25777
|
+
function blockedBy(...codes) {
|
|
25778
|
+
for (const c of codes) reasons.add(c);
|
|
25779
|
+
}
|
|
25780
|
+
function takeBlockedLine() {
|
|
25781
|
+
const line = blockedLine(reasons);
|
|
25782
|
+
reasons.clear();
|
|
25783
|
+
return line || void 0;
|
|
25784
|
+
}
|
|
25785
|
+
|
|
25786
|
+
// src/did-you-mean.ts
|
|
25787
|
+
var RUN = "npx deployai@latest";
|
|
25788
|
+
var VALUE_OPTIONS = /* @__PURE__ */ new Set(["--api", "--dir", "-C", "--lang"]);
|
|
25789
|
+
var MEANS = {
|
|
25790
|
+
connect: [
|
|
25791
|
+
"There is no connect command.",
|
|
25792
|
+
`To connect this folder to the site the owner made on DeployAI, run the line the site gave: ${RUN} start <id>`,
|
|
25793
|
+
`For a site that is already on DeployAI: ${RUN} link`,
|
|
25794
|
+
"To connect a domain, the owner opens the site's Domains page in the DeployAI dashboard. To connect an AI chat: https://deployai.co.il/en/connect-ai"
|
|
25795
|
+
],
|
|
25796
|
+
publish: [`To publish: ${RUN} deploy`],
|
|
25797
|
+
upload: [`To upload a new version: ${RUN} deploy`],
|
|
25798
|
+
push: [`To upload a new version: ${RUN} deploy`],
|
|
25799
|
+
live: [`To put a ready version live: ${RUN} promote <version>`]
|
|
25800
|
+
};
|
|
25801
|
+
function editDistance(a, b) {
|
|
25802
|
+
let prev = Array.from({ length: b.length + 1 }, (_, i) => i);
|
|
25803
|
+
for (let i = 1; i <= a.length; i++) {
|
|
25804
|
+
const row2 = [i];
|
|
25805
|
+
for (let j = 1; j <= b.length; j++) row2[j] = Math.min(prev[j] + 1, row2[j - 1] + 1, prev[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1));
|
|
25806
|
+
prev = row2;
|
|
25807
|
+
}
|
|
25808
|
+
return prev[b.length];
|
|
25809
|
+
}
|
|
25810
|
+
function closestCommand(word, names) {
|
|
25811
|
+
const w = word.toLowerCase();
|
|
25812
|
+
let best = null;
|
|
25813
|
+
for (const name of names) {
|
|
25814
|
+
const d = name.startsWith(w) && w.length >= 3 ? 0.5 : editDistance(w, name);
|
|
25815
|
+
if (!best || d < best.d) best = { name, d };
|
|
25816
|
+
}
|
|
25817
|
+
return best && best.d <= Math.max(1, Math.floor(w.length / 3)) ? best.name : null;
|
|
25818
|
+
}
|
|
25819
|
+
var START_ID = new RegExp(`^[${START_ID_ALPHABET}]{10}$`);
|
|
25820
|
+
function unknownCommandHelp(args, program) {
|
|
25821
|
+
const words = [];
|
|
25822
|
+
for (let i = 0; i < args.length; i++) {
|
|
25823
|
+
const a = args[i];
|
|
25824
|
+
if (VALUE_OPTIONS.has(a)) i++;
|
|
25825
|
+
else if (!a.startsWith("-")) words.push({ w: a, at: i });
|
|
25826
|
+
}
|
|
25827
|
+
const rest = (at) => args.length > at + 1 ? ` ${args.slice(at + 1).join(" ")}` : "";
|
|
25828
|
+
const [first, second] = words;
|
|
25829
|
+
if (!first) return [`All commands: ${RUN} --help`];
|
|
25830
|
+
const group = program.commands.find((c) => c.name() === first.w && c.commands.length);
|
|
25831
|
+
if (group && second) {
|
|
25832
|
+
const near2 = closestCommand(second.w, group.commands.map((c) => c.name()));
|
|
25833
|
+
return [...near2 ? [`Did you mean: ${RUN} ${first.w} ${near2}${rest(second.at)}`] : [], `The ${first.w} commands: ${RUN} ${first.w} --help`];
|
|
25834
|
+
}
|
|
25835
|
+
const meant = MEANS[first.w.toLowerCase()];
|
|
25836
|
+
if (meant) return [...meant, `All commands: ${RUN} --help`];
|
|
25837
|
+
if (START_ID.test(first.w)) return [`That looks like the site's start id. Run: ${RUN} start ${first.w}`];
|
|
25838
|
+
const near = closestCommand(first.w, program.commands.map((c) => c.name()));
|
|
25839
|
+
return [...near ? [`Did you mean: ${RUN} ${near}${rest(first.at)}`] : [], `All commands: ${RUN} --help`];
|
|
25840
|
+
}
|
|
25841
|
+
|
|
25478
25842
|
// src/commands/feedback.ts
|
|
25479
25843
|
var COMMAND = /^[a-z][a-z -]{0,59}$/;
|
|
25480
25844
|
async function feedbackCommand(root, ctx, opts) {
|
|
@@ -26030,6 +26394,20 @@ function analyzeProject(root) {
|
|
|
26030
26394
|
add({ code: "durable_objects", severity: "blocker", file: name, line: at < 0 ? 1 : text2.slice(0, at).split("\n").length, detail: "" });
|
|
26031
26395
|
break;
|
|
26032
26396
|
}
|
|
26397
|
+
for (const name of ["wrangler.toml", "wrangler.json", "wrangler.jsonc"]) {
|
|
26398
|
+
if (!existsSync4(join4(root, name))) continue;
|
|
26399
|
+
const text2 = readFileSync5(join4(root, name), "utf8");
|
|
26400
|
+
for (const cron of parseWranglerConfig(name, text2).crons) {
|
|
26401
|
+
const spec = parseSiteCron(cron);
|
|
26402
|
+
const gap = isSiteCronSpec(spec) ? siteCronGapMinutes(spec) : null;
|
|
26403
|
+
const why = !isSiteCronSpec(spec) ? "not a five part cron line" : gap !== null && gap < SITE_SCHEDULE_MIN_MINUTES ? `more often than every ${SITE_SCHEDULE_MIN_MINUTES} minutes` : null;
|
|
26404
|
+
if (!why) continue;
|
|
26405
|
+
const quoted = Math.max(text2.indexOf(`"${cron}"`), text2.indexOf(`'${cron}'`));
|
|
26406
|
+
const at = quoted >= 0 ? quoted : text2.indexOf(cron);
|
|
26407
|
+
add({ code: "schedule_not_run", severity: "warning", file: name, line: at < 0 ? 1 : text2.slice(0, at).split("\n").length, detail: ` ("${cron}", ${why})` });
|
|
26408
|
+
}
|
|
26409
|
+
break;
|
|
26410
|
+
}
|
|
26033
26411
|
const DB_CODE = {
|
|
26034
26412
|
postgres: "unsupported_db_postgres",
|
|
26035
26413
|
mysql: "unsupported_db_mysql",
|
|
@@ -26435,11 +26813,16 @@ function copyToClipboard(text2) {
|
|
|
26435
26813
|
}
|
|
26436
26814
|
return false;
|
|
26437
26815
|
}
|
|
26816
|
+
function windowsBrowserDirs(env = process.env) {
|
|
26817
|
+
const drive = env.SystemDrive || "C:";
|
|
26818
|
+
const dirs = [env.ProgramW6432, env.PROGRAMFILES, env.ProgramFiles, env["PROGRAMFILES(X86)"], env["ProgramFiles(x86)"], `${drive}\\Program Files`, `${drive}\\Program Files (x86)`, env.LOCALAPPDATA, env.USERPROFILE ? join8(env.USERPROFILE, "AppData", "Local") : void 0];
|
|
26819
|
+
return [...new Set(dirs.filter((d) => !!d))];
|
|
26820
|
+
}
|
|
26438
26821
|
function findBrowser() {
|
|
26439
26822
|
if (process.env.DEPLOYAI_NO_BROWSER) return null;
|
|
26440
26823
|
const set2 = process.env.CHROME_PATH;
|
|
26441
26824
|
if (set2 && existsSync7(set2)) return set2;
|
|
26442
|
-
const places = process.platform === "win32" ?
|
|
26825
|
+
const places = process.platform === "win32" ? windowsBrowserDirs().flatMap((d) => d ? [join8(d, "Google/Chrome/Application/chrome.exe"), join8(d, "Microsoft/Edge/Application/msedge.exe")] : []) : process.platform === "darwin" ? ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge", "/Applications/Chromium.app/Contents/MacOS/Chromium"] : ["/usr/bin/google-chrome", "/usr/bin/google-chrome-stable", "/usr/bin/chromium", "/usr/bin/chromium-browser", "/usr/bin/microsoft-edge", "/snap/bin/chromium"];
|
|
26443
26826
|
return places.find((p) => existsSync7(p)) ?? null;
|
|
26444
26827
|
}
|
|
26445
26828
|
function openBrowser(url2) {
|
|
@@ -26776,16 +27159,16 @@ function readObject(file2) {
|
|
|
26776
27159
|
return null;
|
|
26777
27160
|
}
|
|
26778
27161
|
}
|
|
26779
|
-
function writeObject(file2,
|
|
27162
|
+
function writeObject(file2, value2) {
|
|
26780
27163
|
mkdirSync4(dirname(file2), { recursive: true });
|
|
26781
|
-
writeFileSync7(file2, `${JSON.stringify(
|
|
27164
|
+
writeFileSync7(file2, `${JSON.stringify(value2, null, 2)}
|
|
26782
27165
|
`);
|
|
26783
27166
|
}
|
|
26784
|
-
function addTo(obj, key2, list,
|
|
27167
|
+
function addTo(obj, key2, list, value2) {
|
|
26785
27168
|
const inner = obj[key2] && typeof obj[key2] === "object" && !Array.isArray(obj[key2]) ? obj[key2] : {};
|
|
26786
27169
|
const items = Array.isArray(inner[list]) ? inner[list] : [];
|
|
26787
|
-
if (items.includes(
|
|
26788
|
-
inner[list] = [...items,
|
|
27170
|
+
if (items.includes(value2)) return false;
|
|
27171
|
+
inner[list] = [...items, value2];
|
|
26789
27172
|
obj[key2] = inner;
|
|
26790
27173
|
return true;
|
|
26791
27174
|
}
|
|
@@ -27521,7 +27904,7 @@ async function migrateScanCommand(root, raw, opts = {}) {
|
|
|
27521
27904
|
if (isBlockedMoveSite(source)) throw new CliError("We do not move sites of banks, hospitals, health funds, insurers, payment services or government bodies. Tell the owner this in one line and stop.", 1, "blocked_site");
|
|
27522
27905
|
const home = await get(source);
|
|
27523
27906
|
if (!home) throw new CliError(`Could not reach ${source}. Check the address, or that the site is up.`, 1, "network");
|
|
27524
|
-
if (home.status === 401 || home.status === 403) throw new CliError(`${source} answers ${home.status}: it is behind a login or a security check. If it opens in a browser, open it in your browser tool, ask the owner to pass any check in that window, and read the pages there (recommended). Else ask the owner to pause the check while it moves, or work from their export.`, 1, "blocked");
|
|
27907
|
+
if (home.status === 401 || home.status === 403) throw new CliError(`${source} answers ${home.status}: it is behind a login or a security check. If it opens in a browser, open it in your browser tool, ask the owner to pass any check in that window, and read the pages there (recommended). Else ask the owner to pause the check while it moves, or work from their export.`, 1, "blocked", "source_closed");
|
|
27525
27908
|
const origin = new URL(home.url).origin;
|
|
27526
27909
|
const base = (origin + new URL(home.url).pathname).replace(/\/+$/, "");
|
|
27527
27910
|
const html = await home.text();
|
|
@@ -27940,12 +28323,14 @@ async function migrateVerifyCommand(root, previewRaw, ctx, retryMs = PREVIEW_RET
|
|
|
27940
28323
|
out(`A builder's credit is still on the preview:`);
|
|
27941
28324
|
for (const [text2, path] of credits) out(` ${path} ${text2}`);
|
|
27942
28325
|
out("Remove each and put the site's own name and the year in its place, unless the owner asked to keep it, then deploy again and run verify again.");
|
|
28326
|
+
blockedBy("builder_credit");
|
|
27943
28327
|
process.exitCode = 1;
|
|
27944
28328
|
}
|
|
27945
28329
|
if (vendors.size) {
|
|
27946
28330
|
out(`Files of a plugin or theme are still on the preview:`);
|
|
27947
28331
|
for (const [name, path] of vendors) out(` ${path} ${name}`);
|
|
27948
28332
|
out("Remove them. Write what the page needs into the site's own stylesheet and scripts, or use a UI source, so it looks and works the same, then deploy again and run verify again.");
|
|
28333
|
+
blockedBy("vendor_files");
|
|
27949
28334
|
process.exitCode = 1;
|
|
27950
28335
|
}
|
|
27951
28336
|
if (leftOnOld.length) {
|
|
@@ -27953,6 +28338,7 @@ async function migrateVerifyCommand(root, previewRaw, ctx, retryMs = PREVIEW_RET
|
|
|
27953
28338
|
out("Still loading from the old site and missing from this one, so it breaks when the old site closes:");
|
|
27954
28339
|
for (const a of leftOnOld) out(` ${what[a.kind]} ${a.url}`);
|
|
27955
28340
|
out("Put each file in the site's own public folder (migrate media saved the images in .deployai/migration), point the tag at the site's own address, deploy again and run verify again.");
|
|
28341
|
+
blockedBy("old_host_assets");
|
|
27956
28342
|
process.exitCode = 1;
|
|
27957
28343
|
}
|
|
27958
28344
|
if (tagFindings.length) {
|
|
@@ -27960,6 +28346,7 @@ async function migrateVerifyCommand(root, previewRaw, ctx, retryMs = PREVIEW_RET
|
|
|
27960
28346
|
for (const f of tagFindings.slice(0, 60)) out(` ${f.what} ${TAG_WORDS[f.problem]}${f.detail ? ` (${f.detail})` : ""}${f.page ? ` on ${f.page}` : ""}`);
|
|
27961
28347
|
if (tagFindings.length > 60) out(` and ${tagFindings.length - 60} more in verify.json`);
|
|
27962
28348
|
out('Put each one back, deploy again and run verify again. If one was left out on purpose (the owner asked, or the plan replaced it with ours): npx deployai@latest migrate tags --removed "<its number or name>", and give its plan row the status "Replaced with <what took its place>" so the report says so.');
|
|
28349
|
+
blockedBy(...tagFindings.map((f) => f.problem));
|
|
27963
28350
|
process.exitCode = 1;
|
|
27964
28351
|
}
|
|
27965
28352
|
const clean3 = !findings.length && !tagFindings.length && !credits.size && !vendors.size && !leftOnOld.length;
|
|
@@ -27977,6 +28364,8 @@ async function migrateVerifyCommand(root, previewRaw, ctx, retryMs = PREVIEW_RET
|
|
|
27977
28364
|
for (const f of findings.slice(0, 60)) out(` ${f.path} ${words[f.problem]}${f.detail ? ` ${f.detail}` : ""}`);
|
|
27978
28365
|
if (findings.length > 60) out(` and ${findings.length - 60} more in verify.json`);
|
|
27979
28366
|
out("Give each page its old address back (or, only if it truly cannot stay, a line in public/_redirects), deploy again, and run verify again.");
|
|
28367
|
+
const pageReason = { missing: "pages_missing", moved: "pages_moved", error: "pages_error", title_lost: "title_lost", description_lost: "description_lost" };
|
|
28368
|
+
blockedBy(...findings.map((f) => pageReason[f.problem]));
|
|
27980
28369
|
process.exitCode = 1;
|
|
27981
28370
|
}
|
|
27982
28371
|
|
|
@@ -28134,11 +28523,11 @@ import { gunzipSync as gunzipSync2 } from "zlib";
|
|
|
28134
28523
|
import { readFileSync as readFileSync12 } from "fs";
|
|
28135
28524
|
import { gzipSync } from "zlib";
|
|
28136
28525
|
var BLOCK = 512;
|
|
28137
|
-
function writeString(buf, offset, length,
|
|
28138
|
-
buf.write(
|
|
28526
|
+
function writeString(buf, offset, length, value2) {
|
|
28527
|
+
buf.write(value2, offset, Math.min(length, Buffer.byteLength(value2)), "utf8");
|
|
28139
28528
|
}
|
|
28140
|
-
function writeOctal(buf, offset, length,
|
|
28141
|
-
const str2 = Math.floor(
|
|
28529
|
+
function writeOctal(buf, offset, length, value2) {
|
|
28530
|
+
const str2 = Math.floor(value2).toString(8).padStart(length - 1, "0");
|
|
28142
28531
|
buf.write(str2.slice(-(length - 1)), offset, length - 1, "ascii");
|
|
28143
28532
|
buf[offset + length - 1] = 0;
|
|
28144
28533
|
}
|
|
@@ -28182,8 +28571,8 @@ function splitUstar(path) {
|
|
|
28182
28571
|
}
|
|
28183
28572
|
return null;
|
|
28184
28573
|
}
|
|
28185
|
-
function paxRecord(key2,
|
|
28186
|
-
const body = ` ${key2}=${
|
|
28574
|
+
function paxRecord(key2, value2) {
|
|
28575
|
+
const body = ` ${key2}=${value2}
|
|
28187
28576
|
`;
|
|
28188
28577
|
let len = Buffer.byteLength(body) + 1;
|
|
28189
28578
|
while (String(len).length + Buffer.byteLength(body) !== len) len = String(len).length + Buffer.byteLength(body);
|
|
@@ -28257,23 +28646,33 @@ import { resolve as resolve2 } from "path";
|
|
|
28257
28646
|
function placeOf(ctx, root) {
|
|
28258
28647
|
return createHash3("sha256").update(`${ctx.config.installId}:${resolve2(root)}`).digest("hex").slice(0, 16);
|
|
28259
28648
|
}
|
|
28260
|
-
async function
|
|
28649
|
+
async function checkWork(ctx, root, projectId, builtOn, retried = false) {
|
|
28650
|
+
const none = { others: [], behind: null, answered: false };
|
|
28261
28651
|
const token = tokenIfOwnApi(ctx);
|
|
28262
|
-
if (!token) return
|
|
28652
|
+
if (!token) return none;
|
|
28263
28653
|
try {
|
|
28264
28654
|
const res = await fetch(`${ctx.apiUrl}/api/cli/working`, {
|
|
28265
28655
|
method: "POST",
|
|
28266
28656
|
headers: { "User-Agent": userAgent(ctx.config), "Content-Type": "application/json", Authorization: `Bearer ${token}` },
|
|
28267
|
-
body: JSON.stringify({ projectId, place: placeOf(ctx, root) }),
|
|
28657
|
+
body: JSON.stringify({ projectId, place: placeOf(ctx, root), ...builtOn && builtOn > 0 ? { builtOn } : {} }),
|
|
28268
28658
|
signal: AbortSignal.timeout(5e3)
|
|
28269
28659
|
});
|
|
28270
|
-
if (!res.ok) return
|
|
28660
|
+
if (!res.ok) return none;
|
|
28271
28661
|
const data = await res.json();
|
|
28272
|
-
|
|
28662
|
+
const behind = data.behind && typeof data.behind.live === "number" && Array.isArray(data.behind.newer) ? data.behind : null;
|
|
28663
|
+
return { others: Array.isArray(data.others) ? data.others : [], behind, answered: true };
|
|
28273
28664
|
} catch {
|
|
28274
|
-
return
|
|
28665
|
+
if (!retried) return checkWork(ctx, root, projectId, builtOn, true);
|
|
28666
|
+
return none;
|
|
28275
28667
|
}
|
|
28276
28668
|
}
|
|
28669
|
+
async function touchWork(ctx, root, projectId, builtOn) {
|
|
28670
|
+
return (await checkWork(ctx, root, projectId, builtOn)).others;
|
|
28671
|
+
}
|
|
28672
|
+
function behindNames(behind) {
|
|
28673
|
+
const names = [...new Set(behind.newer.map((v) => v.by).filter((x) => !!x))];
|
|
28674
|
+
return (names.length ? names : behind.by ? [behind.by] : []).join(", ");
|
|
28675
|
+
}
|
|
28277
28676
|
function othersLine(root, others) {
|
|
28278
28677
|
if (!others.length) return null;
|
|
28279
28678
|
const t = messages(root);
|
|
@@ -28420,12 +28819,12 @@ async function pullCommand(root, ctx, opts = {}) {
|
|
|
28420
28819
|
requireToken(ctx);
|
|
28421
28820
|
if (opts.history) return pullHistory(root, ctx, projectId);
|
|
28422
28821
|
const n2 = extractInto(await fetchSource(root, ctx, projectId), root, t("pullDamaged"));
|
|
28423
|
-
|
|
28424
|
-
|
|
28822
|
+
const builtOn = lastVersion && Number(lastVersion) > 0 ? Number(lastVersion) : void 0;
|
|
28823
|
+
if (builtOn) updateProject(root, { builtOn });
|
|
28824
|
+
await touchWork(ctx, root, projectId, builtOn);
|
|
28425
28825
|
out(t("pulled", { n: n2, v: lastVersion ?? "?" }));
|
|
28426
28826
|
}
|
|
28427
28827
|
var lastVersion = null;
|
|
28428
|
-
var fetchedVersion = () => lastVersion && Number(lastVersion) > 0 ? Number(lastVersion) : null;
|
|
28429
28828
|
async function fetchSource(root, ctx, projectId, version2) {
|
|
28430
28829
|
const t = messages(root);
|
|
28431
28830
|
const token = requireToken(ctx);
|
|
@@ -28522,31 +28921,19 @@ function mergeText(ours2, base, live, liveLabel) {
|
|
|
28522
28921
|
rmSync3(dir, { recursive: true, force: true });
|
|
28523
28922
|
}
|
|
28524
28923
|
}
|
|
28525
|
-
async function
|
|
28924
|
+
async function bringIn(root, ctx, projectId, behind) {
|
|
28526
28925
|
const t = messages(root);
|
|
28527
|
-
const project = readProject(root);
|
|
28528
|
-
if (!project?.projectId) throw new CliError(t("pullNotLinked"), 1, "not_linked");
|
|
28529
|
-
requireToken(ctx);
|
|
28530
28926
|
if (git2(root, ["--version"]).status !== 0) throw new CliError(t("syncNoGit"), 1, "usage");
|
|
28531
|
-
if (!
|
|
28532
|
-
const
|
|
28533
|
-
const
|
|
28534
|
-
const
|
|
28535
|
-
const live = fetchedVersion();
|
|
28536
|
-
if (!live) throw new CliError(t("pullNoSource"), 1, "not_found");
|
|
28537
|
-
if (live === project.builtOn) {
|
|
28538
|
-
out(t("syncUpToDate", { v: live }));
|
|
28539
|
-
if (others) out(others);
|
|
28540
|
-
return;
|
|
28541
|
-
}
|
|
28542
|
-
const baseFiles = filesOf(await fetchSource(root, ctx, projectId, project.builtOn));
|
|
28543
|
-
const liveFiles = filesOf(liveGz);
|
|
28927
|
+
if (!behind.base) throw new CliError(t("syncNoBase"), 1, "usage");
|
|
28928
|
+
const live = behind.live;
|
|
28929
|
+
const liveFiles = filesOf(await fetchSource(root, ctx, projectId, live));
|
|
28930
|
+
const baseFiles = filesOf(await fetchSource(root, ctx, projectId, behind.base));
|
|
28544
28931
|
const plan = planUpload(root);
|
|
28545
28932
|
const ourFiles = new Map(plan.files.map((f) => [f.rel, readFileSync13(f.abs)]));
|
|
28546
28933
|
if (!existsSync15(join17(root, ".git")) && git2(root, ["init", "-q"]).status !== 0) throw new CliError(t("syncNoGit"), 1, "usage");
|
|
28547
28934
|
git2(root, ["add", "-A"]);
|
|
28548
|
-
git2(root, ["-c",
|
|
28549
|
-
const state = { live, base:
|
|
28935
|
+
git2(root, ["-c", `user.name=${BOT.name}`, "-c", `user.email=${BOT.email}`, "commit", "-q", "--allow-empty", "-m", `Before sync with live v${live}`]);
|
|
28936
|
+
const state = { live, base: behind.base, conflicts: [], clashes: migrationClashes(baseFiles, liveFiles, ourFiles) };
|
|
28550
28937
|
let taken = 0;
|
|
28551
28938
|
let merged = 0;
|
|
28552
28939
|
const write = (path, data) => {
|
|
@@ -28596,20 +28983,101 @@ async function syncCommand(root, ctx) {
|
|
|
28596
28983
|
ensureDeployaiDir(root);
|
|
28597
28984
|
writeFileSync13(join17(root, SYNC_FILE), JSON.stringify(state, null, 2) + "\n");
|
|
28598
28985
|
updateProject(root, { builtOn: live });
|
|
28599
|
-
|
|
28600
|
-
if (state.conflicts.length) {
|
|
28986
|
+
const tip = await recordHistory(root, ctx, projectId, behind).catch(() => null);
|
|
28987
|
+
if (tip && !state.conflicts.length && !state.clashes.length) {
|
|
28988
|
+
git2(root, ["add", "-A"]);
|
|
28989
|
+
const tree = git2(root, ["write-tree"]).stdout.trim();
|
|
28990
|
+
const head = git2(root, ["rev-parse", "HEAD"]).stdout.trim();
|
|
28991
|
+
const names = behindNames(behind);
|
|
28992
|
+
const c = spawnSync3("git", ["commit-tree", tree, "-p", head, "-p", tip.sha, "-m", `Brought in live v${live}${names ? ` (${names})` : ""}`], { cwd: root, encoding: "utf8", env: { ...process.env, ...botEnv() } });
|
|
28993
|
+
if (c.status === 0 && c.stdout.trim()) git2(root, ["update-ref", "HEAD", c.stdout.trim()]);
|
|
28994
|
+
}
|
|
28995
|
+
return { live, taken, merged, conflicts: state.conflicts, clashes: state.clashes, history: tip?.added ?? 0 };
|
|
28996
|
+
}
|
|
28997
|
+
var BOT = { name: "DeployAI", email: "versions@deployai.co.il" };
|
|
28998
|
+
var botEnv = (name = BOT.name, at) => ({
|
|
28999
|
+
GIT_AUTHOR_NAME: name,
|
|
29000
|
+
GIT_AUTHOR_EMAIL: BOT.email,
|
|
29001
|
+
GIT_COMMITTER_NAME: BOT.name,
|
|
29002
|
+
GIT_COMMITTER_EMAIL: BOT.email,
|
|
29003
|
+
...at ? { GIT_AUTHOR_DATE: at, GIT_COMMITTER_DATE: at } : {}
|
|
29004
|
+
});
|
|
29005
|
+
var LIVE_REF = "refs/deployai/live";
|
|
29006
|
+
var HISTORY_MAX = 20;
|
|
29007
|
+
async function recordHistory(root, ctx, projectId, behind) {
|
|
29008
|
+
const t = messages(root);
|
|
29009
|
+
const gitDir = join17(root, ".git");
|
|
29010
|
+
if (!existsSync15(gitDir)) return null;
|
|
29011
|
+
const run = (args, env = {}) => spawnSync3("git", [`--git-dir=${gitDir}`, ...args], { encoding: "utf8", env: { ...process.env, ...env } });
|
|
29012
|
+
let tip = run(["rev-parse", "-q", "--verify", LIVE_REF]).stdout.trim() || null;
|
|
29013
|
+
const lastNumber = tip ? Number(/^v(\d+)/.exec(run(["log", "-1", "--format=%s", LIVE_REF]).stdout.trim())?.[1] ?? 0) : 0;
|
|
29014
|
+
const todo = behind.newer.filter((v) => v.number > lastNumber).slice(-HISTORY_MAX);
|
|
29015
|
+
let added = 0;
|
|
29016
|
+
for (const v of todo) {
|
|
29017
|
+
const gz = await fetchSource(root, ctx, projectId, v.number).catch(() => null);
|
|
29018
|
+
if (!gz) continue;
|
|
29019
|
+
const tree = mkdtempSync(join17(tmpdir(), "deployai-history-"));
|
|
29020
|
+
const index = join17(tmpdir(), `deployai-index-${process.pid}-${v.number}`);
|
|
29021
|
+
try {
|
|
29022
|
+
extractInto(gz, tree, t("pullDamaged"));
|
|
29023
|
+
const env = { GIT_INDEX_FILE: index };
|
|
29024
|
+
if (run([`--work-tree=${tree}`, "add", "-A"], env).status !== 0) continue;
|
|
29025
|
+
const id = run(["write-tree"], env).stdout.trim();
|
|
29026
|
+
if (!id) continue;
|
|
29027
|
+
const c = run(["commit-tree", id, ...tip ? ["-p", tip] : [], "-m", `v${v.number}: ${v.message || "update"}`], botEnv(`${v.by ?? "Someone"} via DeployAI`, v.at));
|
|
29028
|
+
const sha2 = c.stdout.trim();
|
|
29029
|
+
if (c.status !== 0 || !sha2) continue;
|
|
29030
|
+
tip = sha2;
|
|
29031
|
+
added++;
|
|
29032
|
+
} finally {
|
|
29033
|
+
rmSync3(tree, { recursive: true, force: true });
|
|
29034
|
+
rmSync3(index, { force: true });
|
|
29035
|
+
}
|
|
29036
|
+
}
|
|
29037
|
+
if (!tip) return null;
|
|
29038
|
+
run(["update-ref", LIVE_REF, tip]);
|
|
29039
|
+
return { sha: tip, added };
|
|
29040
|
+
}
|
|
29041
|
+
function printBroughtIn(root, r, behind) {
|
|
29042
|
+
const t = messages(root);
|
|
29043
|
+
const names = behindNames(behind);
|
|
29044
|
+
out(names ? t("caughtUp", { v: r.live, names, taken: r.taken, merged: r.merged }) : t("syncDone", { v: r.live, taken: r.taken, merged: r.merged }));
|
|
29045
|
+
if (r.history) out(t("historyAdded", { n: r.history }));
|
|
29046
|
+
if (r.conflicts.length) {
|
|
28601
29047
|
out();
|
|
28602
29048
|
out(t("syncConflicts"));
|
|
28603
|
-
for (const c of
|
|
29049
|
+
for (const c of r.conflicts) out(` - ${c.path}: ${t(`syncWhy_${c.why}`, { live: `${DEPLOYAI_DIR}/sync/${c.path}.live` })}`);
|
|
29050
|
+
}
|
|
29051
|
+
for (const [mine, theirs] of r.clashes) out(t("syncClash", { mine, theirs }));
|
|
29052
|
+
}
|
|
29053
|
+
async function syncCommand(root, ctx) {
|
|
29054
|
+
const t = messages(root);
|
|
29055
|
+
const project = readProject(root);
|
|
29056
|
+
if (!project?.projectId) throw new CliError(t("pullNotLinked"), 1, "not_linked");
|
|
29057
|
+
requireToken(ctx);
|
|
29058
|
+
if (git2(root, ["--version"]).status !== 0) throw new CliError(t("syncNoGit"), 1, "usage");
|
|
29059
|
+
if (!project.builtOn) throw new CliError(t("syncNoBase"), 1, "usage");
|
|
29060
|
+
const projectId = project.projectId;
|
|
29061
|
+
const work = await checkWork(ctx, root, projectId, project.builtOn);
|
|
29062
|
+
const others = othersLine(root, work.others);
|
|
29063
|
+
if (!work.answered) throw new CliError(messages()("unreachable", { url: ctx.apiUrl }), 1, "network");
|
|
29064
|
+
if (!work.behind) {
|
|
29065
|
+
out(t("syncUpToDate", { v: project.builtOn }));
|
|
29066
|
+
if (others) out(others);
|
|
29067
|
+
return;
|
|
28604
29068
|
}
|
|
28605
|
-
|
|
29069
|
+
const r = await bringIn(root, ctx, projectId, work.behind);
|
|
29070
|
+
printBroughtIn(root, r, work.behind);
|
|
28606
29071
|
if (others) {
|
|
28607
29072
|
out();
|
|
28608
29073
|
out(others);
|
|
28609
29074
|
}
|
|
28610
29075
|
out();
|
|
28611
|
-
out(
|
|
28612
|
-
if (
|
|
29076
|
+
out(r.conflicts.length || r.clashes.length ? t("syncNextConflicts") : t("syncNext"));
|
|
29077
|
+
if (r.conflicts.length || r.clashes.length) {
|
|
29078
|
+
blockedBy("sync_conflicts");
|
|
29079
|
+
process.exitCode = 1;
|
|
29080
|
+
}
|
|
28613
29081
|
}
|
|
28614
29082
|
function syncLeftovers(root) {
|
|
28615
29083
|
let state;
|
|
@@ -28751,6 +29219,10 @@ function printStatus(root, ctx, projectId, s) {
|
|
|
28751
29219
|
])
|
|
28752
29220
|
);
|
|
28753
29221
|
printClosedHere(root, s);
|
|
29222
|
+
if (s.githubPull) {
|
|
29223
|
+
out();
|
|
29224
|
+
out(cliLang(root) === "he" ? s.githubPull.he : s.githubPull.en);
|
|
29225
|
+
}
|
|
28754
29226
|
if (s.latest?.goingLive) {
|
|
28755
29227
|
out();
|
|
28756
29228
|
out(t("goingLive", { n: s.latest.number }));
|
|
@@ -28929,7 +29401,7 @@ async function prepare(root, ctx, maxBytes) {
|
|
|
28929
29401
|
if (!analysis.compatible) {
|
|
28930
29402
|
await runCheck(root, { ...ctx, config: { ...ctx.config, telemetry: false } }, {});
|
|
28931
29403
|
out();
|
|
28932
|
-
throw new CliError(messages(root)("deployBlocked"), 1, "blocked");
|
|
29404
|
+
throw new CliError(messages(root)("deployBlocked"), 1, "blocked", "check_blocked");
|
|
28933
29405
|
}
|
|
28934
29406
|
const t = messages(root);
|
|
28935
29407
|
const left = syncLeftovers(root);
|
|
@@ -28960,14 +29432,35 @@ function addTool(form, ctx, model) {
|
|
|
28960
29432
|
const m = toDeployModel(model) ?? deployModelFromEnv(process.env);
|
|
28961
29433
|
if (m) form.append("model", m);
|
|
28962
29434
|
}
|
|
29435
|
+
async function catchUp(root, ctx, projectId, builtOn) {
|
|
29436
|
+
const t = messages(root);
|
|
29437
|
+
const work = await checkWork(ctx, root, projectId, builtOn);
|
|
29438
|
+
const others = othersLine(root, work.others);
|
|
29439
|
+
if (others) out(others);
|
|
29440
|
+
const behind = work.behind;
|
|
29441
|
+
if (!behind) return null;
|
|
29442
|
+
if (!behind.base) {
|
|
29443
|
+
out(t("behindNoBase", { v: behind.live }));
|
|
29444
|
+
return null;
|
|
29445
|
+
}
|
|
29446
|
+
const r = await bringIn(root, ctx, projectId, behind);
|
|
29447
|
+
printBroughtIn(root, r, behind);
|
|
29448
|
+
out();
|
|
29449
|
+
if (r.conflicts.length || r.clashes.length) throw new CliError(t("caughtUpConflicts"), 1, "sync_conflicts");
|
|
29450
|
+
return r;
|
|
29451
|
+
}
|
|
28963
29452
|
async function deployVersion(root, ctx, opts, guest) {
|
|
28964
29453
|
requireToken(ctx);
|
|
28965
29454
|
const project = readProject(root);
|
|
28966
29455
|
if (!project?.projectId) throw new CliError(messages(root)("notLinked"), 1, "not_linked");
|
|
28967
29456
|
const message = (opts.message ?? "").trim() || "update";
|
|
28968
|
-
const { archive, info, hasSql } = await prepare(root, ctx, guest ? GUEST_MAX_BYTES : Number.POSITIVE_INFINITY);
|
|
28969
29457
|
const t = messages(root);
|
|
28970
|
-
const
|
|
29458
|
+
const caught = guest ? null : await catchUp(root, ctx, project.projectId, project.builtOn);
|
|
29459
|
+
if (caught) project.builtOn = caught.live;
|
|
29460
|
+
const { archive, info, hasSql } = await prepare(root, ctx, guest ? GUEST_MAX_BYTES : Number.POSITIVE_INFINITY);
|
|
29461
|
+
if (caught && opts.live) out(t("caughtUpNoLive"));
|
|
29462
|
+
const hold = Boolean(opts.hold) || Boolean(caught);
|
|
29463
|
+
if (caught) opts = { ...opts, live: false };
|
|
28971
29464
|
if (hold && (opts.live || guest)) throw new CliError(t(guest ? "holdGuest" : "holdAndLive"), 1, "usage");
|
|
28972
29465
|
const wait = opts.live || opts.wait !== false;
|
|
28973
29466
|
let live = Boolean(opts.live);
|
|
@@ -28990,7 +29483,7 @@ async function deployVersion(root, ctx, opts, guest) {
|
|
|
28990
29483
|
const res = await apiRequest(ctx, "/api/cli/deploy", DeployResponse, { method: "POST", form, timeoutMs: 5 * 6e4 });
|
|
28991
29484
|
if (!guest) {
|
|
28992
29485
|
updateProject(root, { builtOn: res.number });
|
|
28993
|
-
await touchWork(ctx, root, project.projectId);
|
|
29486
|
+
await touchWork(ctx, root, project.projectId, res.number);
|
|
28994
29487
|
}
|
|
28995
29488
|
out();
|
|
28996
29489
|
if (guest) {
|
|
@@ -29009,7 +29502,8 @@ async function deployVersion(root, ctx, opts, guest) {
|
|
|
29009
29502
|
);
|
|
29010
29503
|
pageHint(res, root);
|
|
29011
29504
|
out();
|
|
29012
|
-
if (
|
|
29505
|
+
if (caught) out(t("caughtUpPreview", { n: res.number }));
|
|
29506
|
+
else if (hold) out(t("holdOn", { n: res.number }));
|
|
29013
29507
|
if (!wait) {
|
|
29014
29508
|
out(t("nextStep"));
|
|
29015
29509
|
out(t("followBuild"));
|
|
@@ -29054,6 +29548,7 @@ async function afterBuild(root, ctx, projectId, n2, o) {
|
|
|
29054
29548
|
}
|
|
29055
29549
|
if (ready && built.latest?.preview) {
|
|
29056
29550
|
if (!await homeAnswers(root, built.latest.preview, o.homeRetryMs)) {
|
|
29551
|
+
blockedBy("preview_down");
|
|
29057
29552
|
process.exitCode = 1;
|
|
29058
29553
|
return;
|
|
29059
29554
|
}
|
|
@@ -29088,7 +29583,10 @@ async function afterBuild(root, ctx, projectId, n2, o) {
|
|
|
29088
29583
|
return;
|
|
29089
29584
|
}
|
|
29090
29585
|
printStatus(root, ctx, projectId, built);
|
|
29091
|
-
if (built.latest?.number === n2 && built.latest.status === "failed")
|
|
29586
|
+
if (built.latest?.number === n2 && built.latest.status === "failed") {
|
|
29587
|
+
blockedBy("build_failed");
|
|
29588
|
+
process.exitCode = 1;
|
|
29589
|
+
}
|
|
29092
29590
|
return;
|
|
29093
29591
|
}
|
|
29094
29592
|
await apiRequest(ctx, "/api/cli/promote", null, { method: "POST", body: { projectId, number: n2, ...approval } });
|
|
@@ -29107,6 +29605,7 @@ async function afterBuild(root, ctx, projectId, n2, o) {
|
|
|
29107
29605
|
return;
|
|
29108
29606
|
}
|
|
29109
29607
|
printStatus(root, ctx, projectId, after);
|
|
29608
|
+
blockedBy("not_live");
|
|
29110
29609
|
process.exitCode = 1;
|
|
29111
29610
|
}
|
|
29112
29611
|
async function readPreview(url2) {
|
|
@@ -29214,6 +29713,118 @@ async function claimCommand(root, ctx, opts) {
|
|
|
29214
29713
|
out(t("claimLink", { url: url2 }));
|
|
29215
29714
|
}
|
|
29216
29715
|
|
|
29716
|
+
// src/commands/logs.ts
|
|
29717
|
+
var REFUSALS = {
|
|
29718
|
+
site_deleted: "siteDeleted",
|
|
29719
|
+
not_on_site: "notOnSite",
|
|
29720
|
+
view_only: "viewOnly",
|
|
29721
|
+
not_found: "notFound",
|
|
29722
|
+
logs_not_live: "logsNotLive",
|
|
29723
|
+
logs_site_off: "logsSiteOff",
|
|
29724
|
+
logs_unavailable: "logsUnavailable"
|
|
29725
|
+
};
|
|
29726
|
+
var two = (n2) => String(n2).padStart(2, "0");
|
|
29727
|
+
var clock = (at) => {
|
|
29728
|
+
const d = new Date(at);
|
|
29729
|
+
return `${two(d.getHours())}:${two(d.getMinutes())}:${two(d.getSeconds())}`;
|
|
29730
|
+
};
|
|
29731
|
+
var formatLogLine = (l) => `${clock(l.at)} ${l.level.toUpperCase().padEnd(5)} ${l.text}`;
|
|
29732
|
+
function readEvents(buffer) {
|
|
29733
|
+
const events = [];
|
|
29734
|
+
const parts2 = buffer.replace(/\r\n/g, "\n").split("\n\n");
|
|
29735
|
+
const rest = parts2.pop() ?? "";
|
|
29736
|
+
for (const block of parts2) {
|
|
29737
|
+
let event = "message";
|
|
29738
|
+
const data = [];
|
|
29739
|
+
for (const line of block.split("\n")) {
|
|
29740
|
+
if (line.startsWith(":")) continue;
|
|
29741
|
+
if (line.startsWith("event:")) event = line.slice(6).trim();
|
|
29742
|
+
else if (line.startsWith("data:")) data.push(line.slice(5).replace(/^ /, ""));
|
|
29743
|
+
}
|
|
29744
|
+
if (data.length) events.push({ event, data: data.join("\n") });
|
|
29745
|
+
}
|
|
29746
|
+
return { events, rest };
|
|
29747
|
+
}
|
|
29748
|
+
async function logsCommand(root, ctx, opts) {
|
|
29749
|
+
const token = requireToken(ctx);
|
|
29750
|
+
const projectId = linkedProjectId(root);
|
|
29751
|
+
const t = messages(root);
|
|
29752
|
+
const say = opts.json ? err : out;
|
|
29753
|
+
const abort = new AbortController();
|
|
29754
|
+
let stopped = false;
|
|
29755
|
+
const onSigint = () => {
|
|
29756
|
+
stopped = true;
|
|
29757
|
+
abort.abort();
|
|
29758
|
+
};
|
|
29759
|
+
process.once("SIGINT", onSigint);
|
|
29760
|
+
try {
|
|
29761
|
+
const url2 = `${ctx.apiUrl}/api/cli/logs?projectId=${encodeURIComponent(projectId)}${opts.errors ? "&errors=1" : ""}`;
|
|
29762
|
+
const headersWait = setTimeout(() => abort.abort(), 3e4);
|
|
29763
|
+
let res;
|
|
29764
|
+
try {
|
|
29765
|
+
res = await fetch(url2, { headers: { Authorization: `Bearer ${token}`, Accept: "text/event-stream", "User-Agent": userAgent(ctx.config) }, signal: abort.signal });
|
|
29766
|
+
} catch {
|
|
29767
|
+
if (stopped) return say(t("logsStopped"));
|
|
29768
|
+
throw new CliError(t("unreachable", { url: ctx.apiUrl }), 1, "network");
|
|
29769
|
+
} finally {
|
|
29770
|
+
clearTimeout(headersWait);
|
|
29771
|
+
}
|
|
29772
|
+
if (res.status === 401) throw new CliError(t("sessionExpired"), 1, "auth");
|
|
29773
|
+
if (!res.ok || !res.body) {
|
|
29774
|
+
const parsed = ApiError.safeParse(await res.json().catch(() => null));
|
|
29775
|
+
const code = parsed.success ? parsed.data.error : `HTTP ${res.status}`;
|
|
29776
|
+
const key2 = REFUSALS[code];
|
|
29777
|
+
throw new CliError(key2 ? t(key2) : t("apiError", { code }), 1, code.startsWith("logs_") ? code : res.status === 403 ? "forbidden" : res.status === 404 ? "not_found" : "api");
|
|
29778
|
+
}
|
|
29779
|
+
const reader = res.body.getReader();
|
|
29780
|
+
const decoder = new TextDecoder();
|
|
29781
|
+
let buffer = "";
|
|
29782
|
+
let ended = null;
|
|
29783
|
+
for (; ; ) {
|
|
29784
|
+
let chunk;
|
|
29785
|
+
try {
|
|
29786
|
+
chunk = await reader.read();
|
|
29787
|
+
} catch {
|
|
29788
|
+
break;
|
|
29789
|
+
}
|
|
29790
|
+
if (chunk.done) break;
|
|
29791
|
+
buffer += decoder.decode(chunk.value, { stream: true });
|
|
29792
|
+
const { events, rest } = readEvents(buffer);
|
|
29793
|
+
buffer = rest;
|
|
29794
|
+
for (const e3 of events) {
|
|
29795
|
+
let data;
|
|
29796
|
+
try {
|
|
29797
|
+
data = JSON.parse(e3.data);
|
|
29798
|
+
} catch {
|
|
29799
|
+
continue;
|
|
29800
|
+
}
|
|
29801
|
+
if (e3.event === "ready") {
|
|
29802
|
+
const r = LogsReady.safeParse(data);
|
|
29803
|
+
if (!r.success) continue;
|
|
29804
|
+
say(t("logsWatching", { name: r.data.name, url: r.data.url ?? "-", time: clock(r.data.until).slice(0, 5) }));
|
|
29805
|
+
if (opts.errors) say(t("logsErrorsOnly"));
|
|
29806
|
+
say(t("logsNote"));
|
|
29807
|
+
} else if (e3.event === "line") {
|
|
29808
|
+
const l = LogLine.safeParse(data);
|
|
29809
|
+
if (l.success) out(opts.json ? JSON.stringify(l.data) : formatLogLine(l.data));
|
|
29810
|
+
} else if (e3.event === "end") {
|
|
29811
|
+
const r = LogsEnd.safeParse(data);
|
|
29812
|
+
if (r.success) ended = r.data.reason;
|
|
29813
|
+
}
|
|
29814
|
+
}
|
|
29815
|
+
if (ended) break;
|
|
29816
|
+
}
|
|
29817
|
+
if (stopped) return say(t("logsStopped"));
|
|
29818
|
+
if (ended === "time") return say(t("logsEndTime"));
|
|
29819
|
+
if (ended === "replaced") return say(t("logsEndReplaced"));
|
|
29820
|
+
if (ended === "cloudflare") throw new CliError(t("logsEndCloudflare"), 1, "logs_ended");
|
|
29821
|
+
throw new CliError(t("logsEndClosed"), 1, "logs_ended");
|
|
29822
|
+
} finally {
|
|
29823
|
+
process.removeListener("SIGINT", onSigint);
|
|
29824
|
+
abort.abort();
|
|
29825
|
+
}
|
|
29826
|
+
}
|
|
29827
|
+
|
|
29217
29828
|
// src/commands/requests.ts
|
|
29218
29829
|
var OUTCOME = {
|
|
29219
29830
|
site: "reached the site",
|
|
@@ -29342,7 +29953,7 @@ async function startCommand(cwd, ctx, id, opts = {}) {
|
|
|
29342
29953
|
out(messages(process.cwd())("startLoginFirst"));
|
|
29343
29954
|
out(START_LOGIN_WAIT_LINE);
|
|
29344
29955
|
out();
|
|
29345
|
-
await sendTelemetryEvent(ctxNow, buildTelemetryEvent(ctxNow.config.installId, "start", "blocked"));
|
|
29956
|
+
await sendTelemetryEvent(ctxNow, buildTelemetryEvent(ctxNow.config.installId, "start", "blocked", void 0, { errorLine: "login_wait" }));
|
|
29346
29957
|
await loginCommand(ctxNow, { pollMs: opts.pollMs, quiet: true }).catch((e3) => {
|
|
29347
29958
|
if (e3 instanceof CliError && e3.category === "auth_expired") throw new CliError(messages(process.cwd())("startLoginExpired", { id: key2 }), 1, "auth_expired");
|
|
29348
29959
|
throw e3;
|
|
@@ -29357,7 +29968,7 @@ async function startCommand(cwd, ctx, id, opts = {}) {
|
|
|
29357
29968
|
out(t0("startOtherAccount", { email: ctxNow.config.email ?? "?", maker }));
|
|
29358
29969
|
out(START_LOGIN_WAIT_LINE);
|
|
29359
29970
|
out();
|
|
29360
|
-
await sendTelemetryEvent(ctxNow, buildTelemetryEvent(ctxNow.config.installId, "start", "blocked", "other_account"));
|
|
29971
|
+
await sendTelemetryEvent(ctxNow, buildTelemetryEvent(ctxNow.config.installId, "start", "blocked", void 0, { errorLine: "other_account" }));
|
|
29361
29972
|
await loginCommand(ctxNow, { pollMs: opts.pollMs, quiet: true, force: true }).catch((e3) => {
|
|
29362
29973
|
if (e3 instanceof CliError && e3.category === "auth_expired") throw new CliError(t0("startLoginExpired", { id: key2 }), 1, "auth_expired");
|
|
29363
29974
|
throw e3;
|
|
@@ -29446,8 +30057,20 @@ ${choices.brief}
|
|
|
29446
30057
|
if (root !== here) out(t(update ? "startUpdateFolder" : "startNewFolder", { dir: relative3(here, root) }));
|
|
29447
30058
|
for (const line of done) out(`- ${line}`);
|
|
29448
30059
|
if (choices.projectId && signedIn) {
|
|
29449
|
-
const
|
|
30060
|
+
const builtOn = readProject(root)?.builtOn;
|
|
30061
|
+
const work = await checkWork(ctxNow, root, choices.projectId, builtOn);
|
|
30062
|
+
const others = othersLine(root, work.others);
|
|
29450
30063
|
if (others) out(`- ${others}`);
|
|
30064
|
+
if (work.behind && !pullNow) {
|
|
30065
|
+
if (!work.behind.base) out(`- ${t("behindNoBase", { v: work.behind.live })}`);
|
|
30066
|
+
else {
|
|
30067
|
+
try {
|
|
30068
|
+
printBroughtIn(root, await bringIn(root, ctxNow, choices.projectId, work.behind), work.behind);
|
|
30069
|
+
} catch (e3) {
|
|
30070
|
+
out(`- ${e3 instanceof Error ? e3.message : String(e3)}`);
|
|
30071
|
+
}
|
|
30072
|
+
}
|
|
30073
|
+
}
|
|
29451
30074
|
}
|
|
29452
30075
|
out();
|
|
29453
30076
|
const lines = [];
|
|
@@ -29667,7 +30290,8 @@ async function addonDoneCommand(root, ctx, runId, opts) {
|
|
|
29667
30290
|
|
|
29668
30291
|
// src/commands/speed.ts
|
|
29669
30292
|
import { spawn as spawn3 } from "child_process";
|
|
29670
|
-
import {
|
|
30293
|
+
import { createHash as createHash4 } from "crypto";
|
|
30294
|
+
import { mkdirSync as mkdirSync11, mkdtempSync as mkdtempSync2, readFileSync as readFileSync14, rmSync as rmSync4, writeFileSync as writeFileSync17 } from "fs";
|
|
29671
30295
|
import { tmpdir as tmpdir2 } from "os";
|
|
29672
30296
|
import { join as join21 } from "path";
|
|
29673
30297
|
var ms = (v) => v >= 1e3 ? `${(v / 1e3).toFixed(1)} s` : `${Math.round(v)} ms`;
|
|
@@ -29705,9 +30329,9 @@ async function localSpeed(url2, strategy, run = runLighthouse, browser = findBro
|
|
|
29705
30329
|
rmSync4(dir, { recursive: true, force: true, maxRetries: 3 });
|
|
29706
30330
|
}
|
|
29707
30331
|
}
|
|
29708
|
-
function printReport(r, strategy,
|
|
30332
|
+
function printReport(r, strategy, local2) {
|
|
29709
30333
|
out();
|
|
29710
|
-
out(`Lab test (one simulated ${strategy} load${
|
|
30334
|
+
out(`Lab test (one simulated ${strategy} load${local2 ? " on this computer" : ""}), Lighthouse ${r.lighthouseVersion ?? ""}`);
|
|
29711
30335
|
out(` Performance score ${r.scores.performance ?? "?"}`);
|
|
29712
30336
|
for (const m of r.lab) out(` ${m.id.padEnd(26)} ${m.display ?? "?"}`);
|
|
29713
30337
|
out();
|
|
@@ -29715,7 +30339,7 @@ function printReport(r, strategy, local) {
|
|
|
29715
30339
|
out(`Real visitors, last 28 days (${r.field.scope === "url" ? "this page" : "whole site"}, 75th percentile)`);
|
|
29716
30340
|
for (const f of r.field.metrics) out(` ${f.id.toUpperCase().padEnd(6)} ${(f.id === "cls" ? f.p75.toFixed(2) : ms(f.p75)).padEnd(10)} ${f.rating.replace("_", " ")}`);
|
|
29717
30341
|
} else {
|
|
29718
|
-
out(
|
|
30342
|
+
out(local2 ? "Real visitors: only Google has these, so this test does not show them." : "Real visitors: Google has not enough data for this site yet.");
|
|
29719
30343
|
}
|
|
29720
30344
|
if (r.opportunities.length) {
|
|
29721
30345
|
out();
|
|
@@ -29723,6 +30347,24 @@ function printReport(r, strategy, local) {
|
|
|
29723
30347
|
for (const a of r.opportunities.slice(0, 8)) out(` - ${a.title}${a.display ? ` (${a.display})` : a.savingsMs ? ` (about ${ms(a.savingsMs)})` : ""}`);
|
|
29724
30348
|
}
|
|
29725
30349
|
}
|
|
30350
|
+
var CACHE_MS = 10 * 6e4;
|
|
30351
|
+
var cacheFile = (dir, url2, strategy) => join21(dir, `${createHash4("sha256").update(`${strategy} ${url2}`).digest("hex").slice(0, 24)}.json`);
|
|
30352
|
+
function readCache(dir, url2, strategy) {
|
|
30353
|
+
try {
|
|
30354
|
+
return JSON.parse(readFileSync14(cacheFile(dir, url2, strategy), "utf8"));
|
|
30355
|
+
} catch {
|
|
30356
|
+
return null;
|
|
30357
|
+
}
|
|
30358
|
+
}
|
|
30359
|
+
function writeCache(dir, url2, strategy, c) {
|
|
30360
|
+
try {
|
|
30361
|
+
mkdirSync11(dir, { recursive: true });
|
|
30362
|
+
writeFileSync17(cacheFile(dir, url2, strategy), JSON.stringify(c));
|
|
30363
|
+
} catch {
|
|
30364
|
+
}
|
|
30365
|
+
}
|
|
30366
|
+
var minutes = (msLeft) => Math.max(1, Math.ceil(msLeft / 6e4));
|
|
30367
|
+
var waitText = (s) => s >= 7200 ? `in about ${Math.ceil(s / 3600)} hours` : `in about ${minutes(s * 1e3)} minutes`;
|
|
29726
30368
|
async function speedCommand(ctx, url2, opts, deps = {}) {
|
|
29727
30369
|
requireToken(ctx);
|
|
29728
30370
|
const strategy = opts.desktop ? "desktop" : "mobile";
|
|
@@ -29733,7 +30375,32 @@ async function speedCommand(ctx, url2, opts, deps = {}) {
|
|
|
29733
30375
|
} catch {
|
|
29734
30376
|
throw new CliError(`Not an address: ${url2}. Use the full address, for example https://example.com/`, 1, "usage");
|
|
29735
30377
|
}
|
|
29736
|
-
const
|
|
30378
|
+
const dir = deps.cacheDir ?? join21(tmpdir2(), "deployai-speed-cache");
|
|
30379
|
+
const now = deps.now ?? Date.now;
|
|
30380
|
+
const cached2 = readCache(dir, page3, strategy);
|
|
30381
|
+
if (cached2 && now() - cached2.at < CACHE_MS) {
|
|
30382
|
+
out(`Showing the result from ${minutes(now() - cached2.at)} minutes ago: a new test of the same page runs after ${minutes(CACHE_MS - (now() - cached2.at))} more minutes.`);
|
|
30383
|
+
printReport(cached2.report, strategy, cached2.local);
|
|
30384
|
+
if (cached2.link) {
|
|
30385
|
+
out();
|
|
30386
|
+
out(`Full report: ${cached2.link}`);
|
|
30387
|
+
}
|
|
30388
|
+
return;
|
|
30389
|
+
}
|
|
30390
|
+
const started = await apiRequest(ctx, "/api/cli/speed", null, { method: "POST", body: { url: url2, strategy } });
|
|
30391
|
+
if (started.limited) {
|
|
30392
|
+
const when = waitText(started.retryAfter ?? 3600);
|
|
30393
|
+
if (cached2 || started.last) {
|
|
30394
|
+
out(`Too many speed tests for now. Try again ${when}. Here is the last result of this page${started.last ? ` (${started.last.at.slice(0, 16).replace("T", " ")} UTC)` : ""}.`);
|
|
30395
|
+
if (cached2) printReport(cached2.report, strategy, cached2.local);
|
|
30396
|
+
out();
|
|
30397
|
+
out(`Full report: ${started.last ? `${ctx.apiUrl}/tools/r/${started.last.id}` : cached2?.link ?? ""}`);
|
|
30398
|
+
return;
|
|
30399
|
+
}
|
|
30400
|
+
throw new CliError(`Too many speed tests for now, and this page has no earlier result. Try again ${when}, or go on without speed numbers and tell the owner in one line.`, 1, "speed_limited");
|
|
30401
|
+
}
|
|
30402
|
+
const id = started.id;
|
|
30403
|
+
if (!id) return local(page3, strategy, deps, dir, now);
|
|
29737
30404
|
out(`Testing ${url2} (${strategy}) with Google PageSpeed Insights. This usually takes 15 to 40 seconds...`);
|
|
29738
30405
|
const deadline = Date.now() + (deps.waitMs ?? 15e4);
|
|
29739
30406
|
let run = null;
|
|
@@ -29743,17 +30410,22 @@ async function speedCommand(ctx, url2, opts, deps = {}) {
|
|
|
29743
30410
|
if (run.status === "done" || run.status === "failed") break;
|
|
29744
30411
|
}
|
|
29745
30412
|
if (run?.status === "done" && run.result) {
|
|
30413
|
+
writeCache(dir, page3, strategy, { at: now(), report: run.result, local: false, link: `${ctx.apiUrl}/tools/r/${id}` });
|
|
29746
30414
|
printReport(run.result, strategy, false);
|
|
29747
30415
|
out();
|
|
29748
30416
|
out(`Full report: ${ctx.apiUrl}/tools/r/${id}`);
|
|
29749
30417
|
return;
|
|
29750
30418
|
}
|
|
29751
30419
|
if (run?.error === "psi_unreachable") throw new CliError("Google could not load this page. Check that the address opens and is public, then try again.", 1, "speed_failed");
|
|
30420
|
+
return local(page3, strategy, deps, dir, now);
|
|
30421
|
+
}
|
|
30422
|
+
async function local(page3, strategy, deps, dir, now) {
|
|
29752
30423
|
out("Google's test is not available right now, so Lighthouse is running on this computer. This takes about a minute...");
|
|
29753
30424
|
const browser = deps.browser === void 0 ? findBrowser() : deps.browser;
|
|
29754
30425
|
if (!browser) throw new CliError("The speed test could not run: Google's test is not available, and no Chrome or Edge was found on this computer (looked in Program Files and the user's apps). If one is installed elsewhere, set CHROME_PATH to its path and run speed again; else go on without speed numbers and tell the owner in one line.", 1, "speed_failed");
|
|
29755
30426
|
const report2 = await localSpeed(page3, strategy, deps.run, browser);
|
|
29756
30427
|
if (!report2) throw new CliError(`The speed test could not finish: Lighthouse started with ${browser} and gave no result. Its first run downloads Lighthouse, which can take a few minutes, and it needs Node 22.19 or newer. Run speed again once; if it fails again, go on without speed numbers and tell the owner in one line.`, 1, "speed_failed");
|
|
30428
|
+
writeCache(dir, page3, strategy, { at: now(), report: report2, local: true, link: null });
|
|
29757
30429
|
printReport(report2, strategy, true);
|
|
29758
30430
|
out();
|
|
29759
30431
|
out("Measured on this computer, so compare it only with numbers measured the same way.");
|
|
@@ -29761,7 +30433,7 @@ async function speedCommand(ctx, url2, opts, deps = {}) {
|
|
|
29761
30433
|
|
|
29762
30434
|
// src/commands/shot.ts
|
|
29763
30435
|
import { spawn as spawn4 } from "child_process";
|
|
29764
|
-
import { existsSync as existsSync18, mkdirSync as
|
|
30436
|
+
import { existsSync as existsSync18, mkdirSync as mkdirSync12, readFileSync as readFileSync15, rmSync as rmSync5, writeFileSync as writeFileSync18 } from "fs";
|
|
29765
30437
|
import { tmpdir as tmpdir3 } from "os";
|
|
29766
30438
|
import { join as join22, resolve as resolve6 } from "path";
|
|
29767
30439
|
var SHOT_SIZES = [{ name: "phone", size: "390,844" }, { name: "desktop", size: "1440,900" }];
|
|
@@ -29828,9 +30500,9 @@ async function shotCommand(root, address, opts = {}, run = runNpx) {
|
|
|
29828
30500
|
if (!opts.webkit && !browser) throw new CliError("No Chrome or Edge was found on this computer. Install Chrome, set CHROME_PATH to its path, or run shot again with --webkit (it downloads Safari's engine first).", 1, "no_browser");
|
|
29829
30501
|
if (opts.webkit && await run(["--yes", PLAYWRIGHT, "install", "webkit"]) !== 0) throw new CliError("Safari's engine could not be installed. Run shot without --webkit to use Chrome or Edge.", 1, "shot_failed");
|
|
29830
30502
|
const dir = resolve6(root, opts.out ?? join22(".deployai", "shots"));
|
|
29831
|
-
|
|
30503
|
+
mkdirSync12(dir, { recursive: true });
|
|
29832
30504
|
const taker = join22(tmpdir3(), "deployai-shot.cjs");
|
|
29833
|
-
|
|
30505
|
+
writeFileSync18(taker, TAKER);
|
|
29834
30506
|
const saved = [];
|
|
29835
30507
|
for (const s of SHOT_SIZES) {
|
|
29836
30508
|
const file2 = join22(dir, shotName(url2.toString(), s.name));
|
|
@@ -29851,7 +30523,7 @@ async function shotCommand(root, address, opts = {}, run = runNpx) {
|
|
|
29851
30523
|
|
|
29852
30524
|
// src/commands/images.ts
|
|
29853
30525
|
import { spawnSync as spawnSync5 } from "child_process";
|
|
29854
|
-
import { existsSync as existsSync19, mkdirSync as
|
|
30526
|
+
import { existsSync as existsSync19, mkdirSync as mkdirSync13, readdirSync as readdirSync6, statSync as statSync3, writeFileSync as writeFileSync19 } from "fs";
|
|
29855
30527
|
import { createRequire } from "module";
|
|
29856
30528
|
import { homedir as homedir3 } from "os";
|
|
29857
30529
|
import { extname, join as join23, relative as relative4, resolve as resolve7 } from "path";
|
|
@@ -29881,8 +30553,8 @@ function outputsFor(file2, width) {
|
|
|
29881
30553
|
function loadSharp() {
|
|
29882
30554
|
const dir = join23(homedir3(), ".deployai", "tools", "sharp");
|
|
29883
30555
|
if (!existsSync19(join23(dir, "node_modules", "sharp"))) {
|
|
29884
|
-
|
|
29885
|
-
if (!existsSync19(join23(dir, "package.json")))
|
|
30556
|
+
mkdirSync13(dir, { recursive: true });
|
|
30557
|
+
if (!existsSync19(join23(dir, "package.json"))) writeFileSync19(join23(dir, "package.json"), '{"private":true}');
|
|
29886
30558
|
out("Getting the image tool once (it stays outside the site)...");
|
|
29887
30559
|
const r = spawnSync5(process.platform === "win32" ? "npm.cmd" : "npm", ["install", SHARP, "--no-audit", "--no-fund", "--silent"], { cwd: dir, stdio: "ignore", shell: process.platform === "win32" });
|
|
29888
30560
|
if (r.status !== 0) throw new CliError("The image tool could not be installed. Check the internet connection and run optimize again.", 1, "images_failed");
|
|
@@ -29923,8 +30595,8 @@ async function imagesCommand(root, folder, sharp = loadSharp) {
|
|
|
29923
30595
|
}
|
|
29924
30596
|
|
|
29925
30597
|
// src/commands/blocks.ts
|
|
29926
|
-
import { createHash as
|
|
29927
|
-
import { existsSync as existsSync20, mkdirSync as
|
|
30598
|
+
import { createHash as createHash5 } from "crypto";
|
|
30599
|
+
import { existsSync as existsSync20, mkdirSync as mkdirSync14, readFileSync as readFileSync16, writeFileSync as writeFileSync20 } from "fs";
|
|
29928
30600
|
import { dirname as dirname7, resolve as resolve8, sep as sep3 } from "path";
|
|
29929
30601
|
import { gunzipSync as gunzipSync3 } from "zlib";
|
|
29930
30602
|
var BLOCKS = [
|
|
@@ -29934,7 +30606,7 @@ var BLOCKS = [
|
|
|
29934
30606
|
{ key: "late-tags", title: "Tracking tags (Tag Manager, Google, Meta, Clarity) that load a moment after the page shows, at once on conversion pages and ad clicks" }
|
|
29935
30607
|
];
|
|
29936
30608
|
var MAX_BYTES3 = 5 * 1024 * 1024;
|
|
29937
|
-
var sha = (data) =>
|
|
30609
|
+
var sha = (data) => createHash5("sha256").update(data).digest("hex");
|
|
29938
30610
|
var lockPath = (base, key2) => resolve8(base, ".deployai", "blocks", `${key2}.lock.json`);
|
|
29939
30611
|
function readLock(base, key2) {
|
|
29940
30612
|
try {
|
|
@@ -29983,26 +30655,26 @@ async function blocksCommand(root, ctx, name, opts = {}) {
|
|
|
29983
30655
|
if (now === sha(e3.data)) {
|
|
29984
30656
|
lock[e3.name] = now;
|
|
29985
30657
|
} else if (opts.update && lock[e3.name] === now) {
|
|
29986
|
-
|
|
30658
|
+
writeFileSync20(target, e3.data);
|
|
29987
30659
|
lock[e3.name] = sha(e3.data);
|
|
29988
30660
|
updated.push(e3.name);
|
|
29989
30661
|
} else {
|
|
29990
30662
|
const upstream = resolve8(base, ".deployai", "blocks", `${block.key}-upstream`, e3.name);
|
|
29991
30663
|
if (upstream.startsWith(base + sep3)) {
|
|
29992
|
-
|
|
29993
|
-
|
|
30664
|
+
mkdirSync14(dirname7(upstream), { recursive: true });
|
|
30665
|
+
writeFileSync20(upstream, e3.data);
|
|
29994
30666
|
}
|
|
29995
30667
|
kept.push(e3.name);
|
|
29996
30668
|
}
|
|
29997
30669
|
continue;
|
|
29998
30670
|
}
|
|
29999
|
-
|
|
30000
|
-
|
|
30671
|
+
mkdirSync14(dirname7(target), { recursive: true });
|
|
30672
|
+
writeFileSync20(target, e3.data);
|
|
30001
30673
|
lock[e3.name] = sha(e3.data);
|
|
30002
30674
|
written.push(e3.name);
|
|
30003
30675
|
}
|
|
30004
|
-
|
|
30005
|
-
|
|
30676
|
+
mkdirSync14(dirname7(lockPath(base, block.key)), { recursive: true });
|
|
30677
|
+
writeFileSync20(lockPath(base, block.key), `${JSON.stringify(lock, null, 2)}
|
|
30006
30678
|
`);
|
|
30007
30679
|
out(`Added the ${block.key} block: ${written.length} files.`);
|
|
30008
30680
|
written.forEach((f) => out(` + ${f}`));
|
|
@@ -30064,7 +30736,7 @@ async function integrationsCommand(ctx, name, opts = {}) {
|
|
|
30064
30736
|
|
|
30065
30737
|
// src/commands/brand.ts
|
|
30066
30738
|
import { spawn as spawn5 } from "child_process";
|
|
30067
|
-
import { copyFileSync, existsSync as existsSync21, mkdirSync as
|
|
30739
|
+
import { copyFileSync, existsSync as existsSync21, mkdirSync as mkdirSync15, mkdtempSync as mkdtempSync3, readdirSync as readdirSync7, readFileSync as readFileSync17, rmSync as rmSync6, statSync as statSync4, writeFileSync as writeFileSync21 } from "fs";
|
|
30068
30740
|
import { createServer } from "http";
|
|
30069
30741
|
import { tmpdir as tmpdir4 } from "os";
|
|
30070
30742
|
import { basename as basename2, dirname as dirname8, extname as extname2, join as join24, relative as relative5, sep as sep4 } from "path";
|
|
@@ -30282,11 +30954,11 @@ function writeSiteFile(root, file2, data) {
|
|
|
30282
30954
|
const target = join24(webRoot(root), file2);
|
|
30283
30955
|
if (existsSync21(target)) {
|
|
30284
30956
|
const keep = join24(root, BRAND_DIR, "originals");
|
|
30285
|
-
|
|
30957
|
+
mkdirSync15(keep, { recursive: true });
|
|
30286
30958
|
copyFileSync(target, join24(keep, file2));
|
|
30287
30959
|
}
|
|
30288
|
-
|
|
30289
|
-
|
|
30960
|
+
mkdirSync15(dirname8(target), { recursive: true });
|
|
30961
|
+
writeFileSync21(target, data);
|
|
30290
30962
|
}
|
|
30291
30963
|
var send = (res, status, body = "", type = "text/plain; charset=utf-8") => {
|
|
30292
30964
|
res.writeHead(status, { "content-type": type, "cache-control": "no-store", "x-content-type-options": "nosniff" });
|
|
@@ -30645,10 +31317,10 @@ async function brandImagesCommand(root, urls, opts) {
|
|
|
30645
31317
|
if (verdict !== "ok") onPages.push({ where: m.src, width: m.width, height: m.height, shownWidth: m.shownWidth, verdict, alt: m.alt });
|
|
30646
31318
|
}
|
|
30647
31319
|
const weak = [...onPages, ...findings];
|
|
30648
|
-
|
|
31320
|
+
mkdirSync15(join24(root, BRAND_DIR), { recursive: true });
|
|
30649
31321
|
const file2 = `${BRAND_DIR}/images.json`;
|
|
30650
31322
|
const data = { measuredAt: (/* @__PURE__ */ new Date()).toISOString(), pages: urls, unmeasured, filesChecked: total, imagesMeasured: shown.size, weak };
|
|
30651
|
-
|
|
31323
|
+
writeFileSync21(join24(root, file2), `${JSON.stringify(data, null, 2)}
|
|
30652
31324
|
`);
|
|
30653
31325
|
if (opts.json) {
|
|
30654
31326
|
out(JSON.stringify(data));
|
|
@@ -30686,11 +31358,11 @@ async function envListCommand(root, ctx) {
|
|
|
30686
31358
|
const width = Math.max(...vars.map((v) => v.key.length)) + 2;
|
|
30687
31359
|
for (const v of vars) out(` ${v.key.padEnd(width)}${(v.isSecret ? t("envSecret") : t("envPlain")).padEnd(10)}${v.hint}`);
|
|
30688
31360
|
}
|
|
30689
|
-
async function envSetCommand(root, ctx, key2,
|
|
31361
|
+
async function envSetCommand(root, ctx, key2, value2, opts) {
|
|
30690
31362
|
requireToken(ctx);
|
|
30691
31363
|
const projectId = linkedProjectId(root);
|
|
30692
31364
|
const t = messages(root);
|
|
30693
|
-
const v =
|
|
31365
|
+
const v = value2 ?? (process.stdin.isTTY ? void 0 : await readStdin());
|
|
30694
31366
|
if (v === void 0) throw new CliError(t("envNeedValue"), 1, "usage");
|
|
30695
31367
|
const r = await apiRequest(ctx, "/api/cli/env", EnvSetResponse, { method: "POST", body: { projectId, key: key2, value: v, secret: !opts.plain } });
|
|
30696
31368
|
out(t(r.secret ? "envSavedSecret" : "envSavedPlain", { key: r.key }));
|
|
@@ -30747,6 +31419,7 @@ ${AGENT_FEEDBACK_RULES.join("\n\n")}
|
|
|
30747
31419
|
if (!address) throw new CliError("Name the address, for example: npx deployai@latest requests open /api/webhooks/payments", 1, "usage");
|
|
30748
31420
|
return requestsOpenCommand(root(cmd), ctx(cmd), address, action === "open");
|
|
30749
31421
|
});
|
|
31422
|
+
program.command("logs").description("live logs of the linked site's code: the requests it answered, console lines and errors, up to 10 minutes, Ctrl+C stops. A failed build's log is in: npx deployai@latest status").option("--json", "one JSON object a line").option("--errors", "only errors").action((opts, cmd) => logsCommand(root(cmd), ctx(cmd), opts));
|
|
30750
31423
|
program.command("versions").description("list versions").action((_opts, cmd) => versionsCommand(root(cmd), ctx(cmd)));
|
|
30751
31424
|
program.command("rollback").description("put an earlier version back live, with no rebuild").argument("<version>", "for example v5").action((version2, _opts, cmd) => changeLiveCommand(root(cmd), ctx(cmd), version2, "rollback"));
|
|
30752
31425
|
program.command("promote").description("put a version live; new database changes (SQL) are shown and run first, after a yes").argument("<version>", "for example v5").option("--approve-sql <code>", "for an agent, after the owner said yes to the SQL that sql printed: the code it printed; never for SQL that removes data").option("--anyway", "put live a version made before a newer one went live, only after the owner said so (D-907)").action((version2, opts, cmd) => changeLiveCommand(root(cmd), ctx(cmd), version2, "promote", opts));
|
|
@@ -30790,7 +31463,7 @@ ${AGENT_FEEDBACK_RULES.join("\n\n")}
|
|
|
30790
31463
|
});
|
|
30791
31464
|
const env = program.command("env").description("the site's environment variables: secrets by default, never shown again");
|
|
30792
31465
|
env.command("list").description("list the keys, with a hint of each value").action((_opts, cmd) => envListCommand(root(cmd), ctx(cmd)));
|
|
30793
|
-
env.command("set").argument("<key>", "the name, like API_KEY").argument("[value]", "the value; leave it out to pipe it in, so it stays out of the shell history").option("--plain", "a plain value the dashboard may show, not a secret").description("set a variable on the live site").action((key2,
|
|
31466
|
+
env.command("set").argument("<key>", "the name, like API_KEY").argument("[value]", "the value; leave it out to pipe it in, so it stays out of the shell history").option("--plain", "a plain value the dashboard may show, not a secret").description("set a variable on the live site").action((key2, value2, opts, cmd) => envSetCommand(root(cmd), ctx(cmd), key2, value2, opts));
|
|
30794
31467
|
env.command("remove").argument("<key>", "the name to remove").description("remove a variable from the live site").action((key2, _opts, cmd) => envRemoveCommand(root(cmd), ctx(cmd), key2));
|
|
30795
31468
|
return program;
|
|
30796
31469
|
}
|
|
@@ -30812,8 +31485,10 @@ function withoutDoubledName(argv) {
|
|
|
30812
31485
|
}
|
|
30813
31486
|
async function main(rawArgv = process.argv) {
|
|
30814
31487
|
const argv = withoutDoubledName(rawArgv);
|
|
31488
|
+
if (argv !== rawArgv) err(`The first word was deployai again, so it was left out. Next time run: npx deployai@latest ${argv.slice(2).join(" ") || "--help"}`);
|
|
30815
31489
|
const program = buildProgram();
|
|
30816
31490
|
const started = Date.now();
|
|
31491
|
+
takeBlockedLine();
|
|
30817
31492
|
let command = null;
|
|
30818
31493
|
let apiFlag;
|
|
30819
31494
|
program.hook("preAction", (_this, actionCmd) => {
|
|
@@ -30830,13 +31505,17 @@ async function main(rawArgv = process.argv) {
|
|
|
30830
31505
|
let errorLine;
|
|
30831
31506
|
try {
|
|
30832
31507
|
await program.parseAsync(argv);
|
|
30833
|
-
if (process.exitCode === 1 && exitBefore !== 1)
|
|
31508
|
+
if (process.exitCode === 1 && exitBefore !== 1) {
|
|
31509
|
+
result = "blocked";
|
|
31510
|
+
errorLine = takeBlockedLine();
|
|
31511
|
+
}
|
|
30834
31512
|
} catch (e3) {
|
|
30835
31513
|
if (e3 instanceof CliError) {
|
|
30836
31514
|
err(e3.message);
|
|
30837
31515
|
process.exitCode = e3.exitCode;
|
|
30838
31516
|
if (e3.category === "blocked") {
|
|
30839
31517
|
result = "blocked";
|
|
31518
|
+
errorLine = e3.reason;
|
|
30840
31519
|
} else {
|
|
30841
31520
|
result = "error";
|
|
30842
31521
|
errorCategory = e3.category;
|
|
@@ -30853,7 +31532,7 @@ async function main(rawArgv = process.argv) {
|
|
|
30853
31532
|
errorCategory = "usage";
|
|
30854
31533
|
errorLine = parserErrorLine(e3.code, e3.message);
|
|
30855
31534
|
if (asked.quoted) err(`Pass each word on its own, with no quotes around them: npx deployai@latest ${asked.quoted}`);
|
|
30856
|
-
if (
|
|
31535
|
+
if (e3.code === "commander.unknownCommand" && !asked.quoted) for (const line of unknownCommandHelp(argv.slice(2), program)) err(line);
|
|
30857
31536
|
}
|
|
30858
31537
|
} else {
|
|
30859
31538
|
err(`Unexpected error: ${e3?.message ?? String(e3)}`);
|
|
@@ -30890,7 +31569,7 @@ function nodeGuideUrl(lang, base = API_BASE_DEFAULT) {
|
|
|
30890
31569
|
|
|
30891
31570
|
// src/update.ts
|
|
30892
31571
|
import { spawnSync as spawnSync6 } from "child_process";
|
|
30893
|
-
import { existsSync as existsSync23, mkdirSync as
|
|
31572
|
+
import { existsSync as existsSync23, mkdirSync as mkdirSync16, readdirSync as readdirSync8, readFileSync as readFileSync18, rmSync as rmSync7, writeFileSync as writeFileSync22 } from "fs";
|
|
30894
31573
|
import { join as join26 } from "path";
|
|
30895
31574
|
var CHECK_EVERY_MS = 60 * 60 * 1e3;
|
|
30896
31575
|
var ASK_NPM_MS = 1500;
|
|
@@ -30941,8 +31620,8 @@ function readState() {
|
|
|
30941
31620
|
}
|
|
30942
31621
|
function writeState(state) {
|
|
30943
31622
|
try {
|
|
30944
|
-
|
|
30945
|
-
|
|
31623
|
+
mkdirSync16(configDir(), { recursive: true });
|
|
31624
|
+
writeFileSync22(statePath(), JSON.stringify(state) + "\n");
|
|
30946
31625
|
} catch {
|
|
30947
31626
|
}
|
|
30948
31627
|
}
|
|
@@ -30965,8 +31644,8 @@ function getVersion(version2, env) {
|
|
|
30965
31644
|
`);
|
|
30966
31645
|
const root = join26(configDir(), "cli");
|
|
30967
31646
|
const dir = join26(root, version2);
|
|
30968
|
-
|
|
30969
|
-
|
|
31647
|
+
mkdirSync16(dir, { recursive: true });
|
|
31648
|
+
writeFileSync22(join26(dir, "package.json"), '{"private":true}\n');
|
|
30970
31649
|
const installed = spawnSync6(`npm install deployai@${version2} --ignore-scripts --no-audit --no-fund --silent`, { cwd: dir, env, shell: true, stdio: "ignore", windowsHide: true, timeout: GET_VERSION_MS });
|
|
30971
31650
|
if (installed.status !== 0) return false;
|
|
30972
31651
|
const ran = spawnSync6(process.execPath, [versionEntry(version2), "--version"], { env: { ...env, DEPLOYAI_NO_UPDATE: "1" }, encoding: "utf8", timeout: GET_VERSION_MS });
|