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,13 +1,37 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
toolCatalog
|
|
4
|
+
} from "./chunk-GHVRIHN6.mjs";
|
|
5
|
+
import "./chunk-TDM3E2NK.mjs";
|
|
6
|
+
import "./chunk-DJPW35KJ.mjs";
|
|
7
|
+
import "./chunk-4MIZ34V4.mjs";
|
|
2
8
|
import {
|
|
3
9
|
ToolchainService,
|
|
4
|
-
VERSION,
|
|
5
10
|
canonicalHome,
|
|
6
11
|
renameWithRetry,
|
|
7
|
-
resourceRoot,
|
|
8
12
|
runCommand,
|
|
9
13
|
runtimeState
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TBHIU7PZ.mjs";
|
|
15
|
+
import {
|
|
16
|
+
VERSION,
|
|
17
|
+
resourceRoot
|
|
18
|
+
} from "./chunk-PNGZYZE7.mjs";
|
|
19
|
+
import {
|
|
20
|
+
managedHome
|
|
21
|
+
} from "./chunk-LIG5PZ4K.mjs";
|
|
22
|
+
import "./chunk-4LEHTNYH.mjs";
|
|
23
|
+
import {
|
|
24
|
+
atomicWrite,
|
|
25
|
+
canonical,
|
|
26
|
+
contained,
|
|
27
|
+
containedChild,
|
|
28
|
+
exists,
|
|
29
|
+
hash,
|
|
30
|
+
inventory,
|
|
31
|
+
readJson,
|
|
32
|
+
withLock,
|
|
33
|
+
writeJson
|
|
34
|
+
} from "./chunk-26MTCOZK.mjs";
|
|
11
35
|
import {
|
|
12
36
|
Client,
|
|
13
37
|
ReadBuffer,
|
|
@@ -28,27 +52,13 @@ import {
|
|
|
28
52
|
require_validation,
|
|
29
53
|
require_validation_error,
|
|
30
54
|
serializeMessage
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import {
|
|
33
|
-
managedHome
|
|
34
|
-
} from "./chunk-YEGSGHTV.mjs";
|
|
35
|
-
import "./chunk-U7MVLA3R.mjs";
|
|
55
|
+
} from "./chunk-MPKKOQVI.mjs";
|
|
36
56
|
import {
|
|
37
57
|
Fault,
|
|
38
58
|
__commonJS,
|
|
39
59
|
__require,
|
|
40
|
-
__toESM
|
|
41
|
-
|
|
42
|
-
canonical,
|
|
43
|
-
contained,
|
|
44
|
-
containedChild,
|
|
45
|
-
exists,
|
|
46
|
-
hash,
|
|
47
|
-
inventory,
|
|
48
|
-
readJson,
|
|
49
|
-
withLock,
|
|
50
|
-
writeJson
|
|
51
|
-
} from "./chunk-I5KYBPSK.mjs";
|
|
60
|
+
__toESM
|
|
61
|
+
} from "./chunk-CI5IU2PI.mjs";
|
|
52
62
|
|
|
53
63
|
// node_modules/isexe/windows.js
|
|
54
64
|
var require_windows = __commonJS({
|
|
@@ -56,7 +66,7 @@ var require_windows = __commonJS({
|
|
|
56
66
|
module.exports = isexe;
|
|
57
67
|
isexe.sync = sync;
|
|
58
68
|
var fs = __require("fs");
|
|
59
|
-
function checkPathExt(
|
|
69
|
+
function checkPathExt(path6, options) {
|
|
60
70
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
61
71
|
if (!pathext) {
|
|
62
72
|
return true;
|
|
@@ -67,25 +77,25 @@ var require_windows = __commonJS({
|
|
|
67
77
|
}
|
|
68
78
|
for (var i = 0; i < pathext.length; i++) {
|
|
69
79
|
var p = pathext[i].toLowerCase();
|
|
70
|
-
if (p &&
|
|
80
|
+
if (p && path6.substr(-p.length).toLowerCase() === p) {
|
|
71
81
|
return true;
|
|
72
82
|
}
|
|
73
83
|
}
|
|
74
84
|
return false;
|
|
75
85
|
}
|
|
76
|
-
function checkStat(
|
|
77
|
-
if (!
|
|
86
|
+
function checkStat(stat2, path6, options) {
|
|
87
|
+
if (!stat2.isSymbolicLink() && !stat2.isFile()) {
|
|
78
88
|
return false;
|
|
79
89
|
}
|
|
80
|
-
return checkPathExt(
|
|
90
|
+
return checkPathExt(path6, options);
|
|
81
91
|
}
|
|
82
|
-
function isexe(
|
|
83
|
-
fs.stat(
|
|
84
|
-
cb(er, er ? false : checkStat(
|
|
92
|
+
function isexe(path6, options, cb) {
|
|
93
|
+
fs.stat(path6, function(er, stat2) {
|
|
94
|
+
cb(er, er ? false : checkStat(stat2, path6, options));
|
|
85
95
|
});
|
|
86
96
|
}
|
|
87
|
-
function sync(
|
|
88
|
-
return checkStat(fs.statSync(
|
|
97
|
+
function sync(path6, options) {
|
|
98
|
+
return checkStat(fs.statSync(path6), path6, options);
|
|
89
99
|
}
|
|
90
100
|
}
|
|
91
101
|
});
|
|
@@ -96,21 +106,21 @@ var require_mode = __commonJS({
|
|
|
96
106
|
module.exports = isexe;
|
|
97
107
|
isexe.sync = sync;
|
|
98
108
|
var fs = __require("fs");
|
|
99
|
-
function isexe(
|
|
100
|
-
fs.stat(
|
|
101
|
-
cb(er, er ? false : checkStat(
|
|
109
|
+
function isexe(path6, options, cb) {
|
|
110
|
+
fs.stat(path6, function(er, stat2) {
|
|
111
|
+
cb(er, er ? false : checkStat(stat2, options));
|
|
102
112
|
});
|
|
103
113
|
}
|
|
104
|
-
function sync(
|
|
105
|
-
return checkStat(fs.statSync(
|
|
114
|
+
function sync(path6, options) {
|
|
115
|
+
return checkStat(fs.statSync(path6), options);
|
|
106
116
|
}
|
|
107
|
-
function checkStat(
|
|
108
|
-
return
|
|
117
|
+
function checkStat(stat2, options) {
|
|
118
|
+
return stat2.isFile() && checkMode(stat2, options);
|
|
109
119
|
}
|
|
110
|
-
function checkMode(
|
|
111
|
-
var mod =
|
|
112
|
-
var uid =
|
|
113
|
-
var gid =
|
|
120
|
+
function checkMode(stat2, options) {
|
|
121
|
+
var mod = stat2.mode;
|
|
122
|
+
var uid = stat2.uid;
|
|
123
|
+
var gid = stat2.gid;
|
|
114
124
|
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
115
125
|
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
116
126
|
var u = parseInt("100", 8);
|
|
@@ -135,7 +145,7 @@ var require_isexe = __commonJS({
|
|
|
135
145
|
}
|
|
136
146
|
module.exports = isexe;
|
|
137
147
|
isexe.sync = sync;
|
|
138
|
-
function isexe(
|
|
148
|
+
function isexe(path6, options, cb) {
|
|
139
149
|
if (typeof options === "function") {
|
|
140
150
|
cb = options;
|
|
141
151
|
options = {};
|
|
@@ -145,7 +155,7 @@ var require_isexe = __commonJS({
|
|
|
145
155
|
throw new TypeError("callback not provided");
|
|
146
156
|
}
|
|
147
157
|
return new Promise(function(resolve, reject) {
|
|
148
|
-
isexe(
|
|
158
|
+
isexe(path6, options || {}, function(er, is) {
|
|
149
159
|
if (er) {
|
|
150
160
|
reject(er);
|
|
151
161
|
} else {
|
|
@@ -154,7 +164,7 @@ var require_isexe = __commonJS({
|
|
|
154
164
|
});
|
|
155
165
|
});
|
|
156
166
|
}
|
|
157
|
-
core(
|
|
167
|
+
core(path6, options || {}, function(er, is) {
|
|
158
168
|
if (er) {
|
|
159
169
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
160
170
|
er = null;
|
|
@@ -164,9 +174,9 @@ var require_isexe = __commonJS({
|
|
|
164
174
|
cb(er, is);
|
|
165
175
|
});
|
|
166
176
|
}
|
|
167
|
-
function sync(
|
|
177
|
+
function sync(path6, options) {
|
|
168
178
|
try {
|
|
169
|
-
return core.sync(
|
|
179
|
+
return core.sync(path6, options || {});
|
|
170
180
|
} catch (er) {
|
|
171
181
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
172
182
|
return false;
|
|
@@ -182,7 +192,7 @@ var require_isexe = __commonJS({
|
|
|
182
192
|
var require_which = __commonJS({
|
|
183
193
|
"node_modules/which/which.js"(exports, module) {
|
|
184
194
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
185
|
-
var
|
|
195
|
+
var path6 = __require("path");
|
|
186
196
|
var COLON = isWindows ? ";" : ":";
|
|
187
197
|
var isexe = require_isexe();
|
|
188
198
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -220,7 +230,7 @@ var require_which = __commonJS({
|
|
|
220
230
|
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
221
231
|
const ppRaw = pathEnv[i];
|
|
222
232
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
223
|
-
const pCmd =
|
|
233
|
+
const pCmd = path6.join(pathPart, cmd);
|
|
224
234
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
225
235
|
resolve(subStep(p, i, 0));
|
|
226
236
|
});
|
|
@@ -247,7 +257,7 @@ var require_which = __commonJS({
|
|
|
247
257
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
248
258
|
const ppRaw = pathEnv[i];
|
|
249
259
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
250
|
-
const pCmd =
|
|
260
|
+
const pCmd = path6.join(pathPart, cmd);
|
|
251
261
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
252
262
|
for (let j = 0; j < pathExt.length; j++) {
|
|
253
263
|
const cur = p + pathExt[j];
|
|
@@ -295,7 +305,7 @@ var require_path_key = __commonJS({
|
|
|
295
305
|
var require_resolveCommand = __commonJS({
|
|
296
306
|
"node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
297
307
|
"use strict";
|
|
298
|
-
var
|
|
308
|
+
var path6 = __require("path");
|
|
299
309
|
var which = require_which();
|
|
300
310
|
var getPathKey = require_path_key();
|
|
301
311
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -313,7 +323,7 @@ var require_resolveCommand = __commonJS({
|
|
|
313
323
|
try {
|
|
314
324
|
resolved = which.sync(parsed.command, {
|
|
315
325
|
path: env[getPathKey({ env })],
|
|
316
|
-
pathExt: withoutPathExt ?
|
|
326
|
+
pathExt: withoutPathExt ? path6.delimiter : void 0
|
|
317
327
|
});
|
|
318
328
|
} catch (e) {
|
|
319
329
|
} finally {
|
|
@@ -322,7 +332,7 @@ var require_resolveCommand = __commonJS({
|
|
|
322
332
|
}
|
|
323
333
|
}
|
|
324
334
|
if (resolved) {
|
|
325
|
-
resolved =
|
|
335
|
+
resolved = path6.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
326
336
|
}
|
|
327
337
|
return resolved;
|
|
328
338
|
}
|
|
@@ -376,8 +386,8 @@ var require_shebang_command = __commonJS({
|
|
|
376
386
|
if (!match) {
|
|
377
387
|
return null;
|
|
378
388
|
}
|
|
379
|
-
const [
|
|
380
|
-
const binary =
|
|
389
|
+
const [path6, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
390
|
+
const binary = path6.split("/").pop();
|
|
381
391
|
if (binary === "env") {
|
|
382
392
|
return argument;
|
|
383
393
|
}
|
|
@@ -412,7 +422,7 @@ var require_readShebang = __commonJS({
|
|
|
412
422
|
var require_parse = __commonJS({
|
|
413
423
|
"node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
414
424
|
"use strict";
|
|
415
|
-
var
|
|
425
|
+
var path6 = __require("path");
|
|
416
426
|
var resolveCommand = require_resolveCommand();
|
|
417
427
|
var escape = require_escape();
|
|
418
428
|
var readShebang = require_readShebang();
|
|
@@ -437,7 +447,7 @@ var require_parse = __commonJS({
|
|
|
437
447
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
438
448
|
if (parsed.options.forceShell || needsShell) {
|
|
439
449
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
440
|
-
parsed.command =
|
|
450
|
+
parsed.command = path6.normalize(parsed.command);
|
|
441
451
|
parsed.command = escape.command(parsed.command);
|
|
442
452
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
443
453
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -1372,9 +1382,9 @@ var require__ = __commonJS({
|
|
|
1372
1382
|
});
|
|
1373
1383
|
|
|
1374
1384
|
// packages/installer/src/setup.ts
|
|
1375
|
-
import
|
|
1376
|
-
import { homedir } from "node:os";
|
|
1377
|
-
import {
|
|
1385
|
+
import path5 from "node:path";
|
|
1386
|
+
import { homedir as homedir2 } from "node:os";
|
|
1387
|
+
import { rm as rm2 } from "node:fs/promises";
|
|
1378
1388
|
|
|
1379
1389
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js
|
|
1380
1390
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
@@ -1551,7 +1561,7 @@ var StdioClientTransport = class {
|
|
|
1551
1561
|
};
|
|
1552
1562
|
|
|
1553
1563
|
// packages/installer/src/registration.ts
|
|
1554
|
-
import
|
|
1564
|
+
import path3 from "node:path";
|
|
1555
1565
|
|
|
1556
1566
|
// packages/installer/src/package-source.ts
|
|
1557
1567
|
var import__ = __toESM(require__(), 1);
|
|
@@ -1637,7 +1647,138 @@ async function validateNative(source) {
|
|
|
1637
1647
|
return { status: "valid", profile: portable ? "portable" : "codex-compat", version: manifest.version };
|
|
1638
1648
|
}
|
|
1639
1649
|
|
|
1650
|
+
// packages/installer/src/registration-config.ts
|
|
1651
|
+
import path2 from "node:path";
|
|
1652
|
+
import { lstat as lstat2, readFile } from "node:fs/promises";
|
|
1653
|
+
var MARKET = "apexrest";
|
|
1654
|
+
var PLUGIN = "apexrest-apex@apexrest";
|
|
1655
|
+
var LIMIT = 1024 * 1024;
|
|
1656
|
+
var unsupported = () => {
|
|
1657
|
+
throw new Fault(
|
|
1658
|
+
"CODEX_CONFIG_SNAPSHOT_UNAVAILABLE",
|
|
1659
|
+
"Scoped Codex registration requires a regular, bounded config.toml with supported unambiguous registry tables. Inspect the current profile and any saved transition before retrying.",
|
|
1660
|
+
3,
|
|
1661
|
+
"blocked"
|
|
1662
|
+
);
|
|
1663
|
+
};
|
|
1664
|
+
function uncomment(line) {
|
|
1665
|
+
let quote = "", escaped = false;
|
|
1666
|
+
for (let i = 0; i < line.length; i++) {
|
|
1667
|
+
const ch = line[i];
|
|
1668
|
+
if (quote) {
|
|
1669
|
+
if (escaped) escaped = false;
|
|
1670
|
+
else if (quote === '"' && ch === "\\") escaped = true;
|
|
1671
|
+
else if (ch === quote) quote = "";
|
|
1672
|
+
} else if (ch === '"' || ch === "'") quote = ch;
|
|
1673
|
+
else if (ch === "#") return line.slice(0, i);
|
|
1674
|
+
}
|
|
1675
|
+
if (quote) unsupported();
|
|
1676
|
+
return line;
|
|
1677
|
+
}
|
|
1678
|
+
function keyPath(text) {
|
|
1679
|
+
const parts = [];
|
|
1680
|
+
let rest = text.trim();
|
|
1681
|
+
while (rest) {
|
|
1682
|
+
const match = /^("(?:[^"\\]|\\.)*"|'[^']*'|[A-Za-z0-9_-]+)\s*/u.exec(rest);
|
|
1683
|
+
if (!match) return unsupported();
|
|
1684
|
+
const raw = match[1];
|
|
1685
|
+
const value = raw[0] === '"' ? JSON.parse(raw) : raw[0] === "'" ? raw.slice(1, -1) : raw;
|
|
1686
|
+
if (typeof value !== "string") return unsupported();
|
|
1687
|
+
parts.push(value);
|
|
1688
|
+
rest = rest.slice(match[0].length);
|
|
1689
|
+
if (!rest) break;
|
|
1690
|
+
if (!rest.startsWith(".")) unsupported();
|
|
1691
|
+
rest = rest.slice(1).trimStart();
|
|
1692
|
+
if (!rest) unsupported();
|
|
1693
|
+
}
|
|
1694
|
+
if (!parts.length) unsupported();
|
|
1695
|
+
return parts;
|
|
1696
|
+
}
|
|
1697
|
+
function valueOf(text) {
|
|
1698
|
+
if (text.startsWith("'") && text.endsWith("'") && !text.slice(1, -1).includes("'"))
|
|
1699
|
+
return text.slice(1, -1);
|
|
1700
|
+
let value;
|
|
1701
|
+
try {
|
|
1702
|
+
value = JSON.parse(text);
|
|
1703
|
+
} catch {
|
|
1704
|
+
return unsupported();
|
|
1705
|
+
}
|
|
1706
|
+
if (typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value))
|
|
1707
|
+
return value;
|
|
1708
|
+
if (Array.isArray(value) && value.every((item) => typeof item === "string")) return value;
|
|
1709
|
+
return unsupported();
|
|
1710
|
+
}
|
|
1711
|
+
async function snapshotForeignConfig(codexHome, allowOwnedRemoval = false) {
|
|
1712
|
+
const file = path2.join(codexHome, "config.toml");
|
|
1713
|
+
try {
|
|
1714
|
+
const before = await lstat2(file);
|
|
1715
|
+
if (!before.isFile() || before.isSymbolicLink() || before.size > LIMIT) unsupported();
|
|
1716
|
+
const bytes = await readFile(file);
|
|
1717
|
+
if (bytes[0] === 239 && bytes[1] === 187 && bytes[2] === 191) return unsupported();
|
|
1718
|
+
const after = await lstat2(file);
|
|
1719
|
+
if (bytes.length > LIMIT || before.dev !== after.dev || before.ino !== after.ino || before.size !== after.size || before.mtimeMs !== after.mtimeMs || before.ctimeMs !== after.ctimeMs)
|
|
1720
|
+
return unsupported();
|
|
1721
|
+
const text = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
1722
|
+
if (text.includes('"""') || text.includes("'''")) unsupported();
|
|
1723
|
+
const registries = {};
|
|
1724
|
+
const foreign = [];
|
|
1725
|
+
let table = [], owned = false;
|
|
1726
|
+
for (const line of text.match(/[^\n]*\n|[^\n]+$/gu) ?? []) {
|
|
1727
|
+
const clean = uncomment(line.replace(/\r?\n$/u, "")).trim();
|
|
1728
|
+
if (clean.startsWith("[")) {
|
|
1729
|
+
const array = clean.startsWith("[[");
|
|
1730
|
+
if (!(array ? clean.endsWith("]]") : clean.endsWith("]"))) unsupported();
|
|
1731
|
+
table = keyPath(clean.slice(array ? 2 : 1, array ? -2 : -1));
|
|
1732
|
+
const registry = table[0] === "marketplaces" || table[0] === "plugins";
|
|
1733
|
+
if (registry && (array || table.length !== 2)) unsupported();
|
|
1734
|
+
owned = table[0] === "marketplaces" && table[1] === MARKET || table[0] === "plugins" && table[1] === PLUGIN;
|
|
1735
|
+
if (registry) {
|
|
1736
|
+
const key = canonical(table);
|
|
1737
|
+
if (registries[key]) unsupported();
|
|
1738
|
+
registries[key] = {};
|
|
1739
|
+
}
|
|
1740
|
+
} else if (clean && (table[0] === "marketplaces" || table[0] === "plugins")) {
|
|
1741
|
+
const at = clean.indexOf("=");
|
|
1742
|
+
if (at < 1) unsupported();
|
|
1743
|
+
const keys = keyPath(clean.slice(0, at));
|
|
1744
|
+
if (keys.length !== 1) unsupported();
|
|
1745
|
+
const key = keys[0];
|
|
1746
|
+
const allowed = table[0] === "marketplaces" ? ["source_type", "source", "ref", "sparse_paths"] : ["enabled"];
|
|
1747
|
+
if (!allowed.includes(key)) unsupported();
|
|
1748
|
+
const values = registries[canonical(table)];
|
|
1749
|
+
if (Object.hasOwn(values, key)) unsupported();
|
|
1750
|
+
values[key] = valueOf(clean.slice(at + 1).trim());
|
|
1751
|
+
}
|
|
1752
|
+
if (!owned) foreign.push(line);
|
|
1753
|
+
}
|
|
1754
|
+
const own = registries[canonical(["marketplaces", MARKET])];
|
|
1755
|
+
if (!own && !allowOwnedRemoval) return unsupported();
|
|
1756
|
+
if (own && (own.source_type !== "local" || typeof own.source !== "string" || !path2.isAbsolute(own.source)))
|
|
1757
|
+
return unsupported();
|
|
1758
|
+
delete registries[canonical(["marketplaces", MARKET])];
|
|
1759
|
+
delete registries[canonical(["plugins", PLUGIN])];
|
|
1760
|
+
return {
|
|
1761
|
+
file,
|
|
1762
|
+
wholeSha256: hash(bytes),
|
|
1763
|
+
// Codex may leave a leading blank separator when removing an owned first table.
|
|
1764
|
+
// Preserve comments, values and every other byte; only these initial blank lines normalize.
|
|
1765
|
+
foreignContentSha256: hash(foreign.join("").replace(/^(?:[ \t]*\r?\n)+/u, "")),
|
|
1766
|
+
foreignRegistrySha256: hash(canonical(registries)),
|
|
1767
|
+
...own ? { apexrest: { source_type: "local", source: own.source } } : {}
|
|
1768
|
+
};
|
|
1769
|
+
} catch (error) {
|
|
1770
|
+
if (error instanceof Fault) throw error;
|
|
1771
|
+
return unsupported();
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1640
1775
|
// packages/installer/src/registration.ts
|
|
1776
|
+
var apexrestMarketplace = (state) => state.scope === "complete" ? state.markets.find((m) => m.name === "apexrest") : state.scope === "apexrest" ? state.market : void 0;
|
|
1777
|
+
function foreignRegistrationsUnchanged(a, b) {
|
|
1778
|
+
if (a.scope === "complete" && b.scope === "complete")
|
|
1779
|
+
return canonical(a.markets.filter((m) => m.name !== "apexrest")) === canonical(b.markets.filter((m) => m.name !== "apexrest"));
|
|
1780
|
+
return a.scope !== "complete" && b.scope !== "complete" && a.config.file === b.config.file && a.config.foreignContentSha256 === b.config.foreignContentSha256 && a.config.foreignRegistrySha256 === b.config.foreignRegistrySha256;
|
|
1781
|
+
}
|
|
1641
1782
|
async function checkCodex(codexHome, codex = "codex") {
|
|
1642
1783
|
const result = await runCommand({
|
|
1643
1784
|
executable: codex,
|
|
@@ -1699,28 +1840,119 @@ async function listMarketplaces(invoke) {
|
|
|
1699
1840
|
);
|
|
1700
1841
|
return result.marketplaces;
|
|
1701
1842
|
}
|
|
1702
|
-
async function
|
|
1703
|
-
|
|
1843
|
+
async function discoverRegistration(invoke, codexHome) {
|
|
1844
|
+
try {
|
|
1845
|
+
return { scope: "complete", markets: await listMarketplaces(invoke) };
|
|
1846
|
+
} catch (error) {
|
|
1847
|
+
if (!(error instanceof Fault) || error.code !== "CODEX_REGISTRATION_FAILED" || error.status === "outcome_unknown")
|
|
1848
|
+
throw error;
|
|
1849
|
+
}
|
|
1850
|
+
const config = await snapshotForeignConfig(codexHome);
|
|
1851
|
+
const configured = config.apexrest;
|
|
1852
|
+
if (!configured)
|
|
1853
|
+
throw new Fault(
|
|
1854
|
+
"CODEX_REGISTRATION_UNKNOWN",
|
|
1855
|
+
"Configured APEXREST source is missing.",
|
|
1856
|
+
6,
|
|
1857
|
+
"outcome_unknown"
|
|
1858
|
+
);
|
|
1859
|
+
const result = await invoke(["plugin", "list", "--marketplace", "apexrest", "--available", "--json"]);
|
|
1860
|
+
const invalid = () => {
|
|
1861
|
+
throw new Fault(
|
|
1862
|
+
"CODEX_REGISTRATION_UNKNOWN",
|
|
1863
|
+
"Codex did not positively identify the configured local APEXREST marketplace. Inspect the current profile and any saved transition before retrying.",
|
|
1864
|
+
6,
|
|
1865
|
+
"outcome_unknown"
|
|
1866
|
+
);
|
|
1867
|
+
};
|
|
1868
|
+
if (!result || !Array.isArray(result.installed) || !Array.isArray(result.available)) return invalid();
|
|
1869
|
+
const entries = [...result.installed, ...result.available];
|
|
1870
|
+
if (!entries.length) invalid();
|
|
1871
|
+
for (const raw of entries) {
|
|
1872
|
+
const entry = raw;
|
|
1873
|
+
if (!entry || entry.pluginId !== "apexrest-apex@apexrest" || entry.name !== "apexrest-apex" || entry.marketplaceName !== "apexrest" || entry.source?.source !== "local" || entry.marketplaceSource?.sourceType !== "local" || typeof entry.source.path !== "string" || typeof entry.marketplaceSource.source !== "string" || !path3.isAbsolute(entry.source.path) || !path3.isAbsolute(entry.marketplaceSource.source) || path3.resolve(entry.marketplaceSource.source) !== path3.resolve(configured.source) || path3.resolve(entry.source.path) !== path3.join(path3.resolve(configured.source), "plugins/apexrest-apex"))
|
|
1874
|
+
invalid();
|
|
1875
|
+
}
|
|
1876
|
+
if ((await snapshotForeignConfig(codexHome)).wholeSha256 !== config.wholeSha256)
|
|
1877
|
+
throw new Fault(
|
|
1878
|
+
"MARKETPLACE_CHANGED",
|
|
1879
|
+
"Codex configuration changed during scoped discovery. Inspect the current profile and any saved transition before retrying.",
|
|
1880
|
+
5,
|
|
1881
|
+
"conflict"
|
|
1882
|
+
);
|
|
1883
|
+
return {
|
|
1884
|
+
scope: "apexrest",
|
|
1885
|
+
market: {
|
|
1886
|
+
name: "apexrest",
|
|
1887
|
+
root: path3.resolve(configured.source),
|
|
1888
|
+
marketplaceSource: { sourceType: "local", source: configured.source }
|
|
1889
|
+
},
|
|
1890
|
+
config
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
async function discoverAfterOwnedRemoval(invoke, codexHome, before, response) {
|
|
1894
|
+
if (before.scope !== "apexrest" || !response || response.marketplaceName !== "apexrest")
|
|
1895
|
+
throw new Fault(
|
|
1896
|
+
"CODEX_REGISTRATION_UNKNOWN",
|
|
1897
|
+
"The owned marketplace removal was not confirmed.",
|
|
1898
|
+
6,
|
|
1899
|
+
"outcome_unknown"
|
|
1900
|
+
);
|
|
1901
|
+
const config = await snapshotForeignConfig(codexHome, true);
|
|
1902
|
+
const removed = {
|
|
1903
|
+
scope: "apexrest-removed",
|
|
1904
|
+
config,
|
|
1905
|
+
removal: "confirmed-apexrest-removal"
|
|
1906
|
+
};
|
|
1907
|
+
if (config.apexrest || !foreignRegistrationsUnchanged(before, removed))
|
|
1908
|
+
throw new Fault(
|
|
1909
|
+
"MARKETPLACE_CHANGED",
|
|
1910
|
+
"Configuration changed outside the confirmed APEXREST removal. Inspect the saved transition.",
|
|
1911
|
+
5,
|
|
1912
|
+
"conflict"
|
|
1913
|
+
);
|
|
1914
|
+
const listed = await invoke(["plugin", "list", "--marketplace", "apexrest", "--available", "--json"]);
|
|
1915
|
+
if (!listed || !Array.isArray(listed.installed) || !Array.isArray(listed.available) || listed.installed.length || listed.available.length || (await snapshotForeignConfig(codexHome, true)).wholeSha256 !== config.wholeSha256)
|
|
1916
|
+
throw new Fault(
|
|
1917
|
+
"CODEX_REGISTRATION_UNKNOWN",
|
|
1918
|
+
"Removed APEXREST marketplace state could not be verified.",
|
|
1919
|
+
6,
|
|
1920
|
+
"outcome_unknown"
|
|
1921
|
+
);
|
|
1922
|
+
return removed;
|
|
1923
|
+
}
|
|
1924
|
+
async function inspectRegistration(input, home, codexHome, destination) {
|
|
1925
|
+
const discovery = Array.isArray(input) ? { scope: "complete", markets: input } : input;
|
|
1926
|
+
if (discovery.scope === "apexrest-removed")
|
|
1927
|
+
throw new Fault(
|
|
1928
|
+
"CODEX_REGISTRATION_UNKNOWN",
|
|
1929
|
+
"A transitional removal is not an installation preflight.",
|
|
1930
|
+
6,
|
|
1931
|
+
"outcome_unknown"
|
|
1932
|
+
);
|
|
1933
|
+
const entries = discovery.scope === "complete" ? discovery.markets.filter((m) => m.name === "apexrest") : [discovery.market];
|
|
1934
|
+
const context = discovery.scope === "complete" ? { discovery, markets: discovery.markets } : { discovery };
|
|
1935
|
+
const identity = discovery.scope === "complete" ? discovery.markets : discovery;
|
|
1704
1936
|
const conflict = (reason) => {
|
|
1705
1937
|
throw new Fault(
|
|
1706
1938
|
"MARKETPLACE_OWNERSHIP_CONFLICT",
|
|
1707
|
-
`Cannot
|
|
1939
|
+
`Cannot verify the apexrest marketplace at ${entries[0]?.root ?? "(unknown)"} in ${codexHome}: ${reason} Inspect the current Codex registration and any saved transition before retrying.`,
|
|
1708
1940
|
5,
|
|
1709
1941
|
"conflict"
|
|
1710
1942
|
);
|
|
1711
1943
|
};
|
|
1712
1944
|
if (entries.length > 1) conflict("more than one registration was found.");
|
|
1713
1945
|
const existing = entries[0];
|
|
1714
|
-
if (!existing) return { action: "install", fingerprint: hash(canonical(
|
|
1946
|
+
if (!existing) return { action: "install", fingerprint: hash(canonical(identity)), ...context };
|
|
1715
1947
|
let version, files;
|
|
1716
1948
|
try {
|
|
1717
1949
|
if (existing.marketplaceSource && existing.marketplaceSource.sourceType !== "local")
|
|
1718
1950
|
conflict("automatic migration supports a local APEXREST marketplace only.");
|
|
1719
|
-
const metadata = await readJson(
|
|
1951
|
+
const metadata = await readJson(path3.join(existing.root, ".agents/plugins/marketplace.json"));
|
|
1720
1952
|
if (canonical(metadata) !== canonical(nativeMarketplace))
|
|
1721
1953
|
conflict("its metadata does not identify the dedicated APEXREST marketplace.");
|
|
1722
1954
|
const plugin = await resolveNativePlugin(existing.root);
|
|
1723
|
-
if (
|
|
1955
|
+
if (path3.relative(existing.root, plugin).split(path3.sep).join("/") !== "plugins/apexrest-apex")
|
|
1724
1956
|
conflict("its plugin source is not the expected local bundle.");
|
|
1725
1957
|
version = (await validateNative(plugin)).version;
|
|
1726
1958
|
files = await inventory(plugin);
|
|
@@ -1728,21 +1960,22 @@ async function inspectRegistration(markets, home, codexHome, destination) {
|
|
|
1728
1960
|
if (error instanceof Fault && error.code === "MARKETPLACE_OWNERSHIP_CONFLICT") throw error;
|
|
1729
1961
|
conflict("its APEXREST plugin bundle could not be validated.");
|
|
1730
1962
|
}
|
|
1731
|
-
const receipt =
|
|
1963
|
+
const receipt = path3.join(home, "installation.json");
|
|
1732
1964
|
const previous = await exists(receipt) ? await readJson(receipt) : void 0;
|
|
1733
1965
|
const managed = existing.root === destination || existing.root === previous?.destination && previous?.codexHome === codexHome;
|
|
1734
1966
|
return {
|
|
1735
1967
|
action: managed ? "update" : "adopt",
|
|
1736
1968
|
previousRoot: existing.root,
|
|
1737
1969
|
previousVersion: version,
|
|
1738
|
-
fingerprint: hash(canonical({ markets, files })),
|
|
1739
|
-
|
|
1970
|
+
fingerprint: hash(canonical({ markets: identity, files })),
|
|
1971
|
+
...context
|
|
1740
1972
|
};
|
|
1741
1973
|
}
|
|
1742
1974
|
|
|
1743
1975
|
// packages/installer/src/native.ts
|
|
1744
|
-
import
|
|
1745
|
-
import {
|
|
1976
|
+
import path4 from "node:path";
|
|
1977
|
+
import { homedir } from "node:os";
|
|
1978
|
+
import { cp, mkdir, readFile as readFile2, rm, chmod, realpath as realpath2, stat } from "node:fs/promises";
|
|
1746
1979
|
var claudeFile = ".claude-plugin/plugin.json";
|
|
1747
1980
|
function normalizeClaude(manifest) {
|
|
1748
1981
|
const server = manifest.mcpServers?.apexrest;
|
|
@@ -1763,7 +1996,7 @@ async function installNative(r) {
|
|
|
1763
1996
|
])
|
|
1764
1997
|
);
|
|
1765
1998
|
payload[".agents/plugins/marketplace.json"] = hash(JSON.stringify(nativeMarketplace, null, 2) + "\n");
|
|
1766
|
-
const claude = await exists(
|
|
1999
|
+
const claude = await exists(path4.join(source, claudeFile)) ? await readJson(path4.join(source, claudeFile)) : void 0;
|
|
1767
2000
|
const claudeMarketplace = claude ? {
|
|
1768
2001
|
name: "apexrest",
|
|
1769
2002
|
owner: claude.author ?? { name: "APEXREST" },
|
|
@@ -1781,7 +2014,7 @@ async function installNative(r) {
|
|
|
1781
2014
|
if (claudeMarketplace)
|
|
1782
2015
|
payload[".claude-plugin/marketplace.json"] = hash(JSON.stringify(claudeMarketplace, null, 2) + "\n");
|
|
1783
2016
|
const copyDigest = hash(canonical(payload));
|
|
1784
|
-
const sourceMcpFile = await exists(
|
|
2017
|
+
const sourceMcpFile = await exists(path4.join(source, "plugin.json")) ? "mcp.json" : ".mcp.json";
|
|
1785
2018
|
const mcpKey = "plugins/apexrest-apex/" + sourceMcpFile;
|
|
1786
2019
|
const claudeKey = "plugins/apexrest-apex/" + claudeFile;
|
|
1787
2020
|
const expectedFiles = canonical({
|
|
@@ -1790,7 +2023,7 @@ async function installNative(r) {
|
|
|
1790
2023
|
...claude ? { [claudeKey]: void 0 } : {}
|
|
1791
2024
|
});
|
|
1792
2025
|
const expectedClaude = claude ? canonical(normalizeClaude(claude)) : void 0;
|
|
1793
|
-
const sourceMcp = await readJson(
|
|
2026
|
+
const sourceMcp = await readJson(path4.join(source, sourceMcpFile));
|
|
1794
2027
|
const sourceServer = sourceMcp.mcpServers.apexrest;
|
|
1795
2028
|
if (!sourceServer) throw new Fault("INVALID_PACKAGE", "Native package has no apexrest MCP server.", 2);
|
|
1796
2029
|
sourceServer.command = "node";
|
|
@@ -1806,18 +2039,34 @@ async function installNative(r) {
|
|
|
1806
2039
|
const home = await canonicalHome(r.home);
|
|
1807
2040
|
const codexHome = await canonicalHome(r.codexHome);
|
|
1808
2041
|
const node = r.node ?? process.execPath;
|
|
1809
|
-
const destination =
|
|
1810
|
-
const root =
|
|
1811
|
-
const cli =
|
|
2042
|
+
const destination = path4.join(home, "native", hash(canonical({ sourceDigest: digest, node, home })));
|
|
2043
|
+
const root = path4.join(destination, "plugins/apexrest-apex");
|
|
2044
|
+
const cli = path4.join(root, "runtime/apexrest.mjs");
|
|
1812
2045
|
const launchers = launcherScripts(home, node, cli);
|
|
1813
|
-
const
|
|
1814
|
-
if (!await
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
2046
|
+
const registrationCwd = await realpath2(homedir());
|
|
2047
|
+
if (!(await stat(registrationCwd)).isDirectory())
|
|
2048
|
+
throw new Fault(
|
|
2049
|
+
"CODEX_REGISTRATION_FAILED",
|
|
2050
|
+
"Codex user-home working directory is unavailable.",
|
|
2051
|
+
3,
|
|
2052
|
+
"blocked"
|
|
2053
|
+
);
|
|
2054
|
+
const invoke = codexInvoke(codexHome, registrationCwd, r.codex);
|
|
2055
|
+
if (!await exists(codexHome)) {
|
|
2056
|
+
await checkCodex(codexHome, r.codex);
|
|
2057
|
+
await mkdir(codexHome, { recursive: true, mode: 448 });
|
|
2058
|
+
}
|
|
2059
|
+
let removalProof;
|
|
2060
|
+
const discover = async () => {
|
|
2061
|
+
try {
|
|
2062
|
+
return await discoverRegistration(invoke, codexHome);
|
|
2063
|
+
} catch (error) {
|
|
2064
|
+
if (removalProof && error instanceof Fault && error.code === "CODEX_CONFIG_SNAPSHOT_UNAVAILABLE")
|
|
2065
|
+
return discoverAfterOwnedRemoval(invoke, codexHome, removalProof.before, removalProof.response);
|
|
2066
|
+
throw error;
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
const inspect = async () => inspectRegistration(await discover(), home, codexHome, destination);
|
|
1821
2070
|
let registration = await inspect();
|
|
1822
2071
|
if (r.expectedRegistration && r.expectedRegistration !== registration.fingerprint)
|
|
1823
2072
|
throw new Fault(
|
|
@@ -1837,47 +2086,59 @@ async function installNative(r) {
|
|
|
1837
2086
|
codexHome,
|
|
1838
2087
|
registration
|
|
1839
2088
|
};
|
|
1840
|
-
return withLock(
|
|
2089
|
+
return withLock(path4.join(home, "install.lock"), async () => {
|
|
1841
2090
|
await mkdir(codexHome, { recursive: true, mode: 448 });
|
|
1842
|
-
const config =
|
|
2091
|
+
const config = path4.join(codexHome, "config.toml");
|
|
1843
2092
|
const stamp = Date.now();
|
|
1844
|
-
const configBackup =
|
|
2093
|
+
const configBackup = path4.join(home, "config-before-install-" + stamp + ".toml");
|
|
1845
2094
|
if (await exists(config)) await cp(config, configBackup);
|
|
1846
|
-
const
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
await renameWithRetry(destination, broken);
|
|
1850
|
-
await rm(broken, { recursive: true, force: true });
|
|
1851
|
-
}
|
|
1852
|
-
if (!await exists(destination)) {
|
|
2095
|
+
const present = await exists(destination);
|
|
2096
|
+
const repaired = present && !await reusable(destination, expectedFiles, mcpKey, expectedClaude);
|
|
2097
|
+
if (!present || repaired) {
|
|
1853
2098
|
const staging = destination + ".staging";
|
|
1854
2099
|
await rm(staging, { recursive: true, force: true });
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
await writeJson(
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
2100
|
+
try {
|
|
2101
|
+
await mkdir(staging, { recursive: true, mode: 448 });
|
|
2102
|
+
await mkdir(path4.join(staging, "plugins"), { recursive: true });
|
|
2103
|
+
const stagedPlugin = path4.join(staging, "plugins/apexrest-apex");
|
|
2104
|
+
await cp(source, stagedPlugin, { recursive: true });
|
|
2105
|
+
await writeJson(path4.join(staging, ".agents/plugins/marketplace.json"), nativeMarketplace);
|
|
2106
|
+
if (claudeMarketplace)
|
|
2107
|
+
await writeJson(path4.join(staging, ".claude-plugin/marketplace.json"), claudeMarketplace);
|
|
2108
|
+
if (hash(canonical(await inventory(staging))) !== copyDigest)
|
|
2109
|
+
throw new Fault("PACKAGE_COPY_INVALID", "Native package copy changed.", 5);
|
|
2110
|
+
await r.checkRuntime?.(stagedPlugin, node, home);
|
|
2111
|
+
if (repaired) {
|
|
2112
|
+
const broken = `${destination}.broken-${stamp}`;
|
|
2113
|
+
await renameWithRetry(destination, broken);
|
|
2114
|
+
try {
|
|
2115
|
+
await renameWithRetry(staging, destination);
|
|
2116
|
+
} catch (error) {
|
|
2117
|
+
await renameWithRetry(broken, destination);
|
|
2118
|
+
throw error;
|
|
2119
|
+
}
|
|
2120
|
+
await rm(broken, { recursive: true, force: true });
|
|
2121
|
+
} else await renameWithRetry(staging, destination);
|
|
2122
|
+
} finally {
|
|
2123
|
+
await rm(staging, { recursive: true, force: true });
|
|
2124
|
+
}
|
|
2125
|
+
} else await r.checkRuntime?.(root, node, home);
|
|
2126
|
+
const portable = await exists(path4.join(root, "plugin.json"));
|
|
2127
|
+
const mcpPath = path4.join(root, portable ? "mcp.json" : ".mcp.json");
|
|
2128
|
+
const mcp = JSON.parse(await readFile2(mcpPath, "utf8"));
|
|
1868
2129
|
const server = mcp.mcpServers.apexrest;
|
|
1869
2130
|
if (!server) throw new Fault("INVALID_PACKAGE", "Native package has no apexrest MCP server.", 2);
|
|
1870
2131
|
server.command = node;
|
|
1871
|
-
server.args = [
|
|
1872
|
-
server.env = { APEXREST_HOME: home };
|
|
2132
|
+
server.args = [path4.join(root, "runtime/mcp.mjs")];
|
|
2133
|
+
server.env = { APEXREST_HOME: home, APEXREST_HOST: "codex" };
|
|
1873
2134
|
await writeJson(mcpPath, mcp);
|
|
1874
2135
|
if (claude) {
|
|
1875
2136
|
const installedClaude = normalizeClaude(
|
|
1876
|
-
await readJson(
|
|
2137
|
+
await readJson(path4.join(root, claudeFile))
|
|
1877
2138
|
);
|
|
1878
2139
|
installedClaude.mcpServers.apexrest.command = node;
|
|
1879
|
-
installedClaude.mcpServers.apexrest.env = { APEXREST_HOME: home };
|
|
1880
|
-
await writeJson(
|
|
2140
|
+
installedClaude.mcpServers.apexrest.env = { APEXREST_HOME: home, APEXREST_HOST: "claude" };
|
|
2141
|
+
await writeJson(path4.join(root, claudeFile), installedClaude);
|
|
1881
2142
|
}
|
|
1882
2143
|
if (repaired && registration.previousRoot === destination) registration = await inspect();
|
|
1883
2144
|
const current = await inspect();
|
|
@@ -1888,7 +2149,7 @@ async function installNative(r) {
|
|
|
1888
2149
|
5,
|
|
1889
2150
|
"conflict"
|
|
1890
2151
|
);
|
|
1891
|
-
const transition =
|
|
2152
|
+
const transition = path4.join(home, "registration-before-install-" + stamp + ".json");
|
|
1892
2153
|
const previousListing = registration.previousRoot ? await invoke(["plugin", "list", "--marketplace", "apexrest", "--json"]) : void 0;
|
|
1893
2154
|
const previousPlugin = previousListing?.installed?.find((plugin) => plugin.pluginId === "apexrest-apex@apexrest");
|
|
1894
2155
|
const record = { registration, destination, codexHome, configBackup, previousListing };
|
|
@@ -1896,7 +2157,10 @@ async function installNative(r) {
|
|
|
1896
2157
|
let marketplace, installed, listing;
|
|
1897
2158
|
const replacing = registration.previousRoot && registration.previousRoot !== destination;
|
|
1898
2159
|
try {
|
|
1899
|
-
if (replacing)
|
|
2160
|
+
if (replacing) {
|
|
2161
|
+
const response = await invoke(["plugin", "marketplace", "remove", "apexrest", "--json"]);
|
|
2162
|
+
removalProof = { before: registration.discovery, response };
|
|
2163
|
+
}
|
|
1900
2164
|
marketplace = await invoke(["plugin", "marketplace", "add", destination, "--json"]);
|
|
1901
2165
|
installed = await invoke(["plugin", "add", "apexrest-apex@apexrest", "--json"]);
|
|
1902
2166
|
const cached = installed.installedPath;
|
|
@@ -1911,8 +2175,8 @@ async function installNative(r) {
|
|
|
1911
2175
|
"Codex did not enable the installed APEXREST plugin.",
|
|
1912
2176
|
3
|
|
1913
2177
|
);
|
|
1914
|
-
const after = await
|
|
1915
|
-
if (after
|
|
2178
|
+
const after = await discover();
|
|
2179
|
+
if (apexrestMarketplace(after)?.root !== destination || !foreignRegistrationsUnchanged(after, registration.discovery))
|
|
1916
2180
|
throw new Fault(
|
|
1917
2181
|
"MARKETPLACE_CHANGED",
|
|
1918
2182
|
"Codex registration verification failed. Inspect the saved registration record before retrying.",
|
|
@@ -1925,9 +2189,9 @@ async function installNative(r) {
|
|
|
1925
2189
|
let unknown = error instanceof Fault && error.status === "outcome_unknown";
|
|
1926
2190
|
if (replacing && !(error instanceof Fault && error.status === "outcome_unknown")) {
|
|
1927
2191
|
try {
|
|
1928
|
-
const after = await
|
|
1929
|
-
const selected = after
|
|
1930
|
-
if (
|
|
2192
|
+
const after = await discover();
|
|
2193
|
+
const selected = apexrestMarketplace(after);
|
|
2194
|
+
if (!foreignRegistrationsUnchanged(after, registration.discovery) || (await inspectRegistration(registration.discovery, home, codexHome, destination)).fingerprint !== registration.fingerprint)
|
|
1931
2195
|
throw new Error("The prior registration or source changed externally.");
|
|
1932
2196
|
if (selected && selected.root !== destination && selected.root !== registration.previousRoot)
|
|
1933
2197
|
throw new Error("Registration changed externally.");
|
|
@@ -1941,7 +2205,8 @@ async function installNative(r) {
|
|
|
1941
2205
|
if (!restored.installedPath || canonical(await inventory(await contained(codexHome, restored.installedPath))) !== canonical(await inventory(previousRoot)))
|
|
1942
2206
|
throw new Error("The previous cached plugin could not be verified.");
|
|
1943
2207
|
}
|
|
1944
|
-
|
|
2208
|
+
const restoredRegistration = await discover();
|
|
2209
|
+
if (apexrestMarketplace(restoredRegistration)?.root !== registration.previousRoot || !foreignRegistrationsUnchanged(restoredRegistration, registration.discovery))
|
|
1945
2210
|
throw new Error("The previous marketplace could not be verified.");
|
|
1946
2211
|
recovery = previousPlugin?.enabled ? "previous-registration-restored" : "previous-marketplace-restored; plugin-state-needs-review";
|
|
1947
2212
|
} catch (recoveryError) {
|
|
@@ -1971,18 +2236,18 @@ async function installNative(r) {
|
|
|
1971
2236
|
registration: { ...registration, transition },
|
|
1972
2237
|
actions: ["CODEX_RELOAD_REQUIRED", "NATIVE_HOST_VERIFICATION_REQUIRED"]
|
|
1973
2238
|
};
|
|
1974
|
-
await writeJson(
|
|
1975
|
-
await mkdir(
|
|
2239
|
+
await writeJson(path4.join(home, "installation.json"), state);
|
|
2240
|
+
await mkdir(path4.join(home, "bin"), { recursive: true });
|
|
1976
2241
|
for (const [name, contents] of Object.entries(launchers)) {
|
|
1977
|
-
await atomicWrite(
|
|
1978
|
-
if (name === "apexrest") await chmod(
|
|
2242
|
+
await atomicWrite(path4.join(home, "bin", name), contents);
|
|
2243
|
+
if (name === "apexrest") await chmod(path4.join(home, "bin", name), 448);
|
|
1979
2244
|
}
|
|
1980
2245
|
await writeJson(transition, { status: "completed", ...record });
|
|
1981
2246
|
return state;
|
|
1982
2247
|
});
|
|
1983
2248
|
}
|
|
1984
2249
|
async function installationState(home) {
|
|
1985
|
-
return readJson(
|
|
2250
|
+
return readJson(path4.join(home, "installation.json"));
|
|
1986
2251
|
}
|
|
1987
2252
|
async function reusable(destination, expectedFiles, mcpKey, expectedClaude) {
|
|
1988
2253
|
try {
|
|
@@ -1991,7 +2256,7 @@ async function reusable(destination, expectedFiles, mcpKey, expectedClaude) {
|
|
|
1991
2256
|
if (expectedClaude) {
|
|
1992
2257
|
const claudeKey = "plugins/apexrest-apex/" + claudeFile;
|
|
1993
2258
|
if (!files[claudeKey]) return false;
|
|
1994
|
-
if (canonical(normalizeClaude(await readJson(
|
|
2259
|
+
if (canonical(normalizeClaude(await readJson(path4.join(destination, claudeKey)))) !== expectedClaude)
|
|
1995
2260
|
return false;
|
|
1996
2261
|
files[claudeKey] = void 0;
|
|
1997
2262
|
}
|
|
@@ -2045,10 +2310,46 @@ exit /b %ERRORLEVEL%\r
|
|
|
2045
2310
|
}
|
|
2046
2311
|
|
|
2047
2312
|
// packages/installer/src/setup.ts
|
|
2313
|
+
async function checkMcpRuntime(root, node, home, version) {
|
|
2314
|
+
const client = new Client({ name: "apexrest-installer", version: VERSION });
|
|
2315
|
+
const transport = new StdioClientTransport({
|
|
2316
|
+
command: node,
|
|
2317
|
+
args: [path5.join(root, "runtime/mcp.mjs")],
|
|
2318
|
+
cwd: root,
|
|
2319
|
+
env: { APEXREST_HOME: home },
|
|
2320
|
+
stderr: "ignore"
|
|
2321
|
+
});
|
|
2322
|
+
try {
|
|
2323
|
+
const options = { timeout: 2e4 };
|
|
2324
|
+
await client.connect(transport, options);
|
|
2325
|
+
const server = client.getServerVersion();
|
|
2326
|
+
const { tools, nextCursor } = await client.listTools({}, options);
|
|
2327
|
+
const names = new Set(tools.map((tool) => tool.name));
|
|
2328
|
+
const expected = version === VERSION ? toolCatalog.map((tool) => tool.name) : ["apexrest_status", "apexrest_project", "apexrest_ship"];
|
|
2329
|
+
if (server?.name !== "apexrest-apex" || server.version !== version || nextCursor || names.size !== tools.length || version === VERSION && names.size !== expected.length || expected.some((name) => !names.has(name)))
|
|
2330
|
+
throw new Fault(
|
|
2331
|
+
"MCP_CATALOG_MISMATCH",
|
|
2332
|
+
"The candidate did not identify itself or advertise the expected APEXREST tools. Existing registration was left unchanged.",
|
|
2333
|
+
3,
|
|
2334
|
+
"blocked"
|
|
2335
|
+
);
|
|
2336
|
+
} catch (error) {
|
|
2337
|
+
if (error instanceof Fault) throw error;
|
|
2338
|
+
throw new Fault(
|
|
2339
|
+
"MCP_STARTUP_FAILED",
|
|
2340
|
+
"The candidate did not complete MCP startup. Existing registration was left unchanged.",
|
|
2341
|
+
3,
|
|
2342
|
+
"blocked"
|
|
2343
|
+
);
|
|
2344
|
+
} finally {
|
|
2345
|
+
await client.close().catch(() => {
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2048
2349
|
async function setup(input) {
|
|
2049
2350
|
const text = (key) => input[key];
|
|
2050
2351
|
const home = await canonicalHome(
|
|
2051
|
-
text("home") ?? (input.scope === "project" ?
|
|
2352
|
+
text("home") ?? (input.scope === "project" ? path5.join(text("project") ?? process.cwd(), ".apexrest/managed") : managedHome())
|
|
2052
2353
|
);
|
|
2053
2354
|
if (input.scope === "project") {
|
|
2054
2355
|
throw new Fault(
|
|
@@ -2067,7 +2368,7 @@ async function setup(input) {
|
|
|
2067
2368
|
2
|
|
2068
2369
|
);
|
|
2069
2370
|
const codexHome = await canonicalHome(
|
|
2070
|
-
text("codexHome") ?? process.env.CODEX_HOME ??
|
|
2371
|
+
text("codexHome") ?? process.env.CODEX_HOME ?? path5.join(homedir2(), ".codex")
|
|
2071
2372
|
);
|
|
2072
2373
|
const codex = text("codex");
|
|
2073
2374
|
const request = {
|
|
@@ -2110,27 +2411,10 @@ async function setup(input) {
|
|
|
2110
2411
|
codexHome,
|
|
2111
2412
|
...codex ? { codex } : {},
|
|
2112
2413
|
node: runtime.node ?? process.execPath,
|
|
2113
|
-
expectedRegistration: nativePlan.registration.fingerprint
|
|
2414
|
+
expectedRegistration: nativePlan.registration.fingerprint,
|
|
2415
|
+
checkRuntime: (root, node, home2) => checkMcpRuntime(root, node, home2, validation.version)
|
|
2114
2416
|
});
|
|
2115
2417
|
if (!("root" in native)) throw new Fault("INSTALL_NOT_COMPLETED", "Native install remained a plan.", 3);
|
|
2116
|
-
const mcp = JSON.parse(
|
|
2117
|
-
await readFile2(
|
|
2118
|
-
path4.join(native.root, validation.profile === "portable" ? "mcp.json" : ".mcp.json"),
|
|
2119
|
-
"utf8"
|
|
2120
|
-
)
|
|
2121
|
-
);
|
|
2122
|
-
const env = Object.fromEntries(
|
|
2123
|
-
Object.entries(process.env).filter((entry) => entry[1] !== void 0)
|
|
2124
|
-
);
|
|
2125
|
-
env.APEXREST_HOME = home;
|
|
2126
|
-
const client = new Client({ name: "apexrest-installer", version: VERSION });
|
|
2127
|
-
const transport = new StdioClientTransport({ ...mcp.mcpServers.apexrest, env, stderr: "pipe" });
|
|
2128
|
-
try {
|
|
2129
|
-
await client.connect(transport);
|
|
2130
|
-
await client.listTools();
|
|
2131
|
-
} finally {
|
|
2132
|
-
await client.close();
|
|
2133
|
-
}
|
|
2134
2418
|
const result = {
|
|
2135
2419
|
schemaVersion: 1,
|
|
2136
2420
|
status: "needs-user-action",
|
|
@@ -2144,11 +2428,11 @@ async function setup(input) {
|
|
|
2144
2428
|
native,
|
|
2145
2429
|
toolchain
|
|
2146
2430
|
};
|
|
2147
|
-
await writeJson(
|
|
2431
|
+
await writeJson(path5.join(home, "setup-result.json"), result);
|
|
2148
2432
|
return result;
|
|
2149
2433
|
}
|
|
2150
2434
|
var ownedDestination = (home, destination) => {
|
|
2151
|
-
if (typeof destination !== "string" || !
|
|
2435
|
+
if (typeof destination !== "string" || !path5.isAbsolute(destination) || path5.dirname(destination) !== path5.join(home, "native") || !/^[a-f0-9]{64}$/.test(path5.basename(destination)))
|
|
2152
2436
|
throw new Fault(
|
|
2153
2437
|
"MARKETPLACE_OWNERSHIP_CONFLICT",
|
|
2154
2438
|
"The installation record does not name a managed native payload under this home; nothing was removed.",
|
|
@@ -2159,9 +2443,9 @@ var ownedDestination = (home, destination) => {
|
|
|
2159
2443
|
};
|
|
2160
2444
|
async function uninstallNative(homeInput, keepRuntime, options = {}) {
|
|
2161
2445
|
const home = await canonicalHome(homeInput);
|
|
2162
|
-
return withLock(
|
|
2446
|
+
return withLock(path5.join(home, "install.lock"), async () => {
|
|
2163
2447
|
const state = await installationState(home);
|
|
2164
|
-
if (typeof state.codexHome !== "string" || !
|
|
2448
|
+
if (typeof state.codexHome !== "string" || !path5.isAbsolute(state.codexHome))
|
|
2165
2449
|
throw new Fault("INSTALLATION_RECORD_INVALID", "The installation record has no Codex profile.", 5);
|
|
2166
2450
|
const codexHome = state.codexHome;
|
|
2167
2451
|
const destination = ownedDestination(home, state.destination);
|
|
@@ -2181,11 +2465,11 @@ async function uninstallNative(homeInput, keepRuntime, options = {}) {
|
|
|
2181
2465
|
if (listing.code !== 0 || listing.stdout.includes("apexrest-apex@apexrest"))
|
|
2182
2466
|
throw new Fault("UNINSTALL_UNCONFIRMED", "Codex still lists this plugin.", 3);
|
|
2183
2467
|
if (!keepRuntime && await exists(destination))
|
|
2184
|
-
await rm2(await containedChild(
|
|
2468
|
+
await rm2(await containedChild(path5.join(home, "native"), destination), {
|
|
2185
2469
|
recursive: true,
|
|
2186
2470
|
force: true
|
|
2187
2471
|
});
|
|
2188
|
-
await writeJson(
|
|
2472
|
+
await writeJson(path5.join(home, "uninstalled.json"), {
|
|
2189
2473
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2190
2474
|
keepRuntime,
|
|
2191
2475
|
sharedRuntimePreserved: true
|