frizz-server 0.15.39 → 0.15.41
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 +10653 -10425
- package/dist/dev-child.js +11610 -11120
- package/package.json +1 -1
- package/runtime/cc-worker/lib/frizz-tools.mjs +42 -7
- package/web-dist/assets/{abnfDiagram-VRR7QNED-UHHoKAmh.js → abnfDiagram-VRR7QNED-DZgIn5ff.js} +1 -1
- package/web-dist/assets/{arc-DQL-ErF3.js → arc-DwPpA8R3.js} +1 -1
- package/web-dist/assets/architecture-TIHT7OUA-DaAFvFkn.js +1 -0
- package/web-dist/assets/{architectureDiagram-ZJ3FMSHR-CisMb7mA.js → architectureDiagram-ZJ3FMSHR-DbP9lkjM.js} +1 -1
- package/web-dist/assets/{blockDiagram-677ZJIJ3-Cik7wr6Z.js → blockDiagram-677ZJIJ3-DwQN1M8B.js} +1 -1
- package/web-dist/assets/{c4Diagram-LMCZKHZV-C4DuXNBb.js → c4Diagram-LMCZKHZV-BF5QrD37.js} +1 -1
- package/web-dist/assets/channel-B1iPbzai.js +1 -0
- package/web-dist/assets/{chunk-32BRIVSS-BTmfHF-i.js → chunk-32BRIVSS-CA8c9JxF.js} +1 -1
- package/web-dist/assets/{chunk-52WLFC77-6QJNRnso.js → chunk-52WLFC77-CdYcy5t0.js} +1 -1
- package/web-dist/assets/{chunk-C7G6YPKG-gKGltSSH.js → chunk-C7G6YPKG-4uxANQmd.js} +1 -1
- package/web-dist/assets/{chunk-EX3LRPZG-DFnKFpMc.js → chunk-EX3LRPZG-4wMgoywY.js} +1 -1
- package/web-dist/assets/{chunk-FWX5IMBZ-HsPb3djY.js → chunk-FWX5IMBZ-BH3kLM9J.js} +2 -2
- package/web-dist/assets/{chunk-HOUHSVGY-K6EL5721.js → chunk-HOUHSVGY-C6s3cxko.js} +1 -1
- package/web-dist/assets/{chunk-ICXQ74PX-Ba1bSpwx.js → chunk-ICXQ74PX-9fUt4TuP.js} +1 -1
- package/web-dist/assets/{chunk-MOJQB5TN-DOlT8ISV.js → chunk-MOJQB5TN-CXZbnRJB.js} +1 -1
- package/web-dist/assets/{chunk-OGEWGWER-GB8ZWG87.js → chunk-OGEWGWER-kBUaZg1h.js} +1 -1
- package/web-dist/assets/{chunk-PUDLZKDR-DOjBuoPw.js → chunk-PUDLZKDR-T8I9vJeW.js} +1 -1
- package/web-dist/assets/{chunk-Q4XR5HBZ-DggLiCvJ.js → chunk-Q4XR5HBZ-Bc1e-VQ6.js} +1 -1
- package/web-dist/assets/{chunk-RYQCIY6F-Cg0DMMb3.js → chunk-RYQCIY6F-ExoEx5xU.js} +1 -1
- package/web-dist/assets/{chunk-V7JOEXUC-efKSCylE.js → chunk-V7JOEXUC-BejALgmS.js} +1 -1
- package/web-dist/assets/{chunk-VAUOI2AC-C7DRF6vh.js → chunk-VAUOI2AC-DCxTR7U8.js} +1 -1
- package/web-dist/assets/{chunk-VR4S4FIN-D8Gthxkl.js → chunk-VR4S4FIN-BukySeYi.js} +1 -1
- package/web-dist/assets/{chunk-WYO6CB5R-wdico082.js → chunk-WYO6CB5R-Bws7hxsV.js} +1 -1
- package/web-dist/assets/{chunk-XXDRQBXY-CNt4PyS4.js → chunk-XXDRQBXY-DjA78QDQ.js} +1 -1
- package/web-dist/assets/{chunk-ZGVPDNZ5-VIkIfuT_.js → chunk-ZGVPDNZ5-DKIh9xod.js} +1 -1
- package/web-dist/assets/classDiagram-OUVF2IWQ-DQlurrbL.js +1 -0
- package/web-dist/assets/classDiagram-v2-EOCWNBFH-DQlurrbL.js +1 -0
- package/web-dist/assets/{cose-bilkent-JH36ORCC-8TlwkluG.js → cose-bilkent-JH36ORCC-C9L1n6fr.js} +1 -1
- package/web-dist/assets/{cynefin-VYW2F7L2-QXfyccRF.js → cynefin-VYW2F7L2-DI26e4Tc.js} +1 -1
- package/web-dist/assets/{cynefinDiagram-TSTJHNR4-Ckbnz6n8.js → cynefinDiagram-TSTJHNR4-Cp57PoPj.js} +1 -1
- package/web-dist/assets/{dagre-VKFMJZFB-CdLqZ9vZ.js → dagre-VKFMJZFB-DBADVTqD.js} +1 -1
- package/web-dist/assets/{diagram-FQU43EPY-TlyLQuOE.js → diagram-FQU43EPY-0HlOV1mt.js} +1 -1
- package/web-dist/assets/{diagram-G47NLZAW-C5VnN_iP.js → diagram-G47NLZAW-DgR5-Pxg.js} +1 -1
- package/web-dist/assets/{diagram-NH7WQ7WH-C-Jjjoni.js → diagram-NH7WQ7WH-DoGKoxYE.js} +1 -1
- package/web-dist/assets/{diagram-OA4YK3LP-Bq0ldUSW.js → diagram-OA4YK3LP-D5GrLhaq.js} +1 -1
- package/web-dist/assets/{diagram-WEI45ONY-COGcsql2.js → diagram-WEI45ONY-DPj7-RdX.js} +1 -1
- package/web-dist/assets/{dist-BLmNsAjw.js → dist-Bo2PwwGZ.js} +1 -1
- package/web-dist/assets/{ebnfDiagram-CCIWWBDH-sOTluFsf.js → ebnfDiagram-CCIWWBDH-DIXYEkGD.js} +1 -1
- package/web-dist/assets/{erDiagram-Q63AITRT-crXcR_fP.js → erDiagram-Q63AITRT-Dg3MGwWR.js} +1 -1
- package/web-dist/assets/eventmodeling-45OFAUF4-CeTMJyik.js +1 -0
- package/web-dist/assets/flowDiagram-23GEKE2U-QhaJlS-W.js +1 -0
- package/web-dist/assets/{ganttDiagram-NO4QXBWP-BAWN6bvy.js → ganttDiagram-NO4QXBWP-BIcCVXZQ.js} +1 -1
- package/web-dist/assets/{gitGraph-TEB2WS4Q-Bo3MgooL.js → gitGraph-TEB2WS4Q-B5RytoFn.js} +1 -1
- package/web-dist/assets/{gitGraphDiagram-IHSO6WYX-CH1lonY8.js → gitGraphDiagram-IHSO6WYX-Cb-dT-cW.js} +1 -1
- package/web-dist/assets/index-B5PLhSPz.js +375 -0
- package/web-dist/assets/index-D_uxez2a.css +2 -0
- package/web-dist/assets/{info-DKCQHKI2-CNuw1PKv.js → info-DKCQHKI2-GIyDtSFf.js} +1 -1
- package/web-dist/assets/{infoDiagram-FWYZ7A6U-wfvKtUVS.js → infoDiagram-FWYZ7A6U-hajuuFGe.js} +1 -1
- package/web-dist/assets/{ishikawaDiagram-FXEZZL3T-Cd6pcsNE.js → ishikawaDiagram-FXEZZL3T-DFX-Hnma.js} +1 -1
- package/web-dist/assets/{journeyDiagram-5HDEW3XC-C8eEupil.js → journeyDiagram-5HDEW3XC-DCAhU4Cx.js} +1 -1
- package/web-dist/assets/{kanban-definition-HUTT4EX6-D8mxyCwF.js → kanban-definition-HUTT4EX6-C3WHlUdK.js} +1 -1
- package/web-dist/assets/{line-EeORqspv.js → line-CSYf7CnT.js} +1 -1
- package/web-dist/assets/{linear-t0XVf2Gn.js → linear-Di1L0vVF.js} +1 -1
- package/web-dist/assets/{mermaid-parser.core-DoNJI8OY.js → mermaid-parser.core-CudEuGod.js} +3 -3
- package/web-dist/assets/{mermaid.core-CgskhZke.js → mermaid.core-D2s3bQBM.js} +3 -3
- package/web-dist/assets/{mindmap-definition-LN4V7U3C-DEptiIpj.js → mindmap-definition-LN4V7U3C-yXCjhQFg.js} +1 -1
- package/web-dist/assets/{packet-7NZHBO7P-C4qBk5hS.js → packet-7NZHBO7P-3EcXllio.js} +1 -1
- package/web-dist/assets/{pegDiagram-2B236MQR-DIsz8vZ6.js → pegDiagram-2B236MQR-CvS28grz.js} +1 -1
- package/web-dist/assets/{pie-RZYD4A2V-Chq5CM-2.js → pie-RZYD4A2V-CAmA2Snx.js} +1 -1
- package/web-dist/assets/{pieDiagram-ENE6RG2P-Duw9Y7MJ.js → pieDiagram-ENE6RG2P-BYuB33BI.js} +1 -1
- package/web-dist/assets/{quadrantDiagram-ABIIQ3AL-B2loyQdS.js → quadrantDiagram-ABIIQ3AL-CDnklrlY.js} +1 -1
- package/web-dist/assets/{radar-I7S5WNFK-Ci4wMT2i.js → radar-I7S5WNFK-Bz7Vyy1A.js} +1 -1
- package/web-dist/assets/{railroad-3IZDKUUU-CD9cOC_a.js → railroad-3IZDKUUU-CAUAJCaq.js} +1 -1
- package/web-dist/assets/railroad-abnf-AHOZXSZD-B9RdcI3r.js +1 -0
- package/web-dist/assets/railroad-ebnf-EBAXGLYW-Cimw_4Xu.js +1 -0
- package/web-dist/assets/railroad-peg-LSFZ7HO6-DJTpn0sf.js +1 -0
- package/web-dist/assets/{railroadDiagram-RFXS5EU6-Dfxyr8Ow.js → railroadDiagram-RFXS5EU6-DZaYV9Io.js} +1 -1
- package/web-dist/assets/{requirementDiagram-TGXJPOKE-ChYCE2su.js → requirementDiagram-TGXJPOKE-BFlpQunS.js} +1 -1
- package/web-dist/assets/{sankeyDiagram-HTMAVEWB-ChYJIqPA.js → sankeyDiagram-HTMAVEWB-DIOr2M-C.js} +1 -1
- package/web-dist/assets/{sequenceDiagram-DBY2YBRQ-QnGsEhr8.js → sequenceDiagram-DBY2YBRQ-DpYJiT1u.js} +1 -1
- package/web-dist/assets/{src-_jjfntMI.js → src-BkVLS0R9.js} +1 -1
- package/web-dist/assets/{stateDiagram-2N3HPSRC-BEtVKaJx.js → stateDiagram-2N3HPSRC-C4UYGg5g.js} +1 -1
- package/web-dist/assets/stateDiagram-v2-6OUMAXLB-CO0mbUgI.js +1 -0
- package/web-dist/assets/{swimlanes-5IMT3BWC-B37g4lyB.js → swimlanes-5IMT3BWC-cJ6KOezW.js} +1 -1
- package/web-dist/assets/swimlanesDiagram-G3AALYLV-AkPUIZ-W.js +8 -0
- package/web-dist/assets/{timeline-definition-FHXFAJF6-mmc84lzv.js → timeline-definition-FHXFAJF6-yi-2X9QL.js} +1 -1
- package/web-dist/assets/{treeView-QDETBFTQ-C0akfEmj.js → treeView-QDETBFTQ-Bnlc02cs.js} +1 -1
- package/web-dist/assets/{treemap-6X3UGDF4-CJYGBQ5e.js → treemap-6X3UGDF4-DUWj2eOS.js} +1 -1
- package/web-dist/assets/{vennDiagram-L72KCM5P-DVcXN7bh.js → vennDiagram-L72KCM5P-jPHNRI-h.js} +1 -1
- package/web-dist/assets/{wardley-OPB4EBWU-DnCLpmDD.js → wardley-OPB4EBWU-CPbgZ6M1.js} +1 -1
- package/web-dist/assets/{wardleyDiagram-EHGQE667-CmlZyJT0.js → wardleyDiagram-EHGQE667-CrExyaRO.js} +1 -1
- package/web-dist/assets/{xychartDiagram-FW5EYKEG-C7SyAyMt.js → xychartDiagram-FW5EYKEG-CN06Wt1I.js} +1 -1
- package/web-dist/index.html +2 -2
- package/web-dist/assets/architecture-TIHT7OUA-IulOyG2p.js +0 -1
- package/web-dist/assets/channel-BRlHDs_z.js +0 -1
- package/web-dist/assets/classDiagram-OUVF2IWQ-BnF99XsN.js +0 -1
- package/web-dist/assets/classDiagram-v2-EOCWNBFH-BnF99XsN.js +0 -1
- package/web-dist/assets/eventmodeling-45OFAUF4-B_qSvAI0.js +0 -1
- package/web-dist/assets/flowDiagram-23GEKE2U-CGhWHh-0.js +0 -1
- package/web-dist/assets/index-CNFnZV-V.js +0 -375
- package/web-dist/assets/index-MI4kNBXT.css +0 -2
- package/web-dist/assets/railroad-abnf-AHOZXSZD-CB905R_C.js +0 -1
- package/web-dist/assets/railroad-ebnf-EBAXGLYW-DCY5Thxr.js +0 -1
- package/web-dist/assets/railroad-peg-LSFZ7HO6-SUeTwFS3.js +0 -1
- package/web-dist/assets/stateDiagram-v2-6OUMAXLB-oJoLbVhl.js +0 -1
- package/web-dist/assets/swimlanesDiagram-G3AALYLV-BsqxGxJ7.js +0 -8
package/package.json
CHANGED
|
@@ -59,6 +59,8 @@ const SPAWN_THREAD = {
|
|
|
59
59
|
"root cause over twenty hours. " +
|
|
60
60
|
"Spawn only when the work genuinely cannot ride on your own card: a different repo, a different long-lived " +
|
|
61
61
|
"runtime, an effort that must outlive yours. Never spawn merely to clear your own `done` fence. " +
|
|
62
|
+
"The new thread lands on YOUR project's board unless you pass `project`: then it starts on that " +
|
|
63
|
+
"project's board, in that project's checkout — the way to hand work to another repo this Frizz serves. " +
|
|
62
64
|
"You MUST deliberately choose `model` and `effort` to match the NEW thread's task complexity — they are " +
|
|
63
65
|
"required, there is NO default. Do not reflexively pick the cheapest; a hard task on a weak model/effort " +
|
|
64
66
|
"wastes the whole thread.",
|
|
@@ -96,6 +98,13 @@ const SPAWN_THREAD = {
|
|
|
96
98
|
description: "Optional agent backend (default `claude`). If `codex`, `model` must be a codex model id.",
|
|
97
99
|
},
|
|
98
100
|
title: { type: "string", description: "Optional short title for the new thread (else derived from the prompt)." },
|
|
101
|
+
project: {
|
|
102
|
+
type: "string",
|
|
103
|
+
description:
|
|
104
|
+
"Optional: start the thread on ANOTHER project's board, in that project's checkout — its slug, as " +
|
|
105
|
+
"its board URL shows it (`/project/<slug>/…`), or any link into that board. Omitted ⇒ your own " +
|
|
106
|
+
"project. The new thread is told which project you are on, so it can `steer` results back.",
|
|
107
|
+
},
|
|
99
108
|
},
|
|
100
109
|
required: ["prompt", "model", "effort"],
|
|
101
110
|
},
|
|
@@ -863,6 +872,8 @@ const HANDLERS = {
|
|
|
863
872
|
// thread's project.
|
|
864
873
|
const THREAD_LINK = /\/thread\/([^/?#)\s]+)/
|
|
865
874
|
const PROJECT_LINK = /\/project\/([^/?#)\s]+)\/thread\//
|
|
875
|
+
// The project out of any link into a board (`…/project/<p>/…`), for `spawn-thread --project`.
|
|
876
|
+
const PROJECT_SEGMENT = /\/project\/([^/?#)\s]+)/
|
|
866
877
|
|
|
867
878
|
/** The `steer` handler: deliver a message into ANOTHER thread, of this project or any other.
|
|
868
879
|
* @param {Record<string, unknown>} args @returns {Promise<string>} */
|
|
@@ -1144,8 +1155,9 @@ function rpcPath(procedure) {
|
|
|
1144
1155
|
*
|
|
1145
1156
|
* There is deliberately no tool parameter for it and no way to name another project: the id comes from
|
|
1146
1157
|
* the server's stamp, or failing that from the tree we are standing in (`<root>/.frizz/.id`, the same
|
|
1147
|
-
* file project-root.ts treats as identity).
|
|
1148
|
-
*
|
|
1158
|
+
* file project-root.ts treats as identity). A command that reaches ANOTHER project (`steer`, and
|
|
1159
|
+
* `spawn-thread --project`) still lands here, on our own, which verifies the caller and then finds the
|
|
1160
|
+
* other project itself; a model can name a target, never be somebody else.
|
|
1149
1161
|
*
|
|
1150
1162
|
* The walk-up is what makes this work for a worker spawned by a server that predates the stamp, and it
|
|
1151
1163
|
* is the honest source anyway: a worker's project is wherever its cwd is, and that cannot go stale.
|
|
@@ -1195,6 +1207,18 @@ async function spawnThread(args) {
|
|
|
1195
1207
|
if (typeof args.title === "string" && args.title.trim()) body.title = args.title.trim()
|
|
1196
1208
|
if (args.backend === "claude" || args.backend === "codex") body.backend = args.backend
|
|
1197
1209
|
|
|
1210
|
+
// ANOTHER PROJECT'S BOARD goes through OUR project's `spawnThread`, as a steer does: the server checks
|
|
1211
|
+
// that we are a real thread, finds the project, and writes the footer itself, because it knows our
|
|
1212
|
+
// project's slug and we hold only its id.
|
|
1213
|
+
const rawProject = typeof args.project === "string" ? args.project.trim() : ""
|
|
1214
|
+
if (rawProject) {
|
|
1215
|
+
const project = decodeURIComponent(PROJECT_SEGMENT.exec(rawProject)?.[1] ?? rawProject)
|
|
1216
|
+
const { prompt: _withFooter, ...rest } = body
|
|
1217
|
+
const result = (await callRpc("spawnThread", { ...rest, prompt, from: threadSlug(), project }))?.result
|
|
1218
|
+
if (typeof result?.slug !== "string" || !result.slug) throw new Error(`spawnThread returned no slug: ${JSON.stringify(result)?.slice(0, 300)}`)
|
|
1219
|
+
return spawnedReceipt(result.slug, typeof body.title === "string" ? body.title : result.slug, result.project)
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1198
1222
|
const port = serverLockPort()
|
|
1199
1223
|
const controller = new AbortController()
|
|
1200
1224
|
const timer = setTimeout(() => controller.abort(), DISPATCH_TIMEOUT_MS)
|
|
@@ -1220,13 +1244,21 @@ async function spawnThread(args) {
|
|
|
1220
1244
|
const payload = await res.json().catch(() => null)
|
|
1221
1245
|
const slug = payload?.result?.slug
|
|
1222
1246
|
if (typeof slug !== "string" || !slug) throw new Error(`dispatch response missing a slug: ${JSON.stringify(payload)?.slice(0, 300)}`)
|
|
1223
|
-
|
|
1247
|
+
return spawnedReceipt(slug, typeof body.title === "string" ? body.title : slug, undefined)
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/** What the spawner reads back. `project` is the new thread's project slug when it is not ours.
|
|
1251
|
+
* @param {string} slug @param {string} label @param {string | undefined} project @returns {string} */
|
|
1252
|
+
function spawnedReceipt(slug, label, project) {
|
|
1253
|
+
const where = project ? ` on the \`${project}\` project's board` : " on the board"
|
|
1254
|
+
const steer = project ? `frizzctl steer ${slug} --project ${project}` : `frizzctl steer ${slug}`
|
|
1255
|
+
const href = project ? `/project/${project}/thread/${slug}` : `/thread/${slug}`
|
|
1224
1256
|
return (
|
|
1225
|
-
`Spawned a new frizz thread \`${slug}\`. It is now
|
|
1257
|
+
`Spawned a new frizz thread \`${slug}\`. It is now${where} driving independently — it reports ` +
|
|
1226
1258
|
`to the human via its own final message, so do not wait on a result from it. It knows your slug: if ` +
|
|
1227
1259
|
`its prompt asked for results back, they arrive as a \`steer\` that wakes you. You can message it ` +
|
|
1228
|
-
`the same way, with
|
|
1229
|
-
`Paste this link to let the human open it in the drawer:\n\n[${label}](
|
|
1260
|
+
`the same way, with \`${steer}\`.\n\n` +
|
|
1261
|
+
`Paste this link to let the human open it in the drawer:\n\n[${label}](${href})`
|
|
1230
1262
|
)
|
|
1231
1263
|
}
|
|
1232
1264
|
|
|
@@ -2156,7 +2188,10 @@ const CLI = {
|
|
|
2156
2188
|
spawn_thread: {
|
|
2157
2189
|
group: "Other threads",
|
|
2158
2190
|
summary: "Dispatch a new, separate top-level thread (the last resort)",
|
|
2159
|
-
examples: [
|
|
2191
|
+
examples: [
|
|
2192
|
+
'frizzctl spawn-thread --model opus --effort high --title "Port the relay to Bun" --prompt-file prompt.md',
|
|
2193
|
+
'frizzctl spawn-thread --project nub --model opus --effort high --title "Bump the SDK pin" --prompt-file prompt.md',
|
|
2194
|
+
],
|
|
2160
2195
|
},
|
|
2161
2196
|
}
|
|
2162
2197
|
|
package/web-dist/assets/{abnfDiagram-VRR7QNED-UHHoKAmh.js → abnfDiagram-VRR7QNED-DZgIn5ff.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e,t}from"./mermaid-parser.core-
|
|
1
|
+
import{m as e,t}from"./mermaid-parser.core-CudEuGod.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-BkVLS0R9.js";import"./chunk-WYO6CB5R-Bws7hxsV.js";import"./chunk-VAUOI2AC-DCxTR7U8.js";import{n as i,r as a,t as o}from"./chunk-MOJQB5TN-CXZbnRJB.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-
|
|
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-Bo2PwwGZ.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-CudEuGod.js";export{e as createArchitectureServices};
|