frizz-server 0.15.53 → 0.15.55
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/dist/claude-agent-broker.js +16270 -15960
- package/dist/dev-child.js +20618 -19540
- package/package.json +1 -1
- package/runtime/cc-worker/lib/frizz-tools.mjs +247 -29
- package/web-dist/assets/{abnfDiagram-VCTEODGH-C5-n-yX3.js → abnfDiagram-VCTEODGH-C1TlrQDU.js} +1 -1
- package/web-dist/assets/architecture-7GRP2DOG-B-JiU1F4.js +1 -0
- package/web-dist/assets/{architectureDiagram-5GKGNRK7-v9eLyom7.js → architectureDiagram-5GKGNRK7-Cri_lZkn.js} +1 -1
- package/web-dist/assets/{blockDiagram-I7D4REHJ-De0HKZV7.js → blockDiagram-I7D4REHJ-D1PWNl2t.js} +1 -1
- package/web-dist/assets/{c4Diagram-7LVT6UL2-DQFZ6NeQ.js → c4Diagram-7LVT6UL2-CElcYVwN.js} +1 -1
- package/web-dist/assets/channel-C7icY_sg.js +1 -0
- package/web-dist/assets/{chunk-2E4U76K2-Cec1rhm9.js → chunk-2E4U76K2-ses_QJzP.js} +1 -1
- package/web-dist/assets/{chunk-4HAMMTFA-DYmlzCrb.js → chunk-4HAMMTFA-V5uwBTQI.js} +1 -1
- package/web-dist/assets/{chunk-75Z2AOVW-D4PgvSWX.js → chunk-75Z2AOVW-BrTfhN8v.js} +1 -1
- package/web-dist/assets/{chunk-CLGD4ZFX-BCRaJRgH.js → chunk-CLGD4ZFX-BMyHKQIB.js} +1 -1
- package/web-dist/assets/{chunk-DU6HZSFF-CXuOpgv7.js → chunk-DU6HZSFF-CjRSq8jX.js} +1 -1
- package/web-dist/assets/{chunk-F27PBJKO-Cij7-KWq.js → chunk-F27PBJKO-4Tuj3TSG.js} +1 -1
- package/web-dist/assets/{chunk-GMAD6QVW-Vfi9Qodg.js → chunk-GMAD6QVW-DGMAdzi_.js} +1 -1
- package/web-dist/assets/{chunk-GVQU2GXP-eAwOwPRP.js → chunk-GVQU2GXP-D10QZhbE.js} +1 -1
- package/web-dist/assets/{chunk-IMKFNOWR-jBkoemYF.js → chunk-IMKFNOWR-c4LNGRwK.js} +1 -1
- package/web-dist/assets/{chunk-L3NEJ4N5-Xttgzyc5.js → chunk-L3NEJ4N5-C6yDCvSY.js} +1 -1
- package/web-dist/assets/{chunk-OSK3NFVY-DR9jXn3P.js → chunk-OSK3NFVY-B44306ZQ.js} +1 -1
- package/web-dist/assets/{chunk-P2QGCYS3-Cpc3emFn.js → chunk-P2QGCYS3-CoijXcGc.js} +1 -1
- package/web-dist/assets/{chunk-POPQ4Y6H-CuScFkWc.js → chunk-POPQ4Y6H-DwUFZ_hb.js} +1 -1
- package/web-dist/assets/{chunk-PWAF6VOD-CIdwTlgR.js → chunk-PWAF6VOD-C93STtia.js} +1 -1
- package/web-dist/assets/{chunk-SHT3W25Y-Yb5paoPg.js → chunk-SHT3W25Y-H6XI1c07.js} +1 -1
- package/web-dist/assets/{chunk-SVP7TREG-x8diHpMs.js → chunk-SVP7TREG-DuksI_1N.js} +1 -1
- package/web-dist/assets/{chunk-TICWLB2K-DHsuW_jr.js → chunk-TICWLB2K-RsyqtkYR.js} +1 -1
- package/web-dist/assets/{chunk-TLUHSLCS-BwiXM_E2.js → chunk-TLUHSLCS-BxJh09ya.js} +2 -2
- package/web-dist/assets/classDiagram-ZZMXUADV-CAv7ATVS.js +1 -0
- package/web-dist/assets/classDiagram-v2-VYDZK3BY-CAv7ATVS.js +1 -0
- package/web-dist/assets/{cynefin-OW5HDTMX-Cs2PLbXO.js → cynefin-OW5HDTMX-D875fMR9.js} +1 -1
- package/web-dist/assets/{cynefinDiagram-5FMLGOSQ-DThGVJ4q.js → cynefinDiagram-5FMLGOSQ-Dqzy0w6p.js} +1 -1
- package/web-dist/assets/{dagre-GXQ25YYZ-D4QLKHYZ.js → dagre-GXQ25YYZ-DuVEf1Vi.js} +1 -1
- package/web-dist/assets/{diagram-S7CK7UJ4-C-oieh0l.js → diagram-S7CK7UJ4-CBL_AjHq.js} +1 -1
- package/web-dist/assets/{diagram-UQ7AKVKN-BRTaSxi8.js → diagram-UQ7AKVKN-DCV3-d0R.js} +1 -1
- package/web-dist/assets/{diagram-VSXAHHWV-B01NfoBK.js → diagram-VSXAHHWV-DrXNxScf.js} +1 -1
- package/web-dist/assets/{diagram-VX7I27RA-CIi0wWLy.js → diagram-VX7I27RA-BwOB13cX.js} +1 -1
- package/web-dist/assets/{diagram-Z3DM3KII-Bj0bns7N.js → diagram-Z3DM3KII-DoBjTWB1.js} +1 -1
- package/web-dist/assets/{ebnfDiagram-PWID7BFC-DJWjvFhA.js → ebnfDiagram-PWID7BFC-B6tfw0nV.js} +1 -1
- package/web-dist/assets/{erDiagram-RLTQ6QDP-OArCjKyL.js → erDiagram-RLTQ6QDP-CS-mf9qc.js} +1 -1
- package/web-dist/assets/eventmodeling-NTZA5JFV-DDWVg-1X.js +1 -0
- package/web-dist/assets/flowDiagram-HODETNUW-C4GAA89p.js +1 -0
- package/web-dist/assets/{ganttDiagram-EL5Y4UJY-Sh-yF7Pk.js → ganttDiagram-EL5Y4UJY-eFES_RS8.js} +1 -1
- package/web-dist/assets/{gitGraph-4MIJSDKK-diOiZ9jR.js → gitGraph-4MIJSDKK-CQ9xjgek.js} +1 -1
- package/web-dist/assets/{gitGraphDiagram-WWUBYQGX-CUUUaPk1.js → gitGraphDiagram-WWUBYQGX-AjSTmyYb.js} +1 -1
- package/web-dist/assets/index-C3R9j4I1.js +242 -0
- package/web-dist/assets/index-CyHVBTVs.css +2 -0
- package/web-dist/assets/{info-A6RAGUB7-RybBrr2w.js → info-A6RAGUB7-DowSR-We.js} +1 -1
- package/web-dist/assets/{infoDiagram-27XIBGKW-Cph6Zwcq.js → infoDiagram-27XIBGKW-DHDsqIak.js} +1 -1
- package/web-dist/assets/{ishikawaDiagram-5VMMS53U-BANgLDpg.js → ishikawaDiagram-5VMMS53U-HetLe9On.js} +1 -1
- package/web-dist/assets/{journeyDiagram-3NMN7TZE-DI-v8VTL.js → journeyDiagram-3NMN7TZE-D4_wbgT7.js} +1 -1
- package/web-dist/assets/{kanban-definition-UXKFOSKX-Bzf950KK.js → kanban-definition-UXKFOSKX-CRnYWESY.js} +1 -1
- package/web-dist/assets/{line--92Un6e-.js → line-C2Iv_dvE.js} +1 -1
- package/web-dist/assets/{mermaid-parser.core-tLBuwbpU.js → mermaid-parser.core-DUMJfMC4.js} +3 -3
- package/web-dist/assets/{mermaid.core-eLZc0PEp.js → mermaid.core-7JBPQJ4J.js} +3 -3
- package/web-dist/assets/{mindmap-definition-YA3MSWOX-4_2Ouyga.js → mindmap-definition-YA3MSWOX-DXBtG9ze.js} +1 -1
- package/web-dist/assets/{packet-AYTQ26CC-DpTDZ1kf.js → packet-AYTQ26CC-PzVqLj_E.js} +1 -1
- package/web-dist/assets/{pegDiagram-XKGWAZYB-CHCMV4dR.js → pegDiagram-XKGWAZYB-BocquVr_.js} +1 -1
- package/web-dist/assets/{pie-WAS4IAKB-DCAUr7Sl.js → pie-WAS4IAKB-DTNw32Dw.js} +1 -1
- package/web-dist/assets/{pieDiagram-E7YTZNPT-ClmhRIOi.js → pieDiagram-E7YTZNPT-C3v6NxYd.js} +1 -1
- package/web-dist/assets/{quadrantDiagram-AXDQQJYC-C5-AhbaK.js → quadrantDiagram-AXDQQJYC-ClpcI3OE.js} +1 -1
- package/web-dist/assets/{radar-RG4KPBEZ-BcqJ67Ci.js → radar-RG4KPBEZ-CKjO6xNC.js} +1 -1
- package/web-dist/assets/{railroad-74A4TZTK-BfVmIesg.js → railroad-74A4TZTK-Dd4-TDIx.js} +1 -1
- package/web-dist/assets/railroad-abnf-HS5TGJTU-BPHtt5H1.js +1 -0
- package/web-dist/assets/railroad-ebnf-LZEXJU2U-BaKcvaeI.js +1 -0
- package/web-dist/assets/railroad-peg-WCYAUIDC-DuPBfkZr.js +1 -0
- package/web-dist/assets/{railroadDiagram-O6MQD6OU-BV06urHq.js → railroadDiagram-O6MQD6OU-BljFXhpF.js} +1 -1
- package/web-dist/assets/{requirementDiagram-BXWQKSXE-B0kxzubq.js → requirementDiagram-BXWQKSXE-CARauSY_.js} +1 -1
- package/web-dist/assets/{sankeyDiagram-P5KCCOFB-DjBlKiUQ.js → sankeyDiagram-P5KCCOFB-BZe39d36.js} +1 -1
- package/web-dist/assets/{sequenceDiagram-WJ2MYXX4-BHxYt7aE.js → sequenceDiagram-WJ2MYXX4-DgCNL7Lt.js} +1 -1
- package/web-dist/assets/{stateDiagram-D77RDMKH-DUMg8VxQ.js → stateDiagram-D77RDMKH-C0cGlsv9.js} +1 -1
- package/web-dist/assets/stateDiagram-v2-MP3YSRHH-DryojEUE.js +1 -0
- package/web-dist/assets/{swimlanes-42K2YHIH-yb-iMsnc.js → swimlanes-42K2YHIH-Ch-IW2O4.js} +1 -1
- package/web-dist/assets/swimlanesDiagram-VR7AAH4N-CPYytCxZ.js +8 -0
- package/web-dist/assets/threadSurfaces-CV79lLn2.js +145 -0
- package/web-dist/assets/{timeline-definition-24CTP7MA-DNW8iOn2.js → timeline-definition-24CTP7MA-DOM2GiBG.js} +1 -1
- package/web-dist/assets/{treeView-Q6P3EWNA-CuVRJqXc.js → treeView-Q6P3EWNA-Dj0GilHr.js} +1 -1
- package/web-dist/assets/{treemap-WGGIJYW6-CqAS1nJa.js → treemap-WGGIJYW6-DeeKNx6P.js} +1 -1
- package/web-dist/assets/{vennDiagram-4TSXK5OY-CayuoPm-.js → vennDiagram-4TSXK5OY-BTqHjTGl.js} +1 -1
- package/web-dist/assets/{wardley-WFR3VGLG-DLBjtOPH.js → wardley-WFR3VGLG-enbKlGra.js} +1 -1
- package/web-dist/assets/{wardleyDiagram-VM6X3IG4-VjTKjARS.js → wardleyDiagram-VM6X3IG4-B8_6BvtP.js} +1 -1
- package/web-dist/assets/{xychartDiagram-S5SC5T6Z-VztC2hoJ.js → xychartDiagram-S5SC5T6Z-BmdEC4NF.js} +1 -1
- package/web-dist/index.html +2 -2
- package/web-dist/assets/architecture-7GRP2DOG-BXfsnnri.js +0 -1
- package/web-dist/assets/channel-CbqV-FJf.js +0 -1
- package/web-dist/assets/classDiagram-ZZMXUADV-ChpFNZ6-.js +0 -1
- package/web-dist/assets/classDiagram-v2-VYDZK3BY-ChpFNZ6-.js +0 -1
- package/web-dist/assets/eventmodeling-NTZA5JFV-DnLS-G1o.js +0 -1
- package/web-dist/assets/flowDiagram-HODETNUW-DxBcq7hK.js +0 -1
- package/web-dist/assets/index-C2agpmfX.css +0 -2
- package/web-dist/assets/index-C7R3M7gN.js +0 -242
- package/web-dist/assets/railroad-abnf-HS5TGJTU-DmdHOz1X.js +0 -1
- package/web-dist/assets/railroad-ebnf-LZEXJU2U-pF0K7xke.js +0 -1
- package/web-dist/assets/railroad-peg-WCYAUIDC-D-df90Rl.js +0 -1
- package/web-dist/assets/stateDiagram-v2-MP3YSRHH-W4P30iTw.js +0 -1
- package/web-dist/assets/swimlanesDiagram-VR7AAH4N-CY1l7luM.js +0 -8
- package/web-dist/assets/threadSurfaces-i506BiUf.js +0 -143
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* environment the worker was started with, which is what stops one thread acting as another.
|
|
28
28
|
*/
|
|
29
29
|
import { readFileSync, readdirSync } from "node:fs"
|
|
30
|
-
import { basename, dirname, join } from "node:path"
|
|
30
|
+
import { basename, dirname, join, resolve as resolvePath } from "node:path"
|
|
31
31
|
|
|
32
32
|
// Comfortably above a codex dispatch's bounded rollout-discovery wait (~15s) so a legitimate slow
|
|
33
33
|
// dispatch is never aborted client-side (which would make the worker think it failed and retry,
|
|
@@ -257,7 +257,10 @@ const TIMER = {
|
|
|
257
257
|
"done yet\" is strictly worse than being woken when it is.\n\n" +
|
|
258
258
|
"The text arrives VERBATIM as an ordinary user turn, so write it as an instruction to your future " +
|
|
259
259
|
"self — self-contained and actionable, because you may receive it with none of the context you have " +
|
|
260
|
-
"now. Give exactly one of `--in`, `--in-seconds` or `--at`. You can only ever set a timer on your OWN thread
|
|
260
|
+
"now. Give exactly one of `--in`, `--in-seconds` or `--at`. You can only ever set a timer on your OWN thread.\n\n" +
|
|
261
|
+
"NAME IT FOR THE HUMAN with `--description`: a few words, sentence case, saying what it is for (\"Re-check " +
|
|
262
|
+
"the staging deploy\"). The human reads the description, never the prompt, on the timer's row and as its " +
|
|
263
|
+
"drawer's title.",
|
|
261
264
|
inputSchema: {
|
|
262
265
|
type: "object",
|
|
263
266
|
properties: {
|
|
@@ -273,6 +276,13 @@ const TIMER = {
|
|
|
273
276
|
type: "string",
|
|
274
277
|
description: "Required for `set`. The text delivered to you when it fires, verbatim, as a user turn.",
|
|
275
278
|
},
|
|
279
|
+
description: {
|
|
280
|
+
type: "string",
|
|
281
|
+
description:
|
|
282
|
+
"Required for `set`. What the timer is for, in a few words, sentence case (\"Re-check the staging " +
|
|
283
|
+
"deploy\", \"Revisit the flaky test decision\"): the name the human sees on its row and its drawer. " +
|
|
284
|
+
"Never the prompt itself. One line, at most 120 characters.",
|
|
285
|
+
},
|
|
276
286
|
in: {
|
|
277
287
|
type: "string",
|
|
278
288
|
description:
|
|
@@ -772,6 +782,36 @@ const TITLE = {
|
|
|
772
782
|
},
|
|
773
783
|
}
|
|
774
784
|
|
|
785
|
+
const MCP = {
|
|
786
|
+
name: "mcp",
|
|
787
|
+
description:
|
|
788
|
+
"RELOAD THE PROJECT'S MCP SERVERS INTO THIS THREAD, after you have changed its MCP configuration. A running " +
|
|
789
|
+
"thread reads that configuration once, when its session starts, and nothing watches the files: this is how " +
|
|
790
|
+
"an edit reaches the thread you are in without restarting it. New servers connect, changed ones restart, " +
|
|
791
|
+
"removed ones disconnect, and an untouched one keeps running. You can call a new server's tools in this same " +
|
|
792
|
+
"turn.\n\n" +
|
|
793
|
+
"WHERE THE CONFIGURATION LIVES. Claude Code: the project's `.mcp.json` (`claude mcp add --scope project` " +
|
|
794
|
+
"writes it too), and a server there loads only once a settings file approves it — its name in " +
|
|
795
|
+
"`enabledMcpjsonServers` in `.claude/settings.local.json`, or `enableAllProjectMcpServers: true`. A server in " +
|
|
796
|
+
"your user scope that runs a command is never loaded into a Frizz thread; put it in `.mcp.json`. Codex: " +
|
|
797
|
+
"`[mcp_servers.<name>]` tables in the project's `.codex/config.toml`, which Codex reads only for a project " +
|
|
798
|
+
"it trusts (`trust_level = \"trusted\"` under `[projects.\"<path>\"]` in `~/.codex/config.toml`); a table in " +
|
|
799
|
+
"`~/.codex/config.toml` itself reaches every project's Codex threads.\n\n" +
|
|
800
|
+
"IT IS THE PROJECT'S, NOT THE THREAD'S. The reload brings every running thread of this project level with " +
|
|
801
|
+
"the configuration, not only yours. A file that does not parse refuses the whole reload rather than " +
|
|
802
|
+
"unmounting what it declares.\n\n" +
|
|
803
|
+
"It prints what changed in this thread: added, changed, removed, servers that failed to connect, and any " +
|
|
804
|
+
"`.mcp.json` server left out because nothing approves it.",
|
|
805
|
+
inputSchema: {
|
|
806
|
+
type: "object",
|
|
807
|
+
properties: {
|
|
808
|
+
action: { type: "string", enum: ["reload"], description: "`reload`: re-read the project's MCP configuration into this thread." },
|
|
809
|
+
},
|
|
810
|
+
required: ["action"],
|
|
811
|
+
additionalProperties: false,
|
|
812
|
+
},
|
|
813
|
+
}
|
|
814
|
+
|
|
775
815
|
// The registry: `frizzctl` lists these and routes a command by name (and the legacy MCP front-end
|
|
776
816
|
// answers `tools/list` and `tools/call` from the same list). Adding a worker-facing capability = one
|
|
777
817
|
// entry here + one handler in `HANDLERS` + its spelling in `CLI` — never a second surface.
|
|
@@ -825,6 +865,54 @@ const UNLINK = {
|
|
|
825
865
|
},
|
|
826
866
|
}
|
|
827
867
|
|
|
868
|
+
// A CHECKOUT THIS THREAD WORKS IN, REGISTERED AS ITS OWN (2026-11-14). The rail then shows what git says
|
|
869
|
+
// changed in it, rooted at the checkout — see packages/server/src/worktree-changes.ts. It names one that
|
|
870
|
+
// exists: Frizz makes no checkout, because how a user isolates work is theirs to choose.
|
|
871
|
+
const WORKTREE = {
|
|
872
|
+
name: "worktree",
|
|
873
|
+
description:
|
|
874
|
+
"REGISTER A CHECKOUT YOU WORK IN AS THIS THREAD'S OWN, so the human sees what changed in it. Whenever you " +
|
|
875
|
+
"work in a checkout other than the project's own — a git worktree, a separate clone, wherever you or the " +
|
|
876
|
+
"project put it — register it once you have made it. The side rail then shows a \"Changes\" group for it, " +
|
|
877
|
+
"read off git: every file that differs from where its branch left the base, committed or not, untracked " +
|
|
878
|
+
"files included, with git's line counts and paths relative to the checkout. That counts what your tool " +
|
|
879
|
+
"calls do not show: a codegen step, a formatter, a `git mv`, a sub-agent's edits. Its files open in the " +
|
|
880
|
+
"file viewer wherever the checkout sits on disk.\n\n" +
|
|
881
|
+
"REGISTER ONLY A CHECKOUT THIS THREAD WORKS IN ALONE. Git cannot say who changed a file, so a checkout " +
|
|
882
|
+
"others also edit — usually the project's own — would show their work as yours.\n\n" +
|
|
883
|
+
"`--base` names what the work is measured from: a branch, tag or sha the checkout has. Leave it out and " +
|
|
884
|
+
"it is the repository's default branch — its local branch where one exists, so commits landed locally " +
|
|
885
|
+
"and not yet pushed do not count as yours. Registering a checkout again keeps its row and takes a new " +
|
|
886
|
+
"`--base` if you give one.\n\n" +
|
|
887
|
+
"Nothing is created, moved or deleted on disk, and a registration never holds the thread open or blocks " +
|
|
888
|
+
"done. `unregister` takes the checkout's path or its `wtr_…` id; do that when you remove the checkout. " +
|
|
889
|
+
"`list`, and `frizzctl activity`, read registrations back.",
|
|
890
|
+
inputSchema: {
|
|
891
|
+
type: "object",
|
|
892
|
+
properties: {
|
|
893
|
+
action: {
|
|
894
|
+
type: "string",
|
|
895
|
+
enum: ["register", "unregister", "list"],
|
|
896
|
+
description: "`register` a checkout (idempotent per path); `unregister` one by path or id; `list` what is registered. Every action answers with the full list.",
|
|
897
|
+
},
|
|
898
|
+
path: {
|
|
899
|
+
type: "string",
|
|
900
|
+
description: "For `register`: the checkout's top folder. A relative path is resolved against your working directory.",
|
|
901
|
+
},
|
|
902
|
+
base: {
|
|
903
|
+
type: "string",
|
|
904
|
+
description: "For `register`, optional: the branch, tag or sha the checkout's work is measured from. Default: the repository's default branch.",
|
|
905
|
+
},
|
|
906
|
+
target: {
|
|
907
|
+
type: "string",
|
|
908
|
+
description: "For `unregister`: the checkout's path or its `wtr_…` id.",
|
|
909
|
+
},
|
|
910
|
+
},
|
|
911
|
+
required: ["action"],
|
|
912
|
+
additionalProperties: false,
|
|
913
|
+
},
|
|
914
|
+
}
|
|
915
|
+
|
|
828
916
|
// RETIRED (2026-11-06): `frizzctl watch-command` is `frizzctl monitor` now. The two shared a table, an id and
|
|
829
917
|
// a fence key, and for an hour on 2026-11-06 they were one command under this name with `--persistent`;
|
|
830
918
|
// then the maintainer named it: "I want them to be called monitors. That's a better name." It stays in the
|
|
@@ -833,7 +921,7 @@ const UNLINK = {
|
|
|
833
921
|
const WATCH_COMMAND_RETIRED =
|
|
834
922
|
"NOT registered — `frizzctl watch-command` is retired (2026-11-06), and nothing was armed or dropped. It is " +
|
|
835
923
|
"`frizzctl monitor` now, with the same arguments:\n\n" +
|
|
836
|
-
" frizzctl monitor add \"<check that exits 0 once it holds>\" --every 5m --for 6h\n" +
|
|
924
|
+
" frizzctl monitor add \"<check that exits 0 once it holds>\" --description \"<what it waits for>\" --every 5m --for 6h\n" +
|
|
837
925
|
" frizzctl monitor add \"<script>\" --persistent --description \"<what it watches>\" --for 1d\n" +
|
|
838
926
|
" frizzctl monitor list\n" +
|
|
839
927
|
" frizzctl monitor drop <id>\n\n" +
|
|
@@ -869,8 +957,8 @@ const MONITOR = {
|
|
|
869
957
|
"settles it.\n\n" +
|
|
870
958
|
"WITH `--persistent`, A SCRIPT THAT WAKES YOU ON EVERY LINE. Give it a script that keeps running and " +
|
|
871
959
|
"prints a line each time something happens — a log tail filtered to the lines you would act on, a poll " +
|
|
872
|
-
"loop that prints each new row a query returns, a listener on a socket — with
|
|
873
|
-
"
|
|
960
|
+
"loop that prints each new row a query returns, a listener on a socket — with no `--every`. Register " +
|
|
961
|
+
"once, woken many times. Claude Code's own Monitor tool lives in your session, pins " +
|
|
874
962
|
"your process tree while it runs, and dies with it; this does none of that. A pull request or an issue " +
|
|
875
963
|
"needs neither shape: `watch-pr` and `watch-issue` already wake you on each comment, review and check.\n\n" +
|
|
876
964
|
"ITS STDOUT IS THE EVENT STREAM. Lines printed within 200ms of each other are one event; blank lines are " +
|
|
@@ -888,6 +976,9 @@ const MONITOR = {
|
|
|
888
976
|
"It ends when the script exits (you are woken once with the exit code and its last output), when " +
|
|
889
977
|
"`--for` runs out, or when you drop it. A poll loop that should stop on a known end — a CI run " +
|
|
890
978
|
"finishing — exits itself.\n\n" +
|
|
979
|
+
"BOTH TAKE A `--description`: what you are waiting for or watching, in a few words, sentence case " +
|
|
980
|
+
"(\"frizz 0.13.12 on npm\", \"Errors in app.log\"). It is the name the human sees on the monitor's row and " +
|
|
981
|
+
"as its drawer's title — the command is shown under it, never instead of it.\n\n" +
|
|
891
982
|
"BOTH RUN ON THE SERVER, NOT IN YOUR SHELL: `/bin/sh -c` in the project root, with the server's " +
|
|
892
983
|
"environment and PATH, stdin closed. Nothing your session exported, no aliases, no functions; use " +
|
|
893
984
|
"absolute paths.\n\n" +
|
|
@@ -934,14 +1025,15 @@ const MONITOR = {
|
|
|
934
1025
|
type: "boolean",
|
|
935
1026
|
description:
|
|
936
1027
|
"Run the command as a script that keeps running, and wake on every line it prints, instead of " +
|
|
937
|
-
"re-running it until it exits 0. Takes
|
|
1028
|
+
"re-running it until it exits 0. Takes no `--every`.",
|
|
938
1029
|
},
|
|
939
1030
|
description: {
|
|
940
1031
|
type: "string",
|
|
941
1032
|
description:
|
|
942
|
-
"Required
|
|
943
|
-
"case (\"
|
|
944
|
-
"and its drawer, and the label on every wake. Never the
|
|
1033
|
+
"Required for `add`, with or without `--persistent`. What it waits for or watches, in a few words, " +
|
|
1034
|
+
"sentence case (\"frizz 0.13.12 on npm\", \"Errors in deploy.log\"): the name the human sees on its " +
|
|
1035
|
+
"row and its drawer, and the label on a persistent monitor's every wake. Never the command itself. " +
|
|
1036
|
+
"One line, at most 120 characters.",
|
|
945
1037
|
},
|
|
946
1038
|
id: {
|
|
947
1039
|
type: "string",
|
|
@@ -997,7 +1089,7 @@ const THREADS = {
|
|
|
997
1089
|
// WATCH_ISSUE rides at the END (2026-09-14), and SECRET, STEER, WATCH_COMMAND, MONITOR and THREADS after it: the tool list is
|
|
998
1090
|
// read by position in frizz-mcp.test.ts, and a worker's runtime reads it by name, so the order costs nothing and appending
|
|
999
1091
|
// breaks nothing.
|
|
1000
|
-
const TOOLS = [SPAWN_THREAD, GOAL, TIMER, WATCH_PR, WATCH, UNWATCH, ASK, UNASK, DONE, TITLE, ACTIVITY, LINK, UNLINK, WATCH_ISSUE, SECRET, STEER, WATCH_COMMAND, MONITOR, THREADS, SPAWN_CHILD]
|
|
1092
|
+
const TOOLS = [SPAWN_THREAD, GOAL, TIMER, WATCH_PR, WATCH, UNWATCH, ASK, UNASK, DONE, TITLE, ACTIVITY, LINK, UNLINK, WATCH_ISSUE, SECRET, STEER, WATCH_COMMAND, MONITOR, THREADS, SPAWN_CHILD, MCP, WORKTREE]
|
|
1001
1093
|
|
|
1002
1094
|
/** @type {Record<string, (args: Record<string, unknown>) => Promise<string>>} */
|
|
1003
1095
|
const HANDLERS = {
|
|
@@ -1017,6 +1109,8 @@ const HANDLERS = {
|
|
|
1017
1109
|
[ACTIVITY.name]: activity,
|
|
1018
1110
|
[LINK.name]: link,
|
|
1019
1111
|
[UNLINK.name]: unlink,
|
|
1112
|
+
[WORKTREE.name]: worktree,
|
|
1113
|
+
[MCP.name]: mcp,
|
|
1020
1114
|
[STEER.name]: steer,
|
|
1021
1115
|
[WATCH_COMMAND.name]: watchCommand,
|
|
1022
1116
|
[MONITOR.name]: monitor,
|
|
@@ -1193,6 +1287,98 @@ async function unlink(args) {
|
|
|
1193
1287
|
return result?.dropped ? `Removed registration ${id}. No file was deleted and no server was stopped.` : `No registration ${id} on this thread.`
|
|
1194
1288
|
}
|
|
1195
1289
|
|
|
1290
|
+
/** The registered checkouts, one per line, as `worktree list` and every other action answer.
|
|
1291
|
+
* @param {any} result @returns {string} */
|
|
1292
|
+
function worktreeList(result) {
|
|
1293
|
+
const worktrees = Array.isArray(result?.worktrees) ? result.worktrees : []
|
|
1294
|
+
if (worktrees.length === 0) return "No checkouts registered on this thread."
|
|
1295
|
+
return "Registered checkouts (the rail shows each one's changes):\n" +
|
|
1296
|
+
worktrees.map((w) => ` ${w.id} ${w.path}${w.base ? ` (measured from ${w.base})` : ""}`).join("\n")
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/** The `worktree` handler: `frizzctl worktree register|unregister|list`.
|
|
1300
|
+
* @param {Record<string, unknown>} args @returns {Promise<string>} */
|
|
1301
|
+
async function worktree(args) {
|
|
1302
|
+
const slug = threadSlug()
|
|
1303
|
+
const action = actionOf("worktree", args.action)
|
|
1304
|
+
if (action === "list") return worktreeList((await callRpc("listOwnWorktrees", { slug }))?.result)
|
|
1305
|
+
if (action === "unregister") {
|
|
1306
|
+
const raw = typeof args.target === "string" ? args.target.trim() : typeof args.path === "string" ? args.path.trim() : ""
|
|
1307
|
+
if (!raw) throw new Error("give the checkout's path or its `wtr_…` id — `frizzctl worktree list` shows both")
|
|
1308
|
+
const target = /^wtr_/.test(raw) ? raw : resolvePath(raw)
|
|
1309
|
+
const result = (await callRpc("dropOwnWorktree", { slug, target }))?.result
|
|
1310
|
+
const head = result?.dropped
|
|
1311
|
+
? `Unregistered ${raw}. Its changes leave the rail; nothing on disk was touched.`
|
|
1312
|
+
: `No checkout ${raw} is registered on this thread.`
|
|
1313
|
+
return `${head}\n\n${worktreeList(result)}`
|
|
1314
|
+
}
|
|
1315
|
+
if (action !== "register") throw new Error("`action` must be one of \"register\", \"unregister\" or \"list\"")
|
|
1316
|
+
const raw = typeof args.path === "string" ? args.path.trim() : ""
|
|
1317
|
+
if (!raw) throw new Error("`path` is required — the top folder of the checkout you work in")
|
|
1318
|
+
const base = typeof args.base === "string" && args.base.trim() ? args.base.trim() : undefined
|
|
1319
|
+
// Resolved HERE, against the worker's own working directory: the server cannot know where a relative
|
|
1320
|
+
// path was written from.
|
|
1321
|
+
const result = (await callRpc("addOwnWorktree", { slug, path: resolvePath(raw), ...(base ? { base } : {}) }))?.result
|
|
1322
|
+
const saved = result?.worktree
|
|
1323
|
+
if (!saved?.id) throw new Error("Frizz did not return the registration")
|
|
1324
|
+
const measured = saved.base ? `measured from ${saved.base}` : "measured from the repository's default branch"
|
|
1325
|
+
const head = result.alreadyRegistered
|
|
1326
|
+
? `Already registered as ${saved.id} (${measured}); the rail keeps showing its changes.`
|
|
1327
|
+
: `Registered ${saved.path} as ${saved.id}, ${measured}. The rail shows what git says changed there, and its files open in the viewer. Run \`frizzctl worktree unregister ${saved.id}\` when you remove the checkout.`
|
|
1328
|
+
return `${head}\n\n${worktreeList(result)}`
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
/** The `mcp` handler: `frizzctl mcp reload`.
|
|
1332
|
+
* @param {Record<string, unknown>} args @returns {Promise<string>} */
|
|
1333
|
+
async function mcp(args) {
|
|
1334
|
+
const action = typeof args.action === "string" ? args.action.trim().toLowerCase() : ""
|
|
1335
|
+
if (action !== "reload") throw new Error("the one action is `reload`: `frizzctl mcp reload`")
|
|
1336
|
+
const result = (await callRpc("mcpReload", { slug: threadSlug() }))?.result
|
|
1337
|
+
return mcpReloadReport(result)
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
/** What a reload changed, as the worker reads it. Exported for its test.
|
|
1341
|
+
* @param {any} result @returns {string} */
|
|
1342
|
+
function mcpReloadReport(result) {
|
|
1343
|
+
if (!result) throw new Error("Frizz did not answer the reload")
|
|
1344
|
+
if (!result.supported) return `${result.agent} has no MCP reload, so nothing was reloaded.`
|
|
1345
|
+
const lines = []
|
|
1346
|
+
const change = result.thread
|
|
1347
|
+
const list = (/** @type {string[]} */ names) => names.map((name) => `\`${name}\``).join(", ")
|
|
1348
|
+
if (change) {
|
|
1349
|
+
const moved = change.added.length + change.changed.length + change.removed.length
|
|
1350
|
+
if (moved === 0 && Object.keys(change.errors).length === 0) {
|
|
1351
|
+
lines.push(`Nothing changed: this thread already has the project's MCP servers as they read now (${change.unchanged} unchanged).`)
|
|
1352
|
+
} else {
|
|
1353
|
+
lines.push("Reloaded this thread's MCP servers from the project's configuration.")
|
|
1354
|
+
if (change.added.length) lines.push(`Added: ${list(change.added)}`)
|
|
1355
|
+
if (change.changed.length) lines.push(`Changed, so restarted: ${list(change.changed)}`)
|
|
1356
|
+
if (change.removed.length) lines.push(`Removed: ${list(change.removed)}`)
|
|
1357
|
+
if (change.unchanged) lines.push(`Unchanged: ${change.unchanged}`)
|
|
1358
|
+
}
|
|
1359
|
+
for (const [name, error] of Object.entries(change.errors)) lines.push(`Failed to connect: \`${name}\`: ${error}`)
|
|
1360
|
+
if (change.unapproved.length) {
|
|
1361
|
+
lines.push(
|
|
1362
|
+
`Not loaded, because nothing approves it: ${list(change.unapproved)}. A \`.mcp.json\` server loads once its name is in ` +
|
|
1363
|
+
"`enabledMcpjsonServers` in `.claude/settings.local.json` (or `enableAllProjectMcpServers` is true); add it there and reload again.",
|
|
1364
|
+
)
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
if (result.note) lines.push(result.note)
|
|
1368
|
+
const signIn = (result.servers ?? []).filter((/** @type {any} */ server) => server.state === "needs-auth").map((/** @type {any} */ server) => server.name)
|
|
1369
|
+
if (signIn.length) lines.push(`Needs a sign-in: ${list(signIn)}. The human signs in from the plug menu beside the prompt box.`)
|
|
1370
|
+
if (result.backend === "codex") lines.push("Codex reloads every thread of this project at once.")
|
|
1371
|
+
const others = result.others
|
|
1372
|
+
if (others && others.reloaded + others.stale + others.failed > 0) {
|
|
1373
|
+
const parts = []
|
|
1374
|
+
if (others.reloaded) parts.push(`reloaded ${others.reloaded} other running ${others.reloaded === 1 ? "thread" : "threads"} of this project`)
|
|
1375
|
+
if (others.stale) parts.push(`${others.stale} more ${others.stale === 1 ? "runs a session" : "run sessions"} too old to reload, and ${others.stale === 1 ? "gets" : "get"} the change when ${others.stale === 1 ? "it next starts" : "they next start"}`)
|
|
1376
|
+
if (others.failed) parts.push(`${others.failed} could not be reloaded`)
|
|
1377
|
+
lines.push(`Also ${parts.join("; ")}.`)
|
|
1378
|
+
}
|
|
1379
|
+
return lines.join("\n")
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1196
1382
|
/** The `title` handler: register this thread's considered name.
|
|
1197
1383
|
* @param {Record<string, unknown>} args @returns {Promise<string>} */
|
|
1198
1384
|
async function title(args) {
|
|
@@ -1219,8 +1405,11 @@ async function activity() {
|
|
|
1219
1405
|
const items = Array.isArray(result?.activity) ? result.activity : []
|
|
1220
1406
|
const questions = Array.isArray(result?.questions) ? result.questions : []
|
|
1221
1407
|
const links = Array.isArray(result?.links) ? result.links : []
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1408
|
+
const worktrees = Array.isArray(result?.worktrees) ? result.worktrees : []
|
|
1409
|
+
const linksBlock = (links.length === 0 ? "" : "\n\nSaved links and files (not running work; remove with `frizzctl unlink <id>`):\n" +
|
|
1410
|
+
links.map((link) => ` ${link.id} ${link.kind}: ${link.label}\n ${link.target}`).join("\n")) +
|
|
1411
|
+
(worktrees.length === 0 ? "" : "\n\nRegistered checkouts (not running work; remove with `frizzctl worktree unregister <id>`):\n" +
|
|
1412
|
+
worktrees.map((w) => ` ${w.id} ${w.path}${w.base ? ` (measured from ${w.base})` : ""}`).join("\n"))
|
|
1224
1413
|
// THE QUESTIONS GET THEIR OWN SECTION, because they are not running work: a question waits on a
|
|
1225
1414
|
// person. Each is listed by the worker's own id (its fence's `id:`), the one `unask` takes and a
|
|
1226
1415
|
// reference fence names; a `qst_…` row `frizzctl ask` registered has no other. Since 2026-10-13 no
|
|
@@ -1871,14 +2060,15 @@ async function goal(args) {
|
|
|
1871
2060
|
)
|
|
1872
2061
|
}
|
|
1873
2062
|
|
|
1874
|
-
/** How a timer reads back to the worker: its id, when it fires, and enough of its text to tell two apart
|
|
1875
|
-
*
|
|
2063
|
+
/** How a timer reads back to the worker: its id, when it fires, and enough of its text to tell two apart —
|
|
2064
|
+
* its description when it has one, else the start of its prompt.
|
|
2065
|
+
* @param {{ id: string, fireAt: string, prompt: string, description?: string }} t */
|
|
1876
2066
|
function timerLine(t) {
|
|
1877
|
-
const words = t.prompt.replace(/\s+/g, " ").trim()
|
|
2067
|
+
const words = (t.description || t.prompt).replace(/\s+/g, " ").trim()
|
|
1878
2068
|
return ` ${t.id} — ${t.fireAt} — ${words.length > 72 ? `${words.slice(0, 72)}…` : words}`
|
|
1879
2069
|
}
|
|
1880
2070
|
|
|
1881
|
-
/** @param {{ timers?: { id: string, fireAt: string, prompt: string }[] }|null} payload */
|
|
2071
|
+
/** @param {{ timers?: { id: string, fireAt: string, prompt: string, description?: string }[] }|null} payload */
|
|
1882
2072
|
function armedList(payload) {
|
|
1883
2073
|
const timers = payload?.timers ?? []
|
|
1884
2074
|
if (!timers.length) return "No timers are armed on this thread."
|
|
@@ -1910,6 +2100,11 @@ async function timer(args) {
|
|
|
1910
2100
|
|
|
1911
2101
|
const prompt = typeof args.prompt === "string" ? args.prompt.trim() : ""
|
|
1912
2102
|
if (!prompt) throw new Error("`prompt` is required to set a timer — it is the text you will be sent when it fires")
|
|
2103
|
+
// REQUIRED HERE, OPTIONAL ON THE WIRE (2026-11-12): the prompt is written to your future self, so a row
|
|
2104
|
+
// named by it read as an instruction, not a name. A worker whose tool predates this still sets timers.
|
|
2105
|
+
const description = typeof args.description === "string" ? args.description.replace(/\s+/g, " ").trim() : ""
|
|
2106
|
+
if (!description) throw new Error("`description` is required to set a timer — what it is for in a few words (\"Re-check the staging deploy\"), the name the human sees on its row")
|
|
2107
|
+
if (description.length > 120) throw new Error(`\`description\` is ${description.length} characters — keep it to a few words, at most 120`)
|
|
1913
2108
|
|
|
1914
2109
|
// Exactly one of the two ways to name the instant. Accepting both would mean silently preferring one,
|
|
1915
2110
|
// and a worker that gave two different times meant something by each of them.
|
|
@@ -1944,7 +2139,7 @@ async function timer(args) {
|
|
|
1944
2139
|
// ONE representation crosses the wire — the exact UTC instant — so the stored row, the trailer on the
|
|
1945
2140
|
// delivered message and this reply all name the same string.
|
|
1946
2141
|
const fireAt = new Date(fireMs).toISOString()
|
|
1947
|
-
const result = (await callRpc("setOwnThreadTimer", { slug, prompt, fireAt }))?.result
|
|
2142
|
+
const result = (await callRpc("setOwnThreadTimer", { slug, prompt, description, fireAt }))?.result
|
|
1948
2143
|
const id = result?.id ?? "(unknown)"
|
|
1949
2144
|
return (
|
|
1950
2145
|
`Timer ${id} set for ${fireAt} (${Math.round((fireMs - nowMs) / 1000)}s from now). It fires ONCE and ` +
|
|
@@ -2322,7 +2517,8 @@ function armedCommandWatchList(result) {
|
|
|
2322
2517
|
const last = !w.lastRun
|
|
2323
2518
|
? "no check finished yet"
|
|
2324
2519
|
: `last check ${commandRunClause(w.lastRun)}`
|
|
2325
|
-
|
|
2520
|
+
const label = w.description ? ` "${w.description}"` : ""
|
|
2521
|
+
return ` ${w.id}${label} every ${w.every}, until ${w.expiresAt} — ${w.runs} check${w.runs === 1 ? "" : "s"}, ${last}\n $ ${w.command}`
|
|
2326
2522
|
})
|
|
2327
2523
|
return `Monitors on this thread now:\n${lines.join("\n")}`
|
|
2328
2524
|
}
|
|
@@ -2378,25 +2574,28 @@ async function monitor(args) {
|
|
|
2378
2574
|
throw new Error(`\`command\` is required — ${persistent ? "a script that keeps running and prints a line per event" : "a shell command that exits 0 once the condition holds"}`)
|
|
2379
2575
|
}
|
|
2380
2576
|
const every = typeof args.every === "string" ? args.every.trim() : ""
|
|
2381
|
-
const description = typeof args.description === "string" ? args.description.trim() : ""
|
|
2577
|
+
const description = typeof args.description === "string" ? args.description.replace(/\s+/g, " ").trim() : ""
|
|
2382
2578
|
// THE FLAG CHANGES WHAT THE COMMAND HAS TO BE, so neither shape quietly accepts the other's argument: a
|
|
2383
2579
|
// cadence on a script would read as if Frizz re-ran it, and a name on a check would go nowhere.
|
|
2384
2580
|
if (persistent && every) {
|
|
2385
2581
|
throw new Error("`every` does not go with `persistent`: a persistent monitor is one script that keeps running, not a check Frizz re-runs. Drop `every`, or drop `persistent` for a check that exits 0 once the condition holds")
|
|
2386
2582
|
}
|
|
2387
|
-
if (!persistent && description) {
|
|
2388
|
-
throw new Error("`description` goes with `persistent`: a check is named by its command. Drop `description`, or add `persistent` for a script that keeps running")
|
|
2389
|
-
}
|
|
2390
2583
|
if (!persistent && !every) {
|
|
2391
2584
|
throw new Error("`every` is required — how often to check, a DURATION like `5m` (min 1m, max 24h). A script that keeps running and wakes you on every line takes `persistent` instead")
|
|
2392
2585
|
}
|
|
2393
2586
|
const forValue = typeof args.for === "string" ? args.for.trim() : ""
|
|
2394
2587
|
if (!forValue) throw new Error("`for` is required — how long to keep it going, a DURATION like `6h` or `3d` (max 7d)")
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2588
|
+
// REQUIRED FOR BOTH SHAPES (2026-11-12). A check was named by its command until then, and a command is
|
|
2589
|
+
// not a name a human reads: `/opt/homebrew/bin/npm view frizz@0.15.54 version` says what runs, not
|
|
2590
|
+
// what is being waited for. Optional on the wire, so a worker whose tool predates this still registers.
|
|
2591
|
+
if (!description) {
|
|
2592
|
+
throw new Error(persistent
|
|
2593
|
+
? "`description` is required — what it watches in a few words (\"Errors in deploy.log\"), the name the human sees on its row"
|
|
2594
|
+
: "`description` is required — what you are waiting for in a few words (\"frizz 0.13.12 on npm\"), the name the human sees on its row")
|
|
2398
2595
|
}
|
|
2399
|
-
|
|
2596
|
+
if (description.length > 120) throw new Error(`\`description\` is ${description.length} characters — keep it to a few words, at most 120`)
|
|
2597
|
+
if (persistent) return addPersistentWatch(slug, command, forValue, description)
|
|
2598
|
+
const result = (await callRpc("addOwnCommandWatch", { slug, command, description, every, for: forValue }))?.result
|
|
2400
2599
|
// A REFUSAL is the gate doing its job, not a fault: exit 2, with the reason and the background-shell
|
|
2401
2600
|
// fallback in the server's own words.
|
|
2402
2601
|
if (result?.refused) {
|
|
@@ -2567,7 +2766,7 @@ const CLI = {
|
|
|
2567
2766
|
alias: { remove: "drop", rm: "drop", cancel: "drop" },
|
|
2568
2767
|
then: { add: ["command"], drop: ["id"] },
|
|
2569
2768
|
examples: [
|
|
2570
|
-
'frizzctl monitor add "npm view frizz@0.13.12 version" --every 5m --for 6h',
|
|
2769
|
+
'frizzctl monitor add "npm view frizz@0.13.12 version" --description "frizz 0.13.12 on npm" --every 5m --for 6h',
|
|
2571
2770
|
'frizzctl monitor add "tail -n0 -F /var/log/app.log | grep --line-buffered -E \'ERROR|FATAL\'" --persistent --description "Errors in app.log" --for 1d',
|
|
2572
2771
|
"frizzctl monitor list",
|
|
2573
2772
|
"frizzctl monitor drop cmw_ab12cd34ef56",
|
|
@@ -2586,7 +2785,7 @@ const CLI = {
|
|
|
2586
2785
|
alias: { drop: "cancel", remove: "cancel", rm: "cancel" },
|
|
2587
2786
|
then: { cancel: ["id"] },
|
|
2588
2787
|
examples: [
|
|
2589
|
-
'frizzctl timer set --in 10m --prompt "Re-check the deploy and report its status"',
|
|
2788
|
+
'frizzctl timer set --in 10m --description "Re-check the deploy" --prompt "Re-check the deploy and report its status"',
|
|
2590
2789
|
"frizzctl timer list",
|
|
2591
2790
|
"frizzctl timer cancel tmr_a1b2c3d4e5f6",
|
|
2592
2791
|
],
|
|
@@ -2620,6 +2819,25 @@ const CLI = {
|
|
|
2620
2819
|
positional: ["id"],
|
|
2621
2820
|
examples: ["frizzctl unlink lnk_ab12cd34"],
|
|
2622
2821
|
},
|
|
2822
|
+
worktree: {
|
|
2823
|
+
group: "This thread",
|
|
2824
|
+
summary: "Register a checkout you work in, so the rail shows what changed in it",
|
|
2825
|
+
positional: ["action"],
|
|
2826
|
+
alias: { drop: "unregister", remove: "unregister", rm: "unregister", forget: "unregister" },
|
|
2827
|
+
then: { register: ["path"], unregister: ["target"] },
|
|
2828
|
+
examples: [
|
|
2829
|
+
"frizzctl worktree register /abs/path/to/checkout",
|
|
2830
|
+
"frizzctl worktree register ../app-fix-login --base main",
|
|
2831
|
+
"frizzctl worktree list",
|
|
2832
|
+
"frizzctl worktree unregister wtr_ab12cd34ef56",
|
|
2833
|
+
],
|
|
2834
|
+
},
|
|
2835
|
+
mcp: {
|
|
2836
|
+
group: "This thread",
|
|
2837
|
+
summary: "Reload the project's MCP servers into this thread after editing their config",
|
|
2838
|
+
positional: ["action"],
|
|
2839
|
+
examples: ["frizzctl mcp reload"],
|
|
2840
|
+
},
|
|
2623
2841
|
threads: {
|
|
2624
2842
|
group: "Other threads",
|
|
2625
2843
|
summary: "List a project's threads: each one's slug, title and where it sits on the board",
|
|
@@ -2655,4 +2873,4 @@ const CLI = {
|
|
|
2655
2873
|
},
|
|
2656
2874
|
}
|
|
2657
2875
|
|
|
2658
|
-
export { TOOLS, HANDLERS, CLI, Refused, ServerRefusal, doneOpenQuestionsRefusal }
|
|
2876
|
+
export { TOOLS, HANDLERS, CLI, Refused, ServerRefusal, doneOpenQuestionsRefusal, mcpReloadReport }
|
package/web-dist/assets/{abnfDiagram-VCTEODGH-C5-n-yX3.js → abnfDiagram-VCTEODGH-C1TlrQDU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e,t}from"./mermaid-parser.core-
|
|
1
|
+
import{m as e,t}from"./mermaid-parser.core-DUMJfMC4.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-C4XfhTaE.js";import"./chunk-DU6HZSFF-CjRSq8jX.js";import"./chunk-CLGD4ZFX-BMyHKQIB.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-DuksI_1N.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-FOHPRMQF-CyTuVbu3.js";import{M as e}from"./mermaid-parser.core-DUMJfMC4.js";export{e as createArchitectureServices};
|