@stina/extension-api 0.30.2 → 0.31.1-alpha.67639c6

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/index.ts","../../src/schemas/manifest.schema.ts","../../src/schemas/permissions.schema.ts","../../src/schemas/contributions.schema.ts","../../src/schemas/components.schema.ts"],"sourcesContent":["/**\n * Extension API Schemas\n *\n * Zod schemas for extension manifest validation and JSON Schema generation.\n */\n\n// Manifest schema (main export)\nexport {\n ExtensionManifestSchema,\n PlatformSchema,\n AuthorSchema,\n EnginesSchema,\n type ExtensionManifest,\n type Platform,\n type Author,\n type Engines,\n} from './manifest.schema.js'\n\n// Permission schemas\nexport {\n PermissionSchema,\n NetworkPermissionSchema,\n StoragePermissionSchema,\n UserDataPermissionSchema,\n CapabilityPermissionSchema,\n SystemPermissionSchema,\n isValidPermission,\n VALID_PERMISSIONS,\n PERMISSION_PATTERNS,\n type Permission,\n type NetworkPermission,\n type StoragePermission,\n type UserDataPermission,\n type CapabilityPermission,\n type SystemPermission,\n} from './permissions.schema.js'\n\n// Contribution schemas\nexport {\n ExtensionContributionsSchema,\n LocalizedStringSchema,\n SettingDefinitionSchema,\n SettingOptionsMappingSchema,\n SettingCreateMappingSchema,\n SettingValidationSchema,\n ToolSettingsViewDefinitionSchema,\n ToolSettingsViewSchema,\n ToolSettingsListViewSchema,\n ToolSettingsComponentViewSchema,\n ToolSettingsListMappingSchema,\n ToolSettingsActionDataSourceSchema,\n PanelDefinitionSchema,\n PanelViewSchema,\n PanelComponentViewSchema,\n PanelUnknownViewSchema,\n PanelActionDataSourceSchema,\n ProviderDefinitionSchema,\n ProviderConfigSchemaSchema,\n ProviderConfigPropertySchema,\n ProviderConfigPropertyTypeSchema,\n ProviderConfigSelectOptionSchema,\n ProviderConfigValidationSchema,\n ToolDefinitionSchema,\n CommandDefinitionSchema,\n PromptContributionSchema,\n PromptSectionSchema,\n type ExtensionContributions,\n type LocalizedString,\n type SettingDefinition,\n type SettingOptionsMapping,\n type SettingCreateMapping,\n type SettingValidation,\n type ToolSettingsViewDefinition,\n type ToolSettingsView,\n type ToolSettingsListView,\n type ToolSettingsComponentView,\n type ToolSettingsListMapping,\n type ToolSettingsActionDataSource,\n type PanelDefinition,\n type PanelView,\n type PanelComponentView,\n type PanelUnknownView,\n type PanelActionDataSource,\n type ProviderDefinition,\n type ProviderConfigSchema,\n type ProviderConfigProperty,\n type ProviderConfigPropertyType,\n type ProviderConfigSelectOption,\n type ProviderConfigValidation,\n type ToolDefinition,\n type CommandDefinition,\n type PromptContribution,\n type PromptSection,\n} from './contributions.schema.js'\n\n// Component schemas\nexport {\n ExtensionComponentDataSchema,\n ExtensionComponentStyleSchema,\n ExtensionActionCallSchema,\n ExtensionActionRefSchema,\n ExtensionComponentIteratorSchema,\n ExtensionComponentChildrenSchema,\n ExtensionDataSourceSchema,\n AllowedCSSPropertySchema,\n IconButtonTypeSchema,\n PillVariantSchema,\n PanelActionSchema,\n HeaderPropsSchema,\n LabelPropsSchema,\n ParagraphPropsSchema,\n ButtonPropsSchema,\n TextInputPropsSchema,\n DateTimeInputPropsSchema,\n SelectPropsSchema,\n IconPickerPropsSchema,\n VerticalStackPropsSchema,\n HorizontalStackPropsSchema,\n GridPropsSchema,\n DividerPropsSchema,\n IconPropsSchema,\n IconButtonPropsSchema,\n PanelPropsSchema,\n TogglePropsSchema,\n CollapsiblePropsSchema,\n FrameVariantSchema,\n FramePropsSchema,\n TextPreviewPropsSchema,\n ListPropsSchema,\n PillPropsSchema,\n CheckboxPropsSchema,\n MarkdownPropsSchema,\n ModalPropsSchema,\n ConditionalGroupPropsSchema,\n type ExtensionComponentData,\n type ExtensionComponentStyle,\n type ExtensionActionCall,\n type ExtensionActionRef,\n type ExtensionComponentIterator,\n type ExtensionComponentChildren,\n type ExtensionDataSource,\n type AllowedCSSProperty,\n type IconButtonType,\n type PillVariant,\n type PanelAction,\n type HeaderProps,\n type LabelProps,\n type ParagraphProps,\n type ButtonProps,\n type TextInputProps,\n type DateTimeInputProps,\n type SelectProps,\n type IconPickerProps,\n type VerticalStackProps,\n type HorizontalStackProps,\n type GridProps,\n type DividerProps,\n type IconProps,\n type IconButtonProps,\n type PanelProps,\n type ToggleProps,\n type CollapsibleProps,\n type FrameVariant,\n type FrameProps,\n type TextPreviewProps,\n type ListProps,\n type PillProps,\n type CheckboxProps,\n type MarkdownProps,\n type ModalProps,\n type ConditionalGroupProps,\n} from './components.schema.js'\n","/**\n * Manifest Schema\n *\n * Zod schema for extension manifest files (manifest.json).\n * This is the main schema that combines all sub-schemas.\n */\n\nimport { z } from 'zod'\nimport { PermissionSchema } from './permissions.schema.js'\nimport { ExtensionContributionsSchema } from './contributions.schema.js'\n\n/**\n * Platform schema\n */\nexport const PlatformSchema = z\n .enum(['web', 'electron', 'tui'])\n .describe('Supported platform')\n\n/**\n * Author schema\n */\nexport const AuthorSchema = z\n .object({\n name: z.string().min(1).describe('Author name'),\n url: z.string().url().optional().describe('Author URL'),\n })\n .describe('Author information')\n\n/**\n * Engines schema\n */\nexport const EnginesSchema = z\n .object({\n stina: z.string().describe('Minimum Stina version required'),\n })\n .describe('Engine requirements')\n\n/**\n * Extension manifest schema\n */\nexport const ExtensionManifestSchema = z\n .object({\n id: z\n .string()\n .regex(/^[a-z0-9-]+$/, 'ID must be lowercase alphanumeric with hyphens')\n .describe('Unique identifier (e.g., \"ollama-provider\")'),\n name: z.string().min(1).describe('Human-readable name'),\n version: z\n .string()\n .regex(/^\\d+\\.\\d+\\.\\d+/, 'Must be semver format (e.g., \"1.0.0\")')\n .describe('Version string (semver)'),\n description: z.string().min(1).describe('Short description'),\n author: AuthorSchema.describe('Author information'),\n repository: z.string().url().optional().describe('Repository URL'),\n license: z.string().optional().describe('License identifier'),\n engines: EnginesSchema.optional().describe('Minimum Stina version required'),\n platforms: z.array(PlatformSchema).optional().describe('Supported platforms'),\n main: z.string().describe('Entry point file (relative to extension root)'),\n permissions: z.array(PermissionSchema).describe('Required permissions'),\n contributes: ExtensionContributionsSchema.optional().describe('What the extension contributes'),\n })\n .describe('Extension manifest format')\n\n// =============================================================================\n// Type Exports\n// =============================================================================\n\nexport type Platform = z.infer<typeof PlatformSchema>\nexport type Author = z.infer<typeof AuthorSchema>\nexport type Engines = z.infer<typeof EnginesSchema>\nexport type ExtensionManifest = z.infer<typeof ExtensionManifestSchema>\n","/**\n * Permission Schema\n *\n * Zod schema for extension permission strings.\n * Generates both TypeScript types and JSON Schema.\n */\n\nimport { z } from 'zod'\n\n/**\n * Valid exact permission values\n */\nexport const VALID_PERMISSIONS = [\n 'network:*',\n 'network:localhost',\n 'storage.collections',\n 'secrets.manage',\n 'user.profile.read',\n 'user.location.read',\n 'chat.history.read',\n 'chat.current.read',\n 'chat.message.write',\n 'provider.register',\n 'tools.register',\n 'tools.list',\n 'tools.execute',\n 'actions.register',\n 'settings.register',\n 'commands.register',\n 'panels.register',\n 'events.emit',\n 'scheduler.register',\n 'background.workers',\n 'files.read',\n 'files.write',\n 'clipboard.read',\n 'clipboard.write',\n] as const\n\n/**\n * Permission patterns for dynamic permissions (network with host/port)\n */\nexport const PERMISSION_PATTERNS = [\n /^network:localhost:\\d+$/, // network:localhost:11434\n /^network:[a-zA-Z0-9.-]+$/, // network:api.example.com\n /^network:[a-zA-Z0-9.-]+:\\d+$/, // network:api.example.com:8080\n]\n\n/**\n * Network permission schema - matches exact values and patterns\n */\nconst NetworkPermissionSchema = z\n .string()\n .refine(\n (val) => {\n // Check exact matches first\n if (val === 'network:*' || val === 'network:localhost') {\n return true\n }\n // Check dynamic patterns\n return PERMISSION_PATTERNS.some((pattern) => pattern.test(val))\n },\n { message: 'Invalid network permission format' }\n )\n .describe('Network access permission (e.g., \"network:*\", \"network:localhost:11434\")')\n\n/**\n * Storage permission schema\n */\nconst StoragePermissionSchema = z.enum(['storage.collections', 'secrets.manage']).describe('Storage permission')\n\n/**\n * User data permission schema\n */\nconst UserDataPermissionSchema = z\n .enum(['user.profile.read', 'user.location.read', 'chat.history.read', 'chat.current.read'])\n .describe('User data access permission')\n\n/**\n * Capability permission schema\n */\nconst CapabilityPermissionSchema = z\n .enum([\n 'provider.register',\n 'tools.register',\n 'tools.list',\n 'tools.execute',\n 'actions.register',\n 'settings.register',\n 'commands.register',\n 'panels.register',\n 'events.emit',\n 'scheduler.register',\n 'chat.message.write',\n 'background.workers',\n ])\n .describe('Capability permission')\n\n/**\n * System permission schema\n */\nconst SystemPermissionSchema = z\n .enum(['files.read', 'files.write', 'clipboard.read', 'clipboard.write'])\n .describe('System permission')\n\n/**\n * Regex pattern for dynamic network permissions (host with optional port)\n * Matches: network:api.example.com, network:localhost:11434, network:api.example.com:8080\n */\nconst NETWORK_PERMISSION_REGEX = /^network:[a-zA-Z0-9.-]+(:\\d+)?$/\n\n/**\n * Combined permission schema - validates against all permission types\n * Uses z.union with z.enum and z.string().regex() for better JSON Schema generation\n */\nexport const PermissionSchema = z\n .union([\n z.enum(VALID_PERMISSIONS),\n z.string().regex(NETWORK_PERMISSION_REGEX, 'Invalid network permission format'),\n ])\n .describe('Extension permission')\n\n/**\n * Check if a permission string is valid\n */\nexport function isValidPermission(permission: string): boolean {\n return PermissionSchema.safeParse(permission).success\n}\n\n// Re-export individual schemas for more specific validation if needed\nexport {\n NetworkPermissionSchema,\n StoragePermissionSchema,\n UserDataPermissionSchema,\n CapabilityPermissionSchema,\n SystemPermissionSchema,\n}\n\n// Type exports\nexport type Permission = z.infer<typeof PermissionSchema>\nexport type NetworkPermission = 'network:*' | `network:localhost` | `network:localhost:${number}` | `network:${string}`\nexport type StoragePermission = z.infer<typeof StoragePermissionSchema>\nexport type UserDataPermission = z.infer<typeof UserDataPermissionSchema>\nexport type CapabilityPermission = z.infer<typeof CapabilityPermissionSchema>\nexport type SystemPermission = z.infer<typeof SystemPermissionSchema>\n","/**\n * Contributions Schema\n *\n * Zod schemas for extension contributions: settings, panels, providers, tools, commands, prompts.\n */\n\nimport { z } from 'zod'\nimport { ExtensionComponentDataSchema } from './components.schema.js'\n\n// =============================================================================\n// Localization\n// =============================================================================\n\n/**\n * Localized string - either a simple string or a map of language codes to strings\n */\nexport const LocalizedStringSchema = z\n .union([z.string(), z.record(z.string())])\n .describe('String or localized string map')\n\n// =============================================================================\n// Settings\n// =============================================================================\n\n/**\n * Options mapping for select field options from tool response\n */\nexport const SettingOptionsMappingSchema = z\n .object({\n itemsKey: z.string().describe('Key for items array in tool result data'),\n valueKey: z.string().describe('Key for option value'),\n labelKey: z.string().describe('Key for option label'),\n descriptionKey: z.string().optional().describe('Optional key for description'),\n })\n .describe('Mapping for select field options')\n\n/**\n * Create mapping for create tool response\n */\nexport const SettingCreateMappingSchema = z\n .object({\n resultKey: z.string().optional().describe('Key for result data object'),\n valueKey: z.string().describe('Key for option value (defaults to \"id\")'),\n })\n .describe('Mapping for create tool response')\n\n/**\n * Validation rules for settings\n */\nexport const SettingValidationSchema = z\n .object({\n required: z.boolean().optional().describe('Whether the field is required'),\n min: z.number().optional().describe('Minimum value (number) or length (string)'),\n max: z.number().optional().describe('Maximum value (number) or length (string)'),\n pattern: z.string().optional().describe('Regex pattern for validation'),\n })\n .describe('Validation rules')\n\n/**\n * Setting definition type interface for recursive typing\n */\nexport interface SettingDefinitionType {\n id: string\n title: string\n description?: string\n type: 'string' | 'number' | 'boolean' | 'select'\n default?: unknown\n options?: { value: string; label: string }[]\n optionsToolId?: string\n optionsParams?: Record<string, unknown>\n optionsMapping?: z.infer<typeof SettingOptionsMappingSchema>\n createToolId?: string\n createLabel?: string\n createFields?: SettingDefinitionType[]\n createParams?: Record<string, unknown>\n createMapping?: z.infer<typeof SettingCreateMappingSchema>\n validation?: z.infer<typeof SettingValidationSchema>\n}\n\nexport const SettingDefinitionSchema: z.ZodType<SettingDefinitionType> = z.lazy(() =>\n z\n .object({\n id: z.string().describe('Setting ID (namespaced automatically)'),\n title: z.string().describe('Display title'),\n description: z.string().optional().describe('Help text'),\n type: z.enum(['string', 'number', 'boolean', 'select']).describe('Setting type'),\n default: z.unknown().optional().describe('Default value'),\n options: z\n .array(z.object({ value: z.string(), label: z.string() }))\n .optional()\n .describe('For select type: available options'),\n optionsToolId: z.string().optional().describe('For select type: load options from tool'),\n optionsParams: z.record(z.unknown()).optional().describe('Params for options tool'),\n optionsMapping: SettingOptionsMappingSchema.optional().describe('Mapping for options tool response'),\n createToolId: z.string().optional().describe('Tool ID for creating a new option'),\n createLabel: z.string().optional().describe('Label for create action'),\n createFields: z.array(SettingDefinitionSchema).optional().describe('Fields for create form'),\n createParams: z.record(z.unknown()).optional().describe('Static params for create tool'),\n createMapping: SettingCreateMappingSchema.optional().describe('Mapping for create tool response'),\n validation: SettingValidationSchema.optional().describe('Validation rules'),\n })\n .superRefine((data, ctx) => {\n // Validate that create* fields are only used with type: 'select'\n const hasCreateFields =\n data.createToolId !== undefined ||\n data.createLabel !== undefined ||\n data.createFields !== undefined ||\n data.createParams !== undefined ||\n data.createMapping !== undefined\n\n if (hasCreateFields && data.type !== 'select') {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'create* fields (createToolId, createLabel, createFields, createParams, createMapping) are only valid for type \"select\"',\n path: ['type'],\n })\n }\n\n // Validate that select type has options or optionsToolId\n if (data.type === 'select') {\n const hasOptions = data.options && data.options.length > 0\n const hasOptionsToolId = data.optionsToolId !== undefined\n\n if (!hasOptions && !hasOptionsToolId) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Setting of type \"select\" must have \"options\" or \"optionsToolId\"',\n path: ['type'],\n })\n }\n }\n })\n .describe('Setting definition')\n)\n\n// =============================================================================\n// Tool Settings Views\n// =============================================================================\n\n/**\n * Tool settings list mapping\n */\nexport const ToolSettingsListMappingSchema = z\n .object({\n itemsKey: z.string().describe('Key for items array in tool result data'),\n countKey: z.string().optional().describe('Key for total count'),\n idKey: z.string().describe('Key for item ID'),\n labelKey: z.string().describe('Key for item label'),\n descriptionKey: z.string().optional().describe('Key for item description'),\n secondaryKey: z.string().optional().describe('Key for secondary label'),\n })\n .describe('Mapping from tool list data to UI fields')\n\n/**\n * Action-based data source for tool settings\n */\nexport const ToolSettingsActionDataSourceSchema = z\n .object({\n action: z.string().describe('Action ID to call for fetching data'),\n params: z.record(z.unknown()).optional().describe('Parameters to pass to the action'),\n refreshOn: z.array(z.string()).optional().describe('Event names that trigger refresh'),\n })\n .describe('Action-based data source')\n\n/**\n * List view backed by tools\n */\nexport const ToolSettingsListViewSchema = z\n .object({\n kind: z.literal('list').describe('View kind'),\n listToolId: z.string().describe('Tool ID for listing items'),\n getToolId: z.string().optional().describe('Tool ID for fetching details'),\n upsertToolId: z.string().optional().describe('Tool ID for creating/updating items'),\n deleteToolId: z.string().optional().describe('Tool ID for deleting items'),\n mapping: ToolSettingsListMappingSchema.describe('Mapping from tool data to UI'),\n searchParam: z.string().optional().describe('Param name for search query'),\n limitParam: z.string().optional().describe('Param name for limit'),\n idParam: z.string().optional().describe('Param name for get/delete ID'),\n listParams: z.record(z.unknown()).optional().describe('Static params for list tool'),\n })\n .describe('List view backed by tools')\n\n/**\n * Component-based tool settings view\n */\nexport const ToolSettingsComponentViewSchema = z\n .object({\n kind: z.literal('component').describe('View kind'),\n data: z.record(ToolSettingsActionDataSourceSchema).optional().describe('Data sources'),\n content: ExtensionComponentDataSchema.describe('Root component to render'),\n })\n .describe('Component-based tool settings view')\n\n/**\n * Tool settings view types\n */\nexport const ToolSettingsViewSchema = z\n .union([ToolSettingsListViewSchema, ToolSettingsComponentViewSchema])\n .describe('Tool settings view')\n\n/**\n * Tool settings view definition\n */\nexport const ToolSettingsViewDefinitionSchema = z\n .object({\n id: z.string().describe('Unique view ID within the extension'),\n title: z.string().describe('Display title'),\n description: z.string().optional().describe('Help text'),\n view: ToolSettingsViewSchema.describe('View configuration'),\n fields: z.array(SettingDefinitionSchema).optional().describe('Fields for create/edit forms'),\n })\n .describe('Tool settings view definition')\n\n// =============================================================================\n// Panels\n// =============================================================================\n\n/**\n * Action-based data source for panels\n */\nexport const PanelActionDataSourceSchema = z\n .object({\n action: z.string().describe('Action ID to call for fetching data'),\n params: z.record(z.unknown()).optional().describe('Parameters to pass to the action'),\n refreshOn: z.array(z.string()).optional().describe('Event names that trigger refresh'),\n })\n .describe('Panel data source')\n\n/**\n * Component-based panel view\n */\nexport const PanelComponentViewSchema = z\n .object({\n kind: z.literal('component').describe('View kind'),\n data: z.record(PanelActionDataSourceSchema).optional().describe('Data sources'),\n content: ExtensionComponentDataSchema.describe('Root component to render'),\n })\n .describe('Component-based panel view')\n\n/**\n * Unknown panel view (for extensibility)\n */\nexport const PanelUnknownViewSchema = z\n .object({\n kind: z.string().describe('View kind'),\n })\n .passthrough()\n .describe('Unknown panel view')\n\n/**\n * Panel view schema\n */\nexport const PanelViewSchema = z\n .union([PanelComponentViewSchema, PanelUnknownViewSchema])\n .describe('Panel view')\n\n/**\n * Panel definition\n */\nexport const PanelDefinitionSchema = z\n .object({\n id: z.string().describe('Unique panel ID within the extension'),\n title: z.string().describe('Display title'),\n icon: z.string().optional().describe('Icon name (from huge-icons)'),\n view: PanelViewSchema.describe('Panel view schema'),\n })\n .describe('Panel definition')\n\n// =============================================================================\n// Providers\n// =============================================================================\n\n/**\n * Provider config property type\n */\nexport const ProviderConfigPropertyTypeSchema = z\n .enum(['string', 'number', 'boolean', 'select', 'password', 'url'])\n .describe('Property type')\n\n/**\n * Provider config select option\n */\nexport const ProviderConfigSelectOptionSchema = z\n .object({\n value: z.string().describe('Value stored in settings'),\n label: z.string().describe('Display label'),\n })\n .describe('Select option')\n\n/**\n * Provider config validation\n */\nexport const ProviderConfigValidationSchema = z\n .object({\n pattern: z.string().optional().describe('Regex pattern the value must match'),\n minLength: z.number().optional().describe('Minimum string length'),\n maxLength: z.number().optional().describe('Maximum string length'),\n min: z.number().optional().describe('Minimum number value'),\n max: z.number().optional().describe('Maximum number value'),\n })\n .describe('Validation rules')\n\n/**\n * Provider config property\n */\nexport const ProviderConfigPropertySchema = z\n .object({\n type: ProviderConfigPropertyTypeSchema.describe('Property type'),\n title: z.string().describe('Display label'),\n description: z.string().optional().describe('Help text'),\n default: z.unknown().optional().describe('Default value'),\n required: z.boolean().optional().describe('Whether the field is required'),\n placeholder: z.string().optional().describe('Placeholder text'),\n options: z.array(ProviderConfigSelectOptionSchema).optional().describe('For select type'),\n validation: ProviderConfigValidationSchema.optional().describe('Validation rules'),\n })\n .describe('Provider config property')\n\n/**\n * Provider config schema\n */\nexport const ProviderConfigSchemaSchema = z\n .object({\n properties: z.record(ProviderConfigPropertySchema).describe('Property definitions'),\n order: z.array(z.string()).optional().describe('Display order of properties'),\n })\n .describe('Provider configuration schema')\n\n/**\n * Provider definition\n */\nexport const ProviderDefinitionSchema = z\n .object({\n id: z.string().describe('Provider ID'),\n name: z.string().describe('Display name'),\n description: z.string().optional().describe('Description'),\n suggestedDefaultModel: z.string().optional().describe('Suggested default model'),\n defaultSettings: z.record(z.unknown()).optional().describe('Default settings'),\n configSchema: ProviderConfigSchemaSchema.optional().describe('Configuration UI schema'),\n })\n .describe('Provider definition')\n\n// =============================================================================\n// Tools\n// =============================================================================\n\n/**\n * Tool definition\n */\nexport const ToolDefinitionSchema = z\n .object({\n id: z.string().describe('Tool ID'),\n name: LocalizedStringSchema.describe('Display name'),\n description: LocalizedStringSchema.describe('Description for Stina'),\n parameters: z.record(z.unknown()).optional().describe('Parameter schema (JSON Schema)'),\n })\n .describe('Tool definition')\n\n// =============================================================================\n// Commands\n// =============================================================================\n\n/**\n * Command definition\n */\nexport const CommandDefinitionSchema = z\n .object({\n id: z.string().describe('Command ID (e.g., \"weather\" for /weather)'),\n name: z.string().describe('Display name'),\n description: z.string().describe('Description'),\n })\n .describe('Command definition')\n\n// =============================================================================\n// Prompts\n// =============================================================================\n\n/**\n * Prompt section\n */\nexport const PromptSectionSchema = z\n .enum(['system', 'behavior', 'tools'])\n .describe('Prompt section placement')\n\n/**\n * Prompt contribution\n */\nexport const PromptContributionSchema = z\n .object({\n id: z.string().describe('Unique ID within the extension'),\n title: z.string().optional().describe('Optional title for the prompt chunk'),\n section: PromptSectionSchema.optional().describe('Prompt section placement'),\n text: z.string().optional().describe('Plain text prompt content'),\n i18n: z.record(z.string()).optional().describe('Localized prompt content'),\n order: z.number().optional().describe('Ordering hint (lower comes first)'),\n })\n .describe('Prompt contribution')\n\n// =============================================================================\n// Storage\n// =============================================================================\n\n/**\n * Storage collection config schema\n */\nexport const StorageCollectionConfigSchema = z\n .object({\n indexes: z.array(z.string()).optional().describe('Fields to index for fast queries'),\n })\n .describe('Collection configuration')\n\n/**\n * Storage contributions schema\n */\nexport const StorageContributionsSchema = z\n .object({\n collections: z.record(StorageCollectionConfigSchema).describe('Collection definitions'),\n })\n .describe('Storage contributions')\n\n// =============================================================================\n// Extension Contributions\n// =============================================================================\n\n/**\n * Extension contributions\n */\nexport const ExtensionContributionsSchema = z\n .object({\n settings: z.array(SettingDefinitionSchema).optional().describe('User-configurable settings'),\n toolSettings: z.array(ToolSettingsViewDefinitionSchema).optional().describe('Tool settings views'),\n panels: z.array(PanelDefinitionSchema).optional().describe('Right panel contributions'),\n providers: z.array(ProviderDefinitionSchema).optional().describe('AI providers'),\n tools: z.array(ToolDefinitionSchema).optional().describe('Tools for Stina to use'),\n commands: z.array(CommandDefinitionSchema).optional().describe('Slash commands'),\n prompts: z.array(PromptContributionSchema).optional().describe('Prompt contributions'),\n storage: StorageContributionsSchema.optional().describe('Storage collection declarations'),\n })\n .describe('What an extension can contribute to Stina')\n\n// =============================================================================\n// Type Exports\n// =============================================================================\n\nexport type LocalizedString = z.infer<typeof LocalizedStringSchema>\nexport type SettingOptionsMapping = z.infer<typeof SettingOptionsMappingSchema>\nexport type SettingCreateMapping = z.infer<typeof SettingCreateMappingSchema>\nexport type SettingValidation = z.infer<typeof SettingValidationSchema>\nexport type SettingDefinition = z.infer<typeof SettingDefinitionSchema>\nexport type ToolSettingsListMapping = z.infer<typeof ToolSettingsListMappingSchema>\nexport type ToolSettingsActionDataSource = z.infer<typeof ToolSettingsActionDataSourceSchema>\nexport type ToolSettingsListView = z.infer<typeof ToolSettingsListViewSchema>\nexport type ToolSettingsComponentView = z.infer<typeof ToolSettingsComponentViewSchema>\nexport type ToolSettingsView = z.infer<typeof ToolSettingsViewSchema>\nexport type ToolSettingsViewDefinition = z.infer<typeof ToolSettingsViewDefinitionSchema>\nexport type PanelActionDataSource = z.infer<typeof PanelActionDataSourceSchema>\nexport type PanelComponentView = z.infer<typeof PanelComponentViewSchema>\nexport type PanelUnknownView = z.infer<typeof PanelUnknownViewSchema>\nexport type PanelView = z.infer<typeof PanelViewSchema>\nexport type PanelDefinition = z.infer<typeof PanelDefinitionSchema>\nexport type ProviderConfigPropertyType = z.infer<typeof ProviderConfigPropertyTypeSchema>\nexport type ProviderConfigSelectOption = z.infer<typeof ProviderConfigSelectOptionSchema>\nexport type ProviderConfigValidation = z.infer<typeof ProviderConfigValidationSchema>\nexport type ProviderConfigProperty = z.infer<typeof ProviderConfigPropertySchema>\nexport type ProviderConfigSchema = z.infer<typeof ProviderConfigSchemaSchema>\nexport type ProviderDefinition = z.infer<typeof ProviderDefinitionSchema>\nexport type ToolDefinition = z.infer<typeof ToolDefinitionSchema>\nexport type CommandDefinition = z.infer<typeof CommandDefinitionSchema>\nexport type PromptSection = z.infer<typeof PromptSectionSchema>\nexport type PromptContribution = z.infer<typeof PromptContributionSchema>\nexport type StorageCollectionConfig = z.infer<typeof StorageCollectionConfigSchema>\nexport type StorageContributions = z.infer<typeof StorageContributionsSchema>\nexport type ExtensionContributions = z.infer<typeof ExtensionContributionsSchema>\n","/**\n * Component Schema\n *\n * Zod schemas for extension UI components.\n */\n\nimport { z } from 'zod'\n\n// =============================================================================\n// CSS Properties\n// =============================================================================\n\n/**\n * Allowed CSS property names for extension component styling.\n */\nexport const AllowedCSSPropertySchema = z.enum([\n // Colors\n 'color',\n 'background-color',\n 'background',\n 'border-color',\n // Borders\n 'border',\n 'border-width',\n 'border-style',\n 'border-radius',\n 'border-top',\n 'border-right',\n 'border-bottom',\n 'border-left',\n 'border-top-left-radius',\n 'border-top-right-radius',\n 'border-bottom-left-radius',\n 'border-bottom-right-radius',\n // Spacing\n 'padding',\n 'padding-top',\n 'padding-right',\n 'padding-bottom',\n 'padding-left',\n 'margin',\n 'margin-top',\n 'margin-right',\n 'margin-bottom',\n 'margin-left',\n 'gap',\n 'row-gap',\n 'column-gap',\n // Typography\n 'font-size',\n 'font-weight',\n 'font-style',\n 'text-align',\n 'text-decoration',\n 'line-height',\n 'letter-spacing',\n 'white-space',\n 'word-break',\n 'overflow-wrap',\n // Layout (safe properties)\n 'width',\n 'height',\n 'min-width',\n 'min-height',\n 'max-width',\n 'max-height',\n 'flex',\n 'flex-grow',\n 'flex-shrink',\n 'flex-basis',\n 'flex-wrap',\n 'align-self',\n 'justify-self',\n 'align-items',\n 'justify-content',\n // Visual\n 'opacity',\n 'visibility',\n 'overflow',\n 'overflow-x',\n 'overflow-y',\n 'box-shadow',\n 'outline',\n 'cursor',\n 'border-collapse',\n 'border-spacing',\n])\n\n/**\n * Style object for extension components.\n */\nexport const ExtensionComponentStyleSchema = z\n .record(AllowedCSSPropertySchema, z.string())\n .describe('Safe CSS styles for the component')\n\n// =============================================================================\n// Base Component\n// =============================================================================\n\n/**\n * Base component data schema - allows additional properties\n */\nexport const ExtensionComponentDataSchema: z.ZodType<{\n component: string\n style?: Record<string, string>\n [key: string]: unknown\n}> = z.lazy(() =>\n z\n .object({\n component: z.string().describe('Component type name'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Extension component definition')\n)\n\n// =============================================================================\n// Action References\n// =============================================================================\n\n/**\n * Action call with parameters\n */\nexport const ExtensionActionCallSchema = z\n .object({\n action: z.string().describe('Name of the registered action'),\n params: z.record(z.unknown()).optional().describe('Parameters to pass'),\n })\n .describe('Action call with parameters')\n\n/**\n * Action reference - can be a simple string or full action call\n */\nexport const ExtensionActionRefSchema = z\n .union([z.string(), ExtensionActionCallSchema])\n .describe('Action reference')\n\n// =============================================================================\n// Iterator & Children\n// =============================================================================\n\n/**\n * Iterator for rendering a list of components from data\n */\nexport const ExtensionComponentIteratorSchema = z\n .object({\n each: z.union([z.string(), z.array(z.unknown())]).describe('Data source to iterate over'),\n as: z.string().describe('Variable name for current item in scope'),\n items: z.array(ExtensionComponentDataSchema).describe('Components to render for each item'),\n })\n .describe('Iterator for rendering lists')\n\n/**\n * Children can be either a static array of components or an iterator\n */\nexport const ExtensionComponentChildrenSchema = z\n .union([z.array(ExtensionComponentDataSchema), ExtensionComponentIteratorSchema])\n .describe('Child components or iterator')\n\n// =============================================================================\n// Data Source\n// =============================================================================\n\n/**\n * Data source definition for fetching data via an action\n */\nexport const ExtensionDataSourceSchema = z\n .object({\n action: z.string().describe('Action to call for fetching data'),\n params: z.record(z.unknown()).optional().describe('Parameters to pass to the action'),\n refreshOn: z.array(z.string()).optional().describe('Event names that trigger a refresh'),\n })\n .describe('Data source definition')\n\n// =============================================================================\n// Component Props Schemas\n// =============================================================================\n\nexport const HeaderPropsSchema = z\n .object({\n component: z.literal('Header'),\n level: z.number().min(1).max(6).describe('Heading level (1-6)'),\n title: z.string().describe('Header title'),\n description: z.union([z.string(), z.array(z.string())]).optional().describe('Description text'),\n icon: z.string().optional().describe('Icon name'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Header component')\n\nexport const LabelPropsSchema = z\n .object({\n component: z.literal('Label'),\n text: z.string().describe('Label text'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Label component')\n\nexport const ParagraphPropsSchema = z\n .object({\n component: z.literal('Paragraph'),\n text: z.string().describe('Paragraph text'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Paragraph component')\n\nexport const ButtonPropsSchema = z\n .object({\n component: z.literal('Button'),\n text: z.string().describe('Button text'),\n onClickAction: ExtensionActionRefSchema.describe('Action to call on click'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Button component')\n\nexport const TextInputPropsSchema = z\n .object({\n component: z.literal('TextInput'),\n label: z.string().describe('Input label'),\n placeholder: z.string().optional().describe('Placeholder text'),\n value: z.string().optional().describe('Current value'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('TextInput component')\n\nexport const DateTimeInputPropsSchema = z\n .object({\n component: z.literal('DateTimeInput'),\n label: z.string().describe('Input label'),\n value: z.string().optional().describe('Current value'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('DateTimeInput component')\n\nexport const SelectPropsSchema = z\n .object({\n component: z.literal('Select'),\n label: z.string().describe('Select label'),\n options: z.array(z.object({ label: z.string(), value: z.string() })).describe('Available options'),\n selectedValue: z.string().optional().describe('Currently selected value'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Select component')\n\nexport const IconPickerPropsSchema = z\n .object({\n component: z.literal('IconPicker'),\n label: z.string().optional().describe('Picker label'),\n value: z.string().optional().describe('Currently selected icon name'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('IconPicker component')\n\nexport const VerticalStackPropsSchema = z\n .object({\n component: z.literal('VerticalStack'),\n gap: z.number().optional().describe('Gap between children'),\n children: ExtensionComponentChildrenSchema.describe('Child components'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('VerticalStack layout component')\n\nexport const HorizontalStackPropsSchema = z\n .object({\n component: z.literal('HorizontalStack'),\n gap: z.number().optional().describe('Gap between children'),\n children: ExtensionComponentChildrenSchema.describe('Child components'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('HorizontalStack layout component')\n\nexport const GridPropsSchema = z\n .object({\n component: z.literal('Grid'),\n columns: z.number().describe('Number of columns'),\n gap: z.number().optional().describe('Gap between items'),\n children: ExtensionComponentChildrenSchema.describe('Child components'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Grid layout component')\n\nexport const DividerPropsSchema = z\n .object({\n component: z.literal('Divider'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Divider component')\n\nexport const IconPropsSchema = z\n .object({\n component: z.literal('Icon'),\n name: z.string().describe('Icon name'),\n title: z.string().optional().describe('Icon title'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Icon component')\n\nexport const IconButtonTypeSchema = z\n .enum(['normal', 'primary', 'danger', 'accent'])\n .describe('Button type')\n\nexport const IconButtonPropsSchema = z\n .object({\n component: z.literal('IconButton'),\n icon: z.string().describe('Icon name'),\n tooltip: z.string().describe('Tooltip text'),\n active: z.boolean().optional().describe('Whether the button is active'),\n disabled: z.boolean().optional().describe('Whether the button is disabled'),\n type: IconButtonTypeSchema.optional().describe('Button style type'),\n onClickAction: ExtensionActionRefSchema.describe('Action to call on click'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('IconButton component')\n\nexport const PanelActionSchema = z\n .object({\n icon: z.string().describe('Icon name'),\n tooltip: z.string().describe('Tooltip text'),\n action: ExtensionActionRefSchema.describe('Action to call'),\n type: IconButtonTypeSchema.optional().describe('Button style type'),\n })\n .describe('Panel action button')\n\nexport const PanelPropsSchema = z\n .object({\n component: z.literal('Panel'),\n title: z.string().describe('Panel title'),\n description: z.union([z.string(), z.array(z.string())]).optional().describe('Description text'),\n icon: z.string().optional().describe('Icon name'),\n actions: z.array(PanelActionSchema).optional().describe('Action buttons'),\n content: ExtensionComponentDataSchema.optional().describe('Panel content'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Panel component')\n\nexport const TogglePropsSchema = z\n .object({\n component: z.literal('Toggle'),\n label: z.string().optional().describe('Toggle label'),\n description: z.string().optional().describe('Description text'),\n checked: z.boolean().optional().describe('Whether the toggle is checked'),\n disabled: z.boolean().optional().describe('Whether the toggle is disabled'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Toggle component')\n\nexport const CollapsiblePropsSchema = z\n .object({\n component: z.literal('Collapsible'),\n title: z.string().describe('Title displayed in the header'),\n description: z.union([z.string(), z.array(z.string())]).optional().describe('Description text'),\n icon: z.string().optional().describe('Icon name'),\n defaultExpanded: z.boolean().optional().describe('Whether expanded by default'),\n content: ExtensionComponentDataSchema.optional().describe('Content when expanded'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Collapsible component')\n\nexport const PillVariantSchema = z\n .enum(['default', 'primary', 'success', 'warning', 'danger', 'accent'])\n .describe('Pill color variant')\n\nexport const PillPropsSchema = z\n .object({\n component: z.literal('Pill'),\n text: z.string().describe('Pill text'),\n icon: z.string().optional().describe('Icon name'),\n variant: PillVariantSchema.optional().describe('Color variant'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Pill component')\n\nexport const CheckboxPropsSchema = z\n .object({\n component: z.literal('Checkbox'),\n label: z.string().describe('Checkbox label'),\n checked: z.boolean().optional().describe('Whether the checkbox is checked'),\n disabled: z.boolean().optional().describe('Whether the checkbox is disabled'),\n strikethrough: z.boolean().optional().describe('Strike through label when checked'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Checkbox component')\n\nexport const MarkdownPropsSchema = z\n .object({\n component: z.literal('Markdown'),\n content: z.string().describe('Markdown content'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Markdown component')\n\nexport const TextPreviewPropsSchema = z\n .object({\n component: z.literal('TextPreview'),\n content: z.string().describe('Markdown content'),\n maxLines: z.number().optional().describe('Max visible lines before truncating (default 5)'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('TextPreview component')\n\nexport const ModalPropsSchema = z\n .object({\n component: z.literal('Modal'),\n title: z.string().describe('Modal title'),\n open: z.boolean().optional().describe('Whether the modal is open'),\n maxWidth: z.string().optional().describe('Max width of the modal'),\n body: ExtensionComponentDataSchema.optional().describe('Modal body content'),\n footer: ExtensionComponentDataSchema.optional().describe('Modal footer content'),\n onCloseAction: ExtensionActionRefSchema.optional().describe('Action to call on close'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Modal component')\n\nexport const ConditionalGroupPropsSchema = z\n .object({\n component: z.literal('ConditionalGroup'),\n condition: z.string().describe('Condition expression to evaluate'),\n children: ExtensionComponentChildrenSchema.describe('Children to render when condition is true'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('ConditionalGroup component')\n\nexport const FrameVariantSchema = z\n .enum(['border', 'solid'])\n .describe('Frame visual variant')\n\nexport const FramePropsSchema = z\n .object({\n component: z.literal('Frame'),\n title: z.union([z.string(), ExtensionComponentChildrenSchema]).optional().describe('Optional title (string or components)'),\n icon: z.string().optional().describe('Icon name'),\n collapsible: z.boolean().optional().describe('Whether content can be toggled'),\n defaultExpanded: z.boolean().optional().describe('Whether expanded by default'),\n variant: FrameVariantSchema.optional().describe('Visual variant'),\n children: ExtensionComponentChildrenSchema.describe('Child components'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Frame container component')\n\nexport const ListPropsSchema = z\n .object({\n component: z.literal('List'),\n children: ExtensionComponentChildrenSchema.describe('Child components rendered as list items'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('List component')\n\n// =============================================================================\n// Type Exports\n// =============================================================================\n\nexport type AllowedCSSProperty = z.infer<typeof AllowedCSSPropertySchema>\nexport type ExtensionComponentStyle = z.infer<typeof ExtensionComponentStyleSchema>\nexport type ExtensionComponentData = z.infer<typeof ExtensionComponentDataSchema>\nexport type ExtensionActionCall = z.infer<typeof ExtensionActionCallSchema>\nexport type ExtensionActionRef = z.infer<typeof ExtensionActionRefSchema>\nexport type ExtensionComponentIterator = z.infer<typeof ExtensionComponentIteratorSchema>\nexport type ExtensionComponentChildren = z.infer<typeof ExtensionComponentChildrenSchema>\nexport type ExtensionDataSource = z.infer<typeof ExtensionDataSourceSchema>\nexport type IconButtonType = z.infer<typeof IconButtonTypeSchema>\nexport type PillVariant = z.infer<typeof PillVariantSchema>\nexport type PanelAction = z.infer<typeof PanelActionSchema>\nexport type HeaderProps = z.infer<typeof HeaderPropsSchema>\nexport type LabelProps = z.infer<typeof LabelPropsSchema>\nexport type ParagraphProps = z.infer<typeof ParagraphPropsSchema>\nexport type ButtonProps = z.infer<typeof ButtonPropsSchema>\nexport type TextInputProps = z.infer<typeof TextInputPropsSchema>\nexport type DateTimeInputProps = z.infer<typeof DateTimeInputPropsSchema>\nexport type SelectProps = z.infer<typeof SelectPropsSchema>\nexport type IconPickerProps = z.infer<typeof IconPickerPropsSchema>\nexport type VerticalStackProps = z.infer<typeof VerticalStackPropsSchema>\nexport type HorizontalStackProps = z.infer<typeof HorizontalStackPropsSchema>\nexport type GridProps = z.infer<typeof GridPropsSchema>\nexport type DividerProps = z.infer<typeof DividerPropsSchema>\nexport type IconProps = z.infer<typeof IconPropsSchema>\nexport type IconButtonProps = z.infer<typeof IconButtonPropsSchema>\nexport type PanelProps = z.infer<typeof PanelPropsSchema>\nexport type ToggleProps = z.infer<typeof TogglePropsSchema>\nexport type CollapsibleProps = z.infer<typeof CollapsiblePropsSchema>\nexport type PillProps = z.infer<typeof PillPropsSchema>\nexport type CheckboxProps = z.infer<typeof CheckboxPropsSchema>\nexport type MarkdownProps = z.infer<typeof MarkdownPropsSchema>\nexport type TextPreviewProps = z.infer<typeof TextPreviewPropsSchema>\nexport type ModalProps = z.infer<typeof ModalPropsSchema>\nexport type ConditionalGroupProps = z.infer<typeof ConditionalGroupPropsSchema>\nexport type FrameVariant = z.infer<typeof FrameVariantSchema>\nexport type FrameProps = z.infer<typeof FramePropsSchema>\nexport type ListProps = z.infer<typeof ListPropsSchema>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACOA,IAAAA,cAAkB;;;ACAlB,iBAAkB;AAKX,IAAM,oBAAoB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAKO,IAAM,sBAAsB;AAAA,EACjC;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF;AAKA,IAAM,0BAA0B,aAC7B,OAAO,EACP;AAAA,EACC,CAAC,QAAQ;AAEP,QAAI,QAAQ,eAAe,QAAQ,qBAAqB;AACtD,aAAO;AAAA,IACT;AAEA,WAAO,oBAAoB,KAAK,CAAC,YAAY,QAAQ,KAAK,GAAG,CAAC;AAAA,EAChE;AAAA,EACA,EAAE,SAAS,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S,gCAAgC;AAChG,CAAC,EACA,SAAS,2BAA2B;","names":["import_zod","import_zod","import_zod"]}
1
+ {"version":3,"sources":["../../src/schemas/index.ts","../../src/schemas/manifest.schema.ts","../../src/schemas/permissions.schema.ts","../../src/schemas/contributions.schema.ts","../../src/schemas/components.schema.ts"],"sourcesContent":["/**\n * Extension API Schemas\n *\n * Zod schemas for extension manifest validation and JSON Schema generation.\n */\n\n// Manifest schema (main export)\nexport {\n ExtensionManifestSchema,\n PlatformSchema,\n AuthorSchema,\n EnginesSchema,\n type ExtensionManifest,\n type Platform,\n type Author,\n type Engines,\n} from './manifest.schema.js'\n\n// Permission schemas\nexport {\n PermissionSchema,\n NetworkPermissionSchema,\n StoragePermissionSchema,\n UserDataPermissionSchema,\n CapabilityPermissionSchema,\n SystemPermissionSchema,\n isValidPermission,\n VALID_PERMISSIONS,\n PERMISSION_PATTERNS,\n type Permission,\n type NetworkPermission,\n type StoragePermission,\n type UserDataPermission,\n type CapabilityPermission,\n type SystemPermission,\n} from './permissions.schema.js'\n\n// Contribution schemas\nexport {\n ExtensionContributionsSchema,\n LocalizedStringSchema,\n SettingDefinitionSchema,\n SettingOptionsMappingSchema,\n SettingCreateMappingSchema,\n SettingValidationSchema,\n ToolSettingsViewDefinitionSchema,\n ToolSettingsViewSchema,\n ToolSettingsListViewSchema,\n ToolSettingsComponentViewSchema,\n ToolSettingsListMappingSchema,\n ToolSettingsActionDataSourceSchema,\n PanelDefinitionSchema,\n PanelViewSchema,\n PanelComponentViewSchema,\n PanelUnknownViewSchema,\n PanelActionDataSourceSchema,\n ProviderDefinitionSchema,\n ProviderConfigSchemaSchema,\n ProviderConfigPropertySchema,\n ProviderConfigPropertyTypeSchema,\n ProviderConfigSelectOptionSchema,\n ProviderConfigValidationSchema,\n ToolDefinitionSchema,\n CommandDefinitionSchema,\n PromptContributionSchema,\n PromptSectionSchema,\n type ExtensionContributions,\n type LocalizedString,\n type SettingDefinition,\n type SettingOptionsMapping,\n type SettingCreateMapping,\n type SettingValidation,\n type ToolSettingsViewDefinition,\n type ToolSettingsView,\n type ToolSettingsListView,\n type ToolSettingsComponentView,\n type ToolSettingsListMapping,\n type ToolSettingsActionDataSource,\n type PanelDefinition,\n type PanelView,\n type PanelComponentView,\n type PanelUnknownView,\n type PanelActionDataSource,\n type ProviderDefinition,\n type ProviderConfigSchema,\n type ProviderConfigProperty,\n type ProviderConfigPropertyType,\n type ProviderConfigSelectOption,\n type ProviderConfigValidation,\n type ToolDefinition,\n type CommandDefinition,\n type PromptContribution,\n type PromptSection,\n} from './contributions.schema.js'\n\n// Component schemas\nexport {\n ExtensionComponentDataSchema,\n ExtensionComponentStyleSchema,\n ExtensionActionCallSchema,\n ExtensionActionRefSchema,\n ExtensionComponentIteratorSchema,\n ExtensionComponentChildrenSchema,\n ExtensionDataSourceSchema,\n AllowedCSSPropertySchema,\n IconButtonTypeSchema,\n PillVariantSchema,\n PanelActionSchema,\n HeaderPropsSchema,\n LabelPropsSchema,\n ParagraphPropsSchema,\n ButtonPropsSchema,\n TextInputPropsSchema,\n DateTimeInputPropsSchema,\n SelectPropsSchema,\n IconPickerPropsSchema,\n VerticalStackPropsSchema,\n HorizontalStackPropsSchema,\n GridPropsSchema,\n DividerPropsSchema,\n IconPropsSchema,\n IconButtonPropsSchema,\n PanelPropsSchema,\n TogglePropsSchema,\n CollapsiblePropsSchema,\n FrameVariantSchema,\n FramePropsSchema,\n TextPreviewPropsSchema,\n ListPropsSchema,\n PillPropsSchema,\n CheckboxPropsSchema,\n MarkdownPropsSchema,\n ModalPropsSchema,\n ConditionalGroupPropsSchema,\n type ExtensionComponentData,\n type ExtensionComponentStyle,\n type ExtensionActionCall,\n type ExtensionActionRef,\n type ExtensionComponentIterator,\n type ExtensionComponentChildren,\n type ExtensionDataSource,\n type AllowedCSSProperty,\n type IconButtonType,\n type PillVariant,\n type PanelAction,\n type HeaderProps,\n type LabelProps,\n type ParagraphProps,\n type ButtonProps,\n type TextInputProps,\n type DateTimeInputProps,\n type SelectProps,\n type IconPickerProps,\n type VerticalStackProps,\n type HorizontalStackProps,\n type GridProps,\n type DividerProps,\n type IconProps,\n type IconButtonProps,\n type PanelProps,\n type ToggleProps,\n type CollapsibleProps,\n type FrameVariant,\n type FrameProps,\n type TextPreviewProps,\n type ListProps,\n type PillProps,\n type CheckboxProps,\n type MarkdownProps,\n type ModalProps,\n type ConditionalGroupProps,\n} from './components.schema.js'\n","/**\n * Manifest Schema\n *\n * Zod schema for extension manifest files (manifest.json).\n * This is the main schema that combines all sub-schemas.\n */\n\nimport { z } from 'zod'\nimport { PermissionSchema } from './permissions.schema.js'\nimport { ExtensionContributionsSchema } from './contributions.schema.js'\n\n/**\n * Platform schema\n */\nexport const PlatformSchema = z\n .enum(['web', 'electron', 'tui'])\n .describe('Supported platform')\n\n/**\n * Author schema\n */\nexport const AuthorSchema = z\n .object({\n name: z.string().min(1).describe('Author name'),\n url: z.string().url().optional().describe('Author URL'),\n })\n .describe('Author information')\n\n/**\n * Engines schema\n */\nexport const EnginesSchema = z\n .object({\n stina: z.string().describe('Minimum Stina version required'),\n })\n .describe('Engine requirements')\n\n/**\n * Extension manifest schema\n */\nexport const ExtensionManifestSchema = z\n .object({\n id: z\n .string()\n .regex(/^[a-z0-9-]+$/, 'ID must be lowercase alphanumeric with hyphens')\n .describe('Unique identifier (e.g., \"ollama-provider\")'),\n name: z.string().min(1).describe('Human-readable name'),\n version: z\n .string()\n .regex(/^\\d+\\.\\d+\\.\\d+/, 'Must be semver format (e.g., \"1.0.0\")')\n .describe('Version string (semver)'),\n description: z.string().min(1).describe('Short description'),\n author: AuthorSchema.describe('Author information'),\n repository: z.string().url().optional().describe('Repository URL'),\n license: z.string().optional().describe('License identifier'),\n engines: EnginesSchema.optional().describe('Minimum Stina version required'),\n platforms: z.array(PlatformSchema).optional().describe('Supported platforms'),\n main: z.string().describe('Entry point file (relative to extension root)'),\n permissions: z.array(PermissionSchema).describe('Required permissions'),\n contributes: ExtensionContributionsSchema.optional().describe('What the extension contributes'),\n })\n .describe('Extension manifest format')\n\n// =============================================================================\n// Type Exports\n// =============================================================================\n\nexport type Platform = z.infer<typeof PlatformSchema>\nexport type Author = z.infer<typeof AuthorSchema>\nexport type Engines = z.infer<typeof EnginesSchema>\nexport type ExtensionManifest = z.infer<typeof ExtensionManifestSchema>\n","/**\n * Permission Schema\n *\n * Zod schema for extension permission strings.\n * Generates both TypeScript types and JSON Schema.\n */\n\nimport { z } from 'zod'\n\n/**\n * Valid exact permission values\n */\nexport const VALID_PERMISSIONS = [\n 'network:*',\n 'network:localhost',\n 'storage.collections',\n 'secrets.manage',\n 'user.profile.read',\n 'user.list',\n 'user.location.read',\n 'chat.history.read',\n 'chat.current.read',\n 'chat.message.write',\n 'provider.register',\n 'tools.register',\n 'tools.list',\n 'tools.execute',\n 'actions.register',\n 'settings.register',\n 'commands.register',\n 'panels.register',\n 'events.emit',\n 'scheduler.register',\n 'background.workers',\n 'files.read',\n 'files.write',\n 'clipboard.read',\n 'clipboard.write',\n] as const\n\n/**\n * Permission patterns for dynamic permissions (network with host/port)\n */\nexport const PERMISSION_PATTERNS = [\n /^network:localhost:\\d+$/, // network:localhost:11434\n /^network:[a-zA-Z0-9.-]+$/, // network:api.example.com\n /^network:[a-zA-Z0-9.-]+:\\d+$/, // network:api.example.com:8080\n]\n\n/**\n * Network permission schema - matches exact values and patterns\n */\nconst NetworkPermissionSchema = z\n .string()\n .refine(\n (val) => {\n // Check exact matches first\n if (val === 'network:*' || val === 'network:localhost') {\n return true\n }\n // Check dynamic patterns\n return PERMISSION_PATTERNS.some((pattern) => pattern.test(val))\n },\n { message: 'Invalid network permission format' }\n )\n .describe('Network access permission (e.g., \"network:*\", \"network:localhost:11434\")')\n\n/**\n * Storage permission schema\n */\nconst StoragePermissionSchema = z.enum(['storage.collections', 'secrets.manage']).describe('Storage permission')\n\n/**\n * User data permission schema\n */\nconst UserDataPermissionSchema = z\n .enum(['user.profile.read', 'user.list', 'user.location.read', 'chat.history.read', 'chat.current.read'])\n .describe('User data access permission')\n\n/**\n * Capability permission schema\n */\nconst CapabilityPermissionSchema = z\n .enum([\n 'provider.register',\n 'tools.register',\n 'tools.list',\n 'tools.execute',\n 'actions.register',\n 'settings.register',\n 'commands.register',\n 'panels.register',\n 'events.emit',\n 'scheduler.register',\n 'chat.message.write',\n 'background.workers',\n ])\n .describe('Capability permission')\n\n/**\n * System permission schema\n */\nconst SystemPermissionSchema = z\n .enum(['files.read', 'files.write', 'clipboard.read', 'clipboard.write'])\n .describe('System permission')\n\n/**\n * Regex pattern for dynamic network permissions (host with optional port)\n * Matches: network:api.example.com, network:localhost:11434, network:api.example.com:8080\n */\nconst NETWORK_PERMISSION_REGEX = /^network:[a-zA-Z0-9.-]+(:\\d+)?$/\n\n/**\n * Combined permission schema - validates against all permission types\n * Uses z.union with z.enum and z.string().regex() for better JSON Schema generation\n */\nexport const PermissionSchema = z\n .union([\n z.enum(VALID_PERMISSIONS),\n z.string().regex(NETWORK_PERMISSION_REGEX, 'Invalid network permission format'),\n ])\n .describe('Extension permission')\n\n/**\n * Check if a permission string is valid\n */\nexport function isValidPermission(permission: string): boolean {\n return PermissionSchema.safeParse(permission).success\n}\n\n// Re-export individual schemas for more specific validation if needed\nexport {\n NetworkPermissionSchema,\n StoragePermissionSchema,\n UserDataPermissionSchema,\n CapabilityPermissionSchema,\n SystemPermissionSchema,\n}\n\n// Type exports\nexport type Permission = z.infer<typeof PermissionSchema>\nexport type NetworkPermission = 'network:*' | `network:localhost` | `network:localhost:${number}` | `network:${string}`\nexport type StoragePermission = z.infer<typeof StoragePermissionSchema>\nexport type UserDataPermission = z.infer<typeof UserDataPermissionSchema>\nexport type CapabilityPermission = z.infer<typeof CapabilityPermissionSchema>\nexport type SystemPermission = z.infer<typeof SystemPermissionSchema>\n","/**\n * Contributions Schema\n *\n * Zod schemas for extension contributions: settings, panels, providers, tools, commands, prompts.\n */\n\nimport { z } from 'zod'\nimport { ExtensionComponentDataSchema } from './components.schema.js'\n\n// =============================================================================\n// Localization\n// =============================================================================\n\n/**\n * Localized string - either a simple string or a map of language codes to strings\n */\nexport const LocalizedStringSchema = z\n .union([z.string(), z.record(z.string())])\n .describe('String or localized string map')\n\n// =============================================================================\n// Settings\n// =============================================================================\n\n/**\n * Options mapping for select field options from tool response\n */\nexport const SettingOptionsMappingSchema = z\n .object({\n itemsKey: z.string().describe('Key for items array in tool result data'),\n valueKey: z.string().describe('Key for option value'),\n labelKey: z.string().describe('Key for option label'),\n descriptionKey: z.string().optional().describe('Optional key for description'),\n })\n .describe('Mapping for select field options')\n\n/**\n * Create mapping for create tool response\n */\nexport const SettingCreateMappingSchema = z\n .object({\n resultKey: z.string().optional().describe('Key for result data object'),\n valueKey: z.string().describe('Key for option value (defaults to \"id\")'),\n })\n .describe('Mapping for create tool response')\n\n/**\n * Validation rules for settings\n */\nexport const SettingValidationSchema = z\n .object({\n required: z.boolean().optional().describe('Whether the field is required'),\n min: z.number().optional().describe('Minimum value (number) or length (string)'),\n max: z.number().optional().describe('Maximum value (number) or length (string)'),\n pattern: z.string().optional().describe('Regex pattern for validation'),\n })\n .describe('Validation rules')\n\n/**\n * Setting definition type interface for recursive typing\n */\nexport interface SettingDefinitionType {\n id: string\n title: string\n description?: string\n type: 'string' | 'number' | 'boolean' | 'select'\n default?: unknown\n options?: { value: string; label: string }[]\n optionsToolId?: string\n optionsParams?: Record<string, unknown>\n optionsMapping?: z.infer<typeof SettingOptionsMappingSchema>\n createToolId?: string\n createLabel?: string\n createFields?: SettingDefinitionType[]\n createParams?: Record<string, unknown>\n createMapping?: z.infer<typeof SettingCreateMappingSchema>\n validation?: z.infer<typeof SettingValidationSchema>\n}\n\nexport const SettingDefinitionSchema: z.ZodType<SettingDefinitionType> = z.lazy(() =>\n z\n .object({\n id: z.string().describe('Setting ID (namespaced automatically)'),\n title: z.string().describe('Display title'),\n description: z.string().optional().describe('Help text'),\n type: z.enum(['string', 'number', 'boolean', 'select']).describe('Setting type'),\n default: z.unknown().optional().describe('Default value'),\n options: z\n .array(z.object({ value: z.string(), label: z.string() }))\n .optional()\n .describe('For select type: available options'),\n optionsToolId: z.string().optional().describe('For select type: load options from tool'),\n optionsParams: z.record(z.unknown()).optional().describe('Params for options tool'),\n optionsMapping: SettingOptionsMappingSchema.optional().describe('Mapping for options tool response'),\n createToolId: z.string().optional().describe('Tool ID for creating a new option'),\n createLabel: z.string().optional().describe('Label for create action'),\n createFields: z.array(SettingDefinitionSchema).optional().describe('Fields for create form'),\n createParams: z.record(z.unknown()).optional().describe('Static params for create tool'),\n createMapping: SettingCreateMappingSchema.optional().describe('Mapping for create tool response'),\n validation: SettingValidationSchema.optional().describe('Validation rules'),\n })\n .superRefine((data, ctx) => {\n // Validate that create* fields are only used with type: 'select'\n const hasCreateFields =\n data.createToolId !== undefined ||\n data.createLabel !== undefined ||\n data.createFields !== undefined ||\n data.createParams !== undefined ||\n data.createMapping !== undefined\n\n if (hasCreateFields && data.type !== 'select') {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'create* fields (createToolId, createLabel, createFields, createParams, createMapping) are only valid for type \"select\"',\n path: ['type'],\n })\n }\n\n // Validate that select type has options or optionsToolId\n if (data.type === 'select') {\n const hasOptions = data.options && data.options.length > 0\n const hasOptionsToolId = data.optionsToolId !== undefined\n\n if (!hasOptions && !hasOptionsToolId) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Setting of type \"select\" must have \"options\" or \"optionsToolId\"',\n path: ['type'],\n })\n }\n }\n })\n .describe('Setting definition')\n)\n\n// =============================================================================\n// Tool Settings Views\n// =============================================================================\n\n/**\n * Tool settings list mapping\n */\nexport const ToolSettingsListMappingSchema = z\n .object({\n itemsKey: z.string().describe('Key for items array in tool result data'),\n countKey: z.string().optional().describe('Key for total count'),\n idKey: z.string().describe('Key for item ID'),\n labelKey: z.string().describe('Key for item label'),\n descriptionKey: z.string().optional().describe('Key for item description'),\n secondaryKey: z.string().optional().describe('Key for secondary label'),\n })\n .describe('Mapping from tool list data to UI fields')\n\n/**\n * Action-based data source for tool settings\n */\nexport const ToolSettingsActionDataSourceSchema = z\n .object({\n action: z.string().describe('Action ID to call for fetching data'),\n params: z.record(z.unknown()).optional().describe('Parameters to pass to the action'),\n refreshOn: z.array(z.string()).optional().describe('Event names that trigger refresh'),\n })\n .describe('Action-based data source')\n\n/**\n * List view backed by tools\n */\nexport const ToolSettingsListViewSchema = z\n .object({\n kind: z.literal('list').describe('View kind'),\n listToolId: z.string().describe('Tool ID for listing items'),\n getToolId: z.string().optional().describe('Tool ID for fetching details'),\n upsertToolId: z.string().optional().describe('Tool ID for creating/updating items'),\n deleteToolId: z.string().optional().describe('Tool ID for deleting items'),\n mapping: ToolSettingsListMappingSchema.describe('Mapping from tool data to UI'),\n searchParam: z.string().optional().describe('Param name for search query'),\n limitParam: z.string().optional().describe('Param name for limit'),\n idParam: z.string().optional().describe('Param name for get/delete ID'),\n listParams: z.record(z.unknown()).optional().describe('Static params for list tool'),\n })\n .describe('List view backed by tools')\n\n/**\n * Component-based tool settings view\n */\nexport const ToolSettingsComponentViewSchema = z\n .object({\n kind: z.literal('component').describe('View kind'),\n data: z.record(ToolSettingsActionDataSourceSchema).optional().describe('Data sources'),\n content: ExtensionComponentDataSchema.describe('Root component to render'),\n })\n .describe('Component-based tool settings view')\n\n/**\n * Tool settings view types\n */\nexport const ToolSettingsViewSchema = z\n .union([ToolSettingsListViewSchema, ToolSettingsComponentViewSchema])\n .describe('Tool settings view')\n\n/**\n * Tool settings view definition\n */\nexport const ToolSettingsViewDefinitionSchema = z\n .object({\n id: z.string().describe('Unique view ID within the extension'),\n title: z.string().describe('Display title'),\n description: z.string().optional().describe('Help text'),\n view: ToolSettingsViewSchema.describe('View configuration'),\n fields: z.array(SettingDefinitionSchema).optional().describe('Fields for create/edit forms'),\n })\n .describe('Tool settings view definition')\n\n// =============================================================================\n// Panels\n// =============================================================================\n\n/**\n * Action-based data source for panels\n */\nexport const PanelActionDataSourceSchema = z\n .object({\n action: z.string().describe('Action ID to call for fetching data'),\n params: z.record(z.unknown()).optional().describe('Parameters to pass to the action'),\n refreshOn: z.array(z.string()).optional().describe('Event names that trigger refresh'),\n })\n .describe('Panel data source')\n\n/**\n * Component-based panel view\n */\nexport const PanelComponentViewSchema = z\n .object({\n kind: z.literal('component').describe('View kind'),\n data: z.record(PanelActionDataSourceSchema).optional().describe('Data sources'),\n content: ExtensionComponentDataSchema.describe('Root component to render'),\n })\n .describe('Component-based panel view')\n\n/**\n * Unknown panel view (for extensibility)\n */\nexport const PanelUnknownViewSchema = z\n .object({\n kind: z.string().describe('View kind'),\n })\n .passthrough()\n .describe('Unknown panel view')\n\n/**\n * Panel view schema\n */\nexport const PanelViewSchema = z\n .union([PanelComponentViewSchema, PanelUnknownViewSchema])\n .describe('Panel view')\n\n/**\n * Panel definition\n */\nexport const PanelDefinitionSchema = z\n .object({\n id: z.string().describe('Unique panel ID within the extension'),\n title: z.string().describe('Display title'),\n icon: z.string().optional().describe('Icon name (from huge-icons)'),\n view: PanelViewSchema.describe('Panel view schema'),\n })\n .describe('Panel definition')\n\n// =============================================================================\n// Providers\n// =============================================================================\n\n/**\n * Provider config property type\n */\nexport const ProviderConfigPropertyTypeSchema = z\n .enum(['string', 'number', 'boolean', 'select', 'password', 'url'])\n .describe('Property type')\n\n/**\n * Provider config select option\n */\nexport const ProviderConfigSelectOptionSchema = z\n .object({\n value: z.string().describe('Value stored in settings'),\n label: z.string().describe('Display label'),\n })\n .describe('Select option')\n\n/**\n * Provider config validation\n */\nexport const ProviderConfigValidationSchema = z\n .object({\n pattern: z.string().optional().describe('Regex pattern the value must match'),\n minLength: z.number().optional().describe('Minimum string length'),\n maxLength: z.number().optional().describe('Maximum string length'),\n min: z.number().optional().describe('Minimum number value'),\n max: z.number().optional().describe('Maximum number value'),\n })\n .describe('Validation rules')\n\n/**\n * Provider config property\n */\nexport const ProviderConfigPropertySchema = z\n .object({\n type: ProviderConfigPropertyTypeSchema.describe('Property type'),\n title: z.string().describe('Display label'),\n description: z.string().optional().describe('Help text'),\n default: z.unknown().optional().describe('Default value'),\n required: z.boolean().optional().describe('Whether the field is required'),\n placeholder: z.string().optional().describe('Placeholder text'),\n options: z.array(ProviderConfigSelectOptionSchema).optional().describe('For select type'),\n validation: ProviderConfigValidationSchema.optional().describe('Validation rules'),\n })\n .describe('Provider config property')\n\n/**\n * Provider config schema\n */\nexport const ProviderConfigSchemaSchema = z\n .object({\n properties: z.record(ProviderConfigPropertySchema).describe('Property definitions'),\n order: z.array(z.string()).optional().describe('Display order of properties'),\n })\n .describe('Provider configuration schema')\n\n/**\n * Provider definition\n */\nexport const ProviderDefinitionSchema = z\n .object({\n id: z.string().describe('Provider ID'),\n name: z.string().describe('Display name'),\n description: z.string().optional().describe('Description'),\n suggestedDefaultModel: z.string().optional().describe('Suggested default model'),\n defaultSettings: z.record(z.unknown()).optional().describe('Default settings'),\n configSchema: ProviderConfigSchemaSchema.optional().describe('Configuration UI schema'),\n })\n .describe('Provider definition')\n\n// =============================================================================\n// Tools\n// =============================================================================\n\n/**\n * Tool definition\n */\nexport const ToolDefinitionSchema = z\n .object({\n id: z.string().describe('Tool ID'),\n name: LocalizedStringSchema.describe('Display name'),\n description: LocalizedStringSchema.describe('Description for Stina'),\n parameters: z.record(z.unknown()).optional().describe('Parameter schema (JSON Schema)'),\n requiresConfirmation: z.boolean().optional().describe('Whether this tool requires user confirmation before execution (default: true)'),\n confirmationPrompt: LocalizedStringSchema.optional().describe('Custom confirmation prompt'),\n })\n .describe('Tool definition')\n\n// =============================================================================\n// Commands\n// =============================================================================\n\n/**\n * Command definition\n */\nexport const CommandDefinitionSchema = z\n .object({\n id: z.string().describe('Command ID (e.g., \"weather\" for /weather)'),\n name: z.string().describe('Display name'),\n description: z.string().describe('Description'),\n })\n .describe('Command definition')\n\n// =============================================================================\n// Prompts\n// =============================================================================\n\n/**\n * Prompt section\n */\nexport const PromptSectionSchema = z\n .enum(['system', 'behavior', 'tools'])\n .describe('Prompt section placement')\n\n/**\n * Prompt contribution\n */\nexport const PromptContributionSchema = z\n .object({\n id: z.string().describe('Unique ID within the extension'),\n title: z.string().optional().describe('Optional title for the prompt chunk'),\n section: PromptSectionSchema.optional().describe('Prompt section placement'),\n text: z.string().optional().describe('Plain text prompt content'),\n i18n: z.record(z.string()).optional().describe('Localized prompt content'),\n order: z.number().optional().describe('Ordering hint (lower comes first)'),\n })\n .describe('Prompt contribution')\n\n// =============================================================================\n// Storage\n// =============================================================================\n\n/**\n * Storage collection config schema\n */\nexport const StorageCollectionConfigSchema = z\n .object({\n indexes: z.array(z.string()).optional().describe('Fields to index for fast queries'),\n })\n .describe('Collection configuration')\n\n/**\n * Storage contributions schema\n */\nexport const StorageContributionsSchema = z\n .object({\n collections: z.record(StorageCollectionConfigSchema).describe('Collection definitions'),\n })\n .describe('Storage contributions')\n\n// =============================================================================\n// Extension Contributions\n// =============================================================================\n\n/**\n * Extension contributions\n */\nexport const ExtensionContributionsSchema = z\n .object({\n settings: z.array(SettingDefinitionSchema).optional().describe('User-configurable settings'),\n toolSettings: z.array(ToolSettingsViewDefinitionSchema).optional().describe('Tool settings views'),\n panels: z.array(PanelDefinitionSchema).optional().describe('Right panel contributions'),\n providers: z.array(ProviderDefinitionSchema).optional().describe('AI providers'),\n tools: z.array(ToolDefinitionSchema).optional().describe('Tools for Stina to use'),\n commands: z.array(CommandDefinitionSchema).optional().describe('Slash commands'),\n prompts: z.array(PromptContributionSchema).optional().describe('Prompt contributions'),\n storage: StorageContributionsSchema.optional().describe('Storage collection declarations'),\n })\n .describe('What an extension can contribute to Stina')\n\n// =============================================================================\n// Type Exports\n// =============================================================================\n\nexport type LocalizedString = z.infer<typeof LocalizedStringSchema>\nexport type SettingOptionsMapping = z.infer<typeof SettingOptionsMappingSchema>\nexport type SettingCreateMapping = z.infer<typeof SettingCreateMappingSchema>\nexport type SettingValidation = z.infer<typeof SettingValidationSchema>\nexport type SettingDefinition = z.infer<typeof SettingDefinitionSchema>\nexport type ToolSettingsListMapping = z.infer<typeof ToolSettingsListMappingSchema>\nexport type ToolSettingsActionDataSource = z.infer<typeof ToolSettingsActionDataSourceSchema>\nexport type ToolSettingsListView = z.infer<typeof ToolSettingsListViewSchema>\nexport type ToolSettingsComponentView = z.infer<typeof ToolSettingsComponentViewSchema>\nexport type ToolSettingsView = z.infer<typeof ToolSettingsViewSchema>\nexport type ToolSettingsViewDefinition = z.infer<typeof ToolSettingsViewDefinitionSchema>\nexport type PanelActionDataSource = z.infer<typeof PanelActionDataSourceSchema>\nexport type PanelComponentView = z.infer<typeof PanelComponentViewSchema>\nexport type PanelUnknownView = z.infer<typeof PanelUnknownViewSchema>\nexport type PanelView = z.infer<typeof PanelViewSchema>\nexport type PanelDefinition = z.infer<typeof PanelDefinitionSchema>\nexport type ProviderConfigPropertyType = z.infer<typeof ProviderConfigPropertyTypeSchema>\nexport type ProviderConfigSelectOption = z.infer<typeof ProviderConfigSelectOptionSchema>\nexport type ProviderConfigValidation = z.infer<typeof ProviderConfigValidationSchema>\nexport type ProviderConfigProperty = z.infer<typeof ProviderConfigPropertySchema>\nexport type ProviderConfigSchema = z.infer<typeof ProviderConfigSchemaSchema>\nexport type ProviderDefinition = z.infer<typeof ProviderDefinitionSchema>\nexport type ToolDefinition = z.infer<typeof ToolDefinitionSchema>\nexport type CommandDefinition = z.infer<typeof CommandDefinitionSchema>\nexport type PromptSection = z.infer<typeof PromptSectionSchema>\nexport type PromptContribution = z.infer<typeof PromptContributionSchema>\nexport type StorageCollectionConfig = z.infer<typeof StorageCollectionConfigSchema>\nexport type StorageContributions = z.infer<typeof StorageContributionsSchema>\nexport type ExtensionContributions = z.infer<typeof ExtensionContributionsSchema>\n","/**\n * Component Schema\n *\n * Zod schemas for extension UI components.\n */\n\nimport { z } from 'zod'\n\n// =============================================================================\n// CSS Properties\n// =============================================================================\n\n/**\n * Allowed CSS property names for extension component styling.\n */\nexport const AllowedCSSPropertySchema = z.enum([\n // Colors\n 'color',\n 'background-color',\n 'background',\n 'border-color',\n // Borders\n 'border',\n 'border-width',\n 'border-style',\n 'border-radius',\n 'border-top',\n 'border-right',\n 'border-bottom',\n 'border-left',\n 'border-top-left-radius',\n 'border-top-right-radius',\n 'border-bottom-left-radius',\n 'border-bottom-right-radius',\n // Spacing\n 'padding',\n 'padding-top',\n 'padding-right',\n 'padding-bottom',\n 'padding-left',\n 'margin',\n 'margin-top',\n 'margin-right',\n 'margin-bottom',\n 'margin-left',\n 'gap',\n 'row-gap',\n 'column-gap',\n // Typography\n 'font-size',\n 'font-weight',\n 'font-style',\n 'text-align',\n 'text-decoration',\n 'line-height',\n 'letter-spacing',\n 'white-space',\n 'word-break',\n 'overflow-wrap',\n // Layout (safe properties)\n 'width',\n 'height',\n 'min-width',\n 'min-height',\n 'max-width',\n 'max-height',\n 'flex',\n 'flex-grow',\n 'flex-shrink',\n 'flex-basis',\n 'flex-wrap',\n 'align-self',\n 'justify-self',\n 'align-items',\n 'justify-content',\n // Visual\n 'opacity',\n 'visibility',\n 'overflow',\n 'overflow-x',\n 'overflow-y',\n 'box-shadow',\n 'outline',\n 'cursor',\n 'border-collapse',\n 'border-spacing',\n])\n\n/**\n * Style object for extension components.\n */\nexport const ExtensionComponentStyleSchema = z\n .record(AllowedCSSPropertySchema, z.string())\n .describe('Safe CSS styles for the component')\n\n// =============================================================================\n// Base Component\n// =============================================================================\n\n/**\n * Base component data schema - allows additional properties\n */\nexport const ExtensionComponentDataSchema: z.ZodType<{\n component: string\n style?: Record<string, string>\n [key: string]: unknown\n}> = z.lazy(() =>\n z\n .object({\n component: z.string().describe('Component type name'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Extension component definition')\n)\n\n// =============================================================================\n// Action References\n// =============================================================================\n\n/**\n * Action call with parameters\n */\nexport const ExtensionActionCallSchema = z\n .object({\n action: z.string().describe('Name of the registered action'),\n params: z.record(z.unknown()).optional().describe('Parameters to pass'),\n })\n .describe('Action call with parameters')\n\n/**\n * Action reference - can be a simple string or full action call\n */\nexport const ExtensionActionRefSchema = z\n .union([z.string(), ExtensionActionCallSchema])\n .describe('Action reference')\n\n// =============================================================================\n// Iterator & Children\n// =============================================================================\n\n/**\n * Iterator for rendering a list of components from data\n */\nexport const ExtensionComponentIteratorSchema = z\n .object({\n each: z.union([z.string(), z.array(z.unknown())]).describe('Data source to iterate over'),\n as: z.string().describe('Variable name for current item in scope'),\n items: z.array(ExtensionComponentDataSchema).describe('Components to render for each item'),\n })\n .describe('Iterator for rendering lists')\n\n/**\n * Children can be either a static array of components or an iterator\n */\nexport const ExtensionComponentChildrenSchema = z\n .union([z.array(ExtensionComponentDataSchema), ExtensionComponentIteratorSchema])\n .describe('Child components or iterator')\n\n// =============================================================================\n// Data Source\n// =============================================================================\n\n/**\n * Data source definition for fetching data via an action\n */\nexport const ExtensionDataSourceSchema = z\n .object({\n action: z.string().describe('Action to call for fetching data'),\n params: z.record(z.unknown()).optional().describe('Parameters to pass to the action'),\n refreshOn: z.array(z.string()).optional().describe('Event names that trigger a refresh'),\n })\n .describe('Data source definition')\n\n// =============================================================================\n// Component Props Schemas\n// =============================================================================\n\nexport const HeaderPropsSchema = z\n .object({\n component: z.literal('Header'),\n level: z.number().min(1).max(6).describe('Heading level (1-6)'),\n title: z.string().describe('Header title'),\n description: z.union([z.string(), z.array(z.string())]).optional().describe('Description text'),\n icon: z.string().optional().describe('Icon name'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Header component')\n\nexport const LabelPropsSchema = z\n .object({\n component: z.literal('Label'),\n text: z.string().describe('Label text'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Label component')\n\nexport const ParagraphPropsSchema = z\n .object({\n component: z.literal('Paragraph'),\n text: z.string().describe('Paragraph text'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Paragraph component')\n\nexport const ButtonPropsSchema = z\n .object({\n component: z.literal('Button'),\n text: z.string().describe('Button text'),\n onClickAction: ExtensionActionRefSchema.describe('Action to call on click'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Button component')\n\nexport const TextInputPropsSchema = z\n .object({\n component: z.literal('TextInput'),\n label: z.string().describe('Input label'),\n placeholder: z.string().optional().describe('Placeholder text'),\n value: z.string().optional().describe('Current value'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('TextInput component')\n\nexport const DateTimeInputPropsSchema = z\n .object({\n component: z.literal('DateTimeInput'),\n label: z.string().describe('Input label'),\n value: z.string().optional().describe('Current value'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('DateTimeInput component')\n\nexport const SelectPropsSchema = z\n .object({\n component: z.literal('Select'),\n label: z.string().describe('Select label'),\n options: z.array(z.object({ label: z.string(), value: z.string() })).describe('Available options'),\n selectedValue: z.string().optional().describe('Currently selected value'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Select component')\n\nexport const IconPickerPropsSchema = z\n .object({\n component: z.literal('IconPicker'),\n label: z.string().optional().describe('Picker label'),\n value: z.string().optional().describe('Currently selected icon name'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('IconPicker component')\n\nexport const VerticalStackPropsSchema = z\n .object({\n component: z.literal('VerticalStack'),\n gap: z.number().optional().describe('Gap between children'),\n children: ExtensionComponentChildrenSchema.describe('Child components'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('VerticalStack layout component')\n\nexport const HorizontalStackPropsSchema = z\n .object({\n component: z.literal('HorizontalStack'),\n gap: z.number().optional().describe('Gap between children'),\n children: ExtensionComponentChildrenSchema.describe('Child components'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('HorizontalStack layout component')\n\nexport const GridPropsSchema = z\n .object({\n component: z.literal('Grid'),\n columns: z.number().describe('Number of columns'),\n gap: z.number().optional().describe('Gap between items'),\n children: ExtensionComponentChildrenSchema.describe('Child components'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Grid layout component')\n\nexport const DividerPropsSchema = z\n .object({\n component: z.literal('Divider'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Divider component')\n\nexport const IconPropsSchema = z\n .object({\n component: z.literal('Icon'),\n name: z.string().describe('Icon name'),\n title: z.string().optional().describe('Icon title'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Icon component')\n\nexport const IconButtonTypeSchema = z\n .enum(['normal', 'primary', 'danger', 'accent'])\n .describe('Button type')\n\nexport const IconButtonPropsSchema = z\n .object({\n component: z.literal('IconButton'),\n icon: z.string().describe('Icon name'),\n tooltip: z.string().describe('Tooltip text'),\n active: z.boolean().optional().describe('Whether the button is active'),\n disabled: z.boolean().optional().describe('Whether the button is disabled'),\n type: IconButtonTypeSchema.optional().describe('Button style type'),\n onClickAction: ExtensionActionRefSchema.describe('Action to call on click'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('IconButton component')\n\nexport const PanelActionSchema = z\n .object({\n icon: z.string().describe('Icon name'),\n tooltip: z.string().describe('Tooltip text'),\n action: ExtensionActionRefSchema.describe('Action to call'),\n type: IconButtonTypeSchema.optional().describe('Button style type'),\n })\n .describe('Panel action button')\n\nexport const PanelPropsSchema = z\n .object({\n component: z.literal('Panel'),\n title: z.string().describe('Panel title'),\n description: z.union([z.string(), z.array(z.string())]).optional().describe('Description text'),\n icon: z.string().optional().describe('Icon name'),\n actions: z.array(PanelActionSchema).optional().describe('Action buttons'),\n content: ExtensionComponentDataSchema.optional().describe('Panel content'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Panel component')\n\nexport const TogglePropsSchema = z\n .object({\n component: z.literal('Toggle'),\n label: z.string().optional().describe('Toggle label'),\n description: z.string().optional().describe('Description text'),\n checked: z.boolean().optional().describe('Whether the toggle is checked'),\n disabled: z.boolean().optional().describe('Whether the toggle is disabled'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Toggle component')\n\nexport const CollapsiblePropsSchema = z\n .object({\n component: z.literal('Collapsible'),\n title: z.string().describe('Title displayed in the header'),\n description: z.union([z.string(), z.array(z.string())]).optional().describe('Description text'),\n icon: z.string().optional().describe('Icon name'),\n defaultExpanded: z.boolean().optional().describe('Whether expanded by default'),\n content: ExtensionComponentDataSchema.optional().describe('Content when expanded'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Collapsible component')\n\nexport const PillVariantSchema = z\n .enum(['default', 'primary', 'success', 'warning', 'danger', 'accent'])\n .describe('Pill color variant')\n\nexport const PillPropsSchema = z\n .object({\n component: z.literal('Pill'),\n text: z.string().describe('Pill text'),\n icon: z.string().optional().describe('Icon name'),\n variant: PillVariantSchema.optional().describe('Color variant'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Pill component')\n\nexport const CheckboxPropsSchema = z\n .object({\n component: z.literal('Checkbox'),\n label: z.string().describe('Checkbox label'),\n checked: z.boolean().optional().describe('Whether the checkbox is checked'),\n disabled: z.boolean().optional().describe('Whether the checkbox is disabled'),\n strikethrough: z.boolean().optional().describe('Strike through label when checked'),\n onChangeAction: ExtensionActionRefSchema.describe('Action to call on change'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Checkbox component')\n\nexport const MarkdownPropsSchema = z\n .object({\n component: z.literal('Markdown'),\n content: z.string().describe('Markdown content'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Markdown component')\n\nexport const TextPreviewPropsSchema = z\n .object({\n component: z.literal('TextPreview'),\n content: z.string().describe('Markdown content'),\n maxLines: z.number().optional().describe('Max visible lines before truncating (default 5)'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('TextPreview component')\n\nexport const ModalPropsSchema = z\n .object({\n component: z.literal('Modal'),\n title: z.string().describe('Modal title'),\n open: z.boolean().optional().describe('Whether the modal is open'),\n maxWidth: z.string().optional().describe('Max width of the modal'),\n body: ExtensionComponentDataSchema.optional().describe('Modal body content'),\n footer: ExtensionComponentDataSchema.optional().describe('Modal footer content'),\n onCloseAction: ExtensionActionRefSchema.optional().describe('Action to call on close'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Modal component')\n\nexport const ConditionalGroupPropsSchema = z\n .object({\n component: z.literal('ConditionalGroup'),\n condition: z.string().describe('Condition expression to evaluate'),\n children: ExtensionComponentChildrenSchema.describe('Children to render when condition is true'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('ConditionalGroup component')\n\nexport const FrameVariantSchema = z\n .enum(['border', 'solid'])\n .describe('Frame visual variant')\n\nexport const FramePropsSchema = z\n .object({\n component: z.literal('Frame'),\n title: z.union([z.string(), ExtensionComponentChildrenSchema]).optional().describe('Optional title (string or components)'),\n icon: z.string().optional().describe('Icon name'),\n collapsible: z.boolean().optional().describe('Whether content can be toggled'),\n defaultExpanded: z.boolean().optional().describe('Whether expanded by default'),\n variant: FrameVariantSchema.optional().describe('Visual variant'),\n children: ExtensionComponentChildrenSchema.describe('Child components'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('Frame container component')\n\nexport const ListPropsSchema = z\n .object({\n component: z.literal('List'),\n children: ExtensionComponentChildrenSchema.describe('Child components rendered as list items'),\n style: ExtensionComponentStyleSchema.optional(),\n })\n .passthrough()\n .describe('List component')\n\n// =============================================================================\n// Type Exports\n// =============================================================================\n\nexport type AllowedCSSProperty = z.infer<typeof AllowedCSSPropertySchema>\nexport type ExtensionComponentStyle = z.infer<typeof ExtensionComponentStyleSchema>\nexport type ExtensionComponentData = z.infer<typeof ExtensionComponentDataSchema>\nexport type ExtensionActionCall = z.infer<typeof ExtensionActionCallSchema>\nexport type ExtensionActionRef = z.infer<typeof ExtensionActionRefSchema>\nexport type ExtensionComponentIterator = z.infer<typeof ExtensionComponentIteratorSchema>\nexport type ExtensionComponentChildren = z.infer<typeof ExtensionComponentChildrenSchema>\nexport type ExtensionDataSource = z.infer<typeof ExtensionDataSourceSchema>\nexport type IconButtonType = z.infer<typeof IconButtonTypeSchema>\nexport type PillVariant = z.infer<typeof PillVariantSchema>\nexport type PanelAction = z.infer<typeof PanelActionSchema>\nexport type HeaderProps = z.infer<typeof HeaderPropsSchema>\nexport type LabelProps = z.infer<typeof LabelPropsSchema>\nexport type ParagraphProps = z.infer<typeof ParagraphPropsSchema>\nexport type ButtonProps = z.infer<typeof ButtonPropsSchema>\nexport type TextInputProps = z.infer<typeof TextInputPropsSchema>\nexport type DateTimeInputProps = z.infer<typeof DateTimeInputPropsSchema>\nexport type SelectProps = z.infer<typeof SelectPropsSchema>\nexport type IconPickerProps = z.infer<typeof IconPickerPropsSchema>\nexport type VerticalStackProps = z.infer<typeof VerticalStackPropsSchema>\nexport type HorizontalStackProps = z.infer<typeof HorizontalStackPropsSchema>\nexport type GridProps = z.infer<typeof GridPropsSchema>\nexport type DividerProps = z.infer<typeof DividerPropsSchema>\nexport type IconProps = z.infer<typeof IconPropsSchema>\nexport type IconButtonProps = z.infer<typeof IconButtonPropsSchema>\nexport type PanelProps = z.infer<typeof PanelPropsSchema>\nexport type ToggleProps = z.infer<typeof TogglePropsSchema>\nexport type CollapsibleProps = z.infer<typeof CollapsiblePropsSchema>\nexport type PillProps = z.infer<typeof PillPropsSchema>\nexport type CheckboxProps = z.infer<typeof CheckboxPropsSchema>\nexport type MarkdownProps = z.infer<typeof MarkdownPropsSchema>\nexport type TextPreviewProps = z.infer<typeof TextPreviewPropsSchema>\nexport type ModalProps = z.infer<typeof ModalPropsSchema>\nexport type ConditionalGroupProps = z.infer<typeof ConditionalGroupPropsSchema>\nexport type FrameVariant = z.infer<typeof FrameVariantSchema>\nexport type FrameProps = z.infer<typeof FramePropsSchema>\nexport type ListProps = z.infer<typeof ListPropsSchema>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACOA,IAAAA,cAAkB;;;ACAlB,iBAAkB;AAKX,IAAM,oBAAoB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAKO,IAAM,sBAAsB;AAAA,EACjC;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF;AAKA,IAAM,0BAA0B,aAC7B,OAAO,EACP;AAAA,EACC,CAAC,QAAQ;AAEP,QAAI,QAAQ,eAAe,QAAQ,qBAAqB;AACtD,aAAO;AAAA,IACT;AAEA,WAAO,oBAAoB,KAAK,CAAC,Y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M,cAAc,EAAE,SAAS,EAAE,SAAS,qBAAqB;AAAA,EAC5E,MAAM,cAAE,OAAO,EAAE,SAAS,+CAA+C;AAAA,EACzE,aAAa,cAAE,MAAM,gBAAgB,EAAE,SAAS,sBAAsB;AAAA,EACtE,aAAa,6BAA6B,SAAS,EAAE,SAAS,gCAAgC;AAChG,CAAC,EACA,SAAS,2BAA2B;","names":["import_zod","import_zod","import_zod"]}
@@ -1233,16 +1233,22 @@ declare const ToolDefinitionSchema: z.ZodObject<{
1233
1233
  name: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1234
1234
  description: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1235
1235
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1236
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
1237
+ confirmationPrompt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1236
1238
  }, "strip", z.ZodTypeAny, {
1237
1239
  description: string | Record<string, string>;
1238
1240
  name: string | Record<string, string>;
1239
1241
  id: string;
1240
1242
  parameters?: Record<string, unknown> | undefined;
1243
+ requiresConfirmation?: boolean | undefined;
1244
+ confirmationPrompt?: string | Record<string, string> | undefined;
1241
1245
  }, {
1242
1246
  description: string | Record<string, string>;
1243
1247
  name: string | Record<string, string>;
1244
1248
  id: string;
1245
1249
  parameters?: Record<string, unknown> | undefined;
1250
+ requiresConfirmation?: boolean | undefined;
1251
+ confirmationPrompt?: string | Record<string, string> | undefined;
1246
1252
  }>;
1247
1253
  /**
1248
1254
  * Command definition
@@ -1773,16 +1779,22 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
1773
1779
  name: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1774
1780
  description: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1775
1781
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1782
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
1783
+ confirmationPrompt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1776
1784
  }, "strip", z.ZodTypeAny, {
1777
1785
  description: string | Record<string, string>;
1778
1786
  name: string | Record<string, string>;
1779
1787
  id: string;
1780
1788
  parameters?: Record<string, unknown> | undefined;
1789
+ requiresConfirmation?: boolean | undefined;
1790
+ confirmationPrompt?: string | Record<string, string> | undefined;
1781
1791
  }, {
1782
1792
  description: string | Record<string, string>;
1783
1793
  name: string | Record<string, string>;
1784
1794
  id: string;
1785
1795
  parameters?: Record<string, unknown> | undefined;
1796
+ requiresConfirmation?: boolean | undefined;
1797
+ confirmationPrompt?: string | Record<string, string> | undefined;
1786
1798
  }>, "many">>;
1787
1799
  commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
1788
1800
  id: z.ZodString;
@@ -1842,6 +1854,8 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
1842
1854
  name: string | Record<string, string>;
1843
1855
  id: string;
1844
1856
  parameters?: Record<string, unknown> | undefined;
1857
+ requiresConfirmation?: boolean | undefined;
1858
+ confirmationPrompt?: string | Record<string, string> | undefined;
1845
1859
  }[] | undefined;
1846
1860
  settings?: SettingDefinitionType[] | undefined;
1847
1861
  toolSettings?: {
@@ -1954,6 +1968,8 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
1954
1968
  name: string | Record<string, string>;
1955
1969
  id: string;
1956
1970
  parameters?: Record<string, unknown> | undefined;
1971
+ requiresConfirmation?: boolean | undefined;
1972
+ confirmationPrompt?: string | Record<string, string> | undefined;
1957
1973
  }[] | undefined;
1958
1974
  settings?: SettingDefinitionType[] | undefined;
1959
1975
  toolSettings?: {
@@ -2145,7 +2161,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
2145
2161
  }>>;
2146
2162
  platforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["web", "electron", "tui"]>, "many">>;
2147
2163
  main: z.ZodString;
2148
- permissions: z.ZodArray<z.ZodUnion<[z.ZodEnum<["network:*", "network:localhost", "storage.collections", "secrets.manage", "user.profile.read", "user.location.read", "chat.history.read", "chat.current.read", "chat.message.write", "provider.register", "tools.register", "tools.list", "tools.execute", "actions.register", "settings.register", "commands.register", "panels.register", "events.emit", "scheduler.register", "background.workers", "files.read", "files.write", "clipboard.read", "clipboard.write"]>, z.ZodString]>, "many">;
2164
+ permissions: z.ZodArray<z.ZodUnion<[z.ZodEnum<["network:*", "network:localhost", "storage.collections", "secrets.manage", "user.profile.read", "user.list", "user.location.read", "chat.history.read", "chat.current.read", "chat.message.write", "provider.register", "tools.register", "tools.list", "tools.execute", "actions.register", "settings.register", "commands.register", "panels.register", "events.emit", "scheduler.register", "background.workers", "files.read", "files.write", "clipboard.read", "clipboard.write"]>, z.ZodString]>, "many">;
2149
2165
  contributes: z.ZodOptional<z.ZodObject<{
2150
2166
  settings: z.ZodOptional<z.ZodArray<z.ZodType<SettingDefinitionType, z.ZodTypeDef, SettingDefinitionType>, "many">>;
2151
2167
  toolSettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2627,16 +2643,22 @@ declare const ExtensionManifestSchema: z.ZodObject<{
2627
2643
  name: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
2628
2644
  description: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
2629
2645
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2646
+ requiresConfirmation: z.ZodOptional<z.ZodBoolean>;
2647
+ confirmationPrompt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2630
2648
  }, "strip", z.ZodTypeAny, {
2631
2649
  description: string | Record<string, string>;
2632
2650
  name: string | Record<string, string>;
2633
2651
  id: string;
2634
2652
  parameters?: Record<string, unknown> | undefined;
2653
+ requiresConfirmation?: boolean | undefined;
2654
+ confirmationPrompt?: string | Record<string, string> | undefined;
2635
2655
  }, {
2636
2656
  description: string | Record<string, string>;
2637
2657
  name: string | Record<string, string>;
2638
2658
  id: string;
2639
2659
  parameters?: Record<string, unknown> | undefined;
2660
+ requiresConfirmation?: boolean | undefined;
2661
+ confirmationPrompt?: string | Record<string, string> | undefined;
2640
2662
  }>, "many">>;
2641
2663
  commands: z.ZodOptional<z.ZodArray<z.ZodObject<{
2642
2664
  id: z.ZodString;
@@ -2696,6 +2718,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
2696
2718
  name: string | Record<string, string>;
2697
2719
  id: string;
2698
2720
  parameters?: Record<string, unknown> | undefined;
2721
+ requiresConfirmation?: boolean | undefined;
2722
+ confirmationPrompt?: string | Record<string, string> | undefined;
2699
2723
  }[] | undefined;
2700
2724
  settings?: SettingDefinitionType[] | undefined;
2701
2725
  toolSettings?: {
@@ -2808,6 +2832,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
2808
2832
  name: string | Record<string, string>;
2809
2833
  id: string;
2810
2834
  parameters?: Record<string, unknown> | undefined;
2835
+ requiresConfirmation?: boolean | undefined;
2836
+ confirmationPrompt?: string | Record<string, string> | undefined;
2811
2837
  }[] | undefined;
2812
2838
  settings?: SettingDefinitionType[] | undefined;
2813
2839
  toolSettings?: {
@@ -2938,6 +2964,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
2938
2964
  name: string | Record<string, string>;
2939
2965
  id: string;
2940
2966
  parameters?: Record<string, unknown> | undefined;
2967
+ requiresConfirmation?: boolean | undefined;
2968
+ confirmationPrompt?: string | Record<string, string> | undefined;
2941
2969
  }[] | undefined;
2942
2970
  settings?: SettingDefinitionType[] | undefined;
2943
2971
  toolSettings?: {
@@ -3068,6 +3096,8 @@ declare const ExtensionManifestSchema: z.ZodObject<{
3068
3096
  name: string | Record<string, string>;
3069
3097
  id: string;
3070
3098
  parameters?: Record<string, unknown> | undefined;
3099
+ requiresConfirmation?: boolean | undefined;
3100
+ confirmationPrompt?: string | Record<string, string> | undefined;
3071
3101
  }[] | undefined;
3072
3102
  settings?: SettingDefinitionType[] | undefined;
3073
3103
  toolSettings?: {
@@ -3191,7 +3221,7 @@ type ExtensionManifest = z.infer<typeof ExtensionManifestSchema>;
3191
3221
  /**
3192
3222
  * Valid exact permission values
3193
3223
  */
3194
- declare const VALID_PERMISSIONS: readonly ["network:*", "network:localhost", "storage.collections", "secrets.manage", "user.profile.read", "user.location.read", "chat.history.read", "chat.current.read", "chat.message.write", "provider.register", "tools.register", "tools.list", "tools.execute", "actions.register", "settings.register", "commands.register", "panels.register", "events.emit", "scheduler.register", "background.workers", "files.read", "files.write", "clipboard.read", "clipboard.write"];
3224
+ declare const VALID_PERMISSIONS: readonly ["network:*", "network:localhost", "storage.collections", "secrets.manage", "user.profile.read", "user.list", "user.location.read", "chat.history.read", "chat.current.read", "chat.message.write", "provider.register", "tools.register", "tools.list", "tools.execute", "actions.register", "settings.register", "commands.register", "panels.register", "events.emit", "scheduler.register", "background.workers", "files.read", "files.write", "clipboard.read", "clipboard.write"];
3195
3225
  /**
3196
3226
  * Permission patterns for dynamic permissions (network with host/port)
3197
3227
  */
@@ -3207,7 +3237,7 @@ declare const StoragePermissionSchema: z.ZodEnum<["storage.collections", "secret
3207
3237
  /**
3208
3238
  * User data permission schema
3209
3239
  */
3210
- declare const UserDataPermissionSchema: z.ZodEnum<["user.profile.read", "user.location.read", "chat.history.read", "chat.current.read"]>;
3240
+ declare const UserDataPermissionSchema: z.ZodEnum<["user.profile.read", "user.list", "user.location.read", "chat.history.read", "chat.current.read"]>;
3211
3241
  /**
3212
3242
  * Capability permission schema
3213
3243
  */
@@ -3220,7 +3250,7 @@ declare const SystemPermissionSchema: z.ZodEnum<["files.read", "files.write", "c
3220
3250
  * Combined permission schema - validates against all permission types
3221
3251
  * Uses z.union with z.enum and z.string().regex() for better JSON Schema generation
3222
3252
  */
3223
- declare const PermissionSchema: z.ZodUnion<[z.ZodEnum<["network:*", "network:localhost", "storage.collections", "secrets.manage", "user.profile.read", "user.location.read", "chat.history.read", "chat.current.read", "chat.message.write", "provider.register", "tools.register", "tools.list", "tools.execute", "actions.register", "settings.register", "commands.register", "panels.register", "events.emit", "scheduler.register", "background.workers", "files.read", "files.write", "clipboard.read", "clipboard.write"]>, z.ZodString]>;
3253
+ declare const PermissionSchema: z.ZodUnion<[z.ZodEnum<["network:*", "network:localhost", "storage.collections", "secrets.manage", "user.profile.read", "user.list", "user.location.read", "chat.history.read", "chat.current.read", "chat.message.write", "provider.register", "tools.register", "tools.list", "tools.execute", "actions.register", "settings.register", "commands.register", "panels.register", "events.emit", "scheduler.register", "background.workers", "files.read", "files.write", "clipboard.read", "clipboard.write"]>, z.ZodString]>;
3224
3254
  /**
3225
3255
  * Check if a permission string is valid
3226
3256
  */