frizz-server 0.15.68 → 0.15.70
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 +11843 -11817
- package/dist/dev-child.js +12444 -11707
- package/package.json +1 -1
- package/runtime/cc-worker/bin/frizzctl.mjs +11 -1
- package/runtime/cc-worker/lib/frizz-tools.mjs +30 -6
- package/web-dist/assets/{abnfDiagram-VCTEODGH-DCqo8On5.js → abnfDiagram-VCTEODGH-4VJppamx.js} +1 -1
- package/web-dist/assets/architecture-7GRP2DOG-Ch9InA2-.js +1 -0
- package/web-dist/assets/{architectureDiagram-5GKGNRK7-FIDocTrZ.js → architectureDiagram-5GKGNRK7-DJDcRa5f.js} +1 -1
- package/web-dist/assets/{blockDiagram-I7D4REHJ-DQnnOnQk.js → blockDiagram-I7D4REHJ-CeUS0H5D.js} +1 -1
- package/web-dist/assets/{c4Diagram-7LVT6UL2-CowK5GWL.js → c4Diagram-7LVT6UL2-B0t3s8ht.js} +1 -1
- package/web-dist/assets/channel-jLH1X_ah.js +1 -0
- package/web-dist/assets/{chunk-2E4U76K2-D4vcVpT1.js → chunk-2E4U76K2-CHPofbUw.js} +1 -1
- package/web-dist/assets/{chunk-4HAMMTFA-DlUfbQM6.js → chunk-4HAMMTFA-Cg2lMaqE.js} +1 -1
- package/web-dist/assets/{chunk-75Z2AOVW-BQFWSaMo.js → chunk-75Z2AOVW-B68Toki3.js} +1 -1
- package/web-dist/assets/{chunk-CLGD4ZFX-CikE4ex0.js → chunk-CLGD4ZFX-DcN9-Cum.js} +1 -1
- package/web-dist/assets/{chunk-DU6HZSFF-4lI_4qBt.js → chunk-DU6HZSFF-CMFr-xeU.js} +1 -1
- package/web-dist/assets/{chunk-F27PBJKO-DjY3FZ7G.js → chunk-F27PBJKO-D9uyvduU.js} +1 -1
- package/web-dist/assets/{chunk-GMAD6QVW-CVsWTPhv.js → chunk-GMAD6QVW-VhgDuvSm.js} +1 -1
- package/web-dist/assets/{chunk-GVQU2GXP-1sdApCbS.js → chunk-GVQU2GXP-BRKZc_Dz.js} +1 -1
- package/web-dist/assets/{chunk-IMKFNOWR-B2OROozN.js → chunk-IMKFNOWR-7nLKwfj6.js} +1 -1
- package/web-dist/assets/{chunk-L3NEJ4N5-Yvod7sad.js → chunk-L3NEJ4N5-PjySUrpE.js} +1 -1
- package/web-dist/assets/{chunk-OSK3NFVY-QnTeADEJ.js → chunk-OSK3NFVY-bCmngeWR.js} +1 -1
- package/web-dist/assets/{chunk-P2QGCYS3-CaM3KBOi.js → chunk-P2QGCYS3-Dw96jVEK.js} +1 -1
- package/web-dist/assets/{chunk-POPQ4Y6H-WjBibeQS.js → chunk-POPQ4Y6H-DNGbi8BE.js} +1 -1
- package/web-dist/assets/{chunk-PWAF6VOD-w1jggNjy.js → chunk-PWAF6VOD-DVENTFb-.js} +1 -1
- package/web-dist/assets/{chunk-SHT3W25Y-ickVQ330.js → chunk-SHT3W25Y-TpzmxuTG.js} +1 -1
- package/web-dist/assets/{chunk-SVP7TREG-DkDsVj3_.js → chunk-SVP7TREG-TmrQ3kOe.js} +1 -1
- package/web-dist/assets/{chunk-TICWLB2K-D7nk_10G.js → chunk-TICWLB2K-DtQnPzsl.js} +1 -1
- package/web-dist/assets/{chunk-TLUHSLCS-DI5wfHVy.js → chunk-TLUHSLCS-BuIOagQ0.js} +2 -2
- package/web-dist/assets/classDiagram-ZZMXUADV-CgwfHvjo.js +1 -0
- package/web-dist/assets/classDiagram-v2-VYDZK3BY-CgwfHvjo.js +1 -0
- package/web-dist/assets/{cynefin-OW5HDTMX-AJyDs02_.js → cynefin-OW5HDTMX-CW3zUdFf.js} +1 -1
- package/web-dist/assets/{cynefinDiagram-5FMLGOSQ-DpFxU_WQ.js → cynefinDiagram-5FMLGOSQ-D7xbtemK.js} +1 -1
- package/web-dist/assets/{dagre-GXQ25YYZ-Bv6c4RZ2.js → dagre-GXQ25YYZ-B3SZSnsk.js} +1 -1
- package/web-dist/assets/{diagram-S7CK7UJ4-BTeeC4cD.js → diagram-S7CK7UJ4-DP-OPlEX.js} +1 -1
- package/web-dist/assets/{diagram-UQ7AKVKN-DpMsnMeM.js → diagram-UQ7AKVKN-B6X7Z7V_.js} +1 -1
- package/web-dist/assets/{diagram-VSXAHHWV-CwHh8AP2.js → diagram-VSXAHHWV-yH40Zxp5.js} +1 -1
- package/web-dist/assets/{diagram-VX7I27RA-BREEp7LQ.js → diagram-VX7I27RA-HBsQWaqE.js} +1 -1
- package/web-dist/assets/{diagram-Z3DM3KII-C3MG-LK_.js → diagram-Z3DM3KII-Bso8355W.js} +1 -1
- package/web-dist/assets/{ebnfDiagram-PWID7BFC-Cd8C7XJX.js → ebnfDiagram-PWID7BFC-Clq7hCFI.js} +1 -1
- package/web-dist/assets/{erDiagram-RLTQ6QDP-ByC7LvFs.js → erDiagram-RLTQ6QDP-C9-jZZ5j.js} +1 -1
- package/web-dist/assets/eventmodeling-NTZA5JFV-Dx5XJ-v5.js +1 -0
- package/web-dist/assets/flowDiagram-HODETNUW-DvS_YDh9.js +1 -0
- package/web-dist/assets/{ganttDiagram-EL5Y4UJY-BfJQVFbK.js → ganttDiagram-EL5Y4UJY-VukTGoFX.js} +1 -1
- package/web-dist/assets/{gitGraph-4MIJSDKK-Dgs6Soc0.js → gitGraph-4MIJSDKK-B8jqVWNm.js} +1 -1
- package/web-dist/assets/{gitGraphDiagram-WWUBYQGX-Deqt90Jd.js → gitGraphDiagram-WWUBYQGX-5Xei4YZZ.js} +1 -1
- package/web-dist/assets/index-D5qA8Ih6.css +2 -0
- package/web-dist/assets/index-DTUMXevd.js +270 -0
- package/web-dist/assets/{info-A6RAGUB7-BX-Ks_lH.js → info-A6RAGUB7-Di4fZcB1.js} +1 -1
- package/web-dist/assets/{infoDiagram-27XIBGKW-zqtNaEzd.js → infoDiagram-27XIBGKW-DZexAKWJ.js} +1 -1
- package/web-dist/assets/{ishikawaDiagram-5VMMS53U-Cxx_rPfC.js → ishikawaDiagram-5VMMS53U-DsvfI1SY.js} +1 -1
- package/web-dist/assets/{journeyDiagram-3NMN7TZE-DwyMWB04.js → journeyDiagram-3NMN7TZE-CJi6g0Yg.js} +1 -1
- package/web-dist/assets/{kanban-definition-UXKFOSKX-CU4gU90G.js → kanban-definition-UXKFOSKX-CfkIveVi.js} +1 -1
- package/web-dist/assets/{line-C70sp_VD.js → line-BvtHqcjz.js} +1 -1
- package/web-dist/assets/{mermaid-parser.core-CMDMaGBF.js → mermaid-parser.core-C-g-dmhZ.js} +3 -3
- package/web-dist/assets/{mermaid.core-978df7-u.js → mermaid.core-eqZe6o7n.js} +3 -3
- package/web-dist/assets/{mindmap-definition-YA3MSWOX-Cgg12wNf.js → mindmap-definition-YA3MSWOX-BzRsUWUd.js} +1 -1
- package/web-dist/assets/{packet-AYTQ26CC-xZA4g-2O.js → packet-AYTQ26CC-D2GyyVdW.js} +1 -1
- package/web-dist/assets/{pegDiagram-XKGWAZYB-BMhjDmMP.js → pegDiagram-XKGWAZYB-BEtECa7-.js} +1 -1
- package/web-dist/assets/{pie-WAS4IAKB-DMNYIlgo.js → pie-WAS4IAKB-DuLMBiue.js} +1 -1
- package/web-dist/assets/{pieDiagram-E7YTZNPT-Bzw4a1dD.js → pieDiagram-E7YTZNPT-OKTdroop.js} +1 -1
- package/web-dist/assets/{quadrantDiagram-AXDQQJYC-D4hutHJ4.js → quadrantDiagram-AXDQQJYC-CMRRNs4O.js} +1 -1
- package/web-dist/assets/{radar-RG4KPBEZ-BcsIE2UR.js → radar-RG4KPBEZ-BEbH3tpQ.js} +1 -1
- package/web-dist/assets/{railroad-74A4TZTK-AbznELa1.js → railroad-74A4TZTK-CGDIW8z4.js} +1 -1
- package/web-dist/assets/railroad-abnf-HS5TGJTU-agwsudqQ.js +1 -0
- package/web-dist/assets/railroad-ebnf-LZEXJU2U-CvKQhWdD.js +1 -0
- package/web-dist/assets/railroad-peg-WCYAUIDC-DGi-yhUP.js +1 -0
- package/web-dist/assets/{railroadDiagram-O6MQD6OU-CTWosMwz.js → railroadDiagram-O6MQD6OU-DNW0RDXz.js} +1 -1
- package/web-dist/assets/{requirementDiagram-BXWQKSXE-Dd78dcXW.js → requirementDiagram-BXWQKSXE-C5EI5nAg.js} +1 -1
- package/web-dist/assets/{sankeyDiagram-P5KCCOFB-DVp6YTyg.js → sankeyDiagram-P5KCCOFB-DYSpHwGq.js} +1 -1
- package/web-dist/assets/{sequenceDiagram-WJ2MYXX4-CfxHttCk.js → sequenceDiagram-WJ2MYXX4-BPblhcsh.js} +1 -1
- package/web-dist/assets/{stateDiagram-D77RDMKH-FpZm9E0t.js → stateDiagram-D77RDMKH-BVAhT-4C.js} +1 -1
- package/web-dist/assets/stateDiagram-v2-MP3YSRHH-DqaxwqG4.js +1 -0
- package/web-dist/assets/{swimlanes-42K2YHIH-C6RjL_DD.js → swimlanes-42K2YHIH-bgCCsNIk.js} +1 -1
- package/web-dist/assets/swimlanesDiagram-VR7AAH4N-DfewrrWQ.js +8 -0
- package/web-dist/assets/themePresetRuntime-DxEX_RPY.js +2 -0
- package/web-dist/assets/threadSurfaces-DFrguENE.js +149 -0
- package/web-dist/assets/{timeline-definition-24CTP7MA-CHcqIfE_.js → timeline-definition-24CTP7MA-BjEIWsW8.js} +1 -1
- package/web-dist/assets/{treeView-Q6P3EWNA-bBF1jm5-.js → treeView-Q6P3EWNA-DoXQfMOT.js} +1 -1
- package/web-dist/assets/{treemap-WGGIJYW6-CAOc8b4x.js → treemap-WGGIJYW6-C6CBMMPs.js} +1 -1
- package/web-dist/assets/{vennDiagram-4TSXK5OY-D76_eGBJ.js → vennDiagram-4TSXK5OY-CtOH2hiF.js} +1 -1
- package/web-dist/assets/{wardley-WFR3VGLG-BQeoq6bb.js → wardley-WFR3VGLG-D1AfZETR.js} +1 -1
- package/web-dist/assets/{wardleyDiagram-VM6X3IG4-D_bLqfIL.js → wardleyDiagram-VM6X3IG4-D3TOaMAM.js} +1 -1
- package/web-dist/assets/{xychartDiagram-S5SC5T6Z-BcAR4bOo.js → xychartDiagram-S5SC5T6Z-Dzd8iDY_.js} +1 -1
- package/web-dist/index.html +2 -2
- package/web-dist/assets/architecture-7GRP2DOG-CWnE6GDY.js +0 -1
- package/web-dist/assets/channel-BD8VPtHv.js +0 -1
- package/web-dist/assets/classDiagram-ZZMXUADV-MxSmjd7X.js +0 -1
- package/web-dist/assets/classDiagram-v2-VYDZK3BY-MxSmjd7X.js +0 -1
- package/web-dist/assets/eventmodeling-NTZA5JFV-BlHyk8R2.js +0 -1
- package/web-dist/assets/flowDiagram-HODETNUW-BxS7tRs1.js +0 -1
- package/web-dist/assets/index-BgGzdB5w.js +0 -264
- package/web-dist/assets/index-C7xst9Xc.css +0 -2
- package/web-dist/assets/railroad-abnf-HS5TGJTU-DNR3vMCj.js +0 -1
- package/web-dist/assets/railroad-ebnf-LZEXJU2U-BpCKEP32.js +0 -1
- package/web-dist/assets/railroad-peg-WCYAUIDC-CmiwHiWf.js +0 -1
- package/web-dist/assets/stateDiagram-v2-MP3YSRHH-B0FS5VxI.js +0 -1
- package/web-dist/assets/swimlanesDiagram-VR7AAH4N-BowLhziL.js +0 -8
- package/web-dist/assets/themePresetRuntime-BZbKs5OL.js +0 -2
- package/web-dist/assets/threadSurfaces-BB6hYXAc.js +0 -148
package/package.json
CHANGED
|
@@ -182,10 +182,17 @@ function parseArgs(tool, argv) {
|
|
|
182
182
|
/** @type {string[]} */
|
|
183
183
|
const bare = []
|
|
184
184
|
let flagsOver = false
|
|
185
|
+
// The flag whose value runs on over the bare words after it, up to the next flag. Unquoted,
|
|
186
|
+
// `threads --find renamed flaky` gave "flaky" to the project slot, and `--find` then refused a
|
|
187
|
+
// project nobody had named (2026-12-02).
|
|
188
|
+
/** @type {string | null} */
|
|
189
|
+
let runsOn = null
|
|
185
190
|
|
|
186
191
|
for (let i = 0; i < argv.length; i++) {
|
|
187
192
|
const tok = argv[i]
|
|
193
|
+
if (!flagsOver && runsOn && !tok.startsWith("--")) { fromFlags[runsOn] = `${fromFlags[runsOn]} ${tok}`; continue }
|
|
188
194
|
if (flagsOver || !tok.startsWith("--")) { bare.push(tok); continue }
|
|
195
|
+
runsOn = null
|
|
189
196
|
if (tok === "--") { flagsOver = true; continue }
|
|
190
197
|
const eq = tok.indexOf("=")
|
|
191
198
|
const flag = under((eq < 0 ? tok : tok.slice(0, eq)).slice(2).toLowerCase())
|
|
@@ -203,7 +210,10 @@ function parseArgs(tool, argv) {
|
|
|
203
210
|
if (flag === "input") {
|
|
204
211
|
fromJson = { ...fromJson, ...jsonInput(tool, readSource(take(), "--input"), "--input") }
|
|
205
212
|
} else if (flag in props) {
|
|
206
|
-
if (props[flag].type !== "boolean")
|
|
213
|
+
if (props[flag].type !== "boolean") {
|
|
214
|
+
fromFlags[flag] = coerce(tool, flag, take())
|
|
215
|
+
if (flag === spec.words) runsOn = flag
|
|
216
|
+
}
|
|
207
217
|
else if (inline !== undefined) fromFlags[flag] = coerce(tool, flag, inline)
|
|
208
218
|
else if (i + 1 < argv.length && /^(true|false)$/i.test(argv[i + 1])) fromFlags[flag] = coerce(tool, flag, argv[++i])
|
|
209
219
|
else fromFlags[flag] = true
|
|
@@ -777,8 +777,8 @@ const DONE = {
|
|
|
777
777
|
description:
|
|
778
778
|
"DECLARE THIS EFFORT FINISHED, with the write-up the human reads. Your thread cards as a checked " +
|
|
779
779
|
"success in their queue and stays there until they archive it. The command itself closes, archives " +
|
|
780
|
-
"and hides nothing, but the card is a DISMISSAL: it files the thread away
|
|
781
|
-
"is meant to open it again.\n\n" +
|
|
780
|
+
"and hides nothing (unless `archive`, below), but the card is a DISMISSAL: it files the thread away " +
|
|
781
|
+
"for the human, and nobody is meant to open it again.\n\n" +
|
|
782
782
|
"FRIZZ CAN REFUSE THIS, which is the whole reason it is a command rather than a fence. An OPEN " +
|
|
783
783
|
"QUESTION or an ARMED REGISTRATION blocks it, and the refusal names each one by id: a question " +
|
|
784
784
|
"nobody answered dies with the card, and a live wait means the thing you were waiting for has not " +
|
|
@@ -794,7 +794,9 @@ const DONE = {
|
|
|
794
794
|
"that is a question — a ```question fence in your message — carrying your recommendation as the " +
|
|
795
795
|
"first option.\n\n" +
|
|
796
796
|
"THE TEST IS NEVER \"HAVE I STOPPED WORKING\". It is: WHAT IS LOST IF NOBODY EVER OPENS THIS " +
|
|
797
|
-
"THREAD AGAIN? Name one thing and you are not done. Uncertain is not done
|
|
797
|
+
"THREAD AGAIN? Name one thing and you are not done. Uncertain is not done.\n\n" +
|
|
798
|
+
"MARKING THE THREAD DONE IS THE HUMAN'S ACT, NOT YOURS. `archive` exists for the human who told this " +
|
|
799
|
+
"thread to mark itself done when it finishes; without that, never pass it.",
|
|
798
800
|
inputSchema: {
|
|
799
801
|
type: "object",
|
|
800
802
|
properties: {
|
|
@@ -816,6 +818,16 @@ const DONE = {
|
|
|
816
818
|
"120 characters it is trimmed on a word boundary. Without it the card is headed \"Done\", which " +
|
|
817
819
|
"is true of every completion and specific to none. It wins over a `title:` line the body opens with.",
|
|
818
820
|
},
|
|
821
|
+
archive: {
|
|
822
|
+
type: "boolean",
|
|
823
|
+
description:
|
|
824
|
+
"ONLY WHEN THE HUMAN ASKED FOR IT. Also mark this thread done for them once this turn ends: Frizz " +
|
|
825
|
+
"stops it and files it under Done, exactly as their Mark as done button does, so it never reaches " +
|
|
826
|
+
"their queue. Pass it only when the human told THIS thread to mark itself done (\"mark yourself " +
|
|
827
|
+
"done when you're finished\"), or the project's instructions say to. Otherwise leave it off: " +
|
|
828
|
+
"marking a thread done is the human's to do, and the done card waits for them. The same refusals " +
|
|
829
|
+
"hold, and a message from the human before the turn ends calls the archive off.",
|
|
830
|
+
},
|
|
819
831
|
},
|
|
820
832
|
required: ["body"],
|
|
821
833
|
},
|
|
@@ -1145,8 +1157,8 @@ const THREADS = {
|
|
|
1145
1157
|
"FIND ONE BY ITS NAME WITH `--find`. Told about a thread by name (\"tell the releaser\", \"the resolver " +
|
|
1146
1158
|
"cache thread\"), search for it: `frizzctl threads --find releaser`. It looks at every project this Frizz " +
|
|
1147
1159
|
"has open and every band, Done included, matching each word against the start of a word in the title " +
|
|
1148
|
-
"the human sees, the slug, and the other names it has had, best match first. The slug
|
|
1149
|
-
"thread
|
|
1160
|
+
"the human sees, the slug, and the other names it has had, best match first. The slug never changes, " +
|
|
1161
|
+
"and it is an opaque id (on an older thread, words from its first prompt), so it rarely reads like the name.\n\n" +
|
|
1150
1162
|
"`--json` prints the whole listing — every field, ISO timestamps — for `jq`. It only reads: nothing is " +
|
|
1151
1163
|
"changed, and no thread is woken by being listed.",
|
|
1152
1164
|
inputSchema: {
|
|
@@ -2807,7 +2819,15 @@ async function done(args) {
|
|
|
2807
2819
|
// spill the rest into the ledger.
|
|
2808
2820
|
const title = typeof args.title === "string" ? args.title.replace(/\s+/g, " ").trim() : ""
|
|
2809
2821
|
if (title) body = `title: ${title}\n---\n${withoutLeadingTitle(body)}`
|
|
2810
|
-
const
|
|
2822
|
+
const archive = args.archive === true
|
|
2823
|
+
const result = (await callRpc("markOwnDone", { slug, body, ...(archive ? { archive } : {}) }))?.result
|
|
2824
|
+
if (result?.done && archive) {
|
|
2825
|
+
return (
|
|
2826
|
+
"Recorded the done card. When this turn ends, Frizz marks the thread done for the human: it stops " +
|
|
2827
|
+
"and files under Done, as it would from their Mark as done button. Your final message is the last " +
|
|
2828
|
+
"thing they read, so write it now. A question or a wait you register before the turn ends calls the archive off."
|
|
2829
|
+
)
|
|
2830
|
+
}
|
|
2811
2831
|
if (result?.done) {
|
|
2812
2832
|
return (
|
|
2813
2833
|
"Marked done. Your thread cards as a checked success in the human's queue and stays there until " +
|
|
@@ -3173,6 +3193,8 @@ async function addPersistentWatch(slug, command, forValue, description) {
|
|
|
3173
3193
|
* then — further positionals that depend on the first one's value, for the commands that
|
|
3174
3194
|
* switch on an `action` (`frizzctl timer cancel tmr_ab12`).
|
|
3175
3195
|
* wrap — the one array argument a bare JSON array, or a single item, is taken to be.
|
|
3196
|
+
* words — the one string flag whose value runs on over the bare words after it, up to the next
|
|
3197
|
+
* flag, so a phrase needs no quotes (`frizzctl threads --find cache thread`).
|
|
3176
3198
|
* retired — the text a retired command prints instead of running: its refusal, and its `--help`.
|
|
3177
3199
|
* examples — real invocations, shown under the command's own help.
|
|
3178
3200
|
*
|
|
@@ -3209,6 +3231,7 @@ const CLI = {
|
|
|
3209
3231
|
"EOF",
|
|
3210
3232
|
"frizzctl done --body-file handoff.md",
|
|
3211
3233
|
"frizzctl done --title \"Resolver cache keyed on the normalized id\" --body-file handoff.md",
|
|
3234
|
+
"frizzctl done --archive --body-file handoff.md # only when the human asked this thread to mark itself done",
|
|
3212
3235
|
],
|
|
3213
3236
|
},
|
|
3214
3237
|
activity: {
|
|
@@ -3340,6 +3363,7 @@ const CLI = {
|
|
|
3340
3363
|
group: "Other threads",
|
|
3341
3364
|
summary: "List a project's threads, or find one by name on every project: slug, title and where it sits",
|
|
3342
3365
|
positional: ["project"],
|
|
3366
|
+
words: "find",
|
|
3343
3367
|
examples: ["frizzctl threads", "frizzctl threads nub", "frizzctl threads --all --json", "frizzctl threads --find releaser"],
|
|
3344
3368
|
},
|
|
3345
3369
|
steer: {
|
package/web-dist/assets/{abnfDiagram-VCTEODGH-DCqo8On5.js → abnfDiagram-VCTEODGH-4VJppamx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e,t}from"./mermaid-parser.core-
|
|
1
|
+
import{m as e,t}from"./mermaid-parser.core-C-g-dmhZ.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-C4XfhTaE.js";import"./chunk-DU6HZSFF-CMFr-xeU.js";import"./chunk-CLGD4ZFX-DcN9-Cum.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-TmrQ3kOe.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-C-g-dmhZ.js";export{e as createArchitectureServices};
|