@wirecat/notion-cli 0.2.0 → 0.4.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 +54 -0
- package/README.md +9 -2
- package/contracts/wirecat.json +97 -0
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/{all-profiles-JGYLQZ5C.js → all-profiles-4IONYZB6.js} +10 -10
- package/dist/bundle/{anthropic-S2VSMIKQ.js → anthropic-OXF74J4P.js} +6 -6
- package/dist/bundle/{app-server-SASYDBCA.js → app-server-M2VF6ABM.js} +59 -59
- package/dist/bundle/{bun-LU5LP3JI.js → bun-DLA6QRLL.js} +2 -2
- package/dist/bundle/{bun-sqlite-JBSINB4O.js → bun-sqlite-F4BYLW3F.js} +7 -7
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-2MHMKNWD.js} +1 -1
- package/dist/bundle/{chunk-SHJQ6JKG.js → chunk-4KUJTSHG.js} +2 -2
- package/dist/bundle/{chunk-SWAOWNKW.js → chunk-4TQVZXOV.js} +3 -3
- package/dist/bundle/{chunk-ODBZNSZ6.js → chunk-5LBJNTEJ.js} +6 -6
- package/dist/bundle/{chunk-SZOVLP44.js → chunk-5UA2TYMI.js} +2 -2
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-5XP4KQ2F.js} +1 -1
- package/dist/bundle/{chunk-4IPURN72.js → chunk-6GN7KU7X.js} +9 -9
- package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-6JBLIQQN.js} +1 -1
- package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-OTV53F34.js → chunk-7NGFGFE5.js} +9 -60
- package/dist/bundle/{chunk-VBHETQVV.js → chunk-7NVPM55S.js} +1908 -1013
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-7YZPBAQX.js} +1 -1
- package/dist/bundle/{chunk-3AL7QUS3.js → chunk-AYU5TFDU.js} +20 -20
- package/dist/bundle/{chunk-FPY6EJ7B.js → chunk-BEPFGITI.js} +55 -55
- package/dist/bundle/{chunk-NQWV4WQO.js → chunk-CDGZZNGY.js} +6 -6
- package/dist/bundle/{chunk-DH5PRHT4.js → chunk-CIVXTBJY.js} +13 -13
- package/dist/bundle/{chunk-B26TQZKZ.js → chunk-COH7OEER.js} +14 -13
- package/dist/bundle/{chunk-XF26XKTS.js → chunk-D6RCRBDH.js} +2 -2
- package/dist/bundle/{chunk-YMYUBZWT.js → chunk-EQPAZ33O.js} +17 -17
- package/dist/bundle/{chunk-LAYPFBOM.js → chunk-EY6S7FV3.js} +6 -6
- package/dist/bundle/chunk-FEMHUSGO.js +88 -0
- package/dist/bundle/{chunk-VCIALTEM.js → chunk-FIHXADRF.js} +14 -4
- package/dist/bundle/{chunk-FWVBPRL4.js → chunk-FSJHASRQ.js} +79 -62
- package/dist/bundle/{chunk-TPX2M45D.js → chunk-GBFEEHQC.js} +10 -10
- package/dist/bundle/{chunk-5IYKVRH2.js → chunk-GCCPFKSU.js} +434 -343
- package/dist/bundle/{chunk-3Z4YTSRY.js → chunk-GK4GLPG2.js} +3 -3
- package/dist/bundle/{chunk-GZOUFX3C.js → chunk-GSNE7OB4.js} +4 -4
- package/dist/bundle/{chunk-TSDBSIFM.js → chunk-HTKSCSJU.js} +4 -4
- package/dist/bundle/{chunk-5NFK5EM2.js → chunk-IJMFG7HB.js} +7 -7
- package/dist/bundle/{chunk-D7QSEEYW.js → chunk-JIRRF6BM.js} +4 -4
- package/dist/bundle/{chunk-5RSC54NA.js → chunk-JODE2XED.js} +25 -25
- package/dist/bundle/{chunk-RV64YUQX.js → chunk-K5I64ZVI.js} +9 -9
- package/dist/bundle/{chunk-AOCUKEAX.js → chunk-KL3P5TQK.js} +4 -4
- package/dist/bundle/{chunk-2LWO3PDX.js → chunk-L62XTC7N.js} +11 -11
- package/dist/bundle/{chunk-LLG2POQ7.js → chunk-L6H7PY4X.js} +3 -3
- package/dist/bundle/{chunk-5RDNBG7D.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-WF4D56CA.js → chunk-M2EEIYBU.js} +2 -2
- package/dist/bundle/{chunk-MZU2YFBZ.js → chunk-M6DGZ2O6.js} +8 -8
- package/dist/bundle/{chunk-FXEJY4OL.js → chunk-MRA62W5K.js} +233 -167
- package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-WCSOH4JS.js → chunk-OCDJ4FFA.js} +4 -4
- package/dist/bundle/{chunk-2F4QQ7WB.js → chunk-OI5DWZJG.js} +3 -3
- package/dist/bundle/{chunk-EUIVXFLJ.js → chunk-P3P6DA6K.js} +6 -6
- package/dist/bundle/{chunk-MY742GAD.js → chunk-QX3TPFEX.js} +37 -37
- package/dist/bundle/{chunk-6RA3EABS.js → chunk-R6SDRSZK.js} +62 -32
- package/dist/bundle/{chunk-5QIQEUOG.js → chunk-RMJMID5D.js} +8 -8
- package/dist/bundle/{chunk-BNPTZ5ZB.js → chunk-SGBS5QCU.js} +4 -4
- package/dist/bundle/{chunk-YNTLT3Z3.js → chunk-T5UNSFES.js} +8 -8
- package/dist/bundle/{chunk-M7S2NDWB.js → chunk-TFNRCCGR.js} +4 -4
- package/dist/bundle/{chunk-B7ON6KPT.js → chunk-TJCPTRYD.js} +7 -7
- package/dist/bundle/{chunk-KM6WHPHI.js → chunk-TXONV3HW.js} +2 -2
- package/dist/bundle/{chunk-NOQ7B5N7.js → chunk-TZ2QJ53V.js} +2 -2
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-UKE3CGHK.js} +1 -1
- package/dist/bundle/{chunk-6EVKHZKN.js → chunk-UROEWCOG.js} +3 -3
- package/dist/bundle/{chunk-WJHZMR2W.js → chunk-WHJWURZB.js} +6 -6
- package/dist/bundle/{chunk-G3EZFRSS.js → chunk-WU3XHGOB.js} +112 -42
- package/dist/bundle/{chunk-2F6VO5HA.js → chunk-WZEEEQGC.js} +3 -3
- package/dist/bundle/{chunk-M3KB25D3.js → chunk-XCTOCVMW.js} +14 -14
- package/dist/bundle/{chunk-FT3LN3HP.js → chunk-Y5LAJWR5.js} +1 -1
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-YFWLHTNO.js} +1 -1
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-YGCI3DHS.js} +1 -1
- package/dist/bundle/{chunk-KCLOUUYF.js → chunk-Z53LYX4M.js} +3 -3
- package/dist/bundle/{chunk-ZKAEZXUP.js → chunk-ZC6ZQQ55.js} +36 -37
- package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
- package/dist/bundle/{command-server-entry-UFSG7KRO.js → command-server-entry-2SORMVRM.js} +27 -27
- package/dist/bundle/{decode-7LLWTSPT.js → decode-5O7IEFPN.js} +6 -6
- package/dist/bundle/{dispatch-2GY6JIJH.js → dispatch-YHQX6FEJ.js} +8 -8
- package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ARLMVQC7.js} +2 -2
- package/dist/bundle/{embed-JXFNBTKH.js → embed-FUDUKQ3K.js} +7 -7
- package/dist/bundle/{embedder-57YZ44KO.js → embedder-HDRV7GX3.js} +10 -10
- package/dist/bundle/{failure-MYT4HPE3.js → failure-JHXICWIL.js} +3 -3
- package/dist/bundle/first-run-BGEFTXOE.js +29 -0
- package/dist/bundle/first-screen-F5F3VS6Y.js +38 -0
- package/dist/bundle/{instructions-2VECIDXF.js → instructions-MEFIKCDI.js} +1 -1
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
- package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
- package/dist/bundle/{meeting-semantic-ETN3A4BJ.js → meeting-semantic-R4CSLVRG.js} +7 -7
- package/dist/bundle/{node-MPEQSFI3.js → node-MAQALPLA.js} +2 -2
- package/dist/bundle/{node-sqlite-WA32MYSJ.js → node-sqlite-J7IJYNBO.js} +8 -8
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/{oauth-IAFZG3IR.js → oauth-AMV4YGJD.js} +8 -8
- package/dist/bundle/{open-M3JQUC5G.js → open-AB27MTGR.js} +6 -6
- package/dist/bundle/{openai-HXUEHUSD.js → openai-D77MU5XV.js} +17 -17
- package/dist/bundle/{process-F6TKXWWA.js → process-SIOWTRJ6.js} +1 -1
- package/dist/bundle/{program-Y7JAB6TG.js → program-7K34KI27.js} +3230 -1722
- package/dist/bundle/{prompt-IMUQLZD2.js → prompt-W77YDHA6.js} +6 -6
- package/dist/bundle/{recognize-2MZAYHAA.js → recognize-3JAXQQ36.js} +5 -5
- package/dist/bundle/{remote-OV4LB6VR.js → remote-PSOJXCXO.js} +11 -11
- package/dist/bundle/{rerank-ZIULUS34.js → rerank-EE44ZTGL.js} +8 -8
- package/dist/bundle/{schemas-DIVZS6TU.js → schemas-LBYUMBC6.js} +2 -2
- package/dist/bundle/{serve-YU7QBP6L.js → serve-XJMGAMFW.js} +10 -10
- package/dist/bundle/{server-LGMNONSB.js → server-ASU6CP5R.js} +51 -51
- package/dist/bundle/server-WSPQ5EOA.js +72 -0
- package/dist/bundle/{services-5WY4DCPJ.js → services-PT4PA4J6.js} +46 -39
- package/dist/bundle/{sqlite-runtime-5MXZDETH.js → sqlite-runtime-YHXRTVXE.js} +7 -7
- package/dist/bundle/{state-LWMZH2KI.js → state-T6ZKFWGD.js} +7 -7
- package/dist/bundle/{store-EPZYV4VW.js → store-3MUCZEI3.js} +20 -18
- package/dist/bundle/{store-QE6FEIZD.js → store-E5EE25FY.js} +24 -20
- package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +63 -0
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +13 -4
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/comments.d.ts +4 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +80 -0
- package/dist/commands/comments.js.map +1 -0
- package/dist/commands/documents.d.ts +8 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +74 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/files.d.ts +4 -0
- package/dist/commands/files.d.ts.map +1 -0
- package/dist/commands/files.js +57 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +50 -9
- package/dist/commands/library.js.map +1 -1
- package/dist/commands/writing.d.ts +32 -0
- package/dist/commands/writing.d.ts.map +1 -0
- package/dist/commands/writing.js +126 -0
- package/dist/commands/writing.js.map +1 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +76 -5
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +3 -0
- package/dist/context.js.map +1 -1
- package/dist/generated/types.d.ts +485 -375
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/notion/errors.d.ts +5 -0
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +9 -0
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/notion.d.ts +38 -0
- package/dist/notion/notion.d.ts.map +1 -1
- package/dist/notion/notion.js +43 -0
- package/dist/notion/notion.js.map +1 -1
- package/dist/notion/writes.d.ts +78 -0
- package/dist/notion/writes.d.ts.map +1 -0
- package/dist/notion/writes.js +185 -0
- package/dist/notion/writes.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -0
- package/dist/program.js.map +1 -1
- package/dist/sync/browse.d.ts +30 -0
- package/dist/sync/browse.d.ts.map +1 -0
- package/dist/sync/browse.js +67 -0
- package/dist/sync/browse.js.map +1 -0
- package/dist/sync/cursor.d.ts +29 -0
- package/dist/sync/cursor.d.ts.map +1 -1
- package/dist/sync/cursor.js +28 -0
- package/dist/sync/cursor.js.map +1 -1
- package/dist/sync/files.d.ts +11 -0
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js +29 -0
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/source.d.ts +3 -3
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +81 -63
- 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 +6 -0
- package/dist/bundle/command-contract-JS5V27NX.js +0 -38
- package/dist/bundle/first-run-3PF7T74J.js +0 -29
- package/dist/bundle/first-screen-7BEROEQR.js +0 -36
- package/dist/bundle/meeting-combined-PPUQ3KBR.js +0 -24
- package/dist/bundle/meeting-model-ZNMYKMCD.js +0 -26
- package/dist/bundle/server-FKQET4ZO.js +0 -71
- package/dist/bundle/store-maintenance-command-ZUUUFCHL.js +0 -62
- /package/dist/bundle/{chunk-VKE77B3F.js → chunk-SHTHNBHG.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,60 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/notion-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.4.0 — 16.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `comments list`, `comments create` and `comments reply` read and write the comments on a Notion page, live.
|
|
10
|
+
`comments list` shows only unresolved comments, as Notion's API gives no others. A comment's text never reaches a
|
|
11
|
+
run record. See [Comments and files](docs/dev/DESIGN.md#comments-and-files).
|
|
12
|
+
- `files upload <file> --parent <page>` uploads a file and adds it to the end of a page as an image, video, audio, PDF
|
|
13
|
+
or file block. A file over 20 MB goes in parts of 10 MB. Only a regular file is sent, as with `--file`.
|
|
14
|
+
- Each write checks its own permission (`comments.create`, `files.upload`) and the `api` operations it sends, and
|
|
15
|
+
takes `--dry-run`.
|
|
16
|
+
|
|
17
|
+
### Changed — may break callers
|
|
18
|
+
|
|
19
|
+
- `folders browse` pages: `--limit` (100 by default) and `--cursor` from `page.next_cursor`. At the top of the
|
|
20
|
+
workspace it reads Notion's search one page at a time instead of all of it, so a large workspace answers within a
|
|
21
|
+
minute. Each item now says where it sits (`parent`, null at the top) and whether sync already copies it as `added`,
|
|
22
|
+
the field drive's `folders browse` uses, in place of `chosen`. A database lists nothing inside, as its rows are not
|
|
23
|
+
folders. When Notion's search was cut at 10,000 results, the answer says so in `missing`.
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- On Windows, `files upload` and `--file` refuse a link to a file too. Windows has no `O_NOFOLLOW`, so the link was
|
|
28
|
+
followed there.
|
|
29
|
+
|
|
30
|
+
## 0.3.0 — 16.11.2026
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- `documents create`, `documents update`, `documents delete` and `documents restore` write Notion pages. `create`
|
|
35
|
+
makes a page under another page from Markdown, `update` replaces a page's text, `delete` moves a page to Notion's
|
|
36
|
+
trash and asks first, and `restore` brings it back. An update that would delete a child page or database is refused
|
|
37
|
+
unless `--allow-deleting-content` is given, and then it asks as a delete does. Every write goes through the
|
|
38
|
+
profile's permissions and the write journal, answers with an `operation_id`, and is previewed with `--dry-run`.
|
|
39
|
+
A raw `api` call that deletes, trashes, erases or archives content, or removes a database property, now asks as
|
|
40
|
+
`documents delete` does, so `documents.delete` set to `deny` stops it too, also for an `agent-batch` call with a
|
|
41
|
+
delete in it. `--file` reads only a regular file, never a link, one under `/proc`, `/sys` or `/dev`, nor a
|
|
42
|
+
credential file. See
|
|
43
|
+
[Writes](docs/dev/DESIGN.md#writes).
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- The [install page](docs/installation.md#sign-in) shows how to sign in with `session start`.
|
|
48
|
+
- `bin/notion-live` reads the token from the keyring service that `NOTION_LIVE_KEYRING_SERVICE` names. When it is
|
|
49
|
+
unset, the service stays `notion-live`.
|
|
50
|
+
- A plain `sync` removes the rows of a data source that was taken out of its database. Before, they stayed in the
|
|
51
|
+
local copy until `sync --rescan`. When Notion will not show the database (403), the rows stay.
|
|
52
|
+
|
|
53
|
+
### Security
|
|
54
|
+
|
|
55
|
+
- cli-core 0.680.0 and cli-base 0.106.0. cli-core now refuses files under `/proc`, `/sys` and `/dev` itself, so
|
|
56
|
+
`--file` uses its check instead of notion's own. `--file` still opens the file once, never through a link, and
|
|
57
|
+
checks the file it opened.
|
|
58
|
+
|
|
5
59
|
## 0.2.0 — 16.11.2026
|
|
6
60
|
|
|
7
61
|
### Added
|
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
MCP. It signs in with your own Notion token, kept in your system keyring.
|
|
5
5
|
|
|
6
6
|
**Status: in development.** It signs in, reads live from Notion, and keeps a copy of your pages on your computer,
|
|
7
|
-
searchable offline with the rest of WireCat. Next it searches database rows by
|
|
8
|
-
and later keeps a folder of Markdown files in step with a Notion page tree. The order of work is in [docs/dev/DESIGN.md](docs/dev/DESIGN.md).
|
|
7
|
+
searchable offline with the rest of WireCat, and creates, changes and deletes pages. Next it searches database rows by
|
|
8
|
+
their properties, and later keeps a folder of Markdown files in step with a Notion page tree. The order of work is in [docs/dev/DESIGN.md](docs/dev/DESIGN.md).
|
|
9
9
|
|
|
10
10
|
## What it does now
|
|
11
11
|
|
|
@@ -20,6 +20,13 @@ and later keeps a folder of Markdown files in step with a Notion page tree. The
|
|
|
20
20
|
- `notion personal search <words>` searches the copy offline, in Lucene syntax. `documents list|show|export|context`
|
|
21
21
|
read it, `status` says how far the sync is, and `tags`, `notes`, `memories` and `facts` keep your own notes on a
|
|
22
22
|
page. `memo search` and `search all` find the pages too.
|
|
23
|
+
- `notion personal documents create --parent <page> --file notes.md` makes a page from Markdown, `documents update
|
|
24
|
+
<page> --file page.md` replaces a page's text, `documents delete <page>` moves it to Notion's trash after asking, and
|
|
25
|
+
`documents restore <page>` brings it back. An update that would delete a child page or database needs
|
|
26
|
+
`--allow-deleting-content`; `--dry-run` shows what a write would do and sends nothing.
|
|
27
|
+
- `notion personal comments list <page>` shows a page's open comments (Notion's API gives no resolved ones), `comments
|
|
28
|
+
create <page> --text …` starts a discussion and `comments reply <discussion> --text …` answers in one.
|
|
29
|
+
`files upload <file> --parent <page>` adds a file to the end of a page.
|
|
23
30
|
- `notion personal databases list` lists the databases the token sees; `databases show <id or link>` gives each data
|
|
24
31
|
source's id and its properties.
|
|
25
32
|
- `notion doctor`, `notion personal mcp serve` and the other commands every WireCat CLI shares.
|
package/contracts/wirecat.json
CHANGED
|
@@ -205,6 +205,54 @@
|
|
|
205
205
|
"permission": "documents.get",
|
|
206
206
|
"entity": "document_markdown"
|
|
207
207
|
},
|
|
208
|
+
{
|
|
209
|
+
"path": [
|
|
210
|
+
"documents",
|
|
211
|
+
"create"
|
|
212
|
+
],
|
|
213
|
+
"summary": "create a Notion page under another page",
|
|
214
|
+
"effects": {
|
|
215
|
+
"remote": "write",
|
|
216
|
+
"local": "write"
|
|
217
|
+
},
|
|
218
|
+
"permission": "documents.create"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"path": [
|
|
222
|
+
"documents",
|
|
223
|
+
"update"
|
|
224
|
+
],
|
|
225
|
+
"summary": "replace a Notion page's text",
|
|
226
|
+
"effects": {
|
|
227
|
+
"remote": "write",
|
|
228
|
+
"local": "write"
|
|
229
|
+
},
|
|
230
|
+
"permission": "documents.update"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"path": [
|
|
234
|
+
"documents",
|
|
235
|
+
"delete"
|
|
236
|
+
],
|
|
237
|
+
"summary": "move a Notion page to the trash",
|
|
238
|
+
"effects": {
|
|
239
|
+
"remote": "write",
|
|
240
|
+
"local": "write"
|
|
241
|
+
},
|
|
242
|
+
"permission": "documents.delete"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"path": [
|
|
246
|
+
"documents",
|
|
247
|
+
"restore"
|
|
248
|
+
],
|
|
249
|
+
"summary": "bring a Notion page back from the trash",
|
|
250
|
+
"effects": {
|
|
251
|
+
"remote": "write",
|
|
252
|
+
"local": "write"
|
|
253
|
+
},
|
|
254
|
+
"permission": "documents.restore"
|
|
255
|
+
},
|
|
208
256
|
{
|
|
209
257
|
"path": [
|
|
210
258
|
"documents",
|
|
@@ -667,6 +715,55 @@
|
|
|
667
715
|
"permission": "databases.show",
|
|
668
716
|
"entity": "database"
|
|
669
717
|
},
|
|
718
|
+
{
|
|
719
|
+
"path": [
|
|
720
|
+
"comments",
|
|
721
|
+
"list"
|
|
722
|
+
],
|
|
723
|
+
"summary": "list the open comments on a Notion page or block, live",
|
|
724
|
+
"effects": {
|
|
725
|
+
"remote": "read",
|
|
726
|
+
"local": "read"
|
|
727
|
+
},
|
|
728
|
+
"permission": "comments.list",
|
|
729
|
+
"entity": "notion_comment"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"path": [
|
|
733
|
+
"comments",
|
|
734
|
+
"create"
|
|
735
|
+
],
|
|
736
|
+
"summary": "comment on a Notion page",
|
|
737
|
+
"effects": {
|
|
738
|
+
"remote": "write",
|
|
739
|
+
"local": "write"
|
|
740
|
+
},
|
|
741
|
+
"permission": "comments.create"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"path": [
|
|
745
|
+
"comments",
|
|
746
|
+
"reply"
|
|
747
|
+
],
|
|
748
|
+
"summary": "reply in a Notion discussion",
|
|
749
|
+
"effects": {
|
|
750
|
+
"remote": "write",
|
|
751
|
+
"local": "write"
|
|
752
|
+
},
|
|
753
|
+
"permission": "comments.reply"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"path": [
|
|
757
|
+
"files",
|
|
758
|
+
"upload"
|
|
759
|
+
],
|
|
760
|
+
"summary": "upload a file to the end of a Notion page",
|
|
761
|
+
"effects": {
|
|
762
|
+
"remote": "write",
|
|
763
|
+
"local": "write"
|
|
764
|
+
},
|
|
765
|
+
"permission": "files.upload"
|
|
766
|
+
},
|
|
670
767
|
{
|
|
671
768
|
"path": [
|
|
672
769
|
"api",
|
package/dist/bin/notion.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.4.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-4IONYZB6.js","../bundle/anthropic-OXF74J4P.js","../bundle/app-server-M2VF6ABM.js","../bundle/bun-DLA6QRLL.js","../bundle/bun-sqlite-F4BYLW3F.js","../bundle/decode-5O7IEFPN.js","../bundle/definitions-M3U4UYHN.js","../bundle/dispatch-YHQX6FEJ.js","../bundle/dist-ILNOLGYN.js","../bundle/echarts-ARLMVQC7.js","../bundle/embed-FUDUKQ3K.js","../bundle/embedder-HDRV7GX3.js","../bundle/failure-JHXICWIL.js","../bundle/first-screen-F5F3VS6Y.js","../bundle/instructions-MEFIKCDI.js","../bundle/mcp-VMS6PBCU.js","../bundle/meeting-combined-HNSS3FQY.js","../bundle/meeting-model-REZVYGQW.js","../bundle/meeting-semantic-R4CSLVRG.js","../bundle/node-KM3CUABH.js","../bundle/node-MAQALPLA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-J7IJYNBO.js","../bundle/oauth-AMV4YGJD.js","../bundle/open-AB27MTGR.js","../bundle/openai-D77MU5XV.js","../bundle/process-SIOWTRJ6.js","../bundle/program-7K34KI27.js","../bundle/prompt-W77YDHA6.js","../bundle/recognize-3JAXQQ36.js","../bundle/remote-PSOJXCXO.js","../bundle/rerank-EE44ZTGL.js","../bundle/schemas-LBYUMBC6.js","../bundle/serve-XJMGAMFW.js","../bundle/server-ASU6CP5R.js","../bundle/server-WSPQ5EOA.js","../bundle/services-PT4PA4J6.js","../bundle/sqlite-runtime-YHXRTVXE.js","../bundle/state-T6ZKFWGD.js","../bundle/store-3MUCZEI3.js","../bundle/store-E5EE25FY.js","../bundle/store-maintenance-command-ZZ55BBBG.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -7,28 +7,28 @@ import {
|
|
|
7
7
|
answeredWire,
|
|
8
8
|
callerOf,
|
|
9
9
|
serveStdio
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GK4GLPG2.js";
|
|
11
11
|
import {
|
|
12
12
|
McpServer
|
|
13
13
|
} from "./chunk-5D4AEUVA.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-IJMFG7HB.js";
|
|
15
|
+
import "./chunk-UROEWCOG.js";
|
|
16
|
+
import "./chunk-SHTHNBHG.js";
|
|
17
|
+
import "./chunk-AYU5TFDU.js";
|
|
18
18
|
import {
|
|
19
19
|
errorObjectOf,
|
|
20
20
|
mcpErrorResult
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-6GN7KU7X.js";
|
|
22
|
+
import "./chunk-MVA5HVKL.js";
|
|
23
23
|
import "./chunk-Y5E2WNWB.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
33
33
|
import { randomUUID } from "node:crypto";
|
|
34
34
|
var PROTOCOL = "2025-06-18";
|
|
@@ -249,7 +249,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
249
249
|
}, "serveAllProfilesOverStdio");
|
|
250
250
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
251
251
|
const { build, close } = allProfilesServer(options);
|
|
252
|
-
const { serveOverHttp } = await import("./serve-
|
|
252
|
+
const { serveOverHttp } = await import("./serve-XJMGAMFW.js");
|
|
253
253
|
const listening = await serveOverHttp(build, {
|
|
254
254
|
...http,
|
|
255
255
|
appName: options.command,
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
checkedOptions,
|
|
9
9
|
messagesFor,
|
|
10
10
|
systemFor
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-TFNRCCGR.js";
|
|
12
|
+
import "./chunk-AYU5TFDU.js";
|
|
13
|
+
import "./chunk-6GN7KU7X.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
literal,
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
strictObject,
|
|
21
21
|
string,
|
|
22
22
|
unknown
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MVA5HVKL.js";
|
|
24
24
|
import "./chunk-Y5E2WNWB.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-LIQMUDIZ.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
31
31
|
var options = strictObject({
|
|
32
32
|
stop_sequences: optional(array(string())),
|
|
33
33
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,49 +3,50 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZC6ZQQ55.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-JODE2XED.js";
|
|
10
|
+
import "./chunk-YGCI3DHS.js";
|
|
11
11
|
import {
|
|
12
12
|
answered,
|
|
13
13
|
failed,
|
|
14
14
|
registerCommands,
|
|
15
15
|
runCommandForAgent,
|
|
16
16
|
toolsFromCommands
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-R6SDRSZK.js";
|
|
18
18
|
import {
|
|
19
19
|
agentJson,
|
|
20
|
-
|
|
21
|
-
} from "./chunk-
|
|
20
|
+
skillResources
|
|
21
|
+
} from "./chunk-WU3XHGOB.js";
|
|
22
22
|
import {
|
|
23
23
|
StdioServerTransport,
|
|
24
24
|
answeredWire,
|
|
25
25
|
serveStdio
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-GK4GLPG2.js";
|
|
27
|
+
import "./chunk-XCTOCVMW.js";
|
|
28
|
+
import "./chunk-L62XTC7N.js";
|
|
29
|
+
import "./chunk-D6RCRBDH.js";
|
|
30
30
|
import {
|
|
31
31
|
appInstructions
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5XP4KQ2F.js";
|
|
33
33
|
import {
|
|
34
34
|
McpServer
|
|
35
35
|
} from "./chunk-5D4AEUVA.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-GCCPFKSU.js";
|
|
37
|
+
import "./chunk-CIVXTBJY.js";
|
|
38
|
+
import "./chunk-FEMHUSGO.js";
|
|
39
|
+
import "./chunk-OCDJ4FFA.js";
|
|
40
|
+
import "./chunk-NO2LIHWA.js";
|
|
41
|
+
import "./chunk-TFNRCCGR.js";
|
|
42
|
+
import "./chunk-P3P6DA6K.js";
|
|
43
|
+
import "./chunk-GBFEEHQC.js";
|
|
44
|
+
import "./chunk-L6H7PY4X.js";
|
|
44
45
|
import {
|
|
45
46
|
mcpHttpMarker
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-SGBS5QCU.js";
|
|
48
|
+
import "./chunk-OI5DWZJG.js";
|
|
49
|
+
import "./chunk-KL3P5TQK.js";
|
|
49
50
|
import {
|
|
50
51
|
DEFAULT_OUTPUT_BYTES,
|
|
51
52
|
changesAuthorityAt,
|
|
@@ -56,48 +57,48 @@ import {
|
|
|
56
57
|
readOnlyLockOf,
|
|
57
58
|
readsOverMcpAt,
|
|
58
59
|
rootOf2 as rootOf
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-MRA62W5K.js";
|
|
61
|
+
import "./chunk-IJMFG7HB.js";
|
|
62
|
+
import "./chunk-4TQVZXOV.js";
|
|
63
|
+
import "./chunk-WHJWURZB.js";
|
|
64
|
+
import "./chunk-7YZPBAQX.js";
|
|
65
|
+
import "./chunk-EQPAZ33O.js";
|
|
66
|
+
import "./chunk-HTKSCSJU.js";
|
|
67
|
+
import "./chunk-7NVPM55S.js";
|
|
68
|
+
import "./chunk-T5UNSFES.js";
|
|
69
|
+
import "./chunk-M6DGZ2O6.js";
|
|
70
|
+
import "./chunk-6JBLIQQN.js";
|
|
71
|
+
import "./chunk-QX3TPFEX.js";
|
|
72
|
+
import "./chunk-UROEWCOG.js";
|
|
73
|
+
import "./chunk-5UA2TYMI.js";
|
|
74
|
+
import "./chunk-FSJHASRQ.js";
|
|
75
|
+
import "./chunk-K5I64ZVI.js";
|
|
76
|
+
import "./chunk-WZEEEQGC.js";
|
|
77
|
+
import "./chunk-TJCPTRYD.js";
|
|
78
|
+
import "./chunk-5LBJNTEJ.js";
|
|
79
|
+
import "./chunk-JIRRF6BM.js";
|
|
80
|
+
import "./chunk-YAPDU3SV.js";
|
|
81
|
+
import "./chunk-SHTHNBHG.js";
|
|
82
|
+
import "./chunk-CDGZZNGY.js";
|
|
82
83
|
import "./chunk-D72URWJE.js";
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-M2EEIYBU.js";
|
|
85
|
+
import "./chunk-EY6S7FV3.js";
|
|
86
|
+
import "./chunk-2MHMKNWD.js";
|
|
87
|
+
import "./chunk-AYU5TFDU.js";
|
|
87
88
|
import {
|
|
88
89
|
mcpErrorResult
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-6GN7KU7X.js";
|
|
91
|
+
import "./chunk-MVA5HVKL.js";
|
|
91
92
|
import "./chunk-Y5E2WNWB.js";
|
|
92
93
|
import {
|
|
93
94
|
CliError
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import "./chunk-
|
|
95
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
96
|
+
import "./chunk-Y5LAJWR5.js";
|
|
96
97
|
import {
|
|
97
98
|
__name
|
|
98
99
|
} from "./chunk-ZVVMGPBJ.js";
|
|
99
100
|
|
|
100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
101
102
|
var EXCLUDED = [["mcp"]];
|
|
102
103
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
103
104
|
let at = root;
|
|
@@ -178,7 +179,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
178
179
|
}, "run")
|
|
179
180
|
}
|
|
180
181
|
]));
|
|
181
|
-
const
|
|
182
|
+
const skills = options.skill ? skillResources(app, options.skill) : [];
|
|
183
|
+
const skill = skills[0];
|
|
182
184
|
const build = /* @__PURE__ */ __name(() => {
|
|
183
185
|
const server = new McpServer({ name: app.command, version: app.version }, {
|
|
184
186
|
instructions: appInstructions({
|
|
@@ -190,10 +192,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
190
192
|
})
|
|
191
193
|
});
|
|
192
194
|
registerCommands(server, app.command, commands, app.errors, void 0, app.messenger);
|
|
193
|
-
|
|
194
|
-
const { uri, name, title, description, mimeType, read } = skill;
|
|
195
|
+
for (const { uri, name, title, description, mimeType, read } of skills)
|
|
195
196
|
server.registerResource(name, uri, { title, description, mimeType }, read);
|
|
196
|
-
}
|
|
197
197
|
return server;
|
|
198
198
|
}, "build");
|
|
199
199
|
return { build, offered: Object.keys(commands) };
|
|
@@ -214,7 +214,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
214
214
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
215
215
|
const { app } = options;
|
|
216
216
|
const { build } = createAppServer(command, context, options);
|
|
217
|
-
const { serveOverHttp } = await import("./serve-
|
|
217
|
+
const { serveOverHttp } = await import("./serve-XJMGAMFW.js");
|
|
218
218
|
const listening = await serveOverHttp(build, {
|
|
219
219
|
...http,
|
|
220
220
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Y5LAJWR5.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,22 +3,22 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TZ2QJ53V.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-M2EEIYBU.js";
|
|
10
|
+
import "./chunk-AYU5TFDU.js";
|
|
11
|
+
import "./chunk-6GN7KU7X.js";
|
|
12
|
+
import "./chunk-MVA5HVKL.js";
|
|
13
13
|
import {
|
|
14
14
|
importFrom
|
|
15
15
|
} from "./chunk-Y5E2WNWB.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-LIQMUDIZ.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
22
22
|
var customised = false;
|
|
23
23
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
24
24
|
try {
|
|
@@ -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.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -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-EY6S7FV3.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.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/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";
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TJCPTRYD.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
10
10
|
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.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
15
15
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
16
16
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
17
17
|
var SECTION = "setup";
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JIRRF6BM.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -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-LIQMUDIZ.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.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/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) => {
|