frizz-server 0.15.52 → 0.15.54
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 +21427 -19954
- package/dist/dev-child.js +21330 -19781
- package/package.json +1 -1
- package/runtime/cc-worker/lib/frizz-tools.mjs +138 -26
- package/web-dist/assets/{abnfDiagram-VCTEODGH-DiSjUTD1.js → abnfDiagram-VCTEODGH-60tR6m6W.js} +1 -1
- package/web-dist/assets/architecture-7GRP2DOG-Sz6NSKcw.js +1 -0
- package/web-dist/assets/{architectureDiagram-5GKGNRK7-I0TjaMyJ.js → architectureDiagram-5GKGNRK7-BkVtlnlf.js} +1 -1
- package/web-dist/assets/{blockDiagram-I7D4REHJ-XB2-cEOS.js → blockDiagram-I7D4REHJ-DlYmcXj7.js} +1 -1
- package/web-dist/assets/{c4Diagram-7LVT6UL2-DtSoQNFw.js → c4Diagram-7LVT6UL2-BVkk1o2q.js} +1 -1
- package/web-dist/assets/channel-CHoDmp0D.js +1 -0
- package/web-dist/assets/{chunk-2E4U76K2-B-wkZcpD.js → chunk-2E4U76K2-CQayNXdN.js} +1 -1
- package/web-dist/assets/{chunk-4HAMMTFA-DWlXC__7.js → chunk-4HAMMTFA-BQfSiIk8.js} +1 -1
- package/web-dist/assets/{chunk-75Z2AOVW-B8ME16qz.js → chunk-75Z2AOVW-CVYDSc2i.js} +1 -1
- package/web-dist/assets/{chunk-CLGD4ZFX-DgSrSm54.js → chunk-CLGD4ZFX-kiC8BECf.js} +1 -1
- package/web-dist/assets/{chunk-DU6HZSFF-CKILAkFG.js → chunk-DU6HZSFF-Dh3eMNB1.js} +1 -1
- package/web-dist/assets/{chunk-F27PBJKO-B_8M_0Rl.js → chunk-F27PBJKO-Cgk_e8Qp.js} +1 -1
- package/web-dist/assets/{chunk-GMAD6QVW-UnCsWXAs.js → chunk-GMAD6QVW-CfPQYPSy.js} +1 -1
- package/web-dist/assets/{chunk-GVQU2GXP-DC9Elw0X.js → chunk-GVQU2GXP--AyZ3Hdp.js} +1 -1
- package/web-dist/assets/{chunk-IMKFNOWR-wpPy-2NT.js → chunk-IMKFNOWR-BvmF4pSb.js} +1 -1
- package/web-dist/assets/{chunk-L3NEJ4N5-BMMh5yw5.js → chunk-L3NEJ4N5-0CEQDQlt.js} +1 -1
- package/web-dist/assets/{chunk-OSK3NFVY-CsTV5TtL.js → chunk-OSK3NFVY-BGQx5cpJ.js} +1 -1
- package/web-dist/assets/{chunk-P2QGCYS3-D3dlUq-V.js → chunk-P2QGCYS3-DjK4Ukle.js} +1 -1
- package/web-dist/assets/{chunk-POPQ4Y6H-BvI7-pFd.js → chunk-POPQ4Y6H-CnKzeNvL.js} +1 -1
- package/web-dist/assets/{chunk-PWAF6VOD-RqbILfUC.js → chunk-PWAF6VOD-jccWzZMG.js} +1 -1
- package/web-dist/assets/{chunk-SHT3W25Y-OWaxTLwc.js → chunk-SHT3W25Y-RB6wBqMi.js} +1 -1
- package/web-dist/assets/{chunk-SVP7TREG-DGAeAXgv.js → chunk-SVP7TREG-fbiX-oy5.js} +1 -1
- package/web-dist/assets/{chunk-TICWLB2K-CsSqwjw1.js → chunk-TICWLB2K-C7_LnR8U.js} +1 -1
- package/web-dist/assets/{chunk-TLUHSLCS-C9oqWUOB.js → chunk-TLUHSLCS-joZSA-Su.js} +2 -2
- package/web-dist/assets/classDiagram-ZZMXUADV-BwC8qzol.js +1 -0
- package/web-dist/assets/classDiagram-v2-VYDZK3BY-BwC8qzol.js +1 -0
- package/web-dist/assets/{cynefin-OW5HDTMX-BG_ktheh.js → cynefin-OW5HDTMX-DbrlwUVr.js} +1 -1
- package/web-dist/assets/{cynefinDiagram-5FMLGOSQ-DNxe0xQs.js → cynefinDiagram-5FMLGOSQ-B2CvZXjU.js} +1 -1
- package/web-dist/assets/{dagre-GXQ25YYZ-5rLGzKH4.js → dagre-GXQ25YYZ-CYJutr3h.js} +1 -1
- package/web-dist/assets/{diagram-S7CK7UJ4-ink8IARk.js → diagram-S7CK7UJ4-ClJgtc_A.js} +1 -1
- package/web-dist/assets/{diagram-UQ7AKVKN-CER8u9ua.js → diagram-UQ7AKVKN-Dzzc2AV8.js} +1 -1
- package/web-dist/assets/{diagram-VSXAHHWV-BWxvx-RY.js → diagram-VSXAHHWV-BQjCeD1w.js} +1 -1
- package/web-dist/assets/{diagram-VX7I27RA-CJ1Zu00i.js → diagram-VX7I27RA-DBSk4ezX.js} +1 -1
- package/web-dist/assets/{diagram-Z3DM3KII-Co7zWuGs.js → diagram-Z3DM3KII-BzJWxRO-.js} +1 -1
- package/web-dist/assets/{ebnfDiagram-PWID7BFC-nrejbQbC.js → ebnfDiagram-PWID7BFC-Ilj46-1V.js} +1 -1
- package/web-dist/assets/{erDiagram-RLTQ6QDP-C6CKKxxF.js → erDiagram-RLTQ6QDP-Bz16i8Le.js} +1 -1
- package/web-dist/assets/eventmodeling-NTZA5JFV-DYqgZFXg.js +1 -0
- package/web-dist/assets/flowDiagram-HODETNUW-DPm1z06j.js +1 -0
- package/web-dist/assets/{ganttDiagram-EL5Y4UJY-Dncm7cLz.js → ganttDiagram-EL5Y4UJY-B45cswyo.js} +1 -1
- package/web-dist/assets/{gitGraph-4MIJSDKK-CvKEiD2o.js → gitGraph-4MIJSDKK-CSyOk207.js} +1 -1
- package/web-dist/assets/{gitGraphDiagram-WWUBYQGX-CFYEFiNn.js → gitGraphDiagram-WWUBYQGX-DTfJYE88.js} +1 -1
- package/web-dist/assets/{index-BRMjhxrd.js → index-B7C7zwGI.js} +47 -47
- package/web-dist/assets/index-BNn8gDgZ.css +2 -0
- package/web-dist/assets/{info-A6RAGUB7-CC2XUtgl.js → info-A6RAGUB7-BxgC--z3.js} +1 -1
- package/web-dist/assets/{infoDiagram-27XIBGKW-C1uS_G88.js → infoDiagram-27XIBGKW-BhJxPw0d.js} +1 -1
- package/web-dist/assets/{ishikawaDiagram-5VMMS53U-BZb69j5E.js → ishikawaDiagram-5VMMS53U-B4uOoNl6.js} +1 -1
- package/web-dist/assets/{journeyDiagram-3NMN7TZE-CMylE70d.js → journeyDiagram-3NMN7TZE-E1cpX8Zh.js} +1 -1
- package/web-dist/assets/{kanban-definition-UXKFOSKX-CHEOsGED.js → kanban-definition-UXKFOSKX-CLCqGZaO.js} +1 -1
- package/web-dist/assets/{line-BsjU0-dp.js → line-D4YOxj2A.js} +1 -1
- package/web-dist/assets/{mermaid-parser.core-BKAVaI1u.js → mermaid-parser.core-CI_hCipX.js} +3 -3
- package/web-dist/assets/{mermaid.core-B9-DVS7z.js → mermaid.core-TBRjJPdU.js} +3 -3
- package/web-dist/assets/{mindmap-definition-YA3MSWOX-DZRcUVDr.js → mindmap-definition-YA3MSWOX-C8dMFTze.js} +1 -1
- package/web-dist/assets/{packet-AYTQ26CC-BLeUhLlU.js → packet-AYTQ26CC-wiotbGtO.js} +1 -1
- package/web-dist/assets/{pegDiagram-XKGWAZYB-Xyqkee6_.js → pegDiagram-XKGWAZYB-C3hPCxJN.js} +1 -1
- package/web-dist/assets/{pie-WAS4IAKB-D4o5BTS4.js → pie-WAS4IAKB-mMmNlgxH.js} +1 -1
- package/web-dist/assets/{pieDiagram-E7YTZNPT-DCvmLOew.js → pieDiagram-E7YTZNPT-_BZAqwG7.js} +1 -1
- package/web-dist/assets/{quadrantDiagram-AXDQQJYC-DOJ_yQix.js → quadrantDiagram-AXDQQJYC-D4D56jhg.js} +1 -1
- package/web-dist/assets/{radar-RG4KPBEZ-K-A12o39.js → radar-RG4KPBEZ-lBxKtBg1.js} +1 -1
- package/web-dist/assets/{railroad-74A4TZTK-BMkfFovv.js → railroad-74A4TZTK-CsSd3VR4.js} +1 -1
- package/web-dist/assets/railroad-abnf-HS5TGJTU-Dm55RVIf.js +1 -0
- package/web-dist/assets/railroad-ebnf-LZEXJU2U-BWb5OekZ.js +1 -0
- package/web-dist/assets/railroad-peg-WCYAUIDC-ZMHpjeRF.js +1 -0
- package/web-dist/assets/{railroadDiagram-O6MQD6OU-DT4trHKC.js → railroadDiagram-O6MQD6OU-Th6g174U.js} +1 -1
- package/web-dist/assets/{requirementDiagram-BXWQKSXE-CGM4uxvA.js → requirementDiagram-BXWQKSXE-D7pxtmmL.js} +1 -1
- package/web-dist/assets/{sankeyDiagram-P5KCCOFB-DS3oAp2M.js → sankeyDiagram-P5KCCOFB-p5SoQoVY.js} +1 -1
- package/web-dist/assets/{sequenceDiagram-WJ2MYXX4-UD3omQ5N.js → sequenceDiagram-WJ2MYXX4-oNRTLIdc.js} +1 -1
- package/web-dist/assets/{stateDiagram-D77RDMKH-DONM7MNf.js → stateDiagram-D77RDMKH-DI9DxX4Y.js} +1 -1
- package/web-dist/assets/stateDiagram-v2-MP3YSRHH-BqIm-gME.js +1 -0
- package/web-dist/assets/{swimlanes-42K2YHIH-D33RTQxF.js → swimlanes-42K2YHIH-DEQbdCsz.js} +1 -1
- package/web-dist/assets/swimlanesDiagram-VR7AAH4N-BrTbasxm.js +8 -0
- package/web-dist/assets/threadSurfaces-Bmm69aB4.js +145 -0
- package/web-dist/assets/{timeline-definition-24CTP7MA-DPFThVi8.js → timeline-definition-24CTP7MA-CkfRsc_R.js} +1 -1
- package/web-dist/assets/{treeView-Q6P3EWNA-BV49dnms.js → treeView-Q6P3EWNA-DqoctESh.js} +1 -1
- package/web-dist/assets/{treemap-WGGIJYW6-BVrEvhvK.js → treemap-WGGIJYW6-mTc2J0pl.js} +1 -1
- package/web-dist/assets/{vennDiagram-4TSXK5OY-W5Uk1TBS.js → vennDiagram-4TSXK5OY-BmfPoTOH.js} +1 -1
- package/web-dist/assets/{wardley-WFR3VGLG-CblJtHHu.js → wardley-WFR3VGLG-BBPuwAzz.js} +1 -1
- package/web-dist/assets/{wardleyDiagram-VM6X3IG4-CGarvkjP.js → wardleyDiagram-VM6X3IG4-xFLi_TZH.js} +1 -1
- package/web-dist/assets/{xychartDiagram-S5SC5T6Z-CK45_7ZH.js → xychartDiagram-S5SC5T6Z-BK53kLG3.js} +1 -1
- package/web-dist/index.html +2 -2
- package/web-dist/assets/architecture-7GRP2DOG-BYgmFD1v.js +0 -1
- package/web-dist/assets/channel-DWuOn0MA.js +0 -1
- package/web-dist/assets/classDiagram-ZZMXUADV-DSspmFZn.js +0 -1
- package/web-dist/assets/classDiagram-v2-VYDZK3BY-DSspmFZn.js +0 -1
- package/web-dist/assets/eventmodeling-NTZA5JFV-BSYbQdT6.js +0 -1
- package/web-dist/assets/flowDiagram-HODETNUW-DlmV6Aj2.js +0 -1
- package/web-dist/assets/index-C2agpmfX.css +0 -2
- package/web-dist/assets/railroad-abnf-HS5TGJTU-CY-xG4Um.js +0 -1
- package/web-dist/assets/railroad-ebnf-LZEXJU2U-DOHo_q0W.js +0 -1
- package/web-dist/assets/railroad-peg-WCYAUIDC-LeJLBEXF.js +0 -1
- package/web-dist/assets/stateDiagram-v2-MP3YSRHH-DzVzPXHZ.js +0 -1
- package/web-dist/assets/swimlanesDiagram-VR7AAH4N-BXcjoK_e.js +0 -8
- package/web-dist/assets/threadSurfaces-ClAzSMCV.js +0 -143
package/package.json
CHANGED
|
@@ -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.
|
|
@@ -833,7 +873,7 @@ const UNLINK = {
|
|
|
833
873
|
const WATCH_COMMAND_RETIRED =
|
|
834
874
|
"NOT registered — `frizzctl watch-command` is retired (2026-11-06), and nothing was armed or dropped. It is " +
|
|
835
875
|
"`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" +
|
|
876
|
+
" frizzctl monitor add \"<check that exits 0 once it holds>\" --description \"<what it waits for>\" --every 5m --for 6h\n" +
|
|
837
877
|
" frizzctl monitor add \"<script>\" --persistent --description \"<what it watches>\" --for 1d\n" +
|
|
838
878
|
" frizzctl monitor list\n" +
|
|
839
879
|
" frizzctl monitor drop <id>\n\n" +
|
|
@@ -869,8 +909,8 @@ const MONITOR = {
|
|
|
869
909
|
"settles it.\n\n" +
|
|
870
910
|
"WITH `--persistent`, A SCRIPT THAT WAKES YOU ON EVERY LINE. Give it a script that keeps running and " +
|
|
871
911
|
"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
|
-
"
|
|
912
|
+
"loop that prints each new row a query returns, a listener on a socket — with no `--every`. Register " +
|
|
913
|
+
"once, woken many times. Claude Code's own Monitor tool lives in your session, pins " +
|
|
874
914
|
"your process tree while it runs, and dies with it; this does none of that. A pull request or an issue " +
|
|
875
915
|
"needs neither shape: `watch-pr` and `watch-issue` already wake you on each comment, review and check.\n\n" +
|
|
876
916
|
"ITS STDOUT IS THE EVENT STREAM. Lines printed within 200ms of each other are one event; blank lines are " +
|
|
@@ -888,6 +928,9 @@ const MONITOR = {
|
|
|
888
928
|
"It ends when the script exits (you are woken once with the exit code and its last output), when " +
|
|
889
929
|
"`--for` runs out, or when you drop it. A poll loop that should stop on a known end — a CI run " +
|
|
890
930
|
"finishing — exits itself.\n\n" +
|
|
931
|
+
"BOTH TAKE A `--description`: what you are waiting for or watching, in a few words, sentence case " +
|
|
932
|
+
"(\"frizz 0.13.12 on npm\", \"Errors in app.log\"). It is the name the human sees on the monitor's row and " +
|
|
933
|
+
"as its drawer's title — the command is shown under it, never instead of it.\n\n" +
|
|
891
934
|
"BOTH RUN ON THE SERVER, NOT IN YOUR SHELL: `/bin/sh -c` in the project root, with the server's " +
|
|
892
935
|
"environment and PATH, stdin closed. Nothing your session exported, no aliases, no functions; use " +
|
|
893
936
|
"absolute paths.\n\n" +
|
|
@@ -934,14 +977,15 @@ const MONITOR = {
|
|
|
934
977
|
type: "boolean",
|
|
935
978
|
description:
|
|
936
979
|
"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
|
|
980
|
+
"re-running it until it exits 0. Takes no `--every`.",
|
|
938
981
|
},
|
|
939
982
|
description: {
|
|
940
983
|
type: "string",
|
|
941
984
|
description:
|
|
942
|
-
"Required
|
|
943
|
-
"case (\"
|
|
944
|
-
"and its drawer, and the label on every wake. Never the
|
|
985
|
+
"Required for `add`, with or without `--persistent`. What it waits for or watches, in a few words, " +
|
|
986
|
+
"sentence case (\"frizz 0.13.12 on npm\", \"Errors in deploy.log\"): the name the human sees on its " +
|
|
987
|
+
"row and its drawer, and the label on a persistent monitor's every wake. Never the command itself. " +
|
|
988
|
+
"One line, at most 120 characters.",
|
|
945
989
|
},
|
|
946
990
|
id: {
|
|
947
991
|
type: "string",
|
|
@@ -997,7 +1041,7 @@ const THREADS = {
|
|
|
997
1041
|
// WATCH_ISSUE rides at the END (2026-09-14), and SECRET, STEER, WATCH_COMMAND, MONITOR and THREADS after it: the tool list is
|
|
998
1042
|
// 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
1043
|
// 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]
|
|
1044
|
+
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]
|
|
1001
1045
|
|
|
1002
1046
|
/** @type {Record<string, (args: Record<string, unknown>) => Promise<string>>} */
|
|
1003
1047
|
const HANDLERS = {
|
|
@@ -1017,6 +1061,7 @@ const HANDLERS = {
|
|
|
1017
1061
|
[ACTIVITY.name]: activity,
|
|
1018
1062
|
[LINK.name]: link,
|
|
1019
1063
|
[UNLINK.name]: unlink,
|
|
1064
|
+
[MCP.name]: mcp,
|
|
1020
1065
|
[STEER.name]: steer,
|
|
1021
1066
|
[WATCH_COMMAND.name]: watchCommand,
|
|
1022
1067
|
[MONITOR.name]: monitor,
|
|
@@ -1193,6 +1238,57 @@ async function unlink(args) {
|
|
|
1193
1238
|
return result?.dropped ? `Removed registration ${id}. No file was deleted and no server was stopped.` : `No registration ${id} on this thread.`
|
|
1194
1239
|
}
|
|
1195
1240
|
|
|
1241
|
+
/** The `mcp` handler: `frizzctl mcp reload`.
|
|
1242
|
+
* @param {Record<string, unknown>} args @returns {Promise<string>} */
|
|
1243
|
+
async function mcp(args) {
|
|
1244
|
+
const action = typeof args.action === "string" ? args.action.trim().toLowerCase() : ""
|
|
1245
|
+
if (action !== "reload") throw new Error("the one action is `reload`: `frizzctl mcp reload`")
|
|
1246
|
+
const result = (await callRpc("mcpReload", { slug: threadSlug() }))?.result
|
|
1247
|
+
return mcpReloadReport(result)
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/** What a reload changed, as the worker reads it. Exported for its test.
|
|
1251
|
+
* @param {any} result @returns {string} */
|
|
1252
|
+
function mcpReloadReport(result) {
|
|
1253
|
+
if (!result) throw new Error("Frizz did not answer the reload")
|
|
1254
|
+
if (!result.supported) return `${result.agent} has no MCP reload, so nothing was reloaded.`
|
|
1255
|
+
const lines = []
|
|
1256
|
+
const change = result.thread
|
|
1257
|
+
const list = (/** @type {string[]} */ names) => names.map((name) => `\`${name}\``).join(", ")
|
|
1258
|
+
if (change) {
|
|
1259
|
+
const moved = change.added.length + change.changed.length + change.removed.length
|
|
1260
|
+
if (moved === 0 && Object.keys(change.errors).length === 0) {
|
|
1261
|
+
lines.push(`Nothing changed: this thread already has the project's MCP servers as they read now (${change.unchanged} unchanged).`)
|
|
1262
|
+
} else {
|
|
1263
|
+
lines.push("Reloaded this thread's MCP servers from the project's configuration.")
|
|
1264
|
+
if (change.added.length) lines.push(`Added: ${list(change.added)}`)
|
|
1265
|
+
if (change.changed.length) lines.push(`Changed, so restarted: ${list(change.changed)}`)
|
|
1266
|
+
if (change.removed.length) lines.push(`Removed: ${list(change.removed)}`)
|
|
1267
|
+
if (change.unchanged) lines.push(`Unchanged: ${change.unchanged}`)
|
|
1268
|
+
}
|
|
1269
|
+
for (const [name, error] of Object.entries(change.errors)) lines.push(`Failed to connect: \`${name}\`: ${error}`)
|
|
1270
|
+
if (change.unapproved.length) {
|
|
1271
|
+
lines.push(
|
|
1272
|
+
`Not loaded, because nothing approves it: ${list(change.unapproved)}. A \`.mcp.json\` server loads once its name is in ` +
|
|
1273
|
+
"`enabledMcpjsonServers` in `.claude/settings.local.json` (or `enableAllProjectMcpServers` is true); add it there and reload again.",
|
|
1274
|
+
)
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
if (result.note) lines.push(result.note)
|
|
1278
|
+
const signIn = (result.servers ?? []).filter((/** @type {any} */ server) => server.state === "needs-auth").map((/** @type {any} */ server) => server.name)
|
|
1279
|
+
if (signIn.length) lines.push(`Needs a sign-in: ${list(signIn)}. The human signs in from the plug menu beside the prompt box.`)
|
|
1280
|
+
if (result.backend === "codex") lines.push("Codex reloads every thread of this project at once.")
|
|
1281
|
+
const others = result.others
|
|
1282
|
+
if (others && others.reloaded + others.stale + others.failed > 0) {
|
|
1283
|
+
const parts = []
|
|
1284
|
+
if (others.reloaded) parts.push(`reloaded ${others.reloaded} other running ${others.reloaded === 1 ? "thread" : "threads"} of this project`)
|
|
1285
|
+
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"}`)
|
|
1286
|
+
if (others.failed) parts.push(`${others.failed} could not be reloaded`)
|
|
1287
|
+
lines.push(`Also ${parts.join("; ")}.`)
|
|
1288
|
+
}
|
|
1289
|
+
return lines.join("\n")
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1196
1292
|
/** The `title` handler: register this thread's considered name.
|
|
1197
1293
|
* @param {Record<string, unknown>} args @returns {Promise<string>} */
|
|
1198
1294
|
async function title(args) {
|
|
@@ -1871,14 +1967,15 @@ async function goal(args) {
|
|
|
1871
1967
|
)
|
|
1872
1968
|
}
|
|
1873
1969
|
|
|
1874
|
-
/** How a timer reads back to the worker: its id, when it fires, and enough of its text to tell two apart
|
|
1875
|
-
*
|
|
1970
|
+
/** How a timer reads back to the worker: its id, when it fires, and enough of its text to tell two apart —
|
|
1971
|
+
* its description when it has one, else the start of its prompt.
|
|
1972
|
+
* @param {{ id: string, fireAt: string, prompt: string, description?: string }} t */
|
|
1876
1973
|
function timerLine(t) {
|
|
1877
|
-
const words = t.prompt.replace(/\s+/g, " ").trim()
|
|
1974
|
+
const words = (t.description || t.prompt).replace(/\s+/g, " ").trim()
|
|
1878
1975
|
return ` ${t.id} — ${t.fireAt} — ${words.length > 72 ? `${words.slice(0, 72)}…` : words}`
|
|
1879
1976
|
}
|
|
1880
1977
|
|
|
1881
|
-
/** @param {{ timers?: { id: string, fireAt: string, prompt: string }[] }|null} payload */
|
|
1978
|
+
/** @param {{ timers?: { id: string, fireAt: string, prompt: string, description?: string }[] }|null} payload */
|
|
1882
1979
|
function armedList(payload) {
|
|
1883
1980
|
const timers = payload?.timers ?? []
|
|
1884
1981
|
if (!timers.length) return "No timers are armed on this thread."
|
|
@@ -1910,6 +2007,11 @@ async function timer(args) {
|
|
|
1910
2007
|
|
|
1911
2008
|
const prompt = typeof args.prompt === "string" ? args.prompt.trim() : ""
|
|
1912
2009
|
if (!prompt) throw new Error("`prompt` is required to set a timer — it is the text you will be sent when it fires")
|
|
2010
|
+
// REQUIRED HERE, OPTIONAL ON THE WIRE (2026-11-12): the prompt is written to your future self, so a row
|
|
2011
|
+
// named by it read as an instruction, not a name. A worker whose tool predates this still sets timers.
|
|
2012
|
+
const description = typeof args.description === "string" ? args.description.replace(/\s+/g, " ").trim() : ""
|
|
2013
|
+
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")
|
|
2014
|
+
if (description.length > 120) throw new Error(`\`description\` is ${description.length} characters — keep it to a few words, at most 120`)
|
|
1913
2015
|
|
|
1914
2016
|
// Exactly one of the two ways to name the instant. Accepting both would mean silently preferring one,
|
|
1915
2017
|
// and a worker that gave two different times meant something by each of them.
|
|
@@ -1944,7 +2046,7 @@ async function timer(args) {
|
|
|
1944
2046
|
// ONE representation crosses the wire — the exact UTC instant — so the stored row, the trailer on the
|
|
1945
2047
|
// delivered message and this reply all name the same string.
|
|
1946
2048
|
const fireAt = new Date(fireMs).toISOString()
|
|
1947
|
-
const result = (await callRpc("setOwnThreadTimer", { slug, prompt, fireAt }))?.result
|
|
2049
|
+
const result = (await callRpc("setOwnThreadTimer", { slug, prompt, description, fireAt }))?.result
|
|
1948
2050
|
const id = result?.id ?? "(unknown)"
|
|
1949
2051
|
return (
|
|
1950
2052
|
`Timer ${id} set for ${fireAt} (${Math.round((fireMs - nowMs) / 1000)}s from now). It fires ONCE and ` +
|
|
@@ -2322,7 +2424,8 @@ function armedCommandWatchList(result) {
|
|
|
2322
2424
|
const last = !w.lastRun
|
|
2323
2425
|
? "no check finished yet"
|
|
2324
2426
|
: `last check ${commandRunClause(w.lastRun)}`
|
|
2325
|
-
|
|
2427
|
+
const label = w.description ? ` "${w.description}"` : ""
|
|
2428
|
+
return ` ${w.id}${label} every ${w.every}, until ${w.expiresAt} — ${w.runs} check${w.runs === 1 ? "" : "s"}, ${last}\n $ ${w.command}`
|
|
2326
2429
|
})
|
|
2327
2430
|
return `Monitors on this thread now:\n${lines.join("\n")}`
|
|
2328
2431
|
}
|
|
@@ -2378,25 +2481,28 @@ async function monitor(args) {
|
|
|
2378
2481
|
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
2482
|
}
|
|
2380
2483
|
const every = typeof args.every === "string" ? args.every.trim() : ""
|
|
2381
|
-
const description = typeof args.description === "string" ? args.description.trim() : ""
|
|
2484
|
+
const description = typeof args.description === "string" ? args.description.replace(/\s+/g, " ").trim() : ""
|
|
2382
2485
|
// THE FLAG CHANGES WHAT THE COMMAND HAS TO BE, so neither shape quietly accepts the other's argument: a
|
|
2383
2486
|
// cadence on a script would read as if Frizz re-ran it, and a name on a check would go nowhere.
|
|
2384
2487
|
if (persistent && every) {
|
|
2385
2488
|
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
2489
|
}
|
|
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
2490
|
if (!persistent && !every) {
|
|
2391
2491
|
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
2492
|
}
|
|
2393
2493
|
const forValue = typeof args.for === "string" ? args.for.trim() : ""
|
|
2394
2494
|
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
|
-
|
|
2495
|
+
// REQUIRED FOR BOTH SHAPES (2026-11-12). A check was named by its command until then, and a command is
|
|
2496
|
+
// not a name a human reads: `/opt/homebrew/bin/npm view frizz@0.15.54 version` says what runs, not
|
|
2497
|
+
// what is being waited for. Optional on the wire, so a worker whose tool predates this still registers.
|
|
2498
|
+
if (!description) {
|
|
2499
|
+
throw new Error(persistent
|
|
2500
|
+
? "`description` is required — what it watches in a few words (\"Errors in deploy.log\"), the name the human sees on its row"
|
|
2501
|
+
: "`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
2502
|
}
|
|
2399
|
-
|
|
2503
|
+
if (description.length > 120) throw new Error(`\`description\` is ${description.length} characters — keep it to a few words, at most 120`)
|
|
2504
|
+
if (persistent) return addPersistentWatch(slug, command, forValue, description)
|
|
2505
|
+
const result = (await callRpc("addOwnCommandWatch", { slug, command, description, every, for: forValue }))?.result
|
|
2400
2506
|
// A REFUSAL is the gate doing its job, not a fault: exit 2, with the reason and the background-shell
|
|
2401
2507
|
// fallback in the server's own words.
|
|
2402
2508
|
if (result?.refused) {
|
|
@@ -2567,7 +2673,7 @@ const CLI = {
|
|
|
2567
2673
|
alias: { remove: "drop", rm: "drop", cancel: "drop" },
|
|
2568
2674
|
then: { add: ["command"], drop: ["id"] },
|
|
2569
2675
|
examples: [
|
|
2570
|
-
'frizzctl monitor add "npm view frizz@0.13.12 version" --every 5m --for 6h',
|
|
2676
|
+
'frizzctl monitor add "npm view frizz@0.13.12 version" --description "frizz 0.13.12 on npm" --every 5m --for 6h',
|
|
2571
2677
|
'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
2678
|
"frizzctl monitor list",
|
|
2573
2679
|
"frizzctl monitor drop cmw_ab12cd34ef56",
|
|
@@ -2586,7 +2692,7 @@ const CLI = {
|
|
|
2586
2692
|
alias: { drop: "cancel", remove: "cancel", rm: "cancel" },
|
|
2587
2693
|
then: { cancel: ["id"] },
|
|
2588
2694
|
examples: [
|
|
2589
|
-
'frizzctl timer set --in 10m --prompt "Re-check the deploy and report its status"',
|
|
2695
|
+
'frizzctl timer set --in 10m --description "Re-check the deploy" --prompt "Re-check the deploy and report its status"',
|
|
2590
2696
|
"frizzctl timer list",
|
|
2591
2697
|
"frizzctl timer cancel tmr_a1b2c3d4e5f6",
|
|
2592
2698
|
],
|
|
@@ -2620,6 +2726,12 @@ const CLI = {
|
|
|
2620
2726
|
positional: ["id"],
|
|
2621
2727
|
examples: ["frizzctl unlink lnk_ab12cd34"],
|
|
2622
2728
|
},
|
|
2729
|
+
mcp: {
|
|
2730
|
+
group: "This thread",
|
|
2731
|
+
summary: "Reload the project's MCP servers into this thread after editing their config",
|
|
2732
|
+
positional: ["action"],
|
|
2733
|
+
examples: ["frizzctl mcp reload"],
|
|
2734
|
+
},
|
|
2623
2735
|
threads: {
|
|
2624
2736
|
group: "Other threads",
|
|
2625
2737
|
summary: "List a project's threads: each one's slug, title and where it sits on the board",
|
|
@@ -2655,4 +2767,4 @@ const CLI = {
|
|
|
2655
2767
|
},
|
|
2656
2768
|
}
|
|
2657
2769
|
|
|
2658
|
-
export { TOOLS, HANDLERS, CLI, Refused, ServerRefusal, doneOpenQuestionsRefusal }
|
|
2770
|
+
export { TOOLS, HANDLERS, CLI, Refused, ServerRefusal, doneOpenQuestionsRefusal, mcpReloadReport }
|
package/web-dist/assets/{abnfDiagram-VCTEODGH-DiSjUTD1.js → abnfDiagram-VCTEODGH-60tR6m6W.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e,t}from"./mermaid-parser.core-
|
|
1
|
+
import{m as e,t}from"./mermaid-parser.core-CI_hCipX.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-C4XfhTaE.js";import"./chunk-DU6HZSFF-Dh3eMNB1.js";import"./chunk-CLGD4ZFX-kiC8BECf.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-fbiX-oy5.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-CI_hCipX.js";export{e as createArchitectureServices};
|