@engenty/wizards-runtime 0.9.8 → 0.11.0

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 (102) hide show
  1. package/apps/runtime/dist/app.js +34 -1
  2. package/apps/runtime/dist/auth/index.js +10 -1
  3. package/apps/runtime/dist/db/client.js +9 -1
  4. package/apps/runtime/dist/db/live-triggers.js +144 -0
  5. package/apps/runtime/dist/db/migrations/tenant/0022_sync.sql +247 -0
  6. package/apps/runtime/dist/db/migrations/tenant/0023_live_change.sql +167 -0
  7. package/apps/runtime/dist/db/migrations/tenant/0024_live_presence.sql +28 -0
  8. package/apps/runtime/dist/db/migrations/tenant/meta/0022_snapshot.json +3792 -0
  9. package/apps/runtime/dist/db/migrations/tenant/meta/0023_snapshot.json +3860 -0
  10. package/apps/runtime/dist/db/migrations/tenant/meta/0024_snapshot.json +3967 -0
  11. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +21 -0
  12. package/apps/runtime/dist/db/schema.js +101 -0
  13. package/apps/runtime/dist/docs/user-guide/cloud-sync.md +85 -0
  14. package/apps/runtime/dist/docs/user-guide/data.md +4 -4
  15. package/apps/runtime/dist/docs/user-guide/meta.json +2 -0
  16. package/apps/runtime/dist/docs/user-guide/test-and-share.md +4 -14
  17. package/apps/runtime/dist/docs/user-guide/together.md +60 -0
  18. package/apps/runtime/dist/files/blobs.js +13 -0
  19. package/apps/runtime/dist/index.js +11 -1
  20. package/apps/runtime/dist/live/feed.js +34 -0
  21. package/apps/runtime/dist/live/hub.js +200 -0
  22. package/apps/runtime/dist/live/origin.js +53 -0
  23. package/apps/runtime/dist/live/views.js +146 -0
  24. package/apps/runtime/dist/mcp/handler.js +7 -1
  25. package/apps/runtime/dist/mcp/tools.js +51 -2
  26. package/apps/runtime/dist/plugins/jobs.js +7 -0
  27. package/apps/runtime/dist/routes/api.js +177 -1
  28. package/apps/runtime/dist/routes/live.js +85 -0
  29. package/apps/runtime/dist/routes/studio.js +109 -85
  30. package/apps/runtime/dist/services/cloud.js +39 -5
  31. package/apps/runtime/dist/services/presence.js +132 -0
  32. package/apps/runtime/dist/services/projects.js +11 -0
  33. package/apps/runtime/dist/services/space-data.js +33 -6
  34. package/apps/runtime/dist/sync/apply.js +43 -0
  35. package/apps/runtime/dist/sync/client.js +973 -0
  36. package/apps/runtime/dist/sync/hub.js +324 -0
  37. package/apps/runtime/dist/sync/log.js +74 -0
  38. package/apps/runtime/dist/sync/records.js +943 -0
  39. package/apps/runtime/dist/sync/state.js +17 -0
  40. package/apps/runtime/dist/texts.js +2 -0
  41. package/apps/web/dist/assets/AboutDialog-9VcgySrQ.js +1 -0
  42. package/apps/web/dist/assets/{ChangelogDialog-BpEIbAZ8.js → ChangelogDialog-BXvT2VMU.js} +1 -1
  43. package/apps/web/dist/assets/EditorPage-Cvzd0nah.js +4 -0
  44. package/apps/web/dist/assets/{FlowPreview-APXdRflR.js → FlowPreview-BV1NJ0rF.js} +1 -1
  45. package/apps/web/dist/assets/{Harness-BsGXMlLg.js → Harness-DYviBlHB.js} +2 -2
  46. package/apps/web/dist/assets/Marketplace-DTSg7_U7.js +2 -0
  47. package/apps/web/dist/assets/{NewWizardChannels-0JrRdUFd.js → NewWizardChannels-DiujJzOR.js} +1 -1
  48. package/apps/web/dist/assets/NewWizardPage-CngUh9g-.js +7 -0
  49. package/apps/web/dist/assets/OnboardingPage-DFKJnWtw.js +1 -0
  50. package/apps/web/dist/assets/PreviewPane-C0E9OLzB.js +9 -0
  51. package/apps/web/dist/assets/ProjectPage-CYDX-JYc.js +1 -0
  52. package/apps/web/dist/assets/PublicRunner-CkRO_Pw-.js +1 -0
  53. package/apps/web/dist/assets/{ReadOnly-BraZbEG_.js → ReadOnly-E-h9y_QO.js} +1 -1
  54. package/apps/web/dist/assets/SettingsPage-BMgP3aRV.js +2 -0
  55. package/apps/web/dist/assets/SetupPage-DBO_rzj7.js +1 -0
  56. package/apps/web/dist/assets/{SharePage-Dk7zC5Zo.js → SharePage-BvvmYB5N.js} +1 -1
  57. package/apps/web/dist/assets/changelog-zllICQ4q.js +1 -0
  58. package/apps/web/dist/assets/{coins-391m1e4_.js → coins-DQ91VJAB.js} +1 -1
  59. package/apps/web/dist/assets/index-Bjn557f1.js +20 -0
  60. package/apps/web/dist/assets/index-DN0VMwsS.css +1 -0
  61. package/apps/web/dist/assets/{phone-DvgrtyNO.js → phone-jIuRIwyg.js} +1 -1
  62. package/apps/web/dist/assets/{runners-4OBelIgF.js → runners-DloOxEbh.js} +1 -1
  63. package/apps/web/dist/assets/session-BpsCkDv6.js +2 -0
  64. package/apps/web/dist/assets/{settings-menu-xK9A-gaP.js → settings-menu-CoLUNJGQ.js} +1 -1
  65. package/apps/web/dist/assets/theme-2XjIQXH3.js +11 -0
  66. package/apps/web/dist/assets/{ui-BVQk2DtW.js → ui-BIWmkPh6.js} +3 -3
  67. package/apps/web/dist/assets/{upload-BgXbzG6C.js → upload-BcOvBWHS.js} +1 -1
  68. package/apps/web/dist/assets/{useMutation-DkwSQWoD.js → useMutation-CD7HmAxR.js} +1 -1
  69. package/apps/web/dist/assets/{volume-2-DHGoe3Cg.js → volume-2-D2To9w5D.js} +1 -1
  70. package/apps/web/dist/assets/{wrench-Cf_aE3O0.js → wrench-B98ubRvB.js} +1 -1
  71. package/apps/web/dist/index.html +8 -8
  72. package/apps/web/dist/mcp/flow.html +2 -2
  73. package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +12 -0
  74. package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +12 -0
  75. package/node_modules/@engenty/wizards-shared/dist/live.d.ts +46 -0
  76. package/node_modules/@engenty/wizards-shared/dist/live.js +9 -0
  77. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +7 -0
  78. package/node_modules/@engenty/wizards-shared/dist/run.js +14 -0
  79. package/node_modules/@engenty/wizards-shared/dist/sync-merge.d.ts +55 -0
  80. package/node_modules/@engenty/wizards-shared/dist/sync-merge.js +214 -0
  81. package/node_modules/@engenty/wizards-shared/dist/sync.d.ts +166 -0
  82. package/node_modules/@engenty/wizards-shared/dist/sync.js +40 -0
  83. package/node_modules/@engenty/wizards-shared/dist/text-merge.d.ts +14 -0
  84. package/node_modules/@engenty/wizards-shared/dist/text-merge.js +137 -0
  85. package/package.json +1 -1
  86. package/plugin/.claude-plugin/plugin.json +1 -1
  87. package/plugin/plugin.json +1 -1
  88. package/apps/web/dist/assets/AboutDialog-B_Ixp_Tb.js +0 -1
  89. package/apps/web/dist/assets/EditorPage-CKHY4hn4.js +0 -4
  90. package/apps/web/dist/assets/Marketplace-Dr-Qnb-F.js +0 -2
  91. package/apps/web/dist/assets/NewWizardPage-9igFL5O8.js +0 -7
  92. package/apps/web/dist/assets/OnboardingPage-BcK9FUnU.js +0 -1
  93. package/apps/web/dist/assets/PreviewPane-X4LBqA0D.js +0 -4
  94. package/apps/web/dist/assets/ProjectPage-CG0i-KhR.js +0 -1
  95. package/apps/web/dist/assets/PublicRunner-CZR1ziQ4.js +0 -1
  96. package/apps/web/dist/assets/SettingsPage-Bw4tdoV7.js +0 -2
  97. package/apps/web/dist/assets/SetupPage-CvkE2aKx.js +0 -1
  98. package/apps/web/dist/assets/changelog-DDXnAaHm.js +0 -1
  99. package/apps/web/dist/assets/index-BTUtot4r.js +0 -14
  100. package/apps/web/dist/assets/index-DcUL6teA.css +0 -1
  101. package/apps/web/dist/assets/session-DvnGHbDz.js +0 -2
  102. package/apps/web/dist/assets/theme-D3yDT4QT.js +0 -11
@@ -0,0 +1,137 @@
1
+ /**
2
+ * A classic three-way merge of text, line by line (diff3): what one side changed and the other
3
+ * left as it was is taken; where both changed the same lines differently, the merge is not
4
+ * clean. For prose and code (a page's Markdown, a widget's file), not for JSON: a wizard merges
5
+ * by its structure (sync-merge.ts).
6
+ */
7
+ /** Pairs of equal lines `[i in a, j in b]`, in order: a longest common subsequence (Myers). */
8
+ function commonLines(a, b, maxEdits) {
9
+ let start = 0;
10
+ while (start < a.length && start < b.length && a[start] === b[start]) {
11
+ start++;
12
+ }
13
+ let endA = a.length;
14
+ let endB = b.length;
15
+ while (endA > start && endB > start && a[endA - 1] === b[endB - 1]) {
16
+ endA--;
17
+ endB--;
18
+ }
19
+ const pairs = [];
20
+ for (let i = 0; i < start; i++) {
21
+ pairs.push([i, i]);
22
+ }
23
+ const n = endA - start;
24
+ const m = endB - start;
25
+ if (n > 0 && m > 0) {
26
+ const max = n + m;
27
+ const offset = max;
28
+ const v = new Int32Array(2 * max + 2);
29
+ const trace = [];
30
+ let found = false;
31
+ for (let d = 0; d <= max && d <= maxEdits; d++) {
32
+ trace.push(v.slice());
33
+ for (let k = -d; k <= d; k += 2) {
34
+ let x = k === -d || (k !== d && v[offset + k - 1] < v[offset + k + 1])
35
+ ? v[offset + k + 1]
36
+ : v[offset + k - 1] + 1;
37
+ let y = x - k;
38
+ while (x < n && y < m && a[start + x] === b[start + y]) {
39
+ x++;
40
+ y++;
41
+ }
42
+ v[offset + k] = x;
43
+ if (x >= n && y >= m) {
44
+ found = true;
45
+ break;
46
+ }
47
+ }
48
+ if (found) {
49
+ break;
50
+ }
51
+ }
52
+ if (!found) {
53
+ return null;
54
+ }
55
+ // Back along the trace: each step's diagonal is a run of equal lines.
56
+ const middle = [];
57
+ let x = n;
58
+ let y = m;
59
+ for (let d = trace.length - 1; d >= 0 && (x > 0 || y > 0); d--) {
60
+ const t = trace[d];
61
+ const k = x - y;
62
+ const prevK = k === -d || (k !== d && t[offset + k - 1] < t[offset + k + 1]) ? k + 1 : k - 1;
63
+ const prevX = d === 0 ? 0 : t[offset + prevK];
64
+ const prevY = prevX - prevK;
65
+ while (x > prevX && y > prevY) {
66
+ x--;
67
+ y--;
68
+ middle.push([start + x, start + y]);
69
+ }
70
+ if (d > 0) {
71
+ x = prevX;
72
+ y = prevY;
73
+ }
74
+ }
75
+ pairs.push(...middle.reverse());
76
+ }
77
+ for (let i = 0; i < a.length - endA; i++) {
78
+ pairs.push([endA + i, endB + i]);
79
+ }
80
+ return pairs;
81
+ }
82
+ const sameLines = (a, b) => a.length === b.length && a.every((line, i) => line === b[i]);
83
+ /** More differing lines than this between two versions: no merge is tried, it is a conflict. */
84
+ const MAX_EDITS = 4000;
85
+ export function mergeText(base, local, remote) {
86
+ if (local === remote || remote === base) {
87
+ return { text: local, clean: true, conflicts: 0 };
88
+ }
89
+ if (local === base) {
90
+ return { text: remote, clean: true, conflicts: 0 };
91
+ }
92
+ const o = base.split("\n");
93
+ const a = local.split("\n");
94
+ const b = remote.split("\n");
95
+ const inA = commonLines(o, a, MAX_EDITS);
96
+ const inB = commonLines(o, b, MAX_EDITS);
97
+ if (!inA || !inB) {
98
+ return { text: local, clean: false, conflicts: 1 };
99
+ }
100
+ const aOf = new Map(inA.map(([i, j]) => [i, j]));
101
+ const bOf = new Map(inB.map(([i, j]) => [i, j]));
102
+ const out = [];
103
+ let conflicts = 0;
104
+ let i = 0;
105
+ let ia = 0;
106
+ let ib = 0;
107
+ const chunk = (j, ja, jb) => {
108
+ const ob = o.slice(i, j);
109
+ const ac = a.slice(ia, ja);
110
+ const bc = b.slice(ib, jb);
111
+ if (sameLines(ac, ob)) {
112
+ out.push(...bc);
113
+ }
114
+ else if (sameLines(bc, ob) || sameLines(ac, bc)) {
115
+ out.push(...ac);
116
+ }
117
+ else {
118
+ conflicts++;
119
+ out.push(...ac);
120
+ }
121
+ };
122
+ for (let j = 0; j < o.length; j++) {
123
+ const ja = aOf.get(j);
124
+ const jb = bOf.get(j);
125
+ // A line both sides kept where it was: everything before it is one chunk.
126
+ if (ja === undefined || jb === undefined || ja < ia || jb < ib) {
127
+ continue;
128
+ }
129
+ chunk(j, ja, jb);
130
+ out.push(o[j]);
131
+ i = j + 1;
132
+ ia = ja + 1;
133
+ ib = jb + 1;
134
+ }
135
+ chunk(o.length, a.length, b.length);
136
+ return { text: out.join("\n"), clean: conflicts === 0, conflicts };
137
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engenty/wizards-runtime",
3
- "version": "0.9.8",
3
+ "version": "0.11.0",
4
4
  "description": "Make a wish. Get your wizard. It guides you step by step. Let AI do the work. Runs on your machine, on the AI subscription you already have. The runtime, which `npx wizards` installs.",
5
5
  "license": "FSL-1.1-MIT AND CC-BY-4.0",
6
6
  "homepage": "https://engenty.ai",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wizards",
3
3
  "displayName": "engenty wizards",
4
- "version": "0.9.8",
4
+ "version": "0.11.0",
5
5
  "description": "Build page-by-page AI wizards that people open on a shared link — designed, tested and published from Claude Code — run your published ones in the chat, and keep them in a pane beside it.",
6
6
  "author": {
7
7
  "name": "engenty"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "engenty-wizards",
4
- "version": "0.9.8",
4
+ "version": "0.11.0",
5
5
  "description": "Build page-by-page AI wizards that people open on a shared link, test and publish them from the chat, and run your published ones here.",
6
6
  "author": {
7
7
  "name": "engenty",
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{$t as r,Bt as i,Ht as a,Jt as o,Mr as s,Rr as c,Ut as l,Vt as u,Zt as d,on as f,sr as p}from"./ui-BVQk2DtW.js";import{t as m}from"./preload-helper-DpV6A1kQ.js";import{t as h}from"./logo-CGNoptDg.js";import{K as g,it as _,rt as v}from"./index-BTUtot4r.js";import{c as y,f as b}from"./settings-menu-xK9A-gaP.js";import{ReleaseNotes as x,loadReleases as S,releaseDate as C,releaseLabel as w}from"./ChangelogDialog-BpEIbAZ8.js";var T=e(t(),1),E=[{name:`engenty wizards`,description:`credit.engenty-wizards`,homepage:`https://github.com/engenty/wizards`,license:`FSL-1.1-MIT`},{name:`engenty`,description:`credit.engenty`,homepage:`https://github.com/engenty/engenty`,license:`FSL-1.1-MIT`}],D=[{name:`Mastra`,description:`credit.mastra`,homepage:`https://github.com/mastra-ai/mastra`,license:`Apache-2.0`},{name:`AI SDK`,description:`credit.ai-sdk`,homepage:`https://github.com/vercel/ai`,license:`Apache-2.0`},{name:`Model Context Protocol`,description:`credit.model-context-protocol`,homepage:`https://github.com/modelcontextprotocol/typescript-sdk`,license:`MIT`},{name:`Hono`,description:`credit.hono`,homepage:`https://github.com/honojs/hono`,license:`MIT`},{name:`Drizzle ORM`,description:`credit.drizzle-orm`,homepage:`https://github.com/drizzle-team/drizzle-orm`,license:`Apache-2.0`},{name:`libSQL`,description:`credit.libsql`,homepage:`https://github.com/tursodatabase/libsql`,license:`MIT`},{name:`Playwright`,description:`credit.playwright`,homepage:`https://github.com/microsoft/playwright`,license:`Apache-2.0`},{name:`React`,description:`credit.react`,homepage:`https://github.com/facebook/react`,license:`MIT`},{name:`Vite`,description:`credit.vite`,homepage:`https://github.com/vitejs/vite`,license:`MIT`},{name:`Tailwind CSS`,description:`credit.tailwind-css`,homepage:`https://github.com/tailwindlabs/tailwindcss`,license:`MIT`},{name:`React Flow`,description:`credit.react-flow`,homepage:`https://github.com/xyflow/xyflow`,license:`MIT`},{name:`TanStack Query`,description:`credit.tanstack-query`,homepage:`https://github.com/TanStack/query`,license:`MIT`},{name:`xterm.js`,description:`credit.xterm-js`,homepage:`https://github.com/xtermjs/xterm.js`,license:`MIT`},{name:`Lucide`,description:`credit.lucide`,homepage:`https://github.com/lucide-icons/lucide`,license:`ISC`},{name:`Geist & Geist Mono`,description:`credit.geist-geist-mono`,homepage:`https://github.com/vercel/geist-font`,license:`OFL-1.1`},{name:`Space Grotesk`,description:`credit.space-grotesk`,homepage:`https://github.com/floriankarsten/space-grotesk`,license:`OFL-1.1`},{name:`git-cliff`,description:`credit.git-cliff`,homepage:`https://github.com/orhun/git-cliff`,license:`MIT OR Apache-2.0`}],O=e(n(),1),k=(e,...t)=>t.some(t=>t?.toLowerCase().includes(e));function A({name:e,homepage:t,version:n,license:r,description:i}){return(0,O.jsxs)(`li`,{className:`py-2.5`,children:[(0,O.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5`,children:[t?(0,O.jsxs)(`a`,{href:t,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 font-medium text-[0.875rem] text-ink underline-offset-4 hover:underline`,children:[e,(0,O.jsx)(s,{"aria-hidden":!0,className:`size-3 text-ink-4`})]}):(0,O.jsx)(`span`,{className:`font-medium text-[0.875rem] text-ink`,children:e}),n?(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3 tabular-nums`,children:n}):null,(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3`,children:r})]}),i?(0,O.jsx)(`p`,{className:`mt-0.5 text-[0.8125rem] text-ink-3`,children:i}):null]})}function j({title:e,hint:t,children:n}){return(0,O.jsxs)(`section`,{className:`mt-6`,children:[(0,O.jsx)(`h3`,{className:`border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:e}),t?(0,O.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-ink-3`,children:t}):null,n]})}function M({credits:e}){return(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:e.map(e=>(0,O.jsx)(A,{name:e.name,homepage:e.homepage,license:e.license,description:f(e.description)},e.name))})}function N({label:e,packages:t}){return(0,O.jsxs)(`div`,{className:`mt-4`,children:[(0,O.jsx)(`h4`,{className:`font-medium text-[0.75rem] text-ink-3 tracking-wide`,children:e}),(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:t.map(e=>(0,O.jsx)(A,{...e},e.name))})]})}function P({active:e}){let[t,n]=(0,T.useState)(null),[r,i]=(0,T.useState)(``);(0,T.useEffect)(()=>{if(!e||t)return;let r=!1;return m(()=>import(`./oss-credits-C2JUsf2d.js`).then(e=>{r||n(e.default)}),[]),()=>{r=!0}},[e,t]),(0,T.useEffect)(()=>{e||i(``)},[e]);let a=r.trim().toLowerCase(),s=e=>a?e.filter(e=>k(a,e.name,e.license,f(e.description))):e,c=e=>a?e.filter(e=>k(a,e.name,e.license,e.version)):e,d=s(E),p=s(D),h=t?[{id:`shared`,label:f(`about.creditsShared`),packages:c(t.shared)},...t.groups.map(e=>({id:e.id,label:e.label,packages:c(e.packages)}))].filter(e=>e.packages.length>0):[],g=d.length===0&&p.length===0&&h.length===0;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`p`,{className:`mb-4 text-[0.875rem] text-ink-3`,children:f(`about.creditsHint`)}),(0,O.jsx)(l,{type:`search`,value:r,placeholder:f(`about.search`),onChange:e=>i(e.target.value)}),d.length>0?(0,O.jsx)(j,{title:f(`about.creditsProduct`),children:(0,O.jsx)(M,{credits:d})}):null,p.length>0?(0,O.jsx)(j,{title:f(`about.creditsBuiltWith`),children:(0,O.jsx)(M,{credits:p})}):null,t===null?(0,O.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,O.jsx)(o,{})}):h.length>0?(0,O.jsx)(j,{title:f(`about.creditsDeps`),hint:a?void 0:f(`about.creditsDepsHint`),children:h.map(e=>(0,O.jsx)(N,{label:e.label,packages:e.packages},e.id))}):null,t!==null&&g?(0,O.jsx)(u,{children:f(`about.noMatches`)}):null]})}var F=[`new`,`earlier`,`credits`],I=e=>f(e===`new`?`about.tab.new`:e===`earlier`?`about.tab.earlier`:`about.credits`),L=e=>e===1?f(`about.change`):f(`about.changes`,{n:e});function R({me:e,active:t,initialTab:n=`new`}){let i=e?.mode===`local`,{data:a,latest:s}=v(i&&t),[l,u]=(0,T.useState)(null),[p,m]=(0,T.useState)(n);(0,T.useEffect)(()=>m(n),[n]);let E=b(F.indexOf(p)),D=a?.newer&&s?s:_;(0,T.useEffect)(()=>{if(!t)return;let e=!1;return u(null),S(D===`0.9.8`?void 0:D).then(t=>{e||u(t)}),()=>{e=!0}},[t,D]);let k=l?.find(e=>e.version===`v${D}`)??l?.[0]??null,A=l?.filter(e=>e!==k)??[],j=i?a?.kind??null:`cloud`;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`div`,{className:`flex flex-col items-center pt-4 text-center`,children:[(0,O.jsx)(h,{size:96}),(0,O.jsxs)(`div`,{className:`mt-4 font-display font-semibold text-[1.5rem] tracking-tight`,children:[`engenty`,(0,O.jsx)(`span`,{className:`text-ember`,children:`.`}),(0,O.jsx)(`span`,{className:`ml-1.5 font-normal text-ink-3`,children:`wizards`})]}),(0,O.jsxs)(`div`,{className:`mt-1 text-[0.9375rem] text-ink-3 tabular-nums`,children:[f(`about.version`,{v:_}),j?` · ${f(`about.kind.${j}`)}`:``]})]}),i?(0,O.jsx)(`div`,{className:`mt-5`,children:(0,O.jsx)(g,{enabled:t})}):null,(0,O.jsx)(`div`,{className:`mt-6 flex justify-center`,children:(0,O.jsx)(d,{value:p,onChange:m,options:F.map(e=>({id:e,label:I(e)})),label:f(`about.title`)})}),(0,O.jsxs)(`div`,{className:r(`mt-5`,y(E)),children:[p===`new`?l===null?(0,O.jsx)(`div`,{className:`flex justify-center py-6 text-ink-3`,children:(0,O.jsx)(o,{})}):k?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[w(k),(0,O.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:C(k)})]}),(0,O.jsx)(`div`,{className:`mt-3`,children:(0,O.jsx)(x,{release:k})})]}):(0,O.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:f(`about.changelogEmpty`)}):null,p===`earlier`?(0,O.jsx)(`div`,{className:`flex flex-col divide-y divide-border-soft`,children:A.map(e=>(0,O.jsxs)(`details`,{className:`group/r py-2`,children:[(0,O.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-baseline gap-3 text-[0.875rem] [&::-webkit-details-marker]:hidden`,children:[(0,O.jsx)(c,{className:`size-3.5 shrink-0 self-center text-ink-4 transition group-open/r:rotate-90`}),(0,O.jsx)(`span`,{className:`font-medium text-ink tabular-nums`,children:w(e)}),(0,O.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3 tabular-nums`,children:C(e)}),(0,O.jsx)(`span`,{className:`ml-auto text-[0.8125rem] text-ink-4`,children:L(e.commits.length)})]}),(0,O.jsx)(`div`,{className:`mt-2 pl-6`,children:(0,O.jsx)(x,{release:e})})]},e.version??`unreleased`))}):null,p===`credits`?(0,O.jsx)(P,{active:!0}):null]},p)]})}function z({open:e,onClose:t,me:n}){return(0,O.jsxs)(i,{open:e,onClose:t,wide:!0,height:`tall`,children:[(0,O.jsx)(`div`,{className:`-mt-2 -mr-2 sticky top-0 z-10 flex h-0 justify-end`,children:(0,O.jsx)(a,{label:f(`common.close`),onClick:t,children:(0,O.jsx)(p,{className:`size-4`})})}),(0,O.jsx)(R,{me:n,active:e})]})}export{z as AboutDialog,R as AboutPanel};