@wirecat/notion-cli 0.1.0 → 0.3.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 +69 -0
- package/README.md +14 -4
- package/contracts/wirecat.json +698 -1
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/{all-profiles-OETMCOLN.js → all-profiles-4IONYZB6.js} +10 -10
- package/dist/bundle/{anthropic-5Y3O2TYM.js → anthropic-OXF74J4P.js} +6 -6
- package/dist/bundle/{app-server-IVWBIVHC.js → app-server-M2VF6ABM.js} +61 -52
- package/dist/bundle/{bun-EO636SAD.js → bun-DLA6QRLL.js} +2 -2
- package/dist/bundle/{bun-sqlite-C2T7QJ2M.js → bun-sqlite-F4BYLW3F.js} +7 -7
- package/dist/bundle/{chunk-QBC23NHD.js → chunk-2MHMKNWD.js} +1 -1
- package/dist/bundle/{chunk-TSCIIXN3.js → chunk-4KUJTSHG.js} +2 -2
- package/dist/bundle/{chunk-24FAYAML.js → chunk-4TQVZXOV.js} +3 -3
- package/dist/bundle/{chunk-FF4DDBCB.js → chunk-5LBJNTEJ.js} +6 -6
- package/dist/bundle/chunk-5UA2TYMI.js +29 -0
- package/dist/bundle/{chunk-DIM5YWBU.js → chunk-5XP4KQ2F.js} +1 -1
- package/dist/bundle/{chunk-WM7663C2.js → chunk-6GN7KU7X.js} +9 -9
- package/dist/bundle/chunk-6JBLIQQN.js +16 -0
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-TR7R5DL4.js → chunk-7NGFGFE5.js} +12 -63
- package/dist/bundle/{chunk-YA4LSSDZ.js → chunk-7NVPM55S.js} +2913 -2371
- package/dist/bundle/{chunk-XC5CKHX2.js → chunk-7YZPBAQX.js} +1 -1
- package/dist/bundle/{chunk-RSIS7BR7.js → chunk-AYU5TFDU.js} +21 -21
- package/dist/bundle/{chunk-64D5VUZ4.js → chunk-BEPFGITI.js} +68 -64
- package/dist/bundle/{chunk-HRTIRRXR.js → chunk-CBGBFAYJ.js} +41 -6
- package/dist/bundle/{chunk-QC3KOJT4.js → chunk-CDGZZNGY.js} +6 -6
- package/dist/bundle/{chunk-JK44XO2S.js → chunk-CIVXTBJY.js} +56 -56
- package/dist/bundle/{chunk-OWJDC4CB.js → chunk-COH7OEER.js} +14 -13
- package/dist/bundle/{chunk-XL2HXHP3.js → chunk-D6RCRBDH.js} +2 -2
- package/dist/bundle/{chunk-47R43UVJ.js → chunk-EQPAZ33O.js} +19 -19
- package/dist/bundle/{chunk-AE2KQ37N.js → chunk-EY6S7FV3.js} +6 -6
- package/dist/bundle/chunk-FEMHUSGO.js +88 -0
- package/dist/bundle/{chunk-NLDYZBTC.js → chunk-FSJHASRQ.js} +1146 -2555
- package/dist/bundle/chunk-GBFEEHQC.js +385 -0
- package/dist/bundle/{chunk-IQWEJEB5.js → chunk-GCCPFKSU.js} +26264 -21086
- package/dist/bundle/{chunk-RDZ7SVBZ.js → chunk-GK4GLPG2.js} +3 -3
- package/dist/bundle/{chunk-B2XKEEFX.js → chunk-GSNE7OB4.js} +4 -4
- package/dist/bundle/{chunk-UWW24JQF.js → chunk-HTKSCSJU.js} +4 -4
- package/dist/bundle/{chunk-7FII4DCE.js → chunk-IJMFG7HB.js} +7 -7
- package/dist/bundle/{chunk-WVZFXI36.js → chunk-JIRRF6BM.js} +4 -4
- package/dist/bundle/{chunk-ST2UC7FS.js → chunk-JODE2XED.js} +31 -27
- package/dist/bundle/{chunk-CWVAYQXI.js → chunk-K5I64ZVI.js} +9 -9
- package/dist/bundle/chunk-KFVDL2QS.js +146 -0
- package/dist/bundle/{chunk-JKIN5TOU.js → chunk-KL3P5TQK.js} +4 -4
- package/dist/bundle/chunk-L62XTC7N.js +726 -0
- package/dist/bundle/chunk-L6H7PY4X.js +170 -0
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-HWRKURQH.js → chunk-M2EEIYBU.js} +2 -2
- package/dist/bundle/chunk-M6DGZ2O6.js +823 -0
- package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
- package/dist/bundle/{chunk-UWIA2G6Q.js → chunk-MRA62W5K.js} +404 -537
- package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-ESZT4WW3.js → chunk-OCDJ4FFA.js} +4 -4
- package/dist/bundle/{chunk-B4B65XIO.js → chunk-OI5DWZJG.js} +3 -3
- package/dist/bundle/chunk-P3P6DA6K.js +259 -0
- package/dist/bundle/chunk-QX3TPFEX.js +1977 -0
- package/dist/bundle/{chunk-EU5WCOMQ.js → chunk-R6SDRSZK.js} +76 -35
- package/dist/bundle/{chunk-K5TWMQSY.js → chunk-RMJMID5D.js} +8 -8
- package/dist/bundle/{chunk-RLSFOR2D.js → chunk-SGBS5QCU.js} +4 -4
- package/dist/bundle/{chunk-3D3PFXBP.js → chunk-T5UNSFES.js} +10 -15
- package/dist/bundle/{chunk-RAZKIHGH.js → chunk-TFNRCCGR.js} +4 -4
- package/dist/bundle/{chunk-WK3OSDNV.js → chunk-TJCPTRYD.js} +7 -7
- package/dist/bundle/{chunk-BWICUW7W.js → chunk-TXONV3HW.js} +2 -2
- package/dist/bundle/{chunk-AQZO3ITW.js → chunk-TZ2QJ53V.js} +2 -2
- package/dist/bundle/{chunk-35K5T6WV.js → chunk-UKE3CGHK.js} +1 -1
- package/dist/bundle/{chunk-7N5QB6NL.js → chunk-UROEWCOG.js} +5 -3
- package/dist/bundle/chunk-WHJWURZB.js +335 -0
- package/dist/bundle/{chunk-R6ZM45NF.js → chunk-WU3XHGOB.js} +185 -57
- package/dist/bundle/{chunk-2YR3RYT4.js → chunk-WZEEEQGC.js} +3 -3
- package/dist/bundle/{chunk-B2WFKFYL.js → chunk-XCTOCVMW.js} +20 -116
- package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
- package/dist/bundle/{chunk-EGTBL3MJ.js → chunk-Y5LAJWR5.js} +1 -1
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-WWMB4UHF.js → chunk-YFWLHTNO.js} +1 -1
- package/dist/bundle/{chunk-KHOVVPLC.js → chunk-YGCI3DHS.js} +1 -1
- package/dist/bundle/{chunk-4GC5DBHW.js → chunk-Z53LYX4M.js} +3 -3
- package/dist/bundle/{chunk-EPAZ7DJB.js → chunk-ZC6ZQQ55.js} +48 -45
- package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
- package/dist/bundle/{command-server-entry-A66DJ3MH.js → command-server-entry-2SORMVRM.js} +27 -24
- package/dist/bundle/decode-5O7IEFPN.js +297 -0
- package/dist/bundle/{dispatch-FEKU5UXC.js → dispatch-YHQX6FEJ.js} +8 -8
- package/dist/bundle/{dist-YFKABFFF.js → dist-ILNOLGYN.js} +1 -1
- package/dist/bundle/{echarts-XD2JSWU4.js → echarts-ARLMVQC7.js} +2 -2
- package/dist/bundle/{embed-F3HYGAF7.js → embed-FUDUKQ3K.js} +7 -7
- package/dist/bundle/{embedder-GSEDDUH7.js → embedder-HDRV7GX3.js} +10 -10
- package/dist/bundle/{failure-HDJLR2YJ.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-NZGJ4FW5.js → instructions-MEFIKCDI.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-VMS6PBCU.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-HNSS3FQY.js +24 -0
- package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
- package/dist/bundle/meeting-semantic-R4CSLVRG.js +22 -0
- package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
- package/dist/bundle/{node-RPKPDYQS.js → node-MAQALPLA.js} +2 -2
- package/dist/bundle/{node-sqlite-KH2UUYVO.js → node-sqlite-J7IJYNBO.js} +8 -8
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/{oauth-NKAI7TQD.js → oauth-AMV4YGJD.js} +8 -8
- package/dist/bundle/{open-WSAEAA2V.js → open-AB27MTGR.js} +6 -6
- package/dist/bundle/{openai-JPVDGHG5.js → openai-D77MU5XV.js} +31 -29
- package/dist/bundle/{process-5ZFVKOQX.js → process-SIOWTRJ6.js} +1 -1
- package/dist/bundle/{program-M3D56D6T.js → program-QC5MX4ZJ.js} +7533 -1997
- package/dist/bundle/{prompt-FROYQ5LV.js → prompt-W77YDHA6.js} +6 -6
- package/dist/bundle/{recognize-NYCHQMCX.js → recognize-3JAXQQ36.js} +5 -5
- package/dist/bundle/{remote-4OERF3Z4.js → remote-PSOJXCXO.js} +11 -11
- package/dist/bundle/{rerank-TEGXFUWY.js → rerank-EE44ZTGL.js} +8 -8
- package/dist/bundle/{schemas-MZNNOEYN.js → schemas-LBYUMBC6.js} +2 -2
- package/dist/bundle/{serve-HLYYBAXY.js → serve-XJMGAMFW.js} +10 -10
- package/dist/bundle/{server-D5OYNEUW.js → server-ASU6CP5R.js} +53 -44
- package/dist/bundle/server-WSPQ5EOA.js +72 -0
- package/dist/bundle/services-PT4PA4J6.js +588 -0
- package/dist/bundle/{sqlite-runtime-H2S5RR2F.js → sqlite-runtime-YHXRTVXE.js} +7 -7
- package/dist/bundle/{state-OPOXCDZL.js → state-T6ZKFWGD.js} +7 -7
- package/dist/bundle/{store-NHMXEJPD.js → store-3MUCZEI3.js} +20 -14
- package/dist/bundle/{store-Y3KRLCJ7.js → store-E5EE25FY.js} +30 -21
- 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/documents.d.ts +10 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +175 -5
- 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 +470 -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/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +73 -5
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +8 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +15 -3
- 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/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 +5 -0
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +33 -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/notion/writes.d.ts +40 -0
- package/dist/notion/writes.d.ts.map +1 -0
- package/dist/notion/writes.js +112 -0
- package/dist/notion/writes.js.map +1 -0
- package/dist/program.js +2 -2
- package/dist/program.js.map +1 -1
- package/dist/sync/cursor.d.ts +93 -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 +87 -0
- package/dist/sync/files.d.ts.map +1 -0
- package/dist/sync/files.js +31 -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 +650 -271
- 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 +18 -1
- package/dist/bundle/command-contract-6G5DC2FN.js +0 -35
- package/dist/bundle/decode-7XOFRAAT.js +0 -163
- package/dist/bundle/first-run-TXNTIUSP.js +0 -28
- 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-SHTHNBHG.js} +0 -0
package/dist/config.js
CHANGED
|
@@ -1,13 +1,81 @@
|
|
|
1
1
|
import { commandPermissions, settingsFor } from "@wirecat/cli-core/cli";
|
|
2
2
|
import { operations } from "./generated/manifest.js";
|
|
3
3
|
import { IDENTITY } from "./identity.js";
|
|
4
|
+
/** Deleting child pages through an update is a delete, so it asks as `documents delete` does. */
|
|
5
|
+
export const DELETE_KEY = "documents.delete";
|
|
6
|
+
/**
|
|
7
|
+
* The generated operation each page write sends, so denying `api.<operation>` cannot be got round through
|
|
8
|
+
* `documents …`, as gcal-cli does for its event writes.
|
|
9
|
+
*/
|
|
10
|
+
export const PAGE_WRITE_KEYS = {
|
|
11
|
+
"documents create": ["api.post-page"],
|
|
12
|
+
"documents update": ["api.update-page-markdown"],
|
|
13
|
+
"documents delete": ["api.patch-page"],
|
|
14
|
+
"documents restore": ["api.patch-page"],
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The raw operations whose body can delete, so `documents.delete: deny` holds over `api` too. Found by scanning
|
|
18
|
+
* Notion's OpenAPI document for body fields that trash, erase, archive or remove: `in_trash` (pages, blocks, databases,
|
|
19
|
+
* data sources), `erase_content` and `is_archived` (pages; what `is_archived` does is undocumented, so it counts as a
|
|
20
|
+
* delete), `allow_deleting_content` (Markdown updates), and a data source property set to `null`, which removes it
|
|
21
|
+
* with its values ([update a data source](https://developers.notion.com/reference/update-a-data-source)).
|
|
22
|
+
*/
|
|
23
|
+
export const TRASHING_OPERATIONS = [
|
|
24
|
+
"patch-page",
|
|
25
|
+
"update-page-markdown",
|
|
26
|
+
"update-a-block",
|
|
27
|
+
"update-database",
|
|
28
|
+
"update-a-data-source",
|
|
29
|
+
];
|
|
30
|
+
const TRASHES = "the body trashes, erases, archives or removes content";
|
|
31
|
+
/** Every operation that deletes by its method (a block, which may be a page, a comment, a view): always a delete. */
|
|
32
|
+
export const DELETING_OPERATIONS = operations
|
|
33
|
+
.filter((operation) => operation.effect === "destructive")
|
|
34
|
+
.map((operation) => operation.command);
|
|
35
|
+
/** One call that runs up to 100 agent operations, a delete among them. */
|
|
36
|
+
const AGENT_BATCH = "agent-batch";
|
|
37
|
+
const DELETING_FIELDS = ["in_trash", "erase_content", "is_archived", "archived"];
|
|
38
|
+
const isObject = (value) => !!value && typeof value === "object" && !Array.isArray(value);
|
|
39
|
+
/** A raw call that deletes: by its operation, or by a body that trashes, erases, archives or removes content. */
|
|
40
|
+
export const deletesByBody = (operation, body) => {
|
|
41
|
+
if (DELETING_OPERATIONS.includes(operation))
|
|
42
|
+
return true;
|
|
43
|
+
if (operation === AGENT_BATCH)
|
|
44
|
+
return (isObject(body) &&
|
|
45
|
+
Array.isArray(body.operations) &&
|
|
46
|
+
body.operations.some((one) => isObject(one) && one.action === "delete"));
|
|
47
|
+
if (!TRASHING_OPERATIONS.includes(operation) || !isObject(body))
|
|
48
|
+
return false;
|
|
49
|
+
const update = typeof body.type === "string" ? body[body.type] : undefined;
|
|
50
|
+
return (DELETING_FIELDS.some((field) => body[field] === true) ||
|
|
51
|
+
(isObject(update) && update.allow_deleting_content === true) ||
|
|
52
|
+
(operation === "update-a-data-source" &&
|
|
53
|
+
isObject(body.properties) &&
|
|
54
|
+
Object.values(body.properties).some((property) => property === null)));
|
|
55
|
+
};
|
|
4
56
|
/** Each command is checked against its own path (`notes.list`); add the keys a command checks inside itself. */
|
|
5
57
|
export const permissions = commandPermissions({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
58
|
+
alsoChecks: (path) => {
|
|
59
|
+
const keys = PAGE_WRITE_KEYS[path.join(" ")] ?? [];
|
|
60
|
+
if (path.join(" ") === "documents update")
|
|
61
|
+
return [...keys, { key: DELETE_KEY, when: "with --allow-deleting-content" }];
|
|
62
|
+
if (path[0] === "api" && DELETING_OPERATIONS.includes(path[1] ?? ""))
|
|
63
|
+
return [DELETE_KEY];
|
|
64
|
+
if (path[0] === "api" && path[1] === AGENT_BATCH)
|
|
65
|
+
return [{ key: DELETE_KEY, when: "an operation's action is delete" }];
|
|
66
|
+
if (path[0] === "api" && TRASHING_OPERATIONS.includes(path[1] ?? ""))
|
|
67
|
+
return [{ key: DELETE_KEY, when: TRASHES }];
|
|
68
|
+
return keys;
|
|
69
|
+
},
|
|
70
|
+
defaults: {
|
|
71
|
+
// As gcal-cli and drive-cli: a page is created and changed freely, a page to the trash asks first. Over MCP `ask`
|
|
72
|
+
// goes ahead (cli-core's rule), so `deny` is what stops an agent.
|
|
73
|
+
[DELETE_KEY]: "ask",
|
|
74
|
+
// A generated API operation that deletes asks first at a terminal, as above.
|
|
75
|
+
...Object.fromEntries(operations
|
|
76
|
+
.filter((operation) => operation.effect === "destructive")
|
|
77
|
+
.map((operation) => [`api.${operation.command}`, "ask"])),
|
|
78
|
+
},
|
|
11
79
|
});
|
|
12
80
|
export const configuration = settingsFor(IDENTITY, { permissions });
|
|
13
81
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,kBAAkB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,gHAAgH;AAChH,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAC;IAC5C,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,kBAAkB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,iGAAiG;AACjG,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAA;AAE5C;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAsC;IAChE,kBAAkB,EAAE,CAAC,eAAe,CAAC;IACrC,kBAAkB,EAAE,CAAC,0BA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,CAAC,CAAA;QACzF,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,WAAW;YAC9C,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAA;QACvE,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,KAAK,IAAK,mBAAyC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YACzF,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;QAC7C,OAAO,IAAI,CAAA;IACb,CAAC;IACD,QAAQ,EAAE;QACR,kHAAkH;QAClH,kEAAkE;QAClE,CAAC,UAAU,CAAC,EAAE,KAAK;QACnB,6EAA6E;QAC7E,GAAG,MAAM,CAAC,WAAW,CACnB,UAAU;aACP,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,KAAK,aAAa,CAAC;aACzD,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,OAAO,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC,CAC3D;KACF;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,aAAa,GAAkB,WAAW,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,CAAC,CAAA"}
|
package/dist/context.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ import type { SleepLike } from "@wirecat/cli-base";
|
|
|
2
2
|
import { type BaseEnvironment, type EventSink, type GlobalFlags, ProfileTokenStore } from "@wirecat/cli-core/cli";
|
|
3
3
|
import type { Command } from "commander";
|
|
4
4
|
import { type LiveReads } from "./notion/notion.js";
|
|
5
|
+
import type { NotionReads } from "./notion/reads.js";
|
|
6
|
+
import { type LiveWrites } from "./notion/writes.js";
|
|
5
7
|
/** What a test hands `run()` beside cli-core's own: the fake Notion in place of the network (WC-ARCH-10). */
|
|
6
8
|
export interface ServiceEnvironment extends BaseEnvironment {
|
|
7
9
|
fetch?: typeof fetch;
|
|
8
10
|
/** Notion's retry and pace waits; a test passes one that only counts them (WC-TEST-3). */
|
|
9
11
|
sleep?: SleepLike;
|
|
12
|
+
/** The clock those waits run on, in ms; a test's `sleep` moves it, or the pace would wait on real time. */
|
|
13
|
+
now?: () => number;
|
|
10
14
|
}
|
|
11
15
|
/**
|
|
12
16
|
* Settings, keyring and the run come from cli-core's `baseContext` and nowhere else: a command that resolves settings
|
|
@@ -36,6 +40,8 @@ export declare const contextOf: (command: Command) => {
|
|
|
36
40
|
export declare const tokenOf: (command: Command) => string;
|
|
37
41
|
/** Notion for one run: the SDK over the run's transport. */
|
|
38
42
|
export declare const notionFor: (command: Command, token: string, events: EventSink) => LiveReads;
|
|
43
|
+
/** The sync's read port: Notion's clock comes from the Date header of every answer, never from this computer's. */
|
|
44
|
+
export declare const notionReadsFor: (command: Command, token: string, events: EventSink) => NotionReads;
|
|
39
45
|
/** The same transport for the generated `api` commands, each attempt recorded in the run, as the SDK's are. */
|
|
40
46
|
export declare const notionFetchFor: (command: Command) => import("@wirecat/cli-base/http").FetchLike;
|
|
41
47
|
/**
|
|
@@ -43,4 +49,6 @@ export declare const notionFetchFor: (command: Command) => import("@wirecat/cli-
|
|
|
43
49
|
* a run named after the command, and the client's requests land in that run (WC-LIFE-5, WC-LIFE-15).
|
|
44
50
|
*/
|
|
45
51
|
export declare const withNotion: <T>(command: Command, body: (notion: LiveReads) => Promise<T>) => Promise<T>;
|
|
52
|
+
/** The writes' client for one run, the same transport as the reads'; the token is read before the write is guarded. */
|
|
53
|
+
export declare const notionWritesFor: (command: Command, token: string, events: EventSink) => LiveWrites;
|
|
46
54
|
//# sourceMappingURL=context.d.ts.map
|
package/dist/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":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,OAAO,KAAG,MAI1C,CAAA;AAmBD,4DAA4D;AAC5D,eAAO,MAAM,SAAS,YAAa,OAAO,SAAS,MAAM,UAAU,SAAS,KAAG,SACV,CAAA;AAErE,mHAAmH;AACnH,eAAO,MAAM,cAAc,YAAa,OAAO,SAAS,MAAM,UAAU,SAAS,KAAG,WAGnF,CAAA;AAED,+GAA+G;AAC/G,eAAO,MAAM,cAAc,YAAa,OAAO,+CAAiD,CAAA;AAEhG;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,WAAW,OAAO,QAAQ,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,CAAC,CAGlG,CAAA;AAED,uHAAuH;AACvH,eAAO,MAAM,eAAe,YAAa,OAAO,SAAS,MAAM,UAAU,SAAS,KAAG,UACf,CAAA"}
|
package/dist/context.js
CHANGED
|
@@ -5,6 +5,8 @@ import { IDENTITY } from "./identity.js";
|
|
|
5
5
|
import { notionClient, notionFetch, PACE, QUERY_PACE } from "./notion/client.js";
|
|
6
6
|
import { NOTION } from "./notion/errors.js";
|
|
7
7
|
import { liveReads } from "./notion/notion.js";
|
|
8
|
+
import { notionClock, notionPort } from "./notion/port.js";
|
|
9
|
+
import { liveWrites } from "./notion/writes.js";
|
|
8
10
|
/**
|
|
9
11
|
* Settings, keyring and the run come from cli-core's `baseContext` and nowhere else: a command that resolves settings
|
|
10
12
|
* on its own skips `--timeout`, the run record and the profile's permissions (WC-LIFE-5, WC-LIFE-15).
|
|
@@ -31,20 +33,28 @@ export const tokenOf = (command) => {
|
|
|
31
33
|
return tokens.need(profile);
|
|
32
34
|
};
|
|
33
35
|
/** Notion's transport for one run: hostFetch, paced per profile, a slower pace of its own for data source queries. */
|
|
34
|
-
const transportOf = (command, events) => {
|
|
36
|
+
const transportOf = (command, events, onAnswer) => {
|
|
35
37
|
const { environment, env, profile } = contextOf(command);
|
|
36
38
|
const pace = pacePathFor(IDENTITY, profile, env);
|
|
39
|
+
const now = environment.now ?? Date.now;
|
|
37
40
|
return {
|
|
38
41
|
events,
|
|
42
|
+
...(onAnswer ? { onAnswer } : {}),
|
|
39
43
|
signal: environment.signal,
|
|
40
44
|
fetch: environment.fetch,
|
|
41
|
-
pacer: new Pacer(pace, PACE),
|
|
45
|
+
pacer: new Pacer(pace, PACE, now),
|
|
42
46
|
...(environment.sleep ? { sleep: environment.sleep } : {}),
|
|
43
|
-
|
|
47
|
+
...(environment.now ? { now: () => new Date(now()) } : {}),
|
|
48
|
+
queryPacer: new Pacer(pace.replace(/\.json$/u, ".queries.json"), QUERY_PACE, now),
|
|
44
49
|
};
|
|
45
50
|
};
|
|
46
51
|
/** Notion for one run: the SDK over the run's transport. */
|
|
47
52
|
export const notionFor = (command, token, events) => liveReads(notionClient({ token, ...transportOf(command, events) }));
|
|
53
|
+
/** The sync's read port: Notion's clock comes from the Date header of every answer, never from this computer's. */
|
|
54
|
+
export const notionReadsFor = (command, token, events) => {
|
|
55
|
+
const clock = notionClock();
|
|
56
|
+
return notionPort(notionClient({ token, ...transportOf(command, events, clock.observe) }), clock);
|
|
57
|
+
};
|
|
48
58
|
/** The same transport for the generated `api` commands, each attempt recorded in the run, as the SDK's are. */
|
|
49
59
|
export const notionFetchFor = (command) => notionFetch(transportOf(command, undefined));
|
|
50
60
|
/**
|
|
@@ -55,4 +65,6 @@ export const withNotion = (command, body) => {
|
|
|
55
65
|
const token = tokenOf(command);
|
|
56
66
|
return contextOf(command).run((events) => body(notionFor(command, token, events)));
|
|
57
67
|
};
|
|
68
|
+
/** The writes' client for one run, the same transport as the reads'; the token is read before the write is guarded. */
|
|
69
|
+
export const notionWritesFor = (command, token, events) => liveWrites(notionClient({ token, ...transportOf(command, events) }));
|
|
58
70
|
//# sourceMappingURL=context.js.map
|
package/dist/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EA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