@diffohq/diffo 0.13.0 → 0.14.1
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/cli.mjs +48 -31
- package/dist/client/assets/{abnfDiagram-O67JEVCF-BoZIdrQ0.js → abnfDiagram-O67JEVCF-CWLH81FZ.js} +1 -1
- package/dist/client/assets/{arc-fYkjRrYS.js → arc-Boi3vJx1.js} +1 -1
- package/dist/client/assets/architecture-7GRP2DOG-6Io79Z_R.js +1 -0
- package/dist/client/assets/{architectureDiagram-NJMV4G6O-CDRlTc3i.js → architectureDiagram-NJMV4G6O-Dv6FL33A.js} +1 -1
- package/dist/client/assets/{blockDiagram-BEXU5L5S-CDDMsyAL.js → blockDiagram-BEXU5L5S-JL6NkjcT.js} +1 -1
- package/dist/client/assets/{c4Diagram-YGBWAQC7-HNOdAbmj.js → c4Diagram-YGBWAQC7-BX8kio45.js} +1 -1
- package/dist/client/assets/channel-DYSvh7rY.js +1 -0
- package/dist/client/assets/{chunk-3FUC2YCW-DEAcbVzc.js → chunk-3FUC2YCW-CO9Amjtk.js} +1 -1
- package/dist/client/assets/{chunk-5DYCD2WN-DW1ar98e.js → chunk-5DYCD2WN-2rOrgg5f.js} +1 -1
- package/dist/client/assets/{chunk-742MDFTN-hKrsjbJM.js → chunk-742MDFTN-I1URsrBZ.js} +1 -1
- package/dist/client/assets/{chunk-7INBJB4K-BVmUHFVt.js → chunk-7INBJB4K-CUZj-C6g.js} +1 -1
- package/dist/client/assets/{chunk-7M6MHVWA--FhJ0tDD.js → chunk-7M6MHVWA-DPNR3NbA.js} +1 -1
- package/dist/client/assets/{chunk-7PRAP22T-DJ1KK-VA.js → chunk-7PRAP22T-C9q-YcpS.js} +1 -1
- package/dist/client/assets/{chunk-GTNCS2PH-D0dQiiAn.js → chunk-GTNCS2PH-CzwPny5O.js} +1 -1
- package/dist/client/assets/{chunk-GWA4HPMP-Dlzg-SVk.js → chunk-GWA4HPMP-CRfFZn0F.js} +1 -1
- package/dist/client/assets/{chunk-MBY4JIJT-B888xPNd.js → chunk-MBY4JIJT-BHlU7n-C.js} +1 -1
- package/dist/client/assets/{chunk-NETBCI7D-ZfIXFxq4.js → chunk-NETBCI7D-CEyXgnax.js} +1 -1
- package/dist/client/assets/{chunk-O7XYJQB3-BFTchm4K.js → chunk-O7XYJQB3-DxdkNc8m.js} +1 -1
- package/dist/client/assets/{chunk-UA2S7LBM-BSSq5BDd.js → chunk-UA2S7LBM-CWz4tJRd.js} +1 -1
- package/dist/client/assets/{chunk-WEXAMYUT-CytC9wWZ.js → chunk-WEXAMYUT-Dyj5_bjS.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-DfZRkuvc.js → chunk-XXDRQBXY-D9nUo8qv.js} +1 -1
- package/dist/client/assets/{chunk-Z7XXMR3K-CtwFnS99.js → chunk-Z7XXMR3K-CKwjz3Sm.js} +1 -1
- package/dist/client/assets/{chunk-ZIGJFQKS-Iship3fu.js → chunk-ZIGJFQKS-D9Hg0L-2.js} +1 -1
- package/dist/client/assets/{classDiagram-v2-NBCMYWYE-CL0HwwIs.js → classDiagram-v2-NBCMYWYE-Szi56-yb.js} +1 -1
- package/dist/client/assets/{core-CEkAa8Hj.js → core-CmtFUBrQ.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-jZa2izNc.js → cose-bilkent-JH36ORCC-BWNiEgAI.js} +1 -1
- package/dist/client/assets/{cynefin-OW5HDTMX-Odl5aFL4.js → cynefin-OW5HDTMX-BRwo_ga9.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-VND7K2PF-BZ-6gwYJ.js → cynefinDiagram-VND7K2PF-HwqbUUIy.js} +1 -1
- package/dist/client/assets/{dagre-6A5THRUB-C5YqmXbF.js → dagre-6A5THRUB-Vr9XVRxE.js} +1 -1
- package/dist/client/assets/{diagram-22UHCM2B-du6BUOM7.js → diagram-22UHCM2B-D2AV1t0V.js} +1 -1
- package/dist/client/assets/{diagram-3UASUU5V-Cj0aiI0t.js → diagram-3UASUU5V-BebAfmaQ.js} +1 -1
- package/dist/client/assets/{diagram-ATOU4E4O-3az0B7wi.js → diagram-ATOU4E4O-DyOZr1ty.js} +1 -1
- package/dist/client/assets/{diagram-CDSNMT55-D4PWIx-f.js → diagram-CDSNMT55-CfUcq-A2.js} +1 -1
- package/dist/client/assets/{diagram-MLGK6HIB-DZ9UZ3kh.js → diagram-MLGK6HIB-feBafK9Y.js} +1 -1
- package/dist/client/assets/{diagram-MPIPVDR6-BoD1Jsef.js → diagram-MPIPVDR6-fuRWH1sG.js} +1 -1
- package/dist/client/assets/{dist-BBGvdgC_.js → dist-BNObUdRB.js} +1 -1
- package/dist/client/assets/{dist-C37WRPvx.js → dist-D8Qb0Dmg.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-ZINNZB2B-BSgQLmZy.js → ebnfDiagram-ZINNZB2B-BQOIIWkD.js} +1 -1
- package/dist/client/assets/{elk-276RUBZZ-DstYgRai.js → elk-276RUBZZ-BUXjENa5.js} +1 -1
- package/dist/client/assets/{engine-oniguruma-CyceAcxN.js → engine-oniguruma-BjMH3wEI.js} +1 -1
- package/dist/client/assets/{erDiagram-OPXOYQCR-7smF9sbu.js → erDiagram-OPXOYQCR-CLVWgAj1.js} +1 -1
- package/dist/client/assets/eventmodeling-NTZA5JFV-BnOGyEbk.js +1 -0
- package/dist/client/assets/flowDiagram-KWPJA3E3-Dh4oiyMW.js +1 -0
- package/dist/client/assets/{ganttDiagram-FUAMR5RP-B-5Osz6J.js → ganttDiagram-FUAMR5RP-zhdMVh3n.js} +1 -1
- package/dist/client/assets/{gitGraph-4MIJSDKK-D87w7XbK.js → gitGraph-4MIJSDKK-BRDusxYN.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-X574FWY7-_la8-BaJ.js → gitGraphDiagram-X574FWY7-hi2GrOpe.js} +1 -1
- package/dist/client/assets/{index-CLhdAsfA.css → index-BA230KUb.css} +1 -1
- package/dist/client/assets/{index-DtESTuhh.js → index-BBBJbJZo.js} +4 -4
- package/dist/client/assets/{info-A6RAGUB7-C-knrB0k.js → info-A6RAGUB7-B8_M0GwD.js} +1 -1
- package/dist/client/assets/{infoDiagram-VRGFBTTK-D-a9i60q.js → infoDiagram-VRGFBTTK-D1SckQLr.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-OU5B5YK6-CVlIo_3X.js → ishikawaDiagram-OU5B5YK6-BWGRW6iu.js} +1 -1
- package/dist/client/assets/{journeyDiagram-ZHPQQLJL-DNN172FR.js → journeyDiagram-ZHPQQLJL-BZMBlD-u.js} +1 -1
- package/dist/client/assets/{kanban-definition-PNTS6WVX-CTM7un_9.js → kanban-definition-PNTS6WVX-BawAhHrc.js} +1 -1
- package/dist/client/assets/{line-BVROoC_f.js → line-Kb3oE4Aw.js} +1 -1
- package/dist/client/assets/{linear-Dq2kWMzC.js → linear-CzZmB-YY.js} +1 -1
- package/dist/client/assets/{mermaid-parser.core-CZnxUEP9.js → mermaid-parser.core-30zdyqZr.js} +3 -3
- package/dist/client/assets/{mermaid.core-DQfLFXRp.js → mermaid.core-BZsTuSGk.js} +4 -4
- package/dist/client/assets/{mindmap-definition-NLK3R4M7-9FiU7GGj.js → mindmap-definition-NLK3R4M7-Bm7FCTi7.js} +1 -1
- package/dist/client/assets/{packet-AYTQ26CC-DfKt3I5c.js → packet-AYTQ26CC-BwuhQpcj.js} +1 -1
- package/dist/client/assets/{pegDiagram-GJSIUBJH-L-YlPkPW.js → pegDiagram-GJSIUBJH-BbRs1Ryb.js} +1 -1
- package/dist/client/assets/{pie-WAS4IAKB-B0HbZlq2.js → pie-WAS4IAKB-DtQofJX0.js} +1 -1
- package/dist/client/assets/{pieDiagram-5QR66LMP-BVdfXps8.js → pieDiagram-5QR66LMP-Cdu1hQd1.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-O4NWA36T-QH6hqlCy.js → quadrantDiagram-O4NWA36T-Bshr17Y5.js} +1 -1
- package/dist/client/assets/{radar-RG4KPBEZ-NEsrd3fh.js → radar-RG4KPBEZ-BuerLUtq.js} +1 -1
- package/dist/client/assets/{railroad-74A4TZTK-tfd8QCZh.js → railroad-74A4TZTK-BsE8b9hd.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-CADz2x_5.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-CfWuG45A.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-9Ce0sj3N.js +1 -0
- package/dist/client/assets/{railroadDiagram-XR7U4H2S-0Ssyzmoq.js → railroadDiagram-XR7U4H2S-BqIA3pC6.js} +1 -1
- package/dist/client/assets/{requirementDiagram-PLB6GJNP-BbTyrM1t.js → requirementDiagram-PLB6GJNP-Bm2AGotF.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-IPEJSGJF-DC19Csw2.js → sankeyDiagram-IPEJSGJF-99nr1xkQ.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-PO4LG4MO-BfXpO9SU.js → sequenceDiagram-PO4LG4MO-CApQASjN.js} +1 -1
- package/dist/client/assets/{src-BDAo9cqO.js → src-BSYgMDEE.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-GCMORJYK-CJtoHRQj.js → stateDiagram-v2-GCMORJYK-CrQnTrn1.js} +1 -1
- package/dist/client/assets/{swimlanes-2SLR337P-CL4G37sB.js → swimlanes-2SLR337P-Ce21f9vx.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-TC7HE7FX-8cvzmsNb.js +8 -0
- package/dist/client/assets/{timeline-definition-EJHVYXUP-BsoqjuBr.js → timeline-definition-EJHVYXUP-BoeRsX3e.js} +1 -1
- package/dist/client/assets/{treeView-Q6P3EWNA-C2hNFjOh.js → treeView-Q6P3EWNA-HKKOZRne.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-MgVJBClO.js → treemap-WGGIJYW6-BG5rp2bZ.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-POWQR4AR-BTSyhoCL.js → usecaseDiagram-POWQR4AR-sx5gD3FR.js} +1 -1
- package/dist/client/assets/{vennDiagram-UO4OBE2U-D8p2A125.js → vennDiagram-UO4OBE2U-ckr2KNS0.js} +1 -1
- package/dist/client/assets/{wardley-WFR3VGLG-Vd1odXpu.js → wardley-WFR3VGLG-C52x6tow.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VNRHLVJA-CMNo3ww-.js → wardleyDiagram-VNRHLVJA-C-4Ioqpr.js} +1 -1
- package/dist/client/assets/{xychartDiagram-PMCCYNJV-DiYRsm5a.js → xychartDiagram-PMCCYNJV-C0feTPPk.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/dist/client/assets/architecture-7GRP2DOG-CCprzj8P.js +0 -1
- package/dist/client/assets/channel-BYMbxvXG.js +0 -1
- package/dist/client/assets/eventmodeling-NTZA5JFV-TLrmyUk5.js +0 -1
- package/dist/client/assets/flowDiagram-KWPJA3E3-yGNY04u2.js +0 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-BA0yaqMa.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-Dap5WX0o.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-CH9mx0be.js +0 -1
- package/dist/client/assets/swimlanesDiagram-TC7HE7FX-BqEDT2aG.js +0 -8
package/dist/cli.mjs
CHANGED
|
@@ -421,13 +421,17 @@ const HELP_AGENT_PR = `Reviewing a pull request (\`diffo <PR URL | owner/repo#N
|
|
|
421
421
|
on late completions") is a thought on its way to the author: write the
|
|
422
422
|
review comment they would leave, in their voice, and attach it with
|
|
423
423
|
\`--pr-comment "<text>"\` on your reply (or your comment). It shows under
|
|
424
|
-
your reply with Add
|
|
425
|
-
reply, never in the comment. Attach one when they state a
|
|
426
|
-
their hunch proves right,
|
|
427
|
-
question turns up
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
424
|
+
your reply with Add as PR comment draft / Edit / Dismiss; your evidence
|
|
425
|
+
stays in the reply, never in the comment. Attach one when they state a
|
|
426
|
+
finding, their hunch proves right, they ask you to draft it, or a plain
|
|
427
|
+
question turns up something the author should hear; when unsure, lean
|
|
428
|
+
toward attaching — the reviewer would rather dismiss one than type it. Not
|
|
429
|
+
when they were wrong (say so privately), not on pushback against your own
|
|
430
|
+
reply — redraft the one already in the thread instead — and not when asked
|
|
431
|
+
but you have nothing worth saying to the author: say so privately, never
|
|
432
|
+
invent one. Keep it to one or two short sentences, the point first, the
|
|
433
|
+
way a person types a review comment; no preamble, no "Suggest …", no
|
|
434
|
+
report.
|
|
431
435
|
- The guide and layers work as above, built from the description, the commits
|
|
432
436
|
and the diff; skip the guide when the description already orients.
|
|
433
437
|
- When the reviewer submits, a poll returns a \`"kind": "submitted"\` notice:
|
|
@@ -527,27 +531,38 @@ is a review comment. Write that comment for them, attached to your reply:
|
|
|
527
531
|
|
|
528
532
|
${CLI} reply <threadId> --message "<your private answer>" --pr-comment "<the comment>"
|
|
529
533
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
the
|
|
536
|
-
|
|
537
|
-
comment
|
|
538
|
-
|
|
539
|
-
|
|
534
|
+
When unsure, lean toward attaching: the reviewer would rather dismiss a
|
|
535
|
+
comment they did not need than type one you could have written. Attach one
|
|
536
|
+
when they state a finding (a nit included); when a hunch phrased as a
|
|
537
|
+
question turns out right; when they ask you to write it up; and when the
|
|
538
|
+
answer to a plain question is something the author should hear too (a case
|
|
539
|
+
the change misses, a name that misleads, a check that is dead). Not every
|
|
540
|
+
answer is — a question that only clarifies the code for the reviewer gets a
|
|
541
|
+
reply and no comment. Leave it off when they were wrong — say so privately —
|
|
542
|
+
or when they are pushing back on your own reply; then redraft the comment
|
|
543
|
+
already in the thread, which replaces it. Asked to suggest a change where you find nothing worth saying to the
|
|
544
|
+
author, say so privately and attach nothing: a comment invented to fill the
|
|
545
|
+
request is the one thing the reviewer cannot tell apart from a finding. On a
|
|
546
|
+
comment of your own (\`${CLI} comment\`), the same flag carries a finding you
|
|
547
|
+
can show, never a hunch.
|
|
540
548
|
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
549
|
+
Write it the way a person types a review comment at the line: one or two
|
|
550
|
+
short sentences, the point first, done. "This resets the streak on late
|
|
551
|
+
completions — should it?" is a review comment. A paragraph that states the
|
|
552
|
+
finding, explains why it matters and proposes the fix is not; it is a report,
|
|
553
|
+
and the reviewer rewrites it every time. No preamble ("This reads as…"), no
|
|
554
|
+
"Suggest …" or "Consider …" framing, no restating what the diff already
|
|
555
|
+
shows, no examples in parentheses, no hedging. Name the fix only when it is
|
|
556
|
+
not obvious from the finding, and when it is local to the anchored lines put
|
|
557
|
+
it in a \`\`\`suggestion block instead of prose. A question is often the
|
|
558
|
+
whole comment. Nothing about you, the worktree, tests you ran, or Diffo —
|
|
559
|
+
that evidence goes in --message, where the reviewer reads it. Match how this
|
|
560
|
+
reviewer writes: their own review comments on this pull request are quoted
|
|
561
|
+
under "The reviewer's voice" when there are any.
|
|
547
562
|
|
|
548
|
-
Nothing you attach reaches GitHub. It appears under your reply with Add
|
|
549
|
-
|
|
550
|
-
what happened to each.`;
|
|
563
|
+
Nothing you attach reaches GitHub. It appears under your reply with Add as
|
|
564
|
+
PR comment draft / Edit / Dismiss; the reviewer decides, and the submit
|
|
565
|
+
notice tells you what happened to each.`;
|
|
551
566
|
const PR_DOCTRINE = {
|
|
552
567
|
guide: {
|
|
553
568
|
when: "the pull request description leaves a cold reader without the shape of the change — skip when the description already orients",
|
|
@@ -664,7 +679,7 @@ ${intentContract(threads, D).map((line) => ` ${line}`).join("\n")}
|
|
|
664
679
|
|
|
665
680
|
Change only what these threads ask about — the reviewer is mid-read. Re-read
|
|
666
681
|
the current file before editing; the code may have moved. Resolving a thread
|
|
667
|
-
is the reviewer's call, never yours.${D.prComment ? `\n\nA private message that states a finding about the code is a review comment in the making: attach the comment the reviewer would leave the author, in their voice, with \`--pr-comment "<text>"\` on your reply (evidence stays in --message). Not when they were wrong, not on pushback against your reply. \`${CLI} help agent\` has the whole rule.` : ""}`;
|
|
682
|
+
is the reviewer's call, never yours.${D.prComment ? `\n\nA private message that states a finding about the code is a review comment in the making: attach the comment the reviewer would leave the author, in their voice, with \`--pr-comment "<text>"\` on your reply (evidence stays in --message). When unsure, lean toward attaching; one or two short sentences, the point first. Not when they were wrong, not on pushback against your reply. \`${CLI} help agent\` has the whole rule.` : ""}`;
|
|
668
683
|
}
|
|
669
684
|
function replyProtocol(threads, mode = "full", D = AUTHOR_DOCTRINE) {
|
|
670
685
|
if (mode === "compact") return compactProtocol(threads, D);
|
|
@@ -1585,10 +1600,12 @@ Use it when your message ends in a decision that is theirs to make
|
|
|
1585
1600
|
on a message that only reports.
|
|
1586
1601
|
--pr-comment, on a pull request only, attaches the review comment the
|
|
1587
1602
|
reviewer would leave the author: in their voice, to the author, as GitHub
|
|
1588
|
-
will show it
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1603
|
+
will show it — one or two short sentences, the point first (Markdown; a
|
|
1604
|
+
\`\`\`suggestion block when the fix is local to the anchored lines). When
|
|
1605
|
+
unsure, lean toward attaching; the reviewer would rather dismiss it than
|
|
1606
|
+
type it. It appears under your reply with Add as PR comment draft / Edit / Dismiss;
|
|
1607
|
+
nothing posts until the reviewer submits. Your evidence goes in --message,
|
|
1608
|
+
never in the comment. \`diffo help agent\` says when to attach one.
|
|
1592
1609
|
Messages render GitHub-flavored markdown; a \`\`\`mermaid fence renders as a
|
|
1593
1610
|
diagram in the review.
|
|
1594
1611
|
|
package/dist/client/assets/{abnfDiagram-O67JEVCF-BoZIdrQ0.js → abnfDiagram-O67JEVCF-CWLH81FZ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e,t}from"./mermaid-parser.core-
|
|
1
|
+
import{m as e,t}from"./mermaid-parser.core-30zdyqZr.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-BSYgMDEE.js";import"./chunk-O7XYJQB3-DxdkNc8m.js";import{n as i,r as a,t as o}from"./chunk-GTNCS2PH-CzwPny5O.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BZsTuSGk.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-fybaL0A-.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-fybaL0A-.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-D8Qb0Dmg.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-FOHPRMQF-DzxwRta7.js";import{M as e}from"./mermaid-parser.core-30zdyqZr.js";export{e as createArchitectureServices};
|