@wirecat/notion-cli 0.1.0 → 0.2.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 +40 -0
- package/README.md +10 -4
- package/contracts/wirecat.json +650 -1
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/{all-profiles-OETMCOLN.js → all-profiles-JGYLQZ5C.js} +9 -9
- package/dist/bundle/{anthropic-5Y3O2TYM.js → anthropic-S2VSMIKQ.js} +5 -5
- package/dist/bundle/{app-server-IVWBIVHC.js → app-server-SASYDBCA.js} +55 -46
- package/dist/bundle/{bun-EO636SAD.js → bun-LU5LP3JI.js} +2 -2
- package/dist/bundle/{bun-sqlite-C2T7QJ2M.js → bun-sqlite-JBSINB4O.js} +6 -6
- package/dist/bundle/{chunk-DIM5YWBU.js → chunk-22QQUKWA.js} +1 -1
- package/dist/bundle/{chunk-B4B65XIO.js → chunk-2F4QQ7WB.js} +3 -3
- package/dist/bundle/{chunk-2YR3RYT4.js → chunk-2F6VO5HA.js} +3 -3
- package/dist/bundle/chunk-2LWO3PDX.js +726 -0
- package/dist/bundle/{chunk-RSIS7BR7.js → chunk-3AL7QUS3.js} +20 -20
- package/dist/bundle/{chunk-RDZ7SVBZ.js → chunk-3Z4YTSRY.js} +3 -3
- package/dist/bundle/{chunk-QBC23NHD.js → chunk-4HWJOU7N.js} +1 -1
- package/dist/bundle/{chunk-WM7663C2.js → chunk-4IPURN72.js} +8 -8
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-4ZTVJHWU.js} +4 -4
- package/dist/bundle/{chunk-IQWEJEB5.js → chunk-5IYKVRH2.js} +26157 -21070
- package/dist/bundle/{chunk-7FII4DCE.js → chunk-5NFK5EM2.js} +7 -7
- package/dist/bundle/{chunk-K5TWMQSY.js → chunk-5QIQEUOG.js} +8 -8
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-5RDNBG7D.js} +2 -2
- package/dist/bundle/{chunk-ST2UC7FS.js → chunk-5RSC54NA.js} +30 -26
- package/dist/bundle/{chunk-7N5QB6NL.js → chunk-6EVKHZKN.js} +5 -3
- package/dist/bundle/{chunk-EU5WCOMQ.js → chunk-6RA3EABS.js} +45 -34
- package/dist/bundle/{chunk-JKIN5TOU.js → chunk-AOCUKEAX.js} +4 -4
- package/dist/bundle/{chunk-OWJDC4CB.js → chunk-B26TQZKZ.js} +12 -12
- package/dist/bundle/{chunk-WK3OSDNV.js → chunk-B7ON6KPT.js} +7 -7
- package/dist/bundle/{chunk-RLSFOR2D.js → chunk-BNPTZ5ZB.js} +4 -4
- package/dist/bundle/{chunk-WVZFXI36.js → chunk-D7QSEEYW.js} +4 -4
- package/dist/bundle/{chunk-JK44XO2S.js → chunk-DH5PRHT4.js} +56 -56
- package/dist/bundle/chunk-EUIVXFLJ.js +259 -0
- package/dist/bundle/{chunk-64D5VUZ4.js → chunk-FPY6EJ7B.js} +67 -63
- package/dist/bundle/{chunk-EGTBL3MJ.js → chunk-FT3LN3HP.js} +1 -1
- package/dist/bundle/{chunk-NLDYZBTC.js → chunk-FWVBPRL4.js} +1129 -2555
- package/dist/bundle/{chunk-UWIA2G6Q.js → chunk-FXEJY4OL.js} +329 -528
- package/dist/bundle/{chunk-R6ZM45NF.js → chunk-G3EZFRSS.js} +88 -30
- package/dist/bundle/{chunk-B2XKEEFX.js → chunk-GZOUFX3C.js} +4 -4
- package/dist/bundle/{chunk-WWMB4UHF.js → chunk-HL52XXZX.js} +1 -1
- package/dist/bundle/{chunk-4GC5DBHW.js → chunk-KCLOUUYF.js} +3 -3
- package/dist/bundle/chunk-KFVDL2QS.js +146 -0
- package/dist/bundle/{chunk-35K5T6WV.js → chunk-KGERXYTV.js} +1 -1
- package/dist/bundle/{chunk-BWICUW7W.js → chunk-KM6WHPHI.js} +2 -2
- package/dist/bundle/{chunk-AE2KQ37N.js → chunk-LAYPFBOM.js} +6 -6
- package/dist/bundle/chunk-LLG2POQ7.js +170 -0
- package/dist/bundle/{chunk-B2WFKFYL.js → chunk-M3KB25D3.js} +20 -116
- package/dist/bundle/{chunk-RAZKIHGH.js → chunk-M7S2NDWB.js} +3 -3
- package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
- package/dist/bundle/chunk-MY742GAD.js +1977 -0
- package/dist/bundle/chunk-MZU2YFBZ.js +823 -0
- package/dist/bundle/{chunk-AQZO3ITW.js → chunk-NOQ7B5N7.js} +2 -2
- package/dist/bundle/{chunk-QC3KOJT4.js → chunk-NQWV4WQO.js} +6 -6
- package/dist/bundle/{chunk-FF4DDBCB.js → chunk-ODBZNSZ6.js} +6 -6
- package/dist/bundle/{chunk-TR7R5DL4.js → chunk-OTV53F34.js} +9 -9
- package/dist/bundle/{chunk-KHOVVPLC.js → chunk-P7CUM5IB.js} +1 -1
- package/dist/bundle/{chunk-CWVAYQXI.js → chunk-RV64YUQX.js} +8 -8
- package/dist/bundle/{chunk-TSCIIXN3.js → chunk-SHJQ6JKG.js} +2 -2
- package/dist/bundle/{chunk-24FAYAML.js → chunk-SWAOWNKW.js} +3 -3
- package/dist/bundle/chunk-SZOVLP44.js +29 -0
- package/dist/bundle/chunk-TPX2M45D.js +385 -0
- package/dist/bundle/{chunk-UWW24JQF.js → chunk-TSDBSIFM.js} +3 -3
- package/dist/bundle/{chunk-YA4LSSDZ.js → chunk-VBHETQVV.js} +1435 -1788
- package/dist/bundle/{chunk-HRTIRRXR.js → chunk-VCIALTEM.js} +33 -6
- package/dist/bundle/{chunk-ESZT4WW3.js → chunk-WCSOH4JS.js} +3 -3
- package/dist/bundle/{chunk-HWRKURQH.js → chunk-WF4D56CA.js} +2 -2
- package/dist/bundle/chunk-WJHZMR2W.js +335 -0
- package/dist/bundle/chunk-X4TIMMKJ.js +16 -0
- package/dist/bundle/{chunk-XL2HXHP3.js → chunk-XF26XKTS.js} +2 -2
- package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
- package/dist/bundle/{chunk-47R43UVJ.js → chunk-YMYUBZWT.js} +19 -19
- package/dist/bundle/{chunk-3D3PFXBP.js → chunk-YNTLT3Z3.js} +10 -15
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-XC5CKHX2.js → chunk-Z56QFOBR.js} +1 -1
- package/dist/bundle/{chunk-EPAZ7DJB.js → chunk-ZKAEZXUP.js} +42 -38
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/command-contract-JS5V27NX.js +38 -0
- package/dist/bundle/{command-server-entry-A66DJ3MH.js → command-server-entry-UFSG7KRO.js} +26 -23
- package/dist/bundle/decode-7LLWTSPT.js +297 -0
- package/dist/bundle/{dispatch-FEKU5UXC.js → dispatch-2GY6JIJH.js} +8 -8
- package/dist/bundle/{dist-YFKABFFF.js → dist-ILNOLGYN.js} +1 -1
- package/dist/bundle/{echarts-XD2JSWU4.js → echarts-BXX4OQWC.js} +2 -2
- package/dist/bundle/{embed-F3HYGAF7.js → embed-JXFNBTKH.js} +6 -6
- package/dist/bundle/{embedder-GSEDDUH7.js → embedder-57YZ44KO.js} +9 -9
- package/dist/bundle/{failure-HDJLR2YJ.js → failure-MYT4HPE3.js} +2 -2
- package/dist/bundle/{first-run-TXNTIUSP.js → first-run-3PF7T74J.js} +12 -11
- package/dist/bundle/first-screen-7BEROEQR.js +36 -0
- package/dist/bundle/{instructions-NZGJ4FW5.js → instructions-2VECIDXF.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/mdast-util-from-markdown-R66F4HZA.js +1958 -0
- package/dist/bundle/mdast-util-gfm-LN2ELINH.js +2699 -0
- package/dist/bundle/meeting-combined-PPUQ3KBR.js +24 -0
- package/dist/bundle/meeting-model-ZNMYKMCD.js +26 -0
- package/dist/bundle/meeting-semantic-ETN3A4BJ.js +22 -0
- package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
- package/dist/bundle/{node-RPKPDYQS.js → node-MPEQSFI3.js} +2 -2
- package/dist/bundle/{node-sqlite-KH2UUYVO.js → node-sqlite-WA32MYSJ.js} +7 -7
- package/dist/bundle/notion.js +13 -13
- package/dist/bundle/{oauth-NKAI7TQD.js → oauth-IAFZG3IR.js} +7 -7
- package/dist/bundle/{open-WSAEAA2V.js → open-M3JQUC5G.js} +5 -5
- package/dist/bundle/{openai-JPVDGHG5.js → openai-HXUEHUSD.js} +30 -28
- package/dist/bundle/{process-5ZFVKOQX.js → process-F6TKXWWA.js} +1 -1
- package/dist/bundle/{program-M3D56D6T.js → program-Y7JAB6TG.js} +5289 -924
- package/dist/bundle/{prompt-FROYQ5LV.js → prompt-IMUQLZD2.js} +5 -5
- package/dist/bundle/{recognize-NYCHQMCX.js → recognize-2MZAYHAA.js} +4 -4
- package/dist/bundle/{remote-4OERF3Z4.js → remote-OV4LB6VR.js} +10 -10
- package/dist/bundle/{rerank-TEGXFUWY.js → rerank-ZIULUS34.js} +7 -7
- package/dist/bundle/{schemas-MZNNOEYN.js → schemas-DIVZS6TU.js} +1 -1
- package/dist/bundle/{serve-HLYYBAXY.js → serve-YU7QBP6L.js} +9 -9
- package/dist/bundle/server-FKQET4ZO.js +71 -0
- package/dist/bundle/{server-D5OYNEUW.js → server-LGMNONSB.js} +47 -38
- package/dist/bundle/services-5WY4DCPJ.js +581 -0
- package/dist/bundle/{sqlite-runtime-H2S5RR2F.js → sqlite-runtime-5MXZDETH.js} +6 -6
- package/dist/bundle/{state-OPOXCDZL.js → state-LWMZH2KI.js} +6 -6
- package/dist/bundle/{store-NHMXEJPD.js → store-EPZYV4VW.js} +17 -13
- package/dist/bundle/{store-Y3KRLCJ7.js → store-QE6FEIZD.js} +25 -20
- package/dist/bundle/store-maintenance-command-ZUUUFCHL.js +62 -0
- package/dist/commands/documents.d.ts +2 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +2 -2
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/library.d.ts +10 -0
- package/dist/commands/library.d.ts.map +1 -0
- package/dist/commands/library.js +468 -0
- package/dist/commands/library.js.map +1 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +4 -3
- package/dist/commands/session.js.map +1 -1
- package/dist/context.d.ts +5 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +12 -3
- package/dist/context.js.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -0
- package/dist/identity.js.map +1 -1
- package/dist/knowledge.d.ts +27 -0
- package/dist/knowledge.d.ts.map +1 -0
- package/dist/knowledge.js +87 -0
- package/dist/knowledge.js.map +1 -0
- package/dist/library.d.ts +44 -0
- package/dist/library.d.ts.map +1 -0
- package/dist/library.js +149 -0
- package/dist/library.js.map +1 -0
- package/dist/notion/client.d.ts +4 -1
- package/dist/notion/client.d.ts.map +1 -1
- package/dist/notion/client.js +5 -2
- package/dist/notion/client.js.map +1 -1
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +26 -1
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/reads.d.ts +4 -0
- package/dist/notion/reads.d.ts.map +1 -1
- package/dist/program.js +2 -2
- package/dist/program.js.map +1 -1
- package/dist/sync/cursor.d.ts +81 -0
- package/dist/sync/cursor.d.ts.map +1 -1
- package/dist/sync/cursor.js +63 -2
- package/dist/sync/cursor.js.map +1 -1
- package/dist/sync/files.d.ts +77 -0
- package/dist/sync/files.d.ts.map +1 -0
- package/dist/sync/files.js +12 -0
- package/dist/sync/files.js.map +1 -0
- package/dist/sync/markdown.d.ts +4 -1
- package/dist/sync/markdown.d.ts.map +1 -1
- package/dist/sync/markdown.js +8 -6
- package/dist/sync/markdown.js.map +1 -1
- package/dist/sync/source.d.ts +6 -59
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +616 -255
- 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 +12 -1
- package/dist/bundle/command-contract-6G5DC2FN.js +0 -35
- package/dist/bundle/decode-7XOFRAAT.js +0 -163
- package/dist/bundle/first-screen-JZPJND7J.js +0 -33
- package/dist/bundle/server-LWZGVMNW.js +0 -62
- package/dist/bundle/store-maintenance-command-D4W7WSLQ.js +0 -53
- package/dist/commands/comments.d.ts +0 -3
- package/dist/commands/comments.d.ts.map +0 -1
- package/dist/commands/comments.js +0 -114
- package/dist/commands/comments.js.map +0 -1
- package/dist/sample/comments.d.ts +0 -61
- package/dist/sample/comments.d.ts.map +0 -1
- package/dist/sample/comments.js +0 -39
- package/dist/sample/comments.js.map +0 -1
- package/dist/sample/records.d.ts +0 -16
- package/dist/sample/records.d.ts.map +0 -1
- package/dist/sample/records.js +0 -22
- package/dist/sample/records.js.map +0 -1
- package/dist/sample/transport.d.ts +0 -42
- package/dist/sample/transport.d.ts.map +0 -1
- package/dist/sample/transport.js +0 -153
- package/dist/sample/transport.js.map +0 -1
- /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-VKE77B3F.js} +0 -0
package/contracts/wirecat.json
CHANGED
|
@@ -71,6 +71,127 @@
|
|
|
71
71
|
"local": "read"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"path": [
|
|
76
|
+
"folders",
|
|
77
|
+
"add"
|
|
78
|
+
],
|
|
79
|
+
"summary": "import a folder and everything under it on the next sync",
|
|
80
|
+
"effects": {
|
|
81
|
+
"remote": "read",
|
|
82
|
+
"local": "write"
|
|
83
|
+
},
|
|
84
|
+
"permission": "folders.add"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": [
|
|
88
|
+
"folders",
|
|
89
|
+
"list"
|
|
90
|
+
],
|
|
91
|
+
"summary": "list the folder ids sync imports",
|
|
92
|
+
"effects": {
|
|
93
|
+
"remote": "none",
|
|
94
|
+
"local": "read"
|
|
95
|
+
},
|
|
96
|
+
"permission": "folders.list",
|
|
97
|
+
"entity": "selected_folder"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": [
|
|
101
|
+
"folders",
|
|
102
|
+
"browse"
|
|
103
|
+
],
|
|
104
|
+
"summary": "list Notion pages and databases one level at a time, live",
|
|
105
|
+
"effects": {
|
|
106
|
+
"remote": "read",
|
|
107
|
+
"local": "read"
|
|
108
|
+
},
|
|
109
|
+
"permission": "folders.browse",
|
|
110
|
+
"entity": "notion_folder"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"path": [
|
|
114
|
+
"folders",
|
|
115
|
+
"remove"
|
|
116
|
+
],
|
|
117
|
+
"summary": "stop importing a folder; the next sync drops its documents",
|
|
118
|
+
"effects": {
|
|
119
|
+
"remote": "none",
|
|
120
|
+
"local": "write"
|
|
121
|
+
},
|
|
122
|
+
"permission": "folders.remove"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"path": [
|
|
126
|
+
"sync"
|
|
127
|
+
],
|
|
128
|
+
"summary": "import what changed in the chosen folders, and finish an unfinished sync",
|
|
129
|
+
"effects": {
|
|
130
|
+
"remote": "read",
|
|
131
|
+
"local": "write"
|
|
132
|
+
},
|
|
133
|
+
"permission": "sync"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"path": [
|
|
137
|
+
"status"
|
|
138
|
+
],
|
|
139
|
+
"summary": "show the last sync, imported documents and pending work",
|
|
140
|
+
"effects": {
|
|
141
|
+
"remote": "none",
|
|
142
|
+
"local": "read"
|
|
143
|
+
},
|
|
144
|
+
"permission": "status"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"path": [
|
|
148
|
+
"documents",
|
|
149
|
+
"list"
|
|
150
|
+
],
|
|
151
|
+
"summary": "list the synced pages and database rows with their Notion links",
|
|
152
|
+
"effects": {
|
|
153
|
+
"remote": "none",
|
|
154
|
+
"local": "read"
|
|
155
|
+
},
|
|
156
|
+
"permission": "documents.list",
|
|
157
|
+
"entity": "document"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"path": [
|
|
161
|
+
"documents",
|
|
162
|
+
"show"
|
|
163
|
+
],
|
|
164
|
+
"summary": "show an imported document's text, tabs and metadata",
|
|
165
|
+
"effects": {
|
|
166
|
+
"remote": "none",
|
|
167
|
+
"local": "read"
|
|
168
|
+
},
|
|
169
|
+
"permission": "documents.show"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"path": [
|
|
173
|
+
"documents",
|
|
174
|
+
"export"
|
|
175
|
+
],
|
|
176
|
+
"summary": "write an imported document to a new Markdown file",
|
|
177
|
+
"effects": {
|
|
178
|
+
"remote": "none",
|
|
179
|
+
"local": "write"
|
|
180
|
+
},
|
|
181
|
+
"permission": "documents.export"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"path": [
|
|
185
|
+
"documents",
|
|
186
|
+
"context"
|
|
187
|
+
],
|
|
188
|
+
"summary": "show a document with its tags, relationships, notes, memories and editors",
|
|
189
|
+
"effects": {
|
|
190
|
+
"remote": "none",
|
|
191
|
+
"local": "read"
|
|
192
|
+
},
|
|
193
|
+
"permission": "documents.context"
|
|
194
|
+
},
|
|
74
195
|
{
|
|
75
196
|
"path": [
|
|
76
197
|
"documents",
|
|
@@ -84,6 +205,442 @@
|
|
|
84
205
|
"permission": "documents.get",
|
|
85
206
|
"entity": "document_markdown"
|
|
86
207
|
},
|
|
208
|
+
{
|
|
209
|
+
"path": [
|
|
210
|
+
"documents",
|
|
211
|
+
"add"
|
|
212
|
+
],
|
|
213
|
+
"summary": "keep one Notion page's text in memory, read live, without syncing a folder",
|
|
214
|
+
"effects": {
|
|
215
|
+
"remote": "read",
|
|
216
|
+
"local": "write"
|
|
217
|
+
},
|
|
218
|
+
"permission": "documents.add"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"path": [
|
|
222
|
+
"search"
|
|
223
|
+
],
|
|
224
|
+
"summary": "search imported documents by words, and by meaning when indexed",
|
|
225
|
+
"effects": {
|
|
226
|
+
"remote": "none",
|
|
227
|
+
"local": "read"
|
|
228
|
+
},
|
|
229
|
+
"permission": "search"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"path": [
|
|
233
|
+
"catalog",
|
|
234
|
+
"import"
|
|
235
|
+
],
|
|
236
|
+
"summary": "put cached file and folder metadata into the shared database",
|
|
237
|
+
"effects": {
|
|
238
|
+
"remote": "none",
|
|
239
|
+
"local": "write"
|
|
240
|
+
},
|
|
241
|
+
"permission": "catalog.import"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"path": [
|
|
245
|
+
"catalog",
|
|
246
|
+
"show"
|
|
247
|
+
],
|
|
248
|
+
"summary": "show stored metadata and the stable file or folder reference",
|
|
249
|
+
"effects": {
|
|
250
|
+
"remote": "none",
|
|
251
|
+
"local": "read"
|
|
252
|
+
},
|
|
253
|
+
"permission": "catalog.show",
|
|
254
|
+
"entity": "document"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"path": [
|
|
258
|
+
"catalog",
|
|
259
|
+
"list"
|
|
260
|
+
],
|
|
261
|
+
"summary": "list cached files and folders using metadata queries",
|
|
262
|
+
"effects": {
|
|
263
|
+
"remote": "none",
|
|
264
|
+
"local": "read"
|
|
265
|
+
},
|
|
266
|
+
"permission": "catalog.list",
|
|
267
|
+
"entity": "document"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"path": [
|
|
271
|
+
"catalog",
|
|
272
|
+
"search"
|
|
273
|
+
],
|
|
274
|
+
"summary": "search cached names, descriptions, types and observed people",
|
|
275
|
+
"effects": {
|
|
276
|
+
"remote": "none",
|
|
277
|
+
"local": "read"
|
|
278
|
+
},
|
|
279
|
+
"permission": "catalog.search",
|
|
280
|
+
"entity": "document"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"path": [
|
|
284
|
+
"catalog",
|
|
285
|
+
"tree"
|
|
286
|
+
],
|
|
287
|
+
"summary": "show the cached hierarchy below a folder or all selected roots",
|
|
288
|
+
"effects": {
|
|
289
|
+
"remote": "none",
|
|
290
|
+
"local": "read"
|
|
291
|
+
},
|
|
292
|
+
"permission": "catalog.tree"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"path": [
|
|
296
|
+
"catalog",
|
|
297
|
+
"tags",
|
|
298
|
+
"list"
|
|
299
|
+
],
|
|
300
|
+
"summary": "list local tags on a cached file or folder",
|
|
301
|
+
"effects": {
|
|
302
|
+
"remote": "none",
|
|
303
|
+
"local": "read"
|
|
304
|
+
},
|
|
305
|
+
"permission": "catalog.tags.list",
|
|
306
|
+
"entity": "document_tag"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"path": [
|
|
310
|
+
"catalog",
|
|
311
|
+
"tags",
|
|
312
|
+
"add"
|
|
313
|
+
],
|
|
314
|
+
"summary": "add local tags on a cached file or folder",
|
|
315
|
+
"effects": {
|
|
316
|
+
"remote": "none",
|
|
317
|
+
"local": "write"
|
|
318
|
+
},
|
|
319
|
+
"permission": "catalog.tags.add"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"path": [
|
|
323
|
+
"catalog",
|
|
324
|
+
"tags",
|
|
325
|
+
"remove"
|
|
326
|
+
],
|
|
327
|
+
"summary": "remove local tags on a cached file or folder",
|
|
328
|
+
"effects": {
|
|
329
|
+
"remote": "none",
|
|
330
|
+
"local": "write"
|
|
331
|
+
},
|
|
332
|
+
"permission": "catalog.tags.remove"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"path": [
|
|
336
|
+
"tags",
|
|
337
|
+
"list"
|
|
338
|
+
],
|
|
339
|
+
"summary": "list a document's tags",
|
|
340
|
+
"effects": {
|
|
341
|
+
"remote": "none",
|
|
342
|
+
"local": "read"
|
|
343
|
+
},
|
|
344
|
+
"permission": "tags.list",
|
|
345
|
+
"entity": "document_tag"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"path": [
|
|
349
|
+
"tags",
|
|
350
|
+
"add"
|
|
351
|
+
],
|
|
352
|
+
"summary": "tag a document",
|
|
353
|
+
"effects": {
|
|
354
|
+
"remote": "none",
|
|
355
|
+
"local": "write"
|
|
356
|
+
},
|
|
357
|
+
"permission": "tags.add"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"path": [
|
|
361
|
+
"tags",
|
|
362
|
+
"remove"
|
|
363
|
+
],
|
|
364
|
+
"summary": "untag a document",
|
|
365
|
+
"effects": {
|
|
366
|
+
"remote": "none",
|
|
367
|
+
"local": "write"
|
|
368
|
+
},
|
|
369
|
+
"permission": "tags.remove"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"path": [
|
|
373
|
+
"relationships",
|
|
374
|
+
"list"
|
|
375
|
+
],
|
|
376
|
+
"summary": "list a document's relationships",
|
|
377
|
+
"effects": {
|
|
378
|
+
"remote": "none",
|
|
379
|
+
"local": "read"
|
|
380
|
+
},
|
|
381
|
+
"permission": "relationships.list",
|
|
382
|
+
"entity": "document_relationship"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"path": [
|
|
386
|
+
"relationships",
|
|
387
|
+
"add"
|
|
388
|
+
],
|
|
389
|
+
"summary": "connect a document to another reference",
|
|
390
|
+
"effects": {
|
|
391
|
+
"remote": "none",
|
|
392
|
+
"local": "write"
|
|
393
|
+
},
|
|
394
|
+
"permission": "relationships.add"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"path": [
|
|
398
|
+
"relationships",
|
|
399
|
+
"remove"
|
|
400
|
+
],
|
|
401
|
+
"summary": "remove one of a document's relationships",
|
|
402
|
+
"effects": {
|
|
403
|
+
"remote": "none",
|
|
404
|
+
"local": "write"
|
|
405
|
+
},
|
|
406
|
+
"permission": "relationships.remove"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"path": [
|
|
410
|
+
"notes",
|
|
411
|
+
"add"
|
|
412
|
+
],
|
|
413
|
+
"summary": "write a note about a document",
|
|
414
|
+
"effects": {
|
|
415
|
+
"remote": "none",
|
|
416
|
+
"local": "write"
|
|
417
|
+
},
|
|
418
|
+
"permission": "notes.add",
|
|
419
|
+
"entity": "note"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"path": [
|
|
423
|
+
"notes",
|
|
424
|
+
"list"
|
|
425
|
+
],
|
|
426
|
+
"summary": "list a document's notes",
|
|
427
|
+
"effects": {
|
|
428
|
+
"remote": "none",
|
|
429
|
+
"local": "read"
|
|
430
|
+
},
|
|
431
|
+
"permission": "notes.list",
|
|
432
|
+
"entity": "note"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"path": [
|
|
436
|
+
"notes",
|
|
437
|
+
"show"
|
|
438
|
+
],
|
|
439
|
+
"summary": "show one note",
|
|
440
|
+
"effects": {
|
|
441
|
+
"remote": "none",
|
|
442
|
+
"local": "read"
|
|
443
|
+
},
|
|
444
|
+
"permission": "notes.show",
|
|
445
|
+
"entity": "note"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"path": [
|
|
449
|
+
"notes",
|
|
450
|
+
"edit"
|
|
451
|
+
],
|
|
452
|
+
"summary": "replace a note's text",
|
|
453
|
+
"effects": {
|
|
454
|
+
"remote": "none",
|
|
455
|
+
"local": "write"
|
|
456
|
+
},
|
|
457
|
+
"permission": "notes.edit",
|
|
458
|
+
"entity": "note"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"path": [
|
|
462
|
+
"notes",
|
|
463
|
+
"remove"
|
|
464
|
+
],
|
|
465
|
+
"summary": "delete one note",
|
|
466
|
+
"effects": {
|
|
467
|
+
"remote": "none",
|
|
468
|
+
"local": "write"
|
|
469
|
+
},
|
|
470
|
+
"permission": "notes.remove"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"path": [
|
|
474
|
+
"memories",
|
|
475
|
+
"add"
|
|
476
|
+
],
|
|
477
|
+
"summary": "record a memory about a document",
|
|
478
|
+
"effects": {
|
|
479
|
+
"remote": "none",
|
|
480
|
+
"local": "write"
|
|
481
|
+
},
|
|
482
|
+
"permission": "memories.add"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"path": [
|
|
486
|
+
"memories",
|
|
487
|
+
"list"
|
|
488
|
+
],
|
|
489
|
+
"summary": "list a document's memories",
|
|
490
|
+
"effects": {
|
|
491
|
+
"remote": "none",
|
|
492
|
+
"local": "read"
|
|
493
|
+
},
|
|
494
|
+
"permission": "memories.list",
|
|
495
|
+
"entity": "memory"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"path": [
|
|
499
|
+
"memories",
|
|
500
|
+
"show"
|
|
501
|
+
],
|
|
502
|
+
"summary": "show one memory",
|
|
503
|
+
"effects": {
|
|
504
|
+
"remote": "none",
|
|
505
|
+
"local": "read"
|
|
506
|
+
},
|
|
507
|
+
"permission": "memories.show"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"path": [
|
|
511
|
+
"memories",
|
|
512
|
+
"confirm"
|
|
513
|
+
],
|
|
514
|
+
"summary": "confirm a proposed memory as true",
|
|
515
|
+
"effects": {
|
|
516
|
+
"remote": "none",
|
|
517
|
+
"local": "write"
|
|
518
|
+
},
|
|
519
|
+
"permission": "memories.confirm"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"path": [
|
|
523
|
+
"memories",
|
|
524
|
+
"stale"
|
|
525
|
+
],
|
|
526
|
+
"summary": "mark a memory as out of date",
|
|
527
|
+
"effects": {
|
|
528
|
+
"remote": "none",
|
|
529
|
+
"local": "write"
|
|
530
|
+
},
|
|
531
|
+
"permission": "memories.stale"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"path": [
|
|
535
|
+
"memories",
|
|
536
|
+
"search"
|
|
537
|
+
],
|
|
538
|
+
"summary": "search a document's memories by words",
|
|
539
|
+
"effects": {
|
|
540
|
+
"remote": "none",
|
|
541
|
+
"local": "read"
|
|
542
|
+
},
|
|
543
|
+
"permission": "memories.search",
|
|
544
|
+
"entity": "memory"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"path": [
|
|
548
|
+
"memories",
|
|
549
|
+
"extract"
|
|
550
|
+
],
|
|
551
|
+
"summary": "send a document's text to the model and show the memories it proposes",
|
|
552
|
+
"effects": {
|
|
553
|
+
"remote": "write",
|
|
554
|
+
"local": "write"
|
|
555
|
+
},
|
|
556
|
+
"permission": "memories.extract"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"path": [
|
|
560
|
+
"facts",
|
|
561
|
+
"add"
|
|
562
|
+
],
|
|
563
|
+
"summary": "record a fact a document shows",
|
|
564
|
+
"effects": {
|
|
565
|
+
"remote": "none",
|
|
566
|
+
"local": "write"
|
|
567
|
+
},
|
|
568
|
+
"permission": "facts.add"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"path": [
|
|
572
|
+
"facts",
|
|
573
|
+
"list"
|
|
574
|
+
],
|
|
575
|
+
"summary": "list a document's facts",
|
|
576
|
+
"effects": {
|
|
577
|
+
"remote": "none",
|
|
578
|
+
"local": "read"
|
|
579
|
+
},
|
|
580
|
+
"permission": "facts.list",
|
|
581
|
+
"entity": "fact"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"path": [
|
|
585
|
+
"facts",
|
|
586
|
+
"show"
|
|
587
|
+
],
|
|
588
|
+
"summary": "show one fact",
|
|
589
|
+
"effects": {
|
|
590
|
+
"remote": "none",
|
|
591
|
+
"local": "read"
|
|
592
|
+
},
|
|
593
|
+
"permission": "facts.show"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"path": [
|
|
597
|
+
"facts",
|
|
598
|
+
"confirm"
|
|
599
|
+
],
|
|
600
|
+
"summary": "confirm a proposed fact; a decision it supersedes stops holding",
|
|
601
|
+
"effects": {
|
|
602
|
+
"remote": "none",
|
|
603
|
+
"local": "write"
|
|
604
|
+
},
|
|
605
|
+
"permission": "facts.confirm"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"path": [
|
|
609
|
+
"facts",
|
|
610
|
+
"reverse"
|
|
611
|
+
],
|
|
612
|
+
"summary": "an accepted decision no longer holds, and nothing replaced it",
|
|
613
|
+
"effects": {
|
|
614
|
+
"remote": "none",
|
|
615
|
+
"local": "write"
|
|
616
|
+
},
|
|
617
|
+
"permission": "facts.reverse"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"path": [
|
|
621
|
+
"identities",
|
|
622
|
+
"list"
|
|
623
|
+
],
|
|
624
|
+
"summary": "list the creator and last editor Notion shows for a page",
|
|
625
|
+
"effects": {
|
|
626
|
+
"remote": "none",
|
|
627
|
+
"local": "read"
|
|
628
|
+
},
|
|
629
|
+
"permission": "identities.list",
|
|
630
|
+
"entity": "document_identity"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"path": [
|
|
634
|
+
"identities",
|
|
635
|
+
"link"
|
|
636
|
+
],
|
|
637
|
+
"summary": "record that a Notion account belongs to a known person",
|
|
638
|
+
"effects": {
|
|
639
|
+
"remote": "none",
|
|
640
|
+
"local": "write"
|
|
641
|
+
},
|
|
642
|
+
"permission": "identities.link"
|
|
643
|
+
},
|
|
87
644
|
{
|
|
88
645
|
"path": [
|
|
89
646
|
"databases",
|
|
@@ -1129,6 +1686,78 @@
|
|
|
1129
1686
|
}
|
|
1130
1687
|
],
|
|
1131
1688
|
"entities": {
|
|
1689
|
+
"selected_folder": {
|
|
1690
|
+
"fields": [
|
|
1691
|
+
"id"
|
|
1692
|
+
]
|
|
1693
|
+
},
|
|
1694
|
+
"document": {
|
|
1695
|
+
"fields": [
|
|
1696
|
+
"name",
|
|
1697
|
+
"kind",
|
|
1698
|
+
"mime"
|
|
1699
|
+
]
|
|
1700
|
+
},
|
|
1701
|
+
"document_tag": {
|
|
1702
|
+
"fields": [
|
|
1703
|
+
"tag"
|
|
1704
|
+
]
|
|
1705
|
+
},
|
|
1706
|
+
"document_relationship": {
|
|
1707
|
+
"fields": [
|
|
1708
|
+
"id",
|
|
1709
|
+
"from",
|
|
1710
|
+
"to",
|
|
1711
|
+
"kind",
|
|
1712
|
+
"role",
|
|
1713
|
+
"confirmed",
|
|
1714
|
+
"origin"
|
|
1715
|
+
]
|
|
1716
|
+
},
|
|
1717
|
+
"note": {
|
|
1718
|
+
"fields": [
|
|
1719
|
+
"ref",
|
|
1720
|
+
"kind",
|
|
1721
|
+
"provider",
|
|
1722
|
+
"account",
|
|
1723
|
+
"url",
|
|
1724
|
+
"id",
|
|
1725
|
+
"source",
|
|
1726
|
+
"folder_id",
|
|
1727
|
+
"path",
|
|
1728
|
+
"title",
|
|
1729
|
+
"text",
|
|
1730
|
+
"revision",
|
|
1731
|
+
"content_hash",
|
|
1732
|
+
"export_path",
|
|
1733
|
+
"created_at",
|
|
1734
|
+
"updated_at",
|
|
1735
|
+
"deleted_at",
|
|
1736
|
+
"tags",
|
|
1737
|
+
"excerpt",
|
|
1738
|
+
"found_by"
|
|
1739
|
+
]
|
|
1740
|
+
},
|
|
1741
|
+
"memory": {
|
|
1742
|
+
"fields": [
|
|
1743
|
+
"kind",
|
|
1744
|
+
"status",
|
|
1745
|
+
"scope"
|
|
1746
|
+
]
|
|
1747
|
+
},
|
|
1748
|
+
"fact": {
|
|
1749
|
+
"fields": [
|
|
1750
|
+
"kind",
|
|
1751
|
+
"status"
|
|
1752
|
+
]
|
|
1753
|
+
},
|
|
1754
|
+
"document_identity": {
|
|
1755
|
+
"fields": [
|
|
1756
|
+
"remote_id",
|
|
1757
|
+
"provider",
|
|
1758
|
+
"role"
|
|
1759
|
+
]
|
|
1760
|
+
},
|
|
1132
1761
|
"database": {
|
|
1133
1762
|
"fields": [
|
|
1134
1763
|
"title"
|
|
@@ -1297,7 +1926,27 @@
|
|
|
1297
1926
|
]
|
|
1298
1927
|
},
|
|
1299
1928
|
"tasks": null,
|
|
1300
|
-
"sync":
|
|
1929
|
+
"sync": {
|
|
1930
|
+
"run": [
|
|
1931
|
+
"{profile}",
|
|
1932
|
+
"sync",
|
|
1933
|
+
"--record",
|
|
1934
|
+
"--json"
|
|
1935
|
+
],
|
|
1936
|
+
"last": [
|
|
1937
|
+
"runs",
|
|
1938
|
+
"list",
|
|
1939
|
+
"command:sync",
|
|
1940
|
+
"status:success",
|
|
1941
|
+
"--limit",
|
|
1942
|
+
"50",
|
|
1943
|
+
"--no-record",
|
|
1944
|
+
"--json"
|
|
1945
|
+
],
|
|
1946
|
+
"lastShape": "runs",
|
|
1947
|
+
"what": "Notion pages and database rows",
|
|
1948
|
+
"note": null
|
|
1949
|
+
},
|
|
1301
1950
|
"storeInfo": null,
|
|
1302
1951
|
"storeTables": null,
|
|
1303
1952
|
"storeTableSizes": null,
|
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.2.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-JGYLQZ5C.js","../bundle/anthropic-S2VSMIKQ.js","../bundle/app-server-SASYDBCA.js","../bundle/bun-LU5LP3JI.js","../bundle/bun-sqlite-JBSINB4O.js","../bundle/decode-7LLWTSPT.js","../bundle/definitions-M3U4UYHN.js","../bundle/dispatch-2GY6JIJH.js","../bundle/dist-ILNOLGYN.js","../bundle/echarts-BXX4OQWC.js","../bundle/embed-JXFNBTKH.js","../bundle/embedder-57YZ44KO.js","../bundle/failure-MYT4HPE3.js","../bundle/first-screen-7BEROEQR.js","../bundle/instructions-2VECIDXF.js","../bundle/mcp-O6ACR2DX.js","../bundle/meeting-combined-PPUQ3KBR.js","../bundle/meeting-model-ZNMYKMCD.js","../bundle/meeting-semantic-ETN3A4BJ.js","../bundle/node-KM3CUABH.js","../bundle/node-MPEQSFI3.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-WA32MYSJ.js","../bundle/oauth-IAFZG3IR.js","../bundle/open-M3JQUC5G.js","../bundle/openai-HXUEHUSD.js","../bundle/process-F6TKXWWA.js","../bundle/program-Y7JAB6TG.js","../bundle/prompt-IMUQLZD2.js","../bundle/recognize-2MZAYHAA.js","../bundle/remote-OV4LB6VR.js","../bundle/rerank-ZIULUS34.js","../bundle/schemas-DIVZS6TU.js","../bundle/serve-YU7QBP6L.js","../bundle/server-FKQET4ZO.js","../bundle/server-LGMNONSB.js","../bundle/services-5WY4DCPJ.js","../bundle/sqlite-runtime-5MXZDETH.js","../bundle/state-LWMZH2KI.js","../bundle/store-EPZYV4VW.js","../bundle/store-QE6FEIZD.js","../bundle/store-maintenance-command-ZUUUFCHL.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|