frizz-server 0.15.9 → 0.15.11

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.
Files changed (100) hide show
  1. package/dist/claude-agent-broker.js +5361 -4936
  2. package/dist/dev-child.js +5624 -5135
  3. package/package.json +1 -1
  4. package/runtime/cc-worker/bin/frizz-mcp.mjs +27 -14
  5. package/web-dist/assets/{abnfDiagram-VRR7QNED-bpvFgjh_.js → abnfDiagram-VRR7QNED-NqOfYLl_.js} +1 -1
  6. package/web-dist/assets/{arc-B6wV_613.js → arc-D9UsqPOW.js} +1 -1
  7. package/web-dist/assets/architecture-TIHT7OUA-CYx5mu8e.js +1 -0
  8. package/web-dist/assets/{architectureDiagram-ZJ3FMSHR-w01ZZmOr.js → architectureDiagram-ZJ3FMSHR-CRU2_T_H.js} +1 -1
  9. package/web-dist/assets/{blockDiagram-677ZJIJ3-C2dC71vu.js → blockDiagram-677ZJIJ3-DZT8OjJK.js} +1 -1
  10. package/web-dist/assets/{c4Diagram-LMCZKHZV-dzZwiOpg.js → c4Diagram-LMCZKHZV-k-Ft1ThH.js} +1 -1
  11. package/web-dist/assets/channel-CD-hjjIL.js +1 -0
  12. package/web-dist/assets/{chunk-32BRIVSS-BlUNcRIV.js → chunk-32BRIVSS-DDMMpuZb.js} +1 -1
  13. package/web-dist/assets/{chunk-52WLFC77-BBpddpiu.js → chunk-52WLFC77-BW9KF5RJ.js} +1 -1
  14. package/web-dist/assets/{chunk-C7G6YPKG-vQnBlF1j.js → chunk-C7G6YPKG-B4caDIAT.js} +1 -1
  15. package/web-dist/assets/{chunk-EX3LRPZG-Ck6_JWUr.js → chunk-EX3LRPZG-Dyz0PnIY.js} +1 -1
  16. package/web-dist/assets/{chunk-FWX5IMBZ-l81x5EMG.js → chunk-FWX5IMBZ-Dxhqduv9.js} +2 -2
  17. package/web-dist/assets/{chunk-HOUHSVGY-CAZZtYuY.js → chunk-HOUHSVGY-Du7Ln4sO.js} +1 -1
  18. package/web-dist/assets/{chunk-ICXQ74PX-rH1OyvOA.js → chunk-ICXQ74PX-sNRNHZp6.js} +1 -1
  19. package/web-dist/assets/{chunk-MOJQB5TN-B4kp_No0.js → chunk-MOJQB5TN-BsgPysrE.js} +1 -1
  20. package/web-dist/assets/{chunk-OGEWGWER-CqwXyIBs.js → chunk-OGEWGWER-DZ288hvO.js} +1 -1
  21. package/web-dist/assets/{chunk-PUDLZKDR-D2gjM_eF.js → chunk-PUDLZKDR-DuU7e-Sm.js} +1 -1
  22. package/web-dist/assets/{chunk-Q4XR5HBZ-gRBHVngs.js → chunk-Q4XR5HBZ-BO2aVRAy.js} +1 -1
  23. package/web-dist/assets/{chunk-RYQCIY6F-BCdM08hs.js → chunk-RYQCIY6F-pQoqlm5b.js} +1 -1
  24. package/web-dist/assets/{chunk-V7JOEXUC-DQBtsWdd.js → chunk-V7JOEXUC-DkkQI0OQ.js} +1 -1
  25. package/web-dist/assets/{chunk-VAUOI2AC-BiLb5gwB.js → chunk-VAUOI2AC-D3_hzRfs.js} +1 -1
  26. package/web-dist/assets/{chunk-VR4S4FIN-DFTQyMST.js → chunk-VR4S4FIN-BBnj_eoh.js} +1 -1
  27. package/web-dist/assets/{chunk-WYO6CB5R-2o1M-Kfn.js → chunk-WYO6CB5R-BqxQ9C2U.js} +1 -1
  28. package/web-dist/assets/{chunk-XXDRQBXY-CbmG6EEc.js → chunk-XXDRQBXY-i1ZlWoHe.js} +1 -1
  29. package/web-dist/assets/{chunk-ZGVPDNZ5-HevfruTn.js → chunk-ZGVPDNZ5-CsZazrsC.js} +1 -1
  30. package/web-dist/assets/classDiagram-OUVF2IWQ-B-BSDhSx.js +1 -0
  31. package/web-dist/assets/classDiagram-v2-EOCWNBFH-B-BSDhSx.js +1 -0
  32. package/web-dist/assets/{cose-bilkent-JH36ORCC-GKECIOxX.js → cose-bilkent-JH36ORCC-BmEzvocR.js} +1 -1
  33. package/web-dist/assets/{cynefin-VYW2F7L2-BYescccC.js → cynefin-VYW2F7L2-DZw7i9wG.js} +1 -1
  34. package/web-dist/assets/{cynefinDiagram-TSTJHNR4-Ci4_11Wj.js → cynefinDiagram-TSTJHNR4-vngpN5Da.js} +1 -1
  35. package/web-dist/assets/{dagre-VKFMJZFB-BSYt3Ueo.js → dagre-VKFMJZFB-DkIdWq34.js} +1 -1
  36. package/web-dist/assets/{diagram-FQU43EPY-D_poYJjj.js → diagram-FQU43EPY-BB6mK3b6.js} +1 -1
  37. package/web-dist/assets/{diagram-G47NLZAW-DiX0WcIi.js → diagram-G47NLZAW-DNs0n26T.js} +1 -1
  38. package/web-dist/assets/{diagram-NH7WQ7WH-BSXO9aR-.js → diagram-NH7WQ7WH-DOg3HmEF.js} +1 -1
  39. package/web-dist/assets/{diagram-OA4YK3LP-c5PFWmce.js → diagram-OA4YK3LP-BVKuqpaY.js} +1 -1
  40. package/web-dist/assets/{diagram-WEI45ONY-0E2e-eEl.js → diagram-WEI45ONY-BVnqmqct.js} +1 -1
  41. package/web-dist/assets/{dist-BNr2jceV.js → dist-DuviCA4e.js} +1 -1
  42. package/web-dist/assets/{ebnfDiagram-CCIWWBDH-sug5MowW.js → ebnfDiagram-CCIWWBDH-BrqvjM1n.js} +1 -1
  43. package/web-dist/assets/{erDiagram-Q63AITRT-DWn4eYuP.js → erDiagram-Q63AITRT-Du1wclw9.js} +1 -1
  44. package/web-dist/assets/eventmodeling-45OFAUF4-BPCrKw7m.js +1 -0
  45. package/web-dist/assets/flowDiagram-23GEKE2U-AA0QqWn2.js +1 -0
  46. package/web-dist/assets/{ganttDiagram-NO4QXBWP-BjQPsYE_.js → ganttDiagram-NO4QXBWP-CSiHPJrQ.js} +1 -1
  47. package/web-dist/assets/{gitGraph-TEB2WS4Q-Y9S6dZOS.js → gitGraph-TEB2WS4Q-7-fFcwxj.js} +1 -1
  48. package/web-dist/assets/{gitGraphDiagram-IHSO6WYX-CMq9b8vX.js → gitGraphDiagram-IHSO6WYX-CElQAu0f.js} +1 -1
  49. package/web-dist/assets/index-BWqGEWRg.js +330 -0
  50. package/web-dist/assets/index-W88ZnKOr.css +2 -0
  51. package/web-dist/assets/{info-DKCQHKI2-CWtE6dST.js → info-DKCQHKI2-CXWr1yIe.js} +1 -1
  52. package/web-dist/assets/{infoDiagram-FWYZ7A6U-C2NWIaif.js → infoDiagram-FWYZ7A6U-gN_v0GbL.js} +1 -1
  53. package/web-dist/assets/{ishikawaDiagram-FXEZZL3T-DXzUcIZF.js → ishikawaDiagram-FXEZZL3T-je5d5eKU.js} +1 -1
  54. package/web-dist/assets/{journeyDiagram-5HDEW3XC-qJI9aTVd.js → journeyDiagram-5HDEW3XC-CybyC_OE.js} +1 -1
  55. package/web-dist/assets/{kanban-definition-HUTT4EX6-4Lj8CQgB.js → kanban-definition-HUTT4EX6-DthSkUsp.js} +1 -1
  56. package/web-dist/assets/{line-DIrw6BIn.js → line-C6dQfGfT.js} +1 -1
  57. package/web-dist/assets/{linear-BNIMlWSR.js → linear-zrRCwmn0.js} +1 -1
  58. package/web-dist/assets/{mermaid-parser.core-d7S7o_PA.js → mermaid-parser.core-DGsIiQR5.js} +3 -3
  59. package/web-dist/assets/{mermaid.core-D_uuLgtZ.js → mermaid.core-Dk0TeuEE.js} +3 -3
  60. package/web-dist/assets/{mindmap-definition-LN4V7U3C-BGHuc-YM.js → mindmap-definition-LN4V7U3C-Wo-S6GUr.js} +1 -1
  61. package/web-dist/assets/{packet-7NZHBO7P-DysEFjId.js → packet-7NZHBO7P-BjJcy3q1.js} +1 -1
  62. package/web-dist/assets/{pegDiagram-2B236MQR-DwkqJI5_.js → pegDiagram-2B236MQR-BBD9ezK8.js} +1 -1
  63. package/web-dist/assets/{pie-RZYD4A2V-DC38iBe5.js → pie-RZYD4A2V-B9UJsCc6.js} +1 -1
  64. package/web-dist/assets/{pieDiagram-ENE6RG2P-DpVWPnNY.js → pieDiagram-ENE6RG2P-DvLH3PU6.js} +1 -1
  65. package/web-dist/assets/{quadrantDiagram-ABIIQ3AL-C5xGorjA.js → quadrantDiagram-ABIIQ3AL-BwC1BKho.js} +1 -1
  66. package/web-dist/assets/{radar-I7S5WNFK-C6PrFcXa.js → radar-I7S5WNFK-BziFtIY8.js} +1 -1
  67. package/web-dist/assets/{railroad-3IZDKUUU-D9YHM7vZ.js → railroad-3IZDKUUU-DPD8gyCw.js} +1 -1
  68. package/web-dist/assets/railroad-abnf-AHOZXSZD-C6wFrQk2.js +1 -0
  69. package/web-dist/assets/railroad-ebnf-EBAXGLYW-yv1OIO4r.js +1 -0
  70. package/web-dist/assets/railroad-peg-LSFZ7HO6-BNocqLQb.js +1 -0
  71. package/web-dist/assets/{railroadDiagram-RFXS5EU6-C2j0z7hC.js → railroadDiagram-RFXS5EU6-DkS_57bW.js} +1 -1
  72. package/web-dist/assets/{requirementDiagram-TGXJPOKE-Bq_baMBe.js → requirementDiagram-TGXJPOKE-DT4YnV0v.js} +1 -1
  73. package/web-dist/assets/{sankeyDiagram-HTMAVEWB-CligXT76.js → sankeyDiagram-HTMAVEWB-DMhUiLXu.js} +1 -1
  74. package/web-dist/assets/{sequenceDiagram-DBY2YBRQ-DDElTttj.js → sequenceDiagram-DBY2YBRQ-BzyFG5mU.js} +1 -1
  75. package/web-dist/assets/{src-CDEniJg5.js → src-Bpw4w4N9.js} +1 -1
  76. package/web-dist/assets/{stateDiagram-2N3HPSRC-F3GBVtlR.js → stateDiagram-2N3HPSRC-DI7bXIvV.js} +1 -1
  77. package/web-dist/assets/stateDiagram-v2-6OUMAXLB-BnPQRodM.js +1 -0
  78. package/web-dist/assets/{swimlanes-5IMT3BWC-BoqqfmHh.js → swimlanes-5IMT3BWC-ocEwjrkf.js} +1 -1
  79. package/web-dist/assets/swimlanesDiagram-G3AALYLV-Cmi6u5Ox.js +8 -0
  80. package/web-dist/assets/{timeline-definition-FHXFAJF6-C3tpbuLT.js → timeline-definition-FHXFAJF6-Cx606xig.js} +1 -1
  81. package/web-dist/assets/{treeView-QDETBFTQ-v67h6a2k.js → treeView-QDETBFTQ-BBjaqvh7.js} +1 -1
  82. package/web-dist/assets/{treemap-6X3UGDF4-BxG9V7LR.js → treemap-6X3UGDF4-Bn8fQ4vt.js} +1 -1
  83. package/web-dist/assets/{vennDiagram-L72KCM5P-QPebQmx5.js → vennDiagram-L72KCM5P-DaKXvRdc.js} +1 -1
  84. package/web-dist/assets/{wardley-OPB4EBWU-Cf_j_CaV.js → wardley-OPB4EBWU-CK6Oy13G.js} +1 -1
  85. package/web-dist/assets/{wardleyDiagram-EHGQE667-BAkdTjBJ.js → wardleyDiagram-EHGQE667-esMnbbXF.js} +1 -1
  86. package/web-dist/assets/{xychartDiagram-FW5EYKEG-CT9Ye_bC.js → xychartDiagram-FW5EYKEG-D3DoqcNr.js} +1 -1
  87. package/web-dist/index.html +2 -2
  88. package/web-dist/assets/architecture-TIHT7OUA-CZz_Dcj8.js +0 -1
  89. package/web-dist/assets/channel-BskO-4wQ.js +0 -1
  90. package/web-dist/assets/classDiagram-OUVF2IWQ-BOPl2fK7.js +0 -1
  91. package/web-dist/assets/classDiagram-v2-EOCWNBFH-BOPl2fK7.js +0 -1
  92. package/web-dist/assets/eventmodeling-45OFAUF4-CbAeMPGX.js +0 -1
  93. package/web-dist/assets/flowDiagram-23GEKE2U-Dzd-86wz.js +0 -1
  94. package/web-dist/assets/index-BXB3wIbN.css +0 -2
  95. package/web-dist/assets/index-xddrwgDi.js +0 -330
  96. package/web-dist/assets/railroad-abnf-AHOZXSZD-B04LSTOs.js +0 -1
  97. package/web-dist/assets/railroad-ebnf-EBAXGLYW-D1pcb-wx.js +0 -1
  98. package/web-dist/assets/railroad-peg-LSFZ7HO6-D-LbH7mN.js +0 -1
  99. package/web-dist/assets/stateDiagram-v2-6OUMAXLB-AyunP4Gk.js +0 -1
  100. package/web-dist/assets/swimlanesDiagram-G3AALYLV-CnMYwZeI.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frizz-server",
3
- "version": "0.15.9",
3
+ "version": "0.15.11",
4
4
  "private": false,
5
5
  "description": "Replaceable Frizz server runtime",
6
6
  "license": "MIT",
@@ -595,10 +595,13 @@ const ASK = {
595
595
  "ASKING DOES NOT END YOUR TURN. A question waits on a person, so it carries no timeout and expires " +
596
596
  "never — but you keep working. Do everything that does NOT depend on the answer first, and register " +
597
597
  "the question at the moment you find it rather than saving it for the end.\n\n" +
598
- "AND WHEN YOU DO STOP, THE OPEN QUESTION IS YOUR SIGN-OFF — rest normally. Frizz draws every open " +
599
- "question at the rest you stopped at whether you mention it or not, so nothing you write can hide " +
600
- "one. The card draws itself at the tail of the rest the question was asked — never write the " +
601
- "question into your handoff (one question, one card). TO PLACE IT INSIDE YOUR PROSE instead, write " +
598
+ "AND WHEN YOU DO STOP, THE QUESTION IS THAT REST'S SIGN-OFF — rest normally. Frizz draws the card " +
599
+ "at the rest that asked it whether you mention it or not, so nothing you write can hide one. The " +
600
+ "card draws itself at the tail of the rest the question was asked — never write the question into " +
601
+ "your handoff (one question, one card). AT EVERY LATER REST it is no longer your sign-off and frizz " +
602
+ "does not redraw it under your newer handoff: name it under `questions:` in an ```awaiting fence " +
603
+ "while you still need the answer (its card is drawn there), or withdraw it with `unask`. TO PLACE IT " +
604
+ "INSIDE YOUR PROSE instead, write " +
602
605
  "an EMPTY fence naming the id this tool returned — ```question qst_ab12cd34 on one line, ``` on " +
603
606
  "the next — and the card renders there. One marker per question; nothing in the body; placement is " +
604
607
  "optional, and every answer of the rest still sends together.\n\n" +
@@ -610,9 +613,11 @@ const ASK = {
610
613
  "ON AN AUTONOMOUS THREAD THIS REFUSES, and tells you the standing instruction you are working " +
611
614
  "under. A thread carrying a rest Goal has already been told to keep going and decide for itself, " +
612
615
  "so the refusal is that instruction arriving at the moment it matters. Decide, and say which way " +
613
- "you went in your write-up. If the call is genuinely the human's — destructive, irreversible, or " +
614
- "an act you are not permitted to take — put it in your FINAL MESSAGE instead of here; autonomous " +
615
- "does not mean nobody is reading.",
616
+ "you went in your write-up. If the call is genuinely the human's — destructive or irreversible — " +
617
+ "put it in your FINAL MESSAGE instead of here; autonomous does not mean nobody is reading.\n\n" +
618
+ "AN ACT IS NOT A QUESTION. When the human must PERFORM something you cannot — sign in, approve, " +
619
+ "merge, press a button you may not — do not ask whether they will: list the steps under `steps:` " +
620
+ "in your ```awaiting fence. That works on an autonomous thread too, and their reply wakes you.",
616
621
  inputSchema: {
617
622
  type: "object",
618
623
  properties: {
@@ -845,22 +850,26 @@ async function activity() {
845
850
  const links = Array.isArray(result?.links) ? result.links : []
846
851
  const linksBlock = links.length === 0 ? "" : "\n\nSaved links and files (not running work; remove with unlink):\n" +
847
852
  links.map((link) => ` ${link.id} ${link.kind}: ${link.label}\n ${link.target}`).join("\n")
848
- // THE QUESTIONS ARE NOT PART OF THE FENCE, so they are printed in their own section and never fed to
849
- // the fence builder below. A question waits on a person; there is no `questions:` key to write it into.
853
+ // THE QUESTIONS GET THEIR OWN SECTION, because they are not running work: a question waits on a
854
+ // person. Since 2026-10-05 a fence names the ones still needed under `questions:` (and must name every
855
+ // open one), so the ready-to-paste fence below carries them too.
850
856
  const askedBlock = questions.length === 0 ? "" : (
851
857
  `\n\n${questions.length} question${questions.length === 1 ? "" : "s"} still owed an answer:\n\n` +
852
858
  questions.map((q) => ` question: ${q.id}\n ${String(q?.spec?.question ?? "").replace(/\s+/g, " ").slice(0, 160)}`).join("\n") +
853
859
  "\n\nEach one blocks `done` until it is answered or withdrawn, and draws its own card at the rest " +
854
860
  "it was asked — never write it into a handoff; an EMPTY ```question fence naming its id places it " +
855
- "inside your prose. `unask` the ones since decided. A question is never named in an ```awaiting " +
856
- "fence."
861
+ "inside your prose. `unask` the ones since decided. Any ```awaiting fence names EVERY open one " +
862
+ "under `questions:` or is refused, and at a rest after the one that asked, a question you neither " +
863
+ "name nor withdraw gets you bumped. In a fence: `questions: [" +
864
+ questions.map((q) => q.id).join(", ") + "]`"
857
865
  )
858
866
  if (!items.length) {
859
867
  if (questions.length > 0) {
860
868
  return (
861
869
  "Nothing is RUNNING on this thread — no background shells, no sub-agents, no armed timers, no " +
862
- "registered PRs. So an ```awaiting fence would have nothing to name, and a fence naming nothing " +
863
- "is not a park." + askedBlock + linksBlock
870
+ "registered PRs. An ```awaiting fence can still wait on your open questions alone — " +
871
+ "`questions:` names the human as the wait, so it needs no other name and no `for:`." +
872
+ askedBlock + linksBlock
864
873
  )
865
874
  }
866
875
  return (
@@ -886,6 +895,10 @@ async function activity() {
886
895
  const block = Object.entries({ shells: byKind.shell, agents: byKind.agent, timers: byKind.timer, prs: byKind.pr, issues: byKind.issue })
887
896
  .filter(([, ids]) => ids.length > 0)
888
897
  .map(([key, ids]) => ` ${key}: [${ids.join(", ")}]`)
898
+ // Every open question rides the fence too: a fence that leaves one out is refused, and a fence on
899
+ // questions always queues, so its `needs_input:` answer is `true` whatever else it names.
900
+ const questionIds = questions.map((q) => q.id).filter(Boolean)
901
+ if (questionIds.length > 0) block.push(` questions: [${questionIds.join(", ")}]`)
889
902
  return (
890
903
  `${items.length} thing${items.length === 1 ? "" : "s"} running on this thread:\n\n${lines.join("\n")}\n\n` +
891
904
  "Name the ones you are ACTUALLY waiting on in your ```awaiting fence. The frontmatter is YAML — one " +
@@ -894,7 +907,7 @@ async function activity() {
894
907
  "out of their queue and needs no prose at all; `needs_input: true` puts it in their queue, with what " +
895
908
  "to look at BELOW a `---` line (there is no `reason:` key).\n\nEverything above, as a fence:\n\n" +
896
909
  "```awaiting\n" +
897
- `${block.join("\n")}\n needs_input: false\n for: 2h\n` +
910
+ `${block.join("\n")}\n needs_input: ${questionIds.length > 0 ? "true" : "false"}\n for: 2h\n` +
898
911
  "```\n\nDrop the lines you are not actually waiting on — a dev server you left running is not a wait." +
899
912
  "\n\nA `watch` registration (marked `[watched as …]` above) keeps the WAKE across a compaction and a " +
900
913
  "restart, but it does not replace the fence: name the work in the fence all the same." +
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-d7S7o_PA.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-CDEniJg5.js";import"./chunk-WYO6CB5R-2o1M-Kfn.js";import"./chunk-VAUOI2AC-BiLb5gwB.js";import{n as i,r as a,t as o}from"./chunk-MOJQB5TN-B4kp_No0.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};
1
+ import{m as e,t}from"./mermaid-parser.core-DGsIiQR5.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-Bpw4w4N9.js";import"./chunk-WYO6CB5R-BqxQ9C2U.js";import"./chunk-VAUOI2AC-D3_hzRfs.js";import{n as i,r as a,t as o}from"./chunk-MOJQB5TN-BsgPysrE.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};
@@ -1 +1 @@
1
- import{n as e,t}from"./path-BWPyau1x.js";import{a as n,c as r,d as i,f as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,u as p}from"./dist-BNr2jceV.js";function m(e){return e.innerRadius}function h(e){return e.outerRadius}function g(e){return e.startAngle}function _(e){return e.endAngle}function v(e){return e&&e.padAngle}function y(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function b(e,t,n,r,i,a,o){var c=e-n,l=t-r,u=(o?a:-a)/d(c*c+l*l),f=u*l,p=-u*c,m=e+f,h=t+p,g=n+f,_=r+p,v=(m+g)/2,y=(h+_)/2,b=g-m,x=_-h,S=b*b+x*x,C=i-a,w=m*_-g*h,T=(x<0?-1:1)*d(s(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,A=E-v,j=D-y,M=O-v,N=k-y;return A*A+j*j>M*M+N*N&&(E=O,D=k),{cx:E,cy:D,x01:-f,y01:-p,x11:E*(i/C-1),y11:D*(i/C-1)}}function x(){var s=m,x=h,S=e(0),C=null,w=g,T=_,E=v,D=null,O=t(k);function k(){var e,t,m=+s.apply(this,arguments),h=+x.apply(this,arguments),g=w.apply(this,arguments)-r,_=T.apply(this,arguments)-r,v=l(_-g),k=_>g;if(D||=e=O(),h<m&&(t=h,h=m,m=t),!(h>1e-12))D.moveTo(0,0);else if(v>c-1e-12)D.moveTo(h*u(g),h*a(g)),D.arc(0,0,h,g,_,!k),m>1e-12&&(D.moveTo(m*u(_),m*a(_)),D.arc(0,0,m,_,g,k));else{var A=g,j=_,M=g,N=_,P=v,F=v,I=E.apply(this,arguments)/2,L=I>1e-12&&(C?+C.apply(this,arguments):d(m*m+h*h)),R=p(l(h-m)/2,+S.apply(this,arguments)),z=R,B=R,V,H;if(L>1e-12){var U=o(L/m*a(I)),W=o(L/h*a(I));(P-=U*2)>1e-12?(U*=k?1:-1,M+=U,N-=U):(P=0,M=N=(g+_)/2),(F-=W*2)>1e-12?(W*=k?1:-1,A+=W,j-=W):(F=0,A=j=(g+_)/2)}var G=h*u(A),K=h*a(A),q=m*u(N),J=m*a(N);if(R>1e-12){var Y=h*u(j),X=h*a(j),Z=m*u(M),Q=m*a(M),$;if(v<i)if($=y(G,K,Z,Q,Y,X,q,J)){var ee=G-$[0],te=K-$[1],ne=Y-$[0],re=X-$[1],ie=1/a(f((ee*ne+te*re)/(d(ee*ee+te*te)*d(ne*ne+re*re)))/2),ae=d($[0]*$[0]+$[1]*$[1]);z=p(R,(m-ae)/(ie-1)),B=p(R,(h-ae)/(ie+1))}else z=B=0}F>1e-12?B>1e-12?(V=b(Z,Q,G,K,h,B,k),H=b(Y,X,q,J,h,B,k),D.moveTo(V.cx+V.x01,V.cy+V.y01),B<R?D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,h,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),!k),D.arc(H.cx,H.cy,B,n(H.y11,H.x11),n(H.y01,H.x01),!k))):(D.moveTo(G,K),D.arc(0,0,h,A,j,!k)):D.moveTo(G,K),!(m>1e-12)||!(P>1e-12)?D.lineTo(q,J):z>1e-12?(V=b(q,J,Y,X,m,-z,k),H=b(G,K,Z,Q,m,-z,k),D.lineTo(V.cx+V.x01,V.cy+V.y01),z<R?D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,m,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),k),D.arc(H.cx,H.cy,z,n(H.y11,H.x11),n(H.y01,H.x01),!k))):D.arc(0,0,m,N,M,k)}if(D.closePath(),e)return D=null,e+``||null}return k.centroid=function(){var e=(+s.apply(this,arguments)+ +x.apply(this,arguments))/2,t=(+w.apply(this,arguments)+ +T.apply(this,arguments))/2-i/2;return[u(t)*e,a(t)*e]},k.innerRadius=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),k):s},k.outerRadius=function(t){return arguments.length?(x=typeof t==`function`?t:e(+t),k):x},k.cornerRadius=function(t){return arguments.length?(S=typeof t==`function`?t:e(+t),k):S},k.padRadius=function(t){return arguments.length?(C=t==null?null:typeof t==`function`?t:e(+t),k):C},k.startAngle=function(t){return arguments.length?(w=typeof t==`function`?t:e(+t),k):w},k.endAngle=function(t){return arguments.length?(T=typeof t==`function`?t:e(+t),k):T},k.padAngle=function(t){return arguments.length?(E=typeof t==`function`?t:e(+t),k):E},k.context=function(e){return arguments.length?(D=e??null,k):D},k}export{x as t};
1
+ import{n as e,t}from"./path-BWPyau1x.js";import{a as n,c as r,d as i,f as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,u as p}from"./dist-DuviCA4e.js";function m(e){return e.innerRadius}function h(e){return e.outerRadius}function g(e){return e.startAngle}function _(e){return e.endAngle}function v(e){return e&&e.padAngle}function y(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function b(e,t,n,r,i,a,o){var c=e-n,l=t-r,u=(o?a:-a)/d(c*c+l*l),f=u*l,p=-u*c,m=e+f,h=t+p,g=n+f,_=r+p,v=(m+g)/2,y=(h+_)/2,b=g-m,x=_-h,S=b*b+x*x,C=i-a,w=m*_-g*h,T=(x<0?-1:1)*d(s(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,A=E-v,j=D-y,M=O-v,N=k-y;return A*A+j*j>M*M+N*N&&(E=O,D=k),{cx:E,cy:D,x01:-f,y01:-p,x11:E*(i/C-1),y11:D*(i/C-1)}}function x(){var s=m,x=h,S=e(0),C=null,w=g,T=_,E=v,D=null,O=t(k);function k(){var e,t,m=+s.apply(this,arguments),h=+x.apply(this,arguments),g=w.apply(this,arguments)-r,_=T.apply(this,arguments)-r,v=l(_-g),k=_>g;if(D||=e=O(),h<m&&(t=h,h=m,m=t),!(h>1e-12))D.moveTo(0,0);else if(v>c-1e-12)D.moveTo(h*u(g),h*a(g)),D.arc(0,0,h,g,_,!k),m>1e-12&&(D.moveTo(m*u(_),m*a(_)),D.arc(0,0,m,_,g,k));else{var A=g,j=_,M=g,N=_,P=v,F=v,I=E.apply(this,arguments)/2,L=I>1e-12&&(C?+C.apply(this,arguments):d(m*m+h*h)),R=p(l(h-m)/2,+S.apply(this,arguments)),z=R,B=R,V,H;if(L>1e-12){var U=o(L/m*a(I)),W=o(L/h*a(I));(P-=U*2)>1e-12?(U*=k?1:-1,M+=U,N-=U):(P=0,M=N=(g+_)/2),(F-=W*2)>1e-12?(W*=k?1:-1,A+=W,j-=W):(F=0,A=j=(g+_)/2)}var G=h*u(A),K=h*a(A),q=m*u(N),J=m*a(N);if(R>1e-12){var Y=h*u(j),X=h*a(j),Z=m*u(M),Q=m*a(M),$;if(v<i)if($=y(G,K,Z,Q,Y,X,q,J)){var ee=G-$[0],te=K-$[1],ne=Y-$[0],re=X-$[1],ie=1/a(f((ee*ne+te*re)/(d(ee*ee+te*te)*d(ne*ne+re*re)))/2),ae=d($[0]*$[0]+$[1]*$[1]);z=p(R,(m-ae)/(ie-1)),B=p(R,(h-ae)/(ie+1))}else z=B=0}F>1e-12?B>1e-12?(V=b(Z,Q,G,K,h,B,k),H=b(Y,X,q,J,h,B,k),D.moveTo(V.cx+V.x01,V.cy+V.y01),B<R?D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,h,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),!k),D.arc(H.cx,H.cy,B,n(H.y11,H.x11),n(H.y01,H.x01),!k))):(D.moveTo(G,K),D.arc(0,0,h,A,j,!k)):D.moveTo(G,K),!(m>1e-12)||!(P>1e-12)?D.lineTo(q,J):z>1e-12?(V=b(q,J,Y,X,m,-z,k),H=b(G,K,Z,Q,m,-z,k),D.lineTo(V.cx+V.x01,V.cy+V.y01),z<R?D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,m,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),k),D.arc(H.cx,H.cy,z,n(H.y11,H.x11),n(H.y01,H.x01),!k))):D.arc(0,0,m,N,M,k)}if(D.closePath(),e)return D=null,e+``||null}return k.centroid=function(){var e=(+s.apply(this,arguments)+ +x.apply(this,arguments))/2,t=(+w.apply(this,arguments)+ +T.apply(this,arguments))/2-i/2;return[u(t)*e,a(t)*e]},k.innerRadius=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),k):s},k.outerRadius=function(t){return arguments.length?(x=typeof t==`function`?t:e(+t),k):x},k.cornerRadius=function(t){return arguments.length?(S=typeof t==`function`?t:e(+t),k):S},k.padRadius=function(t){return arguments.length?(C=t==null?null:typeof t==`function`?t:e(+t),k):C},k.startAngle=function(t){return arguments.length?(w=typeof t==`function`?t:e(+t),k):w},k.endAngle=function(t){return arguments.length?(T=typeof t==`function`?t:e(+t),k):T},k.padAngle=function(t){return arguments.length?(E=typeof t==`function`?t:e(+t),k):E},k.context=function(e){return arguments.length?(D=e??null,k):D},k}export{x as t};
@@ -0,0 +1 @@
1
+ import"./chunk-KEIR6QF5-BfrZ3jm6.js";import{M as e}from"./mermaid-parser.core-DGsIiQR5.js";export{e as createArchitectureServices};