@wirecat/notion-cli 0.4.0 → 0.6.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/CHANGELOG.md +58 -0
- package/README.md +5 -0
- package/contracts/wirecat.json +55 -2
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/agent-ILG6AH7S.js +42 -0
- package/dist/bundle/{all-profiles-4IONYZB6.js → all-profiles-AELHUTFU.js} +64 -21
- package/dist/bundle/{anthropic-OXF74J4P.js → anthropic-3CCYAGO3.js} +6 -6
- package/dist/bundle/{app-server-M2VF6ABM.js → app-server-DJ6P4NY4.js} +86 -65
- package/dist/bundle/{bun-DLA6QRLL.js → bun-2FLR4IV4.js} +2 -2
- package/dist/bundle/{bun-sqlite-F4BYLW3F.js → bun-sqlite-QB6CU6TH.js} +7 -7
- package/dist/bundle/chunk-2CMLY2X3.js +72 -0
- package/dist/bundle/{chunk-TZ2QJ53V.js → chunk-2XUV7HNE.js} +2 -2
- package/dist/bundle/{chunk-6JBLIQQN.js → chunk-2Z7UOXFC.js} +1 -1
- package/dist/bundle/{chunk-6GN7KU7X.js → chunk-3LMW7U7F.js} +22 -10
- package/dist/bundle/chunk-3MYN2RMG.js +398 -0
- package/dist/bundle/{chunk-YFWLHTNO.js → chunk-3UX4VJWD.js} +1 -1
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/{chunk-4KUJTSHG.js → chunk-4RFR4J2O.js} +2 -2
- package/dist/bundle/{chunk-OCDJ4FFA.js → chunk-4VXXOJ2F.js} +4 -4
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-P3P6DA6K.js → chunk-5OJLUUOJ.js} +6 -6
- package/dist/bundle/{chunk-T5UNSFES.js → chunk-5XPHFV7H.js} +35 -12
- package/dist/bundle/{chunk-KL3P5TQK.js → chunk-6EJCI47L.js} +4 -4
- package/dist/bundle/chunk-6VPC5Z56.js +2145 -0
- package/dist/bundle/{chunk-IJMFG7HB.js → chunk-6YOMPW7Y.js} +10 -8
- package/dist/bundle/{chunk-7NF3V5L2.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/chunk-7L2XOKDZ.js +353 -0
- package/dist/bundle/{chunk-TXONV3HW.js → chunk-A42T4YX7.js} +3 -3
- package/dist/bundle/chunk-AE4VW4NB.js +50 -0
- package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
- package/dist/bundle/{chunk-L6H7PY4X.js → chunk-AZLDR36U.js} +3 -3
- package/dist/bundle/{chunk-TFNRCCGR.js → chunk-BAXNAOOL.js} +4 -4
- package/dist/bundle/{chunk-QX3TPFEX.js → chunk-BEV5LO4D.js} +110 -862
- package/dist/bundle/{chunk-UROEWCOG.js → chunk-BQBC2WIG.js} +1 -65
- package/dist/bundle/{chunk-NO2LIHWA.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/chunk-CHPWBQUK.js +39 -0
- package/dist/bundle/chunk-CL3YNUCC.js +388 -0
- package/dist/bundle/{chunk-WHJWURZB.js → chunk-DGMTSDKB.js} +6 -6
- package/dist/bundle/{chunk-HTKSCSJU.js → chunk-DHVVXQEL.js} +4 -4
- package/dist/bundle/chunk-DIU2QJJF.js +785 -0
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-Z53LYX4M.js → chunk-EHW45LLT.js} +3 -3
- package/dist/bundle/{chunk-XCTOCVMW.js → chunk-ERN53B3Z.js} +32 -24
- package/dist/bundle/{chunk-CDGZZNGY.js → chunk-ESZHGC4Q.js} +38 -8
- package/dist/bundle/{chunk-RMJMID5D.js → chunk-EZMG5QXB.js} +8 -8
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-Y5LAJWR5.js → chunk-F5ZAN7OC.js} +1 -1
- package/dist/bundle/{chunk-2MHMKNWD.js → chunk-FMMYBVCH.js} +1 -1
- package/dist/bundle/{chunk-WZEEEQGC.js → chunk-FRB2L7OE.js} +3 -3
- package/dist/bundle/chunk-FV4WTZCU.js +561 -0
- package/dist/bundle/{chunk-BEPFGITI.js → chunk-G4ZU73SD.js} +101 -80
- package/dist/bundle/{chunk-5XP4KQ2F.js → chunk-GCAJW4SR.js} +1 -1
- package/dist/bundle/{chunk-FEMHUSGO.js → chunk-GPRJXJC7.js} +15 -1
- package/dist/bundle/chunk-GUIQJUJV.js +340 -0
- package/dist/bundle/{chunk-M2EEIYBU.js → chunk-HHEWTLAT.js} +2 -2
- package/dist/bundle/{chunk-LIQMUDIZ.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-TJCPTRYD.js → chunk-HOVHE3A3.js} +7 -7
- package/dist/bundle/{chunk-YAPDU3SV.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-D6RCRBDH.js → chunk-IJVTN5L3.js} +2 -2
- package/dist/bundle/{chunk-CIVXTBJY.js → chunk-IURYZSG3.js} +39 -52
- package/dist/bundle/chunk-JFSVAOA7.js +108 -0
- package/dist/bundle/{chunk-FSJHASRQ.js → chunk-JVESLS7B.js} +611 -572
- package/dist/bundle/chunk-K5IC4FZN.js +36 -0
- package/dist/bundle/chunk-KB35BVTG.js +30 -0
- package/dist/bundle/chunk-KGAUINBO.js +594 -0
- package/dist/bundle/{chunk-AYU5TFDU.js → chunk-KNCPBX5P.js} +85 -76
- package/dist/bundle/{chunk-GSNE7OB4.js → chunk-KZJQPJK5.js} +4 -4
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-M6DGZ2O6.js → chunk-LC6WE6JS.js} +9 -9
- package/dist/bundle/{chunk-YGCI3DHS.js → chunk-LECMHK2F.js} +1 -1
- package/dist/bundle/chunk-LQVDFD65.js +72 -0
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-K5I64ZVI.js → chunk-NSR43UEW.js} +7 -64
- package/dist/bundle/{chunk-GK4GLPG2.js → chunk-OEQNP56V.js} +2 -100
- package/dist/bundle/{chunk-MGUEZYFA.js → chunk-OLAGFJDM.js} +13 -2143
- package/dist/bundle/{chunk-MRA62W5K.js → chunk-P27NDZQR.js} +255 -563
- package/dist/bundle/{chunk-GBFEEHQC.js → chunk-PHKED7AG.js} +8 -225
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-JODE2XED.js → chunk-Q7EIL6VU.js} +43 -33
- package/dist/bundle/{chunk-4TQVZXOV.js → chunk-QEJFBORC.js} +3 -3
- package/dist/bundle/{chunk-ZC6ZQQ55.js → chunk-QGGRFRMP.js} +65 -49
- package/dist/bundle/{chunk-JIRRF6BM.js → chunk-RD7BKTWV.js} +4 -4
- package/dist/bundle/chunk-RXU5T5NM.js +714 -0
- package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
- package/dist/bundle/{chunk-7NGFGFE5.js → chunk-SAPP2LEH.js} +10 -10
- package/dist/bundle/{chunk-COH7OEER.js → chunk-SEAGUFBX.js} +12 -12
- package/dist/bundle/{chunk-5LBJNTEJ.js → chunk-STTO2MSY.js} +43 -64
- package/dist/bundle/{chunk-5UA2TYMI.js → chunk-T37TAXVL.js} +2 -2
- package/dist/bundle/{chunk-R6SDRSZK.js → chunk-T6XIBULH.js} +139 -571
- package/dist/bundle/chunk-TFT4FVRU.js +67 -0
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-KFVDL2QS.js → chunk-UC7JLE6J.js} +1 -89
- package/dist/bundle/{chunk-SGBS5QCU.js → chunk-UOC52GCB.js} +4 -4
- package/dist/bundle/chunk-UPL474OW.js +94 -0
- package/dist/bundle/chunk-VH7526NL.js +80 -0
- package/dist/bundle/chunk-VNWF4I7E.js +34 -0
- package/dist/bundle/chunk-W2VQDIU5.js +221 -0
- package/dist/bundle/{chunk-EQPAZ33O.js → chunk-WAGADES3.js} +19 -19
- package/dist/bundle/{chunk-WU3XHGOB.js → chunk-WAU5LSHP.js} +81 -438
- package/dist/bundle/{chunk-FIHXADRF.js → chunk-WB2KSQIP.js} +4 -4
- package/dist/bundle/{chunk-OI5DWZJG.js → chunk-WGZH2M64.js} +3 -3
- package/dist/bundle/chunk-WVN2KTNS.js +52 -0
- package/dist/bundle/{chunk-UKE3CGHK.js → chunk-XYQVVW4R.js} +1 -1
- package/dist/bundle/{chunk-7NVPM55S.js → chunk-YDDI4QIT.js} +2203 -1808
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-7YZPBAQX.js → chunk-YUDVRFXN.js} +1 -1
- package/dist/bundle/{chunk-EY6S7FV3.js → chunk-YXYZAWWW.js} +6 -6
- package/dist/bundle/{chunk-GCCPFKSU.js → chunk-YYQ5GKAI.js} +9532 -10735
- package/dist/bundle/chunk-ZDYEOE7L.js +2366 -0
- package/dist/bundle/command-contract-L2FASWD6.js +41 -0
- package/dist/bundle/{command-server-entry-2SORMVRM.js → command-server-entry-VUR6WL77.js} +30 -27
- package/dist/bundle/{decode-5O7IEFPN.js → decode-I64PF2RM.js} +6 -6
- package/dist/bundle/{definitions-M3U4UYHN.js → definitions-MB65223J.js} +72 -18
- package/dist/bundle/{dispatch-YHQX6FEJ.js → dispatch-JQBAZWCL.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-ARLMVQC7.js → echarts-YRRVLEX3.js} +2 -2
- package/dist/bundle/{embed-FUDUKQ3K.js → embed-BLXLKMK2.js} +7 -7
- package/dist/bundle/{embedder-HDRV7GX3.js → embedder-JYGF6R7I.js} +10 -10
- package/dist/bundle/{failure-JHXICWIL.js → failure-I6AAF5R5.js} +3 -3
- package/dist/bundle/first-run-YLDOZGY6.js +29 -0
- package/dist/bundle/first-screen-GZH3LMLZ.js +41 -0
- package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
- package/dist/bundle/hast-util-to-html-IIFHILP5.js +998 -0
- package/dist/bundle/hast-util-to-mdast-3CSMIWK2.js +2272 -0
- package/dist/bundle/{instructions-MEFIKCDI.js → instructions-AG7SRWTR.js} +1 -1
- package/dist/bundle/{mcp-VMS6PBCU.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/{mdast-util-from-markdown-R66F4HZA.js → mdast-util-from-markdown-XCR5KW5S.js} +138 -195
- package/dist/bundle/{mdast-util-gfm-LN2ELINH.js → mdast-util-gfm-JO7PHUIB.js} +28 -357
- package/dist/bundle/mdast-util-to-hast-AYJV7KAE.js +879 -0
- package/dist/bundle/mdast-util-to-markdown-DOXGHRI7.js +1854 -0
- package/dist/bundle/meeting-combined-OFQSGKBG.js +25 -0
- package/dist/bundle/meeting-model-K6NSX3O5.js +27 -0
- package/dist/bundle/{meeting-semantic-R4CSLVRG.js → meeting-semantic-3DZPHM7L.js} +7 -7
- package/dist/bundle/{micromark-extension-gfm-5X7YT43T.js → micromark-extension-gfm-PQ7DWZM7.js} +12 -78
- package/dist/bundle/{node-MAQALPLA.js → node-GJQYN4FT.js} +2 -2
- package/dist/bundle/{node-sqlite-J7IJYNBO.js → node-sqlite-7VXIRQPH.js} +8 -8
- package/dist/bundle/notes-search-ACDOPTNH.js +64 -0
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/oauth-N67CH2TK.js +20 -0
- package/dist/bundle/{open-AB27MTGR.js → open-JGXVHIKO.js} +6 -6
- package/dist/bundle/{openai-D77MU5XV.js → openai-PFQJTF4H.js} +21 -18
- package/dist/bundle/{process-SIOWTRJ6.js → process-MEKCZMX3.js} +1 -1
- package/dist/bundle/{program-7K34KI27.js → program-DUJYLJH5.js} +6947 -6532
- package/dist/bundle/{prompt-W77YDHA6.js → prompt-FW44QDHD.js} +6 -6
- package/dist/bundle/{recognize-3JAXQQ36.js → recognize-62TDQ6A7.js} +5 -5
- package/dist/bundle/{remote-PSOJXCXO.js → remote-7ONFD7GG.js} +12 -11
- package/dist/bundle/{rerank-EE44ZTGL.js → rerank-YOHQQJS4.js} +8 -8
- package/dist/bundle/{schemas-LBYUMBC6.js → schemas-IIGJ7DOP.js} +39 -60
- package/dist/bundle/{serve-XJMGAMFW.js → serve-ZCXGT5RB.js} +11 -11
- package/dist/bundle/{server-ASU6CP5R.js → server-RQ74M637.js} +78 -56
- package/dist/bundle/server-XMZF57WM.js +90 -0
- package/dist/bundle/{services-PT4PA4J6.js → services-FWBRZ57M.js} +105 -90
- package/dist/bundle/{sqlite-runtime-YHXRTVXE.js → sqlite-runtime-ZZBNGV5L.js} +7 -7
- package/dist/bundle/{state-T6ZKFWGD.js → state-GDDFO62Y.js} +7 -7
- package/dist/bundle/{store-E5EE25FY.js → store-D2LRIWEI.js} +24 -20
- package/dist/bundle/{store-3MUCZEI3.js → store-KQCLR57N.js} +32 -18
- package/dist/bundle/store-maintenance-command-CK2MU5M6.js +77 -0
- package/dist/bundle/surface-K4TPIQW7.js +76 -0
- package/dist/commands/account.d.ts +3 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +22 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/commands/api.d.ts +7 -2
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +19 -119
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +16 -5
- package/dist/commands/library.js.map +1 -1
- package/dist/config.d.ts +11 -13
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +63 -54
- package/dist/config.js.map +1 -1
- package/dist/generated/definitions.d.ts.map +1 -1
- package/dist/generated/definitions.js +72 -18
- package/dist/generated/definitions.js.map +1 -1
- package/dist/generated/manifest.d.ts +4 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +69 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +32 -32
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/types.d.ts +125 -25
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/knowledge.d.ts +1 -0
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +68 -2
- package/dist/knowledge.js.map +1 -1
- package/dist/library.d.ts +12 -1
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +35 -1
- package/dist/library.js.map +1 -1
- package/dist/notion/port.d.ts.map +1 -1
- package/dist/notion/port.js +1 -0
- package/dist/notion/port.js.map +1 -1
- package/dist/notion/reads.d.ts +13 -1
- package/dist/notion/reads.d.ts.map +1 -1
- package/dist/notion/reads.js +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +19 -2
- package/dist/program.js.map +1 -1
- package/dist/sync/files.d.ts +19 -0
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/source.d.ts +1 -1
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +60 -55
- package/dist/sync/source.js.map +1 -1
- package/dist/sync/users.d.ts +22 -0
- package/dist/sync/users.d.ts.map +1 -0
- package/dist/sync/users.js +111 -0
- package/dist/sync/users.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-L62XTC7N.js +0 -726
- package/dist/bundle/chunk-SHTHNBHG.js +0 -2
- package/dist/bundle/command-contract-UBXS6NHI.js +0 -38
- package/dist/bundle/first-run-BGEFTXOE.js +0 -29
- package/dist/bundle/first-screen-F5F3VS6Y.js +0 -38
- package/dist/bundle/meeting-combined-HNSS3FQY.js +0 -24
- package/dist/bundle/meeting-model-REZVYGQW.js +0 -26
- package/dist/bundle/oauth-AMV4YGJD.js +0 -20
- package/dist/bundle/server-WSPQ5EOA.js +0 -72
- package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +0 -63
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isoTime,
|
|
8
8
|
parseRegistry,
|
|
9
9
|
text
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3LMW7U7F.js";
|
|
11
11
|
import {
|
|
12
12
|
array,
|
|
13
13
|
getDotPath,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
strictObject,
|
|
22
22
|
string,
|
|
23
23
|
unknown
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-S4UUN6LD.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError,
|
|
27
27
|
visibleControls
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HM6AMYHR.js";
|
|
29
29
|
import {
|
|
30
30
|
__commonJS,
|
|
31
31
|
__name,
|
|
@@ -1898,7 +1898,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1898
1898
|
}
|
|
1899
1899
|
});
|
|
1900
1900
|
|
|
1901
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1901
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1902
1902
|
import { realpathSync } from "node:fs";
|
|
1903
1903
|
import { homedir, userInfo } from "node:os";
|
|
1904
1904
|
import { join, posix, win32 } from "node:path";
|
|
@@ -1972,7 +1972,64 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1972
1972
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1973
1973
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1974
1974
|
|
|
1975
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1975
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
1976
|
+
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
1977
|
+
if (signal?.aborted)
|
|
1978
|
+
return Promise.reject(signal.reason);
|
|
1979
|
+
if (stream.destroyed)
|
|
1980
|
+
return Promise.reject(new Error("output stream closed"));
|
|
1981
|
+
if (!stream.writableNeedDrain)
|
|
1982
|
+
return Promise.resolve();
|
|
1983
|
+
return new Promise((resolve2, reject) => {
|
|
1984
|
+
const cleanup = /* @__PURE__ */ __name(() => {
|
|
1985
|
+
stream.off("drain", drained).off("error", failed).off("close", closed);
|
|
1986
|
+
signal?.removeEventListener("abort", aborted);
|
|
1987
|
+
}, "cleanup");
|
|
1988
|
+
const drained = /* @__PURE__ */ __name(() => {
|
|
1989
|
+
cleanup();
|
|
1990
|
+
resolve2();
|
|
1991
|
+
}, "drained");
|
|
1992
|
+
const failed = /* @__PURE__ */ __name((error) => {
|
|
1993
|
+
cleanup();
|
|
1994
|
+
reject(error);
|
|
1995
|
+
}, "failed");
|
|
1996
|
+
const closed = /* @__PURE__ */ __name(() => failed(new Error("output stream closed before drain")), "closed");
|
|
1997
|
+
const aborted = /* @__PURE__ */ __name(() => failed(signal?.reason), "aborted");
|
|
1998
|
+
stream.once("drain", drained).once("error", failed).once("close", closed);
|
|
1999
|
+
signal?.addEventListener("abort", aborted, { once: true });
|
|
2000
|
+
});
|
|
2001
|
+
}, "waitForDrain");
|
|
2002
|
+
|
|
2003
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2004
|
+
var processStreams = {
|
|
2005
|
+
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2006
|
+
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
2007
|
+
}, "drain"),
|
|
2008
|
+
data: /* @__PURE__ */ __name((text2) => {
|
|
2009
|
+
process.stdout.write(`${text2}
|
|
2010
|
+
`);
|
|
2011
|
+
}, "data"),
|
|
2012
|
+
diagnostic: /* @__PURE__ */ __name((text2) => {
|
|
2013
|
+
process.stderr.write(`${text2}
|
|
2014
|
+
`);
|
|
2015
|
+
}, "diagnostic"),
|
|
2016
|
+
progress: /* @__PURE__ */ __name((text2) => {
|
|
2017
|
+
process.stderr.write(`\r${text2.padEnd(72)}${text2 === "" ? "\r" : ""}`);
|
|
2018
|
+
}, "progress")
|
|
2019
|
+
};
|
|
2020
|
+
var captureStreams = /* @__PURE__ */ __name(() => {
|
|
2021
|
+
const stdout = [];
|
|
2022
|
+
const stderr = [];
|
|
2023
|
+
return {
|
|
2024
|
+
stdout,
|
|
2025
|
+
stderr,
|
|
2026
|
+
data: /* @__PURE__ */ __name((text2) => stdout.push(text2), "data"),
|
|
2027
|
+
diagnostic: /* @__PURE__ */ __name((text2) => stderr.push(text2), "diagnostic"),
|
|
2028
|
+
progress: /* @__PURE__ */ __name((text2) => stderr.push(text2), "progress")
|
|
2029
|
+
};
|
|
2030
|
+
}, "captureStreams");
|
|
2031
|
+
|
|
2032
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
1976
2033
|
var DEFAULT_RETRY = {
|
|
1977
2034
|
retries: 1,
|
|
1978
2035
|
baseDelayMs: 250,
|
|
@@ -1984,7 +2041,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
1984
2041
|
return Math.round(random() * ceiling);
|
|
1985
2042
|
}, "backoffMs");
|
|
1986
2043
|
|
|
1987
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2044
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
1988
2045
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1989
2046
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1990
2047
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2049,7 +2106,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2049
2106
|
return project(value, fields);
|
|
2050
2107
|
}, "projectFields");
|
|
2051
2108
|
|
|
2052
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2109
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2053
2110
|
var BATCH_LIMITS = Object.freeze({
|
|
2054
2111
|
requests: 32,
|
|
2055
2112
|
input_bytes: 262144,
|
|
@@ -2176,7 +2233,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2176
2233
|
};
|
|
2177
2234
|
}, "runBatch");
|
|
2178
2235
|
|
|
2179
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2236
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2180
2237
|
import { randomBytes } from "node:crypto";
|
|
2181
2238
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2182
2239
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2220,16 +2277,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2220
2277
|
`, 384);
|
|
2221
2278
|
}, "saveConfigFile");
|
|
2222
2279
|
|
|
2223
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2280
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2224
2281
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2225
2282
|
var baseConstantsSchema = object({});
|
|
2226
2283
|
var LayerSchema = record(string(), unknown());
|
|
2227
2284
|
|
|
2228
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2285
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2229
2286
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2230
2287
|
import { join as join3, resolve } from "node:path";
|
|
2231
2288
|
|
|
2232
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2289
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2233
2290
|
import { createRequire } from "node:module";
|
|
2234
2291
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2235
2292
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2255,7 +2312,7 @@ var systemKeyring = {
|
|
|
2255
2312
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2256
2313
|
};
|
|
2257
2314
|
|
|
2258
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2315
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2259
2316
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2260
2317
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2261
2318
|
var Credentials = class {
|
|
@@ -2294,7 +2351,12 @@ var Credentials = class {
|
|
|
2294
2351
|
return { secret: fromFile, source: "file" };
|
|
2295
2352
|
if (this.#storage !== "file") {
|
|
2296
2353
|
const temporary = this.#temporaryService;
|
|
2297
|
-
|
|
2354
|
+
let fromKeyring;
|
|
2355
|
+
try {
|
|
2356
|
+
fromKeyring = temporary && this.#keyring.get(temporary, account) || this.#keyring.get(this.#service, account);
|
|
2357
|
+
} catch (error) {
|
|
2358
|
+
throw this.#unreachable(account, error);
|
|
2359
|
+
}
|
|
2298
2360
|
if (fromKeyring)
|
|
2299
2361
|
return { secret: fromKeyring, source: "keyring" };
|
|
2300
2362
|
}
|
|
@@ -2375,6 +2437,10 @@ var Credentials = class {
|
|
|
2375
2437
|
writeSecurely(this.#path(), `${JSON.stringify(store, null, 2)}
|
|
2376
2438
|
`, 384);
|
|
2377
2439
|
}
|
|
2440
|
+
#unreachable(account, error) {
|
|
2441
|
+
const where = this.#storage === "keyring" ? "" : `, and ${this.#path()} holds no sign-in for ${account}`;
|
|
2442
|
+
return new CliError("configuration_error", `the OS keyring did not answer (${error instanceof Error ? error.message : String(error)})${where}. On Linux a restarted session bus is a known cause: log out and back in, or set DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus. On a machine with no keyring, sign in with file storage.`, { reason: "keyring.unreachable" });
|
|
2443
|
+
}
|
|
2378
2444
|
#tryKeyring(operation) {
|
|
2379
2445
|
if (this.#storage === "keyring")
|
|
2380
2446
|
return operation();
|
|
@@ -2390,7 +2456,7 @@ var Credentials = class {
|
|
|
2390
2456
|
}
|
|
2391
2457
|
};
|
|
2392
2458
|
|
|
2393
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2459
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2394
2460
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2395
2461
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2396
2462
|
if (signal?.aborted) {
|
|
@@ -2405,10 +2471,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2405
2471
|
}), "realSleep");
|
|
2406
2472
|
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
2407
2473
|
|
|
2408
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2474
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2409
2475
|
import { appendFileSync } from "node:fs";
|
|
2410
2476
|
|
|
2411
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2477
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2412
2478
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2413
2479
|
var logRecordSchema = strictObject({
|
|
2414
2480
|
time: isoTime,
|
|
@@ -2486,7 +2552,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2486
2552
|
return traceId;
|
|
2487
2553
|
}, "traceIdOf");
|
|
2488
2554
|
|
|
2489
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2555
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2490
2556
|
var REDACTED_FIELDS = [
|
|
2491
2557
|
"authorization",
|
|
2492
2558
|
"Authorization",
|
|
@@ -2580,7 +2646,7 @@ var silent = {
|
|
|
2580
2646
|
}, "error")
|
|
2581
2647
|
};
|
|
2582
2648
|
|
|
2583
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2649
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2584
2650
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2585
2651
|
import { styleText } from "node:util";
|
|
2586
2652
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2654,64 +2720,7 @@ var BORDERLESS = {
|
|
|
2654
2720
|
middle: ""
|
|
2655
2721
|
};
|
|
2656
2722
|
|
|
2657
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2658
|
-
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2659
|
-
if (signal?.aborted)
|
|
2660
|
-
return Promise.reject(signal.reason);
|
|
2661
|
-
if (stream.destroyed)
|
|
2662
|
-
return Promise.reject(new Error("output stream closed"));
|
|
2663
|
-
if (!stream.writableNeedDrain)
|
|
2664
|
-
return Promise.resolve();
|
|
2665
|
-
return new Promise((resolve2, reject) => {
|
|
2666
|
-
const cleanup = /* @__PURE__ */ __name(() => {
|
|
2667
|
-
stream.off("drain", drained).off("error", failed).off("close", closed);
|
|
2668
|
-
signal?.removeEventListener("abort", aborted);
|
|
2669
|
-
}, "cleanup");
|
|
2670
|
-
const drained = /* @__PURE__ */ __name(() => {
|
|
2671
|
-
cleanup();
|
|
2672
|
-
resolve2();
|
|
2673
|
-
}, "drained");
|
|
2674
|
-
const failed = /* @__PURE__ */ __name((error) => {
|
|
2675
|
-
cleanup();
|
|
2676
|
-
reject(error);
|
|
2677
|
-
}, "failed");
|
|
2678
|
-
const closed = /* @__PURE__ */ __name(() => failed(new Error("output stream closed before drain")), "closed");
|
|
2679
|
-
const aborted = /* @__PURE__ */ __name(() => failed(signal?.reason), "aborted");
|
|
2680
|
-
stream.once("drain", drained).once("error", failed).once("close", closed);
|
|
2681
|
-
signal?.addEventListener("abort", aborted, { once: true });
|
|
2682
|
-
});
|
|
2683
|
-
}, "waitForDrain");
|
|
2684
|
-
|
|
2685
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2686
|
-
var processStreams = {
|
|
2687
|
-
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2688
|
-
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
2689
|
-
}, "drain"),
|
|
2690
|
-
data: /* @__PURE__ */ __name((text2) => {
|
|
2691
|
-
process.stdout.write(`${text2}
|
|
2692
|
-
`);
|
|
2693
|
-
}, "data"),
|
|
2694
|
-
diagnostic: /* @__PURE__ */ __name((text2) => {
|
|
2695
|
-
process.stderr.write(`${text2}
|
|
2696
|
-
`);
|
|
2697
|
-
}, "diagnostic"),
|
|
2698
|
-
progress: /* @__PURE__ */ __name((text2) => {
|
|
2699
|
-
process.stderr.write(`\r${text2.padEnd(72)}${text2 === "" ? "\r" : ""}`);
|
|
2700
|
-
}, "progress")
|
|
2701
|
-
};
|
|
2702
|
-
var captureStreams = /* @__PURE__ */ __name(() => {
|
|
2703
|
-
const stdout = [];
|
|
2704
|
-
const stderr = [];
|
|
2705
|
-
return {
|
|
2706
|
-
stdout,
|
|
2707
|
-
stderr,
|
|
2708
|
-
data: /* @__PURE__ */ __name((text2) => stdout.push(text2), "data"),
|
|
2709
|
-
diagnostic: /* @__PURE__ */ __name((text2) => stderr.push(text2), "diagnostic"),
|
|
2710
|
-
progress: /* @__PURE__ */ __name((text2) => stderr.push(text2), "progress")
|
|
2711
|
-
};
|
|
2712
|
-
}, "captureStreams");
|
|
2713
|
-
|
|
2714
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2723
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2715
2724
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2716
2725
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2717
2726
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HM6AMYHR.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/types.js
|
|
8
|
+
var VOID = -1;
|
|
9
|
+
var PRIMITIVE = 0;
|
|
10
|
+
var ARRAY = 1;
|
|
11
|
+
var OBJECT = 2;
|
|
12
|
+
var DATE = 3;
|
|
13
|
+
var REGEXP = 4;
|
|
14
|
+
var MAP = 5;
|
|
15
|
+
var SET = 6;
|
|
16
|
+
var ERROR = 7;
|
|
17
|
+
var BIGINT = 8;
|
|
18
|
+
|
|
19
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/deserialize.js
|
|
20
|
+
var { defineProperty } = Object;
|
|
21
|
+
var env = typeof self === "object" ? self : globalThis;
|
|
22
|
+
var guard = /* @__PURE__ */ __name((name, init) => {
|
|
23
|
+
switch (name) {
|
|
24
|
+
case "Function":
|
|
25
|
+
case "SharedWorker":
|
|
26
|
+
case "Worker":
|
|
27
|
+
case "eval":
|
|
28
|
+
case "setInterval":
|
|
29
|
+
case "setTimeout":
|
|
30
|
+
throw new TypeError("unable to deserialize " + name);
|
|
31
|
+
}
|
|
32
|
+
return new env[name](init);
|
|
33
|
+
}, "guard");
|
|
34
|
+
var deserializer = /* @__PURE__ */ __name(($, _) => {
|
|
35
|
+
const as = /* @__PURE__ */ __name((out, index) => {
|
|
36
|
+
$.set(index, out);
|
|
37
|
+
return out;
|
|
38
|
+
}, "as");
|
|
39
|
+
const unpair = /* @__PURE__ */ __name((index) => {
|
|
40
|
+
if ($.has(index))
|
|
41
|
+
return $.get(index);
|
|
42
|
+
const [type, value] = _[index];
|
|
43
|
+
switch (type) {
|
|
44
|
+
case PRIMITIVE:
|
|
45
|
+
case VOID:
|
|
46
|
+
return as(value, index);
|
|
47
|
+
case ARRAY: {
|
|
48
|
+
const arr = as([], index);
|
|
49
|
+
for (const index2 of value)
|
|
50
|
+
arr.push(unpair(index2));
|
|
51
|
+
return arr;
|
|
52
|
+
}
|
|
53
|
+
case OBJECT: {
|
|
54
|
+
const object = as({}, index);
|
|
55
|
+
for (const [key, index2] of value) {
|
|
56
|
+
const k = unpair(key), value2 = unpair(index2);
|
|
57
|
+
if (k === "__proto__") defineProperty(object, k, {
|
|
58
|
+
value: value2,
|
|
59
|
+
configurable: true,
|
|
60
|
+
enumerable: true,
|
|
61
|
+
writable: true
|
|
62
|
+
});
|
|
63
|
+
else object[k] = value2;
|
|
64
|
+
}
|
|
65
|
+
return object;
|
|
66
|
+
}
|
|
67
|
+
case DATE:
|
|
68
|
+
return as(new Date(value), index);
|
|
69
|
+
case REGEXP: {
|
|
70
|
+
const { source, flags } = value;
|
|
71
|
+
return as(new RegExp(source, flags), index);
|
|
72
|
+
}
|
|
73
|
+
case MAP: {
|
|
74
|
+
const map = as(/* @__PURE__ */ new Map(), index);
|
|
75
|
+
for (const [key, index2] of value)
|
|
76
|
+
map.set(unpair(key), unpair(index2));
|
|
77
|
+
return map;
|
|
78
|
+
}
|
|
79
|
+
case SET: {
|
|
80
|
+
const set = as(/* @__PURE__ */ new Set(), index);
|
|
81
|
+
for (const index2 of value)
|
|
82
|
+
set.add(unpair(index2));
|
|
83
|
+
return set;
|
|
84
|
+
}
|
|
85
|
+
case ERROR: {
|
|
86
|
+
const { name, message } = value;
|
|
87
|
+
return as(
|
|
88
|
+
typeof env[name] === "function" ? guard(name, message) : new Error(message),
|
|
89
|
+
index
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
case BIGINT:
|
|
93
|
+
return as(BigInt(value), index);
|
|
94
|
+
case "BigInt":
|
|
95
|
+
return as(Object(BigInt(value)), index);
|
|
96
|
+
case "ArrayBuffer":
|
|
97
|
+
return as(new Uint8Array(value).buffer, value);
|
|
98
|
+
case "DataView": {
|
|
99
|
+
const { buffer } = new Uint8Array(value);
|
|
100
|
+
return as(new DataView(buffer), value);
|
|
101
|
+
}
|
|
102
|
+
case "-0":
|
|
103
|
+
return -0;
|
|
104
|
+
}
|
|
105
|
+
return as(guard(type, value), index);
|
|
106
|
+
}, "unpair");
|
|
107
|
+
return unpair;
|
|
108
|
+
}, "deserializer");
|
|
109
|
+
var deserialize = /* @__PURE__ */ __name((serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0), "deserialize");
|
|
110
|
+
|
|
111
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/serialize.js
|
|
112
|
+
var EMPTY = "";
|
|
113
|
+
var { toString } = {};
|
|
114
|
+
var { keys, is } = Object;
|
|
115
|
+
var typeOf = /* @__PURE__ */ __name((value) => {
|
|
116
|
+
const type = typeof value;
|
|
117
|
+
if (type !== "object" || !value)
|
|
118
|
+
return [PRIMITIVE, type];
|
|
119
|
+
const asString = toString.call(value).slice(8, -1);
|
|
120
|
+
switch (asString) {
|
|
121
|
+
case "Array":
|
|
122
|
+
return [ARRAY, EMPTY];
|
|
123
|
+
case "Object":
|
|
124
|
+
return [OBJECT, EMPTY];
|
|
125
|
+
case "Date":
|
|
126
|
+
return [DATE, EMPTY];
|
|
127
|
+
case "RegExp":
|
|
128
|
+
return [REGEXP, EMPTY];
|
|
129
|
+
case "Map":
|
|
130
|
+
return [MAP, EMPTY];
|
|
131
|
+
case "Set":
|
|
132
|
+
return [SET, EMPTY];
|
|
133
|
+
case "DataView":
|
|
134
|
+
return [ARRAY, asString];
|
|
135
|
+
}
|
|
136
|
+
if (asString.includes("Array"))
|
|
137
|
+
return [ARRAY, asString];
|
|
138
|
+
if (value instanceof Error)
|
|
139
|
+
return [ERROR, value.name || "Error"];
|
|
140
|
+
return [OBJECT, asString];
|
|
141
|
+
}, "typeOf");
|
|
142
|
+
var shouldSkip = /* @__PURE__ */ __name(([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol"), "shouldSkip");
|
|
143
|
+
var serializer = /* @__PURE__ */ __name((strict, json, $, _) => {
|
|
144
|
+
const as = /* @__PURE__ */ __name((out, value) => {
|
|
145
|
+
const index = _.push(out) - 1;
|
|
146
|
+
$.set(value, index);
|
|
147
|
+
return index;
|
|
148
|
+
}, "as");
|
|
149
|
+
const pair = /* @__PURE__ */ __name((value) => {
|
|
150
|
+
if ($.has(value))
|
|
151
|
+
return $.get(value);
|
|
152
|
+
let [TYPE, type] = typeOf(value);
|
|
153
|
+
switch (TYPE) {
|
|
154
|
+
case PRIMITIVE: {
|
|
155
|
+
let entry = value;
|
|
156
|
+
switch (type) {
|
|
157
|
+
case "bigint":
|
|
158
|
+
TYPE = BIGINT;
|
|
159
|
+
entry = value.toString();
|
|
160
|
+
break;
|
|
161
|
+
case "number":
|
|
162
|
+
if (!value && is(value, -0))
|
|
163
|
+
return _.push(["-0"]) - 1;
|
|
164
|
+
break;
|
|
165
|
+
case "function":
|
|
166
|
+
case "symbol":
|
|
167
|
+
if (strict)
|
|
168
|
+
throw new TypeError("unable to serialize " + type);
|
|
169
|
+
entry = null;
|
|
170
|
+
break;
|
|
171
|
+
case "undefined":
|
|
172
|
+
return as([VOID], value);
|
|
173
|
+
}
|
|
174
|
+
return as([TYPE, entry], value);
|
|
175
|
+
}
|
|
176
|
+
case ARRAY: {
|
|
177
|
+
if (type) {
|
|
178
|
+
let spread = value;
|
|
179
|
+
if (type === "DataView") {
|
|
180
|
+
spread = new Uint8Array(value.buffer);
|
|
181
|
+
} else if (type === "ArrayBuffer") {
|
|
182
|
+
spread = new Uint8Array(value);
|
|
183
|
+
}
|
|
184
|
+
return as([type, [...spread]], value);
|
|
185
|
+
}
|
|
186
|
+
const arr = [];
|
|
187
|
+
const index = as([TYPE, arr], value);
|
|
188
|
+
for (const entry of value)
|
|
189
|
+
arr.push(pair(entry));
|
|
190
|
+
return index;
|
|
191
|
+
}
|
|
192
|
+
case OBJECT: {
|
|
193
|
+
if (type) {
|
|
194
|
+
switch (type) {
|
|
195
|
+
case "BigInt":
|
|
196
|
+
return as([type, value.toString()], value);
|
|
197
|
+
case "Boolean":
|
|
198
|
+
case "Number":
|
|
199
|
+
case "String":
|
|
200
|
+
return as([type, value.valueOf()], value);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (json && "toJSON" in value)
|
|
204
|
+
return pair(value.toJSON());
|
|
205
|
+
const entries = [];
|
|
206
|
+
const index = as([TYPE, entries], value);
|
|
207
|
+
for (const key of keys(value)) {
|
|
208
|
+
if (strict || !shouldSkip(typeOf(value[key])))
|
|
209
|
+
entries.push([pair(key), pair(value[key])]);
|
|
210
|
+
}
|
|
211
|
+
return index;
|
|
212
|
+
}
|
|
213
|
+
case DATE:
|
|
214
|
+
return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);
|
|
215
|
+
case REGEXP: {
|
|
216
|
+
const { source, flags } = value;
|
|
217
|
+
return as([TYPE, { source, flags }], value);
|
|
218
|
+
}
|
|
219
|
+
case MAP: {
|
|
220
|
+
const entries = [];
|
|
221
|
+
const index = as([TYPE, entries], value);
|
|
222
|
+
for (const [key, entry] of value) {
|
|
223
|
+
if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
|
|
224
|
+
entries.push([pair(key), pair(entry)]);
|
|
225
|
+
}
|
|
226
|
+
return index;
|
|
227
|
+
}
|
|
228
|
+
case SET: {
|
|
229
|
+
const entries = [];
|
|
230
|
+
const index = as([TYPE, entries], value);
|
|
231
|
+
for (const entry of value) {
|
|
232
|
+
if (strict || !shouldSkip(typeOf(entry)))
|
|
233
|
+
entries.push(pair(entry));
|
|
234
|
+
}
|
|
235
|
+
return index;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const { message } = value;
|
|
239
|
+
return as([TYPE, { name: type, message }], value);
|
|
240
|
+
}, "pair");
|
|
241
|
+
return pair;
|
|
242
|
+
}, "serializer");
|
|
243
|
+
var serialize = /* @__PURE__ */ __name((value, { json, lossy } = {}) => {
|
|
244
|
+
const _ = [];
|
|
245
|
+
return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
|
|
246
|
+
}, "serialize");
|
|
247
|
+
|
|
248
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/index.js
|
|
249
|
+
var esm_default = typeof structuredClone === "function" ? (
|
|
250
|
+
/* c8 ignore start */
|
|
251
|
+
(any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any)
|
|
252
|
+
) : (any, options) => deserialize(serialize(any, options));
|
|
253
|
+
|
|
254
|
+
// node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js
|
|
255
|
+
var pointEnd = point("end");
|
|
256
|
+
var pointStart = point("start");
|
|
257
|
+
function point(type) {
|
|
258
|
+
return point2;
|
|
259
|
+
function point2(node) {
|
|
260
|
+
const point3 = node && node.position && node.position[type] || {};
|
|
261
|
+
if (typeof point3.line === "number" && point3.line > 0 && typeof point3.column === "number" && point3.column > 0) {
|
|
262
|
+
return {
|
|
263
|
+
line: point3.line,
|
|
264
|
+
column: point3.column,
|
|
265
|
+
offset: typeof point3.offset === "number" && point3.offset > -1 ? point3.offset : void 0
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
__name(point2, "point");
|
|
270
|
+
}
|
|
271
|
+
__name(point, "point");
|
|
272
|
+
function position(node) {
|
|
273
|
+
const start = pointStart(node);
|
|
274
|
+
const end = pointEnd(node);
|
|
275
|
+
if (start && end) {
|
|
276
|
+
return { start, end };
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
__name(position, "position");
|
|
280
|
+
|
|
281
|
+
export {
|
|
282
|
+
esm_default,
|
|
283
|
+
pointEnd,
|
|
284
|
+
pointStart,
|
|
285
|
+
position
|
|
286
|
+
};
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
tagOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-T37TAXVL.js";
|
|
6
6
|
import {
|
|
7
7
|
QUERY_LIMITS,
|
|
8
8
|
parseLucene,
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
queryError,
|
|
11
11
|
validateQuery,
|
|
12
12
|
walkQuery
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JVESLS7B.js";
|
|
14
14
|
import {
|
|
15
15
|
safeParse
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-S4UUN6LD.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError,
|
|
19
19
|
isCliError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HM6AMYHR.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
26
26
|
var QUERY_VERSION = 1;
|
|
27
27
|
var QUERY_LIMITS2 = {
|
|
28
28
|
...QUERY_LIMITS,
|
|
@@ -67,7 +67,7 @@ function tooWideTerm([term], budget) {
|
|
|
67
67
|
}
|
|
68
68
|
__name(tooWideTerm, "tooWideTerm");
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
71
71
|
var FIELD_VERSION = 2;
|
|
72
72
|
var UNITS = {
|
|
73
73
|
"": 1,
|
|
@@ -647,7 +647,7 @@ var QUERY_OPERATORS = [
|
|
|
647
647
|
{ name: "boost / minimum / intervals", example: "invoice^2", semantics: "query.unsupported-operator" }
|
|
648
648
|
];
|
|
649
649
|
|
|
650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
|
|
651
651
|
var REPAIRED = /* @__PURE__ */ new Set([
|
|
652
652
|
"query.invalid-syntax",
|
|
653
653
|
"query.unclosed-literal",
|
|
@@ -691,7 +691,7 @@ var literal = /* @__PURE__ */ __name((word, keepParens, fields) => {
|
|
|
691
691
|
const prefix = FIELD_PREFIX.exec(word);
|
|
692
692
|
const field = prefix && fields.has(prefix[1] ?? "") ? prefix[0] : "";
|
|
693
693
|
const rest = word.slice(field.length);
|
|
694
|
-
const opening = keepParens ? /^[(+-]*/u.exec(rest)?.[0] ?? "" : "";
|
|
694
|
+
const opening = keepParens ? (field ? /^\(*/u : /^[(+-]*/u).exec(rest)?.[0] ?? "" : "";
|
|
695
695
|
const closing = keepParens ? /\)*$/u.exec(rest.slice(opening.length))?.[0] ?? "" : "";
|
|
696
696
|
const body = rest.slice(opening.length, rest.length - closing.length);
|
|
697
697
|
if (!body)
|
|
@@ -790,7 +790,7 @@ var plainQuery = /* @__PURE__ */ __name((text, fields = SEARCH_FIELDS) => {
|
|
|
790
790
|
return text;
|
|
791
791
|
}, "plainQuery");
|
|
792
792
|
|
|
793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/search/fusion.js
|
|
794
794
|
var RRF_K = 60;
|
|
795
795
|
var fuseRanked = /* @__PURE__ */ __name((lists, facts) => {
|
|
796
796
|
const rows = lists.flatMap((list) => list.map((item, rank) => ({ item, vote: 1 / (RRF_K + rank + 1), ...facts(item) })));
|