diff --git a/packages/admin_dialog/scripts/functions.json b/packages/admin_dialog/scripts/functions.json deleted file mode 100644 index 252b72b72..000000000 --- a/packages/admin_dialog/scripts/functions.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.0.0", - "package": "admin_dialog", - "functions": [ - { - "id": "handleConfirm", - "namespace": "dialog", - "name": "handleConfirm", - "description": "Handle confirm button click in admin dialog", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Click event object" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event) { this.setState({ open: false }); if (this.props.onConfirm) { this.props.onConfirm(event); } }" - }, - { - "id": "handleCancel", - "namespace": "dialog", - "name": "handleCancel", - "description": "Handle cancel button click in admin dialog", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Click event object" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event) { this.setState({ open: false }); if (this.props.onCancel) { this.props.onCancel(event); } }" - }, - { - "id": "handleClose", - "namespace": "dialog", - "name": "handleClose", - "description": "Handle dialog close event", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Close event object" - }, - { - "name": "reason", - "type": "string", - "required": false, - "description": "Close reason" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event, reason) { if (reason !== 'backdropClick') { this.setState({ open: false }); if (this.props.onClose) { this.props.onClose(event, reason); } } }" - }, - { - "id": "handleDelete", - "namespace": "dialog", - "name": "handleDelete", - "description": "Handle delete button click after confirmation", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Click event object" - } - ], - "returns": { - "type": "Promise" - }, - "implementation": "async function(event) { if (this.state.confirmInput !== this.props.confirmationText) { return; } this.setState({ open: false, confirmInput: '' }); if (this.props.onDelete) { await this.props.onDelete({ itemId: this.props.itemId, itemType: this.props.itemType, itemName: this.props.itemName }); } }" - }, - { - "id": "handleConfirmInputChange", - "namespace": "dialog", - "name": "handleConfirmInputChange", - "description": "Handle confirmation text input change", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Input change event" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event) { this.setState({ confirmInput: event.target.value }); }" - }, - { - "id": "handleAction", - "namespace": "dialog", - "name": "handleAction", - "description": "Handle custom action button click", - "parameters": [ - { - "name": "actionDef", - "type": "object", - "required": true, - "description": "Action definition object" - } - ], - "returns": { - "type": "Promise" - }, - "implementation": "async function(actionDef) { this.setState({ open: false }); if (this.props.onAction) { await this.props.onAction(actionDef); } }" - } - ] -} diff --git a/packages/arcade_lobby/scripts/functions.json b/packages/arcade_lobby/scripts/functions.json deleted file mode 100644 index 0b04a0257..000000000 --- a/packages/arcade_lobby/scripts/functions.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "arcade_lobby", - "description": "Arcade lobby matchmaking, queue metrics, and permission functions", - "functions": [ - { - "id": "matchmaking_assign_bucket", - "name": "assignBucket", - "exported": true, - "description": "Assign party to matchmaking bucket based on size", - "category": "matching" - }, - { - "id": "queue_metrics_summarize", - "name": "summarizeQueues", - "exported": true, - "description": "Summarize queue health and wait times", - "category": "analytics" - }, - { - "id": "permissions_can_create_tournament", - "name": "canCreateTournament", - "exported": true, - "description": "Check if user can create tournaments", - "category": "security" - }, - { - "id": "init_on_install", - "name": "onInstall", - "exported": true, - "description": "Lifecycle hook for package installation", - "category": "lifecycle" - }, - { - "id": "init_on_remove", - "name": "onRemove", - "exported": true, - "description": "Lifecycle hook for package removal", - "category": "lifecycle" - } - ], - "exports": { - "functions": [ - "assignBucket", - "summarizeQueues", - "canCreateTournament", - "onInstall", - "onRemove" - ] - } -} diff --git a/packages/audit_log/scripts/functions.json b/packages/audit_log/scripts/functions.json deleted file mode 100644 index f0621babb..000000000 --- a/packages/audit_log/scripts/functions.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "audit_log", - "description": "Business logic functions for audit log package", - "functions": [ - { - "id": "init", - "name": "init", - "exported": true, - "description": "Package initialization and main entry point", - "category": "lifecycle" - }, - { - "id": "stats_calculate", - "name": "calculateStats", - "exported": true, - "description": "Calculate audit log statistics", - "category": "analytics" - }, - { - "id": "stats_prepare_display", - "name": "prepareStatsDisplay", - "exported": true, - "description": "Prepare statistics for display", - "category": "analytics" - }, - { - "id": "filters_apply", - "name": "applyFilters", - "exported": true, - "description": "Apply filters to audit log entries", - "category": "data" - }, - { - "id": "filters_by_username", - "name": "filterByUsername", - "exported": true, - "description": "Filter logs by username", - "category": "data" - }, - { - "id": "filters_by_operation", - "name": "filterByOperation", - "exported": true, - "description": "Filter logs by operation type", - "category": "data" - }, - { - "id": "filters_by_resource", - "name": "filterByResource", - "exported": true, - "description": "Filter logs by resource", - "category": "data" - }, - { - "id": "filters_by_date_range", - "name": "filterByDateRange", - "exported": true, - "description": "Filter logs by date range", - "category": "data" - }, - { - "id": "formatting_format_all", - "name": "formatAllLogs", - "exported": true, - "description": "Format all log entries for display", - "category": "ui" - }, - { - "id": "formatting_format_entry", - "name": "formatLogEntry", - "exported": true, - "description": "Format a single log entry", - "category": "ui" - }, - { - "id": "formatting_format_timestamp", - "name": "formatTimestamp", - "exported": true, - "description": "Format timestamp for display", - "category": "ui" - }, - { - "id": "formatting_get_operation_color", - "name": "getOperationColor", - "exported": true, - "description": "Get color for operation type", - "category": "ui" - }, - { - "id": "formatting_get_resource_icon", - "name": "getResourceIcon", - "exported": true, - "description": "Get icon for resource type", - "category": "ui" - }, - { - "id": "formatting_get_status_badge", - "name": "getStatusBadge", - "exported": true, - "description": "Get status badge styling", - "category": "ui" - } - ], - "exports": { - "functions": [ - "init", - "calculateStats", - "prepareStatsDisplay", - "applyFilters", - "filterByUsername", - "filterByOperation", - "filterByResource", - "filterByDateRange", - "formatAllLogs", - "formatLogEntry", - "formatTimestamp", - "getOperationColor", - "getResourceIcon", - "getStatusBadge" - ] - } -} diff --git a/packages/code_editor/scripts/functions.json b/packages/code_editor/scripts/functions.json deleted file mode 100644 index ca3b41ee6..000000000 --- a/packages/code_editor/scripts/functions.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "code_editor", - "description": "Code editor functions for JSON, scripting, and theme editing", - "functions": [ - { - "id": "json_render", - "name": "renderJsonEditor", - "exported": true, - "description": "Render JSON editor component with options", - "category": "json" - }, - { - "id": "json_validate", - "name": "validateJson", - "exported": true, - "description": "Validate JSON string syntax", - "category": "json" - }, - { - "id": "json_format", - "name": "formatJson", - "exported": true, - "description": "Format JSON string with indentation", - "category": "json" - }, - { - "id": "script_render", - "name": "renderScriptEditor", - "exported": true, - "description": "Render script editor component", - "category": "script" - }, - { - "id": "script_validate", - "name": "validateScript", - "exported": true, - "description": "Validate script syntax", - "category": "script" - }, - { - "id": "script_run_sandbox", - "name": "runScriptSandbox", - "exported": true, - "description": "Execute scripts in sandbox environment", - "category": "script" - }, - { - "id": "theme_render", - "name": "renderThemeEditor", - "exported": true, - "description": "Render theme customization editor", - "category": "theme" - }, - { - "id": "theme_color_picker", - "name": "renderColorPicker", - "exported": true, - "description": "Render color picker component", - "category": "theme" - }, - { - "id": "theme_mode_toggle", - "name": "renderModeToggle", - "exported": true, - "description": "Render light/dark mode toggle", - "category": "theme" - } - ], - "exports": { - "functions": [ - "renderJsonEditor", - "validateJson", - "formatJson", - "renderScriptEditor", - "validateScript", - "runScriptSandbox", - "renderThemeEditor", - "renderColorPicker", - "renderModeToggle" - ] - } -} diff --git a/packages/codegen_studio/scripts/functions.json b/packages/codegen_studio/scripts/functions.json deleted file mode 100644 index b21479e07..000000000 --- a/packages/codegen_studio/scripts/functions.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "codegen_studio", - "description": "Codegen Studio functions for template generation, blueprint creation, and package scaffolding", - "functions": [ - { - "id": "init_on_install", - "name": "onInstall", - "exported": true, - "description": "Initialize Codegen Studio on package install", - "category": "lifecycle" - }, - { - "id": "init_on_uninstall", - "name": "onUninstall", - "exported": true, - "description": "Clean up Codegen Studio on package uninstall", - "category": "lifecycle" - }, - { - "id": "blueprint_build", - "name": "buildBlueprint", - "exported": true, - "description": "Build project blueprint from input configuration", - "category": "generation" - }, - { - "id": "generator_get_default_config", - "name": "getDefaultConfig", - "exported": true, - "description": "Get default package configuration for a given package ID", - "category": "generation" - }, - { - "id": "generator_validate_config", - "name": "validateConfig", - "exported": true, - "description": "Validate package configuration before generation", - "category": "validation" - }, - { - "id": "generator_generate_package", - "name": "generatePackage", - "exported": true, - "description": "Generate complete package from configuration", - "category": "generation" - }, - { - "id": "templates_get_categories", - "name": "getCategories", - "exported": true, - "description": "Get list of available package categories", - "category": "templates" - }, - { - "id": "templates_generate_metadata", - "name": "generateMetadata", - "exported": true, - "description": "Generate metadata.json content from config", - "category": "templates" - }, - { - "id": "templates_generate_permissions", - "name": "generateDefaultPermissions", - "exported": true, - "description": "Generate default permissions based on package config", - "category": "templates" - }, - { - "id": "cli_print_help", - "name": "printHelp", - "exported": true, - "description": "Print CLI usage help", - "category": "cli" - }, - { - "id": "cli_parse_args", - "name": "parseArgs", - "exported": true, - "description": "Parse command line arguments", - "category": "cli" - }, - { - "id": "cli_run", - "name": "runCli", - "exported": true, - "description": "Run CLI command with parsed arguments", - "category": "cli" - } - ], - "exports": { - "functions": [ - "onInstall", - "onUninstall", - "buildBlueprint", - "getDefaultConfig", - "validateConfig", - "generatePackage", - "getCategories", - "generateMetadata", - "generateDefaultPermissions", - "printHelp", - "parseArgs", - "runCli" - ] - } -} diff --git a/packages/component_editor/scripts/functions.json b/packages/component_editor/scripts/functions.json deleted file mode 100644 index ac1bdc457..000000000 --- a/packages/component_editor/scripts/functions.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "component_editor", - "description": "Component hierarchy management functions", - "functions": [ - { - "id": "component_tree_build", - "name": "buildComponentTree", - "exported": true, - "description": "Build a component tree from stored configuration", - "category": "components" - }, - { - "id": "component_tree_save", - "name": "saveComponentTree", - "exported": true, - "description": "Save a component tree configuration", - "category": "components" - }, - { - "id": "component_add", - "name": "addComponent", - "exported": true, - "description": "Add a component to the tree at specified position", - "category": "components" - }, - { - "id": "component_remove", - "name": "removeComponent", - "exported": true, - "description": "Remove a component from the tree", - "category": "components" - }, - { - "id": "component_move", - "name": "moveComponent", - "exported": true, - "description": "Move a component to a new position in the tree", - "category": "components" - }, - { - "id": "component_reorder", - "name": "reorderComponents", - "exported": true, - "description": "Reorder children of a parent component", - "category": "components" - }, - { - "id": "component_update_props", - "name": "updateComponentProps", - "exported": true, - "description": "Update props for a specific component", - "category": "components" - }, - { - "id": "component_validate_tree", - "name": "validateTree", - "exported": true, - "description": "Validate a component tree structure", - "category": "components" - }, - { - "id": "component_get_catalog", - "name": "getComponentCatalog", - "exported": true, - "description": "Get the catalog of available components", - "category": "components" - }, - { - "id": "component_find_by_id", - "name": "findComponentById", - "exported": true, - "description": "Find a component in the tree by ID", - "category": "components" - }, - { - "id": "component_clone", - "name": "cloneComponent", - "exported": true, - "description": "Clone a component with its children", - "category": "components" - }, - { - "id": "component_export", - "name": "exportComponentTree", - "exported": true, - "description": "Export component tree as JSON", - "category": "components" - }, - { - "id": "component_import", - "name": "importComponentTree", - "exported": true, - "description": "Import component tree from JSON", - "category": "components" - } - ], - "exports": { - "functions": [ - "buildComponentTree", - "saveComponentTree", - "addComponent", - "removeComponent", - "moveComponent", - "reorderComponents", - "updateComponentProps", - "validateTree", - "getComponentCatalog", - "findComponentById", - "cloneComponent", - "exportComponentTree", - "importComponentTree" - ] - } -} diff --git a/packages/config_summary/scripts/functions.json b/packages/config_summary/scripts/functions.json deleted file mode 100644 index da47c9ac2..000000000 --- a/packages/config_summary/scripts/functions.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "config_summary", - "description": "Configuration summary generation and aggregation functions", - "functions": [ - { - "id": "summary_get_wrapper_class", - "name": "getWrapperClass", - "exported": true, - "description": "Get the default wrapper CSS class for summaries", - "category": "styling" - }, - { - "id": "summary_get_title_class", - "name": "getTitleClass", - "exported": true, - "description": "Get the default title CSS class for summaries", - "category": "styling" - }, - { - "id": "summary_get_grid_class", - "name": "getGridClass", - "exported": true, - "description": "Get the default grid CSS class for summaries", - "category": "styling" - }, - { - "id": "summary_get_row_class", - "name": "getRowClass", - "exported": true, - "description": "Get the default row CSS class for summaries", - "category": "styling" - }, - { - "id": "summary_get_label_class", - "name": "getLabelClass", - "exported": true, - "description": "Get the default label CSS class for summaries", - "category": "styling" - }, - { - "id": "summary_get_value_class", - "name": "getValueClass", - "exported": true, - "description": "Get the default value CSS class for summaries", - "category": "styling" - }, - { - "id": "summary_filter_visible_rows", - "name": "filterVisibleRows", - "exported": true, - "description": "Filter summary rows to only return visible ones", - "category": "data" - }, - { - "id": "summary_format_value", - "name": "formatValue", - "exported": true, - "description": "Format a value for display in the summary", - "category": "formatting" - }, - { - "id": "aggregator_render", - "name": "render", - "exported": true, - "description": "Render a summary configuration into a UI component", - "category": "rendering" - }, - { - "id": "aggregator_aggregate", - "name": "aggregate", - "exported": true, - "description": "Generate summary configurations from aggregate config data", - "category": "aggregation" - }, - { - "id": "aggregator_render_all", - "name": "renderAll", - "exported": true, - "description": "Render all summary configurations into UI components", - "category": "rendering" - } - ], - "exports": { - "functions": [ - "getWrapperClass", - "getTitleClass", - "getGridClass", - "getRowClass", - "getLabelClass", - "getValueClass", - "filterVisibleRows", - "formatValue", - "render", - "aggregate", - "renderAll" - ] - } -} diff --git a/packages/css_designer/scripts/functions.json b/packages/css_designer/scripts/functions.json deleted file mode 100644 index 891ac7ca3..000000000 --- a/packages/css_designer/scripts/functions.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "css_designer", - "description": "CSS Designer script functions for color manipulation, styling, and export", - "functions": [ - { - "id": "init", - "name": "init", - "exported": true, - "description": "Initialize the CSS designer module", - "category": "core" - }, - { - "id": "get_default_theme", - "name": "getDefaultTheme", - "exported": true, - "description": "Get default theme configuration with all color, typography, and spacing values", - "category": "core" - }, - { - "id": "hex_to_rgb", - "name": "hexToRgb", - "exported": true, - "description": "Convert hex color to RGB object", - "category": "colors" - }, - { - "id": "rgb_to_hex", - "name": "rgbToHex", - "exported": true, - "description": "Convert RGB object to hex color string", - "category": "colors" - }, - { - "id": "hex_to_hsl", - "name": "hexToHsl", - "exported": true, - "description": "Convert hex color to HSL object", - "category": "colors" - }, - { - "id": "hsl_to_hex", - "name": "hslToHex", - "exported": true, - "description": "Convert HSL object to hex color string", - "category": "colors" - }, - { - "id": "generate_palette", - "name": "generatePalette", - "exported": true, - "description": "Generate color palette from base colors", - "category": "colors" - }, - { - "id": "update_font_settings", - "name": "updateFontSettings", - "exported": true, - "description": "Update typography settings", - "category": "fonts" - }, - { - "id": "update_spacing", - "name": "updateSpacing", - "exported": true, - "description": "Update spacing configuration", - "category": "spacing" - }, - { - "id": "update_borders", - "name": "updateBorders", - "exported": true, - "description": "Update border styling configuration", - "category": "borders" - }, - { - "id": "update_shadows", - "name": "updateShadows", - "exported": true, - "description": "Update shadow styling configuration", - "category": "shadows" - }, - { - "id": "export_to_scss", - "name": "exportToScss", - "exported": true, - "description": "Export theme configuration to SCSS variables", - "category": "export" - }, - { - "id": "export_to_css", - "name": "exportToCss", - "exported": true, - "description": "Export theme configuration to CSS custom properties", - "category": "export" - } - ], - "exports": { - "functions": [ - "init", - "getDefaultTheme", - "hexToRgb", - "rgbToHex", - "hexToHsl", - "hslToHex", - "generatePalette", - "updateFontSettings", - "updateSpacing", - "updateBorders", - "updateShadows", - "exportToScss", - "exportToCss" - ] - } -} diff --git a/packages/dashboard/scripts/functions.json b/packages/dashboard/scripts/functions.json deleted file mode 100644 index 5701789cc..000000000 --- a/packages/dashboard/scripts/functions.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "dashboard", - "description": "Dashboard statistics and layout management functions", - "functions": [ - { - "id": "stats_calculate", - "name": "calculateStats", - "exported": true, - "description": "Calculate dashboard statistics", - "category": "analytics" - }, - { - "id": "stats_format", - "name": "formatStats", - "exported": true, - "description": "Format statistics for display", - "category": "analytics" - }, - { - "id": "stats_get_trend", - "name": "getTrend", - "exported": true, - "description": "Calculate trend direction and percentage", - "category": "analytics" - }, - { - "id": "layout_init", - "name": "initLayout", - "exported": true, - "description": "Initialize dashboard layout", - "category": "layout" - }, - { - "id": "layout_add_widget", - "name": "addWidget", - "exported": true, - "description": "Add widget to dashboard", - "category": "layout" - }, - { - "id": "layout_remove_widget", - "name": "removeWidget", - "exported": true, - "description": "Remove widget from dashboard", - "category": "layout" - }, - { - "id": "layout_save", - "name": "saveLayout", - "exported": true, - "description": "Save dashboard layout configuration", - "category": "layout" - } - ], - "exports": { - "functions": [ - "calculateStats", - "formatStats", - "getTrend", - "initLayout", - "addWidget", - "removeWidget", - "saveLayout" - ] - } -} diff --git a/packages/data_table/scripts/functions.json b/packages/data_table/scripts/functions.json deleted file mode 100644 index 9e9784adc..000000000 --- a/packages/data_table/scripts/functions.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "data_table", - "description": "Data table operations for sorting, filtering, pagination, and export", - "functions": [ - { - "id": "init_initialize", - "name": "initialize", - "exported": true, - "description": "Initialize data table", - "category": "lifecycle" - }, - { - "id": "sorting_sort_column", - "name": "sortByColumn", - "exported": true, - "description": "Sort table by column", - "category": "sorting" - }, - { - "id": "sorting_toggle_direction", - "name": "toggleSortDirection", - "exported": true, - "description": "Toggle sort direction", - "category": "sorting" - }, - { - "id": "filtering_apply", - "name": "applyFilters", - "exported": true, - "description": "Apply filters to data", - "category": "filtering" - }, - { - "id": "filtering_search", - "name": "searchData", - "exported": true, - "description": "Search across all columns", - "category": "filtering" - }, - { - "id": "filtering_filter_column", - "name": "filterByColumn", - "exported": true, - "description": "Filter by specific column", - "category": "filtering" - }, - { - "id": "pagination_change_page", - "name": "changePage", - "exported": true, - "description": "Navigate to page", - "category": "pagination" - }, - { - "id": "pagination_next", - "name": "nextPage", - "exported": true, - "description": "Go to next page", - "category": "pagination" - }, - { - "id": "pagination_previous", - "name": "previousPage", - "exported": true, - "description": "Go to previous page", - "category": "pagination" - }, - { - "id": "selection_toggle_row", - "name": "toggleRow", - "exported": true, - "description": "Toggle row selection", - "category": "selection" - }, - { - "id": "selection_select_all", - "name": "selectAll", - "exported": true, - "description": "Select all rows", - "category": "selection" - }, - { - "id": "selection_clear", - "name": "clearSelection", - "exported": true, - "description": "Clear all selections", - "category": "selection" - }, - { - "id": "export_csv", - "name": "exportToCSV", - "exported": true, - "description": "Export data to CSV", - "category": "export" - }, - { - "id": "export_json", - "name": "exportToJSON", - "exported": true, - "description": "Export data to JSON", - "category": "export" - }, - { - "id": "export_data", - "name": "exportData", - "exported": true, - "description": "Export data in specified format", - "category": "export" - } - ], - "exports": { - "functions": [ - "initialize", - "sortByColumn", - "toggleSortDirection", - "applyFilters", - "searchData", - "filterByColumn", - "changePage", - "nextPage", - "previousPage", - "toggleRow", - "selectAll", - "clearSelection", - "exportToCSV", - "exportToJSON", - "exportData" - ] - } -} diff --git a/packages/database_manager/scripts/functions.json b/packages/database_manager/scripts/functions.json deleted file mode 100644 index 066507ca8..000000000 --- a/packages/database_manager/scripts/functions.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "database_manager", - "description": "Database management functions for export, import, statistics, and operations", - "functions": [ - { - "id": "db_get_statistics", - "name": "getStatistics", - "exported": true, - "description": "Retrieve database statistics including record counts for all entities", - "category": "statistics" - }, - { - "id": "db_get_entity_count", - "name": "getEntityCount", - "exported": true, - "description": "Get record count for a specific entity", - "category": "statistics" - }, - { - "id": "db_export_all", - "name": "exportDatabase", - "exported": true, - "description": "Export all database data to JSON format", - "category": "export" - }, - { - "id": "db_export_entity", - "name": "exportEntity", - "exported": true, - "description": "Export a specific entity's data to JSON", - "category": "export" - }, - { - "id": "db_import_all", - "name": "importDatabase", - "exported": true, - "description": "Import database data from JSON format", - "category": "import" - }, - { - "id": "db_validate_import", - "name": "validateImportData", - "exported": true, - "description": "Validate import data before applying", - "category": "import" - }, - { - "id": "db_initialize", - "name": "initializeDatabase", - "exported": true, - "description": "Initialize database with default schema and seed data", - "category": "operations" - }, - { - "id": "db_clear", - "name": "clearDatabase", - "exported": true, - "description": "Clear all data from the database", - "category": "operations" - }, - { - "id": "db_vacuum", - "name": "vacuumDatabase", - "exported": true, - "description": "Optimize database by reclaiming unused space", - "category": "operations" - }, - { - "id": "db_get_entities", - "name": "getEntities", - "exported": true, - "description": "Get list of all database entities with metadata", - "category": "schema" - }, - { - "id": "db_get_entity_schema", - "name": "getEntitySchema", - "exported": true, - "description": "Get schema definition for a specific entity", - "category": "schema" - } - ], - "exports": { - "functions": [ - "getStatistics", - "getEntityCount", - "exportDatabase", - "exportEntity", - "importDatabase", - "validateImportData", - "initializeDatabase", - "clearDatabase", - "vacuumDatabase", - "getEntities", - "getEntitySchema" - ] - } -} diff --git a/packages/dbal_demo/scripts/functions.json b/packages/dbal_demo/scripts/functions.json deleted file mode 100644 index 90e431943..000000000 --- a/packages/dbal_demo/scripts/functions.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "dbal_demo", - "description": "DBAL Demo script functions for key-value store, blob storage, and cache operations", - "functions": [ - { - "id": "init", - "name": "init", - "exported": true, - "description": "Package initialization", - "category": "lifecycle" - }, - { - "id": "get_config", - "name": "getConfig", - "exported": true, - "description": "Get demo configuration", - "category": "lifecycle" - }, - { - "id": "kv_set", - "name": "kvSet", - "exported": true, - "description": "Set a key-value pair", - "category": "kv_operations" - }, - { - "id": "kv_get", - "name": "kvGet", - "exported": true, - "description": "Get a value by key", - "category": "kv_operations" - }, - { - "id": "kv_delete", - "name": "kvDelete", - "exported": true, - "description": "Delete a key", - "category": "kv_operations" - }, - { - "id": "kv_list_add", - "name": "kvListAdd", - "exported": true, - "description": "Add items to a list", - "category": "kv_operations" - }, - { - "id": "kv_list_get", - "name": "kvListGet", - "exported": true, - "description": "Get list items", - "category": "kv_operations" - }, - { - "id": "blob_upload", - "name": "blobUpload", - "exported": true, - "description": "Upload a file/blob", - "category": "blob_operations" - }, - { - "id": "blob_download", - "name": "blobDownload", - "exported": true, - "description": "Download a file/blob", - "category": "blob_operations" - }, - { - "id": "blob_delete", - "name": "blobDelete", - "exported": true, - "description": "Delete a file/blob", - "category": "blob_operations" - }, - { - "id": "blob_list", - "name": "blobList", - "exported": true, - "description": "List all files", - "category": "blob_operations" - }, - { - "id": "blob_info", - "name": "blobInfo", - "exported": true, - "description": "Get file info", - "category": "blob_operations" - }, - { - "id": "cache_save", - "name": "cacheSave", - "exported": true, - "description": "Save data to cache", - "category": "cache_operations" - }, - { - "id": "cache_get", - "name": "cacheGet", - "exported": true, - "description": "Get cached data", - "category": "cache_operations" - }, - { - "id": "cache_clear", - "name": "cacheClear", - "exported": true, - "description": "Clear cached data", - "category": "cache_operations" - }, - { - "id": "cache_save_preferences", - "name": "cacheSavePreferences", - "exported": true, - "description": "Save user preferences to cache", - "category": "cache_operations" - }, - { - "id": "cache_get_preferences", - "name": "cacheGetPreferences", - "exported": true, - "description": "Get user preferences from cache", - "category": "cache_operations" - }, - { - "id": "connection_connect", - "name": "connect", - "exported": true, - "description": "Connect to DBAL endpoint", - "category": "connection" - }, - { - "id": "connection_disconnect", - "name": "disconnect", - "exported": true, - "description": "Disconnect from DBAL endpoint", - "category": "connection" - }, - { - "id": "connection_status", - "name": "connectionStatus", - "exported": true, - "description": "Get connection status", - "category": "connection" - } - ], - "exports": { - "functions": [ - "init", - "getConfig", - "kvSet", - "kvGet", - "kvDelete", - "kvListAdd", - "kvListGet", - "blobUpload", - "blobDownload", - "blobDelete", - "blobList", - "blobInfo", - "cacheSave", - "cacheGet", - "cacheClear", - "cacheSavePreferences", - "cacheGetPreferences", - "connect", - "disconnect", - "connectionStatus" - ] - } -} diff --git a/packages/dropdown_manager/scripts/functions.json b/packages/dropdown_manager/scripts/functions.json deleted file mode 100644 index bd2d0aba7..000000000 --- a/packages/dropdown_manager/scripts/functions.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "dropdown_manager", - "description": "Dropdown configuration management functions", - "functions": [ - { - "id": "dropdown_list", - "name": "listDropdowns", - "exported": true, - "description": "List all dropdown configurations", - "category": "dropdowns" - }, - { - "id": "dropdown_get", - "name": "getDropdown", - "exported": true, - "description": "Get a specific dropdown by ID or name", - "category": "dropdowns" - }, - { - "id": "dropdown_create", - "name": "createDropdown", - "exported": true, - "description": "Create a new dropdown configuration", - "category": "dropdowns" - }, - { - "id": "dropdown_update", - "name": "updateDropdown", - "exported": true, - "description": "Update an existing dropdown", - "category": "dropdowns" - }, - { - "id": "dropdown_delete", - "name": "deleteDropdown", - "exported": true, - "description": "Delete a dropdown configuration", - "category": "dropdowns" - }, - { - "id": "dropdown_get_options", - "name": "getDropdownOptions", - "exported": true, - "description": "Get options for a specific dropdown", - "category": "dropdowns" - }, - { - "id": "dropdown_add_option", - "name": "addOption", - "exported": true, - "description": "Add an option to a dropdown", - "category": "dropdowns" - }, - { - "id": "dropdown_remove_option", - "name": "removeOption", - "exported": true, - "description": "Remove an option from a dropdown", - "category": "dropdowns" - }, - { - "id": "dropdown_reorder_options", - "name": "reorderOptions", - "exported": true, - "description": "Reorder options in a dropdown", - "category": "dropdowns" - }, - { - "id": "dropdown_search", - "name": "searchDropdowns", - "exported": true, - "description": "Search dropdowns by name or description", - "category": "dropdowns" - }, - { - "id": "dropdown_validate", - "name": "validateDropdown", - "exported": true, - "description": "Validate dropdown configuration", - "category": "dropdowns" - } - ], - "exports": { - "functions": [ - "listDropdowns", - "getDropdown", - "createDropdown", - "updateDropdown", - "deleteDropdown", - "getDropdownOptions", - "addOption", - "removeOption", - "reorderOptions", - "searchDropdowns", - "validateDropdown" - ] - } -} diff --git a/packages/form_builder/scripts/functions.json b/packages/form_builder/scripts/functions.json deleted file mode 100644 index 8bc38595a..000000000 --- a/packages/form_builder/scripts/functions.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "form_builder", - "description": "Form field handlers and validation functions", - "functions": [ - { - "id": "fields_handle_change", - "name": "handleChange", - "exported": true, - "description": "Handle field value change", - "category": "handlers" - }, - { - "id": "fields_handle_blur", - "name": "handleBlur", - "exported": true, - "description": "Handle field blur event", - "category": "handlers" - }, - { - "id": "fields_handle_search", - "name": "handleSearch", - "exported": true, - "description": "Handle search input change", - "category": "handlers" - }, - { - "id": "fields_clear_search", - "name": "clearSearch", - "exported": true, - "description": "Clear search input", - "category": "handlers" - }, - { - "id": "fields_toggle_password", - "name": "togglePasswordVisibility", - "exported": true, - "description": "Toggle password visibility", - "category": "handlers" - }, - { - "id": "validate_field", - "name": "validateField", - "exported": true, - "description": "Validate a single form field", - "category": "validation" - }, - { - "id": "validate_email", - "name": "validateEmail", - "exported": true, - "description": "Validate email address format", - "category": "validation" - }, - { - "id": "validate_password", - "name": "validatePassword", - "exported": true, - "description": "Validate password strength", - "category": "validation" - }, - { - "id": "validate_required", - "name": "validateRequired", - "exported": true, - "description": "Check if required field has value", - "category": "validation" - }, - { - "id": "validate_form", - "name": "validateForm", - "exported": true, - "description": "Validate entire form", - "category": "validation" - }, - { - "id": "contact_form_handle_submit", - "name": "handleSubmit", - "exported": true, - "description": "Handle contact form submission", - "category": "forms" - }, - { - "id": "contact_form_validate", - "name": "validate", - "exported": true, - "description": "Validate contact form", - "category": "forms" - }, - { - "id": "contact_form_create_state", - "name": "createInitialState", - "exported": true, - "description": "Create initial form state", - "category": "forms" - } - ], - "exports": { - "functions": [ - "handleChange", - "handleBlur", - "handleSearch", - "clearSearch", - "togglePasswordVisibility", - "validateField", - "validateEmail", - "validatePassword", - "validateRequired", - "validateForm", - "handleSubmit", - "validate", - "createInitialState" - ] - } -} diff --git a/packages/forum_forge/scripts/functions.json b/packages/forum_forge/scripts/functions.json deleted file mode 100644 index 8a64b1553..000000000 --- a/packages/forum_forge/scripts/functions.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "forum_forge", - "description": "Forum Forge script functions for thread management, permissions, ranking, and moderation", - "functions": [ - { - "id": "forum_init", - "name": "init", - "exported": true, - "description": "Initialize Forum Forge package", - "category": "lifecycle" - }, - { - "id": "forum_on_install", - "name": "onInstall", - "exported": true, - "description": "Package installation hook", - "category": "lifecycle" - }, - { - "id": "forum_on_uninstall", - "name": "onUninstall", - "exported": true, - "description": "Package uninstallation hook", - "category": "lifecycle" - }, - { - "id": "forum_can_post", - "name": "canPost", - "exported": true, - "description": "Check if user has permission to post in forum", - "category": "permissions" - }, - { - "id": "forum_can_moderate", - "name": "canModerate", - "exported": true, - "description": "Check if user has permission to moderate forum", - "category": "permissions" - }, - { - "id": "forum_rank_thread", - "name": "rankThread", - "exported": true, - "description": "Calculate thread ranking score based on recency and engagement", - "category": "ranking" - }, - { - "id": "forum_flag_post", - "name": "flagPost", - "exported": true, - "description": "Flag a post for moderation review", - "category": "moderation" - }, - { - "id": "forum_create_thread", - "name": "createThread", - "exported": true, - "description": "Create a new forum thread", - "category": "threads" - }, - { - "id": "forum_view_categories", - "name": "viewCategories", - "exported": true, - "description": "Retrieve and render forum categories", - "category": "categories" - }, - { - "id": "forum_thread_list", - "name": "threadList", - "exported": true, - "description": "Retrieve and render thread list", - "category": "threads" - } - ], - "exports": { - "functions": [ - "init", - "onInstall", - "onUninstall", - "canPost", - "canModerate", - "rankThread", - "flagPost", - "createThread", - "viewCategories", - "threadList" - ] - } -} diff --git a/packages/github_tools/scripts/functions.json b/packages/github_tools/scripts/functions.json deleted file mode 100644 index cbdf900df..000000000 --- a/packages/github_tools/scripts/functions.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "github_tools", - "description": "GitHub Tools functions for fetching runs, analyzing data, and filtering results", - "functions": [ - { - "id": "init_initialize", - "name": "initialize", - "exported": true, - "description": "Initialize the GitHub Tools package with configuration", - "category": "initialization" - }, - { - "id": "fetch_runs_fetchRuns", - "name": "fetchRuns", - "exported": true, - "description": "Fetch workflow runs from GitHub API", - "category": "api" - }, - { - "id": "fetch_runs_fetchJobs", - "name": "fetchJobs", - "exported": true, - "description": "Fetch jobs for a specific workflow run", - "category": "api" - }, - { - "id": "fetch_runs_fetchLogs", - "name": "fetchLogs", - "exported": true, - "description": "Fetch logs for a specific job", - "category": "api" - }, - { - "id": "analyze_calculateStats", - "name": "calculateStats", - "exported": true, - "description": "Calculate statistics from workflow runs", - "category": "analytics" - }, - { - "id": "analyze_getSuccessTrend", - "name": "getSuccessTrend", - "exported": true, - "description": "Get trend data for success rate over time", - "category": "analytics" - }, - { - "id": "analyze_getFailureBreakdown", - "name": "getFailureBreakdown", - "exported": true, - "description": "Get failure breakdown by type", - "category": "analytics" - }, - { - "id": "filter_filterRuns", - "name": "filterRuns", - "exported": true, - "description": "Apply filters to workflow runs", - "category": "filtering" - }, - { - "id": "filter_applyFilters", - "name": "applyFilters", - "exported": true, - "description": "Apply filters from form data", - "category": "filtering" - }, - { - "id": "filter_sortRuns", - "name": "sortRuns", - "exported": true, - "description": "Sort runs by field", - "category": "filtering" - }, - { - "id": "status_getStatusColor", - "name": "getStatusColor", - "exported": true, - "description": "Get color for run status", - "category": "display" - }, - { - "id": "status_getStatusIcon", - "name": "getStatusIcon", - "exported": true, - "description": "Get icon name for run status", - "category": "display" - }, - { - "id": "status_getStatusLabel", - "name": "getStatusLabel", - "exported": true, - "description": "Get human-readable status label", - "category": "display" - }, - { - "id": "status_renderBadge", - "name": "renderBadge", - "exported": true, - "description": "Render status badge component", - "category": "display" - }, - { - "id": "status_formatDuration", - "name": "formatDuration", - "exported": true, - "description": "Format duration in human-readable form", - "category": "display" - }, - { - "id": "status_formatRelativeTime", - "name": "formatRelativeTime", - "exported": true, - "description": "Format timestamp as relative time", - "category": "display" - } - ], - "exports": { - "functions": [ - "initialize", - "fetchRuns", - "fetchJobs", - "fetchLogs", - "calculateStats", - "getSuccessTrend", - "getFailureBreakdown", - "filterRuns", - "applyFilters", - "sortRuns", - "getStatusColor", - "getStatusIcon", - "getStatusLabel", - "renderBadge", - "formatDuration", - "formatRelativeTime" - ] - } -} diff --git a/packages/irc_webchat/scripts/functions.json b/packages/irc_webchat/scripts/functions.json deleted file mode 100644 index a90798b4a..000000000 --- a/packages/irc_webchat/scripts/functions.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "irc_webchat", - "description": "IRC Webchat message handling and command processing functions", - "functions": [ - { - "id": "irc_send_message", - "name": "sendMessage", - "exported": true, - "description": "Send a chat message to a channel", - "category": "commands", - "parameters": [ - { - "name": "channelId", - "type": "string", - "description": "Channel identifier" - }, - { - "name": "username", - "type": "string", - "description": "Username of the sender" - }, - { - "name": "userId", - "type": "string", - "description": "User identifier" - }, - { - "name": "message", - "type": "string", - "description": "Message content to send" - } - ], - "returns": { - "type": "ChatMessage", - "description": "Chat message object" - } - }, - { - "id": "irc_handle_command", - "name": "handleCommand", - "exported": true, - "description": "Process IRC commands like /help, /users, /clear, /me", - "category": "commands", - "parameters": [ - { - "name": "command", - "type": "string", - "description": "IRC command string (e.g., /help, /users, /clear, /me )" - }, - { - "name": "channelId", - "type": "string", - "description": "Channel identifier" - }, - { - "name": "username", - "type": "string", - "description": "Current username" - }, - { - "name": "onlineUsers", - "type": "array", - "description": "List of online usernames" - } - ], - "returns": { - "type": "IRCMessage", - "description": "Response message object" - } - }, - { - "id": "irc_format_time", - "name": "formatTime", - "exported": true, - "description": "Format timestamps for display in HH:MM AM/PM format", - "category": "formatting", - "parameters": [ - { - "name": "timestamp", - "type": "number", - "description": "Unix timestamp in milliseconds" - } - ], - "returns": { - "type": "string", - "description": "Formatted time string in HH:MM AM/PM format" - } - }, - { - "id": "irc_user_join", - "name": "userJoin", - "exported": true, - "description": "Handle user joining a channel", - "category": "events", - "parameters": [ - { - "name": "channelId", - "type": "string", - "description": "Channel identifier" - }, - { - "name": "username", - "type": "string", - "description": "Username of the user joining" - }, - { - "name": "userId", - "type": "string", - "description": "User identifier of the user joining" - } - ], - "returns": { - "type": "JoinMessage", - "description": "Join notification message object" - } - }, - { - "id": "irc_user_leave", - "name": "userLeave", - "exported": true, - "description": "Handle user leaving a channel", - "category": "events", - "parameters": [ - { - "name": "channelId", - "type": "string", - "description": "Channel identifier" - }, - { - "name": "username", - "type": "string", - "description": "Username of the user leaving" - }, - { - "name": "userId", - "type": "string", - "description": "User identifier of the user leaving" - } - ], - "returns": { - "type": "LeaveMessage", - "description": "Leave notification message object" - } - }, - { - "id": "irc_init", - "name": "init", - "exported": false, - "description": "Lifecycle hooks for installation and removal", - "category": "lifecycle" - } - ], - "exports": { - "functions": [ - "sendMessage", - "handleCommand", - "formatTime", - "userJoin", - "userLeave" - ] - } -} diff --git a/packages/json_script_example/scripts/functions.json b/packages/json_script_example/scripts/functions.json deleted file mode 100644 index 6db93eb90..000000000 --- a/packages/json_script_example/scripts/functions.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "json_script_example", - "description": "Complete demonstration of JSON script specification with expressions, statements, operators, and control flow", - "constants": [ - { - "id": "max_value", - "name": "MAX_VALUE", - "value": 100, - "type": "number", - "exported": true, - "description": "Maximum allowed value for calculations" - }, - { - "id": "app_name", - "name": "APP_NAME", - "value": "JSON Script Demo", - "type": "string", - "exported": true, - "description": "Application display name" - }, - { - "id": "config", - "name": "DEFAULT_CONFIG", - "type": "object", - "value": { - "debug": true, - "timeout": 5000, - "maxRetries": 3 - }, - "exported": true, - "description": "Default application configuration" - } - ], - "functions": [ - { - "id": "all_expressions_demo", - "name": "all_expressions", - "exported": true, - "description": "Demonstrates all JSON script expression types including binary, logical, unary, conditional, and template literals", - "category": "demo", - "params": [ - { - "name": "a", - "type": "number", - "description": "First number for arithmetic and comparison operations" - }, - { - "name": "b", - "type": "number", - "description": "Second number for arithmetic and comparison operations" - } - ], - "returnType": "ExpressionsDemoResult" - }, - { - "id": "all_statements_demo", - "name": "all_statements", - "exported": true, - "description": "Demonstrates all statement types including declarations, loops, conditionals, and error handling", - "category": "demo", - "params": [ - { - "name": "items", - "type": "array", - "description": "Array of numbers to process and calculate statistics on" - } - ], - "returnType": "StatementsDemoResult" - }, - { - "id": "all_operators_demo", - "name": "all_operators", - "exported": true, - "description": "Demonstrates all supported operators: arithmetic, comparison, logical, and unary", - "category": "demo", - "params": [ - { - "name": "x", - "type": "number", - "description": "First operand" - }, - { - "name": "y", - "type": "number", - "description": "Second operand" - } - ], - "returnType": "OperatorsDemoResult" - }, - { - "id": "control_flow_demo", - "name": "control_flow", - "exported": true, - "description": "Demonstrates control flow patterns with nested if/else for classification", - "category": "demo", - "params": [ - { - "name": "value", - "type": "number", - "description": "Number to classify" - } - ], - "returnType": "Classification" - }, - { - "id": "data_structures_demo", - "name": "data_structures", - "exported": true, - "description": "Demonstrates working with objects and arrays including nested structures and member access", - "category": "demo", - "params": [], - "returnType": "DataStructuresResult" - } - ], - "exports": { - "functions": [ - "all_expressions", - "all_statements", - "all_operators", - "control_flow", - "data_structures" - ], - "constants": [ - "MAX_VALUE", - "APP_NAME", - "DEFAULT_CONFIG" - ] - } -} diff --git a/packages/media_center/scripts/functions.json b/packages/media_center/scripts/functions.json deleted file mode 100644 index 39d7ec0e8..000000000 --- a/packages/media_center/scripts/functions.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "media_center", - "description": "Media center functions for jobs, radio, TV, documents, and retro gaming", - "functions": [ - { - "id": "media_api_get_stats", - "name": "getMediaStats", - "exported": true, - "description": "Get media center dashboard statistics", - "category": "analytics" - }, - { - "id": "media_api_fetch_assets", - "name": "fetchAssets", - "exported": true, - "description": "Fetch media assets with filtering", - "category": "data" - }, - { - "id": "job_submit", - "name": "submitJob", - "exported": true, - "description": "Submit a new media processing job", - "category": "jobs" - }, - { - "id": "job_get_status", - "name": "getJobStatus", - "exported": true, - "description": "Get status of a media job", - "category": "jobs" - }, - { - "id": "job_cancel", - "name": "cancelJob", - "exported": true, - "description": "Cancel a pending or running job", - "category": "jobs" - }, - { - "id": "job_list", - "name": "listJobs", - "exported": true, - "description": "List media jobs with optional filters", - "category": "jobs" - }, - { - "id": "radio_list_channels", - "name": "listRadioChannels", - "exported": true, - "description": "List available radio channels", - "category": "radio" - }, - { - "id": "radio_create_channel", - "name": "createRadioChannel", - "exported": true, - "description": "Create a new radio channel", - "category": "radio" - }, - { - "id": "radio_update_channel", - "name": "updateRadioChannel", - "exported": true, - "description": "Update radio channel settings", - "category": "radio" - }, - { - "id": "radio_get_stream_url", - "name": "getRadioStreamUrl", - "exported": true, - "description": "Get streaming URL for a radio channel", - "category": "radio" - }, - { - "id": "tv_list_channels", - "name": "listTvChannels", - "exported": true, - "description": "List available TV channels", - "category": "tv" - }, - { - "id": "tv_create_channel", - "name": "createTvChannel", - "exported": true, - "description": "Create a new TV channel", - "category": "tv" - }, - { - "id": "tv_update_channel", - "name": "updateTvChannel", - "exported": true, - "description": "Update TV channel settings", - "category": "tv" - }, - { - "id": "tv_get_schedule", - "name": "getTvSchedule", - "exported": true, - "description": "Get TV channel schedule", - "category": "tv" - }, - { - "id": "tv_set_schedule", - "name": "setTvSchedule", - "exported": true, - "description": "Set TV channel schedule", - "category": "tv" - }, - { - "id": "tv_get_epg", - "name": "getTvEpg", - "exported": true, - "description": "Get TV Electronic Program Guide", - "category": "tv" - }, - { - "id": "doc_convert", - "name": "convertDocument", - "exported": true, - "description": "Convert document to different format", - "category": "documents" - }, - { - "id": "doc_get_supported_formats", - "name": "getSupportedFormats", - "exported": true, - "description": "Get list of supported document formats", - "category": "documents" - }, - { - "id": "retro_list_games", - "name": "listRetroGames", - "exported": true, - "description": "List available retro games", - "category": "retro" - }, - { - "id": "retro_launch_game", - "name": "launchRetroGame", - "exported": true, - "description": "Launch a retro game session", - "category": "retro" - }, - { - "id": "retro_save_state", - "name": "saveGameState", - "exported": true, - "description": "Save current game state", - "category": "retro" - }, - { - "id": "retro_load_state", - "name": "loadGameState", - "exported": true, - "description": "Load a saved game state", - "category": "retro" - }, - { - "id": "retro_list_cores", - "name": "listEmulatorCores", - "exported": true, - "description": "List available emulator cores", - "category": "retro" - }, - { - "id": "retro_get_active_sessions", - "name": "getActiveSessions", - "exported": true, - "description": "Get list of active gaming sessions", - "category": "retro" - } - ], - "exports": { - "functions": [ - "getMediaStats", - "fetchAssets", - "submitJob", - "getJobStatus", - "cancelJob", - "listJobs", - "listRadioChannels", - "createRadioChannel", - "updateRadioChannel", - "getRadioStreamUrl", - "listTvChannels", - "createTvChannel", - "updateTvChannel", - "getTvSchedule", - "setTvSchedule", - "getTvEpg", - "convertDocument", - "getSupportedFormats", - "listRetroGames", - "launchRetroGame", - "saveGameState", - "loadGameState", - "listEmulatorCores", - "getActiveSessions" - ] - } -} diff --git a/packages/nav_menu/scripts/functions.json b/packages/nav_menu/scripts/functions.json deleted file mode 100644 index 1a248b867..000000000 --- a/packages/nav_menu/scripts/functions.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "nav_menu", - "description": "Navigation menu rendering and management functions", - "functions": [ - { - "id": "init_on_install", - "name": "onInstall", - "exported": true, - "description": "Package lifecycle installation hook", - "category": "lifecycle" - }, - { - "id": "sidebar_render", - "name": "renderSidebar", - "exported": true, - "description": "Render sidebar navigation component", - "category": "ui" - }, - { - "id": "sidebar_header", - "name": "renderSidebarHeader", - "exported": true, - "description": "Render sidebar header section", - "category": "ui" - }, - { - "id": "sidebar_item", - "name": "renderSidebarItem", - "exported": true, - "description": "Render individual sidebar navigation item", - "category": "ui" - }, - { - "id": "menu_render", - "name": "renderMenu", - "exported": true, - "description": "Render horizontal navigation menu", - "category": "ui" - }, - { - "id": "menu_can_show", - "name": "canShowMenuItem", - "exported": true, - "description": "Check if user can view menu item based on permissions", - "category": "permissions" - }, - { - "id": "menu_item", - "name": "renderMenuItem", - "exported": true, - "description": "Render single menu item or dropdown", - "category": "ui" - }, - { - "id": "menu_sub_items", - "name": "renderSubItems", - "exported": true, - "description": "Render dropdown menu sub-items", - "category": "ui" - }, - { - "id": "icons_get", - "name": "getIcon", - "exported": true, - "description": "Get icon name for navigation item", - "category": "icons" - }, - { - "id": "types_nav_link", - "name": "createNavLink", - "exported": false, - "description": "Create NavLink type structure", - "category": "types" - }, - { - "id": "types_nav_group", - "name": "createNavGroup", - "exported": false, - "description": "Create NavGroup type structure", - "category": "types" - } - ], - "exports": { - "functions": [ - "onInstall", - "renderSidebar", - "renderSidebarHeader", - "renderSidebarItem", - "renderMenu", - "canShowMenuItem", - "renderMenuItem", - "renderSubItems", - "getIcon" - ] - } -} diff --git a/packages/nerd_mode_ide/scripts/functions.json b/packages/nerd_mode_ide/scripts/functions.json deleted file mode 100644 index d42b844f2..000000000 --- a/packages/nerd_mode_ide/scripts/functions.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "nerd_mode_ide", - "description": "IDE file system and execution functions", - "functions": [ - { - "id": "ide_list_files", - "name": "listFiles", - "exported": true, - "description": "List files in a directory", - "category": "ide" - }, - { - "id": "ide_read_file", - "name": "readFile", - "exported": true, - "description": "Read file contents", - "category": "ide" - }, - { - "id": "ide_write_file", - "name": "writeFile", - "exported": true, - "description": "Write file contents", - "category": "ide" - }, - { - "id": "ide_create_file", - "name": "createFile", - "exported": true, - "description": "Create a new file", - "category": "ide" - }, - { - "id": "ide_create_folder", - "name": "createFolder", - "exported": true, - "description": "Create a new folder", - "category": "ide" - }, - { - "id": "ide_delete_item", - "name": "deleteItem", - "exported": true, - "description": "Delete a file or folder", - "category": "ide" - }, - { - "id": "ide_rename_item", - "name": "renameItem", - "exported": true, - "description": "Rename a file or folder", - "category": "ide" - }, - { - "id": "ide_run_script", - "name": "runScript", - "exported": true, - "description": "Execute a script file", - "category": "ide" - }, - { - "id": "ide_run_tests", - "name": "runTests", - "exported": true, - "description": "Run test suite", - "category": "ide" - }, - { - "id": "ide_get_git_status", - "name": "getGitStatus", - "exported": true, - "description": "Get git status for workspace", - "category": "ide" - }, - { - "id": "ide_git_commit", - "name": "gitCommit", - "exported": true, - "description": "Commit changes to git", - "category": "ide" - }, - { - "id": "ide_git_push", - "name": "gitPush", - "exported": true, - "description": "Push commits to remote", - "category": "ide" - }, - { - "id": "ide_git_pull", - "name": "gitPull", - "exported": true, - "description": "Pull from remote", - "category": "ide" - }, - { - "id": "ide_detect_language", - "name": "detectLanguage", - "exported": true, - "description": "Detect file language from extension", - "category": "ide" - } - ], - "exports": { - "functions": [ - "listFiles", - "readFile", - "writeFile", - "createFile", - "createFolder", - "deleteItem", - "renameItem", - "runScript", - "runTests", - "getGitStatus", - "gitCommit", - "gitPush", - "gitPull", - "detectLanguage" - ] - } -} diff --git a/packages/notification_center/scripts/functions.json b/packages/notification_center/scripts/functions.json deleted file mode 100644 index f49f3a6de..000000000 --- a/packages/notification_center/scripts/functions.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "notification_center", - "description": "Notification management and display functions", - "functions": [ - { - "id": "init_load", - "name": "loadNotifications", - "exported": true, - "description": "Load user notifications", - "category": "lifecycle" - }, - { - "id": "toast_show", - "name": "showToast", - "exported": true, - "description": "Display toast notification", - "category": "ui" - }, - { - "id": "toast_dismiss", - "name": "dismiss", - "exported": true, - "description": "Dismiss toast notification", - "category": "ui" - }, - { - "id": "list_mark_read", - "name": "markAsRead", - "exported": true, - "description": "Mark notification as read", - "category": "actions" - }, - { - "id": "list_dismiss", - "name": "dismiss", - "exported": true, - "description": "Dismiss notification", - "category": "actions" - }, - { - "id": "list_mark_all_read", - "name": "markAllAsRead", - "exported": true, - "description": "Mark all notifications as read", - "category": "actions" - }, - { - "id": "summary_prepare", - "name": "prepareSummary", - "exported": true, - "description": "Prepare notification summary data", - "category": "analytics" - }, - { - "id": "summary_count_by_type", - "name": "countByType", - "exported": true, - "description": "Count notifications by type", - "category": "analytics" - } - ], - "exports": { - "functions": [ - "loadNotifications", - "showToast", - "dismiss", - "markAsRead", - "markAllAsRead", - "prepareSummary", - "countByType" - ] - } -} diff --git a/packages/package_manager/scripts/functions.json b/packages/package_manager/scripts/functions.json deleted file mode 100644 index e33c30d3c..000000000 --- a/packages/package_manager/scripts/functions.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "package_manager", - "description": "Package management functions for listing, installing, and managing packages", - "functions": [ - { - "id": "pkg_list_all", - "name": "listPackages", - "exported": true, - "description": "List all available packages with their status", - "category": "packages" - }, - { - "id": "pkg_get_info", - "name": "getPackageInfo", - "exported": true, - "description": "Get detailed information about a specific package", - "category": "packages" - }, - { - "id": "pkg_install", - "name": "installPackage", - "exported": true, - "description": "Install a package and its dependencies", - "category": "packages" - }, - { - "id": "pkg_uninstall", - "name": "uninstallPackage", - "exported": true, - "description": "Uninstall a package", - "category": "packages" - }, - { - "id": "pkg_enable", - "name": "enablePackage", - "exported": true, - "description": "Enable a disabled package", - "category": "packages" - }, - { - "id": "pkg_disable", - "name": "disablePackage", - "exported": true, - "description": "Disable an enabled package", - "category": "packages" - }, - { - "id": "pkg_toggle", - "name": "togglePackage", - "exported": true, - "description": "Toggle package enabled/disabled state", - "category": "packages" - }, - { - "id": "pkg_validate", - "name": "validatePackage", - "exported": true, - "description": "Validate package structure and metadata", - "category": "packages" - }, - { - "id": "dep_get_tree", - "name": "getDependencyTree", - "exported": true, - "description": "Get dependency tree for a package", - "category": "dependencies" - }, - { - "id": "dep_check_conflicts", - "name": "checkDependencyConflicts", - "exported": true, - "description": "Check for dependency conflicts before installation", - "category": "dependencies" - }, - { - "id": "dep_resolve", - "name": "resolveDependencies", - "exported": true, - "description": "Resolve and order dependencies for installation", - "category": "dependencies" - }, - { - "id": "pkg_search", - "name": "searchPackages", - "exported": true, - "description": "Search packages by name, description, or keywords", - "category": "packages" - }, - { - "id": "pkg_filter_category", - "name": "filterByCategory", - "exported": true, - "description": "Filter packages by category", - "category": "packages" - } - ], - "exports": { - "functions": [ - "listPackages", - "getPackageInfo", - "installPackage", - "uninstallPackage", - "enablePackage", - "disablePackage", - "togglePackage", - "validatePackage", - "getDependencyTree", - "checkDependencyConflicts", - "resolveDependencies", - "searchPackages", - "filterByCategory" - ] - } -} diff --git a/packages/package_validator/scripts/functions.json b/packages/package_validator/scripts/functions.json deleted file mode 100644 index 19ab4a63b..000000000 --- a/packages/package_validator/scripts/functions.json +++ /dev/null @@ -1,231 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "package_validator", - "description": "Package validation functions for validating JSON-based packages", - "functions": [ - { - "id": "validate_package", - "name": "validatePackage", - "exported": true, - "description": "Validates a complete package including metadata, components, scripts, and structure", - "category": "validation", - "parameters": [ - { - "name": "packagePath", - "type": "string", - "required": true, - "description": "Path to the package directory" - }, - { - "name": "options", - "type": "object", - "required": false, - "description": "Validation options (skipStructure, skipScripts, skipStyles)" - } - ], - "returns": { - "type": "ValidationResult", - "description": "Validation results with errors and warnings" - } - }, - { - "id": "validate_metadata", - "name": "validateMetadata", - "exported": true, - "description": "Validates package metadata.json structure and required fields", - "category": "validation", - "parameters": [ - { - "name": "metadata", - "type": "object", - "required": true, - "description": "Parsed metadata object to validate" - } - ], - "returns": { - "type": "array", - "description": "Tuple of [valid: boolean, errors: string[]]" - } - }, - { - "id": "validate_scripts", - "name": "validateScripts", - "exported": true, - "description": "Validates script structure and exports", - "category": "validation", - "parameters": [ - { - "name": "packagePath", - "type": "string", - "required": true, - "description": "Path to the package directory" - }, - { - "name": "metadata", - "type": "object", - "required": true, - "description": "Package metadata with exports" - } - ], - "returns": { - "type": "array", - "description": "Tuple of [errors: string[], warnings: string[]]" - } - }, - { - "id": "validate_types", - "name": "validateTypes", - "exported": true, - "description": "Validates type definitions in types.json", - "category": "validation", - "parameters": [ - { - "name": "types", - "type": "array", - "required": true, - "description": "Array of type definitions to validate" - } - ], - "returns": { - "type": "array", - "description": "Tuple of [valid: boolean, errors: string[]]" - } - }, - { - "id": "validate_components", - "name": "validateComponents", - "exported": true, - "description": "Validates component definitions in components.json", - "category": "validation", - "parameters": [ - { - "name": "components", - "type": "array", - "required": true, - "description": "Array of component definitions to validate" - } - ], - "returns": { - "type": "array", - "description": "Tuple of [valid: boolean, errors: string[]]" - } - }, - { - "id": "validate_tests", - "name": "validateTests", - "exported": true, - "description": "Validates test file structure and coverage", - "category": "validation", - "parameters": [ - { - "name": "packagePath", - "type": "string", - "required": true, - "description": "Path to the package directory" - } - ], - "returns": { - "type": "object", - "description": "Test validation results" - } - }, - { - "id": "validate_storybook", - "name": "validateStorybook", - "exported": true, - "description": "Validates storybook configuration and stories", - "category": "validation", - "parameters": [ - { - "name": "packagePath", - "type": "string", - "required": true, - "description": "Path to the package directory" - } - ], - "returns": { - "type": "object", - "description": "Storybook validation results" - } - }, - { - "id": "validate_styles", - "name": "validateStyles", - "exported": true, - "description": "Validates styles.json structure", - "category": "validation", - "parameters": [ - { - "name": "packagePath", - "type": "string", - "required": true, - "description": "Path to the package directory" - } - ], - "returns": { - "type": "object", - "description": "Style validation results with success status and messages" - } - }, - { - "id": "format_results", - "name": "formatResults", - "exported": true, - "description": "Formats validation results for display", - "category": "output", - "parameters": [ - { - "name": "results", - "type": "ValidationResult", - "required": true, - "description": "Validation results to format" - }, - { - "name": "format", - "type": "string", - "required": false, - "default": "human", - "description": "Output format: 'human' or 'json'" - } - ], - "returns": { - "type": "string", - "description": "Formatted output string" - } - }, - { - "id": "check_script_quality", - "name": "checkScriptQuality", - "exported": true, - "description": "Checks script code quality and best practices", - "category": "validation", - "parameters": [ - { - "name": "scriptCode", - "type": "string", - "required": true, - "description": "Script source code to check" - } - ], - "returns": { - "type": "object", - "description": "Quality check results with suggestions" - } - } - ], - "exports": { - "functions": [ - "validatePackage", - "validateMetadata", - "validateScripts", - "validateTypes", - "validateComponents", - "validateTests", - "validateStorybook", - "validateStyles", - "formatResults", - "checkScriptQuality" - ] - } -} diff --git a/packages/quick_guide/scripts/functions.json b/packages/quick_guide/scripts/functions.json deleted file mode 100644 index 8e346fe94..000000000 --- a/packages/quick_guide/scripts/functions.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "quick_guide", - "description": "Quick guide step management and media handling functions", - "functions": [ - { - "id": "init", - "name": "init", - "exported": true, - "description": "Initialize the quick guide module", - "category": "lifecycle" - }, - { - "id": "steps_generate_id", - "name": "generateStepId", - "exported": true, - "description": "Generate a unique step identifier", - "category": "steps" - }, - { - "id": "steps_create", - "name": "createStep", - "exported": true, - "description": "Create a new empty step with default values", - "category": "steps" - }, - { - "id": "steps_add", - "name": "addStep", - "exported": true, - "description": "Add a new step to the steps array", - "category": "steps" - }, - { - "id": "steps_update", - "name": "updateStep", - "exported": true, - "description": "Update a step in the steps array", - "category": "steps" - }, - { - "id": "steps_remove", - "name": "removeStep", - "exported": true, - "description": "Remove a step from the steps array", - "category": "steps" - }, - { - "id": "steps_reset_ordering", - "name": "resetOrdering", - "exported": true, - "description": "Reset step IDs to sequential order", - "category": "steps" - }, - { - "id": "steps_validate", - "name": "validateStep", - "exported": true, - "description": "Validate a single step", - "category": "steps" - }, - { - "id": "steps_validate_all", - "name": "validateAllSteps", - "exported": true, - "description": "Validate all steps in the array", - "category": "steps" - }, - { - "id": "media_is_valid_url", - "name": "isValidUrl", - "exported": true, - "description": "Validate a URL (basic check)", - "category": "media" - }, - { - "id": "media_is_image_url", - "name": "isImageUrl", - "exported": true, - "description": "Check if URL points to an image", - "category": "media" - }, - { - "id": "media_is_video_url", - "name": "isVideoUrl", - "exported": true, - "description": "Check if URL points to a video", - "category": "media" - }, - { - "id": "media_prepare_state", - "name": "prepareMediaState", - "exported": true, - "description": "Prepare media state from props", - "category": "media" - }, - { - "id": "media_handle_thumbnail", - "name": "handleThumbnailChange", - "exported": true, - "description": "Handle thumbnail URL change", - "category": "media" - }, - { - "id": "media_handle_video", - "name": "handleVideoChange", - "exported": true, - "description": "Handle video URL change", - "category": "media" - } - ], - "exports": { - "functions": [ - "init", - "generateStepId", - "createStep", - "addStep", - "updateStep", - "removeStep", - "resetOrdering", - "validateStep", - "validateAllSteps", - "isValidUrl", - "isImageUrl", - "isVideoUrl", - "prepareMediaState", - "handleThumbnailChange", - "handleVideoChange" - ] - } -} diff --git a/packages/role_editor/scripts/functions.json b/packages/role_editor/scripts/functions.json deleted file mode 100644 index 86e590921..000000000 --- a/packages/role_editor/scripts/functions.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "role_editor", - "description": "Role management and permission configuration functions", - "functions": [ - { - "id": "role_initialize", - "name": "initialize", - "exported": true, - "description": "Initialize the role editor with default state", - "category": "lifecycle" - }, - { - "id": "role_select_role", - "name": "selectRole", - "exported": true, - "description": "Select a role to view/edit its permissions", - "category": "interaction" - }, - { - "id": "role_toggle_permission", - "name": "togglePermission", - "exported": true, - "description": "Toggle a permission on or off for the selected role", - "category": "interaction" - }, - { - "id": "role_save_changes", - "name": "saveChanges", - "exported": true, - "description": "Save all permission changes", - "category": "persistence" - }, - { - "id": "role_cancel_changes", - "name": "cancelChanges", - "exported": true, - "description": "Cancel all pending changes and revert to original state", - "category": "persistence" - }, - { - "id": "role_handle_card_click", - "name": "handleCardClick", - "exported": true, - "description": "Handle click on a role card", - "category": "interaction" - }, - { - "id": "role_get_role_label", - "name": "getRoleLabel", - "exported": true, - "description": "Get role label with proper capitalization", - "category": "utility" - }, - { - "id": "role_get_role_info", - "name": "getRoleInfo", - "exported": true, - "description": "Get detailed information about a role", - "category": "utility" - }, - { - "id": "role_get_all_roles", - "name": "getAllRoles", - "exported": true, - "description": "Get all available roles in order", - "category": "utility" - }, - { - "id": "role_filter_roles", - "name": "filterRoles", - "exported": true, - "description": "Filter roles by allowed list", - "category": "utility" - }, - { - "id": "role_is_valid_role", - "name": "isValidRole", - "exported": true, - "description": "Validate if a role identifier exists", - "category": "validation" - }, - { - "id": "config_get_role_config", - "name": "getRoleConfig", - "exported": true, - "description": "Get the full role configuration object", - "category": "config" - } - ], - "exports": { - "functions": [ - "initialize", - "selectRole", - "togglePermission", - "saveChanges", - "cancelChanges", - "handleCardClick", - "getRoleLabel", - "getRoleInfo", - "getAllRoles", - "filterRoles", - "isValidRole", - "getRoleConfig" - ] - } -} diff --git a/packages/route_manager/scripts/functions.json b/packages/route_manager/scripts/functions.json deleted file mode 100644 index e18c53937..000000000 --- a/packages/route_manager/scripts/functions.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "route_manager", - "description": "Route management functions for CRUD operations and validation", - "functions": [ - { - "id": "route_list", - "name": "listRoutes", - "exported": true, - "description": "List all configured routes", - "category": "routes" - }, - { - "id": "route_get", - "name": "getRoute", - "exported": true, - "description": "Get a specific route by ID or path", - "category": "routes" - }, - { - "id": "route_create", - "name": "createRoute", - "exported": true, - "description": "Create a new route configuration", - "category": "routes" - }, - { - "id": "route_update", - "name": "updateRoute", - "exported": true, - "description": "Update an existing route", - "category": "routes" - }, - { - "id": "route_delete", - "name": "deleteRoute", - "exported": true, - "description": "Delete a route configuration", - "category": "routes" - }, - { - "id": "route_toggle", - "name": "toggleRoute", - "exported": true, - "description": "Enable or disable a route", - "category": "routes" - }, - { - "id": "route_validate", - "name": "validateRoute", - "exported": true, - "description": "Validate route configuration", - "category": "validation" - }, - { - "id": "route_validate_path", - "name": "validatePath", - "exported": true, - "description": "Validate route path format", - "category": "validation" - }, - { - "id": "route_check_conflicts", - "name": "checkPathConflicts", - "exported": true, - "description": "Check for conflicting route paths", - "category": "validation" - }, - { - "id": "route_filter_level", - "name": "filterByAccessLevel", - "exported": true, - "description": "Filter routes by access level", - "category": "routes" - }, - { - "id": "route_search", - "name": "searchRoutes", - "exported": true, - "description": "Search routes by path or title", - "category": "routes" - }, - { - "id": "route_get_level_name", - "name": "getAccessLevelName", - "exported": true, - "description": "Get human-readable name for access level", - "category": "routes" - } - ], - "exports": { - "functions": [ - "listRoutes", - "getRoute", - "createRoute", - "updateRoute", - "deleteRoute", - "toggleRoute", - "validateRoute", - "validatePath", - "checkPathConflicts", - "filterByAccessLevel", - "searchRoutes", - "getAccessLevelName" - ] - } -} diff --git a/packages/schema_editor/scripts/functions.json b/packages/schema_editor/scripts/functions.json deleted file mode 100644 index fc17eb8fa..000000000 --- a/packages/schema_editor/scripts/functions.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "schema_editor", - "description": "Schema editor functions for managing database tables, fields, and relations", - "functions": [ - { - "id": "fields_define", - "name": "defineField", - "exported": true, - "description": "Define a schema field with type and options", - "category": "fields" - }, - { - "id": "fields_primary_key", - "name": "primaryKey", - "exported": true, - "description": "Create a primary key field", - "category": "fields" - }, - { - "id": "fields_foreign_key", - "name": "foreignKey", - "exported": true, - "description": "Create a foreign key field reference", - "category": "fields" - }, - { - "id": "fields_init_editor", - "name": "initFieldEditor", - "exported": true, - "description": "Initialize the field editor state", - "category": "fields" - }, - { - "id": "fields_update_name", - "name": "updateFieldName", - "exported": true, - "description": "Update field name", - "category": "fields" - }, - { - "id": "fields_update_type", - "name": "updateFieldType", - "exported": true, - "description": "Update field data type", - "category": "fields" - }, - { - "id": "fields_toggle_constraints", - "name": "toggleFieldConstraints", - "exported": true, - "description": "Toggle field constraints (PK, unique, nullable, auto-increment)", - "category": "fields" - }, - { - "id": "tables_create", - "name": "createTable", - "exported": true, - "description": "Create a new table definition", - "category": "tables" - }, - { - "id": "tables_render", - "name": "renderTableEditor", - "exported": true, - "description": "Render a table editor component", - "category": "tables" - }, - { - "id": "tables_add_field", - "name": "addTableField", - "exported": true, - "description": "Add a field to a table", - "category": "tables" - }, - { - "id": "tables_remove_field", - "name": "removeTableField", - "exported": true, - "description": "Remove a field from a table", - "category": "tables" - }, - { - "id": "tables_init_editor", - "name": "initTableEditor", - "exported": true, - "description": "Initialize table editor state", - "category": "tables" - }, - { - "id": "tables_add_index", - "name": "addTableIndex", - "exported": true, - "description": "Add an index to a table", - "category": "tables" - }, - { - "id": "tables_delete_index", - "name": "deleteTableIndex", - "exported": true, - "description": "Delete an index from a table", - "category": "tables" - }, - { - "id": "relations_define", - "name": "defineRelation", - "exported": true, - "description": "Define a table relationship", - "category": "relations" - }, - { - "id": "relations_has_one", - "name": "hasOne", - "exported": true, - "description": "Create a one-to-one relationship", - "category": "relations" - }, - { - "id": "relations_has_many", - "name": "hasMany", - "exported": true, - "description": "Create a one-to-many relationship", - "category": "relations" - }, - { - "id": "relations_belongs_to_many", - "name": "belongsToMany", - "exported": true, - "description": "Create a many-to-many relationship with pivot table", - "category": "relations" - }, - { - "id": "schema_initialize", - "name": "initializeSchema", - "exported": true, - "description": "Initialize schema editor state", - "category": "schema" - }, - { - "id": "schema_save", - "name": "saveSchema", - "exported": true, - "description": "Save schema changes", - "category": "schema" - }, - { - "id": "schema_validate", - "name": "validateSchema", - "exported": true, - "description": "Validate schema configuration", - "category": "schema" - } - ], - "exports": { - "functions": [ - "defineField", - "primaryKey", - "foreignKey", - "initFieldEditor", - "updateFieldName", - "updateFieldType", - "toggleFieldConstraints", - "createTable", - "renderTableEditor", - "addTableField", - "removeTableField", - "initTableEditor", - "addTableIndex", - "deleteTableIndex", - "defineRelation", - "hasOne", - "hasMany", - "belongsToMany", - "initializeSchema", - "saveSchema", - "validateSchema" - ] - } -} diff --git a/packages/screenshot_analyzer/scripts/functions.json b/packages/screenshot_analyzer/scripts/functions.json deleted file mode 100644 index dec610e73..000000000 --- a/packages/screenshot_analyzer/scripts/functions.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "screenshot_analyzer", - "description": "Screenshot capture, analysis, and page information functions", - "functions": [ - { - "id": "init", - "name": "init", - "exported": true, - "description": "Package initialization", - "category": "lifecycle" - }, - { - "id": "get_config", - "name": "getConfig", - "exported": true, - "description": "Get analyzer configuration", - "category": "lifecycle" - }, - { - "id": "capture_prepare", - "name": "prepareCapture", - "exported": true, - "description": "Prepare capture context (page info for capture)", - "category": "screenshot" - }, - { - "id": "capture_generate_filename", - "name": "generateFilename", - "exported": true, - "description": "Generate filename for screenshot with timestamp", - "category": "screenshot" - }, - { - "id": "capture_validate", - "name": "validateScreenshot", - "exported": true, - "description": "Validate screenshot data", - "category": "screenshot" - }, - { - "id": "capture_get_status", - "name": "getCaptureStatus", - "exported": true, - "description": "Get capture status", - "category": "screenshot" - }, - { - "id": "analyze_structure", - "name": "analyzeStructure", - "exported": true, - "description": "Analyze page structure (elements, text, HTML)", - "category": "analysis" - }, - { - "id": "analyze_detect_page_type", - "name": "detectPageType", - "exported": true, - "description": "Detect page type based on URL and elements", - "category": "analysis" - }, - { - "id": "analyze_generate_report", - "name": "generateReport", - "exported": true, - "description": "Generate markdown analysis report", - "category": "analysis" - }, - { - "id": "analyze_get_recommendations", - "name": "getRecommendations", - "exported": true, - "description": "Get accessibility and usability recommendations", - "category": "analysis" - }, - { - "id": "page_info_get_title", - "name": "getPageTitle", - "exported": true, - "description": "Get page title", - "category": "browser" - }, - { - "id": "page_info_get_url", - "name": "getPageUrl", - "exported": true, - "description": "Get page URL", - "category": "browser" - }, - { - "id": "page_info_get_viewport", - "name": "getViewport", - "exported": true, - "description": "Get viewport dimensions", - "category": "browser" - }, - { - "id": "page_info_get_user_agent", - "name": "getUserAgent", - "exported": true, - "description": "Get user agent string", - "category": "browser" - }, - { - "id": "page_info_get_all", - "name": "getAllPageInfo", - "exported": true, - "description": "Get all page information", - "category": "browser" - } - ], - "exports": { - "functions": [ - "init", - "getConfig", - "prepareCapture", - "generateFilename", - "validateScreenshot", - "getCaptureStatus", - "analyzeStructure", - "detectPageType", - "generateReport", - "getRecommendations", - "getPageTitle", - "getPageUrl", - "getViewport", - "getUserAgent", - "getAllPageInfo" - ] - } -} diff --git a/packages/smtp_config/scripts/functions.json b/packages/smtp_config/scripts/functions.json deleted file mode 100644 index a48022af0..000000000 --- a/packages/smtp_config/scripts/functions.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "smtp_config", - "description": "SMTP configuration and validation functions", - "functions": [ - { - "id": "smtp_get_defaults", - "name": "getDefaults", - "exported": true, - "description": "Get default SMTP configuration values", - "category": "config" - }, - { - "id": "smtp_get_fields", - "name": "getFields", - "exported": true, - "description": "Get all SMTP field definitions", - "category": "config" - }, - { - "id": "smtp_get_field", - "name": "getField", - "exported": true, - "description": "Get a specific field definition by name", - "category": "config" - }, - { - "id": "smtp_validate", - "name": "validate", - "exported": true, - "description": "Validate SMTP configuration object", - "category": "validation" - }, - { - "id": "smtp_create_default", - "name": "createDefault", - "exported": true, - "description": "Create a new default SMTP configuration object", - "category": "config" - }, - { - "id": "smtp_editor_create", - "name": "createEditor", - "exported": true, - "description": "Create the SMTP config editor component", - "category": "ui" - }, - { - "id": "smtp_editor_create_field", - "name": "createField", - "exported": false, - "description": "Create form field based on field definition", - "category": "ui" - } - ], - "exports": { - "functions": [ - "getDefaults", - "getFields", - "getField", - "validate", - "createDefault", - "createEditor" - ] - } -} diff --git a/packages/social_hub/scripts/functions.json b/packages/social_hub/scripts/functions.json deleted file mode 100644 index e2f07cbcc..000000000 --- a/packages/social_hub/scripts/functions.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "social_hub", - "description": "Social hub feed, composer, and statistics functions", - "functions": [ - { - "id": "feed_render_post", - "name": "renderPost", - "exported": true, - "description": "Render a single social post", - "category": "feed" - }, - { - "id": "feed_render_feed", - "name": "renderFeed", - "exported": true, - "description": "Render a feed of multiple posts", - "category": "feed" - }, - { - "id": "feed_empty_state", - "name": "emptyState", - "exported": true, - "description": "Render empty feed state when no posts exist", - "category": "feed" - }, - { - "id": "composer_render", - "name": "renderComposer", - "exported": true, - "description": "Render the post composer UI", - "category": "composer" - }, - { - "id": "composer_validate", - "name": "validateContent", - "exported": true, - "description": "Validate post content before submission", - "category": "composer" - }, - { - "id": "composer_submit", - "name": "submitPost", - "exported": true, - "description": "Submit a new post to the feed", - "category": "composer" - }, - { - "id": "stats_render_stat", - "name": "renderStat", - "exported": true, - "description": "Render a single statistic card", - "category": "stats" - }, - { - "id": "stats_render_stats", - "name": "renderStats", - "exported": true, - "description": "Render the stats grid with multiple metrics", - "category": "stats" - }, - { - "id": "stats_render_hero", - "name": "renderHero", - "exported": true, - "description": "Render hero section with user statistics", - "category": "stats" - } - ], - "exports": { - "functions": [ - "renderPost", - "renderFeed", - "emptyState", - "renderComposer", - "validateContent", - "submitPost", - "renderStat", - "renderStats", - "renderHero" - ] - } -} diff --git a/packages/stats_grid/scripts/functions.json b/packages/stats_grid/scripts/functions.json deleted file mode 100644 index cf6ed32ae..000000000 --- a/packages/stats_grid/scripts/functions.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "stats_grid", - "description": "Statistics grid functions for data formatting and display", - "functions": [ - { - "id": "stats_create_items", - "name": "createStatItems", - "exported": true, - "description": "Create stat items from raw data and configuration", - "category": "data" - }, - { - "id": "stats_get_color_class", - "name": "getColorClass", - "exported": true, - "description": "Get CSS color class for a stat color", - "category": "styling" - }, - { - "id": "stats_format_label", - "name": "formatLabel", - "exported": true, - "description": "Format a key into a human-readable label", - "category": "formatting" - }, - { - "id": "stats_format_value", - "name": "formatValue", - "exported": true, - "description": "Format a number value for display (K, M suffixes)", - "category": "formatting" - }, - { - "id": "stats_create_card", - "name": "createCard", - "exported": true, - "description": "Create a single stat card component", - "category": "rendering" - }, - { - "id": "stats_create_grid", - "name": "createGrid", - "exported": true, - "description": "Create a stats grid component from props", - "category": "rendering" - }, - { - "id": "formatters_format_currency", - "name": "formatCurrency", - "exported": true, - "description": "Format a value as currency", - "category": "formatting" - }, - { - "id": "formatters_format_percentage", - "name": "formatPercentage", - "exported": true, - "description": "Format a value as percentage", - "category": "formatting" - }, - { - "id": "formatters_format_compact", - "name": "formatCompact", - "exported": true, - "description": "Format a value with compact notation", - "category": "formatting" - }, - { - "id": "formatters_format_duration", - "name": "formatDuration", - "exported": true, - "description": "Format a duration value", - "category": "formatting" - }, - { - "id": "formatters_format_bytes", - "name": "formatBytes", - "exported": true, - "description": "Format a byte value with appropriate unit", - "category": "formatting" - } - ], - "exports": { - "functions": [ - "createStatItems", - "getColorClass", - "formatLabel", - "formatValue", - "createCard", - "createGrid", - "formatCurrency", - "formatPercentage", - "formatCompact", - "formatDuration", - "formatBytes" - ] - } -} diff --git a/packages/stream_cast/scripts/functions.json b/packages/stream_cast/scripts/functions.json deleted file mode 100644 index 6b98f3e10..000000000 --- a/packages/stream_cast/scripts/functions.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "stream_cast", - "description": "Stream Cast functions for player control, scene management, and scheduling", - "functions": [ - { - "id": "stream_init", - "name": "init", - "exported": true, - "description": "Initialize the stream cast module", - "category": "core" - }, - { - "id": "player_render", - "name": "renderPlayer", - "exported": true, - "description": "Render video player component", - "category": "player" - }, - { - "id": "player_render_controls", - "name": "renderPlayerControls", - "exported": true, - "description": "Render player control buttons", - "category": "player" - }, - { - "id": "player_render_status", - "name": "renderStatus", - "exported": true, - "description": "Render player status bar", - "category": "player" - }, - { - "id": "scene_render", - "name": "renderScene", - "exported": true, - "description": "Render scene preview component", - "category": "scenes" - }, - { - "id": "scene_render_list", - "name": "renderSceneList", - "exported": true, - "description": "Render list of available scenes", - "category": "scenes" - }, - { - "id": "scene_switch", - "name": "switchScene", - "exported": true, - "description": "Switch to a different stream scene", - "category": "scenes" - }, - { - "id": "scene_create", - "name": "createScene", - "exported": true, - "description": "Create a new stream scene", - "category": "scenes" - }, - { - "id": "schedule_render_item", - "name": "renderScheduleItem", - "exported": true, - "description": "Render a single schedule item", - "category": "schedule" - }, - { - "id": "schedule_render_list", - "name": "renderScheduleList", - "exported": true, - "description": "Render schedule list", - "category": "schedule" - }, - { - "id": "schedule_create", - "name": "scheduleStream", - "exported": true, - "description": "Schedule a new stream", - "category": "schedule" - }, - { - "id": "schedule_cancel", - "name": "cancelStream", - "exported": true, - "description": "Cancel a scheduled stream", - "category": "schedule" - } - ], - "exports": { - "functions": [ - "init", - "renderPlayer", - "renderPlayerControls", - "renderStatus", - "renderScene", - "renderSceneList", - "switchScene", - "createScene", - "renderScheduleItem", - "renderScheduleList", - "scheduleStream", - "cancelStream" - ] - } -} diff --git a/packages/testing/scripts/functions.json b/packages/testing/scripts/functions.json deleted file mode 100644 index 695a9e5db..000000000 --- a/packages/testing/scripts/functions.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "testing", - "description": "JSON-based testing framework functions including assertions, mocks, and test runner", - "functions": [ - { - "id": "framework_load_cases", - "name": "loadCases", - "exported": true, - "description": "Load test cases from JSON content", - "category": "core" - }, - { - "id": "framework_create_suite", - "name": "createSuite", - "exported": true, - "description": "Create a new test suite", - "category": "core" - }, - { - "id": "describe_it", - "name": "describe", - "exported": true, - "description": "BDD-style describe block for grouping tests", - "category": "core" - }, - { - "id": "describe_it_case", - "name": "it", - "exported": true, - "description": "BDD-style it block for individual test cases", - "category": "core" - }, - { - "id": "assertions_expect", - "name": "expect", - "exported": true, - "description": "Chainable assertion builder", - "category": "assertions" - }, - { - "id": "assertions_true", - "name": "assertTrue", - "exported": true, - "description": "Assert value is truthy", - "category": "assertions" - }, - { - "id": "assertions_false", - "name": "assertFalse", - "exported": true, - "description": "Assert value is falsy", - "category": "assertions" - }, - { - "id": "assertions_equal", - "name": "assertEqual", - "exported": true, - "description": "Assert two values are equal", - "category": "assertions" - }, - { - "id": "assertions_not_equal", - "name": "assertNotEqual", - "exported": true, - "description": "Assert two values are not equal", - "category": "assertions" - }, - { - "id": "assertions_nil", - "name": "assertNil", - "exported": true, - "description": "Assert value is nil", - "category": "assertions" - }, - { - "id": "assertions_not_nil", - "name": "assertNotNil", - "exported": true, - "description": "Assert value is not nil", - "category": "assertions" - }, - { - "id": "mocks_fn", - "name": "fn", - "exported": true, - "description": "Create a mock function", - "category": "mocks" - }, - { - "id": "mocks_spy_on", - "name": "spyOn", - "exported": true, - "description": "Spy on an object method", - "category": "mocks" - }, - { - "id": "mocks_mock_object", - "name": "mockObject", - "exported": true, - "description": "Create a mock object", - "category": "mocks" - }, - { - "id": "mocks_fake_timers", - "name": "useFakeTimers", - "exported": true, - "description": "Mock timer functions for testing async code", - "category": "mocks" - }, - { - "id": "runner_run_test", - "name": "runTest", - "exported": true, - "description": "Run a single test", - "category": "runner" - }, - { - "id": "runner_run_suite", - "name": "runSuite", - "exported": true, - "description": "Run all tests in a suite", - "category": "runner" - }, - { - "id": "runner_run_all", - "name": "runAll", - "exported": true, - "description": "Run all registered test suites", - "category": "runner" - }, - { - "id": "runner_format_report", - "name": "formatReport", - "exported": true, - "description": "Format test results as human-readable report", - "category": "runner" - }, - { - "id": "runner_format_json", - "name": "formatJSON", - "exported": true, - "description": "Format test results as JSON", - "category": "runner" - }, - { - "id": "hooks_before_all", - "name": "beforeAll", - "exported": true, - "description": "Run setup before all tests in suite", - "category": "hooks" - }, - { - "id": "hooks_after_all", - "name": "afterAll", - "exported": true, - "description": "Run teardown after all tests in suite", - "category": "hooks" - }, - { - "id": "hooks_before_each", - "name": "beforeEach", - "exported": true, - "description": "Run setup before each test", - "category": "hooks" - }, - { - "id": "hooks_after_each", - "name": "afterEach", - "exported": true, - "description": "Run teardown after each test", - "category": "hooks" - } - ], - "exports": { - "functions": [ - "loadCases", - "createSuite", - "describe", - "it", - "expect", - "assertTrue", - "assertFalse", - "assertEqual", - "assertNotEqual", - "assertNil", - "assertNotNil", - "fn", - "spyOn", - "mockObject", - "useFakeTimers", - "runTest", - "runSuite", - "runAll", - "formatReport", - "formatJSON", - "beforeAll", - "afterAll", - "beforeEach", - "afterEach" - ] - } -} diff --git a/packages/theme_editor/scripts/functions.json b/packages/theme_editor/scripts/functions.json deleted file mode 100644 index f1294eab2..000000000 --- a/packages/theme_editor/scripts/functions.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "theme_editor", - "description": "Theme management functions for saving, loading, and applying themes", - "functions": [ - { - "id": "theme_save", - "name": "saveTheme", - "exported": true, - "description": "Save current theme configuration", - "category": "theme" - }, - { - "id": "theme_load", - "name": "loadTheme", - "exported": true, - "description": "Load a saved theme", - "category": "theme" - }, - { - "id": "theme_apply", - "name": "applyTheme", - "exported": true, - "description": "Apply theme to the current session", - "category": "theme" - }, - { - "id": "theme_export", - "name": "exportTheme", - "exported": true, - "description": "Export theme as JSON file", - "category": "theme" - }, - { - "id": "theme_import", - "name": "importTheme", - "exported": true, - "description": "Import theme from JSON file", - "category": "theme" - }, - { - "id": "theme_reset", - "name": "resetTheme", - "exported": true, - "description": "Reset theme to defaults", - "category": "theme" - }, - { - "id": "color_hex_to_rgb", - "name": "hexToRgb", - "exported": true, - "description": "Convert hex color to RGB", - "category": "colors" - }, - { - "id": "color_rgb_to_hex", - "name": "rgbToHex", - "exported": true, - "description": "Convert RGB to hex color", - "category": "colors" - }, - { - "id": "color_lighten", - "name": "lightenColor", - "exported": true, - "description": "Lighten a color by percentage", - "category": "colors" - }, - { - "id": "color_darken", - "name": "darkenColor", - "exported": true, - "description": "Darken a color by percentage", - "category": "colors" - }, - { - "id": "color_contrast", - "name": "getContrastColor", - "exported": true, - "description": "Get contrasting text color (black or white)", - "category": "colors" - }, - { - "id": "color_validate", - "name": "validateColor", - "exported": true, - "description": "Validate a color value", - "category": "colors" - } - ], - "exports": { - "functions": [ - "saveTheme", - "loadTheme", - "applyTheme", - "exportTheme", - "importTheme", - "resetTheme", - "hexToRgb", - "rgbToHex", - "lightenColor", - "darkenColor", - "getContrastColor", - "validateColor" - ] - } -} diff --git a/packages/ui_auth/scripts/functions.json b/packages/ui_auth/scripts/functions.json deleted file mode 100644 index b4782780a..000000000 --- a/packages/ui_auth/scripts/functions.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_auth", - "description": "Authentication UI functions for access control and gate management", - "functions": [ - { - "id": "denied_initialize", - "name": "initialize", - "exported": true, - "description": "Initialize access denied component", - "category": "lifecycle" - }, - { - "id": "denied_redirect_to_login", - "name": "redirectToLogin", - "exported": true, - "description": "Redirect user to login page", - "category": "navigation" - }, - { - "id": "denied_go_back", - "name": "goBack", - "exported": true, - "description": "Navigate back to previous page", - "category": "navigation" - }, - { - "id": "denied_render", - "name": "render", - "exported": true, - "description": "Render access denied view", - "category": "ui" - }, - { - "id": "gate_initialize", - "name": "initialize", - "exported": true, - "description": "Initialize auth gate", - "category": "lifecycle" - }, - { - "id": "gate_check", - "name": "check", - "exported": true, - "description": "Check user access permissions", - "category": "security" - }, - { - "id": "gate_wrap", - "name": "wrap", - "exported": true, - "description": "Wrap content with authentication gate", - "category": "security" - }, - { - "id": "loader_initialize", - "name": "initializeLoader", - "exported": true, - "description": "Initialize page loader", - "category": "lifecycle" - }, - { - "id": "loader_show", - "name": "showLoader", - "exported": true, - "description": "Show the page loader", - "category": "ui" - }, - { - "id": "loader_hide", - "name": "hideLoader", - "exported": true, - "description": "Hide the page loader", - "category": "ui" - }, - { - "id": "loader_update_text", - "name": "updateLoaderText", - "exported": true, - "description": "Update loader message text", - "category": "ui" - } - ], - "exports": { - "functions": [ - "initialize", - "redirectToLogin", - "goBack", - "render", - "check", - "wrap", - "initializeLoader", - "showLoader", - "hideLoader", - "updateLoaderText" - ] - } -} diff --git a/packages/ui_dialogs/scripts/functions.json b/packages/ui_dialogs/scripts/functions.json deleted file mode 100644 index b9f467b6c..000000000 --- a/packages/ui_dialogs/scripts/functions.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.0.0", - "package": "ui_dialogs", - "functions": [ - { - "id": "handleConfirm", - "namespace": "confirm", - "name": "handleConfirm", - "description": "Handle confirm button click in dialog", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Click event object" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event) { this.setState({ open: false }); if (this.props.onConfirm) { this.props.onConfirm(event); } }" - }, - { - "id": "handleCancel", - "namespace": "confirm", - "name": "handleCancel", - "description": "Handle cancel button click in dialog", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Click event object" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event) { this.setState({ open: false }); if (this.props.onCancel) { this.props.onCancel(event); } }" - }, - { - "id": "handleClose", - "namespace": "confirm", - "name": "handleClose", - "description": "Handle dialog close event", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Close event object" - }, - { - "name": "reason", - "type": "string", - "required": false, - "description": "Close reason (backdropClick, escapeKeyDown)" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event, reason) { if (reason !== 'backdropClick') { this.setState({ open: false }); if (this.props.onClose) { this.props.onClose(event, reason); } } }" - }, - { - "id": "handleSubmit", - "namespace": "confirm", - "name": "handleSubmit", - "description": "Handle form submission in form dialog", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Submit event object" - } - ], - "returns": { - "type": "Promise" - }, - "implementation": "async function(event) { event.preventDefault(); const isValid = this.validate(); if (!isValid) return; this.setState({ isSubmitting: true }); try { if (this.props.onSubmit) { await this.props.onSubmit(event); } this.setState({ open: false, isSubmitting: false }); } catch (error) { this.setState({ isSubmitting: false }); throw error; } }" - }, - { - "id": "validate", - "namespace": "confirm", - "name": "validate", - "description": "Validate form fields in form dialog", - "parameters": [], - "returns": { - "type": "boolean", - "description": "True if validation passes" - }, - "implementation": "function() { if (this.props.validate) { return this.props.validate(); } return true; }" - }, - { - "id": "handleAlertConfirm", - "namespace": "alert", - "name": "handleConfirm", - "description": "Handle OK button click in alert dialog", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Click event object" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event) { this.setState({ open: false }); if (this.props.onConfirm) { this.props.onConfirm(event); } }" - }, - { - "id": "handleAlertClose", - "namespace": "alert", - "name": "handleClose", - "description": "Handle alert dialog close event", - "parameters": [ - { - "name": "event", - "type": "object", - "required": true, - "description": "Close event object" - }, - { - "name": "reason", - "type": "string", - "required": false, - "description": "Close reason" - } - ], - "returns": { - "type": "void" - }, - "implementation": "function(event, reason) { this.setState({ open: false }); if (this.props.onClose) { this.props.onClose(event, reason); } }" - } - ] -} diff --git a/packages/ui_footer/scripts/functions.json b/packages/ui_footer/scripts/functions.json deleted file mode 100644 index 17b2bc472..000000000 --- a/packages/ui_footer/scripts/functions.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_footer", - "description": "Footer rendering and lifecycle management functions", - "functions": [ - { - "id": "footer_init", - "name": "onInstall", - "exported": true, - "description": "Package lifecycle installation hook", - "category": "lifecycle" - }, - { - "id": "footer_render", - "name": "render", - "exported": true, - "description": "Render footer component with props", - "category": "ui" - }, - { - "id": "footer_render_simple", - "name": "renderSimple", - "exported": true, - "description": "Render simple footer variant", - "category": "ui" - }, - { - "id": "footer_get_links", - "name": "getFooterLinks", - "exported": true, - "description": "Get footer navigation links configuration", - "category": "data" - } - ], - "exports": { - "functions": [ - "onInstall", - "render", - "renderSimple", - "getFooterLinks" - ] - } -} diff --git a/packages/ui_header/scripts/functions.json b/packages/ui_header/scripts/functions.json deleted file mode 100644 index 5ff2a3314..000000000 --- a/packages/ui_header/scripts/functions.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_header", - "description": "Header rendering and lifecycle functions", - "functions": [ - { - "id": "header_init", - "name": "onInstall", - "exported": true, - "description": "Package lifecycle install handler", - "category": "lifecycle" - }, - { - "id": "render_logo", - "name": "renderLogo", - "exported": true, - "description": "Render header logo section", - "category": "render" - }, - { - "id": "render_user", - "name": "renderUser", - "exported": true, - "description": "Render header user section with avatar or auth buttons", - "category": "render" - }, - { - "id": "render_actions", - "name": "renderActions", - "exported": true, - "description": "Render header action buttons", - "category": "render" - }, - { - "id": "render_init", - "name": "render", - "exported": true, - "description": "Main render module combining logo, user, and actions", - "category": "render" - } - ], - "exports": { - "functions": [ - "onInstall", - "renderLogo", - "renderUser", - "renderActions", - "render" - ] - } -} diff --git a/packages/ui_home/scripts/functions.json b/packages/ui_home/scripts/functions.json deleted file mode 100644 index bcfd335cd..000000000 --- a/packages/ui_home/scripts/functions.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_home", - "description": "Home page navigation and lifecycle functions", - "functions": [ - { - "id": "lifecycle_install", - "name": "onInstall", - "exported": true, - "description": "Package installation handler", - "category": "lifecycle" - }, - { - "id": "lifecycle_uninstall", - "name": "onUninstall", - "exported": true, - "description": "Package uninstallation handler", - "category": "lifecycle" - }, - { - "id": "navigate_to_level2", - "name": "toLevel2", - "exported": true, - "description": "Navigate to Level 2 user area", - "category": "navigation" - }, - { - "id": "navigate_to_level3", - "name": "toLevel3", - "exported": true, - "description": "Navigate to Level 3 moderator panel", - "category": "navigation" - }, - { - "id": "navigate_open_docs", - "name": "openDocs", - "exported": true, - "description": "Open documentation", - "category": "navigation" - } - ], - "exports": { - "functions": [ - "onInstall", - "onUninstall", - "toLevel2", - "toLevel3", - "openDocs" - ] - } -} diff --git a/packages/ui_intro/scripts/functions.json b/packages/ui_intro/scripts/functions.json deleted file mode 100644 index a23ed9d34..000000000 --- a/packages/ui_intro/scripts/functions.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_intro", - "description": "Intro section initialization and rendering functions", - "functions": [ - { - "id": "intro_init", - "name": "onInstall", - "exported": true, - "description": "Package lifecycle handler for installation", - "category": "lifecycle" - }, - { - "id": "intro_render", - "name": "render", - "exported": true, - "description": "Renders intro section component", - "category": "ui" - }, - { - "id": "intro_validate_props", - "name": "validateProps", - "exported": true, - "description": "Validates intro section props", - "category": "validation" - } - ], - "exports": { - "functions": [ - "onInstall", - "render", - "validateProps" - ] - } -} diff --git a/packages/ui_level2/scripts/functions.json b/packages/ui_level2/scripts/functions.json deleted file mode 100644 index a2e7921b9..000000000 --- a/packages/ui_level2/scripts/functions.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_level2", - "description": "Level 2 user dashboard layout, profile, and comments management functions", - "functions": [ - { - "id": "layout_render", - "name": "renderLayout", - "exported": true, - "description": "Render the main Level 2 layout component", - "category": "ui" - }, - { - "id": "layout_tabs", - "name": "renderTabs", - "exported": true, - "description": "Render tabs component with profile, comments, and chat sections", - "category": "ui" - }, - { - "id": "profile_render", - "name": "renderProfile", - "exported": true, - "description": "Render the profile panel", - "category": "ui" - }, - { - "id": "profile_save", - "name": "saveProfile", - "exported": true, - "description": "Save user profile changes", - "category": "data" - }, - { - "id": "comments_render", - "name": "renderComments", - "exported": true, - "description": "Render the comments panel", - "category": "ui" - }, - { - "id": "comments_list", - "name": "listComments", - "exported": true, - "description": "List user comments", - "category": "data" - }, - { - "id": "comments_post", - "name": "postComment", - "exported": true, - "description": "Post a new comment", - "category": "data" - }, - { - "id": "comments_composer", - "name": "renderComposer", - "exported": true, - "description": "Render the comment composer component", - "category": "ui" - } - ], - "exports": { - "functions": [ - "renderLayout", - "renderTabs", - "renderProfile", - "saveProfile", - "renderComments", - "listComments", - "postComment", - "renderComposer" - ] - } -} diff --git a/packages/ui_level3/scripts/functions.json b/packages/ui_level3/scripts/functions.json deleted file mode 100644 index e04b57e72..000000000 --- a/packages/ui_level3/scripts/functions.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_level3", - "description": "Moderator panel functions for layout, user management, and content moderation", - "functions": [ - { - "id": "layout_render", - "name": "render", - "exported": true, - "description": "Render the main moderator panel layout", - "category": "layout" - }, - { - "id": "layout_stats", - "name": "stats", - "exported": true, - "description": "Generate statistics grid for dashboard", - "category": "layout" - }, - { - "id": "layout_tabs", - "name": "tabs", - "exported": true, - "description": "Create tabbed navigation interface", - "category": "layout" - }, - { - "id": "layout_admin_sidebar", - "name": "adminSidebar", - "exported": true, - "description": "Generate admin sidebar component", - "category": "layout" - }, - { - "id": "layout_admin_toolbar", - "name": "adminToolbar", - "exported": true, - "description": "Generate admin toolbar component", - "category": "layout" - }, - { - "id": "layout_admin_content", - "name": "adminContent", - "exported": true, - "description": "Generate admin content area", - "category": "layout" - }, - { - "id": "users_render", - "name": "renderUsers", - "exported": true, - "description": "Render users table with actions", - "category": "users" - }, - { - "id": "moderation_delete_user", - "name": "deleteUser", - "exported": true, - "description": "Delete a user account", - "category": "moderation" - }, - { - "id": "moderation_edit_user", - "name": "editUser", - "exported": true, - "description": "Edit user account details", - "category": "moderation" - }, - { - "id": "moderation_ban_user", - "name": "banUser", - "exported": true, - "description": "Ban a user with reason", - "category": "moderation" - } - ], - "exports": { - "functions": [ - "render", - "stats", - "tabs", - "adminSidebar", - "adminToolbar", - "adminContent", - "renderUsers", - "deleteUser", - "editUser", - "banUser" - ] - } -} diff --git a/packages/ui_level4/scripts/functions.json b/packages/ui_level4/scripts/functions.json deleted file mode 100644 index b9cc74fee..000000000 --- a/packages/ui_level4/scripts/functions.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_level4", - "description": "Level 4 Admin Panel layout, schema, and workflow management functions", - "functions": [ - { - "id": "layout_init", - "name": "initLayout", - "exported": true, - "description": "Initialize Level 4 layout module", - "category": "lifecycle" - }, - { - "id": "layout_render", - "name": "render", - "exported": true, - "description": "Render main Level 4 application builder layout", - "category": "layout" - }, - { - "id": "layout_tabs", - "name": "tabs", - "exported": true, - "description": "Render tabbed interface for Schemas, Workflows, and Scripts", - "category": "layout" - }, - { - "id": "layout_god_sidebar", - "name": "godSidebar", - "exported": true, - "description": "Render God panel sidebar with dark theme", - "category": "layout" - }, - { - "id": "layout_god_toolbar", - "name": "godToolbar", - "exported": true, - "description": "Render God panel toolbar with system status", - "category": "layout" - }, - { - "id": "layout_god_content", - "name": "godContent", - "exported": true, - "description": "Render God panel main content area", - "category": "layout" - }, - { - "id": "schemas_render", - "name": "renderSchemas", - "exported": true, - "description": "Render schemas tab content", - "category": "ui" - }, - { - "id": "workflows_render", - "name": "renderWorkflows", - "exported": true, - "description": "Render workflows tab with workflow cards", - "category": "ui" - }, - { - "id": "workflows_add", - "name": "addWorkflow", - "exported": true, - "description": "Open add workflow dialog", - "category": "actions" - } - ], - "exports": { - "functions": [ - "initLayout", - "render", - "tabs", - "godSidebar", - "godToolbar", - "godContent", - "renderSchemas", - "renderWorkflows", - "addWorkflow" - ] - } -} diff --git a/packages/ui_level5/scripts/functions.json b/packages/ui_level5/scripts/functions.json deleted file mode 100644 index bb55fabee..000000000 --- a/packages/ui_level5/scripts/functions.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_level5", - "description": "Level 5 God Panel functions for layout, tenant management, and data transfer", - "functions": [ - { - "id": "layout_render", - "name": "render", - "exported": true, - "description": "Render the main Level 5 layout", - "category": "ui" - }, - { - "id": "layout_navigator", - "name": "navigator", - "exported": true, - "description": "Render navigation tabs component", - "category": "ui" - }, - { - "id": "layout_supergod_sidebar", - "name": "supergodSidebar", - "exported": true, - "description": "Render supergod sidebar component", - "category": "layout" - }, - { - "id": "layout_supergod_toolbar", - "name": "supergodToolbar", - "exported": true, - "description": "Render supergod toolbar component", - "category": "layout" - }, - { - "id": "layout_supergod_content", - "name": "supergodContent", - "exported": true, - "description": "Render supergod main content area", - "category": "layout" - }, - { - "id": "tenants_render", - "name": "renderTenants", - "exported": true, - "description": "Render tenants management panel", - "category": "ui" - }, - { - "id": "tenants_create", - "name": "createTenant", - "exported": true, - "description": "Create a new tenant", - "category": "actions" - }, - { - "id": "tenants_delete", - "name": "deleteTenant", - "exported": true, - "description": "Delete an existing tenant", - "category": "actions" - }, - { - "id": "transfer_initiate", - "name": "initiateTransfer", - "exported": true, - "description": "Initiate data transfer between tenants", - "category": "actions" - }, - { - "id": "transfer_confirm", - "name": "confirmTransfer", - "exported": true, - "description": "Confirm and execute pending transfer", - "category": "actions" - }, - { - "id": "transfer_assign_god", - "name": "assignGod", - "exported": true, - "description": "Assign god-level permissions to a user", - "category": "actions" - } - ], - "exports": { - "functions": [ - "render", - "navigator", - "supergodSidebar", - "supergodToolbar", - "supergodContent", - "renderTenants", - "createTenant", - "deleteTenant", - "initiateTransfer", - "confirmTransfer", - "assignGod" - ] - } -} diff --git a/packages/ui_level6/scripts/functions.json b/packages/ui_level6/scripts/functions.json deleted file mode 100644 index 4215a7955..000000000 --- a/packages/ui_level6/scripts/functions.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_level6", - "description": "Supergod panel functions for tenant management, ownership transfer, and system administration", - "functions": [ - { - "id": "layout_supergod_sidebar", - "name": "supergod_sidebar", - "exported": true, - "description": "Render supergod sidebar navigation", - "category": "layout" - }, - { - "id": "layout_supergod_toolbar", - "name": "supergod_toolbar", - "exported": true, - "description": "Render supergod toolbar", - "category": "layout" - }, - { - "id": "layout_supergod_content", - "name": "supergod_content", - "exported": true, - "description": "Render supergod content area", - "category": "layout" - }, - { - "id": "tenants_list", - "name": "tenant_list", - "exported": true, - "description": "Render tenant list component", - "category": "tenants" - }, - { - "id": "tenants_card", - "name": "tenant_card", - "exported": true, - "description": "Render tenant card component", - "category": "tenants" - }, - { - "id": "tenants_create_form", - "name": "create_tenant_form", - "exported": true, - "description": "Render create tenant form", - "category": "tenants" - }, - { - "id": "transfer_form", - "name": "transfer_form", - "exported": true, - "description": "Render ownership transfer form", - "category": "transfer" - }, - { - "id": "transfer_history", - "name": "transfer_history", - "exported": true, - "description": "Render transfer history table", - "category": "transfer" - }, - { - "id": "system_stats", - "name": "system_stats", - "exported": true, - "description": "Render system statistics", - "category": "system" - }, - { - "id": "system_health", - "name": "system_health", - "exported": true, - "description": "Render system health status", - "category": "system" - }, - { - "id": "system_logs", - "name": "system_logs", - "exported": true, - "description": "Render system log viewer", - "category": "system" - }, - { - "id": "system_maintenance_mode", - "name": "maintenance_mode", - "exported": true, - "description": "Render maintenance mode toggle", - "category": "system" - } - ], - "exports": { - "functions": [ - "supergod_sidebar", - "supergod_toolbar", - "supergod_content", - "tenant_list", - "tenant_card", - "create_tenant_form", - "transfer_form", - "transfer_history", - "system_stats", - "system_health", - "system_logs", - "maintenance_mode" - ] - } -} diff --git a/packages/ui_login/scripts/functions.json b/packages/ui_login/scripts/functions.json deleted file mode 100644 index 3533574e3..000000000 --- a/packages/ui_login/scripts/functions.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_login", - "description": "Login and registration validation and action handlers", - "functions": [ - { - "id": "validate_login", - "name": "validateLogin", - "exported": true, - "description": "Validate login form credentials", - "category": "validation" - }, - { - "id": "validate_register", - "name": "validateRegister", - "exported": true, - "description": "Validate registration form data", - "category": "validation" - }, - { - "id": "handle_login", - "name": "handleLogin", - "exported": true, - "description": "Process login form submission", - "category": "actions" - }, - { - "id": "handle_register", - "name": "handleRegister", - "exported": true, - "description": "Process registration form submission", - "category": "actions" - }, - { - "id": "on_install", - "name": "onInstall", - "exported": true, - "description": "Package installation lifecycle hook", - "category": "lifecycle" - }, - { - "id": "on_uninstall", - "name": "onUninstall", - "exported": true, - "description": "Package uninstallation lifecycle hook", - "category": "lifecycle" - } - ], - "exports": { - "functions": [ - "validateLogin", - "validateRegister", - "handleLogin", - "handleRegister", - "onInstall", - "onUninstall" - ] - } -} diff --git a/packages/ui_pages/scripts/functions.json b/packages/ui_pages/scripts/functions.json deleted file mode 100644 index a3b740178..000000000 --- a/packages/ui_pages/scripts/functions.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_pages", - "description": "UI pages management and routing functions", - "functions": [ - { - "id": "pages_register", - "name": "register", - "exported": true, - "description": "Register a page definition", - "category": "pages" - }, - { - "id": "pages_unregister", - "name": "unregister", - "exported": true, - "description": "Unregister a page by ID", - "category": "pages" - }, - { - "id": "pages_get", - "name": "get", - "exported": true, - "description": "Get page definition by ID", - "category": "pages" - }, - { - "id": "pages_get_by_path", - "name": "getByPath", - "exported": true, - "description": "Get page definition by route path", - "category": "pages" - }, - { - "id": "pages_list", - "name": "list", - "exported": true, - "description": "List all pages with optional filter", - "category": "pages" - }, - { - "id": "pages_render", - "name": "render", - "exported": true, - "description": "Render a page by ID with options", - "category": "pages" - }, - { - "id": "pages_check_access", - "name": "checkAccess", - "exported": true, - "description": "Check if user has access to a page", - "category": "pages" - }, - { - "id": "pages_navigate", - "name": "navigate", - "exported": true, - "description": "Navigate to a page by path or ID", - "category": "navigation" - }, - { - "id": "pages_get_routes", - "name": "getRoutes", - "exported": true, - "description": "Get all registered routes", - "category": "navigation" - } - ], - "exports": { - "functions": [ - "register", - "unregister", - "get", - "getByPath", - "list", - "render", - "checkAccess", - "navigate", - "getRoutes" - ] - } -} diff --git a/packages/ui_permissions/scripts/functions.json b/packages/ui_permissions/scripts/functions.json deleted file mode 100644 index 326391367..000000000 --- a/packages/ui_permissions/scripts/functions.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "ui_permissions", - "description": "Permission checking and level management functions for 6-level permission system", - "functions": [ - { - "id": "permissions_get_level", - "name": "getLevel", - "exported": true, - "description": "Get the permission level for a user based on their role", - "category": "security" - }, - { - "id": "permissions_can_access", - "name": "canAccess", - "exported": true, - "description": "Check if user has required permission level to access a resource", - "category": "security" - }, - { - "id": "permissions_is_moderator_or_above", - "name": "isModeratorOrAbove", - "exported": true, - "description": "Check if user is moderator level (3) or higher", - "category": "security" - }, - { - "id": "permissions_is_admin_or_above", - "name": "isAdminOrAbove", - "exported": true, - "description": "Check if user is admin level (4) or higher", - "category": "security" - }, - { - "id": "permissions_init", - "name": "init", - "exported": false, - "description": "Package lifecycle initialization", - "category": "lifecycle" - }, - { - "id": "permissions_levels", - "name": "levels", - "exported": true, - "description": "Permission level constants (PUBLIC=1, USER=2, MODERATOR=3, ADMIN=4, GOD=5, SUPERGOD=6)", - "category": "constants" - } - ], - "exports": { - "functions": [ - "getLevel", - "canAccess", - "isModeratorOrAbove", - "isAdminOrAbove", - "levels" - ] - } -} diff --git a/packages/user_manager/scripts/functions.json b/packages/user_manager/scripts/functions.json deleted file mode 100644 index 201c5cba4..000000000 --- a/packages/user_manager/scripts/functions.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "user_manager", - "description": "User management business logic functions", - "functions": [ - { - "id": "list_initialize", - "name": "initialize", - "exported": true, - "description": "Initialize user list with data loading", - "category": "lifecycle" - }, - { - "id": "list_filter_users", - "name": "filterUsers", - "exported": true, - "description": "Filter users based on search query", - "category": "data" - }, - { - "id": "list_sort_users", - "name": "sortUsers", - "exported": true, - "description": "Sort users by specified column", - "category": "data" - }, - { - "id": "list_select_user", - "name": "selectUser", - "exported": true, - "description": "Handle user selection", - "category": "data" - }, - { - "id": "list_refresh_users", - "name": "refreshUsers", - "exported": true, - "description": "Refresh user list from database", - "category": "data" - }, - { - "id": "actions_view_user", - "name": "viewUser", - "exported": true, - "description": "View detailed user information", - "category": "actions" - }, - { - "id": "actions_edit_user", - "name": "editUser", - "exported": true, - "description": "Edit user profile and settings", - "category": "actions" - }, - { - "id": "actions_create_user", - "name": "createUser", - "exported": true, - "description": "Create a new user account", - "category": "actions" - }, - { - "id": "actions_delete_user", - "name": "deleteUser", - "exported": true, - "description": "Delete a user account", - "category": "actions" - }, - { - "id": "actions_manage_permissions", - "name": "managePermissions", - "exported": true, - "description": "Manage user permissions and roles", - "category": "actions" - }, - { - "id": "actions_ban_user", - "name": "banUser", - "exported": true, - "description": "Ban or suspend a user", - "category": "actions" - }, - { - "id": "actions_activate_user", - "name": "activateUser", - "exported": true, - "description": "Activate a user account", - "category": "actions" - }, - { - "id": "actions_deactivate_user", - "name": "deactivateUser", - "exported": true, - "description": "Deactivate a user account", - "category": "actions" - }, - { - "id": "actions_reset_password", - "name": "resetPassword", - "exported": true, - "description": "Reset user password", - "category": "actions" - }, - { - "id": "actions_send_email", - "name": "sendEmail", - "exported": true, - "description": "Send email to user", - "category": "actions" - } - ], - "exports": { - "functions": [ - "initialize", - "filterUsers", - "sortUsers", - "selectUser", - "refreshUsers", - "viewUser", - "editUser", - "createUser", - "deleteUser", - "managePermissions", - "banUser", - "activateUser", - "deactivateUser", - "resetPassword", - "sendEmail" - ] - } -} diff --git a/packages/workflow_editor/scripts/functions.json b/packages/workflow_editor/scripts/functions.json deleted file mode 100644 index 48494795c..000000000 --- a/packages/workflow_editor/scripts/functions.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "workflow_editor", - "description": "Workflow creation, editing, and execution functions", - "functions": [ - { - "id": "editor_save", - "name": "saveWorkflow", - "exported": true, - "description": "Save workflow definition", - "category": "editor" - }, - { - "id": "editor_load", - "name": "loadWorkflow", - "exported": true, - "description": "Load workflow definition", - "category": "editor" - }, - { - "id": "editor_add_node", - "name": "addNode", - "exported": true, - "description": "Add node to workflow", - "category": "editor" - }, - { - "id": "editor_delete_node", - "name": "deleteNode", - "exported": true, - "description": "Delete node from workflow", - "category": "editor" - }, - { - "id": "editor_connect_nodes", - "name": "connectNodes", - "exported": true, - "description": "Connect two workflow nodes", - "category": "editor" - }, - { - "id": "run_execute", - "name": "executeWorkflow", - "exported": true, - "description": "Execute workflow", - "category": "execution" - }, - { - "id": "run_cancel", - "name": "cancelWorkflow", - "exported": true, - "description": "Cancel running workflow", - "category": "execution" - }, - { - "id": "run_retry", - "name": "retryWorkflow", - "exported": true, - "description": "Retry failed workflow", - "category": "execution" - }, - { - "id": "status_get", - "name": "getStatus", - "exported": true, - "description": "Get workflow run status", - "category": "monitoring" - }, - { - "id": "status_list_runs", - "name": "listRuns", - "exported": true, - "description": "List workflow runs", - "category": "monitoring" - } - ], - "exports": { - "functions": [ - "saveWorkflow", - "loadWorkflow", - "addNode", - "deleteNode", - "connectNodes", - "executeWorkflow", - "cancelWorkflow", - "retryWorkflow", - "getStatus", - "listRuns" - ] - } -} diff --git a/schemas/package-schemas/examples/complete-package/scripts/functions.json b/schemas/package-schemas/examples/complete-package/scripts/functions.json deleted file mode 100644 index 70278312f..000000000 --- a/schemas/package-schemas/examples/complete-package/scripts/functions.json +++ /dev/null @@ -1,569 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "complete-example", - "description": "Business logic functions for complete example package", - "imports": [ - { - "from": "@stdlib/string", - "import": ["trim", "toLowerCase"] - }, - { - "from": "@stdlib/validation", - "import": ["isEmail"] - } - ], - "functions": [ - { - "id": "get_users", - "name": "getUsers", - "exported": true, - "async": true, - "params": [ - { - "name": "page", - "type": "number", - "default": 1 - }, - { - "name": "limit", - "type": "number", - "default": 20 - }, - { - "name": "role", - "type": "UserRole", - "optional": true - } - ], - "returnType": "Promise", - "body": [ - { - "type": "const_declaration", - "name": "offset", - "value": { - "type": "binary_expression", - "operator": "*", - "left": { - "type": "binary_expression", - "operator": "-", - "left": { - "type": "identifier", - "name": "page" - }, - "right": { - "type": "literal", - "value": 1 - } - }, - "right": { - "type": "identifier", - "name": "limit" - } - } - }, - { - "type": "const_declaration", - "name": "users", - "value": { - "type": "await_expression", - "argument": { - "type": "call_expression", - "callee": "db.query", - "args": [ - { - "type": "object_literal", - "properties": [ - { - "key": "table", - "value": { - "type": "literal", - "value": "users" - } - }, - { - "key": "limit", - "value": { - "type": "identifier", - "name": "limit" - } - }, - { - "key": "offset", - "value": { - "type": "identifier", - "name": "offset" - } - }, - { - "key": "where", - "value": { - "type": "conditional_expression", - "test": { - "type": "identifier", - "name": "role" - }, - "consequent": { - "type": "object_literal", - "properties": [ - { - "key": "role", - "value": { - "type": "identifier", - "name": "role" - } - } - ] - }, - "alternate": { - "type": "object_literal", - "properties": [] - } - } - } - ] - } - ] - } - } - }, - { - "type": "return", - "value": { - "type": "identifier", - "name": "users" - } - } - ], - "docstring": { - "summary": "Retrieves paginated list of users", - "params": [ - { - "name": "page", - "description": "Page number (1-based)" - }, - { - "name": "limit", - "description": "Number of users per page" - }, - { - "name": "role", - "description": "Filter by user role", - "optional": true - } - ], - "returns": { - "type": "Promise", - "description": "Array of user objects" - } - } - }, - { - "id": "get_user", - "name": "getUser", - "exported": true, - "async": true, - "params": [ - { - "name": "id", - "type": "string", - "sanitize": true - } - ], - "returnType": "Promise", - "body": [ - { - "type": "const_declaration", - "name": "user", - "value": { - "type": "await_expression", - "argument": { - "type": "call_expression", - "callee": "db.findOne", - "args": [ - { - "type": "literal", - "value": "users" - }, - { - "type": "object_literal", - "properties": [ - { - "key": "id", - "value": { - "type": "identifier", - "name": "id" - } - } - ] - } - ] - } - } - }, - { - "type": "return", - "value": { - "type": "identifier", - "name": "user" - } - } - ], - "docstring": { - "summary": "Retrieves a single user by ID", - "params": [ - { - "name": "id", - "description": "User UUID" - } - ], - "returns": { - "type": "Promise", - "description": "User object or null if not found" - } - } - }, - { - "id": "create_user", - "name": "createUser", - "exported": true, - "async": true, - "params": [ - { - "name": "input", - "type": "CreateUserInput", - "sanitize": true - } - ], - "returnType": "Promise", - "body": [ - { - "type": "comment", - "text": "Validate input" - }, - { - "type": "const_declaration", - "name": "validation", - "value": { - "type": "await_expression", - "argument": { - "type": "call_expression", - "callee": "validateUserCreate", - "args": [ - { - "type": "identifier", - "name": "input" - } - ] - } - } - }, - { - "type": "if_statement", - "condition": { - "type": "unary_expression", - "operator": "!", - "argument": { - "type": "member_access", - "object": { - "type": "identifier", - "name": "validation" - }, - "property": "valid" - } - }, - "then": [ - { - "type": "throw", - "argument": { - "type": "object_literal", - "properties": [ - { - "key": "code", - "value": { - "type": "literal", - "value": "VALIDATION_ERROR" - } - }, - { - "key": "errors", - "value": { - "type": "member_access", - "object": { - "type": "identifier", - "name": "validation" - }, - "property": "errors" - } - } - ] - } - } - ] - }, - { - "type": "comment", - "text": "Hash password" - }, - { - "type": "const_declaration", - "name": "passwordHash", - "value": { - "type": "await_expression", - "argument": { - "type": "call_expression", - "callee": "bcrypt.hash", - "args": [ - { - "type": "member_access", - "object": { - "type": "identifier", - "name": "input" - }, - "property": "password" - }, - { - "type": "literal", - "value": 10 - } - ] - } - } - }, - { - "type": "comment", - "text": "Create user" - }, - { - "type": "const_declaration", - "name": "user", - "value": { - "type": "await_expression", - "argument": { - "type": "call_expression", - "callee": "db.create", - "args": [ - { - "type": "literal", - "value": "users" - }, - { - "type": "object_literal", - "properties": [ - { - "key": "email", - "value": { - "type": "member_access", - "object": { - "type": "identifier", - "name": "input" - }, - "property": "email" - } - }, - { - "key": "name", - "value": { - "type": "member_access", - "object": { - "type": "identifier", - "name": "input" - }, - "property": "name" - } - }, - { - "key": "passwordHash", - "value": { - "type": "identifier", - "name": "passwordHash" - } - }, - { - "key": "role", - "value": { - "type": "literal", - "value": "user" - } - }, - { - "key": "isActive", - "value": { - "type": "literal", - "value": true - } - } - ] - } - ] - } - } - }, - { - "type": "return", - "value": { - "type": "identifier", - "name": "user" - } - } - ], - "docstring": { - "summary": "Creates a new user", - "params": [ - { - "name": "input", - "description": "User creation data" - } - ], - "returns": { - "type": "Promise", - "description": "Created user object" - }, - "throws": [ - { - "type": "ValidationError", - "description": "When input validation fails" - } - ] - } - }, - { - "id": "update_user", - "name": "updateUser", - "exported": true, - "async": true, - "params": [ - { - "name": "id", - "type": "string", - "sanitize": true - }, - { - "name": "updates", - "type": "Partial", - "sanitize": true - } - ], - "returnType": "Promise", - "body": [ - { - "type": "const_declaration", - "name": "user", - "value": { - "type": "await_expression", - "argument": { - "type": "call_expression", - "callee": "db.update", - "args": [ - { - "type": "literal", - "value": "users" - }, - { - "type": "object_literal", - "properties": [ - { - "key": "id", - "value": { - "type": "identifier", - "name": "id" - } - } - ] - }, - { - "type": "identifier", - "name": "updates" - } - ] - } - } - }, - { - "type": "return", - "value": { - "type": "identifier", - "name": "user" - } - } - ], - "docstring": { - "summary": "Updates a user", - "params": [ - { - "name": "id", - "description": "User UUID" - }, - { - "name": "updates", - "description": "Fields to update" - } - ], - "returns": { - "type": "Promise", - "description": "Updated user object" - } - } - }, - { - "id": "delete_user", - "name": "deleteUser", - "exported": true, - "async": true, - "params": [ - { - "name": "id", - "type": "string", - "sanitize": true - } - ], - "returnType": "Promise", - "body": [ - { - "type": "expression_statement", - "expression": { - "type": "await_expression", - "argument": { - "type": "call_expression", - "callee": "db.softDelete", - "args": [ - { - "type": "literal", - "value": "users" - }, - { - "type": "object_literal", - "properties": [ - { - "key": "id", - "value": { - "type": "identifier", - "name": "id" - } - } - ] - } - ] - } - } - } - ], - "docstring": { - "summary": "Soft deletes a user", - "params": [ - { - "name": "id", - "description": "User UUID" - } - ], - "returns": { - "type": "Promise", - "description": "No return value" - } - } - } - ], - "exports": { - "functions": ["getUsers", "getUser", "createUser", "updateUser", "deleteUser"] - } -} diff --git a/schemas/package-schemas/examples/minimal-package/scripts/functions.json b/schemas/package-schemas/examples/minimal-package/scripts/functions.json deleted file mode 100644 index 7e4579617..000000000 --- a/schemas/package-schemas/examples/minimal-package/scripts/functions.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "$schema": "https://metabuilder.dev/schemas/json-script.schema.json", - "schemaVersion": "2.2.0", - "package": "minimal-example", - "description": "Simple greeting function", - "functions": [ - { - "id": "greet_user", - "name": "greetUser", - "exported": true, - "params": [ - { - "name": "name", - "type": "string", - "sanitize": true - } - ], - "returnType": "string", - "body": [ - { - "type": "return", - "value": { - "type": "template_literal", - "parts": [ - "Hello, ", - { - "type": "identifier", - "name": "name" - }, - "!" - ] - } - } - ], - "docstring": { - "summary": "Greets a user by name", - "params": [ - { - "name": "name", - "description": "The user's name" - } - ], - "returns": "A greeting message" - } - } - ] -} diff --git a/scripts/generate-package.ts b/scripts/generate-package.ts index 133d76713..1f67431d8 100644 --- a/scripts/generate-package.ts +++ b/scripts/generate-package.ts @@ -166,87 +166,6 @@ function generateMetadata(config: PackageConfig): string { return JSON.stringify(metadata, null, 2) } -function generateLifecycleScript(config: PackageConfig): string { - const script = { - $schema: 'https://metabuilder.dev/schemas/json-script.schema.json', - schemaVersion: '2.2.0', - package: config.packageId, - description: `${config.name} lifecycle hooks`, - functions: [ - { - id: 'on_install', - name: 'onInstall', - exported: true, - category: 'lifecycle', - description: 'Called when the package is installed', - params: [ - { - name: 'context', - type: 'object', - description: 'Installation context' - } - ], - returnType: 'object', - body: [ - { - type: 'return', - value: { - type: 'object_literal', - properties: [ - { - key: 'message', - value: { - type: 'literal', - value: `${config.name} installed successfully` - } - }, - { - key: 'version', - value: { - type: 'member_access', - object: { type: 'identifier', name: 'context' }, - property: 'version' - } - } - ] - } - } - ] - }, - { - id: 'on_uninstall', - name: 'onUninstall', - exported: true, - category: 'lifecycle', - description: 'Called when the package is uninstalled', - returnType: 'object', - body: [ - { - type: 'return', - value: { - type: 'object_literal', - properties: [ - { - key: 'message', - value: { - type: 'literal', - value: `${config.name} removed` - } - } - ] - } - } - ] - } - ], - exports: { - functions: ['onInstall', 'onUninstall'] - } - } - - return JSON.stringify(script, null, 2) -} - function generateMetadataTestJson(config: PackageConfig): string { const tests = { $schema: 'https://metabuilder.dev/schemas/tests.schema.json', @@ -492,7 +411,7 @@ function generate(config: PackageConfig): GeneratedFile[] { files.push({ path: 'seed/metadata.json', content: generateMetadata(config) }) files.push({ path: 'seed/components.json', content: generateComponentsJson(config) }) files.push({ path: 'seed/layout.json', content: generateLayoutJson(config) }) - files.push({ path: 'seed/scripts/functions.json', content: generateLifecycleScript(config) }) + // Removed functions.json generation - stick to proper script schema files with implementations files.push({ path: 'seed/index.ts', content: generateIndexTs(config) }) // Schema files