@wirecat/cli-memo 0.131.73 → 0.131.75
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/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-L5QBYI3V.js → all-profiles-LUGN5BHP.js} +9 -9
- package/dist/bundle/{anthropic-XXKHNCQS.js → anthropic-W7JXDZPL.js} +5 -5
- package/dist/bundle/{app-server-FDMP3IBP.js → app-server-TRRARE66.js} +50 -49
- package/dist/bundle/auto-AQAKW55Z.js +89 -0
- package/dist/bundle/{bun-VLN4HBWB.js → bun-S3JZIN4S.js} +2 -2
- package/dist/bundle/{bun-sqlite-KJCYXNMS.js → bun-sqlite-X3WQN3CV.js} +5 -5
- package/dist/bundle/{chunk-ZTONSM5X.js → chunk-2EZFUIL4.js} +2 -2
- package/dist/bundle/{chunk-HBP7AQXX.js → chunk-2QND7VJS.js} +12 -12
- package/dist/bundle/{chunk-2BH2RNFR.js → chunk-346PWQJF.js} +8 -8
- package/dist/bundle/{chunk-B7ATMWVO.js → chunk-4KDORB7C.js} +12 -37
- package/dist/bundle/{chunk-V3JOIUVB.js → chunk-4O2MYFYC.js} +4 -4
- package/dist/bundle/{chunk-I6MGDSYH.js → chunk-4QGUBKN5.js} +6 -6
- package/dist/bundle/{chunk-YDGZJK6U.js → chunk-4XI7S3PO.js} +24 -24
- package/dist/bundle/{chunk-XGXEWKR7.js → chunk-5CTOWPOL.js} +12 -12
- package/dist/bundle/{chunk-6OPZTBRR.js → chunk-5RLCKP5E.js} +59 -35
- package/dist/bundle/{chunk-VQUSPMYO.js → chunk-6AOPUQTC.js} +1 -1
- package/dist/bundle/chunk-6FTZ53TT.js +18 -0
- package/dist/bundle/{chunk-BTVND2RV.js → chunk-6I4DOBSD.js} +13 -13
- package/dist/bundle/{chunk-WJNLBQSV.js → chunk-6VMIMAZ2.js} +544 -586
- package/dist/bundle/{chunk-BBLT77AO.js → chunk-7Y4HUYI3.js} +26 -14
- package/dist/bundle/{chunk-JLC2RE4Y.js → chunk-AOHT5FNX.js} +82 -82
- package/dist/bundle/{chunk-VPR47AG4.js → chunk-BDVM5652.js} +1 -1
- package/dist/bundle/{chunk-MM3OMWST.js → chunk-C6MWOBEL.js} +24 -22
- package/dist/bundle/{chunk-LHZ4QBWB.js → chunk-E2PSOSTN.js} +2 -2
- package/dist/bundle/{chunk-J7ESMDVV.js → chunk-E74VWHZ2.js} +1 -1
- package/dist/bundle/{chunk-MLN4DPXN.js → chunk-EWRHTZD3.js} +17 -17
- package/dist/bundle/{chunk-FMSXN2N6.js → chunk-FGMFJUHR.js} +1058 -774
- package/dist/bundle/{chunk-A7QXBRUH.js → chunk-G45BLLDR.js} +4 -4
- package/dist/bundle/{chunk-KK3ZHBMI.js → chunk-GFVSZY4J.js} +26 -2
- package/dist/bundle/{chunk-IUEYR3TK.js → chunk-IQIM4UC7.js} +10 -10
- package/dist/bundle/{chunk-JABLJBXL.js → chunk-JINEHQ2T.js} +4927 -4920
- package/dist/bundle/chunk-KA5MDFLU.js +138 -0
- package/dist/bundle/{chunk-IKH4RCJO.js → chunk-KDBAY5JZ.js} +1 -1
- package/dist/bundle/{chunk-LJCT7YG6.js → chunk-KEBL3PY4.js} +4 -4
- package/dist/bundle/{chunk-C3UOKLIT.js → chunk-KUFOM3SB.js} +2 -2
- package/dist/bundle/{chunk-ZIGVDRSI.js → chunk-KYJBGCTC.js} +2 -2
- package/dist/bundle/{chunk-R3PK4Y7C.js → chunk-LPGE6ACC.js} +2 -2
- package/dist/bundle/{chunk-6ZRBQTKZ.js → chunk-LX3OSTBD.js} +4 -4
- package/dist/bundle/{chunk-NMOWIFH3.js → chunk-MPZBV5RL.js} +8 -8
- package/dist/bundle/{chunk-H74CWBSY.js → chunk-NR633L2N.js} +4 -4
- package/dist/bundle/{chunk-DSU6UR2X.js → chunk-NT5IOEEK.js} +1 -1
- package/dist/bundle/chunk-OWUEEVF6.js +177 -0
- package/dist/bundle/{chunk-L62FWN3Y.js → chunk-OYKQX4H3.js} +1 -1
- package/dist/bundle/{chunk-W6JPIP5C.js → chunk-QKWM4VK4.js} +6 -6
- package/dist/bundle/chunk-QYJJBE56.js +109 -0
- package/dist/bundle/{chunk-JPXDDRBD.js → chunk-RZS24U4N.js} +11 -11
- package/dist/bundle/{chunk-EI2P5E4C.js → chunk-SCYHDYLI.js} +3 -1
- package/dist/bundle/{chunk-OGUXOAOH.js → chunk-SIOPF2UG.js} +6 -6
- package/dist/bundle/{chunk-RB266FS6.js → chunk-SIQDO5DN.js} +4 -4
- package/dist/bundle/{chunk-O5KXCQE4.js → chunk-SJD4KTK2.js} +4 -4
- package/dist/bundle/{chunk-PAHBDQ5A.js → chunk-UIAGASGP.js} +6 -6
- package/dist/bundle/{chunk-ZI5Y2EUA.js → chunk-UU3OAPGO.js} +7 -7
- package/dist/bundle/{chunk-ON7ZROFP.js → chunk-V7BDQIZS.js} +2 -2
- package/dist/bundle/{chunk-EH7ACKFW.js → chunk-VB4OLJHK.js} +3 -3
- package/dist/bundle/{chunk-SILEPITK.js → chunk-VFKCZJFT.js} +25 -35
- package/dist/bundle/{chunk-HE2F4JII.js → chunk-VYCLOFPC.js} +24 -9
- package/dist/bundle/{chunk-UUBV5ATQ.js → chunk-W46O6RJ5.js} +20 -20
- package/dist/bundle/{chunk-QHLEMEF3.js → chunk-W64FO6DD.js} +53 -48
- package/dist/bundle/{chunk-LG5SQGNM.js → chunk-WKLF7CAM.js} +47 -45
- package/dist/bundle/{chunk-X35Q5CHE.js → chunk-WZHCQ4VZ.js} +8 -8
- package/dist/bundle/{chunk-PF6LXPK5.js → chunk-XMHWGHID.js} +4280 -4278
- package/dist/bundle/chunk-XPCTY6XV.js +116 -0
- package/dist/bundle/{chunk-E75LK7GD.js → chunk-XPSXVUZG.js} +3 -3
- package/dist/bundle/{chunk-XM6ZAPFW.js → chunk-XQ3RZU3J.js} +1 -1
- package/dist/bundle/{chunk-LOYI3STE.js → chunk-XQHOMQNZ.js} +4 -4
- package/dist/bundle/{chunk-K54MCZWM.js → chunk-YB4KGUXY.js} +3 -3
- package/dist/bundle/{chunk-US2HTCJA.js → chunk-YDTGYYOR.js} +4 -4
- package/dist/bundle/{chunk-EQLOQOIB.js → chunk-YLYZNPAZ.js} +2 -2
- package/dist/bundle/{chunk-BOZEBD3I.js → chunk-ZISVFVQU.js} +1445 -832
- package/dist/bundle/{chunk-IDCYBSML.js → chunk-ZL63GL3Y.js} +3 -3
- package/dist/bundle/{chunk-2C323QNQ.js → chunk-ZP2XI5DR.js} +9 -9
- package/dist/bundle/{chunk-3CANRF2G.js → chunk-ZTZLAGZA.js} +3 -3
- package/dist/bundle/{chunk-FSXQLNU4.js → chunk-ZXW5FPH2.js} +1 -1
- package/dist/bundle/command-contract-QQG343ZQ.js +32 -0
- package/dist/bundle/command-server-entry-XVUPTSSH.js +145 -0
- package/dist/bundle/{decode-OS6Y6ICA.js → decode-METZOSMG.js} +5 -5
- package/dist/bundle/{dispatch-VJSUBAUM.js → dispatch-PHB2Y6ZL.js} +8 -8
- package/dist/bundle/{echarts-JKGDUDYL.js → echarts-EBSP4VCK.js} +2 -2
- package/dist/bundle/{embed-UB4LH6MF.js → embed-GVVU7N7W.js} +6 -6
- package/dist/bundle/{embedder-TUQBG22Y.js → embedder-6BZOYAXV.js} +9 -9
- package/dist/bundle/entry-TBOYUMWB.js +21 -0
- package/dist/bundle/failure-EKMEAYZH.js +69 -0
- package/dist/bundle/{failure-GLF7OMMM.js → failure-OBT7CUVW.js} +2 -2
- package/dist/bundle/{first-run-VNJHZYGS.js → first-run-HQ4GA4EF.js} +11 -11
- package/dist/bundle/first-screen-6T65PQ37.js +30 -0
- package/dist/bundle/{instructions-Q6IZQUU7.js → instructions-VDKK3Y5Z.js} +1 -1
- package/dist/bundle/{mcp-H2WYFBNW.js → mcp-5275YLID.js} +2 -2
- package/dist/bundle/mcp-DEY765VA.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-ZSSIVKVC.js → node-HWGZYNUX.js} +2 -2
- package/dist/bundle/{node-sqlite-AUNJSQQL.js → node-sqlite-PSYENWGS.js} +6 -6
- package/dist/bundle/{oauth-2MTJFCMI.js → oauth-TQGMUJK2.js} +7 -7
- package/dist/bundle/{open-U7RC27MJ.js → open-KDDJDKCE.js} +5 -5
- package/dist/bundle/openai-QPGCUM4T.js +24 -0
- package/dist/bundle/{process-UEQX5STY.js → process-APNTXJJE.js} +1 -1
- package/dist/bundle/{program-G3F26HW7.js → program-OGDARQTX.js} +3060 -2547
- package/dist/bundle/{prompt-F23FC5PJ.js → prompt-BMBZCLGF.js} +5 -5
- package/dist/bundle/{recognize-ZVEGVD56.js → recognize-3SEY2MAR.js} +4 -4
- package/dist/bundle/{remote-CZXQS7PS.js → remote-ODH54UXO.js} +7 -7
- package/dist/bundle/{rerank-IRFXSVVO.js → rerank-JQHBNTUK.js} +7 -7
- package/dist/bundle/{serve-6CIMU5HP.js → serve-C22ZONSM.js} +9 -9
- package/dist/bundle/server-3UX245DY.js +62 -0
- package/dist/bundle/server-6G5XF3V5.js +48 -0
- package/dist/bundle/{server-H24MAUT2.js → server-ADPO4V4B.js} +70 -66
- package/dist/bundle/{state-TRWZWXB5.js → state-M3VGXSV4.js} +6 -6
- package/dist/bundle/{store-E4QUOOLX.js → store-GSZAXU3A.js} +13 -13
- package/dist/bundle/store-maintenance-command-QMTALGSQ.js +47 -0
- package/dist/bundle/update-HDJ23IV5.js +72 -0
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +4 -2
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/search.d.ts.map +1 -1
- package/dist/contract-overrides/search.js +6 -0
- package/dist/contract-overrides/search.js.map +1 -1
- package/dist/digest/backfill.d.ts +1 -1
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +71 -42
- package/dist/digest/backfill.js.map +1 -1
- package/dist/digest/brief.d.ts +14 -3
- package/dist/digest/brief.d.ts.map +1 -1
- package/dist/digest/brief.js +84 -34
- package/dist/digest/brief.js.map +1 -1
- package/dist/digest/command.d.ts +3 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +23 -0
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest-commands.d.ts +6 -0
- package/dist/digest/digest-commands.d.ts.map +1 -0
- package/dist/digest/digest-commands.js +241 -0
- package/dist/digest/digest-commands.js.map +1 -0
- package/dist/digest/digest.d.ts +5 -2
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +29 -8
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/digests.d.ts +72 -0
- package/dist/digest/digests.d.ts.map +1 -0
- package/dist/digest/digests.js +122 -0
- package/dist/digest/digests.js.map +1 -0
- package/dist/digest/tasks.d.ts +7 -4
- package/dist/digest/tasks.d.ts.map +1 -1
- package/dist/digest/tasks.js +13 -5
- package/dist/digest/tasks.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +17 -1
- package/dist/examples.js.map +1 -1
- package/dist/people/command.d.ts +0 -1
- package/dist/people/command.d.ts.map +1 -1
- package/dist/people/command.js +114 -12
- package/dist/people/command.js.map +1 -1
- package/dist/program.d.ts +4 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -5
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +24 -0
- package/dist/reasons.js.map +1 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +13 -1
- package/dist/rows.js.map +1 -1
- package/dist/schedule/command.d.ts +8 -0
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +4 -2
- package/dist/schedule/command.js.map +1 -1
- package/dist/search/answers.d.ts +6 -1
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +17 -1
- package/dist/search/answers.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +13 -2
- package/dist/search/command.js.map +1 -1
- package/dist/search/lane-gates.d.ts +4 -3
- package/dist/search/lane-gates.d.ts.map +1 -1
- package/dist/search/lane-gates.js +13 -7
- package/dist/search/lane-gates.js.map +1 -1
- package/dist/search/people.d.ts +2 -0
- package/dist/search/people.d.ts.map +1 -1
- package/dist/search/people.js +11 -4
- package/dist/search/people.js.map +1 -1
- package/dist/search/search.d.ts +5 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +5 -1
- package/dist/search/search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/auto-YQAECIZA.js +0 -85
- package/dist/bundle/chunk-KQTR6YA4.js +0 -262
- package/dist/bundle/command-contract-6HJ322BP.js +0 -32
- package/dist/bundle/entry-N4NCIQYH.js +0 -18
- package/dist/bundle/failure-BJEFFYH3.js +0 -65
- package/dist/bundle/first-screen-4XGF2NZ3.js +0 -30
- package/dist/bundle/mcp-REIASUJR.js +0 -90
- package/dist/bundle/openai-2SJCG6XM.js +0 -23
- package/dist/bundle/server-27KXLL4E.js +0 -61
- package/dist/bundle/server-TWMUWMFM.js +0 -48
- package/dist/bundle/store-maintenance-command-GLHRB2VZ.js +0 -47
- package/dist/bundle/update-QQEM73O5.js +0 -68
- /package/dist/bundle/{chunk-SYWHHQMC.js → chunk-G5GW3FFJ.js} +0 -0
- /package/dist/bundle/{chunk-ZOWQ5B33.js → chunk-IXSUVHW6.js} +0 -0
package/dist/bin/memo.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.131.
|
|
12
|
+
process.stdout.write("0.131.75\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-LUGN5BHP.js","../bundle/anthropic-W7JXDZPL.js","../bundle/app-server-TRRARE66.js","../bundle/auto-AQAKW55Z.js","../bundle/bun-S3JZIN4S.js","../bundle/bun-sqlite-X3WQN3CV.js","../bundle/command-contract-QQG343ZQ.js","../bundle/command-server-entry-XVUPTSSH.js","../bundle/decode-METZOSMG.js","../bundle/dispatch-PHB2Y6ZL.js","../bundle/dist-GZQWFMCL.js","../bundle/echarts-EBSP4VCK.js","../bundle/embed-GVVU7N7W.js","../bundle/embedder-6BZOYAXV.js","../bundle/entry-TBOYUMWB.js","../bundle/failure-EKMEAYZH.js","../bundle/failure-OBT7CUVW.js","../bundle/first-run-HQ4GA4EF.js","../bundle/first-screen-6T65PQ37.js","../bundle/instructions-VDKK3Y5Z.js","../bundle/mcp-5275YLID.js","../bundle/mcp-DEY765VA.js","../bundle/node-HWGZYNUX.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-PSYENWGS.js","../bundle/oauth-TQGMUJK2.js","../bundle/open-KDDJDKCE.js","../bundle/openai-QPGCUM4T.js","../bundle/process-APNTXJJE.js","../bundle/program-OGDARQTX.js","../bundle/prompt-BMBZCLGF.js","../bundle/recognize-3SEY2MAR.js","../bundle/remote-ODH54UXO.js","../bundle/rerank-JQHBNTUK.js","../bundle/serve-C22ZONSM.js","../bundle/server-3UX245DY.js","../bundle/server-6G5XF3V5.js","../bundle/server-ADPO4V4B.js","../bundle/state-M3VGXSV4.js","../bundle/stdio-FRV4R7LJ.js","../bundle/store-GSZAXU3A.js","../bundle/store-maintenance-command-QMTALGSQ.js","../bundle/update-HDJ23IV5.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
serveAllProfilesOverHttp,
|
|
7
7
|
serveAllProfilesOverStdio,
|
|
8
8
|
withProfile
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-YDTGYYOR.js";
|
|
10
|
+
import "./chunk-ZXW5FPH2.js";
|
|
11
|
+
import "./chunk-V7BDQIZS.js";
|
|
12
12
|
import "./chunk-MM5NVP7F.js";
|
|
13
13
|
import "./chunk-3X4JM3ZR.js";
|
|
14
14
|
import "./chunk-H3ZN4YLB.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-UU3OAPGO.js";
|
|
16
|
+
import "./chunk-VB4OLJHK.js";
|
|
17
|
+
import "./chunk-G5GW3FFJ.js";
|
|
18
|
+
import "./chunk-W46O6RJ5.js";
|
|
19
|
+
import "./chunk-VYCLOFPC.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-2EZFUIL4.js";
|
|
22
22
|
import "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
export {
|
|
24
24
|
CHILD_IDLE_MS,
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
checkedOptions,
|
|
5
5
|
messagesFor,
|
|
6
6
|
systemFor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SJD4KTK2.js";
|
|
8
8
|
import {
|
|
9
9
|
Anthropic
|
|
10
10
|
} from "./chunk-ADLS6FVG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-W46O6RJ5.js";
|
|
12
12
|
import {
|
|
13
13
|
array,
|
|
14
14
|
literal,
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
strictObject,
|
|
19
19
|
string,
|
|
20
20
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VYCLOFPC.js";
|
|
22
22
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-2EZFUIL4.js";
|
|
24
24
|
import {
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
29
29
|
var options = strictObject({
|
|
30
30
|
stop_sequences: optional(array(string())),
|
|
31
31
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,41 +3,59 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WKLF7CAM.js";
|
|
7
|
+
import {
|
|
8
|
+
answeredWire
|
|
9
|
+
} from "./chunk-ZXW5FPH2.js";
|
|
7
10
|
import {
|
|
8
11
|
answered,
|
|
9
12
|
failed,
|
|
10
13
|
registerCommands,
|
|
11
14
|
runCommandForAgent,
|
|
12
15
|
toolsFromCommands
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-5RLCKP5E.js";
|
|
17
|
+
import "./chunk-V7BDQIZS.js";
|
|
18
|
+
import "./chunk-VFKCZJFT.js";
|
|
15
19
|
import {
|
|
16
20
|
mcpUrlOf
|
|
17
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YLYZNPAZ.js";
|
|
18
22
|
import {
|
|
19
23
|
agentJson,
|
|
20
24
|
skillResource
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
appInstructions
|
|
24
|
-
} from "./chunk-IKH4RCJO.js";
|
|
25
|
-
import {
|
|
26
|
-
answeredWire
|
|
27
|
-
} from "./chunk-FSXQLNU4.js";
|
|
28
|
-
import "./chunk-ON7ZROFP.js";
|
|
25
|
+
} from "./chunk-C6MWOBEL.js";
|
|
29
26
|
import {
|
|
30
27
|
StdioServerTransport,
|
|
31
28
|
serveStdio
|
|
32
29
|
} from "./chunk-MM5NVP7F.js";
|
|
30
|
+
import {
|
|
31
|
+
appInstructions
|
|
32
|
+
} from "./chunk-KDBAY5JZ.js";
|
|
33
33
|
import "./chunk-3X4JM3ZR.js";
|
|
34
|
+
import {
|
|
35
|
+
mcpHttpMarker
|
|
36
|
+
} from "./chunk-LX3OSTBD.js";
|
|
34
37
|
import {
|
|
35
38
|
McpServer
|
|
36
39
|
} from "./chunk-H3ZN4YLB.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-4XI7S3PO.js";
|
|
41
|
+
import "./chunk-6VMIMAZ2.js";
|
|
42
|
+
import "./chunk-6I4DOBSD.js";
|
|
43
|
+
import "./chunk-ZL63GL3Y.js";
|
|
44
|
+
import "./chunk-ZTZLAGZA.js";
|
|
45
|
+
import "./chunk-KEBL3PY4.js";
|
|
46
|
+
import "./chunk-OYKQX4H3.js";
|
|
47
|
+
import "./chunk-E2PSOSTN.js";
|
|
48
|
+
import "./chunk-ZISVFVQU.js";
|
|
49
|
+
import "./chunk-MPZBV5RL.js";
|
|
50
|
+
import "./chunk-XQ3RZU3J.js";
|
|
51
|
+
import "./chunk-SJD4KTK2.js";
|
|
52
|
+
import "./chunk-SIOPF2UG.js";
|
|
53
|
+
import "./chunk-NT5IOEEK.js";
|
|
54
|
+
import "./chunk-D72URWJE.js";
|
|
55
|
+
import "./chunk-6FTZ53TT.js";
|
|
56
|
+
import "./chunk-UIAGASGP.js";
|
|
57
|
+
import "./chunk-SCYHDYLI.js";
|
|
58
|
+
import "./chunk-G45BLLDR.js";
|
|
41
59
|
import {
|
|
42
60
|
DEFAULT_OUTPUT_BYTES,
|
|
43
61
|
changesAuthorityAt,
|
|
@@ -46,49 +64,32 @@ import {
|
|
|
46
64
|
judgedTargets,
|
|
47
65
|
readsOverMcpAt,
|
|
48
66
|
rootOf2 as rootOf
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-LOYI3STE.js";
|
|
67
|
+
} from "./chunk-XMHWGHID.js";
|
|
68
|
+
import "./chunk-UU3OAPGO.js";
|
|
69
|
+
import "./chunk-6AOPUQTC.js";
|
|
70
|
+
import "./chunk-XQHOMQNZ.js";
|
|
54
71
|
import {
|
|
55
72
|
readOnlyLockOf
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-EH7ACKFW.js";
|
|
65
|
-
import "./chunk-NMOWIFH3.js";
|
|
66
|
-
import "./chunk-I6MGDSYH.js";
|
|
67
|
-
import "./chunk-LHZ4QBWB.js";
|
|
68
|
-
import "./chunk-O5KXCQE4.js";
|
|
69
|
-
import "./chunk-3CANRF2G.js";
|
|
70
|
-
import "./chunk-OGUXOAOH.js";
|
|
71
|
-
import "./chunk-RB266FS6.js";
|
|
72
|
-
import "./chunk-R3PK4Y7C.js";
|
|
73
|
-
import "./chunk-DSU6UR2X.js";
|
|
74
|
-
import "./chunk-SYWHHQMC.js";
|
|
75
|
-
import "./chunk-D72URWJE.js";
|
|
76
|
-
import "./chunk-PAHBDQ5A.js";
|
|
77
|
-
import "./chunk-EI2P5E4C.js";
|
|
78
|
-
import "./chunk-UUBV5ATQ.js";
|
|
73
|
+
} from "./chunk-KUFOM3SB.js";
|
|
74
|
+
import "./chunk-JINEHQ2T.js";
|
|
75
|
+
import "./chunk-VB4OLJHK.js";
|
|
76
|
+
import "./chunk-4QGUBKN5.js";
|
|
77
|
+
import "./chunk-SIQDO5DN.js";
|
|
78
|
+
import "./chunk-LPGE6ACC.js";
|
|
79
|
+
import "./chunk-G5GW3FFJ.js";
|
|
80
|
+
import "./chunk-W46O6RJ5.js";
|
|
79
81
|
import {
|
|
80
82
|
mcpErrorResult
|
|
81
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-VYCLOFPC.js";
|
|
82
84
|
import "./chunk-Y5E2WNWB.js";
|
|
83
85
|
import {
|
|
84
86
|
CliError
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import "./chunk-XM6ZAPFW.js";
|
|
87
|
+
} from "./chunk-2EZFUIL4.js";
|
|
87
88
|
import {
|
|
88
89
|
__name
|
|
89
90
|
} from "./chunk-ZVVMGPBJ.js";
|
|
90
91
|
|
|
91
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
92
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
92
93
|
var EXCLUDED = [["mcp"]];
|
|
93
94
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
94
95
|
const { app } = options;
|
|
@@ -206,7 +207,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
206
207
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
207
208
|
const { app } = options;
|
|
208
209
|
const { build } = createAppServer(command, context, options);
|
|
209
|
-
const { serveOverHttp } = await import("./serve-
|
|
210
|
+
const { serveOverHttp } = await import("./serve-C22ZONSM.js");
|
|
210
211
|
const listening = await serveOverHttp(build, {
|
|
211
212
|
...http,
|
|
212
213
|
appName: app.command,
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
DEFAULT_EVERY,
|
|
5
|
+
PLACE_VARIABLES,
|
|
6
|
+
applyAuto,
|
|
7
|
+
autoCommand,
|
|
8
|
+
autoNotice,
|
|
9
|
+
autoState,
|
|
10
|
+
followInstall,
|
|
11
|
+
globalRoots,
|
|
12
|
+
interval,
|
|
13
|
+
lastAutoRun,
|
|
14
|
+
placesOf,
|
|
15
|
+
recordAutoRun,
|
|
16
|
+
serviceUnit,
|
|
17
|
+
timerUnit
|
|
18
|
+
} from "./chunk-ZP2XI5DR.js";
|
|
19
|
+
import "./chunk-7Y4HUYI3.js";
|
|
20
|
+
import "./chunk-W64FO6DD.js";
|
|
21
|
+
import "./chunk-QP3KNC5D.js";
|
|
22
|
+
import "./chunk-FGMFJUHR.js";
|
|
23
|
+
import "./chunk-E74VWHZ2.js";
|
|
24
|
+
import "./chunk-KA5MDFLU.js";
|
|
25
|
+
import "./chunk-BDVM5652.js";
|
|
26
|
+
import "./chunk-VFKCZJFT.js";
|
|
27
|
+
import "./chunk-YLYZNPAZ.js";
|
|
28
|
+
import "./chunk-C6MWOBEL.js";
|
|
29
|
+
import "./chunk-LX3OSTBD.js";
|
|
30
|
+
import "./chunk-AOHT5FNX.js";
|
|
31
|
+
import "./chunk-4XI7S3PO.js";
|
|
32
|
+
import "./chunk-6VMIMAZ2.js";
|
|
33
|
+
import "./chunk-6I4DOBSD.js";
|
|
34
|
+
import "./chunk-ZL63GL3Y.js";
|
|
35
|
+
import "./chunk-ZTZLAGZA.js";
|
|
36
|
+
import "./chunk-WZHCQ4VZ.js";
|
|
37
|
+
import "./chunk-HTQTIKWP.js";
|
|
38
|
+
import "./chunk-EWRHTZD3.js";
|
|
39
|
+
import "./chunk-KEBL3PY4.js";
|
|
40
|
+
import "./chunk-OYKQX4H3.js";
|
|
41
|
+
import "./chunk-OWUEEVF6.js";
|
|
42
|
+
import "./chunk-XPSXVUZG.js";
|
|
43
|
+
import "./chunk-E2PSOSTN.js";
|
|
44
|
+
import "./chunk-ZISVFVQU.js";
|
|
45
|
+
import "./chunk-MPZBV5RL.js";
|
|
46
|
+
import "./chunk-XQ3RZU3J.js";
|
|
47
|
+
import "./chunk-SJD4KTK2.js";
|
|
48
|
+
import "./chunk-SIOPF2UG.js";
|
|
49
|
+
import "./chunk-GFVSZY4J.js";
|
|
50
|
+
import "./chunk-NT5IOEEK.js";
|
|
51
|
+
import "./chunk-D72URWJE.js";
|
|
52
|
+
import "./chunk-XPCTY6XV.js";
|
|
53
|
+
import "./chunk-6FTZ53TT.js";
|
|
54
|
+
import "./chunk-QYJJBE56.js";
|
|
55
|
+
import "./chunk-UIAGASGP.js";
|
|
56
|
+
import "./chunk-SCYHDYLI.js";
|
|
57
|
+
import "./chunk-G45BLLDR.js";
|
|
58
|
+
import "./chunk-XMHWGHID.js";
|
|
59
|
+
import "./chunk-UU3OAPGO.js";
|
|
60
|
+
import "./chunk-6AOPUQTC.js";
|
|
61
|
+
import "./chunk-XQHOMQNZ.js";
|
|
62
|
+
import "./chunk-KUFOM3SB.js";
|
|
63
|
+
import "./chunk-JINEHQ2T.js";
|
|
64
|
+
import "./chunk-VB4OLJHK.js";
|
|
65
|
+
import "./chunk-4QGUBKN5.js";
|
|
66
|
+
import "./chunk-SIQDO5DN.js";
|
|
67
|
+
import "./chunk-LPGE6ACC.js";
|
|
68
|
+
import "./chunk-G5GW3FFJ.js";
|
|
69
|
+
import "./chunk-W46O6RJ5.js";
|
|
70
|
+
import "./chunk-VYCLOFPC.js";
|
|
71
|
+
import "./chunk-Y5E2WNWB.js";
|
|
72
|
+
import "./chunk-2EZFUIL4.js";
|
|
73
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
74
|
+
export {
|
|
75
|
+
DEFAULT_EVERY,
|
|
76
|
+
PLACE_VARIABLES,
|
|
77
|
+
applyAuto,
|
|
78
|
+
autoCommand,
|
|
79
|
+
autoNotice,
|
|
80
|
+
autoState,
|
|
81
|
+
followInstall,
|
|
82
|
+
globalRoots,
|
|
83
|
+
interval,
|
|
84
|
+
lastAutoRun,
|
|
85
|
+
placesOf,
|
|
86
|
+
recordAutoRun,
|
|
87
|
+
serviceUnit,
|
|
88
|
+
timerUnit
|
|
89
|
+
};
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XQ3RZU3J.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KYJBGCTC.js";
|
|
7
|
+
import "./chunk-W46O6RJ5.js";
|
|
8
|
+
import "./chunk-VYCLOFPC.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-2EZFUIL4.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
18
18
|
var customised = false;
|
|
19
19
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
20
20
|
try {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -39,7 +39,7 @@ var CliError = class extends Error {
|
|
|
39
39
|
};
|
|
40
40
|
var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
|
|
41
41
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
43
43
|
var CONTROL = (
|
|
44
44
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
45
45
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W64FO6DD.js";
|
|
6
6
|
import {
|
|
7
7
|
upgradeCommand
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
FETCH,
|
|
11
|
-
annotate,
|
|
12
|
-
overrideSharedContract
|
|
13
|
-
} from "./chunk-PF6LXPK5.js";
|
|
8
|
+
} from "./chunk-FGMFJUHR.js";
|
|
14
9
|
import {
|
|
15
10
|
latestVersion,
|
|
16
11
|
runUpdate,
|
|
17
12
|
updateNotice
|
|
18
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KEBL3PY4.js";
|
|
19
14
|
import {
|
|
20
15
|
APP,
|
|
21
16
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GFVSZY4J.js";
|
|
23
18
|
import {
|
|
24
19
|
installerOf
|
|
25
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NT5IOEEK.js";
|
|
21
|
+
import {
|
|
22
|
+
FETCH,
|
|
23
|
+
annotate,
|
|
24
|
+
overrideSharedContract
|
|
25
|
+
} from "./chunk-XMHWGHID.js";
|
|
26
26
|
import {
|
|
27
27
|
createRenderer,
|
|
28
28
|
resolvePaths
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-W46O6RJ5.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
// dist/update.js
|
|
35
35
|
import { join } from "node:path";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
38
38
|
import { realpathSync } from "node:fs";
|
|
39
39
|
import { fileURLToPath } from "node:url";
|
|
40
40
|
var QUIET_WORDS = [
|
|
@@ -4,7 +4,10 @@ import {
|
|
|
4
4
|
inspectConfig,
|
|
5
5
|
loadConfig,
|
|
6
6
|
memoPermissionKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W64FO6DD.js";
|
|
8
|
+
import {
|
|
9
|
+
APP
|
|
10
|
+
} from "./chunk-GFVSZY4J.js";
|
|
8
11
|
import {
|
|
9
12
|
CEILING_KEY,
|
|
10
13
|
changesAuthority,
|
|
@@ -13,20 +16,17 @@ import {
|
|
|
13
16
|
layerPermissions,
|
|
14
17
|
levelFor,
|
|
15
18
|
metaOf
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XMHWGHID.js";
|
|
17
20
|
import {
|
|
18
21
|
setupPermissionCeiling
|
|
19
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XQHOMQNZ.js";
|
|
20
23
|
import {
|
|
21
24
|
readOnlyLockOf,
|
|
22
25
|
readOnlyRefusal
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
APP
|
|
26
|
-
} from "./chunk-KK3ZHBMI.js";
|
|
26
|
+
} from "./chunk-KUFOM3SB.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2EZFUIL4.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -3,60 +3,35 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NR633L2N.js";
|
|
7
|
+
import {
|
|
8
|
+
providerWaitMs
|
|
9
|
+
} from "./chunk-KA5MDFLU.js";
|
|
7
10
|
import {
|
|
8
11
|
OPENAI_URL
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZTZLAGZA.js";
|
|
10
13
|
import {
|
|
11
14
|
OPENAI_TRANSCRIBE_MODEL,
|
|
12
15
|
VAD,
|
|
13
16
|
filesPresent,
|
|
14
17
|
modelsDirectory,
|
|
15
18
|
vadPath
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SIQDO5DN.js";
|
|
17
20
|
import {
|
|
18
21
|
DEFAULT_RETRY,
|
|
19
22
|
backoffMs
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-W46O6RJ5.js";
|
|
21
24
|
import {
|
|
22
25
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2EZFUIL4.js";
|
|
24
27
|
import {
|
|
25
28
|
__name
|
|
26
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
30
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
29
32
|
import { setTimeout as wait } from "node:timers/promises";
|
|
30
33
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
-
var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
33
|
-
var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
|
|
34
|
-
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
36
|
-
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
37
|
-
if (!header)
|
|
38
|
-
return void 0;
|
|
39
|
-
const trimmed = header.trim();
|
|
40
|
-
if (/^\d+$/.test(trimmed))
|
|
41
|
-
return Number(trimmed) * 1e3;
|
|
42
|
-
const at = Date.parse(trimmed);
|
|
43
|
-
if (Number.isNaN(at))
|
|
44
|
-
return void 0;
|
|
45
|
-
const delta = at - now().getTime();
|
|
46
|
-
return delta > 0 ? delta : void 0;
|
|
47
|
-
}, "parseRetryAfter");
|
|
48
|
-
var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
49
|
-
if (!header)
|
|
50
|
-
return void 0;
|
|
51
|
-
const seconds = Number(header.trim());
|
|
52
|
-
if (!Number.isFinite(seconds))
|
|
53
|
-
return void 0;
|
|
54
|
-
const delta = seconds * 1e3 - now().getTime();
|
|
55
|
-
return delta > 0 ? delta : void 0;
|
|
56
|
-
}, "parseRateLimitReset");
|
|
57
|
-
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
58
|
-
|
|
59
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.620.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_5a9525690cd264264c4a3180795dd7f6/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
60
35
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
61
36
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
62
37
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -77,7 +52,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
77
52
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
78
53
|
}, "encodeWav");
|
|
79
54
|
|
|
80
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
81
56
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
82
57
|
var JOINED_SECONDS = 0.2;
|
|
83
58
|
var PAD_SECONDS = 0.2;
|
|
@@ -199,7 +174,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
199
174
|
return pieces;
|
|
200
175
|
}, "piecesOf");
|
|
201
176
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
202
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
177
|
+
const { openSpeechCutter } = await import("./recognize-3SEY2MAR.js");
|
|
203
178
|
return openSpeechCutter(vadModel);
|
|
204
179
|
}, "openCutter");
|
|
205
180
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2EZFUIL4.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LPGE6ACC.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W46O6RJ5.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2EZFUIL4.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|