@engenty/wizards-runtime 0.20.5 → 0.21.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.
- package/README.md +3 -3
- package/apps/runtime/dist/agents/studio-assistant.js +7 -3
- package/apps/runtime/dist/agents/subscription.js +20 -25
- package/apps/runtime/dist/app.js +4 -1
- package/apps/runtime/dist/cli/clients.js +6 -24
- package/apps/runtime/dist/cli/connect.js +2 -1
- package/apps/runtime/dist/cli/environment.js +3 -0
- package/apps/runtime/dist/cli/machine.js +1 -70
- package/apps/runtime/dist/cli/main.js +2 -1
- package/apps/runtime/dist/cli/ollama.js +7 -254
- package/apps/runtime/dist/cli/setup.js +12 -9
- package/apps/runtime/dist/decision-model.js +1 -4
- package/apps/runtime/dist/docs/dev/licensing.md +20 -9
- package/apps/runtime/dist/docs/user-guide/command-line.md +5 -2
- package/apps/runtime/dist/elements/outside.js +2 -1
- package/apps/runtime/dist/engine/code-step.js +1 -1
- package/apps/runtime/dist/engine/decide.js +2 -2
- package/apps/runtime/dist/engine/device.js +3 -2
- package/apps/runtime/dist/engine/input.js +1 -1
- package/apps/runtime/dist/engine/runner.js +1 -1
- package/apps/runtime/dist/engine/steps.js +27 -8
- package/apps/runtime/dist/engine/surface.js +1 -1
- package/apps/runtime/dist/engine/template.js +1 -1
- package/apps/runtime/dist/env.js +1 -0
- package/apps/runtime/dist/harness/apple.js +4 -3
- package/apps/runtime/dist/harness/clients.js +117 -0
- package/apps/runtime/dist/harness/index.js +32 -87
- package/apps/runtime/dist/harness/model.js +32 -270
- package/apps/runtime/dist/harness/prompt.js +6 -120
- package/apps/runtime/dist/harness/types.js +5 -3
- package/apps/runtime/dist/local-call.js +6 -0
- package/apps/runtime/dist/local-models.js +53 -177
- package/apps/runtime/dist/mcp/bridge.js +12 -55
- package/apps/runtime/dist/mcp/elements.js +39 -4
- package/apps/runtime/dist/mcp/handler.js +12 -0
- package/apps/runtime/dist/mcp/run-pages.js +238 -0
- package/apps/runtime/dist/mcp/run-tasks.js +157 -0
- package/apps/runtime/dist/mcp/runs.js +129 -0
- package/apps/runtime/dist/mcp/tools.js +4 -95
- package/apps/runtime/dist/models.js +82 -32
- package/apps/runtime/dist/motion-graphics/step.js +2 -2
- package/apps/runtime/dist/prompts/mcp.md +4 -1
- package/apps/runtime/dist/render/downloads.js +1 -1
- package/apps/runtime/dist/render/shaped.js +1 -1
- package/apps/runtime/dist/routes/model-setup.js +77 -0
- package/apps/runtime/dist/routes/studio.js +8 -251
- package/apps/runtime/dist/services/space-categories.js +1 -1
- package/apps/runtime/dist/services/work-ai.js +11 -5
- package/apps/runtime/dist/texts.js +4 -6
- package/apps/runtime/dist/tools/connections.js +3 -0
- package/apps/runtime/dist/tools/harness.js +124 -0
- package/apps/web/dist/assets/AboutDialog-BSdAA4Wi.js +1 -0
- package/apps/web/dist/assets/{BlockEditor-CgjXTWly.js → BlockEditor-0noqMcAl.js} +1 -1
- package/apps/web/dist/assets/Bundle-Ctrq7lHH.js +1 -0
- package/apps/web/dist/assets/CapabilitiesPage-CZlVhBmU.js +2 -0
- package/apps/web/dist/assets/ChangelogDialog-BLCYV4jT.js +1 -0
- package/apps/web/dist/assets/{CodeEditor-2LyHbSre.js → CodeEditor-CpRn9BZq.js} +1 -1
- package/apps/web/dist/assets/ConnectorsSection-B4rRDlFo.js +1 -0
- package/apps/web/dist/assets/EditorPage-CXN-_zzG.js +3 -0
- package/apps/web/dist/assets/FlowPreview-DjQvcWxs.js +1 -0
- package/apps/web/dist/assets/LangSwitch-BuzsLp16.js +1 -0
- package/apps/web/dist/assets/LocalModels-BDfP2v5-.js +1 -0
- package/apps/web/dist/assets/Marketplace-4baBNzEc.js +2 -0
- package/apps/web/dist/assets/NewWizardChannels-B_xHm-bI.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-BmZAY4zi.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-fZq3WiTk.js +1 -0
- package/apps/web/dist/assets/ProtocolSection-v9wIxisg.js +1 -0
- package/apps/web/dist/assets/PublicRunner-BCh0VzAT.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-CbvEK0rz.js → ReadOnly-13stkvNz.js} +1 -1
- package/apps/web/dist/assets/Results-4gmguYzH.js +1 -0
- package/apps/web/dist/assets/RunDrawer-CeEldWRn.js +1 -0
- package/apps/web/dist/assets/SettingsPage-BsKRRlfP.js +2 -0
- package/apps/web/dist/assets/SetupPage-FgA5Kl8z.js +1 -0
- package/apps/web/dist/assets/SharePage-BlBW4oxl.js +1 -0
- package/apps/web/dist/assets/SkillEditor-9QSskfmY.js +1 -0
- package/apps/web/dist/assets/Skills-DdUAyNhR.js +9 -0
- package/apps/web/dist/assets/SpacePage-CHkNPuqt.js +2 -0
- package/apps/web/dist/assets/StudioHome-BwPD-inc.js +1 -0
- package/apps/web/dist/assets/TableEditor-Du1DhbEC.js +7 -0
- package/apps/web/dist/assets/UpdateCheck-DPr9NXq_.js +2 -0
- package/apps/web/dist/assets/brand-DY3lzrOd.js +2 -0
- package/apps/web/dist/assets/changelog-BSdb22c3.js +1 -0
- package/apps/web/dist/assets/code-editor-Bep_LzQ5.js +2 -0
- package/apps/web/dist/assets/host-DiZQ_uws.js +1 -0
- package/apps/web/dist/assets/host-Dw-sMUSd.js +54 -0
- package/apps/web/dist/assets/i18n-DVrYWJaj.js +55 -0
- package/apps/web/dist/assets/index-C2gxK14s.css +1 -0
- package/apps/web/dist/assets/index-lQ4JYHYQ.js +102 -0
- package/apps/web/dist/assets/oss-credits-BHy69wkx.js +1 -0
- package/apps/web/dist/assets/{read-aloud-CRFt5q6k.js → read-aloud-CBycd8TA.js} +1 -1
- package/apps/web/dist/assets/{session-RDdtfee2.js → session-BYLtgklo.js} +1 -1
- package/apps/web/dist/assets/terminal-DmGdMags.js +16 -0
- package/apps/web/dist/assets/texts-ClKS2xhh.js +1 -0
- package/apps/web/dist/assets/theme-DFDOMsVo.js +14 -0
- package/apps/web/dist/assets/ui-CW2I3ecu.js +1 -0
- package/apps/web/dist/assets/ui-DfVpZYIW.js +16 -0
- package/apps/web/dist/assets/{useMutation-BSffqL6W.js → useMutation-BnkuLlQC.js} +1 -1
- package/apps/web/dist/assets/viewers-C6FfRwG1.js +2 -0
- package/apps/web/dist/index.html +18 -16
- package/apps/web/dist/mcp/flow.html +129 -129
- package/bin/bot-tunnel.mjs +375 -0
- package/bin/bot.mjs +494 -69
- package/node_modules/@engenty/{wizards-shared → chatviews}/dist/calc.js +1 -1
- package/node_modules/@engenty/chatviews/dist/chat/a2ui.d.ts +48 -0
- package/node_modules/@engenty/chatviews/dist/chat/a2ui.js +514 -0
- package/node_modules/@engenty/chatviews/dist/chat/check.d.ts +18 -0
- package/node_modules/@engenty/chatviews/dist/chat/check.js +97 -0
- package/node_modules/@engenty/chatviews/dist/chat/index.d.ts +3 -0
- package/node_modules/@engenty/chatviews/dist/chat/index.js +4 -0
- package/node_modules/@engenty/chatviews/dist/chat/library.d.ts +39 -0
- package/node_modules/@engenty/chatviews/dist/chat/library.js +314 -0
- package/node_modules/@engenty/{wizards-shared → chatviews}/dist/numbers.js +1 -1
- package/node_modules/@engenty/chatviews/dist/react/chat.d.ts +33 -0
- package/node_modules/@engenty/chatviews/dist/react/chat.js +150 -0
- package/node_modules/@engenty/chatviews/dist/react/field-looks.d.ts +39 -0
- package/node_modules/@engenty/chatviews/dist/react/field-looks.js +47 -0
- package/node_modules/@engenty/chatviews/dist/react/markdown.d.ts +5 -0
- package/node_modules/@engenty/chatviews/dist/react/markdown.js +11 -0
- package/node_modules/@engenty/chatviews/dist/react/no-devtools.d.ts +0 -0
- package/node_modules/@engenty/chatviews/dist/react/no-devtools.js +8 -0
- package/node_modules/@engenty/chatviews/dist/react/surface.d.ts +39 -0
- package/node_modules/@engenty/chatviews/dist/react/surface.js +552 -0
- package/node_modules/@engenty/chatviews/dist/react/texts.d.ts +39 -0
- package/node_modules/@engenty/chatviews/dist/react/texts.js +42 -0
- package/node_modules/@engenty/chatviews/dist/react/ui.d.ts +112 -0
- package/node_modules/@engenty/chatviews/dist/react/ui.js +212 -0
- package/node_modules/@engenty/{wizards-shared → chatviews}/dist/shape.js +1 -1
- package/node_modules/@engenty/{wizards-shared → chatviews}/dist/surface.js +1 -1
- package/node_modules/@engenty/chatviews/package.json +19 -0
- package/node_modules/@engenty/decision-model/dist/client.d.ts +76 -0
- package/node_modules/@engenty/decision-model/dist/client.js +188 -0
- package/node_modules/@engenty/decision-model/dist/index.d.ts +6 -0
- package/node_modules/@engenty/decision-model/dist/index.js +5 -0
- package/node_modules/@engenty/decision-model/dist/local.d.ts +11 -0
- package/node_modules/@engenty/decision-model/dist/local.js +116 -0
- package/node_modules/@engenty/decision-model/dist/resolve.d.ts +26 -0
- package/node_modules/@engenty/decision-model/dist/resolve.js +53 -0
- package/node_modules/@engenty/decision-model/dist/types.d.ts +80 -0
- package/node_modules/@engenty/decision-model/dist/types.js +6 -0
- package/node_modules/@engenty/decision-model/dist/validate.d.ts +9 -0
- package/node_modules/@engenty/decision-model/dist/validate.js +50 -0
- package/node_modules/@engenty/decision-model/dist/ways.d.ts +42 -0
- package/node_modules/@engenty/decision-model/dist/ways.js +72 -0
- package/node_modules/@engenty/decision-model/package.json +9 -0
- package/node_modules/@engenty/local-models/dist/bridge/index.d.ts +54 -0
- package/node_modules/@engenty/local-models/dist/bridge/index.js +117 -0
- package/node_modules/@engenty/local-models/dist/clients/antigravity.d.ts +37 -0
- package/{apps/runtime/dist/harness → node_modules/@engenty/local-models/dist/clients}/antigravity.js +72 -17
- package/node_modules/@engenty/local-models/dist/clients/chat.d.ts +89 -0
- package/node_modules/@engenty/local-models/dist/clients/chat.js +22 -0
- package/node_modules/@engenty/local-models/dist/clients/claude.d.ts +32 -0
- package/node_modules/@engenty/local-models/dist/clients/claude.js +239 -0
- package/node_modules/@engenty/local-models/dist/clients/client.d.ts +31 -0
- package/node_modules/@engenty/local-models/dist/clients/client.js +2 -0
- package/node_modules/@engenty/local-models/dist/clients/codex.d.ts +35 -0
- package/node_modules/@engenty/local-models/dist/clients/codex.js +254 -0
- package/node_modules/@engenty/local-models/dist/clients/cursor.d.ts +35 -0
- package/node_modules/@engenty/local-models/dist/clients/cursor.js +192 -0
- package/node_modules/@engenty/local-models/dist/clients/detect.d.ts +18 -0
- package/node_modules/@engenty/local-models/dist/clients/detect.js +34 -0
- package/node_modules/@engenty/local-models/dist/clients/env.d.ts +66 -0
- package/{apps/runtime/dist/harness → node_modules/@engenty/local-models/dist/clients}/env.js +62 -31
- package/node_modules/@engenty/local-models/dist/clients/failure.d.ts +26 -0
- package/node_modules/@engenty/local-models/dist/clients/failure.js +35 -0
- package/node_modules/@engenty/local-models/dist/clients/index.d.ts +15 -0
- package/node_modules/@engenty/local-models/dist/clients/index.js +18 -0
- package/node_modules/@engenty/local-models/dist/clients/model.d.ts +129 -0
- package/node_modules/@engenty/local-models/dist/clients/model.js +225 -0
- package/node_modules/@engenty/local-models/dist/clients/prompt.d.ts +36 -0
- package/node_modules/@engenty/local-models/dist/clients/prompt.js +123 -0
- package/node_modules/@engenty/local-models/dist/clients/run.d.ts +15 -0
- package/node_modules/@engenty/local-models/dist/clients/run.js +41 -0
- package/node_modules/@engenty/local-models/dist/index.d.ts +4 -0
- package/node_modules/@engenty/local-models/dist/index.js +4 -0
- package/node_modules/@engenty/local-models/dist/lmstudio/api.d.ts +49 -0
- package/node_modules/@engenty/local-models/dist/lmstudio/api.js +101 -0
- package/node_modules/@engenty/local-models/dist/lmstudio/index.d.ts +3 -0
- package/node_modules/@engenty/local-models/dist/lmstudio/index.js +3 -0
- package/node_modules/@engenty/local-models/dist/lmstudio/load.d.ts +12 -0
- package/node_modules/@engenty/local-models/dist/lmstudio/load.js +100 -0
- package/node_modules/@engenty/local-models/dist/lmstudio/server.d.ts +3 -0
- package/node_modules/@engenty/local-models/dist/lmstudio/server.js +29 -0
- package/node_modules/@engenty/local-models/dist/mlx/helper.d.ts +54 -0
- package/node_modules/@engenty/local-models/dist/mlx/helper.js +149 -0
- package/node_modules/@engenty/local-models/dist/mlx/index.d.ts +3 -0
- package/node_modules/@engenty/local-models/dist/mlx/index.js +3 -0
- package/node_modules/@engenty/local-models/dist/mlx/server.d.ts +19 -0
- package/node_modules/@engenty/local-models/dist/mlx/server.js +82 -0
- package/node_modules/@engenty/local-models/dist/mlx/store.d.ts +16 -0
- package/node_modules/@engenty/local-models/dist/mlx/store.js +153 -0
- package/node_modules/@engenty/local-models/dist/ollama/api.d.ts +37 -0
- package/node_modules/@engenty/local-models/dist/ollama/api.js +147 -0
- package/node_modules/@engenty/local-models/dist/ollama/index.d.ts +3 -0
- package/node_modules/@engenty/local-models/dist/ollama/index.js +3 -0
- package/node_modules/@engenty/local-models/dist/ollama/model.d.ts +54 -0
- package/node_modules/@engenty/local-models/dist/ollama/model.js +302 -0
- package/node_modules/@engenty/local-models/dist/ollama/server.d.ts +3 -0
- package/node_modules/@engenty/local-models/dist/ollama/server.js +45 -0
- package/node_modules/@engenty/local-models/dist/probe.d.ts +57 -0
- package/node_modules/@engenty/local-models/dist/probe.js +174 -0
- package/node_modules/@engenty/local-models/dist/servers/index.d.ts +6 -0
- package/node_modules/@engenty/local-models/dist/servers/index.js +12 -0
- package/node_modules/@engenty/local-models/dist/servers/server.d.ts +84 -0
- package/node_modules/@engenty/local-models/dist/servers/server.js +38 -0
- package/node_modules/@engenty/local-models/package.json +16 -0
- package/node_modules/@engenty/model-setup/dist/catalog.d.ts +36 -0
- package/node_modules/@engenty/model-setup/dist/catalog.js +81 -0
- package/node_modules/@engenty/model-setup/dist/index.d.ts +3 -0
- package/node_modules/@engenty/model-setup/dist/index.js +3 -0
- package/node_modules/@engenty/model-setup/dist/offered.d.ts +7 -0
- package/node_modules/@engenty/model-setup/dist/offered.js +64 -0
- package/node_modules/@engenty/model-setup/dist/react/client.d.ts +46 -0
- package/node_modules/@engenty/model-setup/dist/react/client.js +147 -0
- package/node_modules/@engenty/model-setup/dist/react/columns.d.ts +78 -0
- package/node_modules/@engenty/model-setup/dist/react/columns.js +99 -0
- package/node_modules/@engenty/model-setup/dist/react/host.d.ts +31 -0
- package/node_modules/@engenty/model-setup/dist/react/host.js +48 -0
- package/node_modules/@engenty/model-setup/dist/react/index.d.ts +7 -0
- package/node_modules/@engenty/model-setup/dist/react/index.js +7 -0
- package/node_modules/@engenty/model-setup/dist/react/keys.d.ts +48 -0
- package/node_modules/@engenty/model-setup/dist/react/keys.js +74 -0
- package/node_modules/@engenty/model-setup/dist/react/local-models.d.ts +23 -0
- package/node_modules/@engenty/model-setup/dist/react/local-models.js +134 -0
- package/node_modules/@engenty/model-setup/dist/react/servers.d.ts +4 -0
- package/node_modules/@engenty/model-setup/dist/react/servers.js +13 -0
- package/node_modules/@engenty/model-setup/dist/react/terminal.d.ts +13 -0
- package/node_modules/@engenty/model-setup/dist/react/terminal.js +79 -0
- package/node_modules/@engenty/model-setup/dist/react/tone.d.ts +13 -0
- package/node_modules/@engenty/model-setup/dist/react/tone.js +66 -0
- package/node_modules/@engenty/model-setup/dist/server/apps.d.ts +12 -0
- package/node_modules/@engenty/model-setup/dist/server/apps.js +22 -0
- package/node_modules/@engenty/model-setup/dist/server/clients.d.ts +55 -0
- package/node_modules/@engenty/model-setup/dist/server/clients.js +96 -0
- package/node_modules/@engenty/model-setup/dist/server/index.d.ts +8 -0
- package/node_modules/@engenty/model-setup/dist/server/index.js +8 -0
- package/node_modules/@engenty/model-setup/dist/server/install.d.ts +24 -0
- package/node_modules/@engenty/model-setup/dist/server/install.js +68 -0
- package/node_modules/@engenty/model-setup/dist/server/lmstudio.d.ts +9 -0
- package/node_modules/@engenty/model-setup/dist/server/lmstudio.js +52 -0
- package/node_modules/@engenty/model-setup/dist/server/local-models.d.ts +47 -0
- package/node_modules/@engenty/model-setup/dist/server/local-models.js +164 -0
- package/node_modules/@engenty/model-setup/dist/server/models.d.ts +12 -0
- package/node_modules/@engenty/model-setup/dist/server/models.js +16 -0
- package/node_modules/@engenty/model-setup/dist/server/ollama.d.ts +22 -0
- package/node_modules/@engenty/model-setup/dist/server/ollama.js +146 -0
- package/node_modules/@engenty/model-setup/dist/server/routes.d.ts +51 -0
- package/node_modules/@engenty/model-setup/dist/server/routes.js +211 -0
- package/node_modules/@engenty/model-setup/dist/server/server-apps.d.ts +14 -0
- package/node_modules/@engenty/model-setup/dist/server/server-apps.js +24 -0
- package/node_modules/@engenty/model-setup/dist/server/terminal.d.ts +43 -0
- package/node_modules/@engenty/model-setup/dist/server/terminal.js +222 -0
- package/node_modules/@engenty/model-setup/dist/texts.d.ts +222 -0
- package/node_modules/@engenty/model-setup/dist/texts.js +222 -0
- package/node_modules/@engenty/model-setup/dist/types.d.ts +111 -0
- package/node_modules/@engenty/model-setup/dist/types.js +2 -0
- package/node_modules/@engenty/model-setup/package.json +12 -0
- package/node_modules/@engenty/search-index/dist/catalog-lexical.d.ts +14 -0
- package/node_modules/@engenty/search-index/dist/catalog-lexical.js +165 -0
- package/node_modules/@engenty/search-index/dist/catalog-rank.d.ts +33 -0
- package/node_modules/@engenty/search-index/dist/catalog-rank.js +99 -0
- package/node_modules/@engenty/search-index/dist/catalog-search.d.ts +40 -0
- package/node_modules/@engenty/search-index/dist/catalog-search.js +161 -0
- package/node_modules/@engenty/search-index/dist/chunks.d.ts +17 -0
- package/node_modules/@engenty/search-index/dist/chunks.js +164 -0
- package/node_modules/@engenty/search-index/dist/contracts.d.ts +135 -0
- package/node_modules/@engenty/search-index/dist/contracts.js +9 -0
- package/node_modules/@engenty/search-index/dist/embedder.d.ts +31 -0
- package/node_modules/@engenty/search-index/dist/embedder.js +82 -0
- package/node_modules/@engenty/search-index/dist/embedders/gemini.d.ts +11 -0
- package/node_modules/@engenty/search-index/dist/embedders/gemini.js +54 -0
- package/node_modules/@engenty/search-index/dist/embedders/index.d.ts +5 -0
- package/node_modules/@engenty/search-index/dist/embedders/index.js +5 -0
- package/node_modules/@engenty/search-index/dist/embedders/ollama.d.ts +12 -0
- package/node_modules/@engenty/search-index/dist/embedders/ollama.js +43 -0
- package/node_modules/@engenty/search-index/dist/embedders/openai.d.ts +11 -0
- package/node_modules/@engenty/search-index/dist/embedders/openai.js +36 -0
- package/node_modules/@engenty/search-index/dist/embedders/shared.d.ts +5 -0
- package/node_modules/@engenty/search-index/dist/embedders/shared.js +26 -0
- package/node_modules/@engenty/search-index/dist/embedders/ways.d.ts +16 -0
- package/node_modules/@engenty/search-index/dist/embedders/ways.js +90 -0
- package/node_modules/@engenty/search-index/dist/index.d.ts +10 -0
- package/node_modules/@engenty/search-index/dist/index.js +10 -0
- package/node_modules/@engenty/search-index/dist/payload.d.ts +13 -0
- package/node_modules/@engenty/search-index/dist/payload.js +51 -0
- package/node_modules/@engenty/search-index/dist/registry.d.ts +25 -0
- package/node_modules/@engenty/search-index/dist/registry.js +56 -0
- package/node_modules/@engenty/search-index/dist/scoring.d.ts +10 -0
- package/node_modules/@engenty/search-index/dist/scoring.js +45 -0
- package/node_modules/@engenty/search-index/dist/strategy.d.ts +6 -0
- package/node_modules/@engenty/search-index/dist/strategy.js +25 -0
- package/node_modules/@engenty/search-index/package.json +10 -0
- package/node_modules/@engenty/tool-harness/dist/harness.d.ts +70 -0
- package/node_modules/@engenty/tool-harness/dist/harness.js +170 -0
- package/node_modules/@engenty/tool-harness/dist/index.d.ts +5 -0
- package/node_modules/@engenty/tool-harness/dist/index.js +5 -0
- package/node_modules/@engenty/tool-harness/dist/judge.d.ts +8 -0
- package/node_modules/@engenty/tool-harness/dist/judge.js +39 -0
- package/node_modules/@engenty/tool-harness/dist/levels.d.ts +18 -0
- package/node_modules/@engenty/tool-harness/dist/levels.js +47 -0
- package/node_modules/@engenty/tool-harness/dist/model.d.ts +6 -0
- package/node_modules/@engenty/tool-harness/dist/model.js +60 -0
- package/node_modules/@engenty/tool-harness/dist/schema.d.ts +26 -0
- package/node_modules/@engenty/tool-harness/dist/schema.js +57 -0
- package/node_modules/@engenty/tool-harness/package.json +9 -0
- package/node_modules/@engenty/wizards-shared/dist/catalog-prompt.js +2 -1
- package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +10 -10
- package/node_modules/@engenty/wizards-shared/dist/definition.js +4 -4
- package/node_modules/@engenty/wizards-shared/dist/run-schema.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +3 -1
- package/node_modules/@engenty/wizards-shared/dist/run.js +4 -0
- package/node_modules/@engenty/wizards-shared/dist/store.js +2 -1
- package/node_modules/@engenty/wizards-shared/dist/wizard-agents.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/wizard-agents.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/wizard-text.js +2 -2
- package/package.json +13 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/runtime/dist/agents/chat-clients.js +0 -344
- package/apps/runtime/dist/harness/claude.js +0 -141
- package/apps/runtime/dist/harness/codex.js +0 -222
- package/apps/runtime/dist/harness/cursor.js +0 -89
- package/apps/runtime/dist/harness/terminal.js +0 -201
- package/apps/web/dist/assets/AboutDialog-DM_2-iLP.js +0 -1
- package/apps/web/dist/assets/Bundle-C0u5HUZL.js +0 -1
- package/apps/web/dist/assets/CapabilitiesPage-DxRUERr-.js +0 -2
- package/apps/web/dist/assets/ChangelogDialog-Cyn3LAch.js +0 -1
- package/apps/web/dist/assets/ConnectorsSection-BYOrwccO.js +0 -1
- package/apps/web/dist/assets/EditorPage-BFUQzJpN.js +0 -3
- package/apps/web/dist/assets/FlowPreview-BXf4EKjU.js +0 -1
- package/apps/web/dist/assets/LangSwitch-BLB7dDce.js +0 -1
- package/apps/web/dist/assets/Marketplace-B3NoH5Va.js +0 -2
- package/apps/web/dist/assets/NewWizardChannels-DhmYe2C8.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-MGKJVDp2.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-RawpCO9J.js +0 -1
- package/apps/web/dist/assets/ProtocolSection-B1MshkAx.js +0 -1
- package/apps/web/dist/assets/PublicRunner-COatyxMi.js +0 -1
- package/apps/web/dist/assets/Results-DI4EHtkh.js +0 -1
- package/apps/web/dist/assets/RunDrawer-xXcbQ9wP.js +0 -1
- package/apps/web/dist/assets/SettingsPage-BcqqYDqw.js +0 -2
- package/apps/web/dist/assets/SetupPage-DG3fJ6fk.js +0 -1
- package/apps/web/dist/assets/SharePage-Drntg_oj.js +0 -1
- package/apps/web/dist/assets/SkillEditor-Ca_bzmjD.js +0 -1
- package/apps/web/dist/assets/Skills-BcgxuD15.js +0 -9
- package/apps/web/dist/assets/SpacePage-CzQAEQj8.js +0 -2
- package/apps/web/dist/assets/StudioHome-DWTDTslp.js +0 -1
- package/apps/web/dist/assets/TableEditor-DirMDIGk.js +0 -7
- package/apps/web/dist/assets/UpdateCheck-C6GlE6Am.js +0 -2
- package/apps/web/dist/assets/brand-BIT7AumL.js +0 -2
- package/apps/web/dist/assets/changelog-CMovB3yB.js +0 -1
- package/apps/web/dist/assets/code-editor-CufyaUFC.js +0 -2
- package/apps/web/dist/assets/host-DNvnJXoi.js +0 -69
- package/apps/web/dist/assets/i18n-WXeVnv7i.js +0 -55
- package/apps/web/dist/assets/index-D1iL3986.css +0 -1
- package/apps/web/dist/assets/index-DOq0CvXM.js +0 -102
- package/apps/web/dist/assets/oss-credits-C4SGbRkz.js +0 -1
- package/apps/web/dist/assets/theme-23bNrOQh.js +0 -14
- package/apps/web/dist/assets/ui-DkEhb2Rt.js +0 -16
- package/apps/web/dist/assets/viewers-CmGDpBjn.js +0 -2
- /package/apps/web/dist/assets/{host-BrP-ENHg.css → terminal-BrP-ENHg.css} +0 -0
- /package/node_modules/@engenty/{wizards-shared → chatviews}/dist/calc.d.ts +0 -0
- /package/node_modules/@engenty/{wizards-shared → chatviews}/dist/numbers.d.ts +0 -0
- /package/node_modules/@engenty/{wizards-shared → chatviews}/dist/shape.d.ts +0 -0
- /package/node_modules/@engenty/{wizards-shared → chatviews}/dist/surface.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={shared:[{name:`@fontsource/bricolage-grotesque`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/bricolage-grotesque`},{name:`@fontsource/caveat`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/caveat`},{name:`@fontsource/creepster`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/creepster`},{name:`@fontsource/dm-sans`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/dm-sans`},{name:`@fontsource/figtree`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/figtree`},{name:`@fontsource/fraunces`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/fraunces`},{name:`@fontsource/fredoka`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/fredoka`},{name:`@fontsource/inter`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/inter`},{name:`@fontsource/lora`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/lora`},{name:`@fontsource/nosifer`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/nosifer`},{name:`@fontsource/nunito`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/nunito`},{name:`@fontsource/playfair-display`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/playfair-display`},{name:`@fontsource/young-serif`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/young-serif`},{name:`@hono/node-server`,version:`2.1.6`,license:`MIT`,homepage:`https://github.com/honojs/node-server`},{name:`@modelcontextprotocol/client`,version:`2.4.0`,license:`Apache-2.0`,homepage:`https://modelcontextprotocol.io`},{name:`@modelcontextprotocol/ext-apps`,version:`2.0.4`,license:`MIT`,homepage:`https://github.com/modelcontextprotocol/ext-apps`},{name:`@modelcontextprotocol/server`,version:`2.4.0`,license:`Apache-2.0`,homepage:`https://modelcontextprotocol.io`},{name:`ai`,version:`7.0.163`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`cross-spawn`,version:`7.0.6`,license:`MIT`,homepage:`https://github.com/moxystudio/node-cross-spawn`},{name:`dompurify`,version:`3.4.17`,license:`(MPL-2.0 OR Apache-2.0)`,homepage:`https://github.com/cure53/DOMPurify`},{name:`fflate`,version:`0.8.3`,license:`MIT`,homepage:`https://101arrowz.github.io/fflate`},{name:`hono`,version:`4.13.16`,license:`MIT`,homepage:`https://hono.dev`},{name:`lucide-react`,version:`1.69.0`,license:`ISC`,homepage:`https://lucide.dev`},{name:`marked`,version:`18.1.3`,license:`MIT`,homepage:`https://marked.js.org`},{name:`pdfmake`,version:`0.3.13`,license:`MIT`,homepage:`http://pdfmake.org`},{name:`qr-scanner`,version:`1.4.2`,license:`MIT`,homepage:`https://github.com/nimiq/qr-scanner#readme`},{name:`undici`,version:`8.12.3`,license:`MIT`,homepage:`https://undici.nodejs.org`},{name:`zod`,version:`4.6.7`,license:`MIT`,homepage:`https://zod.dev`}],groups:[{id:`apps/runtime`,kind:`app`,label:`runtime`,packages:[{name:`@ai-sdk/anthropic`,version:`4.0.97`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/elevenlabs`,version:`3.0.80`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/fal`,version:`3.0.76`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/gateway`,version:`4.0.136`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/google`,version:`4.0.112`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/openai`,version:`4.0.109`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/replicate`,version:`3.0.76`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@clack/prompts`,version:`1.8.1`,license:`MIT`,homepage:`https://github.com/bombshell-dev/clack/tree/main/packages/prompts#readme`},{name:`@executor-js/plugin-openapi`,version:`1.6.11`,license:`MIT`,homepage:`https://github.com/UsefulSoftwareCo/executor/tree/main/packages/plugins/openapi`},{name:`@libsql/client`,version:`0.18.0`,license:`MIT`,homepage:`https://github.com/tursodatabase/libsql-client-ts#readme`},{name:`@llamaindex/liteparse`,version:`2.18.0`,license:`Apache-2.0`,homepage:`https://github.com/run-llama/liteparse#readme`},{name:`@mastra/ai-sdk`,version:`1.11.3`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/core`,version:`1.82.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/docker`,version:`0.13.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/libsql`,version:`1.29.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/memory`,version:`1.41.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/quickjs`,version:`0.1.5`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@napi-rs/canvas`,version:`1.0.13`,license:`MIT`,homepage:`https://github.com/Brooooooklyn/canvas#readme`},{name:`@turbodocx/html-to-docx`,version:`1.23.3`,license:`MIT`,homepage:`https://github.com/TurboDocx/html-to-docx#readme`},{name:`aws4fetch`,version:`1.0.20`,license:`MIT`,homepage:`https://github.com/mhart/aws4fetch#readme`},{name:`drizzle-orm`,version:`0.45.4`,license:`Apache-2.0`,homepage:`https://orm.drizzle.team`},{name:`effect`,version:`4.0.0-beta.59`,license:`MIT`,homepage:`https://effect.website`},{name:`exceljs`,version:`4.4.0`,license:`MIT`,homepage:`https://github.com/exceljs/exceljs#readme`},{name:`fast-xml-parser`,version:`5.12.0`,license:`MIT`,homepage:`https://github.com/NaturalIntelligence/fast-xml-parser#readme`},{name:`imapflow`,version:`2.10.2`,license:`MIT`,homepage:`https://imapflow.com/`},{name:`jiti`,version:`2.7.0`,license:`MIT`,homepage:`https://github.com/unjs/jiti#readme`},{name:`jose`,version:`6.2.15`,license:`MIT`,homepage:`https://github.com/panva/jose`},{name:`mammoth`,version:`1.13.0`,license:`BSD-2-Clause`,homepage:`https://github.com/mwilliamson/mammoth.js#readme`},{name:`nanoid`,version:`6.0.2`,license:`MIT`,homepage:`https://github.com/ai/nanoid#readme`},{name:`nodemailer`,version:`10.3.1`,license:`MIT-0`,homepage:`https://nodemailer.com/`},{name:`pdf-parse`,version:`2.4.5`,license:`Apache-2.0`,homepage:`https://mehmet-kozan.github.io/pdf-parse/`},{name:`playwright-core`,version:`1.64.1`,license:`Apache-2.0`,homepage:`https://playwright.dev`},{name:`postal-mime`,version:`4.2.0`,license:`MIT-0`,homepage:`https://postal-mime.postalsys.com`},{name:`rfc6902`,version:`5.4.0`,license:`MIT`,homepage:`https://github.com/chbrown/rfc6902`},{name:`turndown`,version:`7.2.5`,license:`MIT`,homepage:`https://github.com/mixmark-io/turndown#readme`},{name:`word-extractor`,version:`1.0.4`,license:`MIT`,homepage:`https://github.com/morungos/node-word-extractor`},{name:`yaml`,version:`2.9.1`,license:`ISC`,homepage:`https://eemeli.org/yaml/`}]},{id:`apps/web`,kind:`app`,label:`studio`,packages:[{name:`@ai-sdk/react`,version:`4.0.167`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@base-ui/react`,version:`1.9.0`,license:`MIT`,homepage:`https://base-ui.com`},{name:`@codemirror/autocomplete`,version:`6.20.4`,license:`MIT`},{name:`@codemirror/commands`,version:`6.11.1`,license:`MIT`},{name:`@codemirror/lang-json`,version:`6.0.2`,license:`MIT`,homepage:`https://github.com/codemirror/lang-json#readme`},{name:`@codemirror/lang-markdown`,version:`6.5.2`,license:`MIT`},{name:`@codemirror/language`,version:`6.13.1`,license:`MIT`},{name:`@codemirror/lint`,version:`6.9.7`,license:`MIT`},{name:`@codemirror/search`,version:`6.7.2`,license:`MIT`},{name:`@codemirror/state`,version:`6.7.6`,license:`MIT`},{name:`@codemirror/view`,version:`6.43.15`,license:`MIT`},{name:`@dagrejs/dagre`,version:`3.1.3`,license:`MIT`,homepage:`https://github.com/dagrejs/dagre#readme`},{name:`@floating-ui/dom`,version:`1.8.0`,license:`MIT`,homepage:`https://floating-ui.com`},{name:`@lezer/highlight`,version:`1.2.5`,license:`MIT`},{name:`@shadcn/react`,version:`0.3.1`,license:`MIT`,homepage:`https://ui.shadcn.com`},{name:`@tanstack/react-query`,version:`5.106.1`,license:`MIT`,homepage:`https://tanstack.com/query`},{name:`@tiptap/core`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-bubble-menu`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-image`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-list`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-table`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extensions`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/pm`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/react`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/starter-kit`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/suggestion`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@xterm/addon-fit`,version:`0.11.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js/tree/master#readme`},{name:`@xterm/addon-web-links`,version:`0.12.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js/tree/master#readme`},{name:`@xterm/xterm`,version:`6.0.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js#readme`},{name:`@xyflow/react`,version:`12.12.1`,license:`MIT`,homepage:`https://reactflow.dev`},{name:`class-variance-authority`,version:`0.7.1`,license:`Apache-2.0`,homepage:`https://github.com/joe-bell/cva#readme`},{name:`cn`,version:`0.5.2`,license:`MIT`,homepage:`https://github.com/shadcn-ui/cn#readme`},{name:`modern-screenshot`,version:`4.7.0`,license:`MIT`,homepage:`https://github.com/qq15725/modern-screenshot`},{name:`pdfjs-dist`,version:`6.5.438`,license:`Apache-2.0`,homepage:`https://mozilla.github.io/pdf.js/`},{name:`react`,version:`19.3.1`,license:`MIT`,homepage:`https://react.dev/`},{name:`react-dom`,version:`19.3.1`,license:`MIT`,homepage:`https://react.dev/`},{name:`react-router`,version:`8.5.1`,license:`MIT`,homepage:`https://github.com/remix-run/react-router#readme`},{name:`tw-animate-css`,version:`1.4.0`,license:`MIT`,homepage:`https://github.com/Wombosvideo/tw-animate-css#readme`},{name:`uqr`,version:`0.1.3`,license:`MIT`,homepage:`https://github.com/unjs/uqr#readme`},{name:`xlsx`,version:`0.20.3`,license:`Apache-2.0`,homepage:`https://sheetjs.com/`}]},{id:`packages/browser`,kind:`package`,label:`packages/browser`,packages:[{name:`@mastra/agent-browser`,version:`0.6.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`}]},{id:`packages/model-setup`,kind:`package`,label:`packages/model-setup`,packages:[{name:`@lydell/node-pty`,version:`1.1.0`,license:`MIT`,homepage:`https://github.com/lydell/node-pty#readme`}]},{id:`packages/vault`,kind:`package`,label:`packages/vault`,packages:[{name:`tldts`,version:`7.4.24`,license:`MIT`,homepage:`https://github.com/remusao/tldts#readme`}]}]};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,t as n}from"./jsx-runtime-C3cWAN_r.js";import{$ as r,
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,t as n}from"./jsx-runtime-C3cWAN_r.js";import{$ as r,Xt as i,_t as a,ar as o,gt as s,mt as c,xt as l}from"./ui-DfVpZYIW.js";import{d as u}from"./marked.esm-BfGIZK7F.js";import{h as d,n as f,s as p,st as m,vt as h}from"./i18n-DVrYWJaj.js";var g={name:`folder-up`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`m9 13 3-3 3 3`,key:`1pxg3c`}]]};g.node;var _=u(g),v={name:`mic-off`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]};v.node;var y=u(v),b={name:`phone-off`,size:24,node:[[`path`,{d:`M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272`,key:`1wngk7`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}],[`path`,{d:`M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473`,key:`10hv5p`}]]};b.node;var x=u(b),S={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};S.node;var C=u(S),w=e(n(),1);async function T(){let{account:e}=await(await fetch(c(`/api/auth/sign-out`),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`},body:`{}`})).json().catch(()=>({}));if(!e){window.location.reload();return}let t=document.createElement(`form`);t.method=`POST`,t.action=e,document.body.append(t),t.submit()}function E({name:e,until:t}){let n=new Intl.DateTimeFormat(f,{timeStyle:`short`}).format(new Date(t));return(0,w.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-amber-tint px-4 py-2 text-center text-[0.8125rem] text-ink`,children:[(0,w.jsx)(`span`,{children:p(`impersonation.banner`,{name:e,time:n})}),(0,w.jsx)(`button`,{type:`button`,className:`font-medium underline underline-offset-2 hover:text-ink-2`,onClick:()=>void T(),children:p(`impersonation.back`)})]})}function D(){let e=o({queryKey:[`impersonation`],queryFn:()=>r.get(`/api/public/impersonation`),staleTime:6e4,retry:!1});return e.data?(0,w.jsx)(E,{name:e.data.name,until:e.data.until}):null}var O=e(t(),1),k=[`classifier`,`low`],A=12e3;function j(e){a(`think`)&&r.post(`/api/runs/${e}/device`,{think:{classes:k,maxChars:A}}).catch(()=>void 0)}async function M(e,t){if(t.kind!==`think`)return;let n;try{let e=await s(`think`,{system:t.system,prompt:t.prompt,schema:t.schema});n={text:String(e?.text??``)}}catch(e){n={error:e.message.slice(0,500)}}await r.post(`/api/runs/${e}/device/${t.id}`,n).catch(()=>void 0)}var N=45e3,P=3e4,F=2e3,I=1e4,L=e=>e instanceof i&&(e.status===0||e.status===502||e.status===503||e.status===504);function R(e,t,n){let r=e.ahead?.[t];return r?{...e,step:r.step,values:n,unsent:void 0,known:n,prefill:{},pageData:void 0,options:void 0,cards:void 0,decidedFields:void 0,closed:{},progress:r.progress,canBack:!1,answered:e.step?[...e.answered,e.step]:e.answered,ask:null,question:null,shown:[],lists:[],error:null}:e}function z(e){let[t,n]=(0,O.useState)(null),[a,o]=(0,O.useState)(null),[s,l]=(0,O.useState)(!1),[u,f]=(0,O.useState)(!1),[p,h]=(0,O.useState)({}),[g,_]=(0,O.useState)(null),[v,y]=(0,O.useState)(null),b=(0,O.useRef)([]),x=(0,O.useRef)(Math.random().toString(36).slice(2,12)),S=(0,O.useRef)(!1),C=(0,O.useRef)(0),w=(0,O.useRef)(0),T=(0,O.useRef)(null),E=(0,O.useRef)(e=>{e.rev<C.current||(T.current=e,b.current.length||(_(null),n(e)))});(0,O.useEffect)(()=>{if(n(null),_(null),l(!1),b.current=[],C.current=0,w.current=0,T.current=null,!e)return;let t=!1,a=0,o,s=null,u=Date.now(),d=()=>{t=!0,s?.close(),l(!0)},f=async()=>{try{let n=await r.get(`/api/runs/${e}`);t||E.current(n)}catch(e){e instanceof i&&e.status===404&&d()}},p=()=>{if(clearTimeout(o),s?.close(),t)return;let n=new EventSource(c(`/api/runs/${e}/stream`),{withCredentials:!0});s=n,u=Date.now(),j(e),n.addEventListener(`device`,t=>{u=Date.now(),M(e,JSON.parse(t.data))}),n.addEventListener(`view`,e=>{a=0,u=Date.now(),E.current(JSON.parse(e.data))}),n.addEventListener(`ping`,()=>{u=Date.now()}),n.onerror=()=>{n.close(),t||s!==n||(s=null,f(),a=Math.min(a+1,6),o=setTimeout(p,500*2**a))}},m=()=>{t||document.visibilityState!==`visible`||(!s||s.readyState===EventSource.CLOSED||Date.now()-u>N?(a=0,p()):f())},h=setInterval(()=>{!t&&s&&Date.now()-u>N&&(a=0,p())},15e3),g=()=>{!t&&document.visibilityState===`visible`&&r.post(`/api/runs/${e}/seen`).catch(()=>void 0)},v=setInterval(g,P);return g(),p(),document.addEventListener(`visibilitychange`,g),document.addEventListener(`visibilitychange`,m),window.addEventListener(`pageshow`,m),window.addEventListener(`online`,m),()=>{t=!0,clearTimeout(o),clearInterval(h),clearInterval(v),document.removeEventListener(`visibilitychange`,g),document.removeEventListener(`visibilitychange`,m),window.removeEventListener(`pageshow`,m),window.removeEventListener(`online`,m),s?.close()}},[e]);let D=(0,O.useCallback)(async(t,n)=>{if(!e)return!1;f(!0),o(null),h({});try{return await r.post(`/api/runs/${e}/${t}`,n),!0}catch(e){return e instanceof i&&e.status===422&&Array.isArray(e.body?.fields)&&h(Object.fromEntries(e.body.fields.map(e=>[e.field,e.message]))),o(e.message),!1}finally{f(!1)}},[e]),k=(0,O.useCallback)(async t=>{let n=setTimeout(()=>y(e=>e??`slow`),F),a=1e3;try{for(;;)try{let n=await r.post(`/api/runs/${e}/pages/${t.stepId}`,{values:t.values,seq:t.seq,tab:x.current});return C.current=Math.max(C.current,n.rev??0),y(e=>e===`offline`?`slow`:e),!0}catch(n){if(L(n)){y(`offline`),await new Promise(e=>setTimeout(e,a)),a=Math.min(a*2,I);continue}n instanceof i&&n.status===422&&Array.isArray(n.body?.fields)&&h(Object.fromEntries(n.body.fields.map(e=>[e.field,e.message]))),o(n.message),await r.put(`/api/runs/${e}/pages/${t.stepId}/unsent`,{values:t.values}).catch(()=>void 0);let s=await r.get(`/api/runs/${e}`).catch(()=>null);return s&&(T.current=s),!1}}finally{clearTimeout(n)}},[e]),A=(0,O.useCallback)(async()=>{if(S.current)return;S.current=!0;try{for(;b.current.length;){let e=b.current[0];if(!await k(e)){let e=b.current;b.current=[];for(let t of e)t.settle(!1);break}b.current.shift(),e.settle(!0)}}finally{S.current=!1}y(null);let e=T.current;e&&e.rev>=C.current&&(_(null),n(e))},[k]),z=(0,O.useCallback)(async(n,r)=>{let i=g??t;if(!e||!i)return!1;let a={...i.values,...r},s=i.ahead&&i.status===`waiting_input`?m(i.ahead,n,a):null;w.current=Math.max(w.current,T.current?.pagesSent??i.pagesSent??0)+1;let c=()=>void 0,l=new Promise(e=>{c=e});if(b.current.push({stepId:n,values:r,seq:w.current,settle:c}),o(null),h({}),s)return _(R(i,s,a)),A(),!0;f(!0),A();let u=await l;return f(!1),u},[e,g,t,A]);return d(t?.translation?.labels),{view:g??t,notFound:s,error:a,busy:u,fieldErrors:p,saving:v,submitPage:z,accept:(e,t,n)=>D(`reviews/${e}`,{type:`accept`,edits:t,note:n}),decline:(e,t)=>D(`reviews/${e}`,{type:`decline`,note:t}),regenerate:(e,t,n,r)=>D(`reviews/${e}`,{type:`regenerate`,target:t,note:n,items:r?.length?r:void 0}),back:()=>D(`back`),withdraw:()=>D(`cancel`),retry:()=>D(`retry`),translateResult:e=>D(`translate-result`,{stepId:e}),setLang:e=>D(`lang`,{lang:e})}}function B({runId:e,onNotFound:t,...n}){let r=z(e);return(0,O.useEffect)(()=>{r.notFound&&t?.()},[r.notFound,t]),r.notFound&&t?null:(0,w.jsx)(l,{run:r,...n})}var V=`wz.readAloud`,H=typeof window<`u`&&`speechSynthesis`in window&&`SpeechSynthesisUtterance`in window;function U(){try{return localStorage.getItem(V)===`1`}catch{return!1}}function W(e){try{localStorage.setItem(V,e?`1`:`0`)}catch{}}function G(e){let t=window.speechSynthesis.getVoices(),n=e.slice(0,2);return t.find(t=>t.lang===e&&t.default)??t.find(t=>t.lang===e)??t.find(e=>e.lang.startsWith(n)&&e.default)??t.find(e=>e.lang.startsWith(n))??null}function K(e,t=f,n=!1){if(!H||!e.trim())return;let r=window.speechSynthesis;n&&r.cancel();let i=h(t),a=new SpeechSynthesisUtterance(e.trim().slice(0,2e3));a.lang=i;let o=G(i);o&&(a.voice=o),r.speak(a)}function q(e,t=f){if(!H||!e.trim())return Promise.resolve();let n=window.speechSynthesis;n.cancel();let r=h(t),i=new SpeechSynthesisUtterance(e.trim().slice(0,4e3));i.lang=r;let a=G(r);return a&&(i.voice=a),new Promise(e=>{i.onend=()=>e(),i.onerror=()=>e(),n.speak(i)})}function J(e){return e.replace(/```[\s\S]*?```/g,``).replace(/!\[[^\]]*\]\([^)]*\)/g,``).replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`).replace(/https?:\/\/\S+/g,``).replace(/^#+\s*/gm,``).replace(/^\s*[-*]\s+/gm,``).replace(/[*_`>|]/g,``).replace(/\n{2,}/g,`. `).replace(/\s+/g,` `).trim()}function Y(){H&&window.speechSynthesis.cancel()}function X(){let[e,t]=(0,O.useState)(()=>H&&U()),n=(0,O.useCallback)(e=>{t(e),W(e),e||Y()},[]);return(0,O.useEffect)(()=>{H&&window.speechSynthesis.getVoices()},[]),(0,O.useEffect)(()=>()=>Y(),[]),[e,n]}function Z(e,t,n,r){let i=(0,O.useRef)(null);(0,O.useEffect)(()=>{if(!e){i.current=null;return}let a=n.map(e=>e.key);if(!i.current){i.current=new Set(a);let e=[...n].reverse().find(e=>e.who===`bot`&&e.spoken!==!1);if(e){let n=r(e.key);n&&K(n,t,!0)}return}let o=n.filter(e=>!i.current?.has(e.key));for(let e of a)i.current.add(e);o.some(e=>e.who===`me`)&&Y();for(let e of o)if(e.who===`bot`&&e.spoken!==!1){let n=r(e.key);n&&K(n,t)}},[e,t,n,r])}export{X as a,z as c,C as d,x as f,J as i,E as l,_ as m,Y as n,Z as o,y as p,q as r,B as s,H as t,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,o as n,z as r}from"./i18n-WXeVnv7i.js";import{$ as i,Sr as a,Z as o,Zt as s,lt as c,mt as l,ni as u,st as d}from"./ui-DkEhb2Rt.js";import{n as f}from"./jsx-runtime-C3cWAN_r.js";var p={account:{kind:`release`,default:!0,label:`Account in a local install`,hint:`Linking, Settings → Account, the offer to sign in.`},twoWaySync:{kind:`release`,default:!0,label:`Two-way sync with the cloud`,hint:`A local install with an account keeps its spaces in step with the organization in the cloud, both ways: wizards, knowledge, data and files.`},liveChanges:{kind:`release`,default:!0,label:`Live changes in the studio`,hint:`An open studio shows what changed elsewhere (another member, a run, the AI, the sync) without a reload.`},unsetConnectors:{kind:`release`,default:!1,label:`Connectors without an OAuth client`,hint:`Built-in connectors are shown although their client is not set up.`},site:{kind:`release`,default:!1,label:`Link to the website in the setup`,hint:`The local install's setup links the product's site.`},teamPlans:{kind:`release`,default:!1,label:`Organization plans`,hint:`The organization page in the cloud studio, and plans that carry this switch on the account pages.`},organizationSettings:{kind:`release`,default:!1,label:`Organization settings in the studio`,hint:`Settings › Organisation in the cloud studio: the organization's name, its members and invitations, changed there instead of on the account pages.`},channelVoice:{kind:`release`,default:!1,label:`Live voice`,hint:`Wizards run as a spoken conversation in the browser: offered when building and sharing.`},channelVideo:{kind:`release`,default:!1,label:`Video call`,hint:`Wizards run as a video call in the browser: offered when building and sharing.`},pages:{kind:`release`,default:!1,label:`Public page`,hint:`A space's page at the organization's address on wizards.page: its part in the space, the share dialog's switch.`},wordpress:{kind:`release`,default:!1,label:`WordPress plugin`,hint:`The plugin for WordPress sites, and a wizard as a package for one: offered in the share dialog and under Settings → Integrate.`},skills:{kind:`release`,default:!0,label:`Skills`,hint:`Skills, a place of their own in the app bar: from skills.sh, uploaded or written; always on in every AI step, or read by a wizard when it needs one.`},plugins:{kind:`release`,default:!1,label:`Plugins in the settings`,hint:`Settings › Plugins, also before any plugin is installed. Installing a plugin turns it on.`},goose:{kind:`plan`,default:!0,label:`Goose`,hint:`The studio's assistant: its chat at the foot of the page and in the sidebar.`},workMode:{kind:`release`,default:!1,label:`Work mode`,hint:"The switch between Studio and Work in the app bar, and Work's chats. Client comes with the public page (`pages`)."},workWip:{kind:`release`,default:!1,label:`Work – WiP`,hint:`Work's places that aren't built yet, in the app bar under the chats: engenties, files, data, results and the bell.`},modelTiers:{kind:`release`,default:!1,label:`Model tiers`,hint:`The organization's model tier: steps may name a maker, calls say what they are for, and the studio shows what each class runs on in the tier.`},ownKeysGateway:{kind:`release`,default:!1,label:`Own API keys through the gateway`,hint:`The organization's own accounts at the providers live in the Manage-App, and every cloud call goes through the gateway, which runs it on such an account or on credits. Keys saved in the cloud studio move there once.`},customDomains:{kind:`release`,default:!1,label:`Own domains`,hint:`Settings › Allgemein: the organization's wizards under a domain of its own, once a TXT record confirms it.`},broker:{kind:`release`,default:!0,label:`Broker`,hint:`RWX rules per space: who may read, write and execute what; enforced at every reader.`},dockerEgress:{kind:`release`,default:!1,label:`Docker sandbox through the broker`,hint:`A Docker sandbox reaches the internet only through the runtime: the hosts its run may reach and the package registries, each connection in the log.`},capabilities:{kind:`release`,default:!0,label:`Capabilities`,hint:`One place in the app bar for Skills and Verbindungen: the space's connections with sign-in, audience and rules, each person's own sign-ins, the broker's Protokoll, Entdecken.`},clientSpaces:{kind:`release`,default:!1,label:`Client spaces`,hint:`A space's clients, each in a client space under it: their own data, results and chats, the firm's setup read from the space (docs/plans/client-spaces.md).`},orgSpaces:{kind:`release`,default:!0,label:`Organization, spaces and folders`,hint:`The organization's own space as the root, Mein Space per person, every other space under the root; the path bar with the space menu instead of the space tile; Ordner in Work (docs/plans/org-spaces.md).`},knowledgeTree:{kind:`plan`,default:!0,label:`Knowledge as a knowledge base`,hint:`Knowledge's start page with one Add menu, folders in its menu and categories as a tab, the block editor for pages (docs/plans/knowledge-base.md).`},knowledgeMedia:{kind:`release`,default:!1,label:`Pictures in Wissen by what they show`,hint:`Pictures and PDF pages are embedded as pictures where the embedding model takes them (EmbeddingGemma 2), so a search finds a photo by what it shows (docs/plans/media-and-files.md).`},gatewaySearch:{kind:`release`,default:!1,label:`Web search through the gateway`,hint:`web_search through the gateway's /v1/web/search for every model and client, in place of the model's own search. On once the gateway has its provider's key.`},dateien:{kind:`release`,default:!1,label:`Dateien`,hint:`File trees another party owns, mounted in a space and indexed where they live: a folder on this computer first (docs/plans/media-and-files.md).`},kernel:{kind:`release`,default:!1,label:`Wizards made of step files`,hint:`Version 0.3.0 of the format: a file with what a wizard needs and its map, and one function per step. The kernel moves its runs (docs/plans/kernel.md).`},durableRuns:{kind:`release`,default:!1,label:`Runs that last days`,hint:`Runs that wait for days and survive a restart: a clock or a signal wakes them, and a deadline holds automatic steps. What a step did outside happens once, an AI step goes on where it was and can stop to ask a person. Retries over time and onFail; out of credits waits for a top-up.`},startTriggers:{kind:`release`,default:!1,label:`Starts by itself`,hint:`A wizard that runs on a schedule: the share dialog's section, the clock, the bell (docs/plans/starts.md).`},fastCreate:{kind:`release`,default:!1,label:`Fast first draft`,hint:`A new wizard's first pages within seconds: one quick model call writes the text form, each page is saved as it arrives, and the architect finishes the rest while the person looks (docs/plans/fast-creation.md, Part 3).`},codeSteps:{kind:`release`,default:!1,label:`Code steps`,hint:`A step that runs a function from the wizard's files with no model: maths, reshaping, scoring. With it, function tools in the wizard's files that a step's model calls (docs/plans/wizard-code.md). The architect knows both, and a run with them starts (docs/plans/code-step.md).`},runConnections:{kind:`release`,default:!1,label:`Connections a run finds`,hint:`A run finds the account for what its wizard needs: a person's own account from another wizard, and the space's connections for the need (docs/plans/run-connections.md).`},ownKeys:{kind:`plan`,default:!0,label:`Own API keys`,hint:`The organization puts its providers' keys into the cloud studio instead of running on credits.`},personSignIn:{kind:`plan`,default:!0,label:`Each person signs in to a connection`,hint:`A space's connection may have each person sign in with their own account. Without it a connection signs in as the space.`}};function m(e,t){let n=e?.[t];return typeof n==`boolean`?n:Object.hasOwn(p,t)?p[t].default:!1}function h(e=p){let t={};for(let[n,r]of Object.entries(e))t[n]=r.default;return t}var g=e(f(),1);function _(e){return Object.fromEntries(r.filter(t=>e[t]?.startsWith(`apple:`)).map(e=>[e,``]))}function v(e){return e.split(/\s+/).map(e=>e.match(/[\p{L}\p{N}]/u)?.[0]??``).join(``).slice(0,2).toUpperCase()}function y(){let e=T().data?.limits.spaces;return e===null||(e??1)>1}function b(){return T().data?.limits.build??!0}function x(){let e=T().data,t=M().space?.studio??!1;return!e||e.limits.create||m(e.features,`capabilities`)&&e.limits.build&&t}function S(){let e=T().data;return!e||e.mode===`local`||e.tenant.role!==`member`}function C(){let e=u();return n=>{t(n),e.setQueryData([`me`],e=>e&&{...e,lang:n}),i.put(`/api/studio/lang`,{lang:n}).catch(()=>void 0)}}function w(e){let r=u();(0,g.useEffect)(()=>{if(!e)return;if(e.lang){t(e.lang);return}let a=n();a&&(r.setQueryData([`me`],e=>e&&{...e,lang:a}),i.put(`/api/studio/lang`,{lang:a}).catch(()=>void 0))},[e,r])}function T(){return a({queryKey:[`me`],queryFn:async()=>{try{return await i.get(`/api/studio/me`)}catch(e){if(e instanceof s&&e.status===401)return null;throw e}},staleTime:3e4})}function E(e=!0){return a({queryKey:o.spaces(),queryFn:()=>i.get(`/api/studio/spaces`),enabled:e})}var D=`wz.space`;function O(){try{return localStorage.getItem(D)}catch{return null}}var k=O(),A=new Set;function j(e){k=e;try{localStorage.setItem(D,e)}catch{}for(let e of A)e()}function M(){let e=E(),t=(0,g.useSyncExternalStore)(e=>(A.add(e),()=>A.delete(e)),()=>k),n=e.data??[];return{space:n.find(e=>e.id===t)??n[0]??null,spaces:n,select:j,loading:e.isLoading}}function N(e,t){return a({queryKey:[`cloud`,e],queryFn:()=>i.get(`/api/studio/wizards/${e}/cloud`),enabled:t})}function P(e){return e instanceof s&&e.body?.code===`read_only`?e.message:null}async function F(){let{account:e}=await(await fetch(l(`/api/auth/sign-out`),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`},body:`{}`})).json().catch(()=>({}));if(!e){window.location.href=`${d}/`;return}let t=document.createElement(`form`);t.method=`POST`,t.action=e;let n=document.createElement(`input`);n.type=`hidden`,n.name=`return`,n.value=`${window.location.origin}${d}/`,t.append(n),document.body.append(t),t.submit()}function I(e=L(),t){let n=new URLSearchParams({return:e});c!==d&&n.set(`organization`,c.slice(d.length+1)),t?.trim()&&n.set(`wish`,t.trim()),window.location.href=l(`/api/auth/login?${n}`)}function L(){let e=new URLSearchParams(window.location.search);e.delete(`signin`);let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}`}var R=`wizards.wish`,z=1;function B(e){try{localStorage.setItem(R,JSON.stringify({text:e,at:Date.now()}))}catch{}}function V(){try{let e=JSON.parse(localStorage.getItem(R)??`null`);if(typeof e?.text==`string`&&typeof e.at==`number`&&Date.now()-e.at<z*864e5)return e.text}catch{}return null}function H(){try{localStorage.removeItem(R)}catch{}}export{E as _,P as a,m as b,w as c,S as d,y as f,C as g,T as h,V as i,N as l,x as m,v as n,I as o,b as p,B as r,F as s,H as t,M as u,_ as v,h as y};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,o as n,z as r}from"./i18n-DVrYWJaj.js";import{$ as i,Xt as a,Z as o,ar as s,lt as c,mt as l,st as u,zr as d}from"./ui-DfVpZYIW.js";import{n as f}from"./jsx-runtime-C3cWAN_r.js";var p={account:{kind:`release`,default:!0,label:`Account in a local install`,hint:`Linking, Settings → Account, the offer to sign in.`},twoWaySync:{kind:`release`,default:!0,label:`Two-way sync with the cloud`,hint:`A local install with an account keeps its spaces in step with the organization in the cloud, both ways: wizards, knowledge, data and files.`},liveChanges:{kind:`release`,default:!0,label:`Live changes in the studio`,hint:`An open studio shows what changed elsewhere (another member, a run, the AI, the sync) without a reload.`},unsetConnectors:{kind:`release`,default:!1,label:`Connectors without an OAuth client`,hint:`Built-in connectors are shown although their client is not set up.`},site:{kind:`release`,default:!1,label:`Link to the website in the setup`,hint:`The local install's setup links the product's site.`},teamPlans:{kind:`release`,default:!1,label:`Organization plans`,hint:`The organization page in the cloud studio, and plans that carry this switch on the account pages.`},organizationSettings:{kind:`release`,default:!1,label:`Organization settings in the studio`,hint:`Settings › Organisation in the cloud studio: the organization's name, its members and invitations, changed there instead of on the account pages.`},channelVoice:{kind:`release`,default:!1,label:`Live voice`,hint:`Wizards run as a spoken conversation in the browser: offered when building and sharing.`},channelVideo:{kind:`release`,default:!1,label:`Video call`,hint:`Wizards run as a video call in the browser: offered when building and sharing.`},pages:{kind:`release`,default:!1,label:`Public page`,hint:`A space's page at the organization's address on wizards.page: its part in the space, the share dialog's switch.`},wordpress:{kind:`release`,default:!1,label:`WordPress plugin`,hint:`The plugin for WordPress sites, and a wizard as a package for one: offered in the share dialog and under Settings → Integrate.`},skills:{kind:`release`,default:!0,label:`Skills`,hint:`Skills, a place of their own in the app bar: from skills.sh, uploaded or written; always on in every AI step, or read by a wizard when it needs one.`},plugins:{kind:`release`,default:!1,label:`Plugins in the settings`,hint:`Settings › Plugins, also before any plugin is installed. Installing a plugin turns it on.`},goose:{kind:`plan`,default:!0,label:`Goose`,hint:`The studio's assistant: its chat at the foot of the page and in the sidebar.`},workMode:{kind:`release`,default:!1,label:`Work mode`,hint:"The switch between Studio and Work in the app bar, and Work's chats. Client comes with the public page (`pages`)."},workWip:{kind:`release`,default:!1,label:`Work – WiP`,hint:`Work's places that aren't built yet, in the app bar under the chats: engenties, files, data, results and the bell.`},modelTiers:{kind:`release`,default:!1,label:`Model tiers`,hint:`The organization's model tier: steps may name a maker, calls say what they are for, and the studio shows what each class runs on in the tier.`},ownKeysGateway:{kind:`release`,default:!1,label:`Own API keys through the gateway`,hint:`The organization's own accounts at the providers live in the Manage-App, and every cloud call goes through the gateway, which runs it on such an account or on credits. Keys saved in the cloud studio move there once.`},customDomains:{kind:`release`,default:!1,label:`Own domains`,hint:`Settings › Allgemein: the organization's wizards under a domain of its own, once a TXT record confirms it.`},broker:{kind:`release`,default:!0,label:`Broker`,hint:`RWX rules per space: who may read, write and execute what; enforced at every reader.`},dockerEgress:{kind:`release`,default:!1,label:`Docker sandbox through the broker`,hint:`A Docker sandbox reaches the internet only through the runtime: the hosts its run may reach and the package registries, each connection in the log.`},capabilities:{kind:`release`,default:!0,label:`Capabilities`,hint:`One place in the app bar for Skills and Verbindungen: the space's connections with sign-in, audience and rules, each person's own sign-ins, the broker's Protokoll, Entdecken.`},clientSpaces:{kind:`release`,default:!1,label:`Client spaces`,hint:`A space's clients, each in a client space under it: their own data, results and chats, the firm's setup read from the space (docs/plans/client-spaces.md).`},orgSpaces:{kind:`release`,default:!0,label:`Organization, spaces and folders`,hint:`The organization's own space as the root, Mein Space per person, every other space under the root; the path bar with the space menu instead of the space tile; Ordner in Work (docs/plans/org-spaces.md).`},knowledgeTree:{kind:`plan`,default:!0,label:`Knowledge as a knowledge base`,hint:`Knowledge's start page with one Add menu, folders in its menu and categories as a tab, the block editor for pages (docs/plans/knowledge-base.md).`},knowledgeMedia:{kind:`release`,default:!1,label:`Pictures in Wissen by what they show`,hint:`Pictures and PDF pages are embedded as pictures where the embedding model takes them (EmbeddingGemma 2), so a search finds a photo by what it shows (docs/plans/media-and-files.md).`},gatewaySearch:{kind:`release`,default:!1,label:`Web search through the gateway`,hint:`web_search through the gateway's /v1/web/search for every model and client, in place of the model's own search. On once the gateway has its provider's key.`},dateien:{kind:`release`,default:!1,label:`Dateien`,hint:`File trees another party owns, mounted in a space and indexed where they live: a folder on this computer first (docs/plans/media-and-files.md).`},kernel:{kind:`release`,default:!1,label:`Wizards made of step files`,hint:`Version 0.3.0 of the format: a file with what a wizard needs and its map, and one function per step. The kernel moves its runs (docs/plans/kernel.md).`},durableRuns:{kind:`release`,default:!1,label:`Runs that last days`,hint:`Runs that wait for days and survive a restart: a clock or a signal wakes them, and a deadline holds automatic steps. What a step did outside happens once, an AI step goes on where it was and can stop to ask a person. Retries over time and onFail; out of credits waits for a top-up.`},startTriggers:{kind:`release`,default:!1,label:`Starts by itself`,hint:`A wizard that runs on a schedule: the share dialog's section, the clock, the bell (docs/plans/starts.md).`},fastCreate:{kind:`release`,default:!1,label:`Fast first draft`,hint:`A new wizard's first pages within seconds: one quick model call writes the text form, each page is saved as it arrives, and the architect finishes the rest while the person looks (docs/plans/fast-creation.md, Part 3).`},codeSteps:{kind:`release`,default:!1,label:`Code steps`,hint:`A step that runs a function from the wizard's files with no model: maths, reshaping, scoring. With it, function tools in the wizard's files that a step's model calls (docs/plans/wizard-code.md). The architect knows both, and a run with them starts (docs/plans/code-step.md).`},runConnections:{kind:`release`,default:!1,label:`Connections a run finds`,hint:`A run finds the account for what its wizard needs: a person's own account from another wizard, and the space's connections for the need (docs/plans/run-connections.md).`},ownKeys:{kind:`plan`,default:!0,label:`Own API keys`,hint:`The organization puts its providers' keys into the cloud studio instead of running on credits.`},personSignIn:{kind:`plan`,default:!0,label:`Each person signs in to a connection`,hint:`A space's connection may have each person sign in with their own account. Without it a connection signs in as the space.`}};function m(e,t){let n=e?.[t];return typeof n==`boolean`?n:Object.hasOwn(p,t)?p[t].default:!1}function h(e=p){let t={};for(let[n,r]of Object.entries(e))t[n]=r.default;return t}var g=e(f(),1);function _(e){return Object.fromEntries(r.filter(t=>e[t]?.startsWith(`apple:`)).map(e=>[e,``]))}function v(e){return e.split(/\s+/).map(e=>e.match(/[\p{L}\p{N}]/u)?.[0]??``).join(``).slice(0,2).toUpperCase()}function y(){let e=T().data?.limits.spaces;return e===null||(e??1)>1}function b(){return T().data?.limits.build??!0}function x(){let e=T().data,t=M().space?.studio??!1;return!e||e.limits.create||m(e.features,`capabilities`)&&e.limits.build&&t}function S(){let e=T().data;return!e||e.mode===`local`||e.tenant.role!==`member`}function C(){let e=d();return n=>{t(n),e.setQueryData([`me`],e=>e&&{...e,lang:n}),i.put(`/api/studio/lang`,{lang:n}).catch(()=>void 0)}}function w(e){let r=d();(0,g.useEffect)(()=>{if(!e)return;if(e.lang){t(e.lang);return}let a=n();a&&(r.setQueryData([`me`],e=>e&&{...e,lang:a}),i.put(`/api/studio/lang`,{lang:a}).catch(()=>void 0))},[e,r])}function T(){return s({queryKey:[`me`],queryFn:async()=>{try{return await i.get(`/api/studio/me`)}catch(e){if(e instanceof a&&e.status===401)return null;throw e}},staleTime:3e4})}function E(e=!0){return s({queryKey:o.spaces(),queryFn:()=>i.get(`/api/studio/spaces`),enabled:e})}var D=`wz.space`;function O(){try{return localStorage.getItem(D)}catch{return null}}var k=O(),A=new Set;function j(e){k=e;try{localStorage.setItem(D,e)}catch{}for(let e of A)e()}function M(){let e=E(),t=(0,g.useSyncExternalStore)(e=>(A.add(e),()=>A.delete(e)),()=>k),n=e.data??[];return{space:n.find(e=>e.id===t)??n[0]??null,spaces:n,select:j,loading:e.isLoading}}function N(e,t){return s({queryKey:[`cloud`,e],queryFn:()=>i.get(`/api/studio/wizards/${e}/cloud`),enabled:t})}function P(e){return e instanceof a&&e.body?.code===`read_only`?e.message:null}async function F(){let{account:e}=await(await fetch(l(`/api/auth/sign-out`),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`},body:`{}`})).json().catch(()=>({}));if(!e){window.location.href=`${u}/`;return}let t=document.createElement(`form`);t.method=`POST`,t.action=e;let n=document.createElement(`input`);n.type=`hidden`,n.name=`return`,n.value=`${window.location.origin}${u}/`,t.append(n),document.body.append(t),t.submit()}function I(e=L(),t){let n=new URLSearchParams({return:e});c!==u&&n.set(`organization`,c.slice(u.length+1)),t?.trim()&&n.set(`wish`,t.trim()),window.location.href=l(`/api/auth/login?${n}`)}function L(){let e=new URLSearchParams(window.location.search);e.delete(`signin`);let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}`}var R=`wizards.wish`,z=1;function B(e){try{localStorage.setItem(R,JSON.stringify({text:e,at:Date.now()}))}catch{}}function V(){try{let e=JSON.parse(localStorage.getItem(R)??`null`);if(typeof e?.text==`string`&&typeof e.at==`number`&&Date.now()-e.at<z*864e5)return e.text}catch{}return null}function H(){try{localStorage.removeItem(R)}catch{}}export{E as _,P as a,m as b,w as c,S as d,y as f,C as g,T as h,V as i,N as l,x as m,v as n,I as o,b as p,B as r,F as s,H as t,M as u,_ as v,h as y};
|