@kitn.ai/ui 0.29.0 → 0.31.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 +11 -7
- package/dist/{Icon-DObhsRtm.js → Icon-DJDuE_-x.js} +1 -1
- package/dist/action-icons-xkBBVKkF.js +1 -0
- package/dist/agent-tooling/construct/schema-url.d.ts +9 -0
- package/dist/agent-tooling/construct/schema.d.ts +76 -1
- package/dist/agent-tooling/construct/templates.d.ts +45 -0
- package/dist/arrow-down-DU6wOl-h.js +1 -0
- package/dist/arrow-left-DD46kN17.js +1 -0
- package/dist/artifact-DoUAr1Fd.js +1 -0
- package/dist/assets/dev-DwzHsqYD.js +553 -0
- package/dist/{attachments-Qr4kg-2b.js → attachments-BLWPDiLH.js} +1 -1
- package/dist/{audio-visualizer-DToYdfSc.js → audio-visualizer-DhHicYvV.js} +1 -1
- package/dist/{badge-CdEu_jn2.js → badge-BGm7pcwi.js} +1 -1
- package/dist/{bell-DQAAOpDz.js → bell-CMEdSo7A.js} +1 -1
- package/dist/builder-app/App.d.ts +1 -0
- package/dist/builder-app/edit-guard.d.ts +8 -0
- package/dist/builder-app/main.d.ts +0 -0
- package/dist/builder-page/assets/index-C10OF-ur.js +72 -0
- package/dist/builder-page/assets/index-CFyKLBlu.css +1 -0
- package/dist/builder-page/index.html +20 -0
- package/dist/button-BM0YTTDQ.js +1 -0
- package/dist/{card-renderer-Jx70m6_l.js → card-renderer-Ds-wXc6_.js} +1 -1
- package/dist/check-BG1VfYjm.js +1 -0
- package/dist/{checkbox-group-B2_rpoPM.js → checkbox-group-CqXj8ehz.js} +1 -1
- package/dist/{checkbox-D7iRB3nL.js → checkbox-np_5mKxM.js} +1 -1
- package/dist/chevron-down-CZ4W0hy6.js +1 -0
- package/dist/chevron-right-5gdxkCTF.js +1 -0
- package/dist/{choice-card-m0BYqqOK.js → choice-card-BYBmPAT5.js} +1 -1
- package/dist/circle-C0lwjD2A.js +1 -0
- package/dist/circle-check-BfT1cxQU.js +1 -0
- package/dist/{circle-x-BPG0iPst.js → circle-x-DzUfvRqr.js} +1 -1
- package/dist/{code-block-ClMLKb7C.js → code-block-H6E5Eurc.js} +1 -1
- package/dist/{collapsible-B4DlWicL.js → collapsible-CBq1Tj6y.js} +1 -1
- package/dist/components/builder-composer-triggers.d.ts +62 -0
- package/dist/components/builder-layout.d.ts +54 -0
- package/dist/components/builder-message-actions.d.ts +63 -0
- package/dist/components/builder-panel-derived.d.ts +18 -0
- package/dist/components/builder-panel.d.ts +240 -0
- package/dist/components/builder-preview.d.ts +11 -0
- package/dist/components/builder-shell-controls.d.ts +69 -0
- package/dist/components/builder-skeleton.d.ts +58 -0
- package/dist/components/builder-start.d.ts +79 -0
- package/dist/components/builder-workspace-variants.d.ts +23 -0
- package/dist/components/captions.d.ts +66 -0
- package/dist/components/chat-thread.d.ts +27 -1
- package/dist/components/construct-form-paths.d.ts +54 -0
- package/dist/components/message.d.ts +5 -0
- package/dist/{composer-sQ0HcvyG.js → composer-B5IvgxAF.js} +1 -1
- package/dist/{confirm-card-rQWDQsnC.js → confirm-card-B63pZIfG.js} +1 -1
- package/dist/construct-cli.es.js +469 -125
- package/dist/construct-templates.d.ts +5 -0
- package/dist/construct-templates.js +266 -0
- package/dist/construct.js +269 -86
- package/dist/{context-0kg4ZX1J.js → context-Byqor78j.js} +1 -1
- package/dist/controllable-C4BSt73s.js +1 -0
- package/dist/{conversation-item-BxwQLaFJ.js → conversation-item-piXZFRWa.js} +1 -1
- package/dist/{conversation-list-BCfGN1JU.js → conversation-list-B5yu9cPg.js} +1 -1
- package/dist/{copy-n9u9rqpi.js → copy-DfI2NYEX.js} +1 -1
- package/dist/{create-tween-uPkArjIG.js → create-tween-C4j96_Aj.js} +1 -1
- package/dist/{create-tween-C-q-JCM-.js → create-tween-CHleHI8m.js} +1 -1
- package/dist/{create-tween-CRrJXxBd.js → create-tween-DQ6lOhdl.js} +1 -1
- package/dist/{create-tween-DZ3RRDHD.js → create-tween-DyjTgkJi.js} +1 -1
- package/dist/custom-elements.json +40 -5
- package/dist/{default-input-CaMrJkgH.js → default-input-Bwmt8Lai.js} +1 -1
- package/dist/define-B3OpsIDE.js +1 -0
- package/dist/define.js +41 -41
- package/dist/define.server.js +46 -46
- package/dist/{disclosure-WUImBbDv.js → disclosure-ZSAlD4wg.js} +1 -1
- package/dist/{dropdown-wZVeJOMd.js → dropdown-CSRhiMN2.js} +1 -1
- package/dist/elements/agent-card.js +1 -1
- package/dist/elements/artifact.js +1 -1
- package/dist/elements/attachments.js +1 -1
- package/dist/elements/audio-visualizer.js +1 -1
- package/dist/elements/avatar.js +1 -1
- package/dist/elements/badge.js +1 -1
- package/dist/elements/button.js +1 -1
- package/dist/elements/card.js +1 -1
- package/dist/elements/cards.js +1 -1
- package/dist/elements/chain-of-thought.js +1 -1
- package/dist/elements/chat-actions.d.ts +12 -0
- package/dist/elements/chat-scope-picker.js +1 -1
- package/dist/elements/chat-types.d.ts +7 -2
- package/dist/elements/chat-workspace.js +1 -1
- package/dist/elements/chat.js +1 -1
- package/dist/elements/checkbox-group.js +1 -1
- package/dist/elements/checkbox.js +1 -1
- package/dist/elements/checkpoint.js +1 -1
- package/dist/elements/choice.js +1 -1
- package/dist/elements/coachmark.js +1 -1
- package/dist/elements/code-block.js +1 -1
- package/dist/elements/command.js +1 -1
- package/dist/elements/compare.js +1 -1
- package/dist/elements/composer.js +1 -1
- package/dist/elements/confirm-card.js +1 -1
- package/dist/elements/context-meter.js +1 -1
- package/dist/elements/conversation-item.js +1 -1
- package/dist/elements/conversation-list.js +1 -1
- package/dist/elements/dialog.js +1 -1
- package/dist/elements/dock.js +1 -1
- package/dist/elements/dropdown.js +1 -1
- package/dist/elements/editable-label.js +1 -1
- package/dist/elements/embed.js +1 -1
- package/dist/elements/empty.js +1 -1
- package/dist/elements/feedback-bar.js +1 -1
- package/dist/elements/file-tree.js +1 -1
- package/dist/elements/file-upload.js +1 -1
- package/dist/elements/form.js +1 -1
- package/dist/elements/hover-card.js +1 -1
- package/dist/elements/icon.js +1 -1
- package/dist/elements/image.js +1 -1
- package/dist/elements/input.js +1 -1
- package/dist/elements/kbd.js +1 -1
- package/dist/elements/link-preview.js +1 -1
- package/dist/elements/loader.js +1 -1
- package/dist/elements/markdown.js +1 -1
- package/dist/elements/menu.js +1 -1
- package/dist/elements/message-skills.js +1 -1
- package/dist/elements/message.js +1 -1
- package/dist/elements/model-switcher.js +1 -1
- package/dist/elements/nav.js +1 -1
- package/dist/elements/notice.js +1 -1
- package/dist/elements/pane-grid.js +1 -1
- package/dist/elements/pane-group.js +1 -1
- package/dist/elements/pane.js +1 -1
- package/dist/elements/popover.js +1 -1
- package/dist/elements/progress-bar.js +1 -1
- package/dist/elements/prompt-dock.js +1 -1
- package/dist/elements/prompt-input.js +1 -1
- package/dist/elements/prompt-suggestions.js +1 -1
- package/dist/elements/radio-group.js +1 -1
- package/dist/elements/reasoning.js +1 -1
- package/dist/elements/remote.js +1 -1
- package/dist/elements/resizable.js +1 -1
- package/dist/elements/response-stream.js +1 -1
- package/dist/elements/screen.js +1 -1
- package/dist/elements/scroll-area.js +1 -1
- package/dist/elements/scroll-button.js +1 -1
- package/dist/elements/search.js +1 -1
- package/dist/elements/segmented.js +1 -1
- package/dist/elements/select.js +1 -1
- package/dist/elements/separator.js +1 -1
- package/dist/elements/setting-item.js +1 -1
- package/dist/elements/settings-group.js +1 -1
- package/dist/elements/skeleton.js +1 -1
- package/dist/elements/slider.js +1 -1
- package/dist/elements/source.js +1 -1
- package/dist/elements/status.js +1 -1
- package/dist/elements/switch.js +1 -1
- package/dist/elements/tabs.js +1 -1
- package/dist/elements/tasks.js +1 -1
- package/dist/elements/text-shimmer.js +1 -1
- package/dist/elements/thinking-bar.js +1 -1
- package/dist/elements/thread.js +1 -1
- package/dist/elements/toast.js +1 -1
- package/dist/elements/tool.js +1 -1
- package/dist/elements/tooltip.js +1 -1
- package/dist/elements/voice-input.js +1 -1
- package/dist/elements/voice-output.js +1 -1
- package/dist/elements.d.ts +22 -10
- package/dist/{ellipsis-CbOpJnU3.js → ellipsis-CJ5QIjWo.js} +1 -1
- package/dist/{embed-CrfjkbUG.js → embed-6Vji0PfS.js} +1 -1
- package/dist/{external-link-ByXAwBBQ.js → external-link-BPTtTdet.js} +1 -1
- package/dist/{file-text-DMib2qwt.js → file-text-eVjcFDrK.js} +1 -1
- package/dist/{file-tree-CJqM2aP7.js → file-tree-a9tfWYmg.js} +1 -1
- package/dist/{folder-_BAb929C.js → folder-DN6Ilq6d.js} +1 -1
- package/dist/{form-DSZgZQZk.js → form-U1cwhcQx.js} +1 -1
- package/dist/{hover-card-BQbul9eq.js → hover-card-C5ptzZOZ.js} +1 -1
- package/dist/{icon-CdcfRhYI.js → icon-BOMrFp0D.js} +1 -1
- package/dist/index.js +2297 -2279
- package/dist/index.server.js +2102 -2084
- package/dist/{info-DsFjGuI_.js → info-DxzKsIHn.js} +1 -1
- package/dist/{input-DKbmkMos.js → input-aW72PACH.js} +1 -1
- package/dist/kai.es.js +1 -1
- package/dist/{kbd-PvdGhX4s.js → kbd-BP-6MwUs.js} +1 -1
- package/dist/{link-preview-DbM1866N.js → link-preview-CZaDilMG.js} +1 -1
- package/dist/{link-zF8PzWfF.js → link-rlN11N0B.js} +1 -1
- package/dist/loader-BdFK70fF.js +1 -0
- package/dist/{markdown-LMvmAyBk.js → markdown-DjEaoNz-.js} +1 -1
- package/dist/mcp.es.js +587 -111
- package/dist/message--Nlbemtp.js +1 -0
- package/dist/message-C88yTu2A.js +1 -0
- package/dist/message-circle-CZeVDN1f.js +1 -0
- package/dist/message-square-BXNBKC6i.js +1 -0
- package/dist/{minimize-2-BQRoBV1V.js → minimize-2-BxLOOSEf.js} +1 -1
- package/dist/{model-switcher-CMpCOYcB.js → model-switcher-BxRvub2A.js} +1 -1
- package/dist/{overlay-Cb-MkyDa.js → overlay-CDwKJtHN.js} +1 -1
- package/dist/{panel-right-i8warFxT.js → panel-right-BovedCwW.js} +1 -1
- package/dist/{paperclip-ByY3UVO6.js → paperclip-D0Xyjja2.js} +1 -1
- package/dist/play-DGJ4MgB2.js +1 -0
- package/dist/primitives/speech.d.ts +35 -0
- package/dist/primitives/use-auto-resize.d.ts +11 -0
- package/dist/{progress-bar-jVAHvMUf.js → progress-bar-D-aQfy5h.js} +1 -1
- package/dist/{prompt-suggestion-CD-qtNgC.js → prompt-suggestion-C6qLjMEQ.js} +1 -1
- package/dist/{radio-BsoBMhkF.js → radio-D1CkXISc.js} +1 -1
- package/dist/react/index.d.ts +22 -6
- package/dist/react.js +13 -13
- package/dist/{reasoning-4kBPtlTx.js → reasoning-DARmbgmE.js} +1 -1
- package/dist/register-impl-WcrdIihK.js +424 -0
- package/dist/{resizable-uPmY9VY-.js → resizable-Da6oSO2z.js} +1 -1
- package/dist/{rotate-ccw-B2xn93py.js → rotate-ccw-31ed1xK_.js} +1 -1
- package/dist/{rotate-cw-CMVLoCyH.js → rotate-cw-qkl39dw3.js} +1 -1
- package/dist/{scroll-area-BqLUo8ZZ.js → scroll-area-RrKnLYlA.js} +1 -1
- package/dist/{scroll-button-DslXiJyL.js → scroll-button--QeNjobK.js} +1 -1
- package/dist/{select-2cLRtPGT.js → select-CS_0mWW3.js} +1 -1
- package/dist/{separator-BWQtNJcM.js → separator-fT-zBypW.js} +1 -1
- package/dist/{settings-BBR63jLg.js → settings-dfkV_WDm.js} +1 -1
- package/dist/{settings-group-B2ciy-Iw.js → settings-group-CX694npG.js} +1 -1
- package/dist/{skeleton-CkHI-HgC.js → skeleton-BsqKD9TV.js} +1 -1
- package/dist/{slider-DDR9U-i0.js → slider-_EWfTH9H.js} +1 -1
- package/dist/{solid-DruVOXnf.js → solid-BITWG_VE.js} +4214 -3996
- package/dist/{solid-BzCFdL25.js → solid-CRFYWlBw.js} +5647 -5373
- package/dist/solid.d.ts +6 -0
- package/dist/solid.js +259 -254
- package/dist/solid.server.js +259 -254
- package/dist/{source-GEnFF528.js → source-Da1TFiuj.js} +1 -1
- package/dist/speech-CjbWuqG2.js +1 -0
- package/dist/{star-CilHq8GP.js → star-ZvSbbXS6.js} +1 -1
- package/dist/{store-Ciyk6eZG.js → store-DE5lcr9q.js} +1 -1
- package/dist/{switch-KkeQIbuH.js → switch-P_fsHqv3.js} +1 -1
- package/dist/{tasks-card-BrN4bggJ.js → tasks-card-B86qqyZm.js} +1 -1
- package/dist/text-shimmer-BAkw_65G.js +1 -0
- package/dist/textarea-Bkinatpi.js +1 -0
- package/dist/theme.tokens.css +22 -21
- package/dist/{thumbs-up-CsT9Wzb9.js → thumbs-up-CDGW7a4o.js} +1 -1
- package/dist/{toast-store-tgK6MuMv.js → toast-store-B94I50AO.js} +1 -1
- package/dist/{tool-DzUjIBT8.js → tool-CUiCeyi1.js} +1 -1
- package/dist/{tooltip-Bkkg_4t0.js → tooltip-B3wlQSPh.js} +1 -1
- package/dist/{trash-2-jBKxjGGQ.js → trash-2-Cu8yZmFQ.js} +1 -1
- package/dist/{triangle-alert-DlQ68ppf.js → triangle-alert-CCtDUUmn.js} +1 -1
- package/dist/ui/button-variant-names.d.ts +12 -0
- package/dist/ui/button.d.ts +6 -0
- package/dist/ui/color-field.d.ts +48 -0
- package/dist/ui/textarea.d.ts +4 -0
- package/dist/ui/toggle-chip.d.ts +40 -0
- package/dist/{upload-TcAHXv9W.js → upload-CxotJlLv.js} +1 -1
- package/dist/{use-card-resolution-DaZqAdWf.js → use-card-resolution-DILUvNyj.js} +1 -1
- package/dist/{variant-aurora-DbW_OWL2.js → variant-aurora-BGaXBBGf.js} +1 -1
- package/dist/{variant-aurora-BhLuYxJR.js → variant-aurora-BLcQmvkd.js} +1 -1
- package/dist/{variant-aurora-CNmfHhcx.js → variant-aurora-DZIfAtx1.js} +2 -2
- package/dist/{variant-aurora-D6GsdTPA.js → variant-aurora-DpoIW4ZX.js} +2 -2
- package/dist/{variant-custom-BRvaNHSi.js → variant-custom-BhtWdAxE.js} +1 -1
- package/dist/{variant-custom-DMTrEO5w.js → variant-custom-BtApuSyr.js} +2 -2
- package/dist/{variant-custom-DV2x254s.js → variant-custom-C-zS4ZtE.js} +2 -2
- package/dist/{variant-custom-BvYHR62b.js → variant-custom-swi9PXxU.js} +1 -1
- package/dist/{variant-wave-sp-qwsdI.js → variant-wave-7JCIwhpb.js} +1 -1
- package/dist/{variant-wave-BpDd8t3Z.js → variant-wave-BG4nGr6x.js} +1 -1
- package/dist/{variant-wave-BNMGrDfj.js → variant-wave-C32lM9G2.js} +2 -2
- package/dist/{variant-wave-CyBueXj9.js → variant-wave-Dl6jOiK3.js} +2 -2
- package/dist/x-C4niw05N.js +1 -0
- package/frameworks/react/index.tsx +12 -6
- package/kit-base.css +311 -0
- package/llms-full.txt +9 -6
- package/llms.txt +1 -1
- package/package.json +23 -4
- package/solid.css +48 -0
- package/src/elements/element-meta.json +39 -14
- package/theme.css +39 -23
- package/dist/action-icons-CcgNN2oT.js +0 -1
- package/dist/arrow-down-CjRU3JgV.js +0 -1
- package/dist/arrow-left-Bnpb1UEW.js +0 -1
- package/dist/artifact-Bwt7OgcR.js +0 -1
- package/dist/assets/dev-5XzXYR21.js +0 -91
- package/dist/button-DkuOnGLy.js +0 -1
- package/dist/check-njkVdZu2.js +0 -1
- package/dist/chevron-down-B72s6PXR.js +0 -1
- package/dist/chevron-right-BatuHzUm.js +0 -1
- package/dist/circle-check-B62pODB3.js +0 -1
- package/dist/circle-zx0ByzY9.js +0 -1
- package/dist/controllable-CnGpMF6r.js +0 -1
- package/dist/define-By-uL588.js +0 -1
- package/dist/loader-BM4CEz4G.js +0 -1
- package/dist/message-BSsgvHvf.js +0 -1
- package/dist/message-BYZECyek.js +0 -1
- package/dist/message-circle-DruwObfX.js +0 -1
- package/dist/message-square-BG6q6mlm.js +0 -1
- package/dist/play-BvKKq3fX.js +0 -1
- package/dist/register-impl-B1hLkrI8.js +0 -424
- package/dist/text-shimmer-Dcj1MHuq.js +0 -1
- package/dist/textarea-Dpvbngbg.js +0 -1
- package/dist/x-Z5UntkIJ.js +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// GENERATED by scripts/emit-subpath-dts.mjs — do not edit.
|
|
2
|
+
// Sibling declarations for dist/construct-templates.js, so that RELATIVE imports
|
|
3
|
+
// of this bundle (which bypass package.json "exports") still resolve to types.
|
|
4
|
+
// Without this, tsc resolves the path to the .js and reports TS7016.
|
|
5
|
+
export * from './agent-tooling/construct/templates.js';
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
const r = "https://ui.kitn.ai/schemas/construct/v1.json", t = { id: "identity", paths: ["name"] }, a = { id: "theme", paths: ["theme.accent", "theme.mode", "theme.unreadColor"] }, n = { id: "header", paths: ["header.title"] }, m = {
|
|
2
|
+
id: "header",
|
|
3
|
+
paths: ["header.title", "header.themeToggle", "header.actions"]
|
|
4
|
+
}, u = { id: "empty", paths: ["empty.title", "empty.description", "empty.icon"] }, b = { id: "home", paths: ["home"] }, s = {
|
|
5
|
+
id: "capabilities",
|
|
6
|
+
paths: [
|
|
7
|
+
"capabilities.starters",
|
|
8
|
+
"capabilities.attachments",
|
|
9
|
+
"capabilities.history",
|
|
10
|
+
"capabilities.conversations",
|
|
11
|
+
"capabilities.reasoning",
|
|
12
|
+
"capabilities.reasoningOpen"
|
|
13
|
+
]
|
|
14
|
+
}, c = {
|
|
15
|
+
id: "messageActions",
|
|
16
|
+
paths: ["capabilities.messageActions.user", "capabilities.messageActions.assistant"]
|
|
17
|
+
}, g = { id: "sources", paths: ["capabilities.sources.strip"] }, w = {
|
|
18
|
+
id: "widget",
|
|
19
|
+
paths: ["widget.position", "widget.launcherIcon", "widget.defaultOpen"]
|
|
20
|
+
}, f = { id: "aside", paths: ["aside.position", "aside.width"] }, p = {
|
|
21
|
+
id: "composerTriggers",
|
|
22
|
+
paths: ["composer.triggers.slash", "composer.triggers.mention"]
|
|
23
|
+
}, l = { id: "shell", paths: ["shell.commandPalette", "shell.userMenu"] }, y = { id: "cards", paths: ["cards"] }, i = { id: "provider", paths: ["provider"] }, v = {
|
|
24
|
+
$schema: r,
|
|
25
|
+
name: "support-widget",
|
|
26
|
+
layout: "widget",
|
|
27
|
+
provider: { mode: "mock" },
|
|
28
|
+
header: { title: "Support" },
|
|
29
|
+
theme: { unreadColor: "#38BDF8", mode: "system" },
|
|
30
|
+
empty: {
|
|
31
|
+
title: "Hi, we're here to help",
|
|
32
|
+
description: "Ask us about orders, refunds, and more."
|
|
33
|
+
},
|
|
34
|
+
home: {
|
|
35
|
+
greeting: { title: "How can we help? 👋", subtitle: "Orders, refunds, anything." },
|
|
36
|
+
recentConversation: !0,
|
|
37
|
+
links: [
|
|
38
|
+
{ label: "Help center", href: "https://ui.kitn.ai", description: "Guides and FAQs", icon: "book-open" }
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
// States the kit default loudly (the anchored-on-the-default convention,
|
|
42
|
+
// same as research's sources.strip) so the template's chrome fact is
|
|
43
|
+
// visible/editable in its own JSON.
|
|
44
|
+
widget: { position: "bottom-end" },
|
|
45
|
+
capabilities: {
|
|
46
|
+
starters: ["Where's my order?", "Request a refund"],
|
|
47
|
+
attachments: { accept: ["image/*", "application/pdf"] },
|
|
48
|
+
history: { persistence: "local" },
|
|
49
|
+
conversations: !0
|
|
50
|
+
}
|
|
51
|
+
}, k = {
|
|
52
|
+
$schema: r,
|
|
53
|
+
name: "in-app-assistant",
|
|
54
|
+
layout: "aside",
|
|
55
|
+
provider: { mode: "mock" },
|
|
56
|
+
header: { title: "Assistant" },
|
|
57
|
+
// Dark-by-default (owner ruling, dark round): every buildable starter
|
|
58
|
+
// EXCEPT widget ships mode: 'dark' — widget is embedded in a host site and
|
|
59
|
+
// follows IT, not its own preference (T-3: this is registry data, not a
|
|
60
|
+
// schema default; 'system' stays the schema's own default for anyone
|
|
61
|
+
// hand-authoring a construct).
|
|
62
|
+
theme: { accent: "#0ea5e9", mode: "dark" },
|
|
63
|
+
// codegen's own defaults, stated so the geometry is visible/editable.
|
|
64
|
+
aside: { position: "end", width: "380px" },
|
|
65
|
+
capabilities: {
|
|
66
|
+
starters: ["Deploy payments to production", "Check the canary status"],
|
|
67
|
+
attachments: { accept: ["image/*", "application/pdf"] },
|
|
68
|
+
history: { persistence: "local" }
|
|
69
|
+
}
|
|
70
|
+
}, A = {
|
|
71
|
+
$schema: r,
|
|
72
|
+
name: "daily-assistant",
|
|
73
|
+
layout: "fullscreen",
|
|
74
|
+
provider: { mode: "mock" },
|
|
75
|
+
header: { title: "Assistant" },
|
|
76
|
+
// Dark-by-default (owner ruling, dark round) — see inAppAssistantStarter's
|
|
77
|
+
// note above.
|
|
78
|
+
theme: { accent: "#7c3aed", mode: "dark" },
|
|
79
|
+
empty: {
|
|
80
|
+
title: "What can I help with?",
|
|
81
|
+
description: "Ask anything, or start from a suggestion below."
|
|
82
|
+
},
|
|
83
|
+
capabilities: {
|
|
84
|
+
starters: ["Draft the Q3 board update", "Summarize a document", "Compare two options"],
|
|
85
|
+
attachments: { accept: ["image/*", "application/pdf"] },
|
|
86
|
+
history: { persistence: "local" },
|
|
87
|
+
conversations: !0
|
|
88
|
+
}
|
|
89
|
+
}, E = {
|
|
90
|
+
$schema: r,
|
|
91
|
+
name: "research-assistant",
|
|
92
|
+
layout: "fullscreen",
|
|
93
|
+
provider: { mode: "mock" },
|
|
94
|
+
header: { title: "Research" },
|
|
95
|
+
// Dark-by-default (owner ruling, dark round) — see inAppAssistantStarter's
|
|
96
|
+
// note above.
|
|
97
|
+
theme: { accent: "#0f766e", mode: "dark" },
|
|
98
|
+
capabilities: {
|
|
99
|
+
starters: ["How does the wire adapter work?", "What are message parts?"],
|
|
100
|
+
attachments: { accept: ["application/pdf"] },
|
|
101
|
+
history: { persistence: "local" },
|
|
102
|
+
// The template's defining fact, stated even though it matches the emit
|
|
103
|
+
// default (B-4): the row already renders; strip: true is the visible
|
|
104
|
+
// switch this template exists around.
|
|
105
|
+
sources: { strip: !0 },
|
|
106
|
+
// "assistant-style actions" (B-13) — the owner's A3 default matrix
|
|
107
|
+
// (builder-message-actions.tsx: user Edit on; assistant
|
|
108
|
+
// Copy/Like/Dislike on).
|
|
109
|
+
messageActions: { user: ["edit"], assistant: ["copy", "like", "dislike"] }
|
|
110
|
+
}
|
|
111
|
+
}, S = {
|
|
112
|
+
triggers: {
|
|
113
|
+
slash: [
|
|
114
|
+
{ id: "summarize", label: "summarize", description: "Summarize the thread so far" },
|
|
115
|
+
{ id: "translate", label: "translate", description: "Translate the last message" }
|
|
116
|
+
],
|
|
117
|
+
mention: [
|
|
118
|
+
{ id: "researcher", label: "researcher", description: "Hands off to the research agent" },
|
|
119
|
+
{ id: "coder", label: "coder", description: "Hands off to the coding agent" }
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
}, d = {
|
|
123
|
+
$schema: r,
|
|
124
|
+
name: "build-workspace",
|
|
125
|
+
layout: "split",
|
|
126
|
+
provider: { mode: "mock" },
|
|
127
|
+
header: {
|
|
128
|
+
title: "Workspace",
|
|
129
|
+
themeToggle: !0,
|
|
130
|
+
// The story's Share/Deploy rows, mapped onto the kit Button's real
|
|
131
|
+
// variant names (B-6a's enum): 'secondary' → outline, 'primary' → default.
|
|
132
|
+
actions: [
|
|
133
|
+
{ label: "Share", variant: "outline" },
|
|
134
|
+
{ label: "Deploy", variant: "default" }
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
// Dark-by-default (owner ruling, dark round) — see inAppAssistantStarter's
|
|
138
|
+
// note above. Both variants below spread ...workspaceBase without
|
|
139
|
+
// overriding theme, so this covers artifactPreview and appPreview too.
|
|
140
|
+
theme: { accent: "#ea580c", mode: "dark" },
|
|
141
|
+
shell: { commandPalette: !0, userMenu: { name: "Ada", plan: "Pro" } },
|
|
142
|
+
composer: S,
|
|
143
|
+
capabilities: {
|
|
144
|
+
starters: ["Build a pricing table", "Add a dark mode toggle"],
|
|
145
|
+
attachments: { accept: ["image/*"] },
|
|
146
|
+
history: { persistence: "local" }
|
|
147
|
+
}
|
|
148
|
+
}, T = {
|
|
149
|
+
...d,
|
|
150
|
+
name: "artifact-workspace"
|
|
151
|
+
}, C = {
|
|
152
|
+
...d,
|
|
153
|
+
name: "app-workspace",
|
|
154
|
+
capabilities: {
|
|
155
|
+
...d.capabilities,
|
|
156
|
+
starters: ["Build a landing page for a coffee shop", "Make the hero work on mobile"]
|
|
157
|
+
}
|
|
158
|
+
}, h = [
|
|
159
|
+
{
|
|
160
|
+
id: "widget",
|
|
161
|
+
name: "Support widget",
|
|
162
|
+
description: "A floating chat that lives in the corner of your site.",
|
|
163
|
+
availability: "buildable",
|
|
164
|
+
starter: v,
|
|
165
|
+
controls: [t, a, n, b, s, w, i]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "inAppAssistant",
|
|
169
|
+
name: "In-app assistant",
|
|
170
|
+
description: "An assistant docked inside your existing app.",
|
|
171
|
+
availability: "buildable",
|
|
172
|
+
starter: k,
|
|
173
|
+
// Design-parity fix wave (2026-08-29 audit): the story's In-app
|
|
174
|
+
// assistant panel shows Composer triggers, Message actions and a
|
|
175
|
+
// read-only Cards list, none of which were wired here even though the
|
|
176
|
+
// vocabulary and the panel machinery both already exist (proven working
|
|
177
|
+
// on Workspace/Assistant/Research). Voice/Reveal-mode/Rail-placement
|
|
178
|
+
// stay absent — those are the story's own labeled preview-only,
|
|
179
|
+
// T-5-deferred fields with no construct vocabulary at all.
|
|
180
|
+
controls: [t, a, n, f, p, s, c, y, i]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "assistant",
|
|
184
|
+
name: "Assistant",
|
|
185
|
+
description: "A full-page assistant with a history of past conversations.",
|
|
186
|
+
availability: "buildable",
|
|
187
|
+
starter: A,
|
|
188
|
+
// Design-parity fix wave: the story's Assistant panel shows an App
|
|
189
|
+
// chrome / Shell section (Command palette toggle, User menu) that
|
|
190
|
+
// wasn't wired here — same already-working vocabulary as Workspace's
|
|
191
|
+
// SHELL section.
|
|
192
|
+
controls: [t, a, n, l, u, s, c, i]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: "research",
|
|
196
|
+
name: "Research",
|
|
197
|
+
description: "Search-first answers with cited sources.",
|
|
198
|
+
availability: "buildable",
|
|
199
|
+
starter: E,
|
|
200
|
+
controls: [t, a, n, s, g, c, i]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: "workspace",
|
|
204
|
+
name: "Workspace",
|
|
205
|
+
description: "Chat drives a live work surface: previews, code, and artifacts build beside the conversation.",
|
|
206
|
+
availability: "buildable",
|
|
207
|
+
starter: d,
|
|
208
|
+
variants: [
|
|
209
|
+
{
|
|
210
|
+
id: "artifactPreview",
|
|
211
|
+
name: "Artifact preview beside chat",
|
|
212
|
+
description: "A code or rendered-output pane grows beside the conversation as you build.",
|
|
213
|
+
starter: T
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: "appPreview",
|
|
217
|
+
name: "App preview with device toggles",
|
|
218
|
+
description: "A full browser-chrome preview of the running app, with desktop, tablet, and mobile views.",
|
|
219
|
+
starter: C
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
controls: [
|
|
223
|
+
t,
|
|
224
|
+
a,
|
|
225
|
+
m,
|
|
226
|
+
l,
|
|
227
|
+
p,
|
|
228
|
+
s,
|
|
229
|
+
c,
|
|
230
|
+
i
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
id: "voice",
|
|
235
|
+
name: "Voice",
|
|
236
|
+
description: "A voice-first assistant you talk to, push-to-talk and all.",
|
|
237
|
+
availability: "story-only"
|
|
238
|
+
}
|
|
239
|
+
];
|
|
240
|
+
function R() {
|
|
241
|
+
return h.filter((e) => e.availability === "buildable");
|
|
242
|
+
}
|
|
243
|
+
function I(e) {
|
|
244
|
+
return h.find((o) => o.id === e);
|
|
245
|
+
}
|
|
246
|
+
function H(e) {
|
|
247
|
+
var o;
|
|
248
|
+
switch (e.layout) {
|
|
249
|
+
case "widget":
|
|
250
|
+
return "widget";
|
|
251
|
+
case "aside":
|
|
252
|
+
return "inAppAssistant";
|
|
253
|
+
case "split":
|
|
254
|
+
return "workspace";
|
|
255
|
+
case "fullscreen":
|
|
256
|
+
return (o = e.capabilities) != null && o.sources ? "research" : "assistant";
|
|
257
|
+
default:
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
export {
|
|
262
|
+
h as TEMPLATES,
|
|
263
|
+
R as buildableTemplates,
|
|
264
|
+
H as inferTemplateId,
|
|
265
|
+
I as templateById
|
|
266
|
+
};
|