@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
|
@@ -1,44 +1,46 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
ccount
|
|
5
|
+
} from "./chunk-MEYYH47C.js";
|
|
6
|
+
import {
|
|
7
|
+
normalizeIdentifier
|
|
8
|
+
} from "./chunk-F4BX7TH2.js";
|
|
9
|
+
import {
|
|
10
|
+
longestStreak
|
|
11
|
+
} from "./chunk-VNWF4I7E.js";
|
|
12
|
+
import {
|
|
13
|
+
classifyCharacter,
|
|
14
|
+
htmlBlockNames,
|
|
15
|
+
htmlRawNames
|
|
16
|
+
} from "./chunk-UPL474OW.js";
|
|
17
|
+
import {
|
|
18
|
+
phrasing
|
|
19
|
+
} from "./chunk-NMQRSEZM.js";
|
|
3
20
|
import {
|
|
4
21
|
toString
|
|
5
22
|
} from "./chunk-XFLCVHSQ.js";
|
|
23
|
+
import {
|
|
24
|
+
ok
|
|
25
|
+
} from "./chunk-ECYOTDJM.js";
|
|
6
26
|
import {
|
|
7
27
|
asciiAlpha,
|
|
8
28
|
asciiAlphanumeric,
|
|
9
29
|
asciiPunctuation,
|
|
10
|
-
classifyCharacter,
|
|
11
|
-
htmlBlockNames,
|
|
12
|
-
htmlRawNames,
|
|
13
|
-
normalizeIdentifier,
|
|
14
30
|
unicodePunctuation,
|
|
15
31
|
unicodeWhitespace
|
|
16
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UC7JLE6J.js";
|
|
33
|
+
import {
|
|
34
|
+
EXIT,
|
|
35
|
+
SKIP,
|
|
36
|
+
convert,
|
|
37
|
+
visit,
|
|
38
|
+
visitParents
|
|
39
|
+
} from "./chunk-TRYYWV7J.js";
|
|
17
40
|
import {
|
|
18
41
|
__name
|
|
19
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
43
|
|
|
21
|
-
// node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js
|
|
22
|
-
function ccount(value, character) {
|
|
23
|
-
const source = String(value);
|
|
24
|
-
if (typeof character !== "string") {
|
|
25
|
-
throw new TypeError("Expected character");
|
|
26
|
-
}
|
|
27
|
-
let count = 0;
|
|
28
|
-
let index = source.indexOf(character);
|
|
29
|
-
while (index !== -1) {
|
|
30
|
-
count++;
|
|
31
|
-
index = source.indexOf(character, index + character.length);
|
|
32
|
-
}
|
|
33
|
-
return count;
|
|
34
|
-
}
|
|
35
|
-
__name(ccount, "ccount");
|
|
36
|
-
|
|
37
|
-
// node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js
|
|
38
|
-
function ok() {
|
|
39
|
-
}
|
|
40
|
-
__name(ok, "ok");
|
|
41
|
-
|
|
42
44
|
// node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
|
|
43
45
|
function escapeStringRegexp(string) {
|
|
44
46
|
if (typeof string !== "string") {
|
|
@@ -48,245 +50,6 @@ function escapeStringRegexp(string) {
|
|
|
48
50
|
}
|
|
49
51
|
__name(escapeStringRegexp, "escapeStringRegexp");
|
|
50
52
|
|
|
51
|
-
// node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js
|
|
52
|
-
var convert = (
|
|
53
|
-
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
54
|
-
/**
|
|
55
|
-
* @type {(
|
|
56
|
-
* (<Condition extends string>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
|
|
57
|
-
* (<Condition extends Props>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
|
|
58
|
-
* (<Condition extends TestFunction>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
|
|
59
|
-
* ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &
|
|
60
|
-
* ((test?: Test) => Check)
|
|
61
|
-
* )}
|
|
62
|
-
*/
|
|
63
|
-
/**
|
|
64
|
-
* @param {Test} [test]
|
|
65
|
-
* @returns {Check}
|
|
66
|
-
*/
|
|
67
|
-
/* @__PURE__ */ __name((function(test) {
|
|
68
|
-
if (test === null || test === void 0) {
|
|
69
|
-
return ok2;
|
|
70
|
-
}
|
|
71
|
-
if (typeof test === "function") {
|
|
72
|
-
return castFactory(test);
|
|
73
|
-
}
|
|
74
|
-
if (typeof test === "object") {
|
|
75
|
-
return Array.isArray(test) ? anyFactory(test) : (
|
|
76
|
-
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
77
|
-
// narrows to `Array`.
|
|
78
|
-
propertiesFactory(
|
|
79
|
-
/** @type {Props} */
|
|
80
|
-
test
|
|
81
|
-
)
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
if (typeof test === "string") {
|
|
85
|
-
return typeFactory(test);
|
|
86
|
-
}
|
|
87
|
-
throw new Error("Expected function, string, or object as test");
|
|
88
|
-
}), "convert")
|
|
89
|
-
);
|
|
90
|
-
function anyFactory(tests) {
|
|
91
|
-
const checks = [];
|
|
92
|
-
let index = -1;
|
|
93
|
-
while (++index < tests.length) {
|
|
94
|
-
checks[index] = convert(tests[index]);
|
|
95
|
-
}
|
|
96
|
-
return castFactory(any);
|
|
97
|
-
function any(...parameters) {
|
|
98
|
-
let index2 = -1;
|
|
99
|
-
while (++index2 < checks.length) {
|
|
100
|
-
if (checks[index2].apply(this, parameters)) return true;
|
|
101
|
-
}
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
__name(any, "any");
|
|
105
|
-
}
|
|
106
|
-
__name(anyFactory, "anyFactory");
|
|
107
|
-
function propertiesFactory(check2) {
|
|
108
|
-
const checkAsRecord = (
|
|
109
|
-
/** @type {Record<string, unknown>} */
|
|
110
|
-
check2
|
|
111
|
-
);
|
|
112
|
-
return castFactory(all);
|
|
113
|
-
function all(node) {
|
|
114
|
-
const nodeAsRecord = (
|
|
115
|
-
/** @type {Record<string, unknown>} */
|
|
116
|
-
/** @type {unknown} */
|
|
117
|
-
node
|
|
118
|
-
);
|
|
119
|
-
let key;
|
|
120
|
-
for (key in check2) {
|
|
121
|
-
if (nodeAsRecord[key] !== checkAsRecord[key]) return false;
|
|
122
|
-
}
|
|
123
|
-
return true;
|
|
124
|
-
}
|
|
125
|
-
__name(all, "all");
|
|
126
|
-
}
|
|
127
|
-
__name(propertiesFactory, "propertiesFactory");
|
|
128
|
-
function typeFactory(check2) {
|
|
129
|
-
return castFactory(type);
|
|
130
|
-
function type(node) {
|
|
131
|
-
return node && node.type === check2;
|
|
132
|
-
}
|
|
133
|
-
__name(type, "type");
|
|
134
|
-
}
|
|
135
|
-
__name(typeFactory, "typeFactory");
|
|
136
|
-
function castFactory(testFunction) {
|
|
137
|
-
return check2;
|
|
138
|
-
function check2(value, index, parent) {
|
|
139
|
-
return Boolean(
|
|
140
|
-
looksLikeANode(value) && testFunction.call(
|
|
141
|
-
this,
|
|
142
|
-
value,
|
|
143
|
-
typeof index === "number" ? index : void 0,
|
|
144
|
-
parent || void 0
|
|
145
|
-
)
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
__name(check2, "check");
|
|
149
|
-
}
|
|
150
|
-
__name(castFactory, "castFactory");
|
|
151
|
-
function ok2() {
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
__name(ok2, "ok");
|
|
155
|
-
function looksLikeANode(value) {
|
|
156
|
-
return value !== null && typeof value === "object" && "type" in value;
|
|
157
|
-
}
|
|
158
|
-
__name(looksLikeANode, "looksLikeANode");
|
|
159
|
-
|
|
160
|
-
// node_modules/.pnpm/unist-util-visit-parents@6.1.0/node_modules/unist-util-visit-parents/lib/color.node.js
|
|
161
|
-
function color(d) {
|
|
162
|
-
return "\x1B[33m" + d + "\x1B[39m";
|
|
163
|
-
}
|
|
164
|
-
__name(color, "color");
|
|
165
|
-
|
|
166
|
-
// node_modules/.pnpm/unist-util-visit-parents@6.1.0/node_modules/unist-util-visit-parents/lib/index.js
|
|
167
|
-
var empty = [];
|
|
168
|
-
var CONTINUE = true;
|
|
169
|
-
var EXIT = false;
|
|
170
|
-
var SKIP = "skip";
|
|
171
|
-
function visitParents(tree, testOrEnterOrVisitors, enterOrVisitorsOrReverse, reverse) {
|
|
172
|
-
if (!tree || typeof tree !== "object") {
|
|
173
|
-
throw new Error("Unexpected value `" + tree + "` for `tree`, expected node");
|
|
174
|
-
}
|
|
175
|
-
let preorder = true;
|
|
176
|
-
let check2;
|
|
177
|
-
let visitors;
|
|
178
|
-
let enter;
|
|
179
|
-
let exit2;
|
|
180
|
-
if (typeof enterOrVisitorsOrReverse === "function" || enterOrVisitorsOrReverse && typeof enterOrVisitorsOrReverse === "object") {
|
|
181
|
-
check2 = /** @type {Test} */
|
|
182
|
-
testOrEnterOrVisitors;
|
|
183
|
-
visitors = enterOrVisitorsOrReverse;
|
|
184
|
-
if (reverse) preorder = false;
|
|
185
|
-
} else {
|
|
186
|
-
visitors = /** @type {Visitors | Visitor} */
|
|
187
|
-
testOrEnterOrVisitors;
|
|
188
|
-
if (enterOrVisitorsOrReverse) preorder = false;
|
|
189
|
-
}
|
|
190
|
-
if (typeof visitors === "function") {
|
|
191
|
-
enter = visitors;
|
|
192
|
-
} else if (visitors && typeof visitors === "object") {
|
|
193
|
-
if (visitors.enter === null || visitors.enter === void 0) {
|
|
194
|
-
} else if (typeof visitors.enter === "function") {
|
|
195
|
-
enter = visitors.enter;
|
|
196
|
-
} else {
|
|
197
|
-
throw new Error(
|
|
198
|
-
"Unexpected value `" + visitors.enter + "` for `visitors.enter`, expected optional visitor"
|
|
199
|
-
);
|
|
200
|
-
}
|
|
201
|
-
if (typeof visitors.exit === "function") {
|
|
202
|
-
exit2 = visitors.exit;
|
|
203
|
-
} else {
|
|
204
|
-
throw new Error(
|
|
205
|
-
"Unexpected value `" + visitors.exit + "` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)"
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
} else {
|
|
209
|
-
throw new Error(
|
|
210
|
-
"Unexpected value `" + visitors + "` for `enter` or `visitors`, expected visitor or object with visitors"
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
const is2 = convert(check2);
|
|
214
|
-
const step = preorder ? 1 : -1;
|
|
215
|
-
factory(tree, void 0, [])();
|
|
216
|
-
function factory(node, index, parents) {
|
|
217
|
-
const value = (
|
|
218
|
-
/** @type {Record<string, unknown>} */
|
|
219
|
-
node && typeof node === "object" ? node : {}
|
|
220
|
-
);
|
|
221
|
-
if (typeof value.type === "string") {
|
|
222
|
-
const name = (
|
|
223
|
-
// `hast`
|
|
224
|
-
typeof value.tagName === "string" ? value.tagName : (
|
|
225
|
-
// `xast`
|
|
226
|
-
typeof value.name === "string" ? value.name : void 0
|
|
227
|
-
)
|
|
228
|
-
);
|
|
229
|
-
Object.defineProperty(visit2, "name", {
|
|
230
|
-
value: "node (" + color(node.type + (name ? "<" + name + ">" : "")) + ")"
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
return visit2;
|
|
234
|
-
function visit2() {
|
|
235
|
-
const matches = !check2 || is2(node, index, parents[parents.length - 1] || void 0);
|
|
236
|
-
let result = empty;
|
|
237
|
-
if (enter && matches) {
|
|
238
|
-
result = toResult(enter(node, parents, index));
|
|
239
|
-
if (result[0] === EXIT) {
|
|
240
|
-
return result;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
if ("children" in node && node.children) {
|
|
244
|
-
const nodeAsParent = (
|
|
245
|
-
/** @type {UnistParent} */
|
|
246
|
-
node
|
|
247
|
-
);
|
|
248
|
-
if (nodeAsParent.children && result[0] !== SKIP) {
|
|
249
|
-
let offset = (preorder ? -1 : nodeAsParent.children.length) + step;
|
|
250
|
-
const grandparents = [...parents, nodeAsParent];
|
|
251
|
-
while (offset > -1 && offset < nodeAsParent.children.length) {
|
|
252
|
-
const child = nodeAsParent.children[offset];
|
|
253
|
-
const subresult = factory(child, offset, grandparents)();
|
|
254
|
-
if (subresult[0] === EXIT) {
|
|
255
|
-
return subresult;
|
|
256
|
-
}
|
|
257
|
-
offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
if (exit2 && matches) {
|
|
262
|
-
const exitResult = toResult(exit2(node, parents, index));
|
|
263
|
-
if (exitResult[0] === SKIP) {
|
|
264
|
-
throw new Error(
|
|
265
|
-
"Unexpected value `" + exitResult[0] + "` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing"
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
if (exitResult[0] === EXIT || typeof exitResult[1] === "number") {
|
|
269
|
-
return exitResult;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
return result;
|
|
273
|
-
}
|
|
274
|
-
__name(visit2, "visit");
|
|
275
|
-
}
|
|
276
|
-
__name(factory, "factory");
|
|
277
|
-
}
|
|
278
|
-
__name(visitParents, "visitParents");
|
|
279
|
-
function toResult(value) {
|
|
280
|
-
if (Array.isArray(value)) {
|
|
281
|
-
return value;
|
|
282
|
-
}
|
|
283
|
-
if (typeof value === "number") {
|
|
284
|
-
return [CONTINUE, value];
|
|
285
|
-
}
|
|
286
|
-
return value === null || value === void 0 ? empty : [value];
|
|
287
|
-
}
|
|
288
|
-
__name(toResult, "toResult");
|
|
289
|
-
|
|
290
53
|
// node_modules/.pnpm/mdast-util-find-and-replace@3.0.4/node_modules/mdast-util-find-and-replace/lib/index.js
|
|
291
54
|
function findAndReplace(tree, list2, options) {
|
|
292
55
|
const settings = options || {};
|
|
@@ -944,34 +707,6 @@ function toAlignment(value) {
|
|
|
944
707
|
}
|
|
945
708
|
__name(toAlignment, "toAlignment");
|
|
946
709
|
|
|
947
|
-
// node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js
|
|
948
|
-
var phrasing = (
|
|
949
|
-
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
950
|
-
convert([
|
|
951
|
-
"break",
|
|
952
|
-
"delete",
|
|
953
|
-
"emphasis",
|
|
954
|
-
// To do: next major: removed since footnotes were added to GFM.
|
|
955
|
-
"footnote",
|
|
956
|
-
"footnoteReference",
|
|
957
|
-
"image",
|
|
958
|
-
"imageReference",
|
|
959
|
-
"inlineCode",
|
|
960
|
-
// Enabled by `mdast-util-math`:
|
|
961
|
-
"inlineMath",
|
|
962
|
-
"link",
|
|
963
|
-
"linkReference",
|
|
964
|
-
// Enabled by `mdast-util-mdx`:
|
|
965
|
-
"mdxJsxTextElement",
|
|
966
|
-
// Enabled by `mdast-util-mdx`:
|
|
967
|
-
"mdxTextExpression",
|
|
968
|
-
"strong",
|
|
969
|
-
"text",
|
|
970
|
-
// Enabled by `mdast-util-directive`:
|
|
971
|
-
"textDirective"
|
|
972
|
-
])
|
|
973
|
-
);
|
|
974
|
-
|
|
975
710
|
// node_modules/.pnpm/mdast-util-to-markdown@2.2.3/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
|
|
976
711
|
function blockquote(node, _, state, info) {
|
|
977
712
|
const exit2 = state.enter("blockquote");
|
|
@@ -1026,31 +761,6 @@ function hardBreak(_, _1, state, info) {
|
|
|
1026
761
|
}
|
|
1027
762
|
__name(hardBreak, "hardBreak");
|
|
1028
763
|
|
|
1029
|
-
// node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js
|
|
1030
|
-
function longestStreak(value, substring) {
|
|
1031
|
-
const source = String(value);
|
|
1032
|
-
let index = source.indexOf(substring);
|
|
1033
|
-
let expected = index;
|
|
1034
|
-
let count = 0;
|
|
1035
|
-
let max = 0;
|
|
1036
|
-
if (typeof substring !== "string") {
|
|
1037
|
-
throw new TypeError("Expected substring");
|
|
1038
|
-
}
|
|
1039
|
-
while (index !== -1) {
|
|
1040
|
-
if (index === expected) {
|
|
1041
|
-
if (++count > max) {
|
|
1042
|
-
max = count;
|
|
1043
|
-
}
|
|
1044
|
-
} else {
|
|
1045
|
-
count = 1;
|
|
1046
|
-
}
|
|
1047
|
-
expected = index + substring.length;
|
|
1048
|
-
index = source.indexOf(substring, expected);
|
|
1049
|
-
}
|
|
1050
|
-
return max;
|
|
1051
|
-
}
|
|
1052
|
-
__name(longestStreak, "longestStreak");
|
|
1053
|
-
|
|
1054
764
|
// node_modules/.pnpm/mdast-util-to-markdown@2.2.3/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
|
|
1055
765
|
function formatCodeAsIndented(node, state) {
|
|
1056
766
|
return Boolean(
|
|
@@ -1708,45 +1418,6 @@ function peek(_, _1, state) {
|
|
|
1708
1418
|
}
|
|
1709
1419
|
__name(peek, "peek");
|
|
1710
1420
|
|
|
1711
|
-
// node_modules/.pnpm/unist-util-visit@5.2.0/node_modules/unist-util-visit/lib/index.js
|
|
1712
|
-
function visit(tree, testOrEnterOrVisitors, enterOrVisitorsOrReverse, maybeReverse) {
|
|
1713
|
-
let check2;
|
|
1714
|
-
let visitors;
|
|
1715
|
-
let reverse;
|
|
1716
|
-
if (typeof enterOrVisitorsOrReverse === "function" || enterOrVisitorsOrReverse && typeof enterOrVisitorsOrReverse === "object") {
|
|
1717
|
-
check2 = /** @type {Test} */
|
|
1718
|
-
testOrEnterOrVisitors;
|
|
1719
|
-
visitors = enterOrVisitorsOrReverse;
|
|
1720
|
-
reverse = maybeReverse;
|
|
1721
|
-
} else {
|
|
1722
|
-
visitors = /** @type {Visitor | Visitors} */
|
|
1723
|
-
testOrEnterOrVisitors;
|
|
1724
|
-
reverse = enterOrVisitorsOrReverse;
|
|
1725
|
-
}
|
|
1726
|
-
if (typeof visitors === "function") {
|
|
1727
|
-
visitParents(tree, check2, wrap(visitors), reverse);
|
|
1728
|
-
} else {
|
|
1729
|
-
visitParents(tree, check2, wrapVisitors(visitors), reverse);
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
__name(visit, "visit");
|
|
1733
|
-
function wrapVisitors(visitors) {
|
|
1734
|
-
if (!visitors || typeof visitors !== "object") return visitors;
|
|
1735
|
-
return {
|
|
1736
|
-
enter: typeof visitors.enter === "function" ? wrap(visitors.enter) : visitors.enter,
|
|
1737
|
-
exit: typeof visitors.exit === "function" ? wrap(visitors.exit) : visitors.exit
|
|
1738
|
-
};
|
|
1739
|
-
}
|
|
1740
|
-
__name(wrapVisitors, "wrapVisitors");
|
|
1741
|
-
function wrap(visitor) {
|
|
1742
|
-
return overload;
|
|
1743
|
-
function overload(node, parents, index) {
|
|
1744
|
-
return visitor(node, index, parents[parents.length - 1]);
|
|
1745
|
-
}
|
|
1746
|
-
__name(overload, "overload");
|
|
1747
|
-
}
|
|
1748
|
-
__name(wrap, "wrap");
|
|
1749
|
-
|
|
1750
1421
|
// node_modules/.pnpm/mdast-util-to-markdown@2.2.3/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
1751
1422
|
function formatHeadingAsSetext(node, state) {
|
|
1752
1423
|
let literalWithBreak = false;
|