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
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
Fault,
|
|
4
|
+
__commonJS,
|
|
5
|
+
__toESM,
|
|
3
6
|
_enum,
|
|
4
7
|
_null,
|
|
5
8
|
array,
|
|
@@ -15,19 +18,12 @@ import {
|
|
|
15
18
|
optional,
|
|
16
19
|
preprocess,
|
|
17
20
|
record,
|
|
21
|
+
redact,
|
|
18
22
|
safeParse,
|
|
19
23
|
string,
|
|
20
24
|
union,
|
|
21
25
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
Fault,
|
|
25
|
-
__commonJS,
|
|
26
|
-
__toESM,
|
|
27
|
-
canonical,
|
|
28
|
-
hash,
|
|
29
|
-
redact
|
|
30
|
-
} from "./chunk-I5KYBPSK.mjs";
|
|
26
|
+
} from "./chunk-CI5IU2PI.mjs";
|
|
31
27
|
|
|
32
28
|
// node_modules/ajv/dist/compile/codegen/code.js
|
|
33
29
|
var require_code = __commonJS({
|
|
@@ -1057,10 +1053,10 @@ var require_util = __commonJS({
|
|
|
1057
1053
|
var codegen_1 = require_codegen();
|
|
1058
1054
|
var code_1 = require_code();
|
|
1059
1055
|
function toHash(arr) {
|
|
1060
|
-
const
|
|
1056
|
+
const hash = {};
|
|
1061
1057
|
for (const item of arr)
|
|
1062
|
-
|
|
1063
|
-
return
|
|
1058
|
+
hash[item] = true;
|
|
1059
|
+
return hash;
|
|
1064
1060
|
}
|
|
1065
1061
|
exports.toHash = toHash;
|
|
1066
1062
|
function alwaysValidSchema(it, schema) {
|
|
@@ -3333,6 +3329,37 @@ var require_utils = __commonJS({
|
|
|
3333
3329
|
}
|
|
3334
3330
|
return output.join("");
|
|
3335
3331
|
}
|
|
3332
|
+
function removeDotSegmentsRelative(path) {
|
|
3333
|
+
if (path === "" || path[0] === "/") {
|
|
3334
|
+
return removeDotSegments(path);
|
|
3335
|
+
}
|
|
3336
|
+
const segments = path.split("/");
|
|
3337
|
+
const last = segments.length - 1;
|
|
3338
|
+
const output = [];
|
|
3339
|
+
let trailingDirectory = false;
|
|
3340
|
+
for (let i = 0; i <= last; i++) {
|
|
3341
|
+
const segment = segments[i];
|
|
3342
|
+
if (segment === "." || segment === "..") {
|
|
3343
|
+
if (segment === "..") {
|
|
3344
|
+
if (output.length !== 0 && output[output.length - 1] !== "..") {
|
|
3345
|
+
output.pop();
|
|
3346
|
+
} else {
|
|
3347
|
+
output.push("..");
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
trailingDirectory = i === last;
|
|
3351
|
+
} else {
|
|
3352
|
+
output.push(segment);
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
if (trailingDirectory && output[output.length - 1] !== "..") {
|
|
3356
|
+
output.push("");
|
|
3357
|
+
}
|
|
3358
|
+
if (output.length === 0 || output[0] === "" || output[0].includes(":")) {
|
|
3359
|
+
output.unshift(".");
|
|
3360
|
+
}
|
|
3361
|
+
return output.join("/");
|
|
3362
|
+
}
|
|
3336
3363
|
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
3337
3364
|
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
3338
3365
|
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
@@ -3593,6 +3620,7 @@ var require_utils = __commonJS({
|
|
|
3593
3620
|
encodeFragment,
|
|
3594
3621
|
escapePreservingEscapes,
|
|
3595
3622
|
removeDotSegments,
|
|
3623
|
+
removeDotSegmentsRelative,
|
|
3596
3624
|
isIPv4,
|
|
3597
3625
|
isUUID,
|
|
3598
3626
|
normalizeIPv6,
|
|
@@ -3816,16 +3844,18 @@ var require_schemes = __commonJS({
|
|
|
3816
3844
|
var require_fast_uri = __commonJS({
|
|
3817
3845
|
"node_modules/fast-uri/index.js"(exports, module) {
|
|
3818
3846
|
"use strict";
|
|
3819
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3847
|
+
var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3820
3848
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3821
3849
|
var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
|
|
3822
3850
|
var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3851
|
+
var MALFORMED_HOST_ERROR = "URI host is malformed.";
|
|
3852
|
+
var FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
|
|
3853
|
+
function validateScheme(scheme) {
|
|
3854
|
+
const stringScheme = String(scheme);
|
|
3855
|
+
if (!VALID_SCHEME.test(stringScheme)) {
|
|
3826
3856
|
throw new TypeError(MALFORMED_SCHEME_ERROR);
|
|
3827
3857
|
}
|
|
3828
|
-
return
|
|
3858
|
+
return stringScheme;
|
|
3829
3859
|
}
|
|
3830
3860
|
function normalize(uri, options) {
|
|
3831
3861
|
if (typeof uri === "string") {
|
|
@@ -3862,6 +3892,9 @@ var require_fast_uri = __commonJS({
|
|
|
3862
3892
|
const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
|
|
3863
3893
|
const resolvedHost = resolved.host;
|
|
3864
3894
|
const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
|
|
3895
|
+
if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
|
|
3896
|
+
throw new Error(MALFORMED_HOST_ERROR);
|
|
3897
|
+
}
|
|
3865
3898
|
canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
|
|
3866
3899
|
const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(resolvedHost);
|
|
3867
3900
|
if (resolved.error && !encodedASCIIHost) {
|
|
@@ -3903,14 +3936,15 @@ var require_fast_uri = __commonJS({
|
|
|
3903
3936
|
if (relative.path[0] === "/") {
|
|
3904
3937
|
target.path = removeDotSegments(relative.path);
|
|
3905
3938
|
} else {
|
|
3906
|
-
|
|
3939
|
+
const baseHasAuthority = base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0;
|
|
3940
|
+
if (baseHasAuthority && !base.path) {
|
|
3907
3941
|
target.path = "/" + relative.path;
|
|
3908
3942
|
} else if (!base.path) {
|
|
3909
3943
|
target.path = relative.path;
|
|
3910
3944
|
} else {
|
|
3911
3945
|
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
3912
3946
|
}
|
|
3913
|
-
target.path = removeDotSegments(target.path);
|
|
3947
|
+
target.path = base.scheme === void 0 && !baseHasAuthority && target.path[0] !== "/" ? removeDotSegmentsRelative(target.path) : removeDotSegments(target.path);
|
|
3914
3948
|
}
|
|
3915
3949
|
target.query = relative.query;
|
|
3916
3950
|
}
|
|
@@ -3948,12 +3982,13 @@ var require_fast_uri = __commonJS({
|
|
|
3948
3982
|
const options = Object.assign({}, opts);
|
|
3949
3983
|
const uriTokens = [];
|
|
3950
3984
|
if (component.scheme) {
|
|
3951
|
-
component.scheme =
|
|
3985
|
+
component.scheme = validateScheme(component.scheme);
|
|
3952
3986
|
}
|
|
3953
3987
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
3954
3988
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
3955
3989
|
const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
|
|
3956
|
-
const
|
|
3990
|
+
const schemelessReference = (component.scheme === void 0 || options.reference === "suffix") && !hasAuthority;
|
|
3991
|
+
const pathNoScheme = !options.skipEscape && schemelessReference;
|
|
3957
3992
|
if (component.path !== void 0) {
|
|
3958
3993
|
if (!options.skipEscape) {
|
|
3959
3994
|
component.path = serializePathEncoding(component.path, pathNoScheme);
|
|
@@ -3962,7 +3997,7 @@ var require_fast_uri = __commonJS({
|
|
|
3962
3997
|
}
|
|
3963
3998
|
}
|
|
3964
3999
|
if (options.reference !== "suffix" && component.scheme) {
|
|
3965
|
-
component.scheme =
|
|
4000
|
+
component.scheme = validateScheme(component.scheme);
|
|
3966
4001
|
uriTokens.push(component.scheme, ":");
|
|
3967
4002
|
}
|
|
3968
4003
|
const authority = recomposeAuthority(component);
|
|
@@ -3978,9 +4013,9 @@ var require_fast_uri = __commonJS({
|
|
|
3978
4013
|
if (component.path !== void 0) {
|
|
3979
4014
|
let s = component.path;
|
|
3980
4015
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
3981
|
-
s = removeDotSegments(s);
|
|
4016
|
+
s = schemelessReference && s[0] !== "/" ? removeDotSegmentsRelative(s) : removeDotSegments(s);
|
|
3982
4017
|
}
|
|
3983
|
-
if (
|
|
4018
|
+
if (schemelessReference) {
|
|
3984
4019
|
s = serializePathEncoding(s, true);
|
|
3985
4020
|
}
|
|
3986
4021
|
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
@@ -4027,16 +4062,34 @@ var require_fast_uri = __commonJS({
|
|
|
4027
4062
|
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4028
4063
|
}
|
|
4029
4064
|
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4065
|
+
if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
|
|
4066
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4067
|
+
return true;
|
|
4068
|
+
}
|
|
4030
4069
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4070
|
+
let url;
|
|
4031
4071
|
try {
|
|
4032
|
-
|
|
4072
|
+
url = new URL("http://" + parsed.host);
|
|
4033
4073
|
} catch (e) {
|
|
4034
4074
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
4035
4075
|
return true;
|
|
4036
4076
|
}
|
|
4077
|
+
if (!isHostOnlyURL(url)) {
|
|
4078
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4079
|
+
return true;
|
|
4080
|
+
}
|
|
4081
|
+
parsed.host = url.hostname;
|
|
4037
4082
|
}
|
|
4038
4083
|
return false;
|
|
4039
4084
|
}
|
|
4085
|
+
function hasForbiddenDomainHost(parsed, options, schemeHandler, isIP) {
|
|
4086
|
+
return Boolean(
|
|
4087
|
+
parsed.host && isIP === false && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host)
|
|
4088
|
+
);
|
|
4089
|
+
}
|
|
4090
|
+
function isHostOnlyURL(url) {
|
|
4091
|
+
return url.username === "" && url.password === "" && url.port === "" && url.pathname === "/" && url.search === "" && url.hash === "" && url.hostname !== "";
|
|
4092
|
+
}
|
|
4040
4093
|
function parseWithStatus(uri, opts) {
|
|
4041
4094
|
const options = Object.assign({}, opts);
|
|
4042
4095
|
const parsed = {
|
|
@@ -4091,9 +4144,8 @@ var require_fast_uri = __commonJS({
|
|
|
4091
4144
|
parsed.query = matches[7];
|
|
4092
4145
|
parsed.fragment = matches[8];
|
|
4093
4146
|
if (parsed.scheme !== void 0) {
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
parsed.scheme = decodedScheme.toLowerCase();
|
|
4147
|
+
if (VALID_SCHEME.test(parsed.scheme)) {
|
|
4148
|
+
parsed.scheme = parsed.scheme.toLowerCase();
|
|
4097
4149
|
} else {
|
|
4098
4150
|
parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
|
|
4099
4151
|
malformedScheme = true;
|
|
@@ -4121,7 +4173,7 @@ var require_fast_uri = __commonJS({
|
|
|
4121
4173
|
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4122
4174
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4123
4175
|
if (malformedIPLiteral) {
|
|
4124
|
-
parsed.error = parsed.error ||
|
|
4176
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4125
4177
|
malformedAuthorityOrPort = true;
|
|
4126
4178
|
}
|
|
4127
4179
|
} else {
|
|
@@ -4149,7 +4201,7 @@ var require_fast_uri = __commonJS({
|
|
|
4149
4201
|
if (!isIP) {
|
|
4150
4202
|
host = normalizePercentEncoding(host.toLowerCase());
|
|
4151
4203
|
}
|
|
4152
|
-
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4204
|
+
parsed.host = isIP || options.scheme !== "null" ? reescapeHostDelimiters(host, isIP) : host;
|
|
4153
4205
|
}
|
|
4154
4206
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4155
4207
|
if (parsed.path) {
|
|
@@ -7195,9 +7247,6 @@ var require_dist = __commonJS({
|
|
|
7195
7247
|
}
|
|
7196
7248
|
});
|
|
7197
7249
|
|
|
7198
|
-
// packages/core/src/sqlcl-session.ts
|
|
7199
|
-
import { performance as performance4 } from "node:perf_hooks";
|
|
7200
|
-
|
|
7201
7250
|
// packages/core/src/sqlcl-timings.ts
|
|
7202
7251
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7203
7252
|
import { performance } from "node:perf_hooks";
|
|
@@ -7263,70 +7312,133 @@ function recordStatementTimings(label, durations) {
|
|
|
7263
7312
|
if (record2) record2.statementMs = [...durations];
|
|
7264
7313
|
}
|
|
7265
7314
|
|
|
7266
|
-
// packages/core/src/
|
|
7267
|
-
import {
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
function
|
|
7275
|
-
|
|
7276
|
-
const result2 = safeParse(schema, data);
|
|
7277
|
-
return result2;
|
|
7278
|
-
}
|
|
7279
|
-
const v3Schema = schema;
|
|
7280
|
-
const result = v3Schema.safeParse(data);
|
|
7281
|
-
return result;
|
|
7315
|
+
// packages/core/src/process.ts
|
|
7316
|
+
import { spawn } from "node:child_process";
|
|
7317
|
+
import { performance as performance2 } from "node:perf_hooks";
|
|
7318
|
+
import { StringDecoder } from "node:string_decoder";
|
|
7319
|
+
var SQLCL_READ_TIMEOUT_MS = 18e4;
|
|
7320
|
+
var SQLCL_WRITE_TIMEOUT_MS = 36e5;
|
|
7321
|
+
var DRAIN_AFTER_EXIT_MS = 3e3;
|
|
7322
|
+
var groupKills = process.platform !== "win32";
|
|
7323
|
+
function spawnTree(executable, args, options) {
|
|
7324
|
+
return spawn(executable, args, { ...options, ...groupKills ? { detached: true } : {} });
|
|
7282
7325
|
}
|
|
7283
|
-
function
|
|
7284
|
-
if (
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7326
|
+
function killTree(child, signal) {
|
|
7327
|
+
if (child.pid === void 0) return;
|
|
7328
|
+
if (!groupKills) {
|
|
7329
|
+
if (child.exitCode !== null || child.signalCode !== null) return;
|
|
7330
|
+
try {
|
|
7331
|
+
spawn("taskkill", ["/PID", String(child.pid), "/T", "/F"], { stdio: "ignore", windowsHide: true }).on("error", () => child.kill()).unref();
|
|
7332
|
+
} catch {
|
|
7333
|
+
child.kill();
|
|
7334
|
+
}
|
|
7335
|
+
return;
|
|
7293
7336
|
}
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7337
|
+
try {
|
|
7338
|
+
process.kill(-child.pid, signal);
|
|
7339
|
+
} catch {
|
|
7297
7340
|
try {
|
|
7298
|
-
|
|
7341
|
+
child.kill(signal);
|
|
7299
7342
|
} catch {
|
|
7300
|
-
return void 0;
|
|
7301
7343
|
}
|
|
7302
7344
|
}
|
|
7303
|
-
return rawShape;
|
|
7304
7345
|
}
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7346
|
+
var stopping = /* @__PURE__ */ new WeakSet();
|
|
7347
|
+
function stopTree(child) {
|
|
7348
|
+
if (stopping.has(child)) return;
|
|
7349
|
+
stopping.add(child);
|
|
7350
|
+
killTree(child, "SIGTERM");
|
|
7351
|
+
const hard = setTimeout(() => killTree(child, "SIGKILL"), 1500);
|
|
7352
|
+
hard.unref();
|
|
7353
|
+
child.once("close", () => clearTimeout(hard));
|
|
7354
|
+
}
|
|
7355
|
+
async function runProcess(r) {
|
|
7356
|
+
if (r.signal?.aborted)
|
|
7357
|
+
return { code: null, stdout: "", stderr: "", timedOut: false, cancelled: true, truncated: false };
|
|
7358
|
+
const started = performance2.now();
|
|
7359
|
+
const timing = executionTiming("cli", r.mutation, r.sqlclConnected);
|
|
7360
|
+
return new Promise((resolve, reject) => {
|
|
7361
|
+
const child = spawnTree(r.executable, r.args, {
|
|
7362
|
+
cwd: r.cwd,
|
|
7363
|
+
env: r.env ?? process.env,
|
|
7364
|
+
shell: false,
|
|
7365
|
+
stdio: "pipe",
|
|
7366
|
+
windowsHide: true,
|
|
7367
|
+
...r.windowsVerbatimArguments ? { windowsVerbatimArguments: true } : {}
|
|
7368
|
+
});
|
|
7369
|
+
child.once("spawn", () => {
|
|
7370
|
+
timing.spawnMs = performance2.now() - started;
|
|
7371
|
+
});
|
|
7372
|
+
let stdout = "", stderr = "", bytes = 0, timedOut = false, cancelled = false, truncated = false, settled = false;
|
|
7373
|
+
let drain;
|
|
7374
|
+
const decoders = [new StringDecoder("utf8"), new StringDecoder("utf8")];
|
|
7375
|
+
const max = r.maxBytes ?? 1024 * 1024;
|
|
7376
|
+
const stop = () => stopTree(child);
|
|
7377
|
+
const collect = (isError) => (data) => {
|
|
7378
|
+
const room = Math.max(0, max - bytes);
|
|
7379
|
+
bytes += data.length;
|
|
7380
|
+
const s = decoders[isError ? 1 : 0].write(data.subarray(0, room));
|
|
7381
|
+
if (isError) stderr += s;
|
|
7382
|
+
else stdout += s;
|
|
7383
|
+
if (bytes > max) {
|
|
7384
|
+
truncated = true;
|
|
7385
|
+
stop();
|
|
7314
7386
|
}
|
|
7315
|
-
}
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7387
|
+
};
|
|
7388
|
+
child.stdout.on("data", collect(false));
|
|
7389
|
+
child.stderr.on("data", collect(true));
|
|
7390
|
+
child.stdin.on("error", () => {
|
|
7391
|
+
});
|
|
7392
|
+
const timer = setTimeout(() => {
|
|
7393
|
+
timedOut = true;
|
|
7394
|
+
stop();
|
|
7395
|
+
}, r.timeoutMs ?? 3e4);
|
|
7396
|
+
const abort = () => {
|
|
7397
|
+
cancelled = true;
|
|
7398
|
+
stop();
|
|
7399
|
+
};
|
|
7400
|
+
r.signal?.addEventListener("abort", abort, { once: true });
|
|
7401
|
+
if (r.signal?.aborted) abort();
|
|
7402
|
+
const finish = (code) => {
|
|
7403
|
+
if (settled) return;
|
|
7404
|
+
settled = true;
|
|
7405
|
+
clearTimeout(timer);
|
|
7406
|
+
clearTimeout(drain);
|
|
7407
|
+
r.signal?.removeEventListener("abort", abort);
|
|
7408
|
+
timing.executeMs = performance2.now() - started - (timing.spawnMs ?? 0);
|
|
7409
|
+
emitSqlclTiming(r.onSqlclTiming, timing, started);
|
|
7410
|
+
resolve({
|
|
7411
|
+
code,
|
|
7412
|
+
stdout: stdout + (truncated ? "" : decoders[0].end()),
|
|
7413
|
+
stderr: redact(stderr + (truncated ? "" : decoders[1].end())),
|
|
7414
|
+
timedOut,
|
|
7415
|
+
cancelled,
|
|
7416
|
+
truncated
|
|
7417
|
+
});
|
|
7418
|
+
};
|
|
7419
|
+
child.on("error", (e) => {
|
|
7420
|
+
if (settled) return;
|
|
7421
|
+
settled = true;
|
|
7422
|
+
clearTimeout(timer);
|
|
7423
|
+
clearTimeout(drain);
|
|
7424
|
+
r.signal?.removeEventListener("abort", abort);
|
|
7425
|
+
emitSqlclTiming(r.onSqlclTiming, timing, started);
|
|
7426
|
+
reject(new Fault("DEPENDENCY_MISSING", e.message, 3, "dependency_missing"));
|
|
7427
|
+
});
|
|
7428
|
+
child.on("close", (code) => finish(code));
|
|
7429
|
+
child.on("exit", () => {
|
|
7430
|
+
if (settled) return;
|
|
7431
|
+
drain = setTimeout(() => {
|
|
7432
|
+
timedOut = true;
|
|
7433
|
+
killTree(child, "SIGKILL");
|
|
7434
|
+
child.stdout?.destroy();
|
|
7435
|
+
child.stderr?.destroy();
|
|
7436
|
+
finish(null);
|
|
7437
|
+
}, DRAIN_AFTER_EXIT_MS);
|
|
7438
|
+
drain.unref();
|
|
7439
|
+
});
|
|
7440
|
+
child.stdin.end(r.input ?? "");
|
|
7441
|
+
});
|
|
7330
7442
|
}
|
|
7331
7443
|
|
|
7332
7444
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
@@ -8848,6 +8960,69 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
8848
8960
|
}
|
|
8849
8961
|
};
|
|
8850
8962
|
|
|
8963
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
8964
|
+
function isZ4Schema(s) {
|
|
8965
|
+
const schema = s;
|
|
8966
|
+
return !!schema._zod;
|
|
8967
|
+
}
|
|
8968
|
+
function safeParse2(schema, data) {
|
|
8969
|
+
if (isZ4Schema(schema)) {
|
|
8970
|
+
const result2 = safeParse(schema, data);
|
|
8971
|
+
return result2;
|
|
8972
|
+
}
|
|
8973
|
+
const v3Schema = schema;
|
|
8974
|
+
const result = v3Schema.safeParse(data);
|
|
8975
|
+
return result;
|
|
8976
|
+
}
|
|
8977
|
+
function getObjectShape(schema) {
|
|
8978
|
+
if (!schema)
|
|
8979
|
+
return void 0;
|
|
8980
|
+
let rawShape;
|
|
8981
|
+
if (isZ4Schema(schema)) {
|
|
8982
|
+
const v4Schema = schema;
|
|
8983
|
+
rawShape = v4Schema._zod?.def?.shape;
|
|
8984
|
+
} else {
|
|
8985
|
+
const v3Schema = schema;
|
|
8986
|
+
rawShape = v3Schema.shape;
|
|
8987
|
+
}
|
|
8988
|
+
if (!rawShape)
|
|
8989
|
+
return void 0;
|
|
8990
|
+
if (typeof rawShape === "function") {
|
|
8991
|
+
try {
|
|
8992
|
+
return rawShape();
|
|
8993
|
+
} catch {
|
|
8994
|
+
return void 0;
|
|
8995
|
+
}
|
|
8996
|
+
}
|
|
8997
|
+
return rawShape;
|
|
8998
|
+
}
|
|
8999
|
+
function getLiteralValue(schema) {
|
|
9000
|
+
if (isZ4Schema(schema)) {
|
|
9001
|
+
const v4Schema = schema;
|
|
9002
|
+
const def2 = v4Schema._zod?.def;
|
|
9003
|
+
if (def2) {
|
|
9004
|
+
if (def2.value !== void 0)
|
|
9005
|
+
return def2.value;
|
|
9006
|
+
if (Array.isArray(def2.values) && def2.values.length > 0) {
|
|
9007
|
+
return def2.values[0];
|
|
9008
|
+
}
|
|
9009
|
+
}
|
|
9010
|
+
}
|
|
9011
|
+
const v3Schema = schema;
|
|
9012
|
+
const def = v3Schema._def;
|
|
9013
|
+
if (def) {
|
|
9014
|
+
if (def.value !== void 0)
|
|
9015
|
+
return def.value;
|
|
9016
|
+
if (Array.isArray(def.values) && def.values.length > 0) {
|
|
9017
|
+
return def.values[0];
|
|
9018
|
+
}
|
|
9019
|
+
}
|
|
9020
|
+
const directValue = schema.value;
|
|
9021
|
+
if (directValue !== void 0)
|
|
9022
|
+
return directValue;
|
|
9023
|
+
return void 0;
|
|
9024
|
+
}
|
|
9025
|
+
|
|
8851
9026
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
8852
9027
|
function isTerminal(status) {
|
|
8853
9028
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
@@ -8918,6 +9093,9 @@ var Protocol = class {
|
|
|
8918
9093
|
this.setRequestHandler(GetTaskPayloadRequestSchema, async (request, extra) => {
|
|
8919
9094
|
const handleTaskResult = async () => {
|
|
8920
9095
|
const taskId = request.params.taskId;
|
|
9096
|
+
if (!await this._taskStore.getTask(taskId, extra.sessionId)) {
|
|
9097
|
+
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`);
|
|
9098
|
+
}
|
|
8921
9099
|
if (this._taskMessageQueue) {
|
|
8922
9100
|
let queuedMessage;
|
|
8923
9101
|
while (queuedMessage = await this._taskMessageQueue.dequeue(taskId, extra.sessionId)) {
|
|
@@ -8948,12 +9126,12 @@ var Protocol = class {
|
|
|
8948
9126
|
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`);
|
|
8949
9127
|
}
|
|
8950
9128
|
if (!isTerminal(task.status)) {
|
|
8951
|
-
await this._waitForTaskUpdate(taskId, extra.signal);
|
|
9129
|
+
await this._waitForTaskUpdate(taskId, extra.signal, extra.sessionId);
|
|
8952
9130
|
return await handleTaskResult();
|
|
8953
9131
|
}
|
|
8954
9132
|
if (isTerminal(task.status)) {
|
|
8955
9133
|
const result = await this._taskStore.getTaskResult(taskId, extra.sessionId);
|
|
8956
|
-
this._clearTaskQueue(taskId);
|
|
9134
|
+
this._clearTaskQueue(taskId, extra.sessionId);
|
|
8957
9135
|
return {
|
|
8958
9136
|
...result,
|
|
8959
9137
|
_meta: {
|
|
@@ -8990,7 +9168,7 @@ var Protocol = class {
|
|
|
8990
9168
|
throw new McpError(ErrorCode.InvalidParams, `Cannot cancel task in terminal status: ${task.status}`);
|
|
8991
9169
|
}
|
|
8992
9170
|
await this._taskStore.updateTaskStatus(request.params.taskId, "cancelled", "Client cancelled task execution.", extra.sessionId);
|
|
8993
|
-
this._clearTaskQueue(request.params.taskId);
|
|
9171
|
+
this._clearTaskQueue(request.params.taskId, extra.sessionId);
|
|
8994
9172
|
const cancelledTask = await this._taskStore.getTask(request.params.taskId, extra.sessionId);
|
|
8995
9173
|
if (!cancelledTask) {
|
|
8996
9174
|
throw new McpError(ErrorCode.InvalidParams, `Task not found after cancellation: ${request.params.taskId}`);
|
|
@@ -9118,6 +9296,19 @@ var Protocol = class {
|
|
|
9118
9296
|
const handler = this._requestHandlers.get(request.method) ?? this.fallbackRequestHandler;
|
|
9119
9297
|
const capturedTransport = this._transport;
|
|
9120
9298
|
const relatedTaskId = request.params?._meta?.[RELATED_TASK_META_KEY]?.taskId;
|
|
9299
|
+
const sessionId = capturedTransport?.sessionId;
|
|
9300
|
+
const store = this._taskStore;
|
|
9301
|
+
let relatedTaskFound = true;
|
|
9302
|
+
let relatedTaskLookup;
|
|
9303
|
+
if (relatedTaskId && store && this._taskMessageQueue && sessionId !== void 0) {
|
|
9304
|
+
relatedTaskFound = false;
|
|
9305
|
+
relatedTaskLookup = (async () => {
|
|
9306
|
+
if (!await store.getTask(relatedTaskId, sessionId)) {
|
|
9307
|
+
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${relatedTaskId}`);
|
|
9308
|
+
}
|
|
9309
|
+
relatedTaskFound = true;
|
|
9310
|
+
})();
|
|
9311
|
+
}
|
|
9121
9312
|
if (handler === void 0) {
|
|
9122
9313
|
const errorResponse = {
|
|
9123
9314
|
jsonrpc: "2.0",
|
|
@@ -9127,7 +9318,10 @@ var Protocol = class {
|
|
|
9127
9318
|
message: "Method not found"
|
|
9128
9319
|
}
|
|
9129
9320
|
};
|
|
9130
|
-
if (relatedTaskId &&
|
|
9321
|
+
if (relatedTaskId && relatedTaskLookup) {
|
|
9322
|
+
const queuedError = { type: "error", message: errorResponse, timestamp: Date.now() };
|
|
9323
|
+
relatedTaskLookup.then(() => this._enqueueTaskMessage(relatedTaskId, queuedError, sessionId), () => capturedTransport?.send(errorResponse)).catch((error) => this._onerror(new Error(`Failed to send an error response: ${error}`)));
|
|
9324
|
+
} else if (relatedTaskId && this._taskMessageQueue) {
|
|
9131
9325
|
this._enqueueTaskMessage(relatedTaskId, {
|
|
9132
9326
|
type: "error",
|
|
9133
9327
|
message: errorResponse,
|
|
@@ -9178,7 +9372,10 @@ var Protocol = class {
|
|
|
9178
9372
|
closeSSEStream: extra?.closeSSEStream,
|
|
9179
9373
|
closeStandaloneSSEStream: extra?.closeStandaloneSSEStream
|
|
9180
9374
|
};
|
|
9181
|
-
Promise.resolve().then(() => {
|
|
9375
|
+
(relatedTaskLookup ?? Promise.resolve()).then(() => {
|
|
9376
|
+
if (relatedTaskLookup && abortController.signal.aborted) {
|
|
9377
|
+
throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled");
|
|
9378
|
+
}
|
|
9182
9379
|
if (taskCreationParams) {
|
|
9183
9380
|
this.assertTaskHandlerCapability(request.method);
|
|
9184
9381
|
}
|
|
@@ -9213,7 +9410,7 @@ var Protocol = class {
|
|
|
9213
9410
|
...error["data"] !== void 0 && { data: error["data"] }
|
|
9214
9411
|
}
|
|
9215
9412
|
};
|
|
9216
|
-
if (relatedTaskId && this._taskMessageQueue) {
|
|
9413
|
+
if (relatedTaskId && this._taskMessageQueue && relatedTaskFound) {
|
|
9217
9414
|
await this._enqueueTaskMessage(relatedTaskId, {
|
|
9218
9415
|
type: "error",
|
|
9219
9416
|
message: errorResponse,
|
|
@@ -9693,7 +9890,7 @@ var Protocol = class {
|
|
|
9693
9890
|
throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");
|
|
9694
9891
|
}
|
|
9695
9892
|
const maxQueueSize = this._options?.maxTaskQueueSize;
|
|
9696
|
-
await this._taskMessageQueue.enqueue(taskId, message, sessionId, maxQueueSize);
|
|
9893
|
+
await this._taskMessageQueue.enqueue(taskId, message, sessionId ?? this._transport?.sessionId, maxQueueSize);
|
|
9697
9894
|
}
|
|
9698
9895
|
/**
|
|
9699
9896
|
* Clears the message queue for a task and rejects any pending request resolvers.
|
|
@@ -9722,12 +9919,13 @@ var Protocol = class {
|
|
|
9722
9919
|
* Uses polling to check for updates at the task's configured poll interval.
|
|
9723
9920
|
* @param taskId The task ID to wait for
|
|
9724
9921
|
* @param signal Abort signal to cancel the wait
|
|
9922
|
+
* @param sessionId Session of the request that waits, passed to the task store
|
|
9725
9923
|
* @returns Promise that resolves when an update occurs or rejects if aborted
|
|
9726
9924
|
*/
|
|
9727
|
-
async _waitForTaskUpdate(taskId, signal) {
|
|
9925
|
+
async _waitForTaskUpdate(taskId, signal, sessionId) {
|
|
9728
9926
|
let interval = this._options?.defaultTaskPollInterval ?? 1e3;
|
|
9729
9927
|
try {
|
|
9730
|
-
const task = await this._taskStore?.getTask(taskId);
|
|
9928
|
+
const task = await this._taskStore?.getTask(taskId, sessionId);
|
|
9731
9929
|
if (task?.pollInterval) {
|
|
9732
9930
|
interval = task.pollInterval;
|
|
9733
9931
|
}
|
|
@@ -10599,6 +10797,9 @@ var Client = class extends Protocol {
|
|
|
10599
10797
|
}
|
|
10600
10798
|
};
|
|
10601
10799
|
|
|
10800
|
+
// packages/core/src/sqlcl-mcp.ts
|
|
10801
|
+
import { performance as performance3 } from "node:perf_hooks";
|
|
10802
|
+
|
|
10602
10803
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
10603
10804
|
var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
|
|
10604
10805
|
var ReadBuffer = class {
|
|
@@ -10638,124 +10839,6 @@ function serializeMessage(message) {
|
|
|
10638
10839
|
|
|
10639
10840
|
// packages/core/src/sqlcl-mcp.ts
|
|
10640
10841
|
import { setTimeout as delay } from "node:timers/promises";
|
|
10641
|
-
|
|
10642
|
-
// packages/core/src/process.ts
|
|
10643
|
-
import { spawn } from "node:child_process";
|
|
10644
|
-
import { performance as performance2 } from "node:perf_hooks";
|
|
10645
|
-
import { StringDecoder } from "node:string_decoder";
|
|
10646
|
-
var DRAIN_AFTER_EXIT_MS = 3e3;
|
|
10647
|
-
var groupKills = process.platform !== "win32";
|
|
10648
|
-
function spawnTree(executable, args, options) {
|
|
10649
|
-
return spawn(executable, args, { ...options, ...groupKills ? { detached: true } : {} });
|
|
10650
|
-
}
|
|
10651
|
-
function killTree(child, signal) {
|
|
10652
|
-
if (child.pid === void 0 || child.exitCode !== null || child.signalCode !== null) return;
|
|
10653
|
-
if (!groupKills) {
|
|
10654
|
-
try {
|
|
10655
|
-
spawn("taskkill", ["/PID", String(child.pid), "/T", "/F"], { stdio: "ignore", windowsHide: true }).on("error", () => child.kill()).unref();
|
|
10656
|
-
} catch {
|
|
10657
|
-
child.kill();
|
|
10658
|
-
}
|
|
10659
|
-
return;
|
|
10660
|
-
}
|
|
10661
|
-
try {
|
|
10662
|
-
process.kill(-child.pid, signal);
|
|
10663
|
-
} catch {
|
|
10664
|
-
try {
|
|
10665
|
-
child.kill(signal);
|
|
10666
|
-
} catch {
|
|
10667
|
-
}
|
|
10668
|
-
}
|
|
10669
|
-
}
|
|
10670
|
-
function stopTree(child) {
|
|
10671
|
-
killTree(child, "SIGTERM");
|
|
10672
|
-
const hard = setTimeout(() => killTree(child, "SIGKILL"), 1500);
|
|
10673
|
-
hard.unref();
|
|
10674
|
-
}
|
|
10675
|
-
async function runProcess(r) {
|
|
10676
|
-
if (r.signal?.aborted)
|
|
10677
|
-
return { code: null, stdout: "", stderr: "", timedOut: false, cancelled: true, truncated: false };
|
|
10678
|
-
const started = performance2.now();
|
|
10679
|
-
const timing = executionTiming("cli", r.mutation, r.sqlclConnected);
|
|
10680
|
-
return new Promise((resolve, reject) => {
|
|
10681
|
-
const child = spawnTree(r.executable, r.args, {
|
|
10682
|
-
cwd: r.cwd,
|
|
10683
|
-
env: r.env ?? process.env,
|
|
10684
|
-
shell: false,
|
|
10685
|
-
stdio: "pipe",
|
|
10686
|
-
windowsHide: true,
|
|
10687
|
-
...r.windowsVerbatimArguments ? { windowsVerbatimArguments: true } : {}
|
|
10688
|
-
});
|
|
10689
|
-
child.once("spawn", () => {
|
|
10690
|
-
timing.spawnMs = performance2.now() - started;
|
|
10691
|
-
});
|
|
10692
|
-
let stdout = "", stderr = "", bytes = 0, timedOut = false, cancelled = false, truncated = false, settled = false;
|
|
10693
|
-
const decoders = [new StringDecoder("utf8"), new StringDecoder("utf8")];
|
|
10694
|
-
const max = r.maxBytes ?? 1024 * 1024;
|
|
10695
|
-
const stop = () => stopTree(child);
|
|
10696
|
-
const collect = (isError) => (data) => {
|
|
10697
|
-
const room = Math.max(0, max - bytes);
|
|
10698
|
-
bytes += data.length;
|
|
10699
|
-
const s = decoders[isError ? 1 : 0].write(data.subarray(0, room));
|
|
10700
|
-
if (isError) stderr += s;
|
|
10701
|
-
else stdout += s;
|
|
10702
|
-
if (bytes > max) {
|
|
10703
|
-
truncated = true;
|
|
10704
|
-
stop();
|
|
10705
|
-
}
|
|
10706
|
-
};
|
|
10707
|
-
child.stdout.on("data", collect(false));
|
|
10708
|
-
child.stderr.on("data", collect(true));
|
|
10709
|
-
child.stdin.on("error", () => {
|
|
10710
|
-
});
|
|
10711
|
-
const timer = setTimeout(() => {
|
|
10712
|
-
timedOut = true;
|
|
10713
|
-
stop();
|
|
10714
|
-
}, r.timeoutMs ?? 3e4);
|
|
10715
|
-
const abort = () => {
|
|
10716
|
-
cancelled = true;
|
|
10717
|
-
stop();
|
|
10718
|
-
};
|
|
10719
|
-
r.signal?.addEventListener("abort", abort, { once: true });
|
|
10720
|
-
if (r.signal?.aborted) abort();
|
|
10721
|
-
const finish = (code) => {
|
|
10722
|
-
if (settled) return;
|
|
10723
|
-
settled = true;
|
|
10724
|
-
clearTimeout(timer);
|
|
10725
|
-
r.signal?.removeEventListener("abort", abort);
|
|
10726
|
-
timing.executeMs = performance2.now() - started - (timing.spawnMs ?? 0);
|
|
10727
|
-
emitSqlclTiming(r.onSqlclTiming, timing, started);
|
|
10728
|
-
resolve({
|
|
10729
|
-
code,
|
|
10730
|
-
stdout: stdout + (truncated ? "" : decoders[0].end()),
|
|
10731
|
-
stderr: redact(stderr + (truncated ? "" : decoders[1].end())),
|
|
10732
|
-
timedOut,
|
|
10733
|
-
cancelled,
|
|
10734
|
-
truncated
|
|
10735
|
-
});
|
|
10736
|
-
};
|
|
10737
|
-
child.on("error", (e) => {
|
|
10738
|
-
if (settled) return;
|
|
10739
|
-
settled = true;
|
|
10740
|
-
clearTimeout(timer);
|
|
10741
|
-
r.signal?.removeEventListener("abort", abort);
|
|
10742
|
-
emitSqlclTiming(r.onSqlclTiming, timing, started);
|
|
10743
|
-
reject(new Fault("DEPENDENCY_MISSING", e.message, 3, "dependency_missing"));
|
|
10744
|
-
});
|
|
10745
|
-
child.on("close", (code) => finish(code));
|
|
10746
|
-
child.on("exit", (code) => {
|
|
10747
|
-
const drain = setTimeout(() => {
|
|
10748
|
-
child.stdout?.destroy();
|
|
10749
|
-
child.stderr?.destroy();
|
|
10750
|
-
finish(code);
|
|
10751
|
-
}, DRAIN_AFTER_EXIT_MS);
|
|
10752
|
-
drain.unref();
|
|
10753
|
-
});
|
|
10754
|
-
child.stdin.end(r.input ?? "");
|
|
10755
|
-
});
|
|
10756
|
-
}
|
|
10757
|
-
|
|
10758
|
-
// packages/core/src/sqlcl-mcp.ts
|
|
10759
10842
|
var SqlclStdioTransport = class {
|
|
10760
10843
|
constructor(request) {
|
|
10761
10844
|
this.request = request;
|
|
@@ -10767,11 +10850,15 @@ var SqlclStdioTransport = class {
|
|
|
10767
10850
|
child;
|
|
10768
10851
|
buffer = new ReadBuffer();
|
|
10769
10852
|
exited = false;
|
|
10853
|
+
overflowed = false;
|
|
10770
10854
|
get pid() {
|
|
10771
10855
|
return this.exited ? void 0 : this.child?.pid;
|
|
10772
10856
|
}
|
|
10773
10857
|
get alive() {
|
|
10774
|
-
return !!this.child && !this.exited;
|
|
10858
|
+
return !!this.child && !this.exited && !this.overflowed;
|
|
10859
|
+
}
|
|
10860
|
+
get outputLimitExceeded() {
|
|
10861
|
+
return this.overflowed;
|
|
10775
10862
|
}
|
|
10776
10863
|
async start() {
|
|
10777
10864
|
if (this.child) throw new Error("SQLcl transport already started.");
|
|
@@ -10788,7 +10875,14 @@ var SqlclStdioTransport = class {
|
|
|
10788
10875
|
child.stderr.on("data", () => {
|
|
10789
10876
|
});
|
|
10790
10877
|
child.stdout.on("data", (chunk) => {
|
|
10791
|
-
this.
|
|
10878
|
+
if (this.exited || this.overflowed) return;
|
|
10879
|
+
try {
|
|
10880
|
+
this.buffer.append(chunk);
|
|
10881
|
+
} catch {
|
|
10882
|
+
this.overflowed = true;
|
|
10883
|
+
this.kill();
|
|
10884
|
+
return;
|
|
10885
|
+
}
|
|
10792
10886
|
for (; ; ) {
|
|
10793
10887
|
let message;
|
|
10794
10888
|
try {
|
|
@@ -10816,7 +10910,7 @@ var SqlclStdioTransport = class {
|
|
|
10816
10910
|
});
|
|
10817
10911
|
}
|
|
10818
10912
|
async send(message) {
|
|
10819
|
-
if (!this.
|
|
10913
|
+
if (!this.alive) throw new Error("SQLcl transport is closed.");
|
|
10820
10914
|
await new Promise(
|
|
10821
10915
|
(resolve, reject) => this.child.stdin.write(serializeMessage(message), (error) => error ? reject(error) : resolve())
|
|
10822
10916
|
);
|
|
@@ -10841,6 +10935,14 @@ var SqlclStdioTransport = class {
|
|
|
10841
10935
|
}
|
|
10842
10936
|
}
|
|
10843
10937
|
};
|
|
10938
|
+
function outputLimit(uncertain) {
|
|
10939
|
+
return new Fault(
|
|
10940
|
+
"OUTPUT_LIMIT",
|
|
10941
|
+
"SQLcl MCP output exceeded the session limit.",
|
|
10942
|
+
6,
|
|
10943
|
+
uncertain ? "outcome_unknown" : "failed"
|
|
10944
|
+
);
|
|
10945
|
+
}
|
|
10844
10946
|
var SqlclMcpClient = class {
|
|
10845
10947
|
constructor(request) {
|
|
10846
10948
|
this.request = request;
|
|
@@ -10882,13 +10984,7 @@ var SqlclMcpClient = class {
|
|
|
10882
10984
|
}
|
|
10883
10985
|
text(result, uncertain = false) {
|
|
10884
10986
|
const output = result.content.filter((block) => block.type === "text").map((block) => block.text).join("\n");
|
|
10885
|
-
if (Buffer.byteLength(output) > (this.request.maxBytes ?? 1024 * 1024))
|
|
10886
|
-
throw new Fault(
|
|
10887
|
-
"OUTPUT_LIMIT",
|
|
10888
|
-
"SQLcl MCP output exceeded the session limit.",
|
|
10889
|
-
6,
|
|
10890
|
-
uncertain ? "outcome_unknown" : "failed"
|
|
10891
|
-
);
|
|
10987
|
+
if (Buffer.byteLength(output) > (this.request.maxBytes ?? 1024 * 1024)) throw outputLimit(uncertain);
|
|
10892
10988
|
return output;
|
|
10893
10989
|
}
|
|
10894
10990
|
async call(name, args, options, uncertain = false) {
|
|
@@ -10900,7 +10996,19 @@ var SqlclMcpClient = class {
|
|
|
10900
10996
|
this.text(result, uncertain);
|
|
10901
10997
|
return result;
|
|
10902
10998
|
}
|
|
10903
|
-
async connect(connectionName, options) {
|
|
10999
|
+
async connect(connectionName, options, command = false) {
|
|
11000
|
+
if (command) {
|
|
11001
|
+
if (!connectionName || /[\x00-\x1f\x7f"&\\]/.test(connectionName))
|
|
11002
|
+
throw new Fault("INVALID_SQLCL_TOKEN", "Saved connection name is unsafe for SQLcl CONNECT.", 2);
|
|
11003
|
+
const result = await this.execute(
|
|
11004
|
+
`set define off
|
|
11005
|
+
connect -name "${connectionName}"`,
|
|
11006
|
+
options,
|
|
11007
|
+
() => false
|
|
11008
|
+
);
|
|
11009
|
+
const output = this.text(result);
|
|
11010
|
+
return /(?:ORA-|SP2-|PLS-)\d+|(?:Unknown connection|Connection not found)\b/i.test(output) ? { ...result, isError: true } : result;
|
|
11011
|
+
}
|
|
10904
11012
|
if (!this.tools?.connect)
|
|
10905
11013
|
throw new Fault(
|
|
10906
11014
|
"UNSUPPORTED_CAPABILITY",
|
|
@@ -10956,9 +11064,10 @@ function mcpCallOptions(request, deadline) {
|
|
|
10956
11064
|
return { timeout, ...request.signal ? { signal: request.signal } : {} };
|
|
10957
11065
|
};
|
|
10958
11066
|
}
|
|
10959
|
-
function mcpFailure(error, request, submitted) {
|
|
10960
|
-
if (error instanceof Fault) return error;
|
|
11067
|
+
function mcpFailure(error, request, submitted, overflowed = false) {
|
|
10961
11068
|
const uncertain = submitted && request.mutation;
|
|
11069
|
+
if (overflowed) return outputLimit(uncertain);
|
|
11070
|
+
if (error instanceof Fault) return error;
|
|
10962
11071
|
return new Fault(
|
|
10963
11072
|
uncertain ? "SQLCL_MCP_OUTCOME_UNKNOWN" : request.signal?.aborted ? "CANCELLED" : "SQLCL_MCP_FAILED",
|
|
10964
11073
|
uncertain ? "SQLcl MCP did not confirm the submitted write. Reconcile the target before retrying." : `SQLcl MCP failed: ${redact(error instanceof Error ? error.message : String(error))}`,
|
|
@@ -10984,7 +11093,7 @@ async function runSqlclMcp(request) {
|
|
|
10984
11093
|
!!request.connectionName || !!request.sqlclConnected
|
|
10985
11094
|
);
|
|
10986
11095
|
const session = new SqlclMcpClient(request);
|
|
10987
|
-
const options = mcpCallOptions(request, Date.now() + (request.timeoutMs ??
|
|
11096
|
+
const options = mcpCallOptions(request, Date.now() + (request.timeoutMs ?? SQLCL_READ_TIMEOUT_MS));
|
|
10988
11097
|
let submitted = false;
|
|
10989
11098
|
let executeStarted;
|
|
10990
11099
|
try {
|
|
@@ -11002,7 +11111,7 @@ async function runSqlclMcp(request) {
|
|
|
11002
11111
|
timing.executeMs = performance3.now() - executeStarted;
|
|
11003
11112
|
return mcpResult(result, session.text(result, request.mutation));
|
|
11004
11113
|
} catch (error) {
|
|
11005
|
-
throw mcpFailure(error, request, submitted);
|
|
11114
|
+
throw mcpFailure(error, request, submitted, session.transport.outputLimitExceeded);
|
|
11006
11115
|
} finally {
|
|
11007
11116
|
if (executeStarted !== void 0) timing.executeMs = performance3.now() - executeStarted;
|
|
11008
11117
|
await session.close();
|
|
@@ -11010,219 +11119,15 @@ async function runSqlclMcp(request) {
|
|
|
11010
11119
|
}
|
|
11011
11120
|
}
|
|
11012
11121
|
|
|
11013
|
-
// packages/core/src/sqlcl-session.ts
|
|
11014
|
-
var IDLE_MS = 10 * 60 * 1e3;
|
|
11015
|
-
var PROBE_AFTER_MS = 30 * 1e3;
|
|
11016
|
-
var PooledSession = class {
|
|
11017
|
-
constructor(key, request) {
|
|
11018
|
-
this.key = key;
|
|
11019
|
-
this.client = new SqlclMcpClient(request);
|
|
11020
|
-
}
|
|
11021
|
-
key;
|
|
11022
|
-
busy = true;
|
|
11023
|
-
dead = false;
|
|
11024
|
-
lastUsed = Date.now();
|
|
11025
|
-
idleTimer;
|
|
11026
|
-
client;
|
|
11027
|
-
get alive() {
|
|
11028
|
-
return !this.dead && this.client.alive;
|
|
11029
|
-
}
|
|
11030
|
-
kill() {
|
|
11031
|
-
this.dead = true;
|
|
11032
|
-
clearTimeout(this.idleTimer);
|
|
11033
|
-
void this.client.close();
|
|
11034
|
-
}
|
|
11035
|
-
};
|
|
11036
|
-
var pools = /* @__PURE__ */ new Map();
|
|
11037
|
-
var exitHook = false;
|
|
11038
|
-
var shutdownGeneration = 0;
|
|
11039
|
-
function sqlclSessionKey(request) {
|
|
11040
|
-
return hash(
|
|
11041
|
-
canonical({
|
|
11042
|
-
executable: request.executable,
|
|
11043
|
-
javaHome: request.env?.JAVA_HOME ?? null,
|
|
11044
|
-
args: request.args,
|
|
11045
|
-
connectionName: request.connectionName ?? null,
|
|
11046
|
-
cwd: request.cwd
|
|
11047
|
-
})
|
|
11048
|
-
);
|
|
11049
|
-
}
|
|
11050
|
-
function pool(key) {
|
|
11051
|
-
let p = pools.get(key);
|
|
11052
|
-
if (!p) pools.set(key, p = { sessions: [], waiters: [] });
|
|
11053
|
-
return p;
|
|
11054
|
-
}
|
|
11055
|
-
function release(session) {
|
|
11056
|
-
const p = pool(session.key);
|
|
11057
|
-
session.busy = false;
|
|
11058
|
-
if (session.alive) session.lastUsed = Date.now();
|
|
11059
|
-
if (session.alive) {
|
|
11060
|
-
session.client.transport.setActive(false);
|
|
11061
|
-
clearTimeout(session.idleTimer);
|
|
11062
|
-
session.idleTimer = setTimeout(() => {
|
|
11063
|
-
if (!session.busy) discard(session);
|
|
11064
|
-
}, IDLE_MS);
|
|
11065
|
-
session.idleTimer.unref();
|
|
11066
|
-
} else discard(session);
|
|
11067
|
-
const waiter = p.waiters.shift();
|
|
11068
|
-
waiter?.();
|
|
11069
|
-
}
|
|
11070
|
-
function discard(session) {
|
|
11071
|
-
session.kill();
|
|
11072
|
-
const p = pool(session.key);
|
|
11073
|
-
p.sessions = p.sessions.filter((s) => s !== session);
|
|
11074
|
-
if (!p.sessions.length && !p.waiters.length) pools.delete(session.key);
|
|
11075
|
-
}
|
|
11076
|
-
async function acquire(request, key) {
|
|
11077
|
-
const generation = shutdownGeneration;
|
|
11078
|
-
const limit = request.limit ?? (request.connectionName ? 1 : 2);
|
|
11079
|
-
for (; ; ) {
|
|
11080
|
-
if (generation !== shutdownGeneration) throw new Fault("CANCELLED", "SQLcl pool closed.", 6, "cancelled");
|
|
11081
|
-
if (request.signal?.aborted) throw new Fault("CANCELLED", "SQLcl session cancelled.", 6, "cancelled");
|
|
11082
|
-
const p = pool(key);
|
|
11083
|
-
const idle = p.sessions.find((s) => !s.busy && s.alive);
|
|
11084
|
-
if (idle) {
|
|
11085
|
-
idle.busy = true;
|
|
11086
|
-
clearTimeout(idle.idleTimer);
|
|
11087
|
-
idle.client.transport.setActive(true);
|
|
11088
|
-
return idle;
|
|
11089
|
-
}
|
|
11090
|
-
if (p.sessions.filter((s) => s.alive).length < limit) {
|
|
11091
|
-
const session = new PooledSession(key, request);
|
|
11092
|
-
p.sessions.push(session);
|
|
11093
|
-
installExitHook();
|
|
11094
|
-
return session;
|
|
11095
|
-
}
|
|
11096
|
-
await new Promise((resolve) => {
|
|
11097
|
-
const wake = () => {
|
|
11098
|
-
request.signal?.removeEventListener("abort", wake);
|
|
11099
|
-
p.waiters = p.waiters.filter((w) => w !== wake);
|
|
11100
|
-
resolve();
|
|
11101
|
-
};
|
|
11102
|
-
p.waiters.push(wake);
|
|
11103
|
-
request.signal?.addEventListener("abort", wake, { once: true });
|
|
11104
|
-
});
|
|
11105
|
-
}
|
|
11106
|
-
}
|
|
11107
|
-
function installExitHook() {
|
|
11108
|
-
if (exitHook) return;
|
|
11109
|
-
exitHook = true;
|
|
11110
|
-
process.on("exit", () => {
|
|
11111
|
-
for (const p of pools.values()) for (const session of p.sessions) session.kill();
|
|
11112
|
-
});
|
|
11113
|
-
}
|
|
11114
|
-
async function prepare(session, request, options, timing) {
|
|
11115
|
-
const fresh = !session.client.alive;
|
|
11116
|
-
if (fresh) {
|
|
11117
|
-
const spawnStarted = performance4.now();
|
|
11118
|
-
await session.client.open(options()());
|
|
11119
|
-
timing.spawnMs = (timing.spawnMs ?? 0) + performance4.now() - spawnStarted;
|
|
11120
|
-
if (request.connectionName) {
|
|
11121
|
-
const connectStarted = performance4.now();
|
|
11122
|
-
const connected = await session.client.connect(request.connectionName, options());
|
|
11123
|
-
timing.connectMs = (timing.connectMs ?? 0) + performance4.now() - connectStarted;
|
|
11124
|
-
if (connected.isError) return mcpResult(connected, session.client.text(connected));
|
|
11125
|
-
}
|
|
11126
|
-
return;
|
|
11127
|
-
}
|
|
11128
|
-
if (request.connectionName && Date.now() - session.lastUsed > PROBE_AFTER_MS) {
|
|
11129
|
-
const probe = await session.client.execute(
|
|
11130
|
-
"select 1 as apexrest_probe from dual;",
|
|
11131
|
-
options(),
|
|
11132
|
-
() => false
|
|
11133
|
-
);
|
|
11134
|
-
if (probe.isError || !/apexrest_probe/i.test(session.client.text(probe)))
|
|
11135
|
-
throw new Error("SQLcl session lost its database connection.");
|
|
11136
|
-
}
|
|
11137
|
-
return;
|
|
11138
|
-
}
|
|
11139
|
-
async function runPooledSqlcl(request) {
|
|
11140
|
-
if (request.signal?.aborted)
|
|
11141
|
-
return { code: null, stdout: "", stderr: "", timedOut: false, cancelled: true, truncated: false };
|
|
11142
|
-
const started = performance4.now();
|
|
11143
|
-
const timing = executionTiming(
|
|
11144
|
-
"mcp-pool",
|
|
11145
|
-
request.mutation,
|
|
11146
|
-
!!request.connectionName || !!request.sqlclConnected
|
|
11147
|
-
);
|
|
11148
|
-
const key = sqlclSessionKey(request);
|
|
11149
|
-
let session = await acquire(request, key);
|
|
11150
|
-
if (request.mutation && session.client.alive) {
|
|
11151
|
-
session.kill();
|
|
11152
|
-
release(session);
|
|
11153
|
-
session = await acquire(request, key);
|
|
11154
|
-
}
|
|
11155
|
-
timing.queueMs = performance4.now() - started;
|
|
11156
|
-
timing.reused = session.client.alive;
|
|
11157
|
-
const deadline = Date.now() + (request.timeoutMs ?? 18e4);
|
|
11158
|
-
const options = () => mcpCallOptions(request, deadline);
|
|
11159
|
-
let submitted = false;
|
|
11160
|
-
let executeStarted;
|
|
11161
|
-
try {
|
|
11162
|
-
let failed;
|
|
11163
|
-
try {
|
|
11164
|
-
failed = await prepare(session, request, options, timing);
|
|
11165
|
-
} catch (error) {
|
|
11166
|
-
if (!session.client.alive || request.signal?.aborted || Date.now() >= deadline) throw error;
|
|
11167
|
-
session.kill();
|
|
11168
|
-
release(session);
|
|
11169
|
-
session = await acquire(request, key);
|
|
11170
|
-
failed = await prepare(session, request, options, timing);
|
|
11171
|
-
}
|
|
11172
|
-
if (failed) {
|
|
11173
|
-
session.kill();
|
|
11174
|
-
return failed;
|
|
11175
|
-
}
|
|
11176
|
-
submitted = true;
|
|
11177
|
-
executeStarted = performance4.now();
|
|
11178
|
-
const result = await session.client.execute(request.input ?? "", options(), () => request.mutation);
|
|
11179
|
-
timing.executeMs = performance4.now() - executeStarted;
|
|
11180
|
-
const output = session.client.text(result, request.mutation);
|
|
11181
|
-
if (request.connectionName || request.mutation || result.isError || /(?:ORA-|SP2-|PLS-)\d+/i.test(output) || request.completionMarker && !output.split(/\r?\n/).some((line) => line.trim() === request.completionMarker))
|
|
11182
|
-
session.kill();
|
|
11183
|
-
return mcpResult(result, output);
|
|
11184
|
-
} catch (error) {
|
|
11185
|
-
session.kill();
|
|
11186
|
-
if (error instanceof Fault) throw error;
|
|
11187
|
-
const interrupted = request.signal?.aborted ? "cancelled" : Date.now() >= deadline ? "timedOut" : void 0;
|
|
11188
|
-
if (interrupted)
|
|
11189
|
-
return {
|
|
11190
|
-
code: null,
|
|
11191
|
-
stdout: "",
|
|
11192
|
-
stderr: "",
|
|
11193
|
-
timedOut: interrupted === "timedOut",
|
|
11194
|
-
cancelled: interrupted === "cancelled",
|
|
11195
|
-
truncated: false
|
|
11196
|
-
};
|
|
11197
|
-
throw mcpFailure(error, request, submitted);
|
|
11198
|
-
} finally {
|
|
11199
|
-
if (executeStarted !== void 0) timing.executeMs = performance4.now() - executeStarted;
|
|
11200
|
-
release(session);
|
|
11201
|
-
emitSqlclTiming(request.onSqlclTiming, timing, started);
|
|
11202
|
-
}
|
|
11203
|
-
}
|
|
11204
|
-
async function closeSqlclSessions() {
|
|
11205
|
-
shutdownGeneration++;
|
|
11206
|
-
for (const p of pools.values()) for (const wake of [...p.waiters]) wake();
|
|
11207
|
-
const sessions = [...pools.values()].flatMap((p) => p.sessions);
|
|
11208
|
-
pools.clear();
|
|
11209
|
-
await Promise.all(sessions.map((session) => session.client.close()));
|
|
11210
|
-
for (const session of sessions) session.kill();
|
|
11211
|
-
}
|
|
11212
|
-
function sqlclSessionStats() {
|
|
11213
|
-
return [...pools.entries()].map(([key, p]) => ({
|
|
11214
|
-
key,
|
|
11215
|
-
sessions: p.sessions.filter((s) => s.alive).length,
|
|
11216
|
-
busy: p.sessions.filter((s) => s.busy).length,
|
|
11217
|
-
waiting: p.waiters.length
|
|
11218
|
-
}));
|
|
11219
|
-
}
|
|
11220
|
-
|
|
11221
11122
|
export {
|
|
11222
11123
|
withSqlclTimings,
|
|
11223
11124
|
sqlclTimings,
|
|
11224
11125
|
recordSqlclTiming,
|
|
11126
|
+
executionTiming,
|
|
11127
|
+
emitSqlclTiming,
|
|
11225
11128
|
recordStatementTimings,
|
|
11129
|
+
SQLCL_READ_TIMEOUT_MS,
|
|
11130
|
+
SQLCL_WRITE_TIMEOUT_MS,
|
|
11226
11131
|
runProcess,
|
|
11227
11132
|
safeParse2 as safeParse,
|
|
11228
11133
|
getObjectShape,
|
|
@@ -11268,11 +11173,9 @@ export {
|
|
|
11268
11173
|
Client,
|
|
11269
11174
|
ReadBuffer,
|
|
11270
11175
|
serializeMessage,
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
closeSqlclSessions,
|
|
11277
|
-
sqlclSessionStats
|
|
11176
|
+
SqlclMcpClient,
|
|
11177
|
+
mcpCallOptions,
|
|
11178
|
+
mcpFailure,
|
|
11179
|
+
mcpResult,
|
|
11180
|
+
runSqlclMcp
|
|
11278
11181
|
};
|