apexrest 2.1.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -101
- package/dist/codex-compat/.claude-plugin/marketplace.json +2 -2
- package/dist/codex-compat/plugins/apexrest-apex/.claude-plugin/plugin.json +5 -2
- package/dist/codex-compat/plugins/apexrest-apex/.codex-plugin/plugin.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/.mcp.json +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/blocks/generator.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/crm-26.2.yaml +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/crm.yaml +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/service-desk-26.2.yaml +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/service-desk.yaml +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-alert-confirm.md +177 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-cancel-dialog.md +220 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-close-dialog.md +224 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-debounce-throttle.md +330 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-delete-notification.md +199 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-refresh-after-dialog.md +282 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-region-class.md +193 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-show-error-message.md +154 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions.md +9 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/parameters.md +32618 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-close-dialog.md +269 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-execute-code.md +201 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-form-initialization.md +239 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/source-examples.md +938 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes.md +31 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/validations/recipes/validations-plsql-error.md +205 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/validations.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/icon/recipes/button-trigger-action.md +139 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/icon.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-confirmation.md +128 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-server-side-condition.md +160 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-submit-request.md +183 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon/recipes/button-dynamic-action.md +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon/recipes/button-redirect-items.md +155 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon.md +3 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text.md +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/catalog.md +7 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/checkbox-group/recipes/item-checkbox-group-columns.md +125 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/checkbox-group.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/date-picker/recipes/item-date-picker-range.md +121 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/date-picker.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image/parameters.md +7998 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image/recipes/item-display-image.md +118 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address/parameters.md +8564 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address/recipes/item-geocoded-address.md +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/number-field/recipes/item-number-field-format-mask.md +123 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/number-field.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/popup-lov/recipes/item-popup-lov-display-null.md +128 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/popup-lov.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/radio-group/recipes/item-radio-group-columns.md +123 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/radio-group.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor/parameters.md +8003 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor/recipes/item-rich-text-editor.md +126 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/select-list/recipes/item-select-list-shared-lov.md +149 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/select-list.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/shuttle/recipes/item-shuttle-shared-lov.md +157 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/shuttle.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/switch/recipes/item-switch-custom-values.md +123 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/switch.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/textarea/recipes/item-textarea-required-length.md +123 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/textarea.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/parameters.md +13322 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/recipes/breadcrumb.md +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/source-examples.md +20 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb.md +29 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-create-event-on-select.md +252 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-custom-navigation.md +360 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-custom-styling.md +156 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-delete-or-copy-on-click.md +271 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-standard-monthly.md +147 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-status-tracking.md +259 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-conference.md +153 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-drag-drop.md +146 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-time-format-toggle.md +330 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar.md +10 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/cards/recipes/cards-actions.md +193 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/cards.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-3d-effect.md +176 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-area-custom-legend.md +226 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bar-dual-axis.md +203 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bar-stacked-horizontal.md +170 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bubble.md +171 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-custom-tooltip.md +156 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-dashboard-combination.md +234 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-data-densification.md +169 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-gantt.md +188 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-line-with-area.md +197 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-links.md +188 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-scatter.md +167 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-series-color.md +143 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-status-meter-gauge.md +142 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-stock.md +173 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-zoom-scroll.md +168 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart.md +17 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-calendar.md +352 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-cards.md +430 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-content-row.md +599 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-dashboard.md +883 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-directory-groups.md +514 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-grouped-rows.md +663 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-map.md +379 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-search-only-report.md +408 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-timeline.md +510 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search.md +10 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form/recipes/form-dialog-buttons.md +247 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form/recipes/sectioned-form-expense-report.md +938 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form.md +3 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text/parameters.md +11842 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text/recipes/help-text.md +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-bbox-static.md +152 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-browser-location.md +138 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-extruded-polygons.md +155 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-geojson-icon-points.md +150 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-heat-map.md +143 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-lines-geojson.md +147 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-multi-layer-legend.md +220 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-points-lonlat.md +148 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-polygons-color-scheme.md +160 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map.md +10 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/region-display-selector/recipes/region-display-selector-icons.md +161 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/region-display-selector.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-accordion.md +152 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-collection-toolbar.md +205 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-dividers.md +155 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-empty-state.md +139 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content.md +5 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-notifications.md +141 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-percent-graph.md +151 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-suggestions.md +134 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report.md +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/contextual-info/recipes/contextual-info-row-based.md +138 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/contextual-info.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid/recipes/editable-grid-expense-lines.md +378 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid/recipes/interactive-grid-toolbar-download.md +200 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid.md +3 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-full-options.md +227 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-search-bar-actions.md +206 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-secondary.md +161 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report.md +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/template-components/content-row/recipes/directory-hero-search-content-row.md +476 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/template-components/content-row.md +2 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/index.json +3485 -739
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/manifest.json +245 -38
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/compiler-evidence.json +2103 -422
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-breadcrumb/pages/p00001-home.apx +46 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-breadcrumb/shared-components/breadcrumbs.apx +17 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-confirmation/pages/p00001-home.apx +60 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-dynamic-action/pages/p00001-home.apx +69 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-redirect-items/pages/p00001-home.apx +87 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-server-side-condition/pages/p00001-home.apx +90 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-submit-request/pages/p00001-home.apx +113 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-trigger-action/pages/p00001-home.apx +71 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-create-event-on-select/pages/p00001-home.apx +181 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-custom-navigation/pages/p00001-home.apx +292 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-custom-styling/pages/p00001-home.apx +88 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-delete-or-copy-on-click/pages/p00001-home.apx +200 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-standard-monthly/pages/p00001-home.apx +79 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-status-tracking/pages/p00001-home.apx +191 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-conference/pages/p00001-home.apx +85 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-drag-drop/pages/p00001-home.apx +78 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-time-format-toggle/pages/p00001-home.apx +260 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-cards-actions/pages/p00001-home.apx +125 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-3d-effect/pages/p00001-home.apx +108 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-area-custom-legend/pages/p00001-home.apx +158 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bar-dual-axis/pages/p00001-home.apx +135 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bar-stacked-horizontal/pages/p00001-home.apx +102 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bubble/pages/p00001-home.apx +103 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-custom-tooltip/pages/p00001-home.apx +88 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-dashboard-combination/pages/p00001-home.apx +166 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-data-densification/pages/p00001-home.apx +101 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-gantt/pages/p00001-home.apx +120 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-line-with-area/pages/p00001-home.apx +129 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-links/pages/p00001-home.apx +120 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-scatter/pages/p00001-home.apx +99 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-series-color/pages/p00001-home.apx +75 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-status-meter-gauge/pages/p00001-home.apx +74 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-stock/pages/p00001-home.apx +105 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-zoom-scroll/pages/p00001-home.apx +100 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-notifications/pages/p00001-home.apx +73 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-percent-graph/pages/p00001-home.apx +83 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-suggestions/pages/p00001-home.apx +66 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-contextual-info-row-based/pages/p00001-home.apx +70 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-directory-hero-search-content-row/pages/p00001-home.apx +406 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-alert-confirm/pages/p00001-home.apx +109 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00001-home.apx +48 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00002-dialog.apx +98 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00001-home.apx +48 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00002-dialog.apx +102 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-debounce-throttle/pages/p00001-home.apx +262 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-delete-notification/pages/p00001-home.apx +129 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00001-home.apx +109 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00002-dialog.apx +99 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-region-class/pages/p00001-home.apx +125 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-show-error-message/pages/p00001-home.apx +86 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-editable-grid-expense-lines/pages/p00001-home.apx +310 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-calendar/pages/p00001-home.apx +284 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-cards/pages/p00001-home.apx +362 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-content-row/pages/p00001-home.apx +531 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-dashboard/pages/p00001-home.apx +809 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-directory-groups/pages/p00001-home.apx +446 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-grouped-rows/pages/p00001-home.apx +595 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-map/pages/p00001-home.apx +311 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-search-only-report/pages/p00001-home.apx +340 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-timeline/pages/p00001-home.apx +442 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-form-dialog-buttons/pages/p00001-home.apx +179 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-help-text/pages/p00001-home.apx +69 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-grid-toolbar-download/pages/p00001-home.apx +132 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-full-options/pages/p00001-home.apx +159 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-search-bar-actions/pages/p00001-home.apx +138 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-secondary/pages/p00001-home.apx +93 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-checkbox-group-columns/pages/p00001-home.apx +55 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-date-picker-range/pages/p00001-home.apx +51 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-display-image/pages/p00001-home.apx +50 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-geocoded-address/pages/p00001-home.apx +66 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-number-field-format-mask/pages/p00001-home.apx +53 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-popup-lov-display-null/pages/p00001-home.apx +58 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-radio-group-columns/pages/p00001-home.apx +53 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-rich-text-editor/pages/p00001-home.apx +56 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-select-list-shared-lov/pages/p00001-home.apx +48 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-select-list-shared-lov/shared-components/lovs.apx +25 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-shuttle-shared-lov/pages/p00001-home.apx +50 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-shuttle-shared-lov/shared-components/lovs.apx +31 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-switch-custom-values/pages/p00001-home.apx +53 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-textarea-required-length/pages/p00001-home.apx +53 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-bbox-static/pages/p00001-home.apx +82 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-browser-location/pages/p00001-home.apx +70 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-extruded-polygons/pages/p00001-home.apx +87 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-geojson-icon-points/pages/p00001-home.apx +82 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-heat-map/pages/p00001-home.apx +75 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-lines-geojson/pages/p00001-home.apx +79 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-multi-layer-legend/pages/p00001-home.apx +152 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-points-lonlat/pages/p00001-home.apx +80 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-polygons-color-scheme/pages/p00001-home.apx +92 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-close-dialog/pages/p00001-home.apx +48 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-close-dialog/pages/p00002-dialog.apx +145 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-execute-code/pages/p00001-home.apx +130 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-form-initialization/pages/p00001-home.apx +171 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-region-display-selector-icons/pages/p00001-home.apx +93 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-sectioned-form-expense-report/pages/p00001-home.apx +870 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-accordion/pages/p00001-home.apx +84 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-collection-toolbar/pages/p00001-home.apx +137 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-dividers/pages/p00001-home.apx +87 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-empty-state/pages/p00001-home.apx +71 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-validations-plsql-error/pages/p00001-home.apx +134 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/registry.json +4973 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/docs/metrics/capacity-summary/recipes/unit-aware.md +3 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/index.json +408 -408
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/manifest.json +8 -8
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/compiler-evidence.json +3 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/registry.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/ux-extra-metrics-capacity-summary-unit-aware/pages/p00001-home.apx +2 -2
- package/dist/codex-compat/plugins/apexrest-apex/resources/policy/deployment-safety.md +197 -20
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/guides/upgrade-audit.md +13 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/guides.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/index.json +3 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/oracle-snapshot.json +2 -2
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/search.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/scaffold/observations.sql +126 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-blueprint.schema.json +17 -17
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-contract.schema.json +9 -2
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-entity.schema.json +5 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-field.schema.json +4 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-instance.schema.json +2 -8
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-parameters.schema.json +1 -5
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-plan.schema.json +102 -5
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-shared-resource.schema.json +82 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-state.schema.json +88 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/deploy-plan.schema.json +75 -3
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/operations.schema.json +488 -17
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/policy.schema.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/project.schema.json +61 -5
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/sync-state.schema.json +8 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/application.apx +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/toolchains/sources.lock.json +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/runtime/apexrest.mjs +154 -52
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-26MTCOZK.mjs +239 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-47GDU535.mjs +1020 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-4LEHTNYH.mjs +252 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-4MIZ34V4.mjs +280 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-6JZB7NDZ.mjs +33342 -0
- package/dist/{runtime/chunk-U7MVLA3R.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-CI5IU2PI.mjs} +433 -181
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-JZ5FIGSS.mjs → chunk-DJPW35KJ.mjs} +5 -5
- package/dist/{runtime/chunk-BLB5JLWO.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-GHVRIHN6.mjs} +834 -4808
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-JJYHZOQR.mjs +6608 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-AESZGFM2.mjs → chunk-LCNHRIKE.mjs} +6 -3
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-YEGSGHTV.mjs → chunk-LIG5PZ4K.mjs} +44 -12
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-2YXH4VEB.mjs → chunk-LIGDVE6F.mjs} +438 -154
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-WK445BKL.mjs → chunk-M5EC4OUI.mjs} +116 -41
- package/dist/{runtime/chunk-TE5VTEAH.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-MPKKOQVI.mjs} +349 -446
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-N3KQBIVW.mjs +252 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-PFOHMLO4.mjs +141 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-PNGZYZE7.mjs +4703 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-NBA54QYW.mjs → chunk-PS2GKOR2.mjs} +9 -6
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-T3UX6AQO.mjs → chunk-TBHIU7PZ.mjs} +170 -3432
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-TDM3E2NK.mjs +161 -0
- package/dist/{runtime/chunk-ZSDDYNF5.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-UKXRUJT4.mjs} +7 -5
- package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-BZZ3RV7L.mjs → chunk-XJ7FW7XH.mjs} +4 -4
- package/dist/codex-compat/plugins/apexrest-apex/runtime/mcp.mjs +1 -1
- package/dist/codex-compat/plugins/apexrest-apex/runtime/preview-oracle-worker.mjs +57 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/SKILL.md +11 -13
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-oracle-sync/SKILL.md +5 -1
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-oracle-sync/references/oracle-skills.md +19 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/SKILL.md +14 -11
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/peer-review.md +12 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/scaffold.md +115 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/upgrade.md +11 -0
- package/dist/resources/blocks/generator.json +1 -1
- package/dist/resources/blueprints/crm-26.2.yaml +1 -0
- package/dist/resources/blueprints/crm.yaml +1 -0
- package/dist/resources/blueprints/service-desk-26.2.yaml +1 -0
- package/dist/resources/blueprints/service-desk.yaml +1 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-alert-confirm.md +177 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-cancel-dialog.md +220 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-close-dialog.md +224 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-debounce-throttle.md +330 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-delete-notification.md +199 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-refresh-after-dialog.md +282 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-region-class.md +193 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-show-error-message.md +154 -0
- package/dist/resources/components/documents/business-logic/dynamic-actions.md +9 -1
- package/dist/resources/components/documents/business-logic/processes/parameters.md +32618 -0
- package/dist/resources/components/documents/business-logic/processes/recipes/processes-close-dialog.md +269 -0
- package/dist/resources/components/documents/business-logic/processes/recipes/processes-execute-code.md +201 -0
- package/dist/resources/components/documents/business-logic/processes/recipes/processes-form-initialization.md +239 -0
- package/dist/resources/components/documents/business-logic/processes/source-examples.md +938 -0
- package/dist/resources/components/documents/business-logic/processes.md +31 -0
- package/dist/resources/components/documents/business-logic/validations/recipes/validations-plsql-error.md +205 -0
- package/dist/resources/components/documents/business-logic/validations.md +2 -1
- package/dist/resources/components/documents/buttons/icon/recipes/button-trigger-action.md +139 -0
- package/dist/resources/components/documents/buttons/icon.md +2 -1
- package/dist/resources/components/documents/buttons/text/recipes/button-confirmation.md +128 -0
- package/dist/resources/components/documents/buttons/text/recipes/button-server-side-condition.md +160 -0
- package/dist/resources/components/documents/buttons/text/recipes/button-submit-request.md +183 -0
- package/dist/resources/components/documents/buttons/text-with-icon/recipes/button-dynamic-action.md +137 -0
- package/dist/resources/components/documents/buttons/text-with-icon/recipes/button-redirect-items.md +155 -0
- package/dist/resources/components/documents/buttons/text-with-icon.md +3 -1
- package/dist/resources/components/documents/buttons/text.md +4 -1
- package/dist/resources/components/documents/catalog.md +7 -1
- package/dist/resources/components/documents/items/checkbox-group/recipes/item-checkbox-group-columns.md +125 -0
- package/dist/resources/components/documents/items/checkbox-group.md +2 -1
- package/dist/resources/components/documents/items/date-picker/recipes/item-date-picker-range.md +121 -0
- package/dist/resources/components/documents/items/date-picker.md +2 -1
- package/dist/resources/components/documents/items/display-image/parameters.md +7998 -0
- package/dist/resources/components/documents/items/display-image/recipes/item-display-image.md +118 -0
- package/dist/resources/components/documents/items/display-image.md +27 -0
- package/dist/resources/components/documents/items/geocoded-address/parameters.md +8564 -0
- package/dist/resources/components/documents/items/geocoded-address/recipes/item-geocoded-address.md +137 -0
- package/dist/resources/components/documents/items/geocoded-address.md +27 -0
- package/dist/resources/components/documents/items/number-field/recipes/item-number-field-format-mask.md +123 -0
- package/dist/resources/components/documents/items/number-field.md +2 -1
- package/dist/resources/components/documents/items/popup-lov/recipes/item-popup-lov-display-null.md +128 -0
- package/dist/resources/components/documents/items/popup-lov.md +2 -1
- package/dist/resources/components/documents/items/radio-group/recipes/item-radio-group-columns.md +123 -0
- package/dist/resources/components/documents/items/radio-group.md +2 -1
- package/dist/resources/components/documents/items/rich-text-editor/parameters.md +8003 -0
- package/dist/resources/components/documents/items/rich-text-editor/recipes/item-rich-text-editor.md +126 -0
- package/dist/resources/components/documents/items/rich-text-editor.md +27 -0
- package/dist/resources/components/documents/items/select-list/recipes/item-select-list-shared-lov.md +149 -0
- package/dist/resources/components/documents/items/select-list.md +2 -1
- package/dist/resources/components/documents/items/shuttle/recipes/item-shuttle-shared-lov.md +157 -0
- package/dist/resources/components/documents/items/shuttle.md +2 -1
- package/dist/resources/components/documents/items/switch/recipes/item-switch-custom-values.md +123 -0
- package/dist/resources/components/documents/items/switch.md +2 -1
- package/dist/resources/components/documents/items/textarea/recipes/item-textarea-required-length.md +123 -0
- package/dist/resources/components/documents/items/textarea.md +2 -1
- package/dist/resources/components/documents/regions/breadcrumb/parameters.md +13322 -0
- package/dist/resources/components/documents/regions/breadcrumb/recipes/breadcrumb.md +137 -0
- package/dist/resources/components/documents/regions/breadcrumb/source-examples.md +20 -0
- package/dist/resources/components/documents/regions/breadcrumb.md +29 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-create-event-on-select.md +252 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-custom-navigation.md +360 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-custom-styling.md +156 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-delete-or-copy-on-click.md +271 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-standard-monthly.md +147 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-status-tracking.md +259 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-conference.md +153 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-drag-drop.md +146 -0
- package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-time-format-toggle.md +330 -0
- package/dist/resources/components/documents/regions/calendar.md +10 -1
- package/dist/resources/components/documents/regions/cards/recipes/cards-actions.md +193 -0
- package/dist/resources/components/documents/regions/cards.md +2 -1
- package/dist/resources/components/documents/regions/chart/recipes/chart-3d-effect.md +176 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-area-custom-legend.md +226 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-bar-dual-axis.md +203 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-bar-stacked-horizontal.md +170 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-bubble.md +171 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-custom-tooltip.md +156 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-dashboard-combination.md +234 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-data-densification.md +169 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-gantt.md +188 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-line-with-area.md +197 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-links.md +188 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-scatter.md +167 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-series-color.md +143 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-status-meter-gauge.md +142 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-stock.md +173 -0
- package/dist/resources/components/documents/regions/chart/recipes/chart-zoom-scroll.md +168 -0
- package/dist/resources/components/documents/regions/chart.md +17 -1
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-calendar.md +352 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-cards.md +430 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-content-row.md +599 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-dashboard.md +883 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-directory-groups.md +514 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-grouped-rows.md +663 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-map.md +379 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-search-only-report.md +408 -0
- package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-timeline.md +510 -0
- package/dist/resources/components/documents/regions/faceted-search.md +10 -1
- package/dist/resources/components/documents/regions/form/recipes/form-dialog-buttons.md +247 -0
- package/dist/resources/components/documents/regions/form/recipes/sectioned-form-expense-report.md +938 -0
- package/dist/resources/components/documents/regions/form.md +3 -1
- package/dist/resources/components/documents/regions/help-text/parameters.md +11842 -0
- package/dist/resources/components/documents/regions/help-text/recipes/help-text.md +137 -0
- package/dist/resources/components/documents/regions/help-text.md +27 -0
- package/dist/resources/components/documents/regions/map/recipes/map-bbox-static.md +152 -0
- package/dist/resources/components/documents/regions/map/recipes/map-browser-location.md +138 -0
- package/dist/resources/components/documents/regions/map/recipes/map-extruded-polygons.md +155 -0
- package/dist/resources/components/documents/regions/map/recipes/map-geojson-icon-points.md +150 -0
- package/dist/resources/components/documents/regions/map/recipes/map-heat-map.md +143 -0
- package/dist/resources/components/documents/regions/map/recipes/map-lines-geojson.md +147 -0
- package/dist/resources/components/documents/regions/map/recipes/map-multi-layer-legend.md +220 -0
- package/dist/resources/components/documents/regions/map/recipes/map-points-lonlat.md +148 -0
- package/dist/resources/components/documents/regions/map/recipes/map-polygons-color-scheme.md +160 -0
- package/dist/resources/components/documents/regions/map.md +10 -1
- package/dist/resources/components/documents/regions/region-display-selector/recipes/region-display-selector-icons.md +161 -0
- package/dist/resources/components/documents/regions/region-display-selector.md +2 -1
- package/dist/resources/components/documents/regions/static-content/recipes/static-content-accordion.md +152 -0
- package/dist/resources/components/documents/regions/static-content/recipes/static-content-collection-toolbar.md +205 -0
- package/dist/resources/components/documents/regions/static-content/recipes/static-content-dividers.md +155 -0
- package/dist/resources/components/documents/regions/static-content/recipes/static-content-empty-state.md +139 -0
- package/dist/resources/components/documents/regions/static-content.md +5 -1
- package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-notifications.md +141 -0
- package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-percent-graph.md +151 -0
- package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-suggestions.md +134 -0
- package/dist/resources/components/documents/reports/classic-report.md +4 -1
- package/dist/resources/components/documents/reports/contextual-info/recipes/contextual-info-row-based.md +138 -0
- package/dist/resources/components/documents/reports/contextual-info.md +2 -1
- package/dist/resources/components/documents/reports/interactive-grid/recipes/editable-grid-expense-lines.md +378 -0
- package/dist/resources/components/documents/reports/interactive-grid/recipes/interactive-grid-toolbar-download.md +200 -0
- package/dist/resources/components/documents/reports/interactive-grid.md +3 -1
- package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-full-options.md +227 -0
- package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-search-bar-actions.md +206 -0
- package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-secondary.md +161 -0
- package/dist/resources/components/documents/reports/interactive-report.md +4 -1
- package/dist/resources/components/documents/template-components/content-row/recipes/directory-hero-search-content-row.md +476 -0
- package/dist/resources/components/documents/template-components/content-row.md +2 -1
- package/dist/resources/components/index.json +3485 -739
- package/dist/resources/components/manifest.json +245 -38
- package/dist/resources/components/recipes/compiler-evidence.json +2103 -422
- package/dist/resources/components/recipes/internet-breadcrumb/pages/p00001-home.apx +46 -0
- package/dist/resources/components/recipes/internet-breadcrumb/shared-components/breadcrumbs.apx +17 -0
- package/dist/resources/components/recipes/internet-button-confirmation/pages/p00001-home.apx +60 -0
- package/dist/resources/components/recipes/internet-button-dynamic-action/pages/p00001-home.apx +69 -0
- package/dist/resources/components/recipes/internet-button-redirect-items/pages/p00001-home.apx +87 -0
- package/dist/resources/components/recipes/internet-button-server-side-condition/pages/p00001-home.apx +90 -0
- package/dist/resources/components/recipes/internet-button-submit-request/pages/p00001-home.apx +113 -0
- package/dist/resources/components/recipes/internet-button-trigger-action/pages/p00001-home.apx +71 -0
- package/dist/resources/components/recipes/internet-calendar-create-event-on-select/pages/p00001-home.apx +181 -0
- package/dist/resources/components/recipes/internet-calendar-custom-navigation/pages/p00001-home.apx +292 -0
- package/dist/resources/components/recipes/internet-calendar-custom-styling/pages/p00001-home.apx +88 -0
- package/dist/resources/components/recipes/internet-calendar-delete-or-copy-on-click/pages/p00001-home.apx +200 -0
- package/dist/resources/components/recipes/internet-calendar-standard-monthly/pages/p00001-home.apx +79 -0
- package/dist/resources/components/recipes/internet-calendar-status-tracking/pages/p00001-home.apx +191 -0
- package/dist/resources/components/recipes/internet-calendar-weekly-conference/pages/p00001-home.apx +85 -0
- package/dist/resources/components/recipes/internet-calendar-weekly-drag-drop/pages/p00001-home.apx +78 -0
- package/dist/resources/components/recipes/internet-calendar-weekly-time-format-toggle/pages/p00001-home.apx +260 -0
- package/dist/resources/components/recipes/internet-cards-actions/pages/p00001-home.apx +125 -0
- package/dist/resources/components/recipes/internet-chart-3d-effect/pages/p00001-home.apx +108 -0
- package/dist/resources/components/recipes/internet-chart-area-custom-legend/pages/p00001-home.apx +158 -0
- package/dist/resources/components/recipes/internet-chart-bar-dual-axis/pages/p00001-home.apx +135 -0
- package/dist/resources/components/recipes/internet-chart-bar-stacked-horizontal/pages/p00001-home.apx +102 -0
- package/dist/resources/components/recipes/internet-chart-bubble/pages/p00001-home.apx +103 -0
- package/dist/resources/components/recipes/internet-chart-custom-tooltip/pages/p00001-home.apx +88 -0
- package/dist/resources/components/recipes/internet-chart-dashboard-combination/pages/p00001-home.apx +166 -0
- package/dist/resources/components/recipes/internet-chart-data-densification/pages/p00001-home.apx +101 -0
- package/dist/resources/components/recipes/internet-chart-gantt/pages/p00001-home.apx +120 -0
- package/dist/resources/components/recipes/internet-chart-line-with-area/pages/p00001-home.apx +129 -0
- package/dist/resources/components/recipes/internet-chart-links/pages/p00001-home.apx +120 -0
- package/dist/resources/components/recipes/internet-chart-scatter/pages/p00001-home.apx +99 -0
- package/dist/resources/components/recipes/internet-chart-series-color/pages/p00001-home.apx +75 -0
- package/dist/resources/components/recipes/internet-chart-status-meter-gauge/pages/p00001-home.apx +74 -0
- package/dist/resources/components/recipes/internet-chart-stock/pages/p00001-home.apx +105 -0
- package/dist/resources/components/recipes/internet-chart-zoom-scroll/pages/p00001-home.apx +100 -0
- package/dist/resources/components/recipes/internet-classic-report-notifications/pages/p00001-home.apx +73 -0
- package/dist/resources/components/recipes/internet-classic-report-percent-graph/pages/p00001-home.apx +83 -0
- package/dist/resources/components/recipes/internet-classic-report-suggestions/pages/p00001-home.apx +66 -0
- package/dist/resources/components/recipes/internet-contextual-info-row-based/pages/p00001-home.apx +70 -0
- package/dist/resources/components/recipes/internet-directory-hero-search-content-row/pages/p00001-home.apx +406 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-alert-confirm/pages/p00001-home.apx +109 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00001-home.apx +48 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00002-dialog.apx +98 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00001-home.apx +48 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00002-dialog.apx +102 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-debounce-throttle/pages/p00001-home.apx +262 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-delete-notification/pages/p00001-home.apx +129 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00001-home.apx +109 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00002-dialog.apx +99 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-region-class/pages/p00001-home.apx +125 -0
- package/dist/resources/components/recipes/internet-dynamic-actions-show-error-message/pages/p00001-home.apx +86 -0
- package/dist/resources/components/recipes/internet-editable-grid-expense-lines/pages/p00001-home.apx +310 -0
- package/dist/resources/components/recipes/internet-faceted-search-calendar/pages/p00001-home.apx +284 -0
- package/dist/resources/components/recipes/internet-faceted-search-cards/pages/p00001-home.apx +362 -0
- package/dist/resources/components/recipes/internet-faceted-search-content-row/pages/p00001-home.apx +531 -0
- package/dist/resources/components/recipes/internet-faceted-search-dashboard/pages/p00001-home.apx +809 -0
- package/dist/resources/components/recipes/internet-faceted-search-directory-groups/pages/p00001-home.apx +446 -0
- package/dist/resources/components/recipes/internet-faceted-search-grouped-rows/pages/p00001-home.apx +595 -0
- package/dist/resources/components/recipes/internet-faceted-search-map/pages/p00001-home.apx +311 -0
- package/dist/resources/components/recipes/internet-faceted-search-search-only-report/pages/p00001-home.apx +340 -0
- package/dist/resources/components/recipes/internet-faceted-search-timeline/pages/p00001-home.apx +442 -0
- package/dist/resources/components/recipes/internet-form-dialog-buttons/pages/p00001-home.apx +179 -0
- package/dist/resources/components/recipes/internet-help-text/pages/p00001-home.apx +69 -0
- package/dist/resources/components/recipes/internet-interactive-grid-toolbar-download/pages/p00001-home.apx +132 -0
- package/dist/resources/components/recipes/internet-interactive-report-full-options/pages/p00001-home.apx +159 -0
- package/dist/resources/components/recipes/internet-interactive-report-search-bar-actions/pages/p00001-home.apx +138 -0
- package/dist/resources/components/recipes/internet-interactive-report-secondary/pages/p00001-home.apx +93 -0
- package/dist/resources/components/recipes/internet-item-checkbox-group-columns/pages/p00001-home.apx +55 -0
- package/dist/resources/components/recipes/internet-item-date-picker-range/pages/p00001-home.apx +51 -0
- package/dist/resources/components/recipes/internet-item-display-image/pages/p00001-home.apx +50 -0
- package/dist/resources/components/recipes/internet-item-geocoded-address/pages/p00001-home.apx +66 -0
- package/dist/resources/components/recipes/internet-item-number-field-format-mask/pages/p00001-home.apx +53 -0
- package/dist/resources/components/recipes/internet-item-popup-lov-display-null/pages/p00001-home.apx +58 -0
- package/dist/resources/components/recipes/internet-item-radio-group-columns/pages/p00001-home.apx +53 -0
- package/dist/resources/components/recipes/internet-item-rich-text-editor/pages/p00001-home.apx +56 -0
- package/dist/resources/components/recipes/internet-item-select-list-shared-lov/pages/p00001-home.apx +48 -0
- package/dist/resources/components/recipes/internet-item-select-list-shared-lov/shared-components/lovs.apx +25 -0
- package/dist/resources/components/recipes/internet-item-shuttle-shared-lov/pages/p00001-home.apx +50 -0
- package/dist/resources/components/recipes/internet-item-shuttle-shared-lov/shared-components/lovs.apx +31 -0
- package/dist/resources/components/recipes/internet-item-switch-custom-values/pages/p00001-home.apx +53 -0
- package/dist/resources/components/recipes/internet-item-textarea-required-length/pages/p00001-home.apx +53 -0
- package/dist/resources/components/recipes/internet-map-bbox-static/pages/p00001-home.apx +82 -0
- package/dist/resources/components/recipes/internet-map-browser-location/pages/p00001-home.apx +70 -0
- package/dist/resources/components/recipes/internet-map-extruded-polygons/pages/p00001-home.apx +87 -0
- package/dist/resources/components/recipes/internet-map-geojson-icon-points/pages/p00001-home.apx +82 -0
- package/dist/resources/components/recipes/internet-map-heat-map/pages/p00001-home.apx +75 -0
- package/dist/resources/components/recipes/internet-map-lines-geojson/pages/p00001-home.apx +79 -0
- package/dist/resources/components/recipes/internet-map-multi-layer-legend/pages/p00001-home.apx +152 -0
- package/dist/resources/components/recipes/internet-map-points-lonlat/pages/p00001-home.apx +80 -0
- package/dist/resources/components/recipes/internet-map-polygons-color-scheme/pages/p00001-home.apx +92 -0
- package/dist/resources/components/recipes/internet-processes-close-dialog/pages/p00001-home.apx +48 -0
- package/dist/resources/components/recipes/internet-processes-close-dialog/pages/p00002-dialog.apx +145 -0
- package/dist/resources/components/recipes/internet-processes-execute-code/pages/p00001-home.apx +130 -0
- package/dist/resources/components/recipes/internet-processes-form-initialization/pages/p00001-home.apx +171 -0
- package/dist/resources/components/recipes/internet-region-display-selector-icons/pages/p00001-home.apx +93 -0
- package/dist/resources/components/recipes/internet-sectioned-form-expense-report/pages/p00001-home.apx +870 -0
- package/dist/resources/components/recipes/internet-static-content-accordion/pages/p00001-home.apx +84 -0
- package/dist/resources/components/recipes/internet-static-content-collection-toolbar/pages/p00001-home.apx +137 -0
- package/dist/resources/components/recipes/internet-static-content-dividers/pages/p00001-home.apx +87 -0
- package/dist/resources/components/recipes/internet-static-content-empty-state/pages/p00001-home.apx +71 -0
- package/dist/resources/components/recipes/internet-validations-plsql-error/pages/p00001-home.apx +134 -0
- package/dist/resources/components/recipes/registry.json +4973 -0
- package/dist/resources/patterns/docs/metrics/capacity-summary/recipes/unit-aware.md +3 -3
- package/dist/resources/patterns/index.json +408 -408
- package/dist/resources/patterns/manifest.json +8 -8
- package/dist/resources/patterns/recipes/compiler-evidence.json +3 -3
- package/dist/resources/patterns/recipes/registry.json +1 -1
- package/dist/resources/patterns/recipes/ux-extra-metrics-capacity-summary-unit-aware/pages/p00001-home.apx +2 -2
- package/dist/resources/policy/deployment-safety.md +197 -20
- package/dist/resources/references/26.2/guides/upgrade-audit.md +13 -1
- package/dist/resources/references/26.2/guides.json +1 -1
- package/dist/resources/references/26.2/index.json +3 -3
- package/dist/resources/references/26.2/oracle-snapshot.json +2 -2
- package/dist/resources/references/26.2/search.json +1 -1
- package/dist/resources/scaffold/observations.sql +126 -0
- package/dist/resources/schemas/composer-blueprint.schema.json +17 -17
- package/dist/resources/schemas/composer-contract.schema.json +9 -2
- package/dist/resources/schemas/composer-entity.schema.json +5 -3
- package/dist/resources/schemas/composer-field.schema.json +4 -1
- package/dist/resources/schemas/composer-instance.schema.json +2 -8
- package/dist/resources/schemas/composer-parameters.schema.json +1 -5
- package/dist/resources/schemas/composer-plan.schema.json +102 -5
- package/dist/resources/schemas/composer-shared-resource.schema.json +82 -0
- package/dist/resources/schemas/composer-state.schema.json +88 -0
- package/dist/resources/schemas/deploy-plan.schema.json +75 -3
- package/dist/resources/schemas/operations.schema.json +488 -17
- package/dist/resources/schemas/policy.schema.json +1 -1
- package/dist/resources/schemas/project.schema.json +61 -5
- package/dist/resources/schemas/sync-state.schema.json +8 -0
- package/dist/resources/templates/blank-app/application/application.apx +1 -0
- package/dist/resources/toolchains/sources.lock.json +1 -1
- package/dist/runtime/apexrest.mjs +154 -52
- package/dist/runtime/chunk-26MTCOZK.mjs +239 -0
- package/dist/runtime/chunk-47GDU535.mjs +1020 -0
- package/dist/runtime/chunk-4LEHTNYH.mjs +252 -0
- package/dist/runtime/chunk-4MIZ34V4.mjs +280 -0
- package/dist/runtime/chunk-6JZB7NDZ.mjs +33342 -0
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-U7MVLA3R.mjs → runtime/chunk-CI5IU2PI.mjs} +433 -181
- package/dist/runtime/{chunk-JZ5FIGSS.mjs → chunk-DJPW35KJ.mjs} +5 -5
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-BLB5JLWO.mjs → runtime/chunk-GHVRIHN6.mjs} +834 -4808
- package/dist/runtime/chunk-JJYHZOQR.mjs +6608 -0
- package/dist/runtime/{chunk-AESZGFM2.mjs → chunk-LCNHRIKE.mjs} +6 -3
- package/dist/runtime/{chunk-YEGSGHTV.mjs → chunk-LIG5PZ4K.mjs} +44 -12
- package/dist/runtime/{chunk-2YXH4VEB.mjs → chunk-LIGDVE6F.mjs} +438 -154
- package/dist/runtime/{chunk-WK445BKL.mjs → chunk-M5EC4OUI.mjs} +116 -41
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-TE5VTEAH.mjs → runtime/chunk-MPKKOQVI.mjs} +349 -446
- package/dist/runtime/chunk-N3KQBIVW.mjs +252 -0
- package/dist/runtime/chunk-PFOHMLO4.mjs +141 -0
- package/dist/runtime/chunk-PNGZYZE7.mjs +4703 -0
- package/dist/runtime/{chunk-NBA54QYW.mjs → chunk-PS2GKOR2.mjs} +9 -6
- package/dist/runtime/{chunk-T3UX6AQO.mjs → chunk-TBHIU7PZ.mjs} +170 -3432
- package/dist/runtime/chunk-TDM3E2NK.mjs +161 -0
- package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-ZSDDYNF5.mjs → runtime/chunk-UKXRUJT4.mjs} +7 -5
- package/dist/runtime/{chunk-BZZ3RV7L.mjs → chunk-XJ7FW7XH.mjs} +4 -4
- package/dist/runtime/mcp.mjs +1 -1
- package/dist/runtime/preview-oracle-worker.mjs +57 -0
- package/package.json +8 -5
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-A7ESH6F5.mjs +0 -31
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-I5KYBPSK.mjs +0 -419
- package/dist/runtime/chunk-A7ESH6F5.mjs +0 -31
- package/dist/runtime/chunk-I5KYBPSK.mjs +0 -419
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
canonical,
|
|
4
|
+
hash
|
|
5
|
+
} from "./chunk-26MTCOZK.mjs";
|
|
6
|
+
import {
|
|
7
|
+
SQLCL_READ_TIMEOUT_MS,
|
|
8
|
+
SqlclMcpClient,
|
|
9
|
+
emitSqlclTiming,
|
|
10
|
+
executionTiming,
|
|
11
|
+
mcpCallOptions,
|
|
12
|
+
mcpFailure,
|
|
13
|
+
mcpResult
|
|
14
|
+
} from "./chunk-MPKKOQVI.mjs";
|
|
15
|
+
import {
|
|
16
|
+
Fault
|
|
17
|
+
} from "./chunk-CI5IU2PI.mjs";
|
|
18
|
+
|
|
19
|
+
// packages/core/src/sqlcl-session.ts
|
|
20
|
+
import { performance } from "node:perf_hooks";
|
|
21
|
+
var IDLE_MS = 10 * 60 * 1e3;
|
|
22
|
+
var PROBE_AFTER_MS = 30 * 1e3;
|
|
23
|
+
var PooledSession = class {
|
|
24
|
+
constructor(key, request) {
|
|
25
|
+
this.key = key;
|
|
26
|
+
this.client = new SqlclMcpClient(request);
|
|
27
|
+
this.readScope = request.readScope;
|
|
28
|
+
}
|
|
29
|
+
key;
|
|
30
|
+
busy = true;
|
|
31
|
+
dead = false;
|
|
32
|
+
lastUsed = Date.now();
|
|
33
|
+
idleTimer;
|
|
34
|
+
client;
|
|
35
|
+
readScope;
|
|
36
|
+
get alive() {
|
|
37
|
+
return !this.dead && this.client.alive;
|
|
38
|
+
}
|
|
39
|
+
kill() {
|
|
40
|
+
this.dead = true;
|
|
41
|
+
clearTimeout(this.idleTimer);
|
|
42
|
+
void this.client.close();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var pools = /* @__PURE__ */ new Map();
|
|
46
|
+
var exitHook = false;
|
|
47
|
+
var shutdownGeneration = 0;
|
|
48
|
+
function sqlclSessionKey(request) {
|
|
49
|
+
return hash(
|
|
50
|
+
canonical({
|
|
51
|
+
executable: request.executable,
|
|
52
|
+
javaHome: request.env?.JAVA_HOME ?? null,
|
|
53
|
+
args: request.args,
|
|
54
|
+
connectionName: request.connectionName ?? null,
|
|
55
|
+
commandConnect: request.commandConnect ?? false,
|
|
56
|
+
cwd: request.cwd,
|
|
57
|
+
readScope: request.readScope ?? null
|
|
58
|
+
})
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
function pool(key) {
|
|
62
|
+
let p = pools.get(key);
|
|
63
|
+
if (!p) pools.set(key, p = { sessions: [], waiters: [] });
|
|
64
|
+
return p;
|
|
65
|
+
}
|
|
66
|
+
function release(session) {
|
|
67
|
+
const p = pool(session.key);
|
|
68
|
+
session.busy = false;
|
|
69
|
+
if (session.alive) session.lastUsed = Date.now();
|
|
70
|
+
if (session.alive) {
|
|
71
|
+
session.client.transport.setActive(false);
|
|
72
|
+
clearTimeout(session.idleTimer);
|
|
73
|
+
session.idleTimer = setTimeout(() => {
|
|
74
|
+
if (!session.busy) discard(session);
|
|
75
|
+
}, IDLE_MS);
|
|
76
|
+
session.idleTimer.unref();
|
|
77
|
+
} else discard(session);
|
|
78
|
+
const waiter = p.waiters.shift();
|
|
79
|
+
waiter?.();
|
|
80
|
+
}
|
|
81
|
+
function discard(session) {
|
|
82
|
+
session.kill();
|
|
83
|
+
const p = pool(session.key);
|
|
84
|
+
p.sessions = p.sessions.filter((s) => s !== session);
|
|
85
|
+
if (!p.sessions.length && !p.waiters.length) pools.delete(session.key);
|
|
86
|
+
}
|
|
87
|
+
async function acquire(request, key) {
|
|
88
|
+
const generation = shutdownGeneration;
|
|
89
|
+
const limit = request.limit ?? (request.connectionName ? 1 : 2);
|
|
90
|
+
for (; ; ) {
|
|
91
|
+
if (generation !== shutdownGeneration) throw new Fault("CANCELLED", "SQLcl pool closed.", 6, "cancelled");
|
|
92
|
+
if (request.signal?.aborted) throw new Fault("CANCELLED", "SQLcl session cancelled.", 6, "cancelled");
|
|
93
|
+
const p = pool(key);
|
|
94
|
+
const idle = p.sessions.find((s) => !s.busy && s.alive);
|
|
95
|
+
if (idle) {
|
|
96
|
+
idle.busy = true;
|
|
97
|
+
clearTimeout(idle.idleTimer);
|
|
98
|
+
idle.client.transport.setActive(true);
|
|
99
|
+
return idle;
|
|
100
|
+
}
|
|
101
|
+
if (p.sessions.filter((s) => !s.dead && (s.busy || s.alive)).length < limit) {
|
|
102
|
+
const session = new PooledSession(key, request);
|
|
103
|
+
p.sessions.push(session);
|
|
104
|
+
installExitHook();
|
|
105
|
+
return session;
|
|
106
|
+
}
|
|
107
|
+
await new Promise((resolve) => {
|
|
108
|
+
const wake = () => {
|
|
109
|
+
request.signal?.removeEventListener("abort", wake);
|
|
110
|
+
p.waiters = p.waiters.filter((w) => w !== wake);
|
|
111
|
+
resolve();
|
|
112
|
+
};
|
|
113
|
+
p.waiters.push(wake);
|
|
114
|
+
request.signal?.addEventListener("abort", wake, { once: true });
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function installExitHook() {
|
|
119
|
+
if (exitHook) return;
|
|
120
|
+
exitHook = true;
|
|
121
|
+
process.on("exit", () => {
|
|
122
|
+
for (const p of pools.values()) for (const session of p.sessions) session.kill();
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
async function prepare(session, request, options, timing) {
|
|
126
|
+
const fresh = !session.client.alive;
|
|
127
|
+
if (fresh) {
|
|
128
|
+
const spawnStarted = performance.now();
|
|
129
|
+
await session.client.open(options()());
|
|
130
|
+
timing.spawnMs = (timing.spawnMs ?? 0) + performance.now() - spawnStarted;
|
|
131
|
+
if (request.connectionName) {
|
|
132
|
+
const connectStarted = performance.now();
|
|
133
|
+
const connected = await session.client.connect(
|
|
134
|
+
request.connectionName,
|
|
135
|
+
options(),
|
|
136
|
+
request.commandConnect
|
|
137
|
+
);
|
|
138
|
+
timing.connectMs = (timing.connectMs ?? 0) + performance.now() - connectStarted;
|
|
139
|
+
if (connected.isError) return mcpResult(connected, session.client.text(connected));
|
|
140
|
+
}
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (request.connectionName && Date.now() - session.lastUsed > PROBE_AFTER_MS) {
|
|
144
|
+
const probe = await session.client.execute(
|
|
145
|
+
"select 1 as apexrest_probe from dual;",
|
|
146
|
+
options(),
|
|
147
|
+
() => false
|
|
148
|
+
);
|
|
149
|
+
if (probe.isError || !/apexrest_probe/i.test(session.client.text(probe)))
|
|
150
|
+
throw new Error("SQLcl session lost its database connection.");
|
|
151
|
+
}
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
async function runPooledSqlcl(request) {
|
|
155
|
+
if (request.signal?.aborted)
|
|
156
|
+
return { code: null, stdout: "", stderr: "", timedOut: false, cancelled: true, truncated: false };
|
|
157
|
+
const started = performance.now();
|
|
158
|
+
const timing = executionTiming(
|
|
159
|
+
"mcp-pool",
|
|
160
|
+
request.mutation,
|
|
161
|
+
!!request.connectionName || !!request.sqlclConnected
|
|
162
|
+
);
|
|
163
|
+
const key = sqlclSessionKey(request);
|
|
164
|
+
let session = await acquire(request, key);
|
|
165
|
+
if (request.mutation && session.client.alive) {
|
|
166
|
+
session.kill();
|
|
167
|
+
release(session);
|
|
168
|
+
session = await acquire(request, key);
|
|
169
|
+
}
|
|
170
|
+
timing.queueMs = performance.now() - started;
|
|
171
|
+
timing.reused = session.client.alive;
|
|
172
|
+
const deadline = Date.now() + (request.timeoutMs ?? SQLCL_READ_TIMEOUT_MS);
|
|
173
|
+
const options = () => mcpCallOptions(request, deadline);
|
|
174
|
+
let submitted = false;
|
|
175
|
+
let executeStarted;
|
|
176
|
+
try {
|
|
177
|
+
let failed;
|
|
178
|
+
try {
|
|
179
|
+
failed = await prepare(session, request, options, timing);
|
|
180
|
+
} catch (error) {
|
|
181
|
+
if (!session.client.alive || request.signal?.aborted || Date.now() >= deadline) throw error;
|
|
182
|
+
session.kill();
|
|
183
|
+
release(session);
|
|
184
|
+
session = await acquire(request, key);
|
|
185
|
+
failed = await prepare(session, request, options, timing);
|
|
186
|
+
}
|
|
187
|
+
if (failed) {
|
|
188
|
+
session.kill();
|
|
189
|
+
return failed;
|
|
190
|
+
}
|
|
191
|
+
submitted = true;
|
|
192
|
+
executeStarted = performance.now();
|
|
193
|
+
const result = await session.client.execute(request.input ?? "", options(), () => request.mutation);
|
|
194
|
+
timing.executeMs = performance.now() - executeStarted;
|
|
195
|
+
const output = session.client.text(result, request.mutation);
|
|
196
|
+
if (request.connectionName && !request.readScope || request.mutation || result.isError || /(?:ORA-|SP2-|PLS-)\d+/i.test(output) || request.completionMarker && !output.split(/\r?\n/).some((line) => line.trim() === request.completionMarker))
|
|
197
|
+
session.kill();
|
|
198
|
+
return mcpResult(result, output);
|
|
199
|
+
} catch (error) {
|
|
200
|
+
session.kill();
|
|
201
|
+
if (session.client.transport.outputLimitExceeded) throw mcpFailure(error, request, submitted, true);
|
|
202
|
+
if (error instanceof Fault) throw error;
|
|
203
|
+
const interrupted = request.signal?.aborted ? "cancelled" : Date.now() >= deadline ? "timedOut" : void 0;
|
|
204
|
+
if (interrupted)
|
|
205
|
+
return {
|
|
206
|
+
code: null,
|
|
207
|
+
stdout: "",
|
|
208
|
+
stderr: "",
|
|
209
|
+
timedOut: interrupted === "timedOut",
|
|
210
|
+
cancelled: interrupted === "cancelled",
|
|
211
|
+
truncated: false
|
|
212
|
+
};
|
|
213
|
+
throw mcpFailure(error, request, submitted);
|
|
214
|
+
} finally {
|
|
215
|
+
if (executeStarted !== void 0) timing.executeMs = performance.now() - executeStarted;
|
|
216
|
+
release(session);
|
|
217
|
+
emitSqlclTiming(request.onSqlclTiming, timing, started);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
async function closeSqlclSessions() {
|
|
221
|
+
shutdownGeneration++;
|
|
222
|
+
for (const p of pools.values()) for (const wake of [...p.waiters]) wake();
|
|
223
|
+
const sessions = [...pools.values()].flatMap((p) => p.sessions);
|
|
224
|
+
pools.clear();
|
|
225
|
+
await Promise.all(sessions.map((session) => session.client.close()));
|
|
226
|
+
for (const session of sessions) session.kill();
|
|
227
|
+
}
|
|
228
|
+
async function closeSqlclReadScope(readScope) {
|
|
229
|
+
const owned = [...pools.values()].flatMap((p) => p.sessions).filter((s) => s.readScope === readScope);
|
|
230
|
+
for (const session of owned) {
|
|
231
|
+
if (session.busy) session.kill();
|
|
232
|
+
else discard(session);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
function sqlclSessionStats() {
|
|
236
|
+
return [...pools.entries()].map(([key, p]) => ({
|
|
237
|
+
key,
|
|
238
|
+
sessions: p.sessions.filter((s) => s.alive).length,
|
|
239
|
+
busy: p.sessions.filter((s) => s.busy).length,
|
|
240
|
+
waiting: p.waiters.length
|
|
241
|
+
}));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export {
|
|
245
|
+
IDLE_MS,
|
|
246
|
+
PROBE_AFTER_MS,
|
|
247
|
+
sqlclSessionKey,
|
|
248
|
+
runPooledSqlcl,
|
|
249
|
+
closeSqlclSessions,
|
|
250
|
+
closeSqlclReadScope,
|
|
251
|
+
sqlclSessionStats
|
|
252
|
+
};
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// packages/core/src/preview/apexlang.ts
|
|
4
|
+
import fs from "node:fs";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
var ApexLangError = class extends Error {
|
|
7
|
+
file;
|
|
8
|
+
line;
|
|
9
|
+
constructor(message, file, line) {
|
|
10
|
+
super(`${file}:${line}: ${message}`);
|
|
11
|
+
this.file = file;
|
|
12
|
+
this.line = line;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var PROPERTY = /^("(?:[^"\\]|\\.)*"|[A-Za-z0-9_$.#-]+)\s*:(?:\s+(.*))?$/u;
|
|
16
|
+
var GROUP = /^([A-Za-z][\w-]*)\s*\{$/u;
|
|
17
|
+
var COMPONENT = /^([A-Za-z][\w]*)(?:\s+(.+?))?\s*\($/u;
|
|
18
|
+
function isRef(value) {
|
|
19
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && typeof value.ref === "string" && Object.keys(value).length === 2 && "global" in value;
|
|
20
|
+
}
|
|
21
|
+
function isObject(value) {
|
|
22
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && !isRef(value);
|
|
23
|
+
}
|
|
24
|
+
function unquote(raw) {
|
|
25
|
+
if (raw.startsWith('"') && raw.endsWith('"') && raw.length >= 2) {
|
|
26
|
+
try {
|
|
27
|
+
return JSON.parse(raw);
|
|
28
|
+
} catch {
|
|
29
|
+
return raw.slice(1, -1);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return raw;
|
|
33
|
+
}
|
|
34
|
+
function scalar(raw) {
|
|
35
|
+
const text = raw.trim();
|
|
36
|
+
if (text === "true") return true;
|
|
37
|
+
if (text === "false") return false;
|
|
38
|
+
if (text.startsWith('"') && text.endsWith('"') && text.length >= 2) return unquote(text);
|
|
39
|
+
if (text.length >= 2 && text.startsWith("\\") && text.endsWith("\\")) return text.slice(1, -1);
|
|
40
|
+
if (/^@\S+$/u.test(text) && !text.endsWith("@")) {
|
|
41
|
+
return text.startsWith("@/") ? { ref: text.slice(2), global: true } : { ref: text.slice(1), global: false };
|
|
42
|
+
}
|
|
43
|
+
return text;
|
|
44
|
+
}
|
|
45
|
+
function inlineArray(text) {
|
|
46
|
+
const body = text.slice(1, -1).trim();
|
|
47
|
+
if (!body) return [];
|
|
48
|
+
const values = [];
|
|
49
|
+
for (const match of body.matchAll(/"(?:[^"\\]|\\.)*"|\S+/gu)) values.push(scalar(match[0]));
|
|
50
|
+
return values;
|
|
51
|
+
}
|
|
52
|
+
function stripComments(lines) {
|
|
53
|
+
let block = false;
|
|
54
|
+
let fence = false;
|
|
55
|
+
return lines.map((line) => {
|
|
56
|
+
const trimmed = line.trim();
|
|
57
|
+
if (fence) {
|
|
58
|
+
if (trimmed === "```") fence = false;
|
|
59
|
+
return line;
|
|
60
|
+
}
|
|
61
|
+
if (trimmed.startsWith("```")) {
|
|
62
|
+
fence = !(trimmed.length >= 6 && trimmed.endsWith("```"));
|
|
63
|
+
return line;
|
|
64
|
+
}
|
|
65
|
+
if (block) {
|
|
66
|
+
const end = line.indexOf("*/");
|
|
67
|
+
if (end === -1) return "";
|
|
68
|
+
block = false;
|
|
69
|
+
return line.slice(end + 2);
|
|
70
|
+
}
|
|
71
|
+
if (trimmed.startsWith("//")) return "";
|
|
72
|
+
if (trimmed.startsWith("/*")) {
|
|
73
|
+
const end = line.indexOf("*/", line.indexOf("/*") + 2);
|
|
74
|
+
if (end === -1) {
|
|
75
|
+
block = true;
|
|
76
|
+
return "";
|
|
77
|
+
}
|
|
78
|
+
return line.slice(0, line.indexOf("/*")) + line.slice(end + 2);
|
|
79
|
+
}
|
|
80
|
+
return line;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function parseApexLang(source, file = "<memory>") {
|
|
84
|
+
const lines = stripComments(source.replace(/\r\n?/gu, "\n").split("\n"));
|
|
85
|
+
let index = 0;
|
|
86
|
+
const fail = (message) => {
|
|
87
|
+
throw new ApexLangError(message, file, index + 1);
|
|
88
|
+
};
|
|
89
|
+
const readFence = () => {
|
|
90
|
+
const opening = lines[index] ?? "";
|
|
91
|
+
const indent = opening.length - opening.trimStart().length;
|
|
92
|
+
const body = [];
|
|
93
|
+
index += 1;
|
|
94
|
+
while (index < lines.length && (lines[index] ?? "").trim() !== "```") {
|
|
95
|
+
const line = lines[index] ?? "";
|
|
96
|
+
const leading = line.length - line.trimStart().length;
|
|
97
|
+
body.push(line.slice(Math.min(indent, leading)));
|
|
98
|
+
index += 1;
|
|
99
|
+
}
|
|
100
|
+
if (index >= lines.length) fail("unterminated ``` block");
|
|
101
|
+
index += 1;
|
|
102
|
+
return body.join("\n");
|
|
103
|
+
};
|
|
104
|
+
const readValue = (raw) => {
|
|
105
|
+
const text = (raw ?? "").trim();
|
|
106
|
+
if (text === "") {
|
|
107
|
+
const next = (lines[index] ?? "").trim();
|
|
108
|
+
if (next.startsWith("```")) return readFence();
|
|
109
|
+
return "";
|
|
110
|
+
}
|
|
111
|
+
if (text === "{") return readBlock("}");
|
|
112
|
+
if (text === "[") return readArray();
|
|
113
|
+
if (text.startsWith("[") && text.endsWith("]")) return inlineArray(text);
|
|
114
|
+
if (text.startsWith("```") && text.endsWith("```") && text.length >= 6) return text.slice(3, -3);
|
|
115
|
+
return scalar(text);
|
|
116
|
+
};
|
|
117
|
+
const readArray = () => {
|
|
118
|
+
const values = [];
|
|
119
|
+
while (index < lines.length) {
|
|
120
|
+
const text = (lines[index] ?? "").trim();
|
|
121
|
+
index += 1;
|
|
122
|
+
if (!text) continue;
|
|
123
|
+
if (text === "]") return values;
|
|
124
|
+
if (text === "{") values.push(readBlock("}"));
|
|
125
|
+
else if (text.startsWith("```")) {
|
|
126
|
+
index -= 1;
|
|
127
|
+
values.push(readFence());
|
|
128
|
+
} else values.push(scalar(text));
|
|
129
|
+
}
|
|
130
|
+
return fail("unterminated array");
|
|
131
|
+
};
|
|
132
|
+
function readBlock(close, children) {
|
|
133
|
+
const props = {};
|
|
134
|
+
while (index < lines.length) {
|
|
135
|
+
const text = (lines[index] ?? "").trim();
|
|
136
|
+
const lineNumber = index + 1;
|
|
137
|
+
index += 1;
|
|
138
|
+
if (!text) continue;
|
|
139
|
+
if (text === close) return props;
|
|
140
|
+
const property = PROPERTY.exec(text);
|
|
141
|
+
if (property) {
|
|
142
|
+
props[unquote(property[1])] = readValue(property[2]);
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
const group = GROUP.exec(text);
|
|
146
|
+
if (group) {
|
|
147
|
+
const nested = readBlock("}", children);
|
|
148
|
+
const existing = props[group[1]];
|
|
149
|
+
props[group[1]] = isObject(existing) ? { ...existing, ...nested } : nested;
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
const component = COMPONENT.exec(text);
|
|
153
|
+
if (component && children) {
|
|
154
|
+
children.push(readComponent(component[1], component[2] ?? "", lineNumber));
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
index -= 1;
|
|
158
|
+
fail(`unexpected line: ${text.slice(0, 120)}`);
|
|
159
|
+
}
|
|
160
|
+
if (close === "") return props;
|
|
161
|
+
return fail(`missing closing "${close}"`);
|
|
162
|
+
}
|
|
163
|
+
function readComponent(type, rawId, line) {
|
|
164
|
+
const children = [];
|
|
165
|
+
const props = readBlock(")", children);
|
|
166
|
+
return { type, id: unquote(rawId.trim()), props, children, file, line };
|
|
167
|
+
}
|
|
168
|
+
const components = [];
|
|
169
|
+
while (index < lines.length) {
|
|
170
|
+
const text = (lines[index] ?? "").trim();
|
|
171
|
+
const lineNumber = index + 1;
|
|
172
|
+
index += 1;
|
|
173
|
+
if (!text) continue;
|
|
174
|
+
const component = COMPONENT.exec(text);
|
|
175
|
+
if (!component) {
|
|
176
|
+
index -= 1;
|
|
177
|
+
fail(`expected a component declaration, found: ${text.slice(0, 120)}`);
|
|
178
|
+
}
|
|
179
|
+
components.push(readComponent(component[1], component[2] ?? "", lineNumber));
|
|
180
|
+
}
|
|
181
|
+
return components;
|
|
182
|
+
}
|
|
183
|
+
function get(props, dotted) {
|
|
184
|
+
let value = props;
|
|
185
|
+
for (const part of dotted.split(".")) {
|
|
186
|
+
if (!isObject(value)) return void 0;
|
|
187
|
+
value = value[part];
|
|
188
|
+
}
|
|
189
|
+
return value;
|
|
190
|
+
}
|
|
191
|
+
function str(props, dotted, fallback = "") {
|
|
192
|
+
const value = get(props, dotted);
|
|
193
|
+
if (typeof value === "string") return value;
|
|
194
|
+
if (typeof value === "boolean") return String(value);
|
|
195
|
+
if (isRef(value)) return value.ref;
|
|
196
|
+
return fallback;
|
|
197
|
+
}
|
|
198
|
+
function num(props, dotted, fallback) {
|
|
199
|
+
const value = Number(str(props, dotted, ""));
|
|
200
|
+
return str(props, dotted, "") !== "" && Number.isFinite(value) ? value : fallback;
|
|
201
|
+
}
|
|
202
|
+
function bool(props, dotted, fallback) {
|
|
203
|
+
const value = get(props, dotted);
|
|
204
|
+
return typeof value === "boolean" ? value : fallback;
|
|
205
|
+
}
|
|
206
|
+
function ref(props, dotted) {
|
|
207
|
+
const value = get(props, dotted);
|
|
208
|
+
if (isRef(value)) return value.ref;
|
|
209
|
+
return typeof value === "string" && value ? value : void 0;
|
|
210
|
+
}
|
|
211
|
+
function list(props, dotted) {
|
|
212
|
+
const value = get(props, dotted);
|
|
213
|
+
if (Array.isArray(value)) return value;
|
|
214
|
+
return value === void 0 || value === "" ? [] : [value];
|
|
215
|
+
}
|
|
216
|
+
function walk(directory) {
|
|
217
|
+
if (!fs.existsSync(directory)) return [];
|
|
218
|
+
return fs.readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
|
|
219
|
+
const full = path.join(directory, entry.name);
|
|
220
|
+
if (entry.isDirectory()) return entry.name === "static-files" ? [] : walk(full);
|
|
221
|
+
return entry.name.endsWith(".apx") ? [full] : [];
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function deploymentSubstitutions(root, deployment) {
|
|
225
|
+
const file = path.join(root, "deployments", `${deployment}.json`);
|
|
226
|
+
if (!fs.existsSync(file)) return {};
|
|
227
|
+
const values = {};
|
|
228
|
+
const collect = (value) => {
|
|
229
|
+
if (!value || typeof value !== "object") return;
|
|
230
|
+
for (const [key, nested] of Object.entries(value)) {
|
|
231
|
+
if (typeof nested === "string" || typeof nested === "number")
|
|
232
|
+
values[key.toUpperCase()] = String(nested);
|
|
233
|
+
else collect(nested);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
try {
|
|
237
|
+
collect(JSON.parse(fs.readFileSync(file, "utf8")));
|
|
238
|
+
} catch {
|
|
239
|
+
return {};
|
|
240
|
+
}
|
|
241
|
+
return values;
|
|
242
|
+
}
|
|
243
|
+
function loadApplication(root, deployment = "default") {
|
|
244
|
+
const appFile = path.join(root, "application.apx");
|
|
245
|
+
if (!fs.existsSync(appFile)) throw new Error(`${root} does not contain application.apx`);
|
|
246
|
+
const substitutions = deploymentSubstitutions(root, deployment);
|
|
247
|
+
const files = walk(root).sort();
|
|
248
|
+
const pages = /* @__PURE__ */ new Map();
|
|
249
|
+
const shared = [];
|
|
250
|
+
let app;
|
|
251
|
+
for (const file of files) {
|
|
252
|
+
const relative = path.relative(root, file).split(path.sep).join("/");
|
|
253
|
+
const text = fs.readFileSync(file, "utf8").replace(
|
|
254
|
+
/@([A-Z][A-Z0-9_]*)@/gu,
|
|
255
|
+
(whole, name) => substitutions[name] ?? (name === "APP_ALIAS" ? path.basename(root).toLowerCase() : name === "APP_NAME" ? path.basename(root) : whole)
|
|
256
|
+
);
|
|
257
|
+
for (const component of parseApexLang(text, relative)) {
|
|
258
|
+
if (component.type === "app") app = component;
|
|
259
|
+
else if (component.type === "page") pages.set(component.id, component);
|
|
260
|
+
else shared.push(component);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (!app) throw new Error(`${appFile} does not declare an app component`);
|
|
264
|
+
for (const child of app.children)
|
|
265
|
+
if (child.type === "page" && !pages.has(child.id)) pages.set(child.id, child);
|
|
266
|
+
return { root, app, pages, shared, substitutions, files };
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export {
|
|
270
|
+
isRef,
|
|
271
|
+
isObject,
|
|
272
|
+
parseApexLang,
|
|
273
|
+
get,
|
|
274
|
+
str,
|
|
275
|
+
num,
|
|
276
|
+
bool,
|
|
277
|
+
ref,
|
|
278
|
+
list,
|
|
279
|
+
loadApplication
|
|
280
|
+
};
|