@neuronection/assistant-ui 0.53.1 → 0.55.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/CHANGELOG.md +21 -0
- package/README.md +1 -0
- package/dist/capability-chips.js +1 -1
- package/dist/chunk-6G7H6YP6.js +180 -0
- package/dist/chunk-6G7H6YP6.js.map +1 -0
- package/dist/chunk-7IP3JP3Z.js +54 -0
- package/dist/chunk-7IP3JP3Z.js.map +1 -0
- package/dist/chunk-FQXVZVA5.js +68 -0
- package/dist/chunk-FQXVZVA5.js.map +1 -0
- package/dist/chunk-FY3NCPFO.js +112 -0
- package/dist/chunk-FY3NCPFO.js.map +1 -0
- package/dist/{chunk-SY5FR4HC.js → chunk-H5KOC7Z5.js} +2 -2
- package/dist/{chunk-SY5FR4HC.js.map → chunk-H5KOC7Z5.js.map} +1 -1
- package/dist/chunk-KKZLR3YD.js +3 -0
- package/dist/chunk-KKZLR3YD.js.map +1 -0
- package/dist/chunk-RRT3DOPJ.js +3 -0
- package/dist/chunk-RRT3DOPJ.js.map +1 -0
- package/dist/chunk-SESPLTG7.js +3 -0
- package/dist/chunk-SESPLTG7.js.map +1 -0
- package/dist/chunk-YDQW2WJH.js +70 -0
- package/dist/chunk-YDQW2WJH.js.map +1 -0
- package/dist/{chunk-I5H4KYEZ.js → chunk-YHMVPFEN.js} +3 -3
- package/dist/{chunk-I5H4KYEZ.js.map → chunk-YHMVPFEN.js.map} +1 -1
- package/dist/chunk-YSBGF44F.js +104 -0
- package/dist/chunk-YSBGF44F.js.map +1 -0
- package/dist/index.d.ts +217 -1
- package/dist/index.js +14 -8
- package/dist/model-registry.js +1 -1
- package/dist/provider-logo.d.ts +16 -0
- package/dist/provider-logo.js +3 -0
- package/dist/provider-logo.js.map +1 -0
- package/dist/provider-setup-form.d.ts +74 -0
- package/dist/provider-setup-form.js +3 -0
- package/dist/provider-setup-form.js.map +1 -0
- package/dist/provider-setup-tiles.d.ts +52 -0
- package/dist/provider-setup-tiles.js +3 -0
- package/dist/provider-setup-tiles.js.map +1 -0
- package/dist/setup-first-run-card.d.ts +23 -0
- package/dist/setup-first-run-card.js +3 -0
- package/dist/setup-first-run-card.js.map +1 -0
- package/dist/setup-review.d.ts +51 -0
- package/dist/setup-review.js +3 -0
- package/dist/setup-review.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/switch-row.d.ts +19 -0
- package/dist/switch-row.js +3 -0
- package/dist/switch-row.js.map +1 -0
- package/package.json +25 -1
package/dist/index.d.ts
CHANGED
|
@@ -597,6 +597,222 @@ interface ProviderFormProps extends React.ComponentProps<'div'> {
|
|
|
597
597
|
*/
|
|
598
598
|
declare const ProviderForm: React.ForwardRefExoticComponent<Omit<ProviderFormProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
599
599
|
|
|
600
|
+
/** A capability chip rendered on the tile (plan 26 follow-up): the app
|
|
601
|
+
* derives chips from its preset data (wire type → chat/vision/stt,
|
|
602
|
+
* decision models → decision, keyless-local → local) and supplies the
|
|
603
|
+
* translated label — the library never guesses copy (ADR-006). */
|
|
604
|
+
interface ProviderSetupTileChip {
|
|
605
|
+
key: string;
|
|
606
|
+
label: string;
|
|
607
|
+
}
|
|
608
|
+
/** One preset entry (ADR-006: the catalog is app data — the tiles only
|
|
609
|
+
* render it, in the order given, with equal weight). */
|
|
610
|
+
interface ProviderSetupTileData {
|
|
611
|
+
key: string;
|
|
612
|
+
name: string;
|
|
613
|
+
/** Keyless local preset (e.g. Ollama) — renders the `localLabel` caption. */
|
|
614
|
+
local?: boolean;
|
|
615
|
+
/** Capability chips (e.g. chat / vision / decision / local) — rendered
|
|
616
|
+
* with the capability-chips badge pattern, neutral (equal weight). */
|
|
617
|
+
chips?: ProviderSetupTileChip[];
|
|
618
|
+
/** Disabled tiles render inert with their reason (health's overlay). */
|
|
619
|
+
disabled?: boolean;
|
|
620
|
+
disabledReason?: string;
|
|
621
|
+
/** The preset ships a key-prefix hint (informational for the app). */
|
|
622
|
+
hasKeyPrefixHint?: boolean;
|
|
623
|
+
}
|
|
624
|
+
interface ProviderSetupTilesProps extends Omit<React.ComponentProps<'div'>, 'onSelect' | 'children'> {
|
|
625
|
+
/** Presets in the app's family order — the grid keeps it verbatim. */
|
|
626
|
+
presets: ProviderSetupTileData[];
|
|
627
|
+
/** Preset keys already configured (renders the `configuredLabel` badge). */
|
|
628
|
+
configured?: string[];
|
|
629
|
+
/** Key of a tile the app's paste-prefix match suggests (highlight only —
|
|
630
|
+
* never a "recommended" ranking; all tiles stay equal weight). */
|
|
631
|
+
suggestedKey?: string;
|
|
632
|
+
/** Fires with the preset key of the activated tile. */
|
|
633
|
+
onSelect: (key: string) => void;
|
|
634
|
+
/** Extra grid cell (e.g. the "Manual / custom" tile) — app-composed. */
|
|
635
|
+
children?: React.ReactNode;
|
|
636
|
+
label?: string;
|
|
637
|
+
localLabel?: string;
|
|
638
|
+
configuredLabel?: string;
|
|
639
|
+
/** Visually-hidden text marking the suggested tile. */
|
|
640
|
+
suggestedLabel?: string;
|
|
641
|
+
}
|
|
642
|
+
/** Neutral, equal-weight provider picker grid — step one of the family's
|
|
643
|
+
* one-click setup (plan 26 §6): tiles in family order, no "recommended"
|
|
644
|
+
* anywhere, local presets visible, disabled presets explain themselves. */
|
|
645
|
+
declare const ProviderSetupTiles: React.ForwardRefExoticComponent<Omit<ProviderSetupTilesProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
646
|
+
/** The "manual / custom" tile apps append as `children` of the grid. */
|
|
647
|
+
declare const ProviderSetupManualTile: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
648
|
+
|
|
649
|
+
/** The shared §15 error-routing enum (family contract — apps key their i18n
|
|
650
|
+
* off exactly these codes). */
|
|
651
|
+
declare const SETUP_ERROR_CODES: readonly ["invalid_key", "insufficient_credit", "new_user_quota", "region_unavailable", "timeout", "local_not_running", "unknown"];
|
|
652
|
+
type SetupErrorCode = (typeof SETUP_ERROR_CODES)[number];
|
|
653
|
+
/** English fallback copy per code — apps inject translated labels via
|
|
654
|
+
* `errorLabels` (the library ships no i18n engine, ADR-006). */
|
|
655
|
+
declare const DEFAULT_SETUP_ERROR_COPY: Record<SetupErrorCode, string>;
|
|
656
|
+
/** Guided-setup preset slice (app data; snake_case API fields map app-side). */
|
|
657
|
+
interface ProviderSetupFormPreset {
|
|
658
|
+
name: string;
|
|
659
|
+
keyUrl?: string;
|
|
660
|
+
steps?: string[];
|
|
661
|
+
freeTierNote?: string;
|
|
662
|
+
fixedBase?: boolean;
|
|
663
|
+
baseUrl: string;
|
|
664
|
+
/** Keyless local preset — renders `noKeyLabel` instead of the key field. */
|
|
665
|
+
local?: boolean;
|
|
666
|
+
}
|
|
667
|
+
interface ProviderSetupFormValue {
|
|
668
|
+
name: string;
|
|
669
|
+
apiKey: string;
|
|
670
|
+
baseUrl?: string;
|
|
671
|
+
}
|
|
672
|
+
/** Classified setup failure (§15 error routing) — copy comes from
|
|
673
|
+
* `errorLabels`, keyed off the code. */
|
|
674
|
+
interface ProviderSetupFormError {
|
|
675
|
+
code: SetupErrorCode | string;
|
|
676
|
+
suspectedVendor?: string | null;
|
|
677
|
+
}
|
|
678
|
+
interface ProviderSetupFormProps extends Omit<React.ComponentProps<'form'>, 'onChange' | 'onSubmit'> {
|
|
679
|
+
preset: ProviderSetupFormPreset;
|
|
680
|
+
/** Controlled field values. */
|
|
681
|
+
value: ProviderSetupFormValue;
|
|
682
|
+
error?: ProviderSetupFormError | null;
|
|
683
|
+
/** Validation/connection test in flight — disables + marks the submit. */
|
|
684
|
+
testing?: boolean;
|
|
685
|
+
onSubmit: (value: ProviderSetupFormValue) => void;
|
|
686
|
+
onCancel?: () => void;
|
|
687
|
+
onChange: (value: ProviderSetupFormValue) => void;
|
|
688
|
+
/** Translated error copy per §15 code (`{vendor}` interpolates in the hint). */
|
|
689
|
+
errorLabels?: Partial<Record<string, string>>;
|
|
690
|
+
suspectedVendorHint?: string;
|
|
691
|
+
/** Notified when a checklist step is copied (Electron apps mirror the copy
|
|
692
|
+
* through their IPC clipboard; the browser write always happens). */
|
|
693
|
+
onCopyStep?: (step: string) => void;
|
|
694
|
+
/** Opens the key page — render an anchor by default; Electron apps pass
|
|
695
|
+
* their `openExternal` bridge to get a button instead. */
|
|
696
|
+
onOpenKeyUrl?: (url: string) => void;
|
|
697
|
+
/** Extra app content inside the Advanced disclosure (hosting toggle,
|
|
698
|
+
* country select — study/health pattern). */
|
|
699
|
+
advancedExtra?: React.ReactNode;
|
|
700
|
+
checklistLabel?: string;
|
|
701
|
+
copyLabel?: string;
|
|
702
|
+
getKeyLabel?: string;
|
|
703
|
+
nameLabel?: string;
|
|
704
|
+
apiKeyLabel?: string;
|
|
705
|
+
keyPlaceholder?: string;
|
|
706
|
+
noKeyLabel?: string;
|
|
707
|
+
advancedLabel?: string;
|
|
708
|
+
baseUrlLabel?: string;
|
|
709
|
+
baseUrlHint?: string;
|
|
710
|
+
submitLabel?: string;
|
|
711
|
+
cancelLabel?: string;
|
|
712
|
+
}
|
|
713
|
+
/** Guided one-click setup form (plan 26 §6): vendor checklist with copy
|
|
714
|
+
* buttons and key link, connection name, write-only API key
|
|
715
|
+
* (`autoComplete="new-password"`), and an Advanced disclosure whose base URL
|
|
716
|
+
* is read-only for fixed-endpoint presets. Validation, secrets and IPC are
|
|
717
|
+
* the app's business (ADR-006) — the form reports `onSubmit`. */
|
|
718
|
+
declare const ProviderSetupForm: React.ForwardRefExoticComponent<Omit<ProviderSetupFormProps, "ref"> & React.RefAttributes<HTMLFormElement>>;
|
|
719
|
+
|
|
720
|
+
/** One curated model card (capability icons render from `caps`). */
|
|
721
|
+
interface SetupReviewModel {
|
|
722
|
+
id: string;
|
|
723
|
+
name: string;
|
|
724
|
+
caps?: string[];
|
|
725
|
+
selected: boolean;
|
|
726
|
+
}
|
|
727
|
+
/** The five-bind option keys of the §15 options body (camelCase — desktop
|
|
728
|
+
* IPC; Python apps convert to snake_case app-side). */
|
|
729
|
+
type SetupReviewOptionsKey = 'bindChat' | 'bindVision' | 'bindStt' | 'bindDecision';
|
|
730
|
+
/** One gap-fill switch. Pass one slot per `optionsKey` — chat presets show
|
|
731
|
+
* text/vision/stt slots, decision-only presets show the decision slot only;
|
|
732
|
+
* the current value of every slot the bind would fill rides `currentValue`. */
|
|
733
|
+
interface SetupReviewSlot {
|
|
734
|
+
id: string;
|
|
735
|
+
label: string;
|
|
736
|
+
bind: boolean;
|
|
737
|
+
currentValue?: string;
|
|
738
|
+
optionsKey: SetupReviewOptionsKey;
|
|
739
|
+
}
|
|
740
|
+
/** The options body a setup run carries (plan 26 D14) — `curatedIds` in the
|
|
741
|
+
* order the cards are given, one bind flag per capability group. */
|
|
742
|
+
interface SetupReviewOptions {
|
|
743
|
+
curatedIds: string[];
|
|
744
|
+
bindChat: boolean;
|
|
745
|
+
bindVision: boolean;
|
|
746
|
+
bindStt: boolean;
|
|
747
|
+
bindDecision: boolean;
|
|
748
|
+
}
|
|
749
|
+
interface SetupReviewProps extends React.ComponentProps<'div'> {
|
|
750
|
+
models: SetupReviewModel[];
|
|
751
|
+
slots: SetupReviewSlot[];
|
|
752
|
+
/** Emits the full options body on every card/switch edit — controlled:
|
|
753
|
+
* feed the changed state back through `models`/`slots`. */
|
|
754
|
+
onOptionsChange: (options: SetupReviewOptions) => void;
|
|
755
|
+
/** Per-capability icon override (capability string → icon). */
|
|
756
|
+
capIcons?: Partial<Record<string, LucideIcon>>;
|
|
757
|
+
modelsLabel?: string;
|
|
758
|
+
footnote?: string;
|
|
759
|
+
}
|
|
760
|
+
/** Editable pre-flight review (plan 26 §6): model-select cards with
|
|
761
|
+
* capability icons plus gap-fill switch rows with `now:` sub-lines and the
|
|
762
|
+
* never-removes footnote. Emits the five-bind options body
|
|
763
|
+
* `{curatedIds, bindChat, bindVision, bindStt, bindDecision}` — append
|
|
764
|
+
* semantics mean nothing existing is ever removed. */
|
|
765
|
+
declare const SetupReview: React.ForwardRefExoticComponent<Omit<SetupReviewProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
766
|
+
|
|
767
|
+
interface SetupFirstRunCardProps extends Omit<React.ComponentProps<'section'>, 'title'> {
|
|
768
|
+
title: React.ReactNode;
|
|
769
|
+
body?: React.ReactNode;
|
|
770
|
+
/** The app is probing for a local engine (e.g. Ollama) — renders the
|
|
771
|
+
* `probingLabel` status line while it runs. */
|
|
772
|
+
localProbing?: boolean;
|
|
773
|
+
onSetup: () => void;
|
|
774
|
+
/** Optional dismiss — omit to render the card without a dismiss action. */
|
|
775
|
+
onDismiss?: () => void;
|
|
776
|
+
/** App content between body and actions (e.g. a detected-local banner). */
|
|
777
|
+
children?: React.ReactNode;
|
|
778
|
+
setupLabel?: string;
|
|
779
|
+
dismissLabel?: string;
|
|
780
|
+
probingLabel?: string;
|
|
781
|
+
}
|
|
782
|
+
/** Empty-state CTA for the AI-settings surface when no provider is
|
|
783
|
+
* configured yet (plan 26 §6) — the entry point of the setup flow. Chat
|
|
784
|
+
* empty states deep-link to the settings surface that renders this card. */
|
|
785
|
+
declare const SetupFirstRunCard: React.ForwardRefExoticComponent<Omit<SetupFirstRunCardProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
786
|
+
|
|
787
|
+
interface SwitchRowProps extends Omit<React.ComponentProps<'button'>, 'onChange'> {
|
|
788
|
+
/** Visible row label — doubles as the switch's accessible name. */
|
|
789
|
+
label: React.ReactNode;
|
|
790
|
+
/** Controlled on/off state. */
|
|
791
|
+
checked: boolean;
|
|
792
|
+
/** Controlled toggle. */
|
|
793
|
+
onCheckedChange: (checked: boolean) => void;
|
|
794
|
+
/** Sub-line under the label — apps pass the current value ("now: gpt-5"). */
|
|
795
|
+
currentValue?: React.ReactNode;
|
|
796
|
+
disabled?: boolean;
|
|
797
|
+
}
|
|
798
|
+
/** Labeled `role="switch"` row with an animated knob — the standalone
|
|
799
|
+
* settings toggle the family's setup surfaces (desktop/study/health)
|
|
800
|
+
* previously hand-rolled. */
|
|
801
|
+
declare const SwitchRow: React.ForwardRefExoticComponent<Omit<SwitchRowProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
802
|
+
|
|
803
|
+
interface ProviderLogoProps extends React.ComponentProps<'span'> {
|
|
804
|
+
/** Preset key (`'openai'`, `'gemini'`, …) — unknown/unshipped marks fall
|
|
805
|
+
* back to a monogram of the key's first letter. */
|
|
806
|
+
preset: string;
|
|
807
|
+
/** Square icon size in px. */
|
|
808
|
+
size?: number;
|
|
809
|
+
}
|
|
810
|
+
/** Provider mark for setup tiles and rows: simple-icons path data keyed by
|
|
811
|
+
* preset key, monogram fallback (openai/groq marks are gone upstream),
|
|
812
|
+
* `currentColor` so it inherits app identity. Decorative by default
|
|
813
|
+
* (`aria-hidden`) — name the tile/button it lives in. */
|
|
814
|
+
declare const ProviderLogo: React.ForwardRefExoticComponent<Omit<ProviderLogoProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
815
|
+
|
|
600
816
|
interface SettingsNavItem {
|
|
601
817
|
id: string;
|
|
602
818
|
label: string;
|
|
@@ -3487,4 +3703,4 @@ interface ChatLauncherProps {
|
|
|
3487
3703
|
*/
|
|
3488
3704
|
declare const ChatLauncher: React.ForwardRefExoticComponent<ChatLauncherProps & React.RefAttributes<HTMLButtonElement>>;
|
|
3489
3705
|
|
|
3490
|
-
export { AboutCard, type AboutCardProps, type AboutCreator, AboutFooterLine, type AboutFooterLineProps, type AboutLicense, type AboutLinkItem, AboutLinkList, type AboutLinkListProps, AboutNote, type AboutNoteContent, type AboutNoteProps, AboutPanel, type AboutPanelProps, type AboutSponsorContent, ActionMenu, type ActionMenuItem, type ActionMenuProps, type AdminUser, type AdminUserPatch, AdminUserTable, type AdminUserTableIcons, type AdminUserTableLabels, type AdminUserTableProps, type AiAction, AiActionsDropdown, type AiActionsDropdownProps, AiButton, type AiButtonProps, AiMagicFill, type AiMagicFillProps, type AiTextTransformEventHandlers, type AiTextTransformStatus, type AiTextTransformTransport, AuthGate, type AuthGateLabels, type AuthGateProps, type AuthGateStatus, Badge, type BadgeProps, type BranchNode, type BranchNodeInput, type BranchTree, type BreadcrumbItem, type BreadcrumbLinkProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CUSTOM_PRESET_KEY, CapabilityChips, type CapabilityChipsProps, type CapabilityDescriptor, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CareerMark, type ChatAttachmentView, ChatBranchTree, type ChatBranchTreeIcons, type ChatBranchTreeLabels, type ChatBranchTreeNode, type ChatBranchTreeProps, ChatComposer, type ChatComposerIcons, type ChatComposerLabels, type ChatComposerProps, ChatDrawer, type ChatDrawerProps, type ChatError, type ChatExportMessage, type ChatExportOptions, ChatHistoryButton, type ChatHistoryButtonLabels, type ChatHistoryButtonProps, ChatLauncher, type ChatLauncherProps, ChatMessage, type ChatMessageAction, type ChatMessageActions, ChatMessageEditor, type ChatMessageEditorLabels, type ChatMessageEditorProps, type ChatMessageLabels, type ChatMessageProps, type ChatMessageStatus, type ChatMessageVariants, type ChatMessageView, ChatPanel, type ChatPanelProps, type ChatPanelVariant, ChatPending, type ChatPendingProps, ChatReasoning, type ChatReasoningLabels, type ChatReasoningProps, type ChatRole, ChatSearchField, type ChatSearchFieldLabels, type ChatSearchFieldProps, ChatSessionList, type ChatSessionListIcons, type ChatSessionListLabels, type ChatSessionListProps, type ChatSessionView, type ChatStreamEvent, type ChatStreamTransport, ChatSuggestionCard, type ChatSuggestionCardProps, ChatToolCard, type ChatToolCardLabels, type ChatToolCardProps, type ChatToolCatalogArgument, type ChatToolCatalogEntry, ChatToolsCatalog, type ChatToolsCatalogLabels, type ChatToolsCatalogProps, ChatTraceMeta, type ChatTraceMetaProps, ChatTraceTimeline, type ChatTraceTimelineEntry, type ChatTraceTimelineLabels, type ChatTraceTimelineProps, type ChatTraceTimelineTrace, ChatTranscript, type ChatTranscriptLabels, type ChatTranscriptProps, ChatTurnStatus, type ChatTurnStatusLabels, type ChatTurnStatusProps, ChatWelcome, type ChatWelcomeProps, CheckIndicator, type CheckIndicatorProps, ChipInput, type ChipInputProps, ChipList, type ChipListProps, type ChipVariant, Combobox, ComboboxMulti, type ComboboxMultiProps, type ComboboxOption, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, ConnectionTestRow, type ConnectionTestRowProps, type ConnectionTestStatus, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, DesktopMark, DictationButton, type DictationButtonProps, type DictationError, type DictationResult, type DictationStatus, DictationStrip, type DictationStripLabels, type DictationStripProps, type DiffCell, type DiffRow, type DiffSegment, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, ExpandableSearch, type ExpandableSearchProps, type FamilyApp, FamilyBadge, type FamilyBadgeProps, type FamilyCreator, type FamilyMember, FieldDiff, type FieldDiffLabels, type FieldDiffProps, type FieldDiffValue, FieldLabel, type FieldLabelProps, FieldSummary, type FieldSummaryProps, FileCard, type FileCardProps, type FileCardStatus, FileQueue, type FileQueueItem, type FileQueueProps, type FlowError, FlowStatusCard, type FlowStatusCardProps, type FlowStep, type FlowStepInfo, type FlowStepStatus, FlowTelemetryStrip, type FlowTelemetryStripProps, type FlowTrace, type FlowTraceCall, FlowTraceCard, type FlowTraceCardLabels, type FlowTraceCardProps, type FlowTraceStage, type FlowTraceToolOp, FormModal, type FormModalProps, HealthMark, type HitlProposalAction, HitlProposalCard, type HitlProposalCardLabels, type HitlProposalCardProps, type HitlProposalStatus, HoverCard, HoverCardContent, HoverCardPortal, type HoverCardProps, HoverCardTrigger, InfoButton, type InfoButtonProps, InfoTooltip, type InfoTooltipProps, Input, type InputProps, type InstanceAuthMode, InstanceModeControl, type InstanceModeControlIcons, type InstanceModeControlLabels, type InstanceModeControlProps, type LineDiffOptions, type LineDiffResult, type LiveNodeState, type LiveToolCall, type LiveTurnAction, type LiveTurnState, type LiveTurnStatus, LoginForm, type LoginFormFieldOverrides, type LoginFormFields, type LoginFormIcons, type LoginFormLabels, type LoginFormProps, type LogoProps, type LogoTheme, MarkdownCodeBlock, type MarkdownCodeBlockLabels, type MarkdownCodeBlockProps, type MarkdownComponents, MarkdownDiffView, type MarkdownDiffViewLabels, type MarkdownDiffViewProps, MarkdownSurface, type MarkdownSurfaceProps, MarqueeBand, type MarqueePhase, type MarqueeSelection, MarqueeSurface, type MarqueeSurfaceProps, Menu, MenuCheckboxItem, type MenuCheckboxItemProps, MenuContent, MenuGroup, MenuItem, type MenuItemProps, MenuLabel, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, MermaidDiagram, type MermaidDiagramProps, MessageVariantSwitcher, type MessageVariantSwitcherLabels, type MessageVariantSwitcherProps, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, ModalTrigger, ModelPicker, type ModelPickerModel, type ModelPickerProps, type ModelPickerProvider, ModelRegistry, type ModelRegistryDraft, type ModelRegistryModel, type ModelRegistryPatch, type ModelRegistryProps, type ModelRegistryProvider, type ModelRegistryRemoteModel, type ModelRegistryRemoteState, type NavChild, type NavItem, NeuronectionMark, NeuronectionWordmark, type NeuronectionWordmarkProps, PanelModal, type PanelModalProps, Popover, PopoverAnchor, PopoverButton, type PopoverButtonProps, PopoverClose, PopoverContent, PopoverTrigger, Portal, type PortalProps, type ProfileItem, ProfileSwitcher, type ProfileSwitcherIcons, type ProfileSwitcherLabels, type ProfileSwitcherProps, ProviderForm, type ProviderFormProps, type ProviderPresetOption, RangeBar, type RangeBarProps, type Rect, RegisterForm, type RegisterFormFieldOverrides, type RegisterFormFields, type RegisterFormIcons, type RegisterFormLabels, type RegisterFormProps, RichTextEditor, type RichTextEditorIcons, type RichTextEditorLabels, type RichTextEditorProps, type RichTextToolbarGroup, ScaleSlider, type ScaleSliderProps, SearchInput, type SearchInputProps, SegmentedTabs, type SegmentedTabsItem, type SegmentedTabsProps, SelectionBar, type SelectionBarProps, type SettingsNavItem, SettingsShell, type SettingsShellProps, SidebarNav, type SidebarNavLabels, type SidebarNavProps, Skeleton, type SkeletonProps, SkeletonText, type SkeletonTextProps, Spinner, type SpinnerProps, SponsorCard, type SponsorCardProps, type SponsorChannel, Stepper, type StepperProps, type StepperStep, StudyMark, Table, type TableProps, TaskAssignmentPicker, type TaskAssignmentPickerProps, type TaskAssignmentSection, type TaskAssignmentTask, TechChips, type TechChipsProps, TextDiffView, type TextDiffViewLabels, type TextDiffViewProps, ThemeScope, type ThemeScopeProps, ThemeTokens, TimeList, type TimeListProps, TimePicker, TimePickerContent, type TimePickerContentProps, type TimePickerProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UndoNotice, type UndoNoticeProps, type UnitDiffOptions, UploadDropzone, type UploadDropzoneProps, type UseAiTextTransformOptions, type UseChatStreamOptions, type UseChatStreamResult, type UseDictationOptions, type UseMarqueeOptions, UserMenu, type UserMenuIcons, type UserMenuItem, type UserMenuLanguage, type UserMenuProps, type UserMenuStatus, type UserMenuStatusTone, type UserMenuTheme, type UserMenuUser, ViewToggle, type ViewToggleProps, type ViewToggleView, Wizard, type WizardContext, type WizardProps, type WizardStep, activePathSet, badgeVariants, buildBranchTree, buildChatMarkdown, buttonVariants, chatExportFileName, cn, computeLineDiff, computeUnitDiff, describeAdminUserError, describeInstanceModeError, downloadChatMarkdown, formatBytes, formatFlowLatency, hitTestIds, initialLiveTurnState, linearTree, liveTurnReducer, marqueeRect, modalContentVariants, rectsIntersect, scaleColorForValue, splitMarkdownBlocks, useAiTextTransform, useChatStream, useDictation, useLogoId, useMarquee, variantInfo, walkActivePath, wordSegments };
|
|
3706
|
+
export { AboutCard, type AboutCardProps, type AboutCreator, AboutFooterLine, type AboutFooterLineProps, type AboutLicense, type AboutLinkItem, AboutLinkList, type AboutLinkListProps, AboutNote, type AboutNoteContent, type AboutNoteProps, AboutPanel, type AboutPanelProps, type AboutSponsorContent, ActionMenu, type ActionMenuItem, type ActionMenuProps, type AdminUser, type AdminUserPatch, AdminUserTable, type AdminUserTableIcons, type AdminUserTableLabels, type AdminUserTableProps, type AiAction, AiActionsDropdown, type AiActionsDropdownProps, AiButton, type AiButtonProps, AiMagicFill, type AiMagicFillProps, type AiTextTransformEventHandlers, type AiTextTransformStatus, type AiTextTransformTransport, AuthGate, type AuthGateLabels, type AuthGateProps, type AuthGateStatus, Badge, type BadgeProps, type BranchNode, type BranchNodeInput, type BranchTree, type BreadcrumbItem, type BreadcrumbLinkProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CUSTOM_PRESET_KEY, CapabilityChips, type CapabilityChipsProps, type CapabilityDescriptor, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CareerMark, type ChatAttachmentView, ChatBranchTree, type ChatBranchTreeIcons, type ChatBranchTreeLabels, type ChatBranchTreeNode, type ChatBranchTreeProps, ChatComposer, type ChatComposerIcons, type ChatComposerLabels, type ChatComposerProps, ChatDrawer, type ChatDrawerProps, type ChatError, type ChatExportMessage, type ChatExportOptions, ChatHistoryButton, type ChatHistoryButtonLabels, type ChatHistoryButtonProps, ChatLauncher, type ChatLauncherProps, ChatMessage, type ChatMessageAction, type ChatMessageActions, ChatMessageEditor, type ChatMessageEditorLabels, type ChatMessageEditorProps, type ChatMessageLabels, type ChatMessageProps, type ChatMessageStatus, type ChatMessageVariants, type ChatMessageView, ChatPanel, type ChatPanelProps, type ChatPanelVariant, ChatPending, type ChatPendingProps, ChatReasoning, type ChatReasoningLabels, type ChatReasoningProps, type ChatRole, ChatSearchField, type ChatSearchFieldLabels, type ChatSearchFieldProps, ChatSessionList, type ChatSessionListIcons, type ChatSessionListLabels, type ChatSessionListProps, type ChatSessionView, type ChatStreamEvent, type ChatStreamTransport, ChatSuggestionCard, type ChatSuggestionCardProps, ChatToolCard, type ChatToolCardLabels, type ChatToolCardProps, type ChatToolCatalogArgument, type ChatToolCatalogEntry, ChatToolsCatalog, type ChatToolsCatalogLabels, type ChatToolsCatalogProps, ChatTraceMeta, type ChatTraceMetaProps, ChatTraceTimeline, type ChatTraceTimelineEntry, type ChatTraceTimelineLabels, type ChatTraceTimelineProps, type ChatTraceTimelineTrace, ChatTranscript, type ChatTranscriptLabels, type ChatTranscriptProps, ChatTurnStatus, type ChatTurnStatusLabels, type ChatTurnStatusProps, ChatWelcome, type ChatWelcomeProps, CheckIndicator, type CheckIndicatorProps, ChipInput, type ChipInputProps, ChipList, type ChipListProps, type ChipVariant, Combobox, ComboboxMulti, type ComboboxMultiProps, type ComboboxOption, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, ConnectionTestRow, type ConnectionTestRowProps, type ConnectionTestStatus, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, DEFAULT_SETUP_ERROR_COPY, DatePicker, type DatePickerProps, DesktopMark, DictationButton, type DictationButtonProps, type DictationError, type DictationResult, type DictationStatus, DictationStrip, type DictationStripLabels, type DictationStripProps, type DiffCell, type DiffRow, type DiffSegment, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, ExpandableSearch, type ExpandableSearchProps, type FamilyApp, FamilyBadge, type FamilyBadgeProps, type FamilyCreator, type FamilyMember, FieldDiff, type FieldDiffLabels, type FieldDiffProps, type FieldDiffValue, FieldLabel, type FieldLabelProps, FieldSummary, type FieldSummaryProps, FileCard, type FileCardProps, type FileCardStatus, FileQueue, type FileQueueItem, type FileQueueProps, type FlowError, FlowStatusCard, type FlowStatusCardProps, type FlowStep, type FlowStepInfo, type FlowStepStatus, FlowTelemetryStrip, type FlowTelemetryStripProps, type FlowTrace, type FlowTraceCall, FlowTraceCard, type FlowTraceCardLabels, type FlowTraceCardProps, type FlowTraceStage, type FlowTraceToolOp, FormModal, type FormModalProps, HealthMark, type HitlProposalAction, HitlProposalCard, type HitlProposalCardLabels, type HitlProposalCardProps, type HitlProposalStatus, HoverCard, HoverCardContent, HoverCardPortal, type HoverCardProps, HoverCardTrigger, InfoButton, type InfoButtonProps, InfoTooltip, type InfoTooltipProps, Input, type InputProps, type InstanceAuthMode, InstanceModeControl, type InstanceModeControlIcons, type InstanceModeControlLabels, type InstanceModeControlProps, type LineDiffOptions, type LineDiffResult, type LiveNodeState, type LiveToolCall, type LiveTurnAction, type LiveTurnState, type LiveTurnStatus, LoginForm, type LoginFormFieldOverrides, type LoginFormFields, type LoginFormIcons, type LoginFormLabels, type LoginFormProps, type LogoProps, type LogoTheme, MarkdownCodeBlock, type MarkdownCodeBlockLabels, type MarkdownCodeBlockProps, type MarkdownComponents, MarkdownDiffView, type MarkdownDiffViewLabels, type MarkdownDiffViewProps, MarkdownSurface, type MarkdownSurfaceProps, MarqueeBand, type MarqueePhase, type MarqueeSelection, MarqueeSurface, type MarqueeSurfaceProps, Menu, MenuCheckboxItem, type MenuCheckboxItemProps, MenuContent, MenuGroup, MenuItem, type MenuItemProps, MenuLabel, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, MermaidDiagram, type MermaidDiagramProps, MessageVariantSwitcher, type MessageVariantSwitcherLabels, type MessageVariantSwitcherProps, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, ModalTrigger, ModelPicker, type ModelPickerModel, type ModelPickerProps, type ModelPickerProvider, ModelRegistry, type ModelRegistryDraft, type ModelRegistryModel, type ModelRegistryPatch, type ModelRegistryProps, type ModelRegistryProvider, type ModelRegistryRemoteModel, type ModelRegistryRemoteState, type NavChild, type NavItem, NeuronectionMark, NeuronectionWordmark, type NeuronectionWordmarkProps, PanelModal, type PanelModalProps, Popover, PopoverAnchor, PopoverButton, type PopoverButtonProps, PopoverClose, PopoverContent, PopoverTrigger, Portal, type PortalProps, type ProfileItem, ProfileSwitcher, type ProfileSwitcherIcons, type ProfileSwitcherLabels, type ProfileSwitcherProps, ProviderForm, type ProviderFormProps, ProviderLogo, type ProviderLogoProps, type ProviderPresetOption, ProviderSetupForm, type ProviderSetupFormError, type ProviderSetupFormPreset, type ProviderSetupFormProps, type ProviderSetupFormValue, ProviderSetupManualTile, type ProviderSetupTileChip, type ProviderSetupTileData, ProviderSetupTiles, type ProviderSetupTilesProps, RangeBar, type RangeBarProps, type Rect, RegisterForm, type RegisterFormFieldOverrides, type RegisterFormFields, type RegisterFormIcons, type RegisterFormLabels, type RegisterFormProps, RichTextEditor, type RichTextEditorIcons, type RichTextEditorLabels, type RichTextEditorProps, type RichTextToolbarGroup, SETUP_ERROR_CODES, ScaleSlider, type ScaleSliderProps, SearchInput, type SearchInputProps, SegmentedTabs, type SegmentedTabsItem, type SegmentedTabsProps, SelectionBar, type SelectionBarProps, type SettingsNavItem, SettingsShell, type SettingsShellProps, type SetupErrorCode, SetupFirstRunCard, type SetupFirstRunCardProps, SetupReview, type SetupReviewModel, type SetupReviewOptions, type SetupReviewOptionsKey, type SetupReviewProps, type SetupReviewSlot, SidebarNav, type SidebarNavLabels, type SidebarNavProps, Skeleton, type SkeletonProps, SkeletonText, type SkeletonTextProps, Spinner, type SpinnerProps, SponsorCard, type SponsorCardProps, type SponsorChannel, Stepper, type StepperProps, type StepperStep, StudyMark, SwitchRow, type SwitchRowProps, Table, type TableProps, TaskAssignmentPicker, type TaskAssignmentPickerProps, type TaskAssignmentSection, type TaskAssignmentTask, TechChips, type TechChipsProps, TextDiffView, type TextDiffViewLabels, type TextDiffViewProps, ThemeScope, type ThemeScopeProps, ThemeTokens, TimeList, type TimeListProps, TimePicker, TimePickerContent, type TimePickerContentProps, type TimePickerProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UndoNotice, type UndoNoticeProps, type UnitDiffOptions, UploadDropzone, type UploadDropzoneProps, type UseAiTextTransformOptions, type UseChatStreamOptions, type UseChatStreamResult, type UseDictationOptions, type UseMarqueeOptions, UserMenu, type UserMenuIcons, type UserMenuItem, type UserMenuLanguage, type UserMenuProps, type UserMenuStatus, type UserMenuStatusTone, type UserMenuTheme, type UserMenuUser, ViewToggle, type ViewToggleProps, type ViewToggleView, Wizard, type WizardContext, type WizardProps, type WizardStep, activePathSet, badgeVariants, buildBranchTree, buildChatMarkdown, buttonVariants, chatExportFileName, cn, computeLineDiff, computeUnitDiff, describeAdminUserError, describeInstanceModeError, downloadChatMarkdown, formatBytes, formatFlowLatency, hitTestIds, initialLiveTurnState, linearTree, liveTurnReducer, marqueeRect, modalContentVariants, rectsIntersect, scaleColorForValue, splitMarkdownBlocks, useAiTextTransform, useChatStream, useDictation, useLogoId, useMarquee, variantInfo, walkActivePath, wordSegments };
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,32 @@
|
|
|
1
|
-
export { UndoNotice } from './chunk-AT32ANZW.js';
|
|
2
|
-
export { ViewToggle } from './chunk-XZIJIGEB.js';
|
|
3
1
|
export { Stepper, Wizard } from './chunk-ZNVWHGKM.js';
|
|
4
|
-
export { TaskAssignmentPicker } from './chunk-3YIVKKT6.js';
|
|
5
|
-
export { SettingsShell } from './chunk-YPDIA54W.js';
|
|
6
2
|
export { SidebarNav } from './chunk-VAUB5TDF.js';
|
|
7
3
|
export { UserMenu } from './chunk-CYK3ZLAB.js';
|
|
8
4
|
export { ThemeScope } from './chunk-TGU3PKNM.js';
|
|
9
5
|
export { TimeList } from './chunk-67W2OLOQ.js';
|
|
10
6
|
export { TimePicker, TimePickerContent } from './chunk-WQ5MPOYG.js';
|
|
11
7
|
export { InfoTooltip, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './chunk-NDZ22QGX.js';
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
8
|
+
export { UndoNotice } from './chunk-AT32ANZW.js';
|
|
9
|
+
export { ViewToggle } from './chunk-XZIJIGEB.js';
|
|
14
10
|
export { SegmentedTabs } from './chunk-5IEBIDXQ.js';
|
|
15
11
|
export { SelectionBar } from './chunk-LXKRUJIS.js';
|
|
16
12
|
export { Skeleton, SkeletonText } from './chunk-4OJXAFGA.js';
|
|
17
13
|
export { HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger } from './chunk-PNYJ5VX2.js';
|
|
18
14
|
export { Table } from './chunk-53JFRZAO.js';
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
15
|
+
export { TaskAssignmentPicker } from './chunk-3YIVKKT6.js';
|
|
16
|
+
export { SettingsShell } from './chunk-YPDIA54W.js';
|
|
21
17
|
export { RangeBar } from './chunk-3UDWLHLD.js';
|
|
22
18
|
export { ScaleSlider, scaleColorForValue } from './chunk-NLHODVBI.js';
|
|
23
19
|
export { SearchInput } from './chunk-UUIMMMSJ.js';
|
|
20
|
+
export { ModelRegistry } from './chunk-YHMVPFEN.js';
|
|
21
|
+
export { ProfileSwitcher } from './chunk-6ANLDUGL.js';
|
|
22
|
+
export { CUSTOM_PRESET_KEY, ProviderForm } from './chunk-UMI4M4MF.js';
|
|
23
|
+
export { DEFAULT_SETUP_ERROR_COPY, ProviderSetupForm, SETUP_ERROR_CODES } from './chunk-6G7H6YP6.js';
|
|
24
|
+
export { ProviderSetupManualTile, ProviderSetupTiles } from './chunk-YSBGF44F.js';
|
|
25
|
+
export { CapabilityChips } from './chunk-H5KOC7Z5.js';
|
|
26
|
+
export { ProviderLogo } from './chunk-7IP3JP3Z.js';
|
|
27
|
+
export { SetupFirstRunCard } from './chunk-YDQW2WJH.js';
|
|
28
|
+
export { SetupReview } from './chunk-FY3NCPFO.js';
|
|
29
|
+
export { SwitchRow } from './chunk-FQXVZVA5.js';
|
|
24
30
|
export { MarqueeBand, MarqueeSurface, hitTestIds, marqueeRect, rectsIntersect, useMarquee } from './chunk-RU3DEF2O.js';
|
|
25
31
|
export { MarkdownDiffView, splitMarkdownBlocks } from './chunk-TLFEVL42.js';
|
|
26
32
|
export { ModelPicker } from './chunk-CCFVDJHU.js';
|
package/dist/model-registry.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface ProviderLogoProps extends React.ComponentProps<'span'> {
|
|
4
|
+
/** Preset key (`'openai'`, `'gemini'`, …) — unknown/unshipped marks fall
|
|
5
|
+
* back to a monogram of the key's first letter. */
|
|
6
|
+
preset: string;
|
|
7
|
+
/** Square icon size in px. */
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
/** Provider mark for setup tiles and rows: simple-icons path data keyed by
|
|
11
|
+
* preset key, monogram fallback (openai/groq marks are gone upstream),
|
|
12
|
+
* `currentColor` so it inherits app identity. Decorative by default
|
|
13
|
+
* (`aria-hidden`) — name the tile/button it lives in. */
|
|
14
|
+
declare const ProviderLogo: React.ForwardRefExoticComponent<Omit<ProviderLogoProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
15
|
+
|
|
16
|
+
export { ProviderLogo, type ProviderLogoProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-logo.js"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/** The shared §15 error-routing enum (family contract — apps key their i18n
|
|
4
|
+
* off exactly these codes). */
|
|
5
|
+
declare const SETUP_ERROR_CODES: readonly ["invalid_key", "insufficient_credit", "new_user_quota", "region_unavailable", "timeout", "local_not_running", "unknown"];
|
|
6
|
+
type SetupErrorCode = (typeof SETUP_ERROR_CODES)[number];
|
|
7
|
+
/** English fallback copy per code — apps inject translated labels via
|
|
8
|
+
* `errorLabels` (the library ships no i18n engine, ADR-006). */
|
|
9
|
+
declare const DEFAULT_SETUP_ERROR_COPY: Record<SetupErrorCode, string>;
|
|
10
|
+
/** Guided-setup preset slice (app data; snake_case API fields map app-side). */
|
|
11
|
+
interface ProviderSetupFormPreset {
|
|
12
|
+
name: string;
|
|
13
|
+
keyUrl?: string;
|
|
14
|
+
steps?: string[];
|
|
15
|
+
freeTierNote?: string;
|
|
16
|
+
fixedBase?: boolean;
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
/** Keyless local preset — renders `noKeyLabel` instead of the key field. */
|
|
19
|
+
local?: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface ProviderSetupFormValue {
|
|
22
|
+
name: string;
|
|
23
|
+
apiKey: string;
|
|
24
|
+
baseUrl?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Classified setup failure (§15 error routing) — copy comes from
|
|
27
|
+
* `errorLabels`, keyed off the code. */
|
|
28
|
+
interface ProviderSetupFormError {
|
|
29
|
+
code: SetupErrorCode | string;
|
|
30
|
+
suspectedVendor?: string | null;
|
|
31
|
+
}
|
|
32
|
+
interface ProviderSetupFormProps extends Omit<React.ComponentProps<'form'>, 'onChange' | 'onSubmit'> {
|
|
33
|
+
preset: ProviderSetupFormPreset;
|
|
34
|
+
/** Controlled field values. */
|
|
35
|
+
value: ProviderSetupFormValue;
|
|
36
|
+
error?: ProviderSetupFormError | null;
|
|
37
|
+
/** Validation/connection test in flight — disables + marks the submit. */
|
|
38
|
+
testing?: boolean;
|
|
39
|
+
onSubmit: (value: ProviderSetupFormValue) => void;
|
|
40
|
+
onCancel?: () => void;
|
|
41
|
+
onChange: (value: ProviderSetupFormValue) => void;
|
|
42
|
+
/** Translated error copy per §15 code (`{vendor}` interpolates in the hint). */
|
|
43
|
+
errorLabels?: Partial<Record<string, string>>;
|
|
44
|
+
suspectedVendorHint?: string;
|
|
45
|
+
/** Notified when a checklist step is copied (Electron apps mirror the copy
|
|
46
|
+
* through their IPC clipboard; the browser write always happens). */
|
|
47
|
+
onCopyStep?: (step: string) => void;
|
|
48
|
+
/** Opens the key page — render an anchor by default; Electron apps pass
|
|
49
|
+
* their `openExternal` bridge to get a button instead. */
|
|
50
|
+
onOpenKeyUrl?: (url: string) => void;
|
|
51
|
+
/** Extra app content inside the Advanced disclosure (hosting toggle,
|
|
52
|
+
* country select — study/health pattern). */
|
|
53
|
+
advancedExtra?: React.ReactNode;
|
|
54
|
+
checklistLabel?: string;
|
|
55
|
+
copyLabel?: string;
|
|
56
|
+
getKeyLabel?: string;
|
|
57
|
+
nameLabel?: string;
|
|
58
|
+
apiKeyLabel?: string;
|
|
59
|
+
keyPlaceholder?: string;
|
|
60
|
+
noKeyLabel?: string;
|
|
61
|
+
advancedLabel?: string;
|
|
62
|
+
baseUrlLabel?: string;
|
|
63
|
+
baseUrlHint?: string;
|
|
64
|
+
submitLabel?: string;
|
|
65
|
+
cancelLabel?: string;
|
|
66
|
+
}
|
|
67
|
+
/** Guided one-click setup form (plan 26 §6): vendor checklist with copy
|
|
68
|
+
* buttons and key link, connection name, write-only API key
|
|
69
|
+
* (`autoComplete="new-password"`), and an Advanced disclosure whose base URL
|
|
70
|
+
* is read-only for fixed-endpoint presets. Validation, secrets and IPC are
|
|
71
|
+
* the app's business (ADR-006) — the form reports `onSubmit`. */
|
|
72
|
+
declare const ProviderSetupForm: React.ForwardRefExoticComponent<Omit<ProviderSetupFormProps, "ref"> & React.RefAttributes<HTMLFormElement>>;
|
|
73
|
+
|
|
74
|
+
export { DEFAULT_SETUP_ERROR_COPY, ProviderSetupForm, type ProviderSetupFormError, type ProviderSetupFormPreset, type ProviderSetupFormProps, type ProviderSetupFormValue, SETUP_ERROR_CODES, type SetupErrorCode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-setup-form.js"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/** A capability chip rendered on the tile (plan 26 follow-up): the app
|
|
4
|
+
* derives chips from its preset data (wire type → chat/vision/stt,
|
|
5
|
+
* decision models → decision, keyless-local → local) and supplies the
|
|
6
|
+
* translated label — the library never guesses copy (ADR-006). */
|
|
7
|
+
interface ProviderSetupTileChip {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
/** One preset entry (ADR-006: the catalog is app data — the tiles only
|
|
12
|
+
* render it, in the order given, with equal weight). */
|
|
13
|
+
interface ProviderSetupTileData {
|
|
14
|
+
key: string;
|
|
15
|
+
name: string;
|
|
16
|
+
/** Keyless local preset (e.g. Ollama) — renders the `localLabel` caption. */
|
|
17
|
+
local?: boolean;
|
|
18
|
+
/** Capability chips (e.g. chat / vision / decision / local) — rendered
|
|
19
|
+
* with the capability-chips badge pattern, neutral (equal weight). */
|
|
20
|
+
chips?: ProviderSetupTileChip[];
|
|
21
|
+
/** Disabled tiles render inert with their reason (health's overlay). */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
disabledReason?: string;
|
|
24
|
+
/** The preset ships a key-prefix hint (informational for the app). */
|
|
25
|
+
hasKeyPrefixHint?: boolean;
|
|
26
|
+
}
|
|
27
|
+
interface ProviderSetupTilesProps extends Omit<React.ComponentProps<'div'>, 'onSelect' | 'children'> {
|
|
28
|
+
/** Presets in the app's family order — the grid keeps it verbatim. */
|
|
29
|
+
presets: ProviderSetupTileData[];
|
|
30
|
+
/** Preset keys already configured (renders the `configuredLabel` badge). */
|
|
31
|
+
configured?: string[];
|
|
32
|
+
/** Key of a tile the app's paste-prefix match suggests (highlight only —
|
|
33
|
+
* never a "recommended" ranking; all tiles stay equal weight). */
|
|
34
|
+
suggestedKey?: string;
|
|
35
|
+
/** Fires with the preset key of the activated tile. */
|
|
36
|
+
onSelect: (key: string) => void;
|
|
37
|
+
/** Extra grid cell (e.g. the "Manual / custom" tile) — app-composed. */
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
label?: string;
|
|
40
|
+
localLabel?: string;
|
|
41
|
+
configuredLabel?: string;
|
|
42
|
+
/** Visually-hidden text marking the suggested tile. */
|
|
43
|
+
suggestedLabel?: string;
|
|
44
|
+
}
|
|
45
|
+
/** Neutral, equal-weight provider picker grid — step one of the family's
|
|
46
|
+
* one-click setup (plan 26 §6): tiles in family order, no "recommended"
|
|
47
|
+
* anywhere, local presets visible, disabled presets explain themselves. */
|
|
48
|
+
declare const ProviderSetupTiles: React.ForwardRefExoticComponent<Omit<ProviderSetupTilesProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
/** The "manual / custom" tile apps append as `children` of the grid. */
|
|
50
|
+
declare const ProviderSetupManualTile: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
51
|
+
|
|
52
|
+
export { ProviderSetupManualTile, type ProviderSetupTileChip, type ProviderSetupTileData, ProviderSetupTiles, type ProviderSetupTilesProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-setup-tiles.js"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SetupFirstRunCardProps extends Omit<React.ComponentProps<'section'>, 'title'> {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
body?: React.ReactNode;
|
|
6
|
+
/** The app is probing for a local engine (e.g. Ollama) — renders the
|
|
7
|
+
* `probingLabel` status line while it runs. */
|
|
8
|
+
localProbing?: boolean;
|
|
9
|
+
onSetup: () => void;
|
|
10
|
+
/** Optional dismiss — omit to render the card without a dismiss action. */
|
|
11
|
+
onDismiss?: () => void;
|
|
12
|
+
/** App content between body and actions (e.g. a detected-local banner). */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
setupLabel?: string;
|
|
15
|
+
dismissLabel?: string;
|
|
16
|
+
probingLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Empty-state CTA for the AI-settings surface when no provider is
|
|
19
|
+
* configured yet (plan 26 §6) — the entry point of the setup flow. Chat
|
|
20
|
+
* empty states deep-link to the settings surface that renders this card. */
|
|
21
|
+
declare const SetupFirstRunCard: React.ForwardRefExoticComponent<Omit<SetupFirstRunCardProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
22
|
+
|
|
23
|
+
export { SetupFirstRunCard, type SetupFirstRunCardProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"setup-first-run-card.js"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
|
|
4
|
+
/** One curated model card (capability icons render from `caps`). */
|
|
5
|
+
interface SetupReviewModel {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
caps?: string[];
|
|
9
|
+
selected: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** The five-bind option keys of the §15 options body (camelCase — desktop
|
|
12
|
+
* IPC; Python apps convert to snake_case app-side). */
|
|
13
|
+
type SetupReviewOptionsKey = 'bindChat' | 'bindVision' | 'bindStt' | 'bindDecision';
|
|
14
|
+
/** One gap-fill switch. Pass one slot per `optionsKey` — chat presets show
|
|
15
|
+
* text/vision/stt slots, decision-only presets show the decision slot only;
|
|
16
|
+
* the current value of every slot the bind would fill rides `currentValue`. */
|
|
17
|
+
interface SetupReviewSlot {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
bind: boolean;
|
|
21
|
+
currentValue?: string;
|
|
22
|
+
optionsKey: SetupReviewOptionsKey;
|
|
23
|
+
}
|
|
24
|
+
/** The options body a setup run carries (plan 26 D14) — `curatedIds` in the
|
|
25
|
+
* order the cards are given, one bind flag per capability group. */
|
|
26
|
+
interface SetupReviewOptions {
|
|
27
|
+
curatedIds: string[];
|
|
28
|
+
bindChat: boolean;
|
|
29
|
+
bindVision: boolean;
|
|
30
|
+
bindStt: boolean;
|
|
31
|
+
bindDecision: boolean;
|
|
32
|
+
}
|
|
33
|
+
interface SetupReviewProps extends React.ComponentProps<'div'> {
|
|
34
|
+
models: SetupReviewModel[];
|
|
35
|
+
slots: SetupReviewSlot[];
|
|
36
|
+
/** Emits the full options body on every card/switch edit — controlled:
|
|
37
|
+
* feed the changed state back through `models`/`slots`. */
|
|
38
|
+
onOptionsChange: (options: SetupReviewOptions) => void;
|
|
39
|
+
/** Per-capability icon override (capability string → icon). */
|
|
40
|
+
capIcons?: Partial<Record<string, LucideIcon>>;
|
|
41
|
+
modelsLabel?: string;
|
|
42
|
+
footnote?: string;
|
|
43
|
+
}
|
|
44
|
+
/** Editable pre-flight review (plan 26 §6): model-select cards with
|
|
45
|
+
* capability icons plus gap-fill switch rows with `now:` sub-lines and the
|
|
46
|
+
* never-removes footnote. Emits the five-bind options body
|
|
47
|
+
* `{curatedIds, bindChat, bindVision, bindStt, bindDecision}` — append
|
|
48
|
+
* semantics mean nothing existing is ever removed. */
|
|
49
|
+
declare const SetupReview: React.ForwardRefExoticComponent<Omit<SetupReviewProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
|
|
51
|
+
export { SetupReview, type SetupReviewModel, type SetupReviewOptions, type SetupReviewOptionsKey, type SetupReviewProps, type SetupReviewSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"setup-review.js"}
|