zen-code 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MultiSelect-DPUY1M3X.mjs +651 -0
- package/dist/{_commonjsHelpers-DQNKXVTB.mjs → _commonjsHelpers-ByX85dGu.mjs} +2 -2
- package/dist/app-DSomQ6O6.mjs +9425 -0
- package/dist/{checkpoint-1sAx_j1E-C7vuWMYk.mjs → checkpoint-1sAx_j1E-DxhHzrFo.mjs} +2 -1
- package/dist/{checkpoint-DxiUsHMy-BAS0QTsO.mjs → checkpoint-DxiUsHMy-DQXGrxXE.mjs} +4 -3
- package/dist/cli.mjs +33 -0
- package/dist/{devtools-m8Lnvjy_.mjs → devtools-BxIzBVXg.mjs} +1 -1
- package/dist/{app-BYHr8LGb.mjs → graph-DDkv1rqg.mjs} +21511 -31014
- package/dist/{id-D9MvPv5H.mjs → id-CzaxLw8O.mjs} +1 -1
- package/dist/index-B5v_6qaq.mjs +22 -0
- package/dist/{index-CUBPsTPx.mjs → index-C1CZncrT.mjs} +5 -4
- package/dist/nonInteractive.mjs +45 -0
- package/dist/{queue-BSCnCent-Ct_0uFlj.mjs → queue-BSCnCent-CSGRBLST.mjs} +1 -1
- package/dist/{shallow-CZp172oK.mjs → shallow-DwTxKmlC.mjs} +5 -4
- package/dist/{MultiSelect-CZS5qXWj.mjs → use-input-CQELhJxU.mjs} +10200 -10340
- package/dist/zen-code.mjs +2 -2
- package/dist/zen-init.mjs +45 -43
- package/dist/zen-keyboard.mjs +13 -0
- package/package.json +5 -6
- package/cli.js +0 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { K as T } from "./kysely-Bchvsze0.mjs";
|
|
2
2
|
import { F as r } from "./sql-CJsUpKEQ.mjs";
|
|
3
|
-
import { B as f, T as l, c as y, m } from "./app-
|
|
3
|
+
import { B as f, T as l, c as y, m } from "./app-DSomQ6O6.mjs";
|
|
4
|
+
import "./graph-DDkv1rqg.mjs";
|
|
4
5
|
const g = ["source", "step", "parents"];
|
|
5
6
|
const E = g;
|
|
6
7
|
class w extends f {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { T as l, B as N, W as k, m as y } from "./app-
|
|
1
|
+
import { T as l, B as N, W as k, m as y } from "./app-DSomQ6O6.mjs";
|
|
2
|
+
import "./graph-DDkv1rqg.mjs";
|
|
2
3
|
import w from "pg";
|
|
3
4
|
const S = (h) => [
|
|
4
5
|
"checkpoints",
|
|
@@ -384,10 +385,10 @@ var $ = class L extends N {
|
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
};
|
|
387
|
-
const
|
|
388
|
+
const R = async () => {
|
|
388
389
|
const h = $.fromConnString(process.env.DATABASE_URL);
|
|
389
390
|
return process.env.DATABASE_INIT === "true" && (console.debug("LG | Initializing postgres checkpoint"), await h.setup()), h;
|
|
390
391
|
};
|
|
391
392
|
export {
|
|
392
|
-
|
|
393
|
+
R as createPGCheckpoint
|
|
393
394
|
};
|
package/dist/cli.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const t = process.argv.slice(2);
|
|
3
|
+
async function o() {
|
|
4
|
+
const s = t.indexOf("--yolo");
|
|
5
|
+
if (s !== -1 && (process.env.YOLO_MODE = "true", t.splice(s, 1)), t[0] === "init")
|
|
6
|
+
import("./zen-init.mjs");
|
|
7
|
+
else if (t[0] === "keyboard")
|
|
8
|
+
import("./zen-keyboard.mjs");
|
|
9
|
+
else if (t[0] === "-p" || t[0] === "--prompt") {
|
|
10
|
+
const e = t.slice(1).join(" "), { runNonInteractive: i } = await import("./nonInteractive.mjs");
|
|
11
|
+
await i(e, !1);
|
|
12
|
+
} else if (await r()) {
|
|
13
|
+
const { runNonInteractive: i } = await import("./nonInteractive.mjs");
|
|
14
|
+
await i(void 0, !0);
|
|
15
|
+
} else
|
|
16
|
+
await import("./zen-code.mjs");
|
|
17
|
+
}
|
|
18
|
+
async function r() {
|
|
19
|
+
return new Promise((s) => {
|
|
20
|
+
if (process.stdin.isTTY) {
|
|
21
|
+
s(!1);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const i = process.stdin.read();
|
|
25
|
+
i ? (process.stdin.unshift(i), s(!0)) : setTimeout(() => {
|
|
26
|
+
const n = process.stdin.read();
|
|
27
|
+
n ? (process.stdin.unshift(n), s(!0)) : s(!1);
|
|
28
|
+
}, 100);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
o().catch((s) => {
|
|
32
|
+
console.error("❌ 执行失败:", s), process.exit(1);
|
|
33
|
+
});
|
|
@@ -7,7 +7,7 @@ import Oe from "node:crypto";
|
|
|
7
7
|
import se from "node:stream";
|
|
8
8
|
import mt from "node:url";
|
|
9
9
|
import gt from "node:zlib";
|
|
10
|
-
import {
|
|
10
|
+
import { a as et, g as yt } from "./_commonjsHelpers-ByX85dGu.mjs";
|
|
11
11
|
import Et from "node:buffer";
|
|
12
12
|
import tt from "react-devtools-core";
|
|
13
13
|
var te = { exports: {} }, _e, $e;
|