@wirecat/notion-cli 0.7.0 → 0.8.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 +20 -3
- package/contracts/wirecat.json +238 -2
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/agent-FDS2ENXJ.js +42 -0
- package/dist/bundle/{all-profiles-CKOACXTW.js → all-profiles-MIGUJ6UM.js} +11 -11
- package/dist/bundle/{anthropic-DWBBVTU3.js → anthropic-ZTYBZ7PI.js} +5 -5
- package/dist/bundle/{app-server-BHFYNCDE.js → app-server-MGXJZOJ2.js} +72 -72
- package/dist/bundle/{bun-ICK2XT7J.js → bun-NS5YLOQT.js} +2 -2
- package/dist/bundle/{bun-sqlite-LU5V5Y4A.js → bun-sqlite-EKMD3TXK.js} +6 -6
- package/dist/bundle/{chunk-UYEDQGMI.js → chunk-2BPQNFA5.js} +6 -6
- package/dist/bundle/{chunk-5NFIUY2P.js → chunk-2Q5ATPA6.js} +4 -4
- package/dist/bundle/{chunk-NCCRLAAI.js → chunk-2T76TPDD.js} +3 -3
- package/dist/bundle/{chunk-OCGNOJYD.js → chunk-2TVHFJKV.js} +1 -1
- package/dist/bundle/{chunk-ITWINZ6R.js → chunk-2XWVZDOM.js} +12 -12
- package/dist/bundle/{chunk-IEY7KS6Q.js → chunk-43PCMVTZ.js} +1 -1
- package/dist/bundle/{chunk-KWBLDSRV.js → chunk-53UXHJEO.js} +3 -3
- package/dist/bundle/{chunk-EMIJVLOA.js → chunk-5KL3PQWI.js} +2 -2
- package/dist/bundle/{chunk-SRVTGI3M.js → chunk-5QCPDJLB.js} +2 -2
- package/dist/bundle/{chunk-MB4HXDBT.js → chunk-64KVWK5N.js} +5 -5
- package/dist/bundle/{chunk-ITW26OBI.js → chunk-66M7VFIM.js} +38 -38
- package/dist/bundle/{chunk-QK52ARAU.js → chunk-6BOEXO72.js} +3 -3
- package/dist/bundle/{chunk-ZMKAI3F3.js → chunk-6P7HUUR5.js} +3 -3
- package/dist/bundle/{chunk-LBRTLZHI.js → chunk-77727OQH.js} +197 -155
- package/dist/bundle/{chunk-BXXHUO7Y.js → chunk-7KNBZOLH.js} +13 -13
- package/dist/bundle/{chunk-EUF5JNPG.js → chunk-7YPZPJTB.js} +1 -1
- package/dist/bundle/{chunk-TWY543BS.js → chunk-A5PL2GYK.js} +1 -1
- package/dist/bundle/{chunk-6MQSBWWF.js → chunk-AG34MPVN.js} +1 -1
- package/dist/bundle/{chunk-46JBCXLI.js → chunk-BCO37YUH.js} +327 -6
- package/dist/bundle/{chunk-7COTHS6G.js → chunk-COF6KS7A.js} +6 -6
- package/dist/bundle/{chunk-VXKD533R.js → chunk-CWTTCFDX.js} +995 -610
- package/dist/bundle/{chunk-3T3OAYL4.js → chunk-D2IVASIC.js} +2 -2
- package/dist/bundle/{chunk-PDVXG3T3.js → chunk-D3G375NT.js} +6 -6
- package/dist/bundle/{chunk-3ZSUVFR7.js → chunk-DGZNVYKK.js} +8 -8
- package/dist/bundle/{chunk-FHYV4VWY.js → chunk-DLEAVO2T.js} +7 -7
- package/dist/bundle/{chunk-UQVUXG7H.js → chunk-DW6YAEMZ.js} +10 -10
- package/dist/bundle/{chunk-LEPPRULN.js → chunk-E4FNVLTR.js} +23 -4
- package/dist/bundle/{chunk-VRBEYOJL.js → chunk-E5EYJU5R.js} +1 -1
- package/dist/bundle/{chunk-A3RJ6FD5.js → chunk-E5XATHAF.js} +8 -8
- package/dist/bundle/{chunk-63SW4UXG.js → chunk-EXHTGQR2.js} +1 -1
- package/dist/bundle/{chunk-FO3XY2Y2.js → chunk-EZAVBR47.js} +2 -2
- package/dist/bundle/{chunk-NV7NNL5T.js → chunk-F7DHR4OO.js} +7 -7
- package/dist/bundle/{chunk-4FHKSSXQ.js → chunk-FGWQHNKK.js} +2 -2
- package/dist/bundle/{chunk-B6DJQBZI.js → chunk-FSWLPNJT.js} +5 -5
- package/dist/bundle/{chunk-364ET7LV.js → chunk-GFI3UUIU.js} +1 -1
- package/dist/bundle/{chunk-2OZVCNU5.js → chunk-GGNVBN2S.js} +2 -2
- package/dist/bundle/{chunk-X737FHZP.js → chunk-GPFE4SS7.js} +4 -4
- package/dist/bundle/{chunk-OW5HW3TD.js → chunk-H76WEF2L.js} +6 -6
- package/dist/bundle/{chunk-RNVYNPXT.js → chunk-HPS2YGSZ.js} +1 -1
- package/dist/bundle/{chunk-S5P7THM5.js → chunk-HZ5LRWKH.js} +2 -2
- package/dist/bundle/{chunk-ZGUUP2T3.js → chunk-I5OAVMOI.js} +12 -12
- package/dist/bundle/{chunk-OALFRUMI.js → chunk-I62MWK5L.js} +14 -2
- package/dist/bundle/{chunk-3AKMIKND.js → chunk-IBFCD6TR.js} +17 -17
- package/dist/bundle/{chunk-HJDQTM3T.js → chunk-IL3UYHCR.js} +8 -8
- package/dist/bundle/{chunk-HSVKU4OJ.js → chunk-J4CXJJJU.js} +116 -30
- package/dist/bundle/{chunk-R4JV3VLU.js → chunk-JRZEXLRQ.js} +13 -12
- package/dist/bundle/{chunk-ALAPDLCP.js → chunk-KDPV6YBX.js} +2 -2
- package/dist/bundle/{chunk-BFCRGLOF.js → chunk-KHEISFJO.js} +3 -3
- package/dist/bundle/{chunk-FNESLLZS.js → chunk-KI6OOW6D.js} +8 -1
- package/dist/bundle/{chunk-3DGHBXH2.js → chunk-KPBUJQKT.js} +1 -1
- package/dist/bundle/{chunk-OP2BH55P.js → chunk-LEO5GWPD.js} +3 -3
- package/dist/bundle/{chunk-N3NJPHZB.js → chunk-LKUWH6KU.js} +1 -1
- package/dist/bundle/{chunk-JPGN473W.js → chunk-LYJDZILD.js} +3 -3
- package/dist/bundle/{chunk-JVRBW5LH.js → chunk-M27SMKNH.js} +5 -5
- package/dist/bundle/{chunk-YSF5JBRA.js → chunk-MA6U4XH2.js} +1 -1
- package/dist/bundle/{chunk-64IK7JFO.js → chunk-MC3LAGIW.js} +2 -2
- package/dist/bundle/{chunk-J3DZVB67.js → chunk-MGC2BAD2.js} +1 -1
- package/dist/bundle/{chunk-S35UJBFZ.js → chunk-MLXDGBH4.js} +19 -19
- package/dist/bundle/{chunk-IYZWHCZJ.js → chunk-NQA2STEE.js} +35 -14
- package/dist/bundle/{chunk-2RNJ2JP3.js → chunk-NSBTYJRP.js} +4 -4
- package/dist/bundle/{chunk-REOBWSGV.js → chunk-NSQN4F7H.js} +8 -8
- package/dist/bundle/{chunk-WUNEJRLJ.js → chunk-NVXMWAEV.js} +6 -6
- package/dist/bundle/{chunk-UO4O6WQ4.js → chunk-OZAP4FEG.js} +8 -8
- package/dist/bundle/{chunk-OFMCU3BH.js → chunk-OZZ5PTHG.js} +5 -5
- package/dist/bundle/{chunk-BQ6CXCLP.js → chunk-P4ADIGTL.js} +8 -8
- package/dist/bundle/{chunk-KBY42GKW.js → chunk-PVTW7ZOY.js} +23 -23
- package/dist/bundle/{chunk-PSMRUOII.js → chunk-Q5PNS2K2.js} +3 -3
- package/dist/bundle/{chunk-LVAFTQ45.js → chunk-QQP54EEZ.js} +29 -178
- package/dist/bundle/{chunk-3YXYA6HB.js → chunk-RM4DO2WZ.js} +1 -1
- package/dist/bundle/{chunk-JEZJFQQW.js → chunk-S3SLDYTU.js} +1 -1
- package/dist/bundle/{chunk-RXGX2CZX.js → chunk-S5NFSVNK.js} +63 -63
- package/dist/bundle/{chunk-EWXMIKZN.js → chunk-UE7ST7JC.js} +30 -30
- package/dist/bundle/{chunk-6UZ5D2WP.js → chunk-ULTKZLJV.js} +7 -7
- package/dist/bundle/{chunk-WJFQMOVM.js → chunk-VJ5EF4C7.js} +61 -61
- package/dist/bundle/{chunk-OS4WPXPZ.js → chunk-WBVZVP4T.js} +4 -4
- package/dist/bundle/{chunk-QMNEDK7Z.js → chunk-WDL3QYN2.js} +3 -3
- package/dist/bundle/{chunk-HOO53OYK.js → chunk-WPNY2J2X.js} +16 -16
- package/dist/bundle/{chunk-BFHPT67P.js → chunk-XRA2V4MM.js} +1556 -620
- package/dist/bundle/{chunk-3KOJNZH3.js → chunk-Y6KPZOOD.js} +3 -3
- package/dist/bundle/{chunk-ADCAWRRX.js → chunk-YAYVXHMO.js} +48 -48
- package/dist/bundle/{chunk-DCSPCOPB.js → chunk-YG2FFC2R.js} +9 -9
- package/dist/bundle/{chunk-X5LUHN62.js → chunk-YOZHKJEN.js} +2 -2
- package/dist/bundle/{chunk-VYZ2J7DT.js → chunk-ZKD3TL3O.js} +4 -4
- package/dist/bundle/command-contract-ZGBZCKZP.js +41 -0
- package/dist/bundle/{command-server-entry-F3B2KSPO.js → command-server-entry-ZXB7VUIG.js} +29 -29
- package/dist/bundle/{decode-FDHFF7GC.js → decode-BGLAM2YP.js} +5 -5
- package/dist/bundle/{dispatch-IXKG5Z5Y.js → dispatch-A3WIRXBM.js} +8 -8
- package/dist/bundle/{echarts-PGJPVPA4.js → echarts-ISH62J4E.js} +2 -2
- package/dist/bundle/{embed-U6X7CNNK.js → embed-POZWSFKL.js} +6 -6
- package/dist/bundle/{embedder-3ROL6ROQ.js → embedder-7DIUHQOQ.js} +9 -9
- package/dist/bundle/{failure-IYMRXM2X.js → failure-BBT3B4UY.js} +2 -2
- package/dist/bundle/{first-run-PNVNHGR7.js → first-run-SLMRAWYB.js} +12 -12
- package/dist/bundle/first-screen-CCLGBTQ2.js +41 -0
- package/dist/bundle/{instructions-MJQWRI2D.js → instructions-G5ZGHVFB.js} +1 -1
- package/dist/bundle/{mcp-JNHOSK4L.js → mcp-MQ2L5IIM.js} +2 -2
- package/dist/bundle/meeting-combined-P56K6BUT.js +25 -0
- package/dist/bundle/meeting-model-UY4ABXAZ.js +27 -0
- package/dist/bundle/{meeting-semantic-7WPLMBNT.js → meeting-semantic-VPMFO4FB.js} +6 -6
- package/dist/bundle/{node-3UXNV3CD.js → node-NLJINXVQ.js} +2 -2
- package/dist/bundle/{node-sqlite-ULWDWM3I.js → node-sqlite-LPV27ECD.js} +7 -7
- package/dist/bundle/notes-search-TKP34WJZ.js +64 -0
- package/dist/bundle/notion.js +13 -13
- package/dist/bundle/{oauth-LNUZMA72.js → oauth-SC4HSJ7X.js} +7 -7
- package/dist/bundle/{open-HGHC35M4.js → open-K2JIOWCG.js} +5 -5
- package/dist/bundle/{openai-ISSP57MV.js → openai-MCKQLBZM.js} +18 -18
- package/dist/bundle/{process-PB2WCOR2.js → process-LPVAYRO7.js} +1 -1
- package/dist/bundle/{program-GASBJRMG.js → program-QXA6YXUO.js} +11176 -8685
- package/dist/bundle/{prompt-3VGQVX2B.js → prompt-XWESMSOG.js} +5 -5
- package/dist/bundle/{recognize-7Q2P3NME.js → recognize-TDE6PPXV.js} +4 -4
- package/dist/bundle/{remote-BBAWKVIT.js → remote-OAGPQQVE.js} +11 -11
- package/dist/bundle/{rerank-H4PUS4HV.js → rerank-375AKI4E.js} +7 -7
- package/dist/bundle/{schemas-TTVUADHT.js → schemas-ZE62D6CG.js} +1 -1
- package/dist/bundle/{serve-FZNSKY7R.js → serve-YWCHKQEP.js} +9 -9
- package/dist/bundle/{server-BRRNDW6L.js → server-C4SH5PRK.js} +64 -64
- package/dist/bundle/server-SYGVF5BJ.js +90 -0
- package/dist/bundle/{services-PEU557KZ.js → services-5Z2P4D2K.js} +51 -51
- package/dist/bundle/{sqlite-runtime-4IZJ4YUM.js → sqlite-runtime-KLELNUHI.js} +6 -6
- package/dist/bundle/{state-MX3JVT5Q.js → state-OWEBLXCG.js} +6 -6
- package/dist/bundle/{store-JUT34REM.js → store-F63SKKV7.js} +27 -23
- package/dist/bundle/{store-PP4BPADZ.js → store-IVJXGAX7.js} +21 -21
- package/dist/bundle/store-maintenance-command-YBMOO7XH.js +77 -0
- package/dist/bundle/surface-G3ITURGS.js +76 -0
- package/dist/commands/comments.d.ts +1 -1
- package/dist/commands/comments.d.ts.map +1 -1
- package/dist/commands/comments.js +33 -2
- package/dist/commands/comments.js.map +1 -1
- package/dist/commands/databases.d.ts.map +1 -1
- package/dist/commands/databases.js +3 -2
- package/dist/commands/databases.js.map +1 -1
- package/dist/commands/documents.d.ts +13 -2
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +291 -23
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +12 -4
- package/dist/commands/library.js.map +1 -1
- package/dist/commands/meetings.d.ts +7 -0
- package/dist/commands/meetings.d.ts.map +1 -0
- package/dist/commands/meetings.js +136 -0
- package/dist/commands/meetings.js.map +1 -0
- package/dist/commands/rows.d.ts +4 -0
- package/dist/commands/rows.d.ts.map +1 -0
- package/dist/commands/rows.js +51 -0
- package/dist/commands/rows.js.map +1 -0
- package/dist/commands/writing.d.ts +2 -1
- package/dist/commands/writing.d.ts.map +1 -1
- package/dist/commands/writing.js +2 -2
- package/dist/commands/writing.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +12 -2
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +2 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +2 -0
- package/dist/context.js.map +1 -1
- package/dist/generated/wirecat-config.d.ts.map +1 -1
- package/dist/generated/wirecat-config.js +8 -0
- package/dist/generated/wirecat-config.js.map +1 -1
- package/dist/knowledge.d.ts +18 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/library.d.ts +4 -0
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +11 -1
- package/dist/library.js.map +1 -1
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +19 -0
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/meeting-notes.d.ts +10 -0
- package/dist/notion/meeting-notes.d.ts.map +1 -0
- package/dist/notion/meeting-notes.js +196 -0
- package/dist/notion/meeting-notes.js.map +1 -0
- package/dist/notion/notion.d.ts +46 -0
- package/dist/notion/notion.d.ts.map +1 -1
- package/dist/notion/notion.js +105 -14
- package/dist/notion/notion.js.map +1 -1
- package/dist/notion/page-target.d.ts +30 -0
- package/dist/notion/page-target.d.ts.map +1 -0
- package/dist/notion/page-target.js +73 -0
- package/dist/notion/page-target.js.map +1 -0
- package/dist/notion/port.d.ts.map +1 -1
- package/dist/notion/port.js +2 -0
- package/dist/notion/port.js.map +1 -1
- package/dist/notion/properties.d.ts +55 -0
- package/dist/notion/properties.d.ts.map +1 -0
- package/dist/notion/properties.js +280 -0
- package/dist/notion/properties.js.map +1 -0
- package/dist/notion/reads.d.ts +19 -1
- package/dist/notion/reads.d.ts.map +1 -1
- package/dist/notion/reads.js +2 -1
- package/dist/notion/reads.js.map +1 -1
- package/dist/notion/rows.d.ts +14 -0
- package/dist/notion/rows.d.ts.map +1 -0
- package/dist/notion/rows.js +119 -0
- package/dist/notion/rows.js.map +1 -0
- package/dist/notion/writes.d.ts +99 -0
- package/dist/notion/writes.d.ts.map +1 -1
- package/dist/notion/writes.js +278 -67
- package/dist/notion/writes.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +7 -1
- package/dist/program.js.map +1 -1
- package/dist/sync/comments.d.ts +12 -0
- package/dist/sync/comments.d.ts.map +1 -0
- package/dist/sync/comments.js +47 -0
- package/dist/sync/comments.js.map +1 -0
- package/dist/sync/files.d.ts +7 -1
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/from-config.d.ts.map +1 -1
- package/dist/sync/from-config.js +5 -4
- package/dist/sync/from-config.js.map +1 -1
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +21 -9
- package/dist/sync/source.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/notion-cli/SKILL.md +29 -3
- package/dist/bundle/agent-AILW4JPO.js +0 -42
- package/dist/bundle/command-contract-C2CF4QAH.js +0 -41
- package/dist/bundle/first-screen-DEDD64YH.js +0 -41
- package/dist/bundle/meeting-combined-HEC25QPY.js +0 -25
- package/dist/bundle/meeting-model-R7QPDNZZ.js +0 -27
- package/dist/bundle/notes-search-7PE3E3C7.js +0 -64
- package/dist/bundle/server-CQJ4LKAZ.js +0 -90
- package/dist/bundle/store-maintenance-command-GRFTJBSB.js +0 -77
- package/dist/bundle/surface-FPWES3NY.js +0 -76
- package/dist/bundle/{hast-util-from-html-X2DCPS3T.js → hast-util-from-html-237ZT4C7.js} +3 -3
- package/dist/bundle/{hast-util-to-mdast-3CSMIWK2.js → hast-util-to-mdast-H5COQ6HJ.js} +6 -6
- package/dist/bundle/{mdast-util-gfm-JO7PHUIB.js → mdast-util-gfm-M3K5BNY2.js} +16 -16
- package/dist/bundle/{mdast-util-to-hast-AYJV7KAE.js → mdast-util-to-hast-TSB5MAAV.js} +1 -1
- package/dist/bundle/{mdast-util-to-markdown-DOXGHRI7.js → mdast-util-to-markdown-SG6455IT.js} +10 -10
- package/dist/bundle/{micromark-extension-gfm-PQ7DWZM7.js → micromark-extension-gfm-7SUOOQ3A.js} +3 -3
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
singleLine
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FGWQHNKK.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
12
12
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
13
13
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
14
14
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3,29 +3,29 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
textModel,
|
|
5
5
|
vectorModelKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FSWLPNJT.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENAI_URL,
|
|
9
9
|
openRemote,
|
|
10
10
|
remoteKey,
|
|
11
11
|
remoteModel
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M27SMKNH.js";
|
|
13
13
|
import {
|
|
14
14
|
endpointFetch
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LEO5GWPD.js";
|
|
16
16
|
import {
|
|
17
17
|
isTextModelInstalled,
|
|
18
18
|
openEmbedder,
|
|
19
19
|
textModelsDirectory
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BCO37YUH.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FGWQHNKK.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.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
|
|
29
29
|
var integer = /* @__PURE__ */ __name((value, name, max) => {
|
|
30
30
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
31
31
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
endpoint
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LEO5GWPD.js";
|
|
6
6
|
import {
|
|
7
7
|
filesPresent,
|
|
8
8
|
sharedModelsDirectory
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2Q5ATPA6.js";
|
|
10
10
|
import {
|
|
11
11
|
check,
|
|
12
12
|
getDotPath,
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
CliError,
|
|
27
27
|
isCliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FGWQHNKK.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
34
34
|
import { readFileSync } from "node:fs";
|
|
35
35
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
36
36
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -84,7 +84,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
84
84
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
85
85
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
86
86
|
|
|
87
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
87
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
88
88
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
89
89
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
90
90
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -141,7 +141,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
141
141
|
};
|
|
142
142
|
}, "runBudget");
|
|
143
143
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
145
145
|
import { join } from "node:path";
|
|
146
146
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
147
147
|
var IMAGE_MODELS = [
|
|
@@ -195,7 +195,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
195
195
|
var placedImage = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join(directory, model.id, file.name)]), "placedImage");
|
|
196
196
|
var isImageModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedImage(model, directory)), "isImageModelInstalled");
|
|
197
197
|
|
|
198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
199
199
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
200
200
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
201
201
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -264,7 +264,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
264
264
|
};
|
|
265
265
|
}, "modelTarget");
|
|
266
266
|
|
|
267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
268
268
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
269
269
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
270
270
|
messageId: message.id,
|
|
@@ -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-D2IVASIC.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-S5NFSVNK.js";
|
|
14
14
|
import {
|
|
15
15
|
safeParse
|
|
16
16
|
} from "./chunk-S4UUN6LD.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError,
|
|
19
19
|
isCliError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FGWQHNKK.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.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/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,
|
|
@@ -73,7 +73,7 @@ function tooWideTerm([term], budget) {
|
|
|
73
73
|
}
|
|
74
74
|
__name(tooWideTerm, "tooWideTerm");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
77
77
|
var FIELD_VERSION = 2;
|
|
78
78
|
var UNITS = {
|
|
79
79
|
"": 1,
|
|
@@ -653,7 +653,7 @@ var QUERY_OPERATORS = [
|
|
|
653
653
|
{ name: "boost / minimum / intervals", example: "invoice^2", semantics: "query.unsupported-operator" }
|
|
654
654
|
];
|
|
655
655
|
|
|
656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
|
|
657
657
|
var REPAIRED = /* @__PURE__ */ new Set([
|
|
658
658
|
"query.invalid-syntax",
|
|
659
659
|
"query.unclosed-literal",
|
|
@@ -796,7 +796,7 @@ var plainQuery = /* @__PURE__ */ __name((text, fields = SEARCH_FIELDS) => {
|
|
|
796
796
|
return text;
|
|
797
797
|
}, "plainQuery");
|
|
798
798
|
|
|
799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/fusion.js
|
|
800
800
|
var RRF_K = 60;
|
|
801
801
|
var fuseRanked = /* @__PURE__ */ __name((lists, facts) => {
|
|
802
802
|
const rows = lists.flatMap((list) => list.map((item, rank) => ({ item, vote: 1 / (RRF_K + rank + 1), ...facts(item) })));
|
|
@@ -5,33 +5,33 @@ import {
|
|
|
5
5
|
parseReference,
|
|
6
6
|
providerLabel,
|
|
7
7
|
providerNamed
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7KNBZOLH.js";
|
|
9
9
|
import {
|
|
10
10
|
QUERY_LIMITS,
|
|
11
11
|
exhausted,
|
|
12
12
|
searchError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DLEAVO2T.js";
|
|
14
14
|
import {
|
|
15
15
|
fold
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AG34MPVN.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError,
|
|
19
19
|
singleLine
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FGWQHNKK.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.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
|
|
26
26
|
var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
|
|
27
27
|
var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
|
|
28
28
|
var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
|
|
31
31
|
var profilesOn = /* @__PURE__ */ __name((profiles, app, key) => Object.entries(profiles[app] ?? {}).filter(([, saved]) => saved.provider === key.provider && saved.account === key.account).map(([name]) => name), "profilesOn");
|
|
32
32
|
var oneLine = /* @__PURE__ */ __name((text) => singleLine(text.replace(/\s+/g, " ").trim()), "oneLine");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
35
35
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
36
36
|
var literal = /* @__PURE__ */ __name((c) => ({
|
|
37
37
|
kind: "char",
|
|
@@ -431,7 +431,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
431
431
|
return out;
|
|
432
432
|
}, "foldRegex");
|
|
433
433
|
|
|
434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
435
435
|
var TAKES = {
|
|
436
436
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
437
437
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -491,7 +491,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn2)
|
|
|
491
491
|
throw wrongAccount(reference, scope, profiles);
|
|
492
492
|
}, "ensureAccount");
|
|
493
493
|
|
|
494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
495
495
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
496
496
|
const padded = ` ${term} `;
|
|
497
497
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -500,7 +500,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
500
500
|
return [...pieces];
|
|
501
501
|
}, "trigrams");
|
|
502
502
|
|
|
503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
504
504
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
505
505
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
506
506
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
providerWaitMs,
|
|
5
5
|
statusToCode
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-H76WEF2L.js";
|
|
7
7
|
import {
|
|
8
8
|
defineReasons
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E5XATHAF.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError,
|
|
12
12
|
isCliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FGWQHNKK.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
16
16
|
__name,
|
|
@@ -2991,6 +2991,11 @@ var REASONS = defineReasons([
|
|
|
2991
2991
|
["notion.conflict", "conflict", "Notion could not save it because it changed at the same time"],
|
|
2992
2992
|
["file.refused-place", "validation_error", "a credential file or a WireCat folder is never sent to Notion"],
|
|
2993
2993
|
["notion.text-refused", "validation_error", "Notion refused the new text of a page"],
|
|
2994
|
+
["notion.edit-no-match", "validation_error", "an edit's old text is not on the page; nothing was sent"],
|
|
2995
|
+
["notion.edit-many-matches", "validation_error", "an edit's old text is on the page more than once"],
|
|
2996
|
+
["notion.edit-partial", "provider_error", "Notion made only some of the edits"],
|
|
2997
|
+
["notion.meeting-notes-unavailable", "validation_error", "the workspace has no AI meeting notes for this user"],
|
|
2998
|
+
["notion.page-not-whole", "validation_error", "a page too long to read whole has no fingerprint to write at"],
|
|
2994
2999
|
["notion.rate-limited", "rate_limited", "Notion asked to slow down"],
|
|
2995
3000
|
["notion.unavailable", "provider_unavailable", "Notion is down or overloaded"],
|
|
2996
3001
|
["notion.invalid-response", "invalid_response", "Notion's answer does not have the documented shape"],
|
|
@@ -3008,6 +3013,20 @@ var REASONS = defineReasons([
|
|
|
3008
3013
|
["notion.listing-restarted", "validation_error", "Notion no longer took a saved list position; it started over"],
|
|
3009
3014
|
["notion.listing-stale", "not_found", "Notion no longer takes a folder's saved position; it is listed again"],
|
|
3010
3015
|
["notion.timeout-too-short", "timeout", "the time left was too short for one step of the sync"],
|
|
3016
|
+
[
|
|
3017
|
+
"notion.value-invalid",
|
|
3018
|
+
"validation_error",
|
|
3019
|
+
"a value does not fit the database's property",
|
|
3020
|
+
["properties", "choices", "operators", "template_ids"]
|
|
3021
|
+
],
|
|
3022
|
+
[
|
|
3023
|
+
"notion.data-source-ambiguous",
|
|
3024
|
+
"validation_error",
|
|
3025
|
+
"the database has more than one data source; name one",
|
|
3026
|
+
["data_source_ids"]
|
|
3027
|
+
],
|
|
3028
|
+
["notion.not-own-comment", "permission_error", "a connection changes or deletes only the comments it posted"],
|
|
3029
|
+
["notion.comments-unread", "permission_error", "the connection may not read comments; they are left out"],
|
|
3011
3030
|
["notion.upload-unfinished", "invalid_response", "Notion did not mark the file upload as uploaded"],
|
|
3012
3031
|
["source.text-limit", "validation_error", "the page is longer than the text the store keeps"],
|
|
3013
3032
|
["profile.not-synced", "not_found", "the profile has no local copy yet; sync first"],
|
|
@@ -3116,7 +3135,7 @@ var notionRefusal = /* @__PURE__ */ __name((status, answer) => {
|
|
|
3116
3135
|
}, "notionRefusal");
|
|
3117
3136
|
|
|
3118
3137
|
// dist/version.js
|
|
3119
|
-
var VERSION = "0.
|
|
3138
|
+
var VERSION = "0.8.0";
|
|
3120
3139
|
|
|
3121
3140
|
// dist/identity.js
|
|
3122
3141
|
var PACKAGE = "@wirecat/notion-cli";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/monthly.js
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
var CI_PAGE = join(dirname(fileURLToPath(new URL("standards/monthly.js", import.meta.resolve("@wirecat/cli-base")).href)), "../../docs/standards/ci.md");
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
errorCodes,
|
|
30
30
|
isCliError,
|
|
31
31
|
visibleControls
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FGWQHNKK.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
38
38
|
var EXIT_CODES = {
|
|
39
39
|
validation_error: 2,
|
|
40
40
|
configuration_error: 3,
|
|
@@ -55,7 +55,7 @@ var EXIT_CODES = {
|
|
|
55
55
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
56
56
|
var GENERIC_FAILURE = 1;
|
|
57
57
|
|
|
58
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
58
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
59
59
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
60
60
|
var effectsSchema = strictObject({
|
|
61
61
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -692,7 +692,7 @@ function toStandardJsonSchema(schema) {
|
|
|
692
692
|
}
|
|
693
693
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
694
694
|
|
|
695
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
695
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
696
696
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
697
697
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
698
698
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -734,7 +734,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
734
734
|
return String(value);
|
|
735
735
|
}), "fill");
|
|
736
736
|
|
|
737
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
737
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
738
738
|
var MAX_NEXT_STEPS = 2;
|
|
739
739
|
var COMPACT_FLAG = "--compact";
|
|
740
740
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -879,7 +879,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
879
879
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
880
880
|
].join("\n"), "jsonlOf");
|
|
881
881
|
|
|
882
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
882
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
883
883
|
var CRASH_CODE = "internal_error";
|
|
884
884
|
var CRASH_REASON = "command.crashed";
|
|
885
885
|
var errorObjectSchema = strictObject({
|
|
@@ -978,7 +978,7 @@ var BASE_REASONS = defineReasons([
|
|
|
978
978
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
979
979
|
]);
|
|
980
980
|
|
|
981
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
981
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
982
982
|
var SAME_COMMAND = "*";
|
|
983
983
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
984
984
|
var stepSchema = union([
|
|
@@ -1057,7 +1057,7 @@ var STEPS = defineSteps([
|
|
|
1057
1057
|
}
|
|
1058
1058
|
]);
|
|
1059
1059
|
|
|
1060
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1060
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
1061
1061
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
1062
1062
|
if (isCliError(failure))
|
|
1063
1063
|
return failure;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { pipeline, Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P4ADIGTL.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -2,24 +2,24 @@ 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-YOZHKJEN.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MLXDGBH4.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError,
|
|
12
12
|
singleLine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FGWQHNKK.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { dirname, join, resolve } from "node:path";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
|
|
23
23
|
var REPAIR_WORDS = {
|
|
24
24
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
25
25
|
comment: "a comment, which JSON does not allow",
|
|
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
|
|
|
303
303
|
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
304
304
|
}, "explainBrokenJson");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
307
307
|
var DEFAULT_TASK_CATEGORIES = [
|
|
308
308
|
{
|
|
309
309
|
name: "taxes",
|
|
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}, "storedTaskCategories");
|
|
1060
1060
|
|
|
1061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
1062
1062
|
var SECTION = "task_categories";
|
|
1063
1063
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
1064
1064
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -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.130.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.130.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
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F7DHR4OO.js";
|
|
8
8
|
import {
|
|
9
9
|
filesPresent,
|
|
10
10
|
sharedModelsDirectory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2Q5ATPA6.js";
|
|
12
12
|
import {
|
|
13
13
|
storePath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YOZHKJEN.js";
|
|
15
15
|
import {
|
|
16
16
|
array,
|
|
17
17
|
check,
|
|
@@ -35,12 +35,12 @@ import {
|
|
|
35
35
|
} from "./chunk-S4UUN6LD.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FGWQHNKK.js";
|
|
39
39
|
import {
|
|
40
40
|
__name
|
|
41
41
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
44
44
|
import { existsSync } from "node:fs";
|
|
45
45
|
import { join } from "node:path";
|
|
46
46
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-5XR7K42U.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NVXMWAEV.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-53UXHJEO.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.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
backoffMs,
|
|
6
6
|
realSleep,
|
|
7
7
|
wallClock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MLXDGBH4.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
isCliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FGWQHNKK.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
|
|
18
18
|
var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
|
|
19
19
|
var checked = /* @__PURE__ */ __name((signal) => {
|
|
20
20
|
if (signal?.aborted)
|
|
@@ -99,7 +99,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
|
|
|
99
99
|
}
|
|
100
100
|
}, "readJsonResponse");
|
|
101
101
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
|
|
103
103
|
var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
104
104
|
var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
|
|
105
105
|
var hostProblems = /* @__PURE__ */ __name((hosts) => [
|
|
@@ -111,7 +111,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
|
|
|
111
111
|
return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
|
|
112
112
|
}, "hostCovered");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
|
|
115
115
|
var HOST_FETCH_TIMEOUT_MS = 3e4;
|
|
116
116
|
var REDIRECTS = 5;
|
|
117
117
|
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -229,7 +229,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
229
229
|
};
|
|
230
230
|
}, "hostFetch");
|
|
231
231
|
|
|
232
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
232
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.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
|
|
233
233
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
234
234
|
if (!header)
|
|
235
235
|
return void 0;
|