@engenty/wizards-runtime 0.11.0 → 0.11.2

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 (130) hide show
  1. package/README.md +25 -6
  2. package/apps/runtime/dist/app.js +5 -0
  3. package/apps/runtime/dist/authoring/guide.js +19 -19
  4. package/apps/runtime/dist/docs/dev/index.md +1 -0
  5. package/apps/runtime/dist/docs/dev/licensing.md +60 -0
  6. package/apps/runtime/dist/docs/dev/meta.json +2 -1
  7. package/apps/runtime/dist/docs/dev/plugins/runners.md +2 -2
  8. package/apps/runtime/dist/docs/dev/wizard-format/index.md +4 -4
  9. package/apps/runtime/dist/docs/dev/wizard-format/meta.json +1 -1
  10. package/apps/runtime/dist/docs/dev/wizard-format/motion-graphics-steps.md +47 -0
  11. package/apps/runtime/dist/docs/dev/wizard-format/review-and-result.md +2 -2
  12. package/apps/runtime/dist/docs/dev/wizard-format/views-and-widgets.md +2 -2
  13. package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +4 -4
  14. package/apps/runtime/dist/docs/user-guide/space.md +5 -1
  15. package/apps/runtime/dist/docs/user-guide/steps.md +12 -12
  16. package/apps/runtime/dist/engine/requirements.js +7 -7
  17. package/apps/runtime/dist/engine/runner.js +8 -1
  18. package/apps/runtime/dist/engine/steps.js +3 -3
  19. package/apps/runtime/dist/files/storage.js +3 -3
  20. package/apps/runtime/dist/index.js +3 -0
  21. package/apps/runtime/dist/limits.js +16 -0
  22. package/apps/runtime/dist/manage.js +19 -0
  23. package/apps/runtime/dist/models.js +8 -8
  24. package/apps/runtime/dist/{film → motion-graphics}/project.js +54 -54
  25. package/apps/runtime/dist/{film → motion-graphics}/sounds.js +3 -3
  26. package/apps/runtime/dist/{film → motion-graphics}/step.js +37 -37
  27. package/apps/runtime/dist/{film → motion-graphics}/tools.js +1 -1
  28. package/apps/runtime/dist/render/downloads.js +2 -2
  29. package/apps/runtime/dist/render/guard.js +1 -1
  30. package/apps/runtime/dist/routes/delivery.js +1 -1
  31. package/apps/runtime/dist/routes/internal.js +1 -1
  32. package/apps/runtime/dist/routes/marketplace.js +4 -3
  33. package/apps/runtime/dist/routes/reports.js +80 -0
  34. package/apps/runtime/dist/routes/runs.js +25 -1
  35. package/apps/runtime/dist/services/brand.js +1 -1
  36. package/apps/runtime/dist/services/manage-reports.js +190 -0
  37. package/apps/runtime/dist/services/marketplace.js +33 -1
  38. package/apps/runtime/dist/services/pages.js +1 -1
  39. package/apps/runtime/dist/services/shipped-fonts.js +2 -1
  40. package/apps/runtime/dist/services/wizards.js +7 -0
  41. package/apps/runtime/dist/widgets/render.js +9 -9
  42. package/apps/runtime/dist/widgets/runtime.js +3 -3
  43. package/apps/runtime/dist/widgets/step.js +20 -20
  44. package/apps/web/dist/assets/AboutDialog-Bx6j5lZO.js +1 -0
  45. package/apps/web/dist/assets/ChangelogDialog-C620Sw_A.js +1 -0
  46. package/apps/web/dist/assets/CodeEditor-DifBNaqQ.js +2 -0
  47. package/apps/web/dist/assets/EditorPage-DWf9QG-U.js +3 -0
  48. package/apps/web/dist/assets/{FlowPreview-BV1NJ0rF.js → FlowPreview-ucwQ_dTr.js} +1 -1
  49. package/apps/web/dist/assets/{Harness-DYviBlHB.js → Harness-Br0Z_anI.js} +2 -2
  50. package/apps/web/dist/assets/Marketplace-CFDpVMWM.js +2 -0
  51. package/apps/web/dist/assets/NewWizardChannels-Cau6XSbl.js +1 -0
  52. package/apps/web/dist/assets/NewWizardPage-CrFqInHR.js +7 -0
  53. package/apps/web/dist/assets/OnboardingPage-BZk42_R7.js +1 -0
  54. package/apps/web/dist/assets/PreviewPane-D9n6tylf.js +10 -0
  55. package/apps/web/dist/assets/ProjectPage-CteRfxpz.js +1 -0
  56. package/apps/web/dist/assets/PublicRunner-CNanj6-w.js +1 -0
  57. package/apps/web/dist/assets/ReadOnly-DGBDtXFP.js +1 -0
  58. package/apps/web/dist/assets/SettingsPage-ClFQewEL.js +2 -0
  59. package/apps/web/dist/assets/SetupPage-k9gyFvow.js +1 -0
  60. package/apps/web/dist/assets/SharePage-BhWeqF3w.js +1 -0
  61. package/apps/web/dist/assets/changelog-BrhGlZT6.js +1 -0
  62. package/apps/web/dist/assets/{coins-DQ91VJAB.js → coins-CwURUZyt.js} +1 -1
  63. package/apps/web/dist/assets/dist-BwhPmMDu.js +1 -0
  64. package/apps/web/dist/assets/dist-DVpDdhG9.js +1 -0
  65. package/apps/web/dist/assets/dist-DzdNG7Sf.js +10 -0
  66. package/apps/web/dist/assets/i18n-DEmaSTJV.js +55 -0
  67. package/apps/web/dist/assets/index-ClNm5JaU.js +34 -0
  68. package/apps/web/dist/assets/index-DImS12WR.css +1 -0
  69. package/apps/web/dist/assets/json-D2GVvTXK.js +1 -0
  70. package/apps/web/dist/assets/markdown-DwdMW7q0.js +29 -0
  71. package/apps/web/dist/assets/{oss-credits-C2JUsf2d.js → oss-credits-C6bPkfSE.js} +1 -1
  72. package/apps/web/dist/assets/{phone-jIuRIwyg.js → phone-DTxGRwhK.js} +1 -1
  73. package/apps/web/dist/assets/runners-BMOIT6Ze.js +1 -0
  74. package/apps/web/dist/assets/session-xJpGiTU_.js +2 -0
  75. package/apps/web/dist/assets/{settings-menu-CoLUNJGQ.js → settings-menu-DcPFhgGA.js} +1 -1
  76. package/apps/web/dist/assets/theme-DTi1Zdw8.js +11 -0
  77. package/apps/web/dist/assets/ui-gsqxnFnT.js +83 -0
  78. package/apps/web/dist/assets/{upload-BcOvBWHS.js → upload-BkwjFS-0.js} +1 -1
  79. package/apps/web/dist/assets/{useMutation-CD7HmAxR.js → useMutation-BS-U9g_a.js} +1 -1
  80. package/apps/web/dist/assets/{volume-2-D2To9w5D.js → volume-2-CYOgux-z.js} +1 -1
  81. package/apps/web/dist/assets/{wrench-B98ubRvB.js → wrench-DIfUvYPN.js} +1 -1
  82. package/apps/web/dist/index.html +9 -8
  83. package/apps/web/dist/mcp/flow.html +32 -32
  84. package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +1 -1
  85. package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +11 -11
  86. package/node_modules/@engenty/wizards-shared/dist/definition.js +24 -23
  87. package/node_modules/@engenty/wizards-shared/dist/engenty/data-tables/columns-value.js +1 -0
  88. package/node_modules/@engenty/wizards-shared/dist/fit.d.ts +7 -2
  89. package/node_modules/@engenty/wizards-shared/dist/fit.js +23 -6
  90. package/node_modules/@engenty/wizards-shared/dist/marketplace-entry.d.ts +1 -1
  91. package/node_modules/@engenty/wizards-shared/dist/marketplace-entry.js +1 -1
  92. package/node_modules/@engenty/wizards-shared/dist/marketplace.d.ts +9 -7
  93. package/node_modules/@engenty/wizards-shared/dist/marketplace.js +7 -23
  94. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +15 -14
  95. package/node_modules/@engenty/wizards-shared/dist/run.js +30 -28
  96. package/node_modules/@engenty/wizards-shared/dist/runners.d.ts +1 -1
  97. package/node_modules/@engenty/wizards-shared/dist/runners.js +5 -5
  98. package/node_modules/@engenty/wizards-shared/dist/store.d.ts +1 -1
  99. package/node_modules/@engenty/wizards-shared/dist/store.js +1 -2
  100. package/node_modules/@engenty/wizards-shared/dist/theme-look.d.ts +39 -0
  101. package/node_modules/@engenty/wizards-shared/dist/theme-look.js +112 -0
  102. package/node_modules/@engenty/wizards-shared/dist/theme.d.ts +0 -38
  103. package/node_modules/@engenty/wizards-shared/dist/theme.js +1 -108
  104. package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +1 -0
  105. package/package.json +1 -1
  106. package/plugin/.claude-plugin/plugin.json +1 -1
  107. package/plugin/plugin.json +1 -1
  108. package/apps/runtime/dist/docs/dev/wizard-format/film-steps.md +0 -47
  109. package/apps/web/dist/assets/AboutDialog-9VcgySrQ.js +0 -1
  110. package/apps/web/dist/assets/ChangelogDialog-BXvT2VMU.js +0 -1
  111. package/apps/web/dist/assets/EditorPage-Cvzd0nah.js +0 -4
  112. package/apps/web/dist/assets/Marketplace-DTSg7_U7.js +0 -2
  113. package/apps/web/dist/assets/NewWizardChannels-DiujJzOR.js +0 -1
  114. package/apps/web/dist/assets/NewWizardPage-CngUh9g-.js +0 -7
  115. package/apps/web/dist/assets/OnboardingPage-DFKJnWtw.js +0 -1
  116. package/apps/web/dist/assets/PreviewPane-C0E9OLzB.js +0 -9
  117. package/apps/web/dist/assets/ProjectPage-CYDX-JYc.js +0 -1
  118. package/apps/web/dist/assets/PublicRunner-CkRO_Pw-.js +0 -1
  119. package/apps/web/dist/assets/ReadOnly-E-h9y_QO.js +0 -1
  120. package/apps/web/dist/assets/SettingsPage-BMgP3aRV.js +0 -2
  121. package/apps/web/dist/assets/SetupPage-DBO_rzj7.js +0 -1
  122. package/apps/web/dist/assets/SharePage-BvvmYB5N.js +0 -1
  123. package/apps/web/dist/assets/changelog-zllICQ4q.js +0 -1
  124. package/apps/web/dist/assets/index-Bjn557f1.js +0 -20
  125. package/apps/web/dist/assets/index-DN0VMwsS.css +0 -1
  126. package/apps/web/dist/assets/runners-DloOxEbh.js +0 -1
  127. package/apps/web/dist/assets/session-BpsCkDv6.js +0 -2
  128. package/apps/web/dist/assets/theme-2XjIQXH3.js +0 -11
  129. package/apps/web/dist/assets/ui-BIWmkPh6.js +0 -137
  130. /package/apps/runtime/dist/{film → motion-graphics}/skills.js +0 -0
@@ -24,9 +24,9 @@ const NOTES_EN = {
24
24
  found: "{label}: {name}",
25
25
  listen: "Listening to “{label}”…",
26
26
  listenFailed: "“{label}” couldn’t be transcribed.",
27
- filmCutting: "Cutting the film – this takes about a minute.",
28
- filmProgress: "{pct} % cut",
29
- filmError: "The film reports: {detail}",
27
+ motionCutting: "Rendering the video – this takes about a minute.",
28
+ motionProgress: "{pct} % rendered",
29
+ motionError: "The video reports: {detail}",
30
30
  widgetError: "The widget reports an error: {detail}",
31
31
  mcpConnected: "Connected to {names}",
32
32
  mcpUnreachable: "MCP server unreachable: {detail}",
@@ -64,18 +64,19 @@ const NOTES_EN = {
64
64
  },
65
65
  remembers: "Remembering {title}",
66
66
  files: { one: "Filing {count} file", other: "Filing {count} files" },
67
- filmSetup: "Setting up the folder for the film",
68
- filmClient: "{client} is working on the film – this usually takes 10–40 minutes.",
69
- filmTask: "On the film: {task}",
70
- filmLooks: "Looking at frames of the film",
71
- filmFix: "The film didn’t render – Claude Code is fixing it",
72
- filmResume: "Picking the film up where it stopped",
67
+ motionSetup: "Setting up the folder for the video",
68
+ motionClient: "{client} is working on the video – this usually takes 10–40 minutes.",
69
+ motionTask: "On the video: {task}",
70
+ motionLooks: "Looking at frames of the video",
71
+ motionFix: "The video didn’t render – Claude Code is fixing it",
72
+ motionResume: "Picking the video up where it stopped",
73
73
  wizardUnavailable: "This wizard isn’t available right now.",
74
74
  translationFailed: "This wizard can’t be translated right now. It’s shown as it was written.",
75
75
  translationOff: "This wizard is only offered as it was written.",
76
76
  translationPlaceholder: "The translation of “{text}” needs every placeholder in curly brackets the original has.",
77
77
  wizardLimit: "This wizard has reached its limit for today. Try again tomorrow.",
78
78
  guestBudget: "This page has reached its limit for today. Try again tomorrow.",
79
+ wizardPaused: "This wizard is paused for now. Try again later.",
79
80
  confirmHuman: "Confirm that you’re a person.",
80
81
  tooManyRuns: "You’ve started a lot of runs just now. Try again in an hour.",
81
82
  clientRefused: "This app may not start runs here.",
@@ -147,7 +148,7 @@ const NOTES_EN = {
147
148
  noOpenaiApiKey: "No OpenAI API key is set for voice conversations (Settings → Models).",
148
149
  modelNotAvailableAccount: "This model isn’t available with your account.",
149
150
  accountNoModelSet: "Your account has no model set up for this.",
150
- claudeCodeMakesFilms: "Claude Code makes films on this computer, using your subscription. Set it up as an AI subscription under Settings → Models.",
151
+ claudeCodeMakesMotion: "Claude Code makes motion graphics on this computer, using your subscription. Set it up as an AI subscription under Settings → Models.",
151
152
  macNeedsFfmpegTranscribe: "This Mac needs ffmpeg to transcribe recordings from Chrome or Firefox (WebM, Ogg). Safari and the app don’t. Install ffmpeg, e.g. with “brew install ffmpeg”.",
152
153
  fieldRequired: "Required",
153
154
  chooseAtLeast: "Choose at least {min}",
@@ -277,14 +278,14 @@ const NOTES_EN = {
277
278
  itemChangedMeantime: "This was changed elsewhere in the meantime.",
278
279
  valueNotExist: "This value doesn’t exist.",
279
280
  nothingFiledUnderValue: "Nothing is filed under this value yet.",
280
- filmNotRenderedNeeds: "The film couldn’t be rendered. It needs ffmpeg and a timeline in the widget.",
281
+ motionNotRenderedNeeds: "The video couldn’t be rendered. It needs ffmpeg and a timeline in the widget.",
281
282
  signInRefused: "The sign-in was refused{host}. Are the address and (app) password right? Gmail and Google Workspace need an app password and IMAP turned on.{answer}",
282
283
  serverSaid: " The server said: {answer}",
283
284
  viaAccountFailed: "Connecting through your engenty account didn’t work ({code}).",
284
285
  pluginInvalidInput: "“{id}” got invalid input: {path} – {problem}",
285
- filmClientStopped: "{name} stopped working on the film: {detail}. The work is saved. A new try carries on from there.",
286
- filmWorkSaved: "{problem} The work is saved. A new try carries on from there.",
287
- filmRenderFailed: "The film couldn’t be rendered: {detail}",
286
+ motionClientStopped: "{name} stopped working on the video: {detail}. The work is saved. A new try carries on from there.",
287
+ motionWorkSaved: "{problem} The work is saved. A new try carries on from there.",
288
+ motionRenderFailed: "The video couldn’t be rendered: {detail}",
288
289
  commandNotStarted: "The command couldn’t start: {detail}",
289
290
  providerKeyMissing: "{provider} is chosen for {makes}, but no API key is set.",
290
291
  noModelFor: "No model is set up for {makes}.",
@@ -334,9 +335,9 @@ const NOTES_DE = {
334
335
  found: "{label}: {name}",
335
336
  listen: "Hört „{label}“ an …",
336
337
  listenFailed: "„{label}“ konnte nicht verschriftlicht werden.",
337
- filmCutting: "Der Film wird geschnitten – das dauert etwa eine Minute.",
338
- filmProgress: "{pct} % geschnitten",
339
- filmError: "Der Film meldet: {detail}",
338
+ motionCutting: "Das Video wird gerendert – das dauert etwa eine Minute.",
339
+ motionProgress: "{pct} % gerendert",
340
+ motionError: "Das Video meldet: {detail}",
340
341
  widgetError: "Das Widget meldet einen Fehler: {detail}",
341
342
  mcpConnected: "Verbunden mit {names}",
342
343
  mcpUnreachable: "MCP-Server nicht erreichbar: {detail}",
@@ -374,18 +375,19 @@ const NOTES_DE = {
374
375
  },
375
376
  remembers: "Merkt sich {title}",
376
377
  files: { one: "Legt {count} Datei ab", other: "Legt {count} Dateien ab" },
377
- filmSetup: "Richtet den Arbeitsordner für den Film ein",
378
- filmClient: "{client} arbeitet am Film – das dauert meist 10–40 Minuten.",
379
- filmTask: "Am Film: {task}",
380
- filmLooks: "Sieht sich Bilder des Films an",
381
- filmFix: "Der Film ließ sich nicht rendern – Claude Code bessert nach",
382
- filmResume: "Macht dort weiter, wo der Film stehen geblieben ist",
378
+ motionSetup: "Richtet den Arbeitsordner für das Video ein",
379
+ motionClient: "{client} arbeitet am Video – das dauert meist 10–40 Minuten.",
380
+ motionTask: "Am Video: {task}",
381
+ motionLooks: "Sieht sich Bilder des Videos an",
382
+ motionFix: "Das Video ließ sich nicht rendern – Claude Code bessert nach",
383
+ motionResume: "Macht dort weiter, wo das Video stehen geblieben ist",
383
384
  wizardUnavailable: "Dieser Wizard ist gerade nicht verfügbar.",
384
385
  translationFailed: "Dieser Wizard lässt sich gerade nicht übersetzen. Du siehst ihn so, wie er geschrieben wurde.",
385
386
  translationOff: "Diesen Wizard gibt es nur so, wie er geschrieben wurde.",
386
387
  translationPlaceholder: "Die Übersetzung von „{text}“ braucht jeden Platzhalter in geschweiften Klammern, den das Original hat.",
387
388
  wizardLimit: "Für heute ist das Limit dieses Wizards erreicht. Versuch es morgen wieder.",
388
389
  guestBudget: "Für heute ist das Limit dieser Seite erreicht. Versuch es morgen wieder.",
390
+ wizardPaused: "Dieser Wizard ist gerade pausiert. Versuch es später wieder.",
389
391
  confirmHuman: "Bestätige kurz, dass du ein Mensch bist.",
390
392
  tooManyRuns: "Du hast gerade viele Läufe gestartet. Versuch es in einer Stunde wieder.",
391
393
  clientRefused: "Diese App darf hier keine Läufe starten.",
@@ -457,7 +459,7 @@ const NOTES_DE = {
457
459
  noOpenaiApiKey: "Für Sprachgespräche ist kein OpenAI-API-Key hinterlegt (Einstellungen → Modelle).",
458
460
  modelNotAvailableAccount: "Dieses Modell gibt es mit deinem Konto nicht.",
459
461
  accountNoModelSet: "Dafür ist bei deinem Konto kein Modell eingerichtet.",
460
- claudeCodeMakesFilms: "Filme macht Claude Code auf diesem Computer mit deinem Abo. Richte es unter Einstellungen → Modelle als KI-Abo ein.",
462
+ claudeCodeMakesMotion: "Motion-Grafik macht Claude Code auf diesem Computer mit deinem Abo. Richte es unter Einstellungen → Modelle als KI-Abo ein.",
461
463
  macNeedsFfmpegTranscribe: "Aufnahmen aus Chrome oder Firefox (WebM, Ogg) schreibt dieser Mac erst mit ffmpeg auf. Safari und die App brauchen es nicht. Installiere ffmpeg, z. B. mit „brew install ffmpeg“.",
462
464
  fieldRequired: "Pflichtfeld",
463
465
  chooseAtLeast: "Wähl mindestens {min} aus",
@@ -587,14 +589,14 @@ const NOTES_DE = {
587
589
  itemChangedMeantime: "Das wurde inzwischen anderswo geändert.",
588
590
  valueNotExist: "Diesen Wert gibt es nicht.",
589
591
  nothingFiledUnderValue: "Unter diesem Wert steht noch nichts.",
590
- filmNotRenderedNeeds: "Der Film ließ sich nicht rendern. Dafür braucht es ffmpeg und eine Zeitleiste im Widget.",
592
+ motionNotRenderedNeeds: "Das Video ließ sich nicht rendern. Dafür braucht es ffmpeg und eine Zeitleiste im Widget.",
591
593
  signInRefused: "Anmeldung abgelehnt{host}. Stimmen Adresse und (App-)Passwort? Gmail und Google Workspace brauchen ein App-Passwort und eingeschaltetes IMAP.{answer}",
592
594
  serverSaid: " Antwort des Servers: {answer}",
593
595
  viaAccountFailed: "Verbinden über dein engenty-Konto hat nicht geklappt ({code}).",
594
596
  pluginInvalidInput: "„{id}“ bekam ungültige Angaben: {path} – {problem}",
595
- filmClientStopped: "{name} hat beim Film aufgehört: {detail}. Die Arbeit ist gespeichert. Ein neuer Versuch macht dort weiter.",
596
- filmWorkSaved: "{problem} Die Arbeit ist gespeichert. Ein neuer Versuch macht dort weiter.",
597
- filmRenderFailed: "Der Film ließ sich nicht rendern: {detail}",
597
+ motionClientStopped: "{name} hat beim Video aufgehört: {detail}. Die Arbeit ist gespeichert. Ein neuer Versuch macht dort weiter.",
598
+ motionWorkSaved: "{problem} Die Arbeit ist gespeichert. Ein neuer Versuch macht dort weiter.",
599
+ motionRenderFailed: "Das Video ließ sich nicht rendern: {detail}",
598
600
  commandNotStarted: "Der Befehl konnte nicht starten: {detail}",
599
601
  providerKeyMissing: "Für {makes} ist {provider} gewählt, aber kein API-Key hinterlegt.",
600
602
  noModelFor: "Für {makes} ist kein Modell eingerichtet.",
@@ -5,7 +5,7 @@ import { type AssetKind, type FieldKind, type Step, type WizardDefinition } from
5
5
  * per wizard which runners run it fully, which hand off at some step, and which cannot.
6
6
  */
7
7
  /** What a step hands on, by the shape a runner has to carry: a text, a picture, a file, a view. */
8
- export type OutputKind = AssetKind | "text" | "data" | "widget" | "film" | "surface";
8
+ export type OutputKind = AssetKind | "text" | "data" | "widget" | "motion-graphics" | "surface";
9
9
  export declare const OUTPUT_KINDS: OutputKind[];
10
10
  export interface RunnerCapabilities {
11
11
  /** The field kinds the runner asks itself; the rest need another runner. */
@@ -8,7 +8,7 @@ export const OUTPUT_KINDS = [
8
8
  "document",
9
9
  "dashboard",
10
10
  "widget",
11
- "film",
11
+ "motion-graphics",
12
12
  "surface",
13
13
  ];
14
14
  export const RUNNER_ID = /^[a-z][a-z0-9-]{0,23}$/;
@@ -72,9 +72,9 @@ export function outputKindOf(step) {
72
72
  case "generate":
73
73
  return step.asset;
74
74
  case "widget":
75
- return step.video ? "film" : "widget";
76
- case "film":
77
- return "film";
75
+ return step.video ? "motion-graphics" : "widget";
76
+ case "motion-graphics":
77
+ return "motion-graphics";
78
78
  case "surface":
79
79
  return "surface";
80
80
  default:
@@ -83,7 +83,7 @@ export function outputKindOf(step) {
83
83
  }
84
84
  /** Steps that take minutes: a door that cannot wait must come back for them. */
85
85
  function takesMinutes(step) {
86
- return step.type === "agent" || step.type === "generate" || step.type === "film";
86
+ return step.type === "agent" || step.type === "generate" || step.type === "motion-graphics";
87
87
  }
88
88
  /**
89
89
  * Whether a runner runs a wizard, and where it hands off. Every step counts: since the AI can
@@ -1,4 +1,4 @@
1
- import { type TableColumn } from "./engenty/data-tables/index.js";
1
+ import type { TableColumn } from "./engenty/data-tables/columns.js";
2
2
  /**
3
3
  * What a wizard keeps between runs for one person: lists (tabular data), files and connected
4
4
  * accounts. The wizard definition says which lists and connections exist; the content belongs
@@ -1,5 +1,4 @@
1
- // SPDX-License-Identifier: FSL-1.1-MIT OR MIT
2
- import { coerceRowValues, mergeRowValues } from "./engenty/data-tables/index.js";
1
+ import { coerceRowValues, mergeRowValues } from "./engenty/data-tables/columns-value.js";
3
2
  import { readNumber } from "./numbers.js";
4
3
  export const STORE_LIMITS = {
5
4
  fileBytes: 15_000_000,
@@ -0,0 +1,39 @@
1
+ import type { RunFontFace, RunTheme } from "./run.js";
2
+ import { type BuiltInTheme, type ShippedFont, type Theme } from "./theme.js";
3
+ /**
4
+ * The theme a wizard's pages show: what the place showing it asks for (`asked`, an embed's
5
+ * `data-theme`), where the wizard offers it and the space has it; else the first of its chain
6
+ * the space has (a built-in name counts). Undefined: none of them, so the brand.
7
+ */
8
+ export declare function chosenTheme(chain: readonly string[] | undefined, themes: readonly Theme[], asked?: string | null): Theme | BuiltInTheme | undefined;
9
+ /**
10
+ * The look of a wizard's pages: the space's brand (`runTheme`), or the theme the wizard chose
11
+ * built on its base. `host` is drawn as the brand on pages of our own; a host that passes a
12
+ * look of its own puts it over this. The base's colours stay in `accent` and `background`; the
13
+ * theme's colours for light and dark pages go into `modes`, and the page takes those of what it
14
+ * shows.
15
+ */
16
+ export declare function themedLook(brand: RunTheme, theme: Theme | BuiltInTheme | undefined): RunTheme;
17
+ /** A family looks like a serif by its name: what takes its place is a serif too. */
18
+ export declare const serifFamily: (family: string) => boolean;
19
+ /** The shipped font that shows where a brand font does not load: one of its kind. */
20
+ export declare const shippedLike: (family: string) => ShippedFont;
21
+ /** A shipped font's name in its package and its files: "Bricolage Grotesque" → bricolage-grotesque. */
22
+ export declare const shippedFontSlug: (family: ShippedFont) => string;
23
+ /**
24
+ * Where the runtime serves a shipped font's stylesheet, for pages that are not its own (a host's
25
+ * OpenUI chat); null for a family that is not one of ours. Its files sit next to it.
26
+ */
27
+ export declare function shippedFontStylesheet(family: string): string | null;
28
+ /**
29
+ * A family as CSS takes it, with a fallback of its kind while it loads or where it is missing. A
30
+ * brand font with a source (`faces`) names the shipped font of its kind next: it shows if the
31
+ * brand font does not load.
32
+ */
33
+ export declare function fontStack(family: string, faces?: readonly RunFontFace[]): string;
34
+ /** The colours a page shows in light or dark: the theme's for that mode, else the base's. */
35
+ export declare function lookColours(look: Pick<RunTheme, "accent" | "background" | "modes">, mode: "light" | "dark"): {
36
+ accent: string | null;
37
+ background: string | null;
38
+ text: string | null;
39
+ };
@@ -0,0 +1,112 @@
1
+ import { luminance } from "./projects.js";
2
+ import { BUILT_IN_THEMES, SHIPPED_FONTS, themeColors, themeOffered, } from "./theme.js";
3
+ // --- the look of a run ---------------------------------------------------------------------
4
+ // Which theme a wizard's pages show and how they look with it: the theme over the space's
5
+ // brand, font stacks, and the colours of light and dark pages. The theme's values: theme.ts.
6
+ /**
7
+ * The theme a wizard's pages show: what the place showing it asks for (`asked`, an embed's
8
+ * `data-theme`), where the wizard offers it and the space has it; else the first of its chain
9
+ * the space has (a built-in name counts). Undefined: none of them, so the brand.
10
+ */
11
+ export function chosenTheme(chain, themes, asked) {
12
+ const ask = asked && themeOffered(asked, chain) ? [asked] : [];
13
+ for (const id of [...ask, ...(chain ?? [])]) {
14
+ if (BUILT_IN_THEMES.includes(id)) {
15
+ return id;
16
+ }
17
+ const found = themes.find((t) => t.id === id);
18
+ if (found) {
19
+ return found;
20
+ }
21
+ }
22
+ return undefined;
23
+ }
24
+ /** The engenty wizards look without a brand: what `default` shows and builds on. */
25
+ const NEUTRAL = {
26
+ accent: null,
27
+ second: null,
28
+ background: null,
29
+ display: null,
30
+ body: null,
31
+ faces: [],
32
+ dark: false,
33
+ pinned: false,
34
+ modes: null,
35
+ prefer: null,
36
+ shape: null,
37
+ effects: [],
38
+ };
39
+ /**
40
+ * The look of a wizard's pages: the space's brand (`runTheme`), or the theme the wizard chose
41
+ * built on its base. `host` is drawn as the brand on pages of our own; a host that passes a
42
+ * look of its own puts it over this. The base's colours stay in `accent` and `background`; the
43
+ * theme's colours for light and dark pages go into `modes`, and the page takes those of what it
44
+ * shows.
45
+ */
46
+ export function themedLook(brand, theme) {
47
+ if (theme === undefined || theme === "brand" || theme === "host") {
48
+ return brand;
49
+ }
50
+ if (theme === "default") {
51
+ return NEUTRAL;
52
+ }
53
+ const base = theme.base === "default" ? NEUTRAL : brand;
54
+ // `brand` is the brand's font for the role, whatever the theme builds on.
55
+ const font = (name, role) => name === "brand" ? brand[role] : (name ?? base[role]);
56
+ const display = font(theme.fonts?.heading, "display");
57
+ const body = font(theme.fonts?.text, "body");
58
+ const schemes = (theme.colors ?? []).map((c) => c.scheme);
59
+ const only = schemes.length === 1 ? schemes[0] : null;
60
+ const shown = schemes[0] ?? (base.dark ? "dark" : "light");
61
+ const background = themeColors(theme, shown)?.background;
62
+ return {
63
+ ...base,
64
+ display,
65
+ body,
66
+ faces: brand.faces.filter((f) => f.family === display || f.family === body),
67
+ dark: background ? luminance(background) < 0.18 : shown === "dark",
68
+ pinned: only !== null,
69
+ modes: schemes.length
70
+ ? { light: themeColors(theme, "light") ?? null, dark: themeColors(theme, "dark") ?? null }
71
+ : null,
72
+ prefer: schemes.length === 2 ? shown : null,
73
+ shape: theme.shape ?? null,
74
+ effects: theme.effects ?? [],
75
+ };
76
+ }
77
+ const SANS = "ui-sans-serif, system-ui, sans-serif";
78
+ const SERIF = "ui-serif, Georgia, serif";
79
+ const SERIFS = /serif|fraunces|playfair|lora|garamond|antiqua|baskerville|caslon|bodoni|didot|times|georgia|merriweather|tiempos/i;
80
+ /** A family looks like a serif by its name: what takes its place is a serif too. */
81
+ export const serifFamily = (family) => SERIFS.test(family) && !/sans/i.test(family);
82
+ /** The shipped font that shows where a brand font does not load: one of its kind. */
83
+ export const shippedLike = (family) => serifFamily(family) ? "Lora" : "Inter";
84
+ /** A shipped font's name in its package and its files: "Bricolage Grotesque" → bricolage-grotesque. */
85
+ export const shippedFontSlug = (family) => family.toLowerCase().replace(/ /g, "-");
86
+ /**
87
+ * Where the runtime serves a shipped font's stylesheet, for pages that are not its own (a host's
88
+ * OpenUI chat); null for a family that is not one of ours. Its files sit next to it.
89
+ */
90
+ export function shippedFontStylesheet(family) {
91
+ return SHIPPED_FONTS.includes(family)
92
+ ? `/api/public/fonts/shipped/${shippedFontSlug(family)}.css`
93
+ : null;
94
+ }
95
+ /**
96
+ * A family as CSS takes it, with a fallback of its kind while it loads or where it is missing. A
97
+ * brand font with a source (`faces`) names the shipped font of its kind next: it shows if the
98
+ * brand font does not load.
99
+ */
100
+ export function fontStack(family, faces = []) {
101
+ const next = faces.some((f) => f.family === family) ? `"${shippedLike(family)}", ` : "";
102
+ return `"${family.replace(/"/g, "")}", ${next}${serifFamily(family) ? SERIF : SANS}`;
103
+ }
104
+ /** The colours a page shows in light or dark: the theme's for that mode, else the base's. */
105
+ export function lookColours(look, mode) {
106
+ const own = look.modes?.[mode];
107
+ return {
108
+ accent: own?.accent ?? look.accent,
109
+ background: own?.background ?? look.background,
110
+ text: own?.text ?? null,
111
+ };
112
+ }
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import { THEME_ID } from "./definition.js";
3
- import type { RunFontFace, RunTheme } from "./run.js";
4
3
  /** The themes every space has. Nobody defines or publishes them. */
5
4
  export declare const BUILT_IN_THEMES: readonly ["brand", "host", "default"];
6
5
  export type BuiltInTheme = (typeof BUILT_IN_THEMES)[number];
@@ -135,42 +134,5 @@ export declare function themeIdFrom(title: string): string;
135
134
  * wizard's own chain. The host always wins, but only among what the wizard offers.
136
135
  */
137
136
  export declare function themeOffered(asked: string, chain: readonly string[] | undefined): boolean;
138
- /**
139
- * The theme a wizard's pages show: what the place showing it asks for (`asked`, an embed's
140
- * `data-theme`), where the wizard offers it and the space has it; else the first of its chain
141
- * the space has (a built-in name counts). Undefined: none of them, so the brand.
142
- */
143
- export declare function chosenTheme(chain: readonly string[] | undefined, themes: readonly Theme[], asked?: string | null): Theme | BuiltInTheme | undefined;
144
- /**
145
- * The look of a wizard's pages: the space's brand (`runTheme`), or the theme the wizard chose
146
- * built on its base. `host` is drawn as the brand on pages of our own; a host that passes a
147
- * look of its own puts it over this. The base's colours stay in `accent` and `background`; the
148
- * theme's colours for light and dark pages go into `modes`, and the page takes those of what it
149
- * shows.
150
- */
151
- export declare function themedLook(brand: RunTheme, theme: Theme | BuiltInTheme | undefined): RunTheme;
152
- /** A family looks like a serif by its name: what takes its place is a serif too. */
153
- export declare const serifFamily: (family: string) => boolean;
154
- /** The shipped font that shows where a brand font does not load: one of its kind. */
155
- export declare const shippedLike: (family: string) => ShippedFont;
156
- /** A shipped font's name in its package and its files: "Bricolage Grotesque" → bricolage-grotesque. */
157
- export declare const shippedFontSlug: (family: ShippedFont) => string;
158
- /**
159
- * Where the runtime serves a shipped font's stylesheet, for pages that are not its own (a host's
160
- * OpenUI chat); null for a family that is not one of ours. Its files sit next to it.
161
- */
162
- export declare function shippedFontStylesheet(family: string): string | null;
163
- /**
164
- * A family as CSS takes it, with a fallback of its kind while it loads or where it is missing. A
165
- * brand font with a source (`faces`) names the shipped font of its kind next: it shows if the
166
- * brand font does not load.
167
- */
168
- export declare function fontStack(family: string, faces?: readonly RunFontFace[]): string;
169
137
  /** A theme's colours for light or dark pages, without the scheme's name; undefined: it has none. */
170
138
  export declare function themeColors(theme: Pick<Theme, "colors"> | undefined, scheme: ColorScheme): ThemeColours | undefined;
171
- /** The colours a page shows in light or dark: the theme's for that mode, else the base's. */
172
- export declare function lookColours(look: Pick<RunTheme, "accent" | "background" | "modes">, mode: "light" | "dark"): {
173
- accent: string | null;
174
- background: string | null;
175
- text: string | null;
176
- };
@@ -1,6 +1,6 @@
1
+ // SPDX-License-Identifier: FSL-1.1-MIT OR MIT
1
2
  import { z } from "zod";
2
3
  import { ENGENTY_COSTUMES, THEME_ID } from "./definition.js";
3
- import { luminance } from "./projects.js";
4
4
  // --- themes ------------------------------------------------------------------------
5
5
  // How a wizard's pages look, as a document of its own: values only (colours for light and dark,
6
6
  // fonts, shape, effects from the runner's library), kept in the space and shipped in a wizard
@@ -164,104 +164,6 @@ export function themeIdFrom(title) {
164
164
  export function themeOffered(asked, chain) {
165
165
  return BUILT_IN_THEMES.includes(asked) || Boolean(chain?.includes(asked));
166
166
  }
167
- /**
168
- * The theme a wizard's pages show: what the place showing it asks for (`asked`, an embed's
169
- * `data-theme`), where the wizard offers it and the space has it; else the first of its chain
170
- * the space has (a built-in name counts). Undefined: none of them, so the brand.
171
- */
172
- export function chosenTheme(chain, themes, asked) {
173
- const ask = asked && themeOffered(asked, chain) ? [asked] : [];
174
- for (const id of [...ask, ...(chain ?? [])]) {
175
- if (BUILT_IN_THEMES.includes(id)) {
176
- return id;
177
- }
178
- const found = themes.find((t) => t.id === id);
179
- if (found) {
180
- return found;
181
- }
182
- }
183
- return undefined;
184
- }
185
- /** The engenty wizards look without a brand: what `default` shows and builds on. */
186
- const NEUTRAL = {
187
- accent: null,
188
- second: null,
189
- background: null,
190
- display: null,
191
- body: null,
192
- faces: [],
193
- dark: false,
194
- pinned: false,
195
- modes: null,
196
- prefer: null,
197
- shape: null,
198
- effects: [],
199
- };
200
- /**
201
- * The look of a wizard's pages: the space's brand (`runTheme`), or the theme the wizard chose
202
- * built on its base. `host` is drawn as the brand on pages of our own; a host that passes a
203
- * look of its own puts it over this. The base's colours stay in `accent` and `background`; the
204
- * theme's colours for light and dark pages go into `modes`, and the page takes those of what it
205
- * shows.
206
- */
207
- export function themedLook(brand, theme) {
208
- if (theme === undefined || theme === "brand" || theme === "host") {
209
- return brand;
210
- }
211
- if (theme === "default") {
212
- return NEUTRAL;
213
- }
214
- const base = theme.base === "default" ? NEUTRAL : brand;
215
- // `brand` is the brand's font for the role, whatever the theme builds on.
216
- const font = (name, role) => name === "brand" ? brand[role] : (name ?? base[role]);
217
- const display = font(theme.fonts?.heading, "display");
218
- const body = font(theme.fonts?.text, "body");
219
- const schemes = (theme.colors ?? []).map((c) => c.scheme);
220
- const only = schemes.length === 1 ? schemes[0] : null;
221
- const shown = schemes[0] ?? (base.dark ? "dark" : "light");
222
- const background = themeColors(theme, shown)?.background;
223
- return {
224
- ...base,
225
- display,
226
- body,
227
- faces: brand.faces.filter((f) => f.family === display || f.family === body),
228
- dark: background ? luminance(background) < 0.18 : shown === "dark",
229
- pinned: only !== null,
230
- modes: schemes.length
231
- ? { light: themeColors(theme, "light") ?? null, dark: themeColors(theme, "dark") ?? null }
232
- : null,
233
- prefer: schemes.length === 2 ? shown : null,
234
- shape: theme.shape ?? null,
235
- effects: theme.effects ?? [],
236
- };
237
- }
238
- const SANS = "ui-sans-serif, system-ui, sans-serif";
239
- const SERIF = "ui-serif, Georgia, serif";
240
- const SERIFS = /serif|fraunces|playfair|lora|garamond|antiqua|baskerville|caslon|bodoni|didot|times|georgia|merriweather|tiempos/i;
241
- /** A family looks like a serif by its name: what takes its place is a serif too. */
242
- export const serifFamily = (family) => SERIFS.test(family) && !/sans/i.test(family);
243
- /** The shipped font that shows where a brand font does not load: one of its kind. */
244
- export const shippedLike = (family) => serifFamily(family) ? "Lora" : "Inter";
245
- /** A shipped font's name in its package and its files: "Bricolage Grotesque" → bricolage-grotesque. */
246
- export const shippedFontSlug = (family) => family.toLowerCase().replace(/ /g, "-");
247
- /**
248
- * Where the runtime serves a shipped font's stylesheet, for pages that are not its own (a host's
249
- * OpenUI chat); null for a family that is not one of ours. Its files sit next to it.
250
- */
251
- export function shippedFontStylesheet(family) {
252
- return SHIPPED_FONTS.includes(family)
253
- ? `/api/public/fonts/shipped/${shippedFontSlug(family)}.css`
254
- : null;
255
- }
256
- /**
257
- * A family as CSS takes it, with a fallback of its kind while it loads or where it is missing. A
258
- * brand font with a source (`faces`) names the shipped font of its kind next: it shows if the
259
- * brand font does not load.
260
- */
261
- export function fontStack(family, faces = []) {
262
- const next = faces.some((f) => f.family === family) ? `"${shippedLike(family)}", ` : "";
263
- return `"${family.replace(/"/g, "")}", ${next}${serifFamily(family) ? SERIF : SANS}`;
264
- }
265
167
  /** A theme's colours for light or dark pages, without the scheme's name; undefined: it has none. */
266
168
  export function themeColors(theme, scheme) {
267
169
  const found = theme?.colors?.find((c) => c.scheme === scheme);
@@ -271,12 +173,3 @@ export function themeColors(theme, scheme) {
271
173
  const { scheme: _, ...colours } = found;
272
174
  return colours;
273
175
  }
274
- /** The colours a page shows in light or dark: the theme's for that mode, else the base's. */
275
- export function lookColours(look, mode) {
276
- const own = look.modes?.[mode];
277
- return {
278
- accent: own?.accent ?? look.accent,
279
- background: own?.background ?? look.background,
280
- text: own?.text ?? null,
281
- };
282
- }
@@ -1,3 +1,4 @@
1
+ // SPDX-License-Identifier: FSL-1.1-MIT OR MIT
1
2
  import { z } from "zod";
2
3
  import { DEFINITION_VERSION } from "./definition.js";
3
4
  import { MAX_WIZARD_THEMES, themeSchema } from "./theme.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engenty/wizards-runtime",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
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.11.0",
4
+ "version": "0.11.2",
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.11.0",
4
+ "version": "0.11.2",
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,47 +0,0 @@
1
- ---
2
- title: Films
3
- description: A film step has the AI client on your computer write a film as code, and the runtime renders it.
4
- version: 0.9.6
5
- ---
6
-
7
- A `film` step makes a motion-graphics film. The AI client on your computer (Claude Code) writes
8
- the film as HTML, CSS and JavaScript in a folder of its own. It looks at its frames and fixes
9
- them, and engenty wizards renders the MP4.
10
-
11
- A film step runs only where Claude Code is set up as your AI subscription. It never runs on
12
- credits or in the cloud, and it takes 5 to 40 minutes.
13
-
14
- ```json
15
- {
16
- "id": "film", "type": "film", "title": "Make the film",
17
- "brief": "A 30-second explainer of {{product}}, calm and bright. Use the voice-over.",
18
- "kit": "kits/explainer.zip",
19
- "inputs": { "voice": "steps.voice", "script": "steps.script" },
20
- "format": "16:9", "seconds": 30
21
- }
22
- ```
23
-
24
- | Key | What it does |
25
- |---|---|
26
- | `brief` | What the film is: story, look, what to use. A template |
27
- | `skills` | Skill packages the client reads. The default is `["hyperframes"]`. A workspace package is `skills/<name>`, a folder with a `SKILL.md` |
28
- | `kit` | A style kit in the workspace, as a `.zip`: a showreel made once with its rules, helpers and stills. Every film of the wizard is made to it |
29
- | `inputs` | What the film is made from: a name (lowercase letters, digits, `-`) → a field id or `steps.<id>` |
30
- | `format` | `16:9` (the default), `9:16` or `1:1` |
31
- | `from` | `steps.<id>` of an earlier film step. This film starts from that one’s code and lays it out for its own format |
32
- | `seconds` | About how long the film runs, 3 to 600 |
33
- | `model`, `effort` | The model class, `low` by default. The kit carries the craft |
34
-
35
- Files among the inputs (uploads, voice lines, pictures) are copied into `input/<name>/`. Text is
36
- written to `input/<name>.md`, JSON to `input/<name>.json`.
37
-
38
- ## A film in steps
39
-
40
- A film that convinces is made in stages, each with its own review:
41
-
42
- 1. An agent step writes the research and the script.
43
- 2. A `generate` step with `asset` `voice` reads the whole script.
44
- 3. The film step makes the film from the voice, the pictures and the script.
45
-
46
- The film step finds the word timings in the voice-over itself. Sounds come from a fixed catalog.
47
- A film leaves the page as a video file, so it shows the EU’s “AI” label in the picture.
@@ -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{Ht as r,Nr as i,Qt as a,Ut as o,Vt as s,Wt as c,Yt as l,cr as u,en as d,sn as f,zr as p}from"./ui-BIWmkPh6.js";import{t as m}from"./preload-helper-DpV6A1kQ.js";import{t as h}from"./logo-CGNoptDg.js";import{ht as g,mt as _,tt as v}from"./index-Bjn557f1.js";import{c as y,f as b}from"./settings-menu-CoLUNJGQ.js";import{ReleaseNotes as x,loadReleases as S,releaseDate as C,releaseLabel as w}from"./ChangelogDialog-BXvT2VMU.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:a}){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)(i,{"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})]}),a?(0,O.jsx)(`p`,{className:`mt-0.5 text-[0.8125rem] text-ink-3`,children:a}):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),[i,a]=(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||a(``)},[e]);let o=i.trim().toLowerCase(),s=e=>o?e.filter(e=>k(o,e.name,e.license,f(e.description))):e,u=e=>o?e.filter(e=>k(o,e.name,e.license,e.version)):e,d=s(E),p=s(D),h=t?[{id:`shared`,label:f(`about.creditsShared`),packages:u(t.shared)},...t.groups.map(e=>({id:e.id,label:e.label,packages:u(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)(c,{type:`search`,value:i,placeholder:f(`about.search`),onChange:e=>a(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)(l,{})}):h.length>0?(0,O.jsx)(j,{title:f(`about.creditsDeps`),hint:o?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)(r,{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 r=e?.mode===`local`,{data:i,latest:o}=_(r&&t),[s,c]=(0,T.useState)(null),[u,m]=(0,T.useState)(n);(0,T.useEffect)(()=>m(n),[n]);let E=b(F.indexOf(u)),D=i?.newer&&o?o:g;(0,T.useEffect)(()=>{if(!t)return;let e=!1;return c(null),S(D===`0.11.0`?void 0:D).then(t=>{e||c(t)}),()=>{e=!0}},[t,D]);let k=s?.find(e=>e.version===`v${D}`)??s?.[0]??null,A=s?.filter(e=>e!==k)??[],j=r?i?.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:g}),j?` · ${f(`about.kind.${j}`)}`:``]})]}),r?(0,O.jsx)(`div`,{className:`mt-5`,children:(0,O.jsx)(v,{enabled:t})}):null,(0,O.jsx)(`div`,{className:`mt-6 flex justify-center`,children:(0,O.jsx)(a,{value:u,onChange:m,options:F.map(e=>({id:e,label:I(e)})),label:f(`about.title`)})}),(0,O.jsxs)(`div`,{className:d(`mt-5`,y(E)),children:[u===`new`?s===null?(0,O.jsx)(`div`,{className:`flex justify-center py-6 text-ink-3`,children:(0,O.jsx)(l,{})}):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,u===`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)(p,{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,u===`credits`?(0,O.jsx)(P,{active:!0}):null]},u)]})}function z({open:e,onClose:t,me:n}){return(0,O.jsxs)(s,{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)(o,{label:f(`common.close`),onClick:t,children:(0,O.jsx)(u,{className:`size-4`})})}),(0,O.jsx)(R,{me:n,active:e})]})}export{z as AboutDialog,R as AboutPanel};
@@ -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{Ht as r,Vt as i,Wt as a,Yt as o,en as s,sn as c}from"./ui-BIWmkPh6.js";import{t as l}from"./preload-helper-DpV6A1kQ.js";var u=e(t(),1),d=e(n(),1);function f(e){switch(e.group){case`Added`:return{label:`NEW`,dot:`bg-moss`};case`Fixed`:return{label:`FIXED`,dot:`bg-amber`};case`Changed`:return{label:`CHANGED`,dot:`bg-cobalt`};case`Performance`:return{label:`PERFORMANCE`,dot:`bg-ember`};case`Deploy`:return{label:`DEPLOY`,dot:`bg-ink-4`};case`Docs`:return{label:`DOCS`,dot:`bg-ink-4`};default:return{label:`OTHER`,dot:`bg-ink-4`}}}var p=e=>e.version?e.version.replace(/^v/,``):c(`about.unreleased`),m=e=>e.timestamp?new Date(e.timestamp*1e3).toISOString().slice(0,10):``,h=e=>e.charAt(0).toUpperCase()+e.slice(1);function g(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=[];for(let t of e){if(`${p(t)} ${m(t)}`.toLowerCase().includes(n)){r.push(t);continue}let e=t.commits.filter(e=>`${f(e).label} ${e.scope??``} ${e.message}`.toLowerCase().includes(n));e.length>0&&r.push({...t,commits:e})}return r}async function _(e){if(e)try{let t=await fetch(`https://raw.githubusercontent.com/engenty/wizards/v${e}/apps/web/src/about/changelog.json`,{signal:AbortSignal.timeout(5e3)});if(t.ok)return await t.json()}catch{}return(await l(async()=>{let{default:e}=await import(`./changelog-zllICQ4q.js`);return{default:e}},[])).default}function v({release:e}){return(0,d.jsx)(`ul`,{className:`flex flex-col gap-2`,children:e.commits.map(e=>{let t=f(e);return(0,d.jsxs)(`li`,{className:`flex items-start gap-2.5 text-[0.875rem]`,children:[(0,d.jsx)(`span`,{className:s(`mt-[7px] size-1.5 shrink-0 rounded-full`,t.dot)}),(0,d.jsxs)(`span`,{className:`min-w-0 text-ink-2`,children:[(0,d.jsxs)(`span`,{className:`font-semibold text-[0.75rem] text-ink tracking-wide`,children:[t.label,e.scope?` [${e.scope}]`:``]}),` `,h(e.message),e.breaking?(0,d.jsx)(`span`,{className:`ml-1.5 rounded-full bg-rose-tint px-1.5 py-0.5 font-medium text-[0.75rem] text-rose`,children:c(`about.breaking`)}):null]})]},e.id)})})}function y({open:e,onClose:t,version:n}){let[s,l]=(0,u.useState)(null),[f,h]=(0,u.useState)(``);(0,u.useEffect)(()=>{if(!e||s)return;let t=!1;return _(n).then(e=>{t||l(e)}),()=>{t=!0}},[e,s,n]),(0,u.useEffect)(()=>{e||h(``)},[e]);let y=s?g(s,f):[];return(0,d.jsxs)(i,{open:e,onClose:t,title:c(`about.changelog`),wide:!0,height:`tall`,children:[(0,d.jsx)(`p`,{className:`-mt-3 mb-4 text-[0.875rem] text-ink-3`,children:c(`about.changelogHint`)}),s===null?(0,d.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,d.jsx)(o,{})}):s.length===0?(0,d.jsx)(r,{children:c(`about.changelogEmpty`)}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a,{type:`search`,value:f,placeholder:c(`about.search`),onChange:e=>h(e.target.value)}),y.length===0?(0,d.jsx)(r,{children:c(`about.noMatches`)}):null,y.map(e=>(0,d.jsxs)(`section`,{className:`mt-6`,children:[(0,d.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[p(e),(0,d.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:m(e)})]}),(0,d.jsx)(`div`,{className:`mt-3`,children:(0,d.jsx)(v,{release:e})})]},e.version??`unreleased`))]})]})}export{y as ChangelogDialog,v as ReleaseNotes,_ as loadReleases,m as releaseDate,p as releaseLabel};