frizz-server 0.15.36 → 0.15.38

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 (101) hide show
  1. package/dist/claude-agent-broker.js +13883 -13671
  2. package/dist/dev-child.js +15746 -15473
  3. package/package.json +1 -1
  4. package/runtime/cc-worker/hooks/deny-ask.mjs +1 -1
  5. package/runtime/cc-worker/lib/frizz-tools.mjs +7 -6
  6. package/web-dist/assets/{abnfDiagram-VRR7QNED-BzLd2rzl.js → abnfDiagram-VRR7QNED-x6wleAo1.js} +1 -1
  7. package/web-dist/assets/{arc-6ypWbxt5.js → arc-CNHqQdyw.js} +1 -1
  8. package/web-dist/assets/architecture-TIHT7OUA-jM6TLD43.js +1 -0
  9. package/web-dist/assets/{architectureDiagram-ZJ3FMSHR-4xTQB-AO.js → architectureDiagram-ZJ3FMSHR-XY4f_0s3.js} +1 -1
  10. package/web-dist/assets/{blockDiagram-677ZJIJ3-Dv1IXe2L.js → blockDiagram-677ZJIJ3-CI27m2T3.js} +1 -1
  11. package/web-dist/assets/{c4Diagram-LMCZKHZV-PtyT5WyL.js → c4Diagram-LMCZKHZV-CUMQ8qis.js} +1 -1
  12. package/web-dist/assets/channel-uU4tbAvD.js +1 -0
  13. package/web-dist/assets/{chunk-32BRIVSS-BMpWYC8x.js → chunk-32BRIVSS-CWSIgRkq.js} +1 -1
  14. package/web-dist/assets/{chunk-52WLFC77-_d5fiyD5.js → chunk-52WLFC77-CXW1E3Kx.js} +1 -1
  15. package/web-dist/assets/{chunk-C7G6YPKG-QP-6uyHY.js → chunk-C7G6YPKG-CO7HkGPV.js} +1 -1
  16. package/web-dist/assets/{chunk-EX3LRPZG-CGYxDJQ7.js → chunk-EX3LRPZG-Bz5PEnY7.js} +1 -1
  17. package/web-dist/assets/{chunk-FWX5IMBZ-D8MqQvqS.js → chunk-FWX5IMBZ-bkMK0qZe.js} +2 -2
  18. package/web-dist/assets/{chunk-HOUHSVGY-CnA0sC9_.js → chunk-HOUHSVGY-DgpoyJsY.js} +1 -1
  19. package/web-dist/assets/{chunk-ICXQ74PX-CUtgun-D.js → chunk-ICXQ74PX-kq1mza50.js} +1 -1
  20. package/web-dist/assets/{chunk-MOJQB5TN-DYbZ-5Hy.js → chunk-MOJQB5TN-BV2DsS4P.js} +1 -1
  21. package/web-dist/assets/{chunk-OGEWGWER-A0S5NOHD.js → chunk-OGEWGWER-H3vKN7gk.js} +1 -1
  22. package/web-dist/assets/{chunk-PUDLZKDR-C7DmSyb9.js → chunk-PUDLZKDR-daMHzswy.js} +1 -1
  23. package/web-dist/assets/{chunk-Q4XR5HBZ-DpWLIIs1.js → chunk-Q4XR5HBZ-BwmsOH7P.js} +1 -1
  24. package/web-dist/assets/{chunk-RYQCIY6F-CNbSDktn.js → chunk-RYQCIY6F-D8ei5qYa.js} +1 -1
  25. package/web-dist/assets/{chunk-V7JOEXUC-XztiRZpr.js → chunk-V7JOEXUC-DrIe9bP_.js} +1 -1
  26. package/web-dist/assets/{chunk-VAUOI2AC-wsHYMuRX.js → chunk-VAUOI2AC-CvshoAK-.js} +1 -1
  27. package/web-dist/assets/{chunk-VR4S4FIN-Dqt3SecG.js → chunk-VR4S4FIN-Bpg84Ywd.js} +1 -1
  28. package/web-dist/assets/{chunk-WYO6CB5R-BDR74cbF.js → chunk-WYO6CB5R-R9HfLSXE.js} +1 -1
  29. package/web-dist/assets/{chunk-XXDRQBXY-DF3PV9_U.js → chunk-XXDRQBXY-COe_ss16.js} +1 -1
  30. package/web-dist/assets/{chunk-ZGVPDNZ5-CYKrS6k-.js → chunk-ZGVPDNZ5-B5pOLr4z.js} +1 -1
  31. package/web-dist/assets/classDiagram-OUVF2IWQ-D7mmohjF.js +1 -0
  32. package/web-dist/assets/classDiagram-v2-EOCWNBFH-D7mmohjF.js +1 -0
  33. package/web-dist/assets/{cose-bilkent-JH36ORCC-GQRUJz6Q.js → cose-bilkent-JH36ORCC-BffqzHJy.js} +1 -1
  34. package/web-dist/assets/{cynefin-VYW2F7L2-CEw679qI.js → cynefin-VYW2F7L2-Cyg2eosI.js} +1 -1
  35. package/web-dist/assets/{cynefinDiagram-TSTJHNR4-JViugl84.js → cynefinDiagram-TSTJHNR4--Ehi3oTN.js} +1 -1
  36. package/web-dist/assets/{dagre-VKFMJZFB-D_XISGh5.js → dagre-VKFMJZFB-C7GJgpSF.js} +1 -1
  37. package/web-dist/assets/{diagram-FQU43EPY-BBvJPWa5.js → diagram-FQU43EPY-B1VBZmCW.js} +1 -1
  38. package/web-dist/assets/{diagram-G47NLZAW-BXjl3tm9.js → diagram-G47NLZAW-DOOlzQoT.js} +1 -1
  39. package/web-dist/assets/{diagram-NH7WQ7WH-CB4Qqp3c.js → diagram-NH7WQ7WH-DYAvSerX.js} +1 -1
  40. package/web-dist/assets/{diagram-OA4YK3LP-C1ARCNog.js → diagram-OA4YK3LP--bS_vMjK.js} +1 -1
  41. package/web-dist/assets/{diagram-WEI45ONY-CpCUZLJc.js → diagram-WEI45ONY-DIcmpinl.js} +1 -1
  42. package/web-dist/assets/{dist-Dwwr5jX2.js → dist-BpmNVPOD.js} +1 -1
  43. package/web-dist/assets/{ebnfDiagram-CCIWWBDH-D7mR16Ag.js → ebnfDiagram-CCIWWBDH-DNhVEIWW.js} +1 -1
  44. package/web-dist/assets/{erDiagram-Q63AITRT-BCRGlP9M.js → erDiagram-Q63AITRT-Bj2l82Cv.js} +1 -1
  45. package/web-dist/assets/eventmodeling-45OFAUF4-BNhew43n.js +1 -0
  46. package/web-dist/assets/flowDiagram-23GEKE2U-CAKD6Pxo.js +1 -0
  47. package/web-dist/assets/{ganttDiagram-NO4QXBWP-BAXmkT1G.js → ganttDiagram-NO4QXBWP-J6XnWEf6.js} +1 -1
  48. package/web-dist/assets/{gitGraph-TEB2WS4Q-DM8kT1ad.js → gitGraph-TEB2WS4Q-Bn2iyUpg.js} +1 -1
  49. package/web-dist/assets/{gitGraphDiagram-IHSO6WYX-DMImGysS.js → gitGraphDiagram-IHSO6WYX-Dlt8JcWn.js} +1 -1
  50. package/web-dist/assets/index-CI2idbKe.js +375 -0
  51. package/web-dist/assets/index-CplNlfCI.css +2 -0
  52. package/web-dist/assets/{info-DKCQHKI2-BQb_iI3q.js → info-DKCQHKI2-DDQ1BQ7N.js} +1 -1
  53. package/web-dist/assets/{infoDiagram-FWYZ7A6U-Ct1XW6Vu.js → infoDiagram-FWYZ7A6U-WyZFQNas.js} +1 -1
  54. package/web-dist/assets/{ishikawaDiagram-FXEZZL3T-BFyYN2ha.js → ishikawaDiagram-FXEZZL3T-DykxWN2H.js} +1 -1
  55. package/web-dist/assets/{journeyDiagram-5HDEW3XC-DrUJhqBw.js → journeyDiagram-5HDEW3XC-DZFFV--o.js} +1 -1
  56. package/web-dist/assets/{kanban-definition-HUTT4EX6-GimsniJC.js → kanban-definition-HUTT4EX6-B_S6rPA-.js} +1 -1
  57. package/web-dist/assets/{line-CIKzP7MH.js → line-BjrhB9dh.js} +1 -1
  58. package/web-dist/assets/{linear-MEtHrEWG.js → linear-Eu7hosv5.js} +1 -1
  59. package/web-dist/assets/{mermaid-parser.core-CnhajE2x.js → mermaid-parser.core-Bbjd0FBj.js} +3 -3
  60. package/web-dist/assets/{mermaid.core-Dh_8ulL-.js → mermaid.core-M8MrvBBx.js} +3 -3
  61. package/web-dist/assets/{mindmap-definition-LN4V7U3C-BaMFojIk.js → mindmap-definition-LN4V7U3C-ChtepNH3.js} +1 -1
  62. package/web-dist/assets/{packet-7NZHBO7P-mDmt0diF.js → packet-7NZHBO7P-DKoBXImT.js} +1 -1
  63. package/web-dist/assets/{pegDiagram-2B236MQR-DLat_4lQ.js → pegDiagram-2B236MQR-DAEo8X9w.js} +1 -1
  64. package/web-dist/assets/{pie-RZYD4A2V-DY3pi1L9.js → pie-RZYD4A2V-BFnlQdvo.js} +1 -1
  65. package/web-dist/assets/{pieDiagram-ENE6RG2P-BPs1oSEj.js → pieDiagram-ENE6RG2P-Cz_7EaQk.js} +1 -1
  66. package/web-dist/assets/{quadrantDiagram-ABIIQ3AL-D4uqZQEr.js → quadrantDiagram-ABIIQ3AL-C9BhXszR.js} +1 -1
  67. package/web-dist/assets/{radar-I7S5WNFK-Cbqfq0i8.js → radar-I7S5WNFK-CQBB7-bM.js} +1 -1
  68. package/web-dist/assets/{railroad-3IZDKUUU-CD7yp8pT.js → railroad-3IZDKUUU-BlAokJJ7.js} +1 -1
  69. package/web-dist/assets/railroad-abnf-AHOZXSZD-1U6KQvVY.js +1 -0
  70. package/web-dist/assets/railroad-ebnf-EBAXGLYW-CRkOqqg7.js +1 -0
  71. package/web-dist/assets/railroad-peg-LSFZ7HO6-Cj2FGGgU.js +1 -0
  72. package/web-dist/assets/{railroadDiagram-RFXS5EU6-DfS_KcbE.js → railroadDiagram-RFXS5EU6-xBxaP0uj.js} +1 -1
  73. package/web-dist/assets/{requirementDiagram-TGXJPOKE-CCKkazRm.js → requirementDiagram-TGXJPOKE-Divuldkj.js} +1 -1
  74. package/web-dist/assets/{sankeyDiagram-HTMAVEWB-hUv2PUdO.js → sankeyDiagram-HTMAVEWB-CofMjV2o.js} +1 -1
  75. package/web-dist/assets/{sequenceDiagram-DBY2YBRQ-CNMCKxMB.js → sequenceDiagram-DBY2YBRQ-B2ugDeEO.js} +1 -1
  76. package/web-dist/assets/{src-DTJpt577.js → src-CIZWXdhn.js} +1 -1
  77. package/web-dist/assets/{stateDiagram-2N3HPSRC-LNwuoPUV.js → stateDiagram-2N3HPSRC-BIASYu2M.js} +1 -1
  78. package/web-dist/assets/stateDiagram-v2-6OUMAXLB-COiKXUDZ.js +1 -0
  79. package/web-dist/assets/{swimlanes-5IMT3BWC-CZj51uiO.js → swimlanes-5IMT3BWC-DY8vOYLR.js} +1 -1
  80. package/web-dist/assets/swimlanesDiagram-G3AALYLV-B-KXgsxS.js +8 -0
  81. package/web-dist/assets/{timeline-definition-FHXFAJF6-BdDThbTf.js → timeline-definition-FHXFAJF6-DBv8rojh.js} +1 -1
  82. package/web-dist/assets/{treeView-QDETBFTQ-8UtR_hXi.js → treeView-QDETBFTQ-BVTOVsYY.js} +1 -1
  83. package/web-dist/assets/{treemap-6X3UGDF4-mSibaf_R.js → treemap-6X3UGDF4-Cl4YEFYt.js} +1 -1
  84. package/web-dist/assets/{vennDiagram-L72KCM5P-qXMnTXMX.js → vennDiagram-L72KCM5P-DyyHbFip.js} +1 -1
  85. package/web-dist/assets/{wardley-OPB4EBWU-BAbOfCY5.js → wardley-OPB4EBWU-CQ8RGEiP.js} +1 -1
  86. package/web-dist/assets/{wardleyDiagram-EHGQE667-Dl-v0GEg.js → wardleyDiagram-EHGQE667-lOvMMLld.js} +1 -1
  87. package/web-dist/assets/{xychartDiagram-FW5EYKEG-BOMQGFm7.js → xychartDiagram-FW5EYKEG-DU8wyaMa.js} +1 -1
  88. package/web-dist/index.html +2 -2
  89. package/web-dist/assets/architecture-TIHT7OUA-hjlv6tXM.js +0 -1
  90. package/web-dist/assets/channel-CjVXcW6M.js +0 -1
  91. package/web-dist/assets/classDiagram-OUVF2IWQ-D6gZGXhC.js +0 -1
  92. package/web-dist/assets/classDiagram-v2-EOCWNBFH-D6gZGXhC.js +0 -1
  93. package/web-dist/assets/eventmodeling-45OFAUF4-zm5qhwdz.js +0 -1
  94. package/web-dist/assets/flowDiagram-23GEKE2U-DyUgndNS.js +0 -1
  95. package/web-dist/assets/index-CRDKpLN2.css +0 -2
  96. package/web-dist/assets/index-Dp0kjJ__.js +0 -375
  97. package/web-dist/assets/railroad-abnf-AHOZXSZD-7Wy3Ena7.js +0 -1
  98. package/web-dist/assets/railroad-ebnf-EBAXGLYW-YSZC9jN8.js +0 -1
  99. package/web-dist/assets/railroad-peg-LSFZ7HO6-Bu14aCpp.js +0 -1
  100. package/web-dist/assets/stateDiagram-v2-6OUMAXLB-BoHll64H.js +0 -1
  101. package/web-dist/assets/swimlanesDiagram-G3AALYLV-C9zGta4X.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frizz-server",
3
- "version": "0.15.36",
3
+ "version": "0.15.38",
4
4
  "private": false,
5
5
  "description": "Replaceable Frizz server runtime",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@ process.stdout.write(
32
32
  hookEventName: 'PreToolUse',
33
33
  permissionDecision: 'deny',
34
34
  permissionDecisionReason:
35
- 'Interactive prompts freeze headless workers (no one is at the keyboard to answer). Ask it in a ```question fence in your own message instead: `id:` (a slug of your choosing), `kind:` (`choice`, `multi`, `text` or `secret`), a one-line `question:`, and `options:` as `- label:` items with a one-line `description:` each, the recommended one first with `recommended: true`; context for the human goes below a `---` line, in any Markdown. One fence per question, each self-contained, written actor-explicit — never "I" or "you", which flip meaning when the human clicks an option. Frizz registers it when your message lands and draws its card where you wrote it (`frizzctl ask --help` shows the whole grammar). Asking does not end your turn — keep doing what does not depend on the answer, then rest normally: the question IS the handback (no done fence beside it, and do NOT invoke this tool again). The answer arrives as your next user message.',
35
+ 'Interactive prompts freeze headless workers (no one is at the keyboard to answer). Ask it in a ```question fence in your own message instead: `id:` (a slug of your choosing), `kind:` (`choice`, `multi`, `text` or `secret`), a one-line `question:`, and `options:` as `- label:` items with a one-line `description:` each in sentence case, the recommended one first with `recommended: true`; context for the human goes below a `---` line, in any Markdown. One fence per question, each self-contained, written actor-explicit — never "I" or "you", which flip meaning when the human clicks an option. Frizz registers it when your message lands and draws its card where you wrote it (`frizzctl ask --help` shows the whole grammar). Asking does not end your turn — keep doing what does not depend on the answer, then rest normally: the question IS the handback (no done fence beside it, and do NOT invoke this tool again). The answer arrives as your next user message.',
36
36
  },
37
37
  }),
38
38
  );
@@ -490,17 +490,17 @@ const ASK_RETIRED =
490
490
  "question: Should the settings store use SQLite or a JSON file?\n" +
491
491
  "options:\n" +
492
492
  " - label: SQLite\n" +
493
- " description: transactional, and one store to back up\n" +
493
+ " description: Transactional, and one store to back up\n" +
494
494
  " recommended: true\n" +
495
495
  " - label: JSON file\n" +
496
- " description: no dependency, hand-editable\n" +
496
+ " description: No dependency, hand-editable\n" +
497
497
  "---\n" +
498
498
  "Optional context, in any Markdown: a table, a diff, a callout, a <details> section.\n" +
499
499
  "```\n\n" +
500
500
  "- `id:` is yours to choose: a lowercase slug, unique in this thread for good.\n" +
501
501
  "- `kind:` is `choice` (pick one), `multi` (pick several), `text` (free text) or `secret` (one masked " +
502
502
  "box, for a token or a one-time code).\n" +
503
- "- `question:` is one line. Each option takes `label:`, `description:` (one line), `recommended: true` " +
503
+ "- `question:` is one line. Each option takes `label:`, `description:` (one line, in sentence case), `recommended: true` " +
504
504
  "and `detail: |` (an indented Markdown block). The question may also carry `danger: true`.\n" +
505
505
  "- Every value is read verbatim to the end of its line. A code block inside the fence needs a longer " +
506
506
  "outer fence (````question).\n" +
@@ -726,7 +726,8 @@ const ACTIVITY = {
726
726
 
727
727
  const LINK = {
728
728
  name: "link",
729
- description: "Register a labeled URL or local file underneath this thread's prompt, alongside agents and shells. " +
729
+ description: "Register a labeled URL or local file on this thread, beside its agents and shells: a count above the prompt box " +
730
+ "(`1 link`, `2 files`) that lists it on hover, the side rail in full screen, and Files and links under ⋯ on a phone. " +
730
731
  "Use for dev servers, working documents, reports, and downloads the human will need again. " +
731
732
  "The same label updates its existing row without duplicating or reordering it. " +
732
733
  "HTTP(S) destinations render as Link; local files render as File and use Frizz's existing file reader/opener. " +
@@ -879,7 +880,7 @@ async function link(args) {
879
880
  const result = (await callRpc("upsertOwnLink", { slug: threadSlug(), label, target }))?.result
880
881
  const saved = result?.link
881
882
  if (!saved?.id) throw new Error("Frizz did not return a saved link")
882
- return `Registered ${saved.kind} ${saved.id}: ${saved.label}\n${saved.target}\n\nThis reference stays underneath the prompt. It does not assert a server is running or block completion. Remove it with \`frizzctl unlink ${saved.id}\`.`
883
+ return `Registered ${saved.kind} ${saved.id}: ${saved.label}\n${saved.target}\n\nThe human finds it in the count above this thread's prompt box. It does not assert a server is running or block completion. Remove it with \`frizzctl unlink ${saved.id}\`.`
883
884
  }
884
885
 
885
886
  /** @param {Record<string, unknown>} args @returns {Promise<string>} */
@@ -2106,7 +2107,7 @@ const CLI = {
2106
2107
  },
2107
2108
  link: {
2108
2109
  group: "This thread",
2109
- summary: "Save a link or a file under the prompt box",
2110
+ summary: "Save a link or a file on this thread for the human",
2110
2111
  positional: ["label", "target"],
2111
2112
  examples: ['frizzctl link "Dev server" http://localhost:5173', 'frizzctl link "Audit report" /abs/path/report.md'],
2112
2113
  },
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-CnhajE2x.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-DTJpt577.js";import"./chunk-WYO6CB5R-BDR74cbF.js";import"./chunk-VAUOI2AC-wsHYMuRX.js";import{n as i,r as a,t as o}from"./chunk-MOJQB5TN-DYbZ-5Hy.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-Bbjd0FBj.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-CIZWXdhn.js";import"./chunk-WYO6CB5R-R9HfLSXE.js";import"./chunk-VAUOI2AC-CvshoAK-.js";import{n as i,r as a,t as o}from"./chunk-MOJQB5TN-BV2DsS4P.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-Dwwr5jX2.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-BpmNVPOD.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-Bbjd0FBj.js";export{e as createArchitectureServices};