From 64f0b5af79f2ffb530576ecde199c9c05efb5585 Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 24 Nov 2026 04:29:31 +0100 Subject: [PATCH 1/3] chore(deps): prepare for cli-base 1.0 and cli-core 1.0 - Bump @wirecat/cli-base to 1.0.0-rc.0; generated API files import their types from @wirecat/cli-base/codegen/runtime. - Mark Disk paths as not local (notLocalPaths): the files group's path and --folder, mirrors add's Disk folder, --ignore and mirrors versions' path. Over MCP the server no longer resolves them against the client's folder. Local inputs (files upload , --output, mirrors add's local folder) are still checked. - Give diskIngestion an explicit return type: under cli-core 1.0 its inferred type names store types (NoteFolder, DocumentVersionText) that no public entry exports yet (TS2883). - Move the upgrade contract baseline to the published 0.6.0. - Drop the stale unknown-resource override for "mirrors versions"; cli-core 1.0 no longer reports it. notLocalPaths is a cli-core 1.0 export, so this branch typechecks only once cli-core 1.0 is on npm and bumped here. Checked against the cli-core 1.0 tarball: typecheck, lint, docs check, lint:commands and contracts:upgrade (all 9 cases, against 0.6.0) pass. Tests: 299 of 300; the run-scope test "sync runs in a recorded run" exceeds its fixed 2 s grace on this loaded machine, and fails the same way on main with cli-core 0.739.0. Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 12 ++ contracts/previous/package.json | 2 +- contracts/previous/pnpm-lock.yaml | 337 ++++++++++++++++++++++++++++-- contracts/upgrade.json | 2 +- docs/dev/TESTING.md | 2 +- lint/overrides.json | 7 - package.json | 2 +- pnpm-lock.yaml | 22 +- scripts/generate.ts | 4 +- src/commands/files.ts | 4 +- src/commands/mirrors.ts | 6 +- src/generated/definitions.ts | 2 +- src/generated/manifest.ts | 7 +- src/ingestion.ts | 4 +- 14 files changed, 368 insertions(+), 45 deletions(-) create mode 100644 changes/release-1.0.md diff --git a/changes/release-1.0.md b/changes/release-1.0.md new file mode 100644 index 0000000..075491f --- /dev/null +++ b/changes/release-1.0.md @@ -0,0 +1,12 @@ +### Changed — may break callers + +- **Built on cli-base 1.0.0-rc.0 and cli-core 1.0.** The generated API files read their types from + `@wirecat/cli-base/codegen/runtime`. Store version 73 comes with cli-core 1.0: once a 1.0 tool opens the store, a 0.x + tool refuses it, so upgrade every WireCat CLI together. + +### Fixed + +- **Over MCP, a Disk path stays a Disk path.** `files` paths and `--folder`, `mirrors add`'s Disk folder, `--ignore` + and `mirrors versions`' path are marked as not local, so the server no longer makes them absolute against the + client's folder or checks them as files on this computer. A local file, like `files upload ` or + `files download --output`, is still checked. diff --git a/contracts/previous/package.json b/contracts/previous/package.json index 5530cfb..98f59c3 100644 --- a/contracts/previous/package.json +++ b/contracts/previous/package.json @@ -4,6 +4,6 @@ "type": "module", "packageManager": "pnpm@11.28.8", "dependencies": { - "@wirecat/previous-cli": "npm:@wirecat/yandex-disk-cli@0.1.0" + "@wirecat/previous-cli": "npm:@wirecat/yandex-disk-cli@0.6.0" } } diff --git a/contracts/previous/pnpm-lock.yaml b/contracts/previous/pnpm-lock.yaml index 7eae676..ca4fd5b 100644 --- a/contracts/previous/pnpm-lock.yaml +++ b/contracts/previous/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@wirecat/previous-cli': - specifier: npm:@wirecat/yandex-disk-cli@0.1.0 - version: '@wirecat/yandex-disk-cli@0.1.0(zod@4.6.7)' + specifier: npm:@wirecat/yandex-disk-cli@0.6.0 + version: '@wirecat/yandex-disk-cli@0.6.0(zod@4.6.7)' packages: @@ -237,6 +237,9 @@ packages: '@types/debug@4.1.13': resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==} + '@types/hast@3.0.5': + resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==} + '@types/mdast@4.0.4': resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} @@ -246,6 +249,9 @@ packages: '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + '@ungap/structured-clone@1.4.0': + resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} + '@valibot/to-json-schema@1.8.0': resolution: {integrity: sha512-a0M+uwCuQZEPAo65NYkFSJ14O5c213KoSZmPdoCfuFvUhfULi4T2Z6Tpjv6lTVMW9RoLm74RpRAjNEa43KcN+g==} peerDependencies: @@ -263,8 +269,8 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@0.110.0': - resolution: {integrity: sha512-tUCXdE8FPtMhwmoTvKvYQuUSP58ygCwi+4/MfEFuX7E3Gy5hgjafPWgMsXGRlNyhtETbUTm7LfyXC/7tV/YD3w==} + '@wirecat/cli-base@0.130.0': + resolution: {integrity: sha512-N9eBVkxOvORol8PWdMZh7u3TVl2KGSWOePqduJRvCcZSw72CXgOYBSpRyfC6ZFmPmZyx0/N93HNVZ/C+DuLYtw==} engines: {node: '>=22'} hasBin: true peerDependencies: @@ -291,13 +297,13 @@ packages: '@wirecat/cli-core-sqlite@1.1.0': resolution: {integrity: sha512-GpGlh/dAIX/nblBYCdT6DfWSLFxav9mxxeELQAfEuw+QZdT9unKxbi5xa02s/s4JS1P7n0PQx2sCABj4FlMRNw==} - '@wirecat/cli-core@0.692.0': - resolution: {integrity: sha512-uITgcAKg7MbV4B0tGXE4/oaK+4J7PST4uWVCzmKSZhNV94JbjmWfxSXrpdmuy35NXWm7/al2kHuGIN+en3QDzA==} + '@wirecat/cli-core@0.737.0': + resolution: {integrity: sha512-4zPtvf8qEZ0UCYV2WGgCkPRZsj3mFVMPpnnVFAa0IhYzkNSzMqv8FvAJ8JZY1ByeknaGA2UQ2zSkJFQA/Pgqlw==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: '@napi-rs/canvas': '>=0.1.69 <2' - '@wirecat/cli-base': '>=0.108.0 <1.0.0' + '@wirecat/cli-base': '>=0.125.0 <1.0.0' commander: '>=15' mysql2: ^3.24.6 pg: ^8.23.1 @@ -312,8 +318,8 @@ packages: ssh2: optional: true - '@wirecat/yandex-disk-cli@0.1.0': - resolution: {integrity: sha512-VXc4kEdSj2z/xSqzBkjVqO0ILnXOKVLNfL1q7sqSgA7YNJNl18HJD+aZjwZxRofiFJiH6uC02R+r+BLX12nB2g==} + '@wirecat/yandex-disk-cli@0.6.0': + resolution: {integrity: sha512-ZNJfjDlZA1lqMbbGAacU07mevxQpSVq7tB0CgOKXq2ljuEzZ07JFmG+3IjVbHb3RssT50ubBAWfuhx7GXCm2Iw==} engines: {node: ^22.16.0 || >=24} hasBin: true @@ -353,6 +359,12 @@ packages: ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + character-entities-html4@2.1.0: + resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} + + character-entities-legacy@3.0.0: + resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} + character-entities@2.0.2: resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==} @@ -366,6 +378,12 @@ packages: codec-parser@2.5.0: resolution: {integrity: sha512-Ru9t80fV8B0ZiixQl8xhMTLru+dzuis/KQld32/x5T/+3LwZb0/YvQdSKytX9JqCnRdiupvAvyYJINKrXieziQ==} + collapse-white-space@2.1.0: + resolution: {integrity: sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw==} + + comma-separated-tokens@2.0.3: + resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} + commander@10.0.1: resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} engines: {node: '>=14'} @@ -481,6 +499,10 @@ packages: resolution: {integrity: sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==} engines: {node: '>=20.19.0'} + entities@9.0.0: + resolution: {integrity: sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==} + engines: {node: '>=20.19.0'} + escape-string-regexp@5.0.0: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} @@ -498,9 +520,54 @@ packages: resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} engines: {node: '>=18'} + hast-util-embedded@3.0.0: + resolution: {integrity: sha512-naH8sld4Pe2ep03qqULEtvYr7EjrLK2QHY8KJR6RJkTUjPGObe1vnx585uzem2hGra+s1q08DZZpfgDVYRbaXA==} + + hast-util-from-html@2.1.0: + resolution: {integrity: sha512-873p9AuH93gBnATbH8rU3YvjTKxyrIeWd/M9tiLMzn3G82Os0xhQurctfnbYUSrDXoyjbJGpJ2qmTpefMw7ZaQ==} + + hast-util-from-parse5@8.0.4: + resolution: {integrity: sha512-Yq7XlXor0Cpb71sI2E0zpv8QxQ5a6rfhDEETk4bcgrFX2SvJAY2PHocWwFtL6U9qyfiyByW3wZ6sZEfP2kW81g==} + + hast-util-has-property@3.0.0: + resolution: {integrity: sha512-MNilsvEKLFpV604hwfhVStK0usFY/QmM5zX16bo7EjnAEGofr5YyI37kzopBlZJkHD4t887i+q/C8/tr5Q94cA==} + + hast-util-is-body-ok-link@3.0.1: + resolution: {integrity: sha512-0qpnzOBLztXHbHQenVB8uNuxTnm/QBFUOmdOSsEn7GnBtyY07+ENTWVFBAnXd/zEgd9/SUG3lRY7hSIBWRgGpQ==} + + hast-util-is-element@3.0.0: + resolution: {integrity: sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==} + + hast-util-minify-whitespace@1.0.1: + resolution: {integrity: sha512-L96fPOVpnclQE0xzdWb/D12VT5FabA7SnZOUMtL1DbXmYiHJMXZvFkIZfiMmTCNJHUeO2K9UYNXoVyfz+QHuOw==} + + hast-util-parse-selector@4.0.0: + resolution: {integrity: sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==} + + hast-util-phrasing@3.0.1: + resolution: {integrity: sha512-6h60VfI3uBQUxHqTyMymMZnEbNl1XmEGtOxxKYL7stY2o601COo62AWAYBQR9lZbYXYSBoxag8UpPRXK+9fqSQ==} + + hast-util-to-html@9.0.6: + resolution: {integrity: sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==} + + hast-util-to-mdast@10.1.3: + resolution: {integrity: sha512-8Qc3IBGvw+tvOCi606vYSvizX89hxW22GEuXnqSGq0m3cXotDaNo6LUEIuCjIL+kmrCaMeBTtu+aiJ71HoyE7Q==} + + hast-util-to-text@4.0.5: + resolution: {integrity: sha512-zQdBtSMatDIbQeO3FuKwl6O+FAol/HtTa8lT4HYd1+w+t+yYqcySxpj9k7+VBNnXBuHiD/ctVUJgyEgIZB2a9Q==} + + hast-util-whitespace@3.0.0: + resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + + hastscript@9.0.3: + resolution: {integrity: sha512-1ALZXSmCGmW3h8AMz4R4+QKSKFi7sNgXLVwmwB8FYVtl1CwQ3WDkSAEY/d5tp1g/vbQgq2s1WlHgfO3jbw1TsA==} + html-escaper@3.0.3: resolution: {integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==} + html-void-elements@3.0.0: + resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} + htmlparser2@10.1.0: resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==} @@ -600,6 +667,12 @@ packages: mdast-util-phrasing@4.1.0: resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} + mdast-util-to-hast@13.2.2: + resolution: {integrity: sha512-l2pnmOuqs+SGLVpTVXnRLQu5v1AzvDe181404fbXzzqObVxrAnnVxapAP27pUwzLBL/ABIkgUhGlPVU7QSvIFg==} + + mdast-util-to-markdown@2.2.0: + resolution: {integrity: sha512-2Jn/ADrHFFyyniBMi0bncTbJqU78K3/TEYvzvwrWWzD9MYPUa/Gm4r3nOeKFQg/PDM5BsbDYdc8ackW4NTY6NA==} + mdast-util-to-markdown@2.2.3: resolution: {integrity: sha512-dImdB6VZRMRac1SwAW6o1c0ESk/7pFFAMCMuKM+9v7LpTSthMM5nzXpqKw4Mjo66aXVKhNkyrP4bMB9MurPyWg==} @@ -718,6 +791,9 @@ packages: pako@1.0.11: resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} + parse5@8.1.1: + resolution: {integrity: sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==} + path-key@3.1.1: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} @@ -732,6 +808,9 @@ packages: process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + property-information@7.2.0: + resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} + psl@1.15.0: resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==} @@ -745,6 +824,9 @@ packages: readable-stream@2.3.8: resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} + rehype-minify-whitespace@6.0.2: + resolution: {integrity: sha512-Zk0pyQ06A3Lyxhe9vGtOtzz3Z0+qZ5+7icZ/PL/2x1SHPbKao5oB/g/rlc6BCTajqBb33JcOe71Ye1oFsuYbnw==} + safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} @@ -772,6 +854,9 @@ packages: simple-yenc@1.0.4: resolution: {integrity: sha512-5gvxpSd79e9a3V4QDYUqnqxeD4HGlhCakVpb6gMnDD7lexJggSBJRBO5h52y/iJrdXRilX9UCuDaIJhSWm5OWw==} + space-separated-tokens@2.0.2: + resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} + sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} @@ -789,6 +874,9 @@ packages: string_decoder@1.1.1: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} + stringify-entities@4.0.5: + resolution: {integrity: sha512-jNuI2fNNw5ecxrWmgm90R3iH0Kc/94AQwoQWoSUYphWzvmUA2pjFG34H56Z7Z3FkvH3FpYwwewKAa97oQnPFhw==} + strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} @@ -808,6 +896,12 @@ packages: resolution: {integrity: sha512-48dH6aSpQnpbzDUc4vIQZ1VjB8tkK+e8c1yx05/SZK+rkssgjEOlxDd/yU8/a4vGYQ9vRgJr9dwMq9TJ0b3X2Q==} hasBin: true + trim-lines@3.0.1: + resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} + + trim-trailing-lines@2.1.0: + resolution: {integrity: sha512-5UR5Biq4VlVOtzqkm2AZlgvSlDJtME46uV0br0gENbwN4l5+mMKT4b9gJKqWtuL2zAIqajGJGuvbCbcAJUZqBg==} + ts-algebra@2.0.0: resolution: {integrity: sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==} @@ -827,6 +921,9 @@ packages: unist-util-is@6.0.1: resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} + unist-util-position@5.0.0: + resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} + unist-util-stringify-position@4.0.0: resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} @@ -856,6 +953,18 @@ packages: typescript: optional: true + vfile-location@5.0.4: + resolution: {integrity: sha512-vEvxatYZCIpNvzGk2UD+u4I/sZkSKoOsdRCbkOIsN73QpJbriJ1qvvBAL1PeI0y55Leoqf7pORbaSPpG/smmOg==} + + vfile-message@4.0.4: + resolution: {integrity: sha512-66ycRswIkNmHH9PHku7ADtv5RVwgIrOcuv3J8Svz6h4qgGRrKVa+9/neuKyJZUXyOpYwLTvS+whZ4R2urHHgQg==} + + vfile@6.0.3: + resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} + + web-namespaces@2.0.1: + resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==} + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -1040,6 +1149,10 @@ snapshots: dependencies: '@types/ms': 2.1.0 + '@types/hast@3.0.5': + dependencies: + '@types/unist': 3.0.3 + '@types/mdast@4.0.4': dependencies: '@types/unist': 3.0.3 @@ -1048,6 +1161,8 @@ snapshots: '@types/unist@3.0.3': {} + '@ungap/structured-clone@1.4.0': {} + '@valibot/to-json-schema@1.8.0(valibot@1.5.0)': dependencies: valibot: 1.5.0 @@ -1071,12 +1186,13 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@0.110.0(commander@15.0.0)': + '@wirecat/cli-base@0.130.0(commander@15.0.0)': dependencies: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0) cli-table3: 0.6.5 cross-spawn: 7.0.6 valibot: 1.5.0 + yaml: 2.9.1 optionalDependencies: '@napi-rs/keyring': 2.1.2 commander: 15.0.0 @@ -1089,7 +1205,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.692.0(@wirecat/cli-base@0.110.0(commander@15.0.0))(commander@15.0.0)(zod@4.6.7)': + '@wirecat/cli-core@0.737.0(@wirecat/cli-base@0.130.0(commander@15.0.0))(commander@15.0.0)(zod@4.6.7)': dependencies: '@anthropic-ai/sdk': 1.3.0(zod@4.6.7) '@bomb.sh/tab': 0.0.22(commander@15.0.0) @@ -1099,7 +1215,7 @@ snapshots: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0) '@wasm-audio-decoders/flac': 0.2.11 '@wasm-audio-decoders/ogg-vorbis': 0.1.20 - '@wirecat/cli-base': 0.110.0(commander@15.0.0) + '@wirecat/cli-base': 0.130.0(commander@15.0.0) '@wirecat/cli-core-onnx': 1.2.0 '@wirecat/cli-core-sqlite': 1.1.0 '@xmldom/xmldom': 0.9.12 @@ -1112,6 +1228,9 @@ snapshots: disposable-email-domains-js: 1.26.0 echarts: 6.1.0 fflate: 0.8.3 + hast-util-from-html: 2.1.0 + hast-util-to-html: 9.0.6 + hast-util-to-mdast: 10.1.3 iconv-lite: 0.7.3 image-size: 2.0.4 linkedom: 0.18.14 @@ -1120,6 +1239,8 @@ snapshots: mammoth: 1.13.0 mdast-util-from-markdown: 2.1.0 mdast-util-gfm: 3.1.0 + mdast-util-to-hast: 13.2.2 + mdast-util-to-markdown: 2.2.0 micromark-extension-gfm: 3.0.0 mpg123-decoder: 1.0.3 ogg-opus-decoder: 1.7.5 @@ -1142,10 +1263,10 @@ snapshots: - typescript - zod - '@wirecat/yandex-disk-cli@0.1.0(zod@4.6.7)': + '@wirecat/yandex-disk-cli@0.6.0(zod@4.6.7)': dependencies: - '@wirecat/cli-base': 0.110.0(commander@15.0.0) - '@wirecat/cli-core': 0.692.0(@wirecat/cli-base@0.110.0(commander@15.0.0))(commander@15.0.0)(zod@4.6.7) + '@wirecat/cli-base': 0.130.0(commander@15.0.0) + '@wirecat/cli-core': 0.737.0(@wirecat/cli-base@0.130.0(commander@15.0.0))(commander@15.0.0)(zod@4.6.7) commander: 15.0.0 valibot: 1.5.0 transitivePeerDependencies: @@ -1186,6 +1307,10 @@ snapshots: ccount@2.0.1: {} + character-entities-html4@2.1.0: {} + + character-entities-legacy@3.0.0: {} + character-entities@2.0.2: {} chardet@2.2.0: {} @@ -1198,6 +1323,10 @@ snapshots: codec-parser@2.5.0: {} + collapse-white-space@2.1.0: {} + + comma-separated-tokens@2.0.3: {} + commander@10.0.1: {} commander@12.1.0: {} @@ -1310,6 +1439,8 @@ snapshots: entities@8.1.0: {} + entities@9.0.0: {} + escape-string-regexp@5.0.0: {} fast-sha256@1.3.0: {} @@ -1322,8 +1453,115 @@ snapshots: get-east-asian-width@1.7.0: {} + hast-util-embedded@3.0.0: + dependencies: + '@types/hast': 3.0.5 + hast-util-is-element: 3.0.0 + + hast-util-from-html@2.1.0: + dependencies: + '@types/hast': 3.0.5 + devlop: 1.1.0 + hast-util-from-parse5: 8.0.4 + parse5: 8.1.1 + vfile: 6.0.3 + vfile-message: 4.0.4 + + hast-util-from-parse5@8.0.4: + dependencies: + '@types/hast': 3.0.5 + '@types/unist': 3.0.3 + devlop: 1.1.0 + hastscript: 9.0.3 + property-information: 7.2.0 + vfile: 6.0.3 + vfile-location: 5.0.4 + web-namespaces: 2.0.1 + + hast-util-has-property@3.0.0: + dependencies: + '@types/hast': 3.0.5 + + hast-util-is-body-ok-link@3.0.1: + dependencies: + '@types/hast': 3.0.5 + + hast-util-is-element@3.0.0: + dependencies: + '@types/hast': 3.0.5 + + hast-util-minify-whitespace@1.0.1: + dependencies: + '@types/hast': 3.0.5 + hast-util-embedded: 3.0.0 + hast-util-is-element: 3.0.0 + hast-util-whitespace: 3.0.0 + unist-util-is: 6.0.1 + + hast-util-parse-selector@4.0.0: + dependencies: + '@types/hast': 3.0.5 + + hast-util-phrasing@3.0.1: + dependencies: + '@types/hast': 3.0.5 + hast-util-embedded: 3.0.0 + hast-util-has-property: 3.0.0 + hast-util-is-body-ok-link: 3.0.1 + hast-util-is-element: 3.0.0 + + hast-util-to-html@9.0.6: + dependencies: + '@types/hast': 3.0.5 + '@types/unist': 3.0.3 + ccount: 2.0.1 + comma-separated-tokens: 2.0.3 + hast-util-whitespace: 3.0.0 + html-void-elements: 3.0.0 + mdast-util-to-hast: 13.2.2 + property-information: 7.2.0 + space-separated-tokens: 2.0.2 + stringify-entities: 4.0.5 + zwitch: 2.0.4 + + hast-util-to-mdast@10.1.3: + dependencies: + '@types/hast': 3.0.5 + '@types/mdast': 4.0.4 + '@ungap/structured-clone': 1.4.0 + collapse-white-space: 2.1.0 + hast-util-phrasing: 3.0.1 + hast-util-to-html: 9.0.6 + hast-util-to-text: 4.0.5 + hast-util-whitespace: 3.0.0 + mdast-util-phrasing: 4.1.0 + mdast-util-to-hast: 13.2.2 + mdast-util-to-string: 4.0.0 + rehype-minify-whitespace: 6.0.2 + trim-trailing-lines: 2.1.0 + unist-util-position: 5.0.0 + unist-util-visit: 5.2.0 + + hast-util-to-text@4.0.5: + dependencies: + '@types/hast': 3.0.5 + + hast-util-whitespace@3.0.0: + dependencies: + '@types/hast': 3.0.5 + + hastscript@9.0.3: + dependencies: + '@types/hast': 3.0.5 + comma-separated-tokens: 2.0.3 + hast-util-parse-selector: 4.0.0 + property-information: 7.2.0 + space-separated-tokens: 2.0.2 + html-escaper@3.0.3: {} + html-void-elements@3.0.0: {} + htmlparser2@10.1.0: dependencies: domelementtype: 2.3.0 @@ -1490,6 +1728,32 @@ snapshots: '@types/mdast': 4.0.4 unist-util-is: 6.0.1 + mdast-util-to-hast@13.2.2: + dependencies: + '@types/hast': 3.0.5 + '@types/mdast': 4.0.4 + '@ungap/structured-clone': 1.4.0 + devlop: 1.1.0 + micromark-util-sanitize-uri: 2.0.1 + trim-lines: 3.0.1 + unist-util-position: 5.0.0 + unist-util-visit: 5.2.0 + vfile: 6.0.3 + + mdast-util-to-markdown@2.2.0: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + longest-streak: 3.1.0 + mdast-util-phrasing: 4.1.0 + mdast-util-to-string: 4.0.0 + micromark-util-character: 2.1.1 + micromark-util-classify-character: 2.0.1 + micromark-util-decode-string: 2.0.1 + micromark-util-html-tag-name: 2.0.1 + unist-util-visit: 5.2.0 + zwitch: 2.0.4 + mdast-util-to-markdown@2.2.3: dependencies: '@types/mdast': 4.0.4 @@ -1732,6 +1996,10 @@ snapshots: pako@1.0.11: {} + parse5@8.1.1: + dependencies: + entities: 9.0.0 + path-key@3.1.1: {} pend@1.2.0: {} @@ -1740,6 +2008,8 @@ snapshots: process-nextick-args@2.0.1: {} + property-information@7.2.0: {} + psl@1.15.0: dependencies: punycode: 2.3.1 @@ -1758,6 +2028,11 @@ snapshots: string_decoder: 1.1.1 util-deprecate: 1.0.2 + rehype-minify-whitespace@6.0.2: + dependencies: + '@types/hast': 3.0.5 + hast-util-minify-whitespace: 1.0.1 + safe-buffer@5.1.2: {} safer-buffer@2.1.2: {} @@ -1778,6 +2053,8 @@ snapshots: simple-yenc@1.0.4: {} + space-separated-tokens@2.0.2: {} + sprintf-js@1.0.3: {} standardwebhooks@1.1.1: @@ -1800,6 +2077,11 @@ snapshots: dependencies: safe-buffer: 5.1.2 + stringify-entities@4.0.5: + dependencies: + character-entities-html4: 2.1.0 + character-entities-legacy: 3.0.0 + strip-ansi@6.0.1: dependencies: ansi-regex: 5.0.1 @@ -1817,6 +2099,10 @@ snapshots: dependencies: tldts-core: 7.5.4 + trim-lines@3.0.1: {} + + trim-trailing-lines@2.1.0: {} + ts-algebra@2.0.0: {} tslib@2.3.0: {} @@ -1834,6 +2120,10 @@ snapshots: dependencies: '@types/unist': 3.0.3 + unist-util-position@5.0.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-stringify-position@4.0.0: dependencies: '@types/unist': 3.0.3 @@ -1855,6 +2145,23 @@ snapshots: valibot@1.5.0: {} + vfile-location@5.0.4: + dependencies: + '@types/unist': 3.0.3 + vfile: 6.0.3 + + vfile-message@4.0.4: + dependencies: + '@types/unist': 3.0.3 + unist-util-stringify-position: 4.0.0 + + vfile@6.0.3: + dependencies: + '@types/unist': 3.0.3 + vfile-message: 4.0.4 + + web-namespaces@2.0.1: {} + which@2.0.2: dependencies: isexe: 2.0.0 diff --git a/contracts/upgrade.json b/contracts/upgrade.json index 4304f8b..e90069a 100644 --- a/contracts/upgrade.json +++ b/contracts/upgrade.json @@ -3,7 +3,7 @@ "args": ["../dist/bin/ydisk.js"], "previous": { "entry": "./previous/node_modules/@wirecat/previous-cli/dist/bin/ydisk.js", - "version": "0.1.0" + "version": "0.6.0" }, "canaries": ["wirecat-synthetic-document-canary"], "cases": [ diff --git a/docs/dev/TESTING.md b/docs/dev/TESTING.md index 64fc871..f106275 100644 --- a/docs/dev/TESTING.md +++ b/docs/dev/TESTING.md @@ -25,7 +25,7 @@ How the tests run, and what they never touch. The rules are the handbook's cli-core release does not rewrite the file. Pin a shared command here only when this CLI changes it on purpose. - `pnpm contracts:upgrade` checks that this build reads what the previous release wrote ([WC-TEST-14](../../node_modules/@wirecat/cli-base/docs/standards/testing.md)). `contracts/previous/` installs that - release from npm (`@wirecat/previous-cli`, now `@wirecat/yandex-disk-cli@0.1.0`). `contracts/seed.mjs` loads its own + release from npm (`@wirecat/previous-cli`, now `@wirecat/yandex-disk-cli@0.6.0`). `contracts/seed.mjs` loads its own modules and its own cli-core, signs nobody in, and saves one synced file and a note into the synthetic store, as `ydisk sync` would, with the profile's folder choice and sync state. `contracts/upgrade.json` then lists the documents, reads one, the status, search and notes with that release and with this build. After a release, move diff --git a/lint/overrides.json b/lint/overrides.json index 3bb9247..840d03f 100644 --- a/lint/overrides.json +++ b/lint/overrides.json @@ -13,13 +13,6 @@ "owner": "@WireCatLabs", "review_after": "2026-12-22" }, - { - "rule": "unknown-resource", - "target": "mirrors versions", - "reason": "The local versions cli-core's file mirror keeps of what a sync replaced or deleted (fileVersions); no shared noun names them yet.", - "owner": "@WireCatLabs", - "review_after": "2026-12-22" - }, { "rule": "list-without-query", "target": "mirrors list", diff --git a/package.json b/package.json index fd64f57..52e9b02 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "spec:sync": "node --experimental-strip-types scripts/sync-spec.ts" }, "dependencies": { - "@wirecat/cli-base": "0.130.0", + "@wirecat/cli-base": "1.0.0-rc.0", "@wirecat/cli-core": "0.739.0", "commander": "15.0.0", "valibot": "1.5.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5e42684..6b60a71 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 0.130.0 - version: 0.130.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) + specifier: 1.0.0-rc.0 + version: 1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': specifier: 0.739.0 - version: 0.739.0(@wirecat/cli-base@0.130.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) + version: 0.739.0(@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) commander: specifier: 15.0.0 version: 15.0.0 @@ -1203,16 +1203,16 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@0.130.0': - resolution: {integrity: sha512-N9eBVkxOvORol8PWdMZh7u3TVl2KGSWOePqduJRvCcZSw72CXgOYBSpRyfC6ZFmPmZyx0/N93HNVZ/C+DuLYtw==} - engines: {node: '>=22'} + '@wirecat/cli-base@1.0.0-rc.0': + resolution: {integrity: sha512-vRfE2U3c3mUJGkyaaUQngxscRLCbKyL2/TiBj3Hy4hvA8rwkIgsr2jecRhB7z+0iUH8EkoEhChVaOvYD6H4xbA==} + engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: '@scalar/openapi-upgrader': ^0.4.6 - commander: '>=15' + commander: ^15.0.0 esbuild: ^0.28.0 swagger-converter: ^2.1.0 - vitest: '>=5' + vitest: ^5.0.0 peerDependenciesMeta: '@scalar/openapi-upgrader': optional: true @@ -3377,7 +3377,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@0.130.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5)': dependencies: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) cli-table3: 0.6.5 @@ -3400,7 +3400,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.739.0(@wirecat/cli-base@0.130.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': + '@wirecat/cli-core@0.739.0(@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': dependencies: '@anthropic-ai/sdk': 1.3.0(zod@4.6.7) '@bomb.sh/tab': 0.0.22(commander@15.0.0) @@ -3410,7 +3410,7 @@ snapshots: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) '@wasm-audio-decoders/flac': 0.2.11 '@wasm-audio-decoders/ogg-vorbis': 0.1.20 - '@wirecat/cli-base': 0.130.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core-onnx': 1.2.0 '@wirecat/cli-core-sqlite': 1.1.0 '@xmldom/xmldom': 0.9.12 diff --git a/scripts/generate.ts b/scripts/generate.ts index ff98d47..21f68f5 100644 --- a/scripts/generate.ts +++ b/scripts/generate.ts @@ -20,8 +20,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/generated/types.ts" }), valibotGenerator({ path: "src/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/generated/manifest.ts" }), - definitionsGenerator({ path: "src/generated/definitions.ts" }), + manifestGenerator({ path: "src/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + definitionsGenerator({ path: "src/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), coverageGenerator({ path: "docs/dev/API_COVERAGE.md", title: "API coverage", diff --git a/src/commands/files.ts b/src/commands/files.ts index 6163e3b..9e5a65b 100644 --- a/src/commands/files.ts +++ b/src/commands/files.ts @@ -12,6 +12,7 @@ import { itemOf, listOf, nextUsually, + notLocalPaths, outputFor, ownerOnlyOption, REMOTE_READ, @@ -405,5 +406,6 @@ export const filesCommand = (): Command => { ) .addCommand(serveCommand()) addFileEditCommands(files, editHelpers(files)) - return files + // A and --folder here name the Disk, so serve must not make them absolute on this computer. + return notLocalPaths(files, "path", "folder") } diff --git a/src/commands/mirrors.ts b/src/commands/mirrors.ts index 79605a3..8a26466 100644 --- a/src/commands/mirrors.ts +++ b/src/commands/mirrors.ts @@ -12,6 +12,7 @@ import { LOCAL_READ, LOCAL_WRITE, listOf, + notLocalPaths, outputFor, ownerOnlyOption, parseDuration, @@ -869,7 +870,7 @@ const insideOf = (root: string, input: string) => { } const versionsCommand = () => - annotate(new Command("versions"), { effects: LOCAL_READ, mcp: false }) + notLocalPaths(annotate(new Command("versions"), { effects: LOCAL_READ, mcp: false }), "path") .summary("versions of mirrored files that syncs replaced or deleted") .description("the versions of a mirrored file that syncs replaced or deleted, kept on this computer") .addCommand( @@ -946,8 +947,9 @@ const conflictsCommand = () => }, }) +// Not against the working folder: --ignore and versions' are inside the mirror, add's is on Disk. export const mirrorsCommand = (): Command => - annotate(new Command("mirrors"), { effects: LOCAL_READ }) + notLocalPaths(annotate(new Command("mirrors"), { effects: LOCAL_READ }), "ignore", "folder") .description(`keep local folders and ${SERVICE} folders the same, both ways, file by file`) .addCommand(addCommand()) .addCommand(listCommand()) diff --git a/src/generated/definitions.ts b/src/generated/definitions.ts index 1c01ca3..75f1555 100644 --- a/src/generated/definitions.ts +++ b/src/generated/definitions.ts @@ -2,7 +2,7 @@ // Source: spec/ydisk/, checked against provenance.json // Run: pnpm generate -import type { SchemaNode } from "@wirecat/cli-base/codegen" +import type { SchemaNode } from "@wirecat/cli-base/codegen/runtime" export const definitions: Readonly> = { AiPhotoEditorCounter: { diff --git a/src/generated/manifest.ts b/src/generated/manifest.ts index 3782ecb..51abce3 100644 --- a/src/generated/manifest.ts +++ b/src/generated/manifest.ts @@ -2,7 +2,12 @@ // Source: spec/ydisk/, checked against provenance.json // Run: pnpm generate -import type { ApiServer, ManifestOperation, SecurityRequirement, SecurityScheme } from "@wirecat/cli-base/codegen" +import type { + ApiServer, + ManifestOperation, + SecurityRequirement, + SecurityScheme, +} from "@wirecat/cli-base/codegen/runtime" export const operations: readonly ManifestOperation[] = [ { diff --git a/src/ingestion.ts b/src/ingestion.ts index 9daff9d..522b6ce 100644 --- a/src/ingestion.ts +++ b/src/ingestion.ts @@ -13,7 +13,9 @@ export const PROVIDER = { const external = (id: string) => `${id}.md` /** How the Disk's files are filed in the shared store; the documents commands and a replace's rekey share it. */ -export const diskIngestion = (store: Parameters[0]) => +export const diskIngestion = ( + store: Parameters[0], +): ReturnType> => documentIngestion(store, { provider: PROVIDER.name, externalId: external, From d102b51c3626f8baeda11e7bc4e11f7dcf2b74ae Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 04:37:12 +0100 Subject: [PATCH 2/3] chore(deps): move to cli-core 1.0.0-rc.0 and cli-base 1.0.0-rc.1 The release/1.0 branch built against a packed cli-core 1.0 tarball while package.json still named cli-core 0.739.0, so the branch's own CI was red. Both release candidates are now on npm under the next tag. - @wirecat/cli-core 1.0.0-rc.0 and @wirecat/cli-base 1.0.0-rc.1, exact pins as before; the lockfile follows. - scripts/generate.ts drops coreImport: cli-base rc.1 defaults it to @wirecat/cli-base/codegen/runtime, the value it passed. generate.ts --check shows no change in the generated files. - The changelog fragment names cli-core 1.0 and cli-base 1.0 instead of the rc.0 build. Checked locally: typecheck, lint, docs:check, build, commands.md and the manifest check. Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 2 +- package.json | 4 ++-- pnpm-lock.yaml | 26 +++++++++++++------------- scripts/generate.ts | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/changes/release-1.0.md b/changes/release-1.0.md index 075491f..d98d9c3 100644 --- a/changes/release-1.0.md +++ b/changes/release-1.0.md @@ -1,6 +1,6 @@ ### Changed — may break callers -- **Built on cli-base 1.0.0-rc.0 and cli-core 1.0.** The generated API files read their types from +- **Built on cli-core 1.0 and cli-base 1.0.** The generated API files read their types from `@wirecat/cli-base/codegen/runtime`. Store version 73 comes with cli-core 1.0: once a 1.0 tool opens the store, a 0.x tool refuses it, so upgrade every WireCat CLI together. diff --git a/package.json b/package.json index 52e9b02..29c933c 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,8 @@ "spec:sync": "node --experimental-strip-types scripts/sync-spec.ts" }, "dependencies": { - "@wirecat/cli-base": "1.0.0-rc.0", - "@wirecat/cli-core": "0.739.0", + "@wirecat/cli-base": "1.0.0-rc.1", + "@wirecat/cli-core": "1.0.0-rc.0", "commander": "15.0.0", "valibot": "1.5.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6b60a71..49f1a4e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 1.0.0-rc.0 - version: 1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) + specifier: 1.0.0-rc.1 + version: 1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': - specifier: 0.739.0 - version: 0.739.0(@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) + specifier: 1.0.0-rc.0 + version: 1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) commander: specifier: 15.0.0 version: 15.0.0 @@ -1203,8 +1203,8 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@1.0.0-rc.0': - resolution: {integrity: sha512-vRfE2U3c3mUJGkyaaUQngxscRLCbKyL2/TiBj3Hy4hvA8rwkIgsr2jecRhB7z+0iUH8EkoEhChVaOvYD6H4xbA==} + '@wirecat/cli-base@1.0.0-rc.1': + resolution: {integrity: sha512-dNnlDaLK6luTzx2039s4hYVmzBBszmwlK6p2knC3yPTPDVFmN1c1G83ixma4VFLhSmx7rpFYsLaqK77BZHnyww==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: @@ -1231,14 +1231,14 @@ packages: '@wirecat/cli-core-sqlite@1.1.0': resolution: {integrity: sha512-GpGlh/dAIX/nblBYCdT6DfWSLFxav9mxxeELQAfEuw+QZdT9unKxbi5xa02s/s4JS1P7n0PQx2sCABj4FlMRNw==} - '@wirecat/cli-core@0.739.0': - resolution: {integrity: sha512-gBZG5Wdf0a0r6OVi/4YTPYjFk+83uAmX1OokMvuG53/DMVmS63guhU9SMhlnBxf2qqNCpxZ4notmg2FCwKSMnQ==} + '@wirecat/cli-core@1.0.0-rc.0': + resolution: {integrity: sha512-pSt7/knZ5u3YW9U3G/0VSR/O/fYqDsBLZzn1QNCgqvGXxmQhA2ILfMF4nDxqOTVDnDMk0gatk2tiFE9bKv5Z9w==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: '@napi-rs/canvas': '>=0.1.69 <2' - '@wirecat/cli-base': '>=0.125.0 <1.0.0' - commander: '>=15' + '@wirecat/cli-base': ^1.0.0-0 + commander: ^15.0.0 mysql2: ^3.24.6 pg: ^8.23.1 ssh2: ^1.17.0 @@ -3377,7 +3377,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5)': dependencies: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) cli-table3: 0.6.5 @@ -3400,7 +3400,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.739.0(@wirecat/cli-base@1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': + '@wirecat/cli-core@1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': dependencies: '@anthropic-ai/sdk': 1.3.0(zod@4.6.7) '@bomb.sh/tab': 0.0.22(commander@15.0.0) @@ -3410,7 +3410,7 @@ snapshots: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) '@wasm-audio-decoders/flac': 0.2.11 '@wasm-audio-decoders/ogg-vorbis': 0.1.20 - '@wirecat/cli-base': 1.0.0-rc.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core-onnx': 1.2.0 '@wirecat/cli-core-sqlite': 1.1.0 '@xmldom/xmldom': 0.9.12 diff --git a/scripts/generate.ts b/scripts/generate.ts index 21f68f5..ff98d47 100644 --- a/scripts/generate.ts +++ b/scripts/generate.ts @@ -20,8 +20,8 @@ const artifacts = generate( [ typesGenerator({ path: "src/generated/types.ts" }), valibotGenerator({ path: "src/generated/schemas.ts", typesImport: "./types.js" }), - manifestGenerator({ path: "src/generated/manifest.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), - definitionsGenerator({ path: "src/generated/definitions.ts", coreImport: "@wirecat/cli-base/codegen/runtime" }), + manifestGenerator({ path: "src/generated/manifest.ts" }), + definitionsGenerator({ path: "src/generated/definitions.ts" }), coverageGenerator({ path: "docs/dev/API_COVERAGE.md", title: "API coverage", From 820d1a454cf819c4306d37fac5231654f1f7e5bc Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 12:19:39 +0100 Subject: [PATCH 3/3] chore(deps): move to cli-core 1.0.0 and cli-base 1.0.0 Both 1.0.0 releases are on npm under latest, so release/1.0 leaves the release candidates. - @wirecat/cli-core 1.0.0 and @wirecat/cli-base 1.0.0, exact pins as before; the lockfile follows with one cli-base copy. - The changelog fragment names cli-core 1.0.0 and cli-base 1.0.0. Checked locally: typecheck, lint, docs:check, build, generate:check, contracts:check, pnpm peers check, scripts/one-cli-base.ts and the family audit. contracts:upgrade hit its 5 s limit per process on this loaded machine (the seed alone took 14 s of wall time, 2 s of CPU); the seed uses the published 0.7.1 and its own cli-core, so CI decides. Co-Authored-By: Claude Opus 5.5 --- changes/release-1.0.md | 2 +- package.json | 4 ++-- pnpm-lock.yaml | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/changes/release-1.0.md b/changes/release-1.0.md index d98d9c3..e9ee846 100644 --- a/changes/release-1.0.md +++ b/changes/release-1.0.md @@ -1,6 +1,6 @@ ### Changed — may break callers -- **Built on cli-core 1.0 and cli-base 1.0.** The generated API files read their types from +- **Built on cli-core 1.0.0 and cli-base 1.0.0.** The generated API files read their types from `@wirecat/cli-base/codegen/runtime`. Store version 73 comes with cli-core 1.0: once a 1.0 tool opens the store, a 0.x tool refuses it, so upgrade every WireCat CLI together. diff --git a/package.json b/package.json index e6da3fd..c61c0bf 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,8 @@ "spec:sync": "node --experimental-strip-types scripts/sync-spec.ts" }, "dependencies": { - "@wirecat/cli-base": "1.0.0-rc.1", - "@wirecat/cli-core": "1.0.0-rc.0", + "@wirecat/cli-base": "1.0.0", + "@wirecat/cli-core": "1.0.0", "commander": "15.0.0", "valibot": "1.5.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49f1a4e..f0c390d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ importers: .: dependencies: '@wirecat/cli-base': - specifier: 1.0.0-rc.1 - version: 1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) + specifier: 1.0.0 + version: 1.0.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core': - specifier: 1.0.0-rc.0 - version: 1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) + specifier: 1.0.0 + version: 1.0.0(@wirecat/cli-base@1.0.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) commander: specifier: 15.0.0 version: 15.0.0 @@ -1203,8 +1203,8 @@ packages: '@wasm-audio-decoders/opus-ml@0.0.3': resolution: {integrity: sha512-SEeTmk0eb3q5etJA/NHCRWW6BivTx9tqvNTmG0kg2ynuATEQRUZnwQE6Ibvl1BBvqIGHqI57+qyJMWmJBwb5XQ==} - '@wirecat/cli-base@1.0.0-rc.1': - resolution: {integrity: sha512-dNnlDaLK6luTzx2039s4hYVmzBBszmwlK6p2knC3yPTPDVFmN1c1G83ixma4VFLhSmx7rpFYsLaqK77BZHnyww==} + '@wirecat/cli-base@1.0.0': + resolution: {integrity: sha512-PJ61d6z0CsWOmoWgf7uvlEo3EstpL2DplXiORPIqgmh0bn/ZGMOhRpDqN43Kh7WickaFSmeX74YQigHXkRO6rA==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: @@ -1231,8 +1231,8 @@ packages: '@wirecat/cli-core-sqlite@1.1.0': resolution: {integrity: sha512-GpGlh/dAIX/nblBYCdT6DfWSLFxav9mxxeELQAfEuw+QZdT9unKxbi5xa02s/s4JS1P7n0PQx2sCABj4FlMRNw==} - '@wirecat/cli-core@1.0.0-rc.0': - resolution: {integrity: sha512-pSt7/knZ5u3YW9U3G/0VSR/O/fYqDsBLZzn1QNCgqvGXxmQhA2ILfMF4nDxqOTVDnDMk0gatk2tiFE9bKv5Z9w==} + '@wirecat/cli-core@1.0.0': + resolution: {integrity: sha512-0avQTqu3FAFKE0s+8Pz1Up/TMHTYqCdDn37lcZmkH30sMCMrgJwHzoG4Q0fjVzPsB85u+zBVHHhtQjF/eSTpuw==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: @@ -3377,7 +3377,7 @@ snapshots: dependencies: '@wasm-audio-decoders/common': 9.0.7 - '@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5)': + '@wirecat/cli-base@1.0.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5)': dependencies: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) cli-table3: 0.6.5 @@ -3400,7 +3400,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@1.0.0-rc.0(@wirecat/cli-base@1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': + '@wirecat/cli-core@1.0.0(@wirecat/cli-base@1.0.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': dependencies: '@anthropic-ai/sdk': 1.3.0(zod@4.6.7) '@bomb.sh/tab': 0.0.22(commander@15.0.0) @@ -3410,7 +3410,7 @@ snapshots: '@valibot/to-json-schema': 1.8.0(valibot@1.5.0(typescript@7.0.2)) '@wasm-audio-decoders/flac': 0.2.11 '@wasm-audio-decoders/ogg-vorbis': 0.1.20 - '@wirecat/cli-base': 1.0.0-rc.1(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) + '@wirecat/cli-base': 1.0.0(@scalar/openapi-upgrader@0.4.6)(commander@15.0.0)(esbuild@0.28.2)(swagger-converter@2.1.0)(typescript@7.0.2)(vitest@5.0.5) '@wirecat/cli-core-onnx': 1.2.0 '@wirecat/cli-core-sqlite': 1.1.0 '@xmldom/xmldom': 0.9.12