@wirecat/cli-template 0.13.2 → 0.14.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/.github/workflows/changelog-guard.yml +1 -1
- package/.github/workflows/ci.yml +1 -1
- package/.github/workflows/monthly.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/CHANGELOG.md +25 -0
- package/config/parity-groups.json +32 -1
- package/contracts/mcp-tools.json +100 -0
- package/dist/bin/clidev.js +6 -2
- package/dist/bundle/{all-profiles-MJ6XSFOO.js → all-profiles-NVB2HT2S.js} +6 -6
- package/dist/bundle/{anthropic-W5UKBZUB.js → anthropic-ICTW7CNQ.js} +4 -4
- package/dist/bundle/{app-server-EZ46JAHB.js → app-server-B6BCKXR7.js} +40 -38
- package/dist/bundle/{bun-HB6O2TTT.js → bun-ILPS6AYA.js} +2 -2
- package/dist/bundle/{bun-sqlite-KBXOW2ES.js → bun-sqlite-JE6FJFQT.js} +3 -3
- package/dist/bundle/{chunk-KJTNT4SW.js → chunk-2DAXUNTS.js} +2 -2
- package/dist/bundle/chunk-3MDNAYQA.js +34 -0
- package/dist/bundle/chunk-3WDYHOAF.js +91 -0
- package/dist/bundle/{chunk-EGRB55FF.js → chunk-45244QQ6.js} +14 -12
- package/dist/bundle/{chunk-JHO2LL2J.js → chunk-4PA6DJ7F.js} +7 -7
- package/dist/bundle/{chunk-FZZIU4B7.js → chunk-5SAF3XOL.js} +8196 -5601
- package/dist/bundle/chunk-62JRF2JA.js +35 -0
- package/dist/bundle/{chunk-TGB5F7NC.js → chunk-66VMJGV6.js} +4 -4
- package/dist/bundle/{chunk-V3ZTQ24B.js → chunk-6AW4DDK4.js} +4 -4
- package/dist/bundle/{chunk-PJOVK7PG.js → chunk-7F5VMLVK.js} +49 -24
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-7Z4HR6GO.js} +1 -1
- package/dist/bundle/{chunk-E42W72PQ.js → chunk-AS2PJNQ2.js} +7 -5
- package/dist/bundle/{chunk-SVDF6NJF.js → chunk-ASHVHS52.js} +14 -14
- package/dist/bundle/{chunk-N2Z3MCOF.js → chunk-BEBD27QT.js} +37 -35
- package/dist/bundle/{chunk-IGHEW777.js → chunk-BM5ZCDPQ.js} +5 -40
- package/dist/bundle/{chunk-AK257OMS.js → chunk-BVLPNNEL.js} +209 -78
- package/dist/bundle/{chunk-ERKR3VJ5.js → chunk-BWBZCYUN.js} +141 -46
- package/dist/bundle/{chunk-Z7MSIRSQ.js → chunk-CGFQT3LQ.js} +1 -1
- package/dist/bundle/{chunk-QKWRL4OD.js → chunk-DQIBGCF3.js} +6 -6
- package/dist/bundle/{chunk-RUKDZEID.js → chunk-DZLHY4IA.js} +3 -3
- package/dist/bundle/{chunk-TAYOKLGF.js → chunk-EMHCXXNJ.js} +7 -6
- package/dist/bundle/{chunk-IBBN7Z3A.js → chunk-F34HGYWF.js} +12 -3
- package/dist/bundle/{chunk-ERGB4NJA.js → chunk-G45R7M42.js} +1 -1
- package/dist/bundle/{chunk-ZLY6GUAS.js → chunk-G7W53MQP.js} +3 -3
- package/dist/bundle/{chunk-JAOGZMKQ.js → chunk-GUFPQZUA.js} +2 -2
- package/dist/bundle/{chunk-4LURWBVV.js → chunk-HYTHTSJP.js} +188 -22
- package/dist/bundle/{chunk-EFHLQXG6.js → chunk-IOJ2DTCY.js} +162 -55
- package/dist/bundle/{chunk-L5WWMP5M.js → chunk-IZKXJJ7V.js} +121 -31
- package/dist/bundle/{chunk-NOVLCHDV.js → chunk-LATYBJ4T.js} +2 -2
- package/dist/bundle/{chunk-QBP7OMN5.js → chunk-LFLSV353.js} +2 -2
- package/dist/bundle/{chunk-HDY5X3WQ.js → chunk-LU4A2T7Y.js} +4 -4
- package/dist/bundle/{chunk-JRK73FOW.js → chunk-NENYWEXF.js} +1 -1
- package/dist/bundle/{chunk-2B5U4Z5H.js → chunk-NH6LZ3H3.js} +8 -13
- package/dist/bundle/{chunk-OV6PHTAY.js → chunk-NVNUUHT5.js} +17130 -2232
- package/dist/bundle/chunk-PIJUGF5F.js +392 -0
- package/dist/bundle/{chunk-7IXL4UFK.js → chunk-PX2KP4QE.js} +8 -8
- package/dist/bundle/{chunk-KRCCGWWS.js → chunk-QXOSPYM3.js} +1 -1
- package/dist/bundle/{chunk-PBN4RBHS.js → chunk-R2JKPHH5.js} +8 -8
- package/dist/bundle/{chunk-PDGXMKJS.js → chunk-R5RYPD23.js} +2 -2
- package/dist/bundle/{chunk-QJ6XW4DM.js → chunk-RJ7AS7UB.js} +6210 -1207
- package/dist/bundle/{chunk-35KYY65W.js → chunk-SOYOOU2D.js} +3 -3
- package/dist/bundle/{chunk-FDBINRWA.js → chunk-TJJ2XSJP.js} +5 -5
- package/dist/bundle/{chunk-O3UXNU3S.js → chunk-U6QD3J3F.js} +3 -3
- package/dist/bundle/{chunk-YJNUDHJD.js → chunk-UT5TQ6MD.js} +139 -35
- package/dist/bundle/{chunk-VYSUKHKL.js → chunk-VOTEB3AN.js} +1 -1
- package/dist/bundle/{chunk-IN3FVRPK.js → chunk-VS5LGSTM.js} +1 -1
- package/dist/bundle/{chunk-MJRSEUKG.js → chunk-VXOR76ZL.js} +13 -89
- package/dist/bundle/{chunk-CXQXVKUY.js → chunk-YIVY2WI3.js} +1 -1
- package/dist/bundle/{chunk-VLNKTMV7.js → chunk-YOJLIVGO.js} +959 -350
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/command-contract-JMVMT5HT.js +28 -0
- package/dist/bundle/{decode-AMXUVKNY.js → decode-NXB5UKMO.js} +18 -16
- package/dist/bundle/{echarts-GJDMQ2AQ.js → echarts-DRDGGHJT.js} +2 -2
- package/dist/bundle/{embed-L4CRZ2XQ.js → embed-IKZ24BMC.js} +4 -4
- package/dist/bundle/{embedder-IBGV4M2K.js → embedder-GMQ24DOQ.js} +7 -7
- package/dist/bundle/{first-run-VTKC2IBV.js → first-run-MDD4SIUK.js} +8 -8
- package/dist/bundle/first-screen-376CXGXJ.js +26 -0
- package/dist/bundle/{instructions-YJECS4KN.js → instructions-EOQOXY6V.js} +1 -1
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-7HBLFGCW.js} +2 -2
- package/dist/bundle/mcp-KHUZOJO6.js +82 -0
- package/dist/bundle/{mcp-GBSAK3VW.js → mcp-MZHWJXAE.js} +38 -37
- package/dist/bundle/{node-NQG4EVZR.js → node-52WF2326.js} +2 -2
- package/dist/bundle/{node-sqlite-BR7F3BLB.js → node-sqlite-73Z4SFOA.js} +9 -3
- package/dist/bundle/{oauth-J7UAWNIK.js → oauth-EVTPAMZP.js} +5 -5
- package/dist/bundle/{open-BR47R5UE.js → open-46WZAPJ3.js} +3 -2
- package/dist/bundle/openai-GWRDAHDU.js +248 -0
- package/dist/bundle/{process-66I7RDPJ.js → process-YIQPKLZI.js} +1 -1
- package/dist/bundle/{program-EM4FKOCK.js → program-B3CY3FP7.js} +11346 -9559
- package/dist/bundle/{prompt-NE5JJ7UP.js → prompt-IVEYRLS5.js} +3 -3
- package/dist/bundle/{recognize-GC3YFVIA.js → recognize-WVEKHODM.js} +4 -2
- package/dist/bundle/{remote-QELOMKQM.js → remote-4K5VPMC7.js} +5 -5
- package/dist/bundle/{rerank-BH6TZ2SP.js → rerank-V24UJZYJ.js} +5 -5
- package/dist/bundle/{serve-WWLRNDT2.js → serve-PJWSOV7F.js} +7 -7
- package/dist/bundle/server-2ZN7KZHZ.js +40 -0
- package/dist/bundle/server-5VYM7CCF.js +53 -0
- package/dist/bundle/{state-2BEGXAMO.js → state-ZPYGECVP.js} +4 -4
- package/dist/bundle/{store-AH6WZMCF.js → store-6JQCLPQF.js} +14 -9
- package/dist/bundle/store-maintenance-command-7XICIYHW.js +42 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/commands.md +37 -11
- package/docs/dev/reference-clis.md +1 -1
- package/docs/dev/skills/design-interview/SKILL.md +2 -2
- package/docs/dev/test-matrix.md +5 -1
- package/kit/dist/interview.js +1 -0
- package/kit/dist/new.js +8 -3
- package/package.json +3 -3
- package/src/program.test.ts +56 -0
- package/src/version.ts +1 -1
- package/dist/bundle/chunk-IDWW4TU2.js +0 -18
- package/dist/bundle/chunk-MUSYGFCY.js +0 -3556
- package/dist/bundle/chunk-O5EHUB2V.js +0 -2
- package/dist/bundle/command-contract-75VJ36U4.js +0 -29
- package/dist/bundle/first-screen-X5IJKBSU.js +0 -27
- package/dist/bundle/mcp-RDZGYPSY.js +0 -78
- package/dist/bundle/server-DE6NLNUF.js +0 -52
- package/dist/bundle/server-ZPSQKOAH.js +0 -39
- package/dist/bundle/store-maintenance-command-PBXX3IEV.js +0 -40
- /package/dist/bundle/{chunk-GOO67PDU.js → chunk-NL2DQPT7.js} +0 -0
|
@@ -9,4 +9,4 @@ permissions:
|
|
|
9
9
|
|
|
10
10
|
jobs:
|
|
11
11
|
changelog:
|
|
12
|
-
uses: WireCatLabs/cli-base/.github/workflows/changelog-guard.yml@
|
|
12
|
+
uses: WireCatLabs/cli-base/.github/workflows/changelog-guard.yml@bff94fff66ae17bde081de343fb8cd56d66602e0 # v0.77.1
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -19,7 +19,7 @@ permissions:
|
|
|
19
19
|
|
|
20
20
|
jobs:
|
|
21
21
|
ci:
|
|
22
|
-
uses: WireCatLabs/cli-base/.github/workflows/node-ci.yml@
|
|
22
|
+
uses: WireCatLabs/cli-base/.github/workflows/node-ci.yml@bff94fff66ae17bde081de343fb8cd56d66602e0 # v0.77.1
|
|
23
23
|
with:
|
|
24
24
|
pack: ${{ inputs.pack || false }}
|
|
25
25
|
bun-run: pnpm build && pnpm smoke:bun
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
contents: read
|
|
23
23
|
actions: read
|
|
24
24
|
security-events: write
|
|
25
|
-
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@
|
|
25
|
+
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@bff94fff66ae17bde081de343fb8cd56d66602e0 # v0.77.1
|
|
26
26
|
with:
|
|
27
27
|
dependencies: true
|
|
28
28
|
languages: '["actions","javascript-typescript"]'
|
|
@@ -56,7 +56,7 @@ jobs:
|
|
|
56
56
|
contents: read
|
|
57
57
|
actions: read
|
|
58
58
|
security-events: write
|
|
59
|
-
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@
|
|
59
|
+
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@bff94fff66ae17bde081de343fb8cd56d66602e0 # v0.77.1
|
|
60
60
|
|
|
61
61
|
build:
|
|
62
62
|
needs: [checks, validation]
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,31 @@ Notable changes to `@wirecat/cli-template`. One section per version, newest firs
|
|
|
5
5
|
|
|
6
6
|
<!-- cspell:words clawhub gcal katex openclaw smol whatsapp -->
|
|
7
7
|
|
|
8
|
+
## 0.14.0 — 06.11.2026
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **The skeleton runs on cli-core 0.584.0 and cli-base 0.77.1.** cli-core 0.584 is the newest; its peer range takes
|
|
13
|
+
cli-base `>=0.76.0 <0.78.0`, so cli-base stays at 0.77.1, not 0.78.0. A new CLI gets the shared `config migrate`,
|
|
14
|
+
`config repair` (with `--dry-run`) and the global `--compact`, each with a test, the error code `conflict` (exit 15)
|
|
15
|
+
and the `page.total` and `meta.now` fields in its MCP schemas. The reusable workflows in `.github/` move from
|
|
16
|
+
cli-base v0.61.2 to v0.77.1; their files are the same. A CLI gets the workflow pins from `upgrade`. `package.json`,
|
|
17
|
+
`contracts/` and the docs belong to the CLI, so it raises cli-core and cli-base itself and regenerates
|
|
18
|
+
`contracts/mcp-tools.json` and `docs/commands.md`.
|
|
19
|
+
- **CRM is a category of its own.** `new --category crm` and the design interview offer "CRM (sales: deals, contacts,
|
|
20
|
+
companies)". It has no reference CLI yet, so `AGENTS.md` asks to pick the nearest one with the owner, and the CLI
|
|
21
|
+
keeps `messenger: false`.
|
|
22
|
+
|
|
23
|
+
### Changed — may break callers
|
|
24
|
+
|
|
25
|
+
- **`config show`, `set` and `unset` no longer offer the messenger-only `--bot`, `--personal`, `speech_model` and
|
|
26
|
+
`picture_search`** (cli-core 0.565). A script that passes them gets an error.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- **`new` no longer copies the template's own description into the new CLI's `package.json`.** It writes a neutral
|
|
31
|
+
placeholder, and the first task in `DESIGN.md` says to rewrite it with `README.md`.
|
|
32
|
+
|
|
8
33
|
## 0.13.2 — 03.11.2026
|
|
9
34
|
|
|
10
35
|
### Fixed
|
|
@@ -9,7 +9,38 @@
|
|
|
9
9
|
"name": "template-config",
|
|
10
10
|
"members": ["clidev", "tg", "max", "wa"],
|
|
11
11
|
"covers": ["config"],
|
|
12
|
-
"differences": [
|
|
12
|
+
"differences": [
|
|
13
|
+
{
|
|
14
|
+
"rule": "same-path-contract",
|
|
15
|
+
"target": "config set --bot",
|
|
16
|
+
"absent": "clidev",
|
|
17
|
+
"reason": "cli-core 0.565 offers the personal and bot sections of the config file only to a messenger CLI; the template is not one"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"rule": "same-path-contract",
|
|
21
|
+
"target": "config set --personal",
|
|
22
|
+
"absent": "clidev",
|
|
23
|
+
"reason": "cli-core 0.565 offers the personal and bot sections of the config file only to a messenger CLI; the template is not one"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"rule": "same-path-contract",
|
|
27
|
+
"target": "config show --bot",
|
|
28
|
+
"absent": "clidev",
|
|
29
|
+
"reason": "cli-core 0.565 offers the personal and bot sections of the config file only to a messenger CLI; the template is not one"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"rule": "same-path-contract",
|
|
33
|
+
"target": "config unset --bot",
|
|
34
|
+
"absent": "clidev",
|
|
35
|
+
"reason": "cli-core 0.565 offers the personal and bot sections of the config file only to a messenger CLI; the template is not one"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"rule": "same-path-contract",
|
|
39
|
+
"target": "config unset --personal",
|
|
40
|
+
"absent": "clidev",
|
|
41
|
+
"reason": "cli-core 0.565 offers the personal and bot sections of the config file only to a messenger CLI; the template is not one"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
13
44
|
},
|
|
14
45
|
{
|
|
15
46
|
"name": "template-skill",
|
package/contracts/mcp-tools.json
CHANGED
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"provider_unavailable",
|
|
74
74
|
"invalid_response",
|
|
75
75
|
"outcome_unknown",
|
|
76
|
+
"conflict",
|
|
76
77
|
"cancelled"
|
|
77
78
|
],
|
|
78
79
|
"type": "string"
|
|
@@ -91,6 +92,15 @@
|
|
|
91
92
|
},
|
|
92
93
|
"type": "array"
|
|
93
94
|
},
|
|
95
|
+
"now": {
|
|
96
|
+
"format": "date-time",
|
|
97
|
+
"pattern": "Z$",
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"now_local": {
|
|
101
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}[+-]\\d{2}:\\d{2}$",
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
94
104
|
"run_id": {
|
|
95
105
|
"pattern": "\\S",
|
|
96
106
|
"type": "string"
|
|
@@ -228,6 +238,21 @@
|
|
|
228
238
|
"next_page": {
|
|
229
239
|
"minimum": 2,
|
|
230
240
|
"type": "integer"
|
|
241
|
+
},
|
|
242
|
+
"total": {
|
|
243
|
+
"additionalProperties": false,
|
|
244
|
+
"properties": {
|
|
245
|
+
"relation": {
|
|
246
|
+
"enum": ["eq", "gte"],
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
"value": {
|
|
250
|
+
"minimum": 0,
|
|
251
|
+
"type": "integer"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": ["value", "relation"],
|
|
255
|
+
"type": "object"
|
|
231
256
|
}
|
|
232
257
|
},
|
|
233
258
|
"required": ["mode", "limit", "has_more"],
|
|
@@ -249,6 +274,21 @@
|
|
|
249
274
|
"next_cursor": {
|
|
250
275
|
"pattern": "\\S",
|
|
251
276
|
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
"total": {
|
|
279
|
+
"additionalProperties": false,
|
|
280
|
+
"properties": {
|
|
281
|
+
"relation": {
|
|
282
|
+
"enum": ["eq", "gte"],
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"value": {
|
|
286
|
+
"minimum": 0,
|
|
287
|
+
"type": "integer"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"required": ["value", "relation"],
|
|
291
|
+
"type": "object"
|
|
252
292
|
}
|
|
253
293
|
},
|
|
254
294
|
"required": ["mode", "limit", "has_more"],
|
|
@@ -300,6 +340,7 @@
|
|
|
300
340
|
"provider_unavailable",
|
|
301
341
|
"invalid_response",
|
|
302
342
|
"outcome_unknown",
|
|
343
|
+
"conflict",
|
|
303
344
|
"cancelled"
|
|
304
345
|
],
|
|
305
346
|
"type": "string"
|
|
@@ -318,6 +359,15 @@
|
|
|
318
359
|
},
|
|
319
360
|
"type": "array"
|
|
320
361
|
},
|
|
362
|
+
"now": {
|
|
363
|
+
"format": "date-time",
|
|
364
|
+
"pattern": "Z$",
|
|
365
|
+
"type": "string"
|
|
366
|
+
},
|
|
367
|
+
"now_local": {
|
|
368
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}[+-]\\d{2}:\\d{2}$",
|
|
369
|
+
"type": "string"
|
|
370
|
+
},
|
|
321
371
|
"run_id": {
|
|
322
372
|
"pattern": "\\S",
|
|
323
373
|
"type": "string"
|
|
@@ -547,6 +597,7 @@
|
|
|
547
597
|
"provider_unavailable",
|
|
548
598
|
"invalid_response",
|
|
549
599
|
"outcome_unknown",
|
|
600
|
+
"conflict",
|
|
550
601
|
"cancelled"
|
|
551
602
|
],
|
|
552
603
|
"type": "string"
|
|
@@ -565,6 +616,15 @@
|
|
|
565
616
|
},
|
|
566
617
|
"type": "array"
|
|
567
618
|
},
|
|
619
|
+
"now": {
|
|
620
|
+
"format": "date-time",
|
|
621
|
+
"pattern": "Z$",
|
|
622
|
+
"type": "string"
|
|
623
|
+
},
|
|
624
|
+
"now_local": {
|
|
625
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}[+-]\\d{2}:\\d{2}$",
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
568
628
|
"run_id": {
|
|
569
629
|
"pattern": "\\S",
|
|
570
630
|
"type": "string"
|
|
@@ -702,6 +762,21 @@
|
|
|
702
762
|
"next_page": {
|
|
703
763
|
"minimum": 2,
|
|
704
764
|
"type": "integer"
|
|
765
|
+
},
|
|
766
|
+
"total": {
|
|
767
|
+
"additionalProperties": false,
|
|
768
|
+
"properties": {
|
|
769
|
+
"relation": {
|
|
770
|
+
"enum": ["eq", "gte"],
|
|
771
|
+
"type": "string"
|
|
772
|
+
},
|
|
773
|
+
"value": {
|
|
774
|
+
"minimum": 0,
|
|
775
|
+
"type": "integer"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"required": ["value", "relation"],
|
|
779
|
+
"type": "object"
|
|
705
780
|
}
|
|
706
781
|
},
|
|
707
782
|
"required": ["mode", "limit", "has_more"],
|
|
@@ -723,6 +798,21 @@
|
|
|
723
798
|
"next_cursor": {
|
|
724
799
|
"pattern": "\\S",
|
|
725
800
|
"type": "string"
|
|
801
|
+
},
|
|
802
|
+
"total": {
|
|
803
|
+
"additionalProperties": false,
|
|
804
|
+
"properties": {
|
|
805
|
+
"relation": {
|
|
806
|
+
"enum": ["eq", "gte"],
|
|
807
|
+
"type": "string"
|
|
808
|
+
},
|
|
809
|
+
"value": {
|
|
810
|
+
"minimum": 0,
|
|
811
|
+
"type": "integer"
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"required": ["value", "relation"],
|
|
815
|
+
"type": "object"
|
|
726
816
|
}
|
|
727
817
|
},
|
|
728
818
|
"required": ["mode", "limit", "has_more"],
|
|
@@ -774,6 +864,7 @@
|
|
|
774
864
|
"provider_unavailable",
|
|
775
865
|
"invalid_response",
|
|
776
866
|
"outcome_unknown",
|
|
867
|
+
"conflict",
|
|
777
868
|
"cancelled"
|
|
778
869
|
],
|
|
779
870
|
"type": "string"
|
|
@@ -792,6 +883,15 @@
|
|
|
792
883
|
},
|
|
793
884
|
"type": "array"
|
|
794
885
|
},
|
|
886
|
+
"now": {
|
|
887
|
+
"format": "date-time",
|
|
888
|
+
"pattern": "Z$",
|
|
889
|
+
"type": "string"
|
|
890
|
+
},
|
|
891
|
+
"now_local": {
|
|
892
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}[+-]\\d{2}:\\d{2}$",
|
|
893
|
+
"type": "string"
|
|
894
|
+
},
|
|
795
895
|
"run_id": {
|
|
796
896
|
"pattern": "\\S",
|
|
797
897
|
"type": "string"
|
package/dist/bin/clidev.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.14.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,8 +28,12 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
+
const chunks = ["../bundle/all-profiles-NVB2HT2S.js","../bundle/anthropic-ICTW7CNQ.js","../bundle/app-server-B6BCKXR7.js","../bundle/bun-ILPS6AYA.js","../bundle/bun-sqlite-JE6FJFQT.js","../bundle/decode-NXB5UKMO.js","../bundle/dist-ESHIQU4M.js","../bundle/echarts-DRDGGHJT.js","../bundle/embed-IKZ24BMC.js","../bundle/embedder-GMQ24DOQ.js","../bundle/first-screen-376CXGXJ.js","../bundle/instructions-EOQOXY6V.js","../bundle/mcp-7HBLFGCW.js","../bundle/mcp-KHUZOJO6.js","../bundle/mcp-MZHWJXAE.js","../bundle/node-52WF2326.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-73Z4SFOA.js","../bundle/oauth-EVTPAMZP.js","../bundle/open-46WZAPJ3.js","../bundle/openai-GWRDAHDU.js","../bundle/process-YIQPKLZI.js","../bundle/program-B3CY3FP7.js","../bundle/prompt-IVEYRLS5.js","../bundle/recognize-WVEKHODM.js","../bundle/remote-4K5VPMC7.js","../bundle/rerank-V24UJZYJ.js","../bundle/serve-PJWSOV7F.js","../bundle/server-2ZN7KZHZ.js","../bundle/server-5VYM7CCF.js","../bundle/state-ZPYGECVP.js","../bundle/store-6JQCLPQF.js","../bundle/store-maintenance-command-7XICIYHW.js"]
|
|
32
|
+
if (((words) => words
|
|
33
|
+
.filter((word) => !word.startsWith("-"))
|
|
34
|
+
.slice(0, 2)
|
|
35
|
+
.includes("upgrade"))(words)) await Promise.allSettled(chunks.map((chunk) => import(chunk)))
|
|
31
36
|
const running = import("../bundle/clidev.js")
|
|
32
|
-
const chunks = ["../bundle/all-profiles-MJ6XSFOO.js","../bundle/anthropic-W5UKBZUB.js","../bundle/app-server-EZ46JAHB.js","../bundle/bun-HB6O2TTT.js","../bundle/bun-sqlite-KBXOW2ES.js","../bundle/decode-AMXUVKNY.js","../bundle/dist-ESHIQU4M.js","../bundle/echarts-GJDMQ2AQ.js","../bundle/embed-L4CRZ2XQ.js","../bundle/embedder-IBGV4M2K.js","../bundle/first-screen-X5IJKBSU.js","../bundle/instructions-YJECS4KN.js","../bundle/mcp-GBSAK3VW.js","../bundle/mcp-OQBZXELQ.js","../bundle/mcp-RDZGYPSY.js","../bundle/node-NQG4EVZR.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-BR7F3BLB.js","../bundle/oauth-J7UAWNIK.js","../bundle/open-BR47R5UE.js","../bundle/process-66I7RDPJ.js","../bundle/program-EM4FKOCK.js","../bundle/prompt-NE5JJ7UP.js","../bundle/recognize-GC3YFVIA.js","../bundle/remote-QELOMKQM.js","../bundle/rerank-BH6TZ2SP.js","../bundle/serve-WWLRNDT2.js","../bundle/server-DE6NLNUF.js","../bundle/server-ZPSQKOAH.js","../bundle/state-2BEGXAMO.js","../bundle/store-AH6WZMCF.js","../bundle/store-maintenance-command-PBXX3IEV.js"]
|
|
33
37
|
// After the server answers its first request, so it starts no later.
|
|
34
38
|
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
35
39
|
await running
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
serveAllProfilesOverHttp,
|
|
7
7
|
serveAllProfilesOverStdio,
|
|
8
8
|
withProfile
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-LU4A2T7Y.js";
|
|
10
|
+
import "./chunk-VS5LGSTM.js";
|
|
11
|
+
import "./chunk-F34HGYWF.js";
|
|
12
12
|
import "./chunk-5D4AEUVA.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-VXOR76ZL.js";
|
|
14
|
+
import "./chunk-3WDYHOAF.js";
|
|
15
|
+
import "./chunk-IOJ2DTCY.js";
|
|
16
16
|
import "./chunk-Y5E2WNWB.js";
|
|
17
17
|
import "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
export {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkedOptions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R5RYPD23.js";
|
|
6
6
|
import {
|
|
7
7
|
messagesFor,
|
|
8
8
|
systemFor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LATYBJ4T.js";
|
|
10
10
|
import {
|
|
11
11
|
Anthropic
|
|
12
12
|
} from "./chunk-ADLS6FVG.js";
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
optional,
|
|
16
16
|
strictObject,
|
|
17
17
|
string
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IOJ2DTCY.js";
|
|
19
19
|
import "./chunk-Y5E2WNWB.js";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
25
25
|
var options = strictObject({
|
|
26
26
|
stop_sequences: optional(array(string()))
|
|
27
27
|
});
|
|
@@ -3,81 +3,82 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-BEBD27QT.js";
|
|
7
|
+
import "./chunk-BWBZCYUN.js";
|
|
8
8
|
import {
|
|
9
9
|
mcpUrlOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GUFPQZUA.js";
|
|
11
11
|
import {
|
|
12
12
|
answeredWire
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VS5LGSTM.js";
|
|
14
14
|
import {
|
|
15
15
|
answered,
|
|
16
16
|
failed,
|
|
17
17
|
registerCommands,
|
|
18
18
|
runCommandForAgent,
|
|
19
19
|
toolsFromCommands
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UT5TQ6MD.js";
|
|
21
21
|
import {
|
|
22
22
|
agentJson,
|
|
23
23
|
skillResource
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HYTHTSJP.js";
|
|
25
25
|
import {
|
|
26
26
|
StdioServerTransport,
|
|
27
27
|
serveStdio
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-F34HGYWF.js";
|
|
29
|
+
import "./chunk-IZKXJJ7V.js";
|
|
30
|
+
import "./chunk-5SAF3XOL.js";
|
|
31
|
+
import "./chunk-PIJUGF5F.js";
|
|
32
|
+
import "./chunk-2DAXUNTS.js";
|
|
33
|
+
import "./chunk-AS2PJNQ2.js";
|
|
34
|
+
import "./chunk-7Z4HR6GO.js";
|
|
34
35
|
import {
|
|
35
36
|
appInstructions
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-G45R7M42.js";
|
|
37
38
|
import {
|
|
38
39
|
McpServer
|
|
39
40
|
} from "./chunk-5D4AEUVA.js";
|
|
40
41
|
import {
|
|
41
42
|
mcpHttpMarker
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-NOVLCHDV.js";
|
|
48
|
-
import "./chunk-IGHEW777.js";
|
|
49
|
-
import "./chunk-MUSYGFCY.js";
|
|
43
|
+
} from "./chunk-6AW4DDK4.js";
|
|
44
|
+
import "./chunk-DZLHY4IA.js";
|
|
45
|
+
import "./chunk-SOYOOU2D.js";
|
|
46
|
+
import "./chunk-LATYBJ4T.js";
|
|
47
|
+
import "./chunk-BM5ZCDPQ.js";
|
|
50
48
|
import {
|
|
51
49
|
DEFAULT_OUTPUT_BYTES,
|
|
52
50
|
changesAuthorityAt,
|
|
53
51
|
describeProgram,
|
|
54
52
|
environmentOf,
|
|
55
|
-
fetchesOnlyAt,
|
|
56
53
|
judgedTargets,
|
|
57
54
|
readOnlyLockOf,
|
|
55
|
+
readsOverMcpAt,
|
|
58
56
|
rootOf2 as rootOf
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-RJ7AS7UB.js";
|
|
58
|
+
import "./chunk-VXOR76ZL.js";
|
|
59
|
+
import "./chunk-U6QD3J3F.js";
|
|
60
|
+
import "./chunk-VOTEB3AN.js";
|
|
61
|
+
import "./chunk-NVNUUHT5.js";
|
|
62
|
+
import "./chunk-R2JKPHH5.js";
|
|
63
|
+
import "./chunk-YOJLIVGO.js";
|
|
64
|
+
import "./chunk-3WDYHOAF.js";
|
|
65
|
+
import "./chunk-TJJ2XSJP.js";
|
|
66
|
+
import "./chunk-NH6LZ3H3.js";
|
|
67
|
+
import "./chunk-3MDNAYQA.js";
|
|
68
|
+
import "./chunk-CGFQT3LQ.js";
|
|
69
|
+
import "./chunk-DQIBGCF3.js";
|
|
70
|
+
import "./chunk-45244QQ6.js";
|
|
71
|
+
import "./chunk-62JRF2JA.js";
|
|
70
72
|
import {
|
|
71
73
|
CliError,
|
|
72
74
|
mcpErrorResult
|
|
73
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-IOJ2DTCY.js";
|
|
74
76
|
import "./chunk-Y5E2WNWB.js";
|
|
75
|
-
import "./chunk-Z7MSIRSQ.js";
|
|
76
77
|
import {
|
|
77
78
|
__name
|
|
78
79
|
} from "./chunk-ZVVMGPBJ.js";
|
|
79
80
|
|
|
80
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
81
82
|
var EXCLUDED = [["mcp"]];
|
|
82
83
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
83
84
|
const { app } = options;
|
|
@@ -101,7 +102,7 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
101
102
|
currentLevels: levels,
|
|
102
103
|
readOnly: readOnly(),
|
|
103
104
|
authority,
|
|
104
|
-
fetchOnly:
|
|
105
|
+
fetchOnly: readsOverMcpAt(root),
|
|
105
106
|
permissions: options.permissions
|
|
106
107
|
});
|
|
107
108
|
const availability = /* @__PURE__ */ __name((one) => () => {
|
|
@@ -192,10 +193,11 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
192
193
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
193
194
|
const { app } = options;
|
|
194
195
|
const { build } = createAppServer(command, context, options);
|
|
195
|
-
const { serveOverHttp } = await import("./serve-
|
|
196
|
+
const { serveOverHttp } = await import("./serve-PJWSOV7F.js");
|
|
196
197
|
const listening = await serveOverHttp(build, {
|
|
197
198
|
...http,
|
|
198
199
|
appName: app.command,
|
|
200
|
+
reaches: `your ${options.name}`,
|
|
199
201
|
onCode: /* @__PURE__ */ __name((code, expires) => context.renderer.note(context.env[mcpHttpMarker(app.envPrefix)] === void 0 ? `login code for a new browser app: ${code} (until ${expires.toTimeString().slice(0, 5)}; a new one after each login)` : `a new login code for a browser app: \`${app.command} ${context.settings.profile} mcp server status\``), "onCode"),
|
|
200
202
|
onError: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onError")
|
|
201
203
|
}).catch((error) => {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CGFQT3LQ.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,8 +3,8 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-LFLSV353.js";
|
|
7
|
+
import "./chunk-IOJ2DTCY.js";
|
|
8
8
|
import {
|
|
9
9
|
importFrom
|
|
10
10
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
16
16
|
var customised = false;
|
|
17
17
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
18
18
|
try {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IOJ2DTCY.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ab8c0b68b8b4768d5b87d6e249ef10da/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
|
+
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
|
+
var TimeLimitReached = class extends Error {
|
|
10
|
+
static {
|
|
11
|
+
__name(this, "TimeLimitReached");
|
|
12
|
+
}
|
|
13
|
+
constructor() {
|
|
14
|
+
super("the statement ran past its time limit");
|
|
15
|
+
this.name = "TimeLimitReached";
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var beforeTimeLimit = /* @__PURE__ */ __name((until) => {
|
|
19
|
+
if (Date.now() > Number(until))
|
|
20
|
+
throw new TimeLimitReached();
|
|
21
|
+
return 1;
|
|
22
|
+
}, "beforeTimeLimit");
|
|
23
|
+
var PRAGMAS = `
|
|
24
|
+
PRAGMA busy_timeout = 5000;
|
|
25
|
+
PRAGMA journal_mode = WAL;
|
|
26
|
+
PRAGMA foreign_keys = ON;
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
TIME_LIMIT_FUNCTION,
|
|
31
|
+
TimeLimitReached,
|
|
32
|
+
beforeTimeLimit,
|
|
33
|
+
PRAGMAS
|
|
34
|
+
};
|