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.
Files changed (613) hide show
  1. package/README.md +76 -101
  2. package/dist/codex-compat/.claude-plugin/marketplace.json +2 -2
  3. package/dist/codex-compat/plugins/apexrest-apex/.claude-plugin/plugin.json +5 -2
  4. package/dist/codex-compat/plugins/apexrest-apex/.codex-plugin/plugin.json +1 -1
  5. package/dist/codex-compat/plugins/apexrest-apex/.mcp.json +4 -1
  6. package/dist/codex-compat/plugins/apexrest-apex/resources/blocks/generator.json +1 -1
  7. package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/crm-26.2.yaml +1 -0
  8. package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/crm.yaml +1 -0
  9. package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/service-desk-26.2.yaml +1 -0
  10. package/dist/codex-compat/plugins/apexrest-apex/resources/blueprints/service-desk.yaml +1 -0
  11. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-alert-confirm.md +177 -0
  12. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-cancel-dialog.md +220 -0
  13. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-close-dialog.md +224 -0
  14. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-debounce-throttle.md +330 -0
  15. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-delete-notification.md +199 -0
  16. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-refresh-after-dialog.md +282 -0
  17. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-region-class.md +193 -0
  18. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-show-error-message.md +154 -0
  19. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/dynamic-actions.md +9 -1
  20. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/parameters.md +32618 -0
  21. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-close-dialog.md +269 -0
  22. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-execute-code.md +201 -0
  23. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/recipes/processes-form-initialization.md +239 -0
  24. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes/source-examples.md +938 -0
  25. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/processes.md +31 -0
  26. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/validations/recipes/validations-plsql-error.md +205 -0
  27. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/business-logic/validations.md +2 -1
  28. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/icon/recipes/button-trigger-action.md +139 -0
  29. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/icon.md +2 -1
  30. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-confirmation.md +128 -0
  31. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-server-side-condition.md +160 -0
  32. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text/recipes/button-submit-request.md +183 -0
  33. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon/recipes/button-dynamic-action.md +137 -0
  34. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon/recipes/button-redirect-items.md +155 -0
  35. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text-with-icon.md +3 -1
  36. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/buttons/text.md +4 -1
  37. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/catalog.md +7 -1
  38. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/checkbox-group/recipes/item-checkbox-group-columns.md +125 -0
  39. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/checkbox-group.md +2 -1
  40. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/date-picker/recipes/item-date-picker-range.md +121 -0
  41. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/date-picker.md +2 -1
  42. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image/parameters.md +7998 -0
  43. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image/recipes/item-display-image.md +118 -0
  44. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/display-image.md +27 -0
  45. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address/parameters.md +8564 -0
  46. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address/recipes/item-geocoded-address.md +137 -0
  47. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/geocoded-address.md +27 -0
  48. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/number-field/recipes/item-number-field-format-mask.md +123 -0
  49. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/number-field.md +2 -1
  50. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/popup-lov/recipes/item-popup-lov-display-null.md +128 -0
  51. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/popup-lov.md +2 -1
  52. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/radio-group/recipes/item-radio-group-columns.md +123 -0
  53. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/radio-group.md +2 -1
  54. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor/parameters.md +8003 -0
  55. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor/recipes/item-rich-text-editor.md +126 -0
  56. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/rich-text-editor.md +27 -0
  57. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/select-list/recipes/item-select-list-shared-lov.md +149 -0
  58. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/select-list.md +2 -1
  59. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/shuttle/recipes/item-shuttle-shared-lov.md +157 -0
  60. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/shuttle.md +2 -1
  61. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/switch/recipes/item-switch-custom-values.md +123 -0
  62. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/switch.md +2 -1
  63. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/textarea/recipes/item-textarea-required-length.md +123 -0
  64. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/items/textarea.md +2 -1
  65. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/parameters.md +13322 -0
  66. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/recipes/breadcrumb.md +137 -0
  67. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb/source-examples.md +20 -0
  68. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/breadcrumb.md +29 -0
  69. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-create-event-on-select.md +252 -0
  70. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-custom-navigation.md +360 -0
  71. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-custom-styling.md +156 -0
  72. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-delete-or-copy-on-click.md +271 -0
  73. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-standard-monthly.md +147 -0
  74. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-status-tracking.md +259 -0
  75. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-conference.md +153 -0
  76. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-drag-drop.md +146 -0
  77. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar/recipes/calendar-weekly-time-format-toggle.md +330 -0
  78. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/calendar.md +10 -1
  79. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/cards/recipes/cards-actions.md +193 -0
  80. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/cards.md +2 -1
  81. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-3d-effect.md +176 -0
  82. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-area-custom-legend.md +226 -0
  83. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bar-dual-axis.md +203 -0
  84. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bar-stacked-horizontal.md +170 -0
  85. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-bubble.md +171 -0
  86. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-custom-tooltip.md +156 -0
  87. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-dashboard-combination.md +234 -0
  88. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-data-densification.md +169 -0
  89. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-gantt.md +188 -0
  90. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-line-with-area.md +197 -0
  91. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-links.md +188 -0
  92. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-scatter.md +167 -0
  93. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-series-color.md +143 -0
  94. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-status-meter-gauge.md +142 -0
  95. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-stock.md +173 -0
  96. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart/recipes/chart-zoom-scroll.md +168 -0
  97. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/chart.md +17 -1
  98. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-calendar.md +352 -0
  99. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-cards.md +430 -0
  100. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-content-row.md +599 -0
  101. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-dashboard.md +883 -0
  102. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-directory-groups.md +514 -0
  103. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-grouped-rows.md +663 -0
  104. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-map.md +379 -0
  105. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-search-only-report.md +408 -0
  106. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search/recipes/faceted-search-timeline.md +510 -0
  107. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/faceted-search.md +10 -1
  108. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form/recipes/form-dialog-buttons.md +247 -0
  109. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form/recipes/sectioned-form-expense-report.md +938 -0
  110. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/form.md +3 -1
  111. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text/parameters.md +11842 -0
  112. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text/recipes/help-text.md +137 -0
  113. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/help-text.md +27 -0
  114. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-bbox-static.md +152 -0
  115. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-browser-location.md +138 -0
  116. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-extruded-polygons.md +155 -0
  117. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-geojson-icon-points.md +150 -0
  118. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-heat-map.md +143 -0
  119. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-lines-geojson.md +147 -0
  120. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-multi-layer-legend.md +220 -0
  121. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-points-lonlat.md +148 -0
  122. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map/recipes/map-polygons-color-scheme.md +160 -0
  123. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/map.md +10 -1
  124. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/region-display-selector/recipes/region-display-selector-icons.md +161 -0
  125. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/region-display-selector.md +2 -1
  126. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-accordion.md +152 -0
  127. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-collection-toolbar.md +205 -0
  128. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-dividers.md +155 -0
  129. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content/recipes/static-content-empty-state.md +139 -0
  130. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/regions/static-content.md +5 -1
  131. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-notifications.md +141 -0
  132. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-percent-graph.md +151 -0
  133. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report/recipes/classic-report-suggestions.md +134 -0
  134. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/classic-report.md +4 -1
  135. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/contextual-info/recipes/contextual-info-row-based.md +138 -0
  136. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/contextual-info.md +2 -1
  137. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid/recipes/editable-grid-expense-lines.md +378 -0
  138. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid/recipes/interactive-grid-toolbar-download.md +200 -0
  139. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-grid.md +3 -1
  140. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-full-options.md +227 -0
  141. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-search-bar-actions.md +206 -0
  142. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report/recipes/interactive-report-secondary.md +161 -0
  143. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/reports/interactive-report.md +4 -1
  144. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/template-components/content-row/recipes/directory-hero-search-content-row.md +476 -0
  145. package/dist/codex-compat/plugins/apexrest-apex/resources/components/documents/template-components/content-row.md +2 -1
  146. package/dist/codex-compat/plugins/apexrest-apex/resources/components/index.json +3485 -739
  147. package/dist/codex-compat/plugins/apexrest-apex/resources/components/manifest.json +245 -38
  148. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/compiler-evidence.json +2103 -422
  149. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-breadcrumb/pages/p00001-home.apx +46 -0
  150. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-breadcrumb/shared-components/breadcrumbs.apx +17 -0
  151. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-confirmation/pages/p00001-home.apx +60 -0
  152. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-dynamic-action/pages/p00001-home.apx +69 -0
  153. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-redirect-items/pages/p00001-home.apx +87 -0
  154. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-server-side-condition/pages/p00001-home.apx +90 -0
  155. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-submit-request/pages/p00001-home.apx +113 -0
  156. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-button-trigger-action/pages/p00001-home.apx +71 -0
  157. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-create-event-on-select/pages/p00001-home.apx +181 -0
  158. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-custom-navigation/pages/p00001-home.apx +292 -0
  159. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-custom-styling/pages/p00001-home.apx +88 -0
  160. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-delete-or-copy-on-click/pages/p00001-home.apx +200 -0
  161. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-standard-monthly/pages/p00001-home.apx +79 -0
  162. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-status-tracking/pages/p00001-home.apx +191 -0
  163. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-conference/pages/p00001-home.apx +85 -0
  164. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-drag-drop/pages/p00001-home.apx +78 -0
  165. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-calendar-weekly-time-format-toggle/pages/p00001-home.apx +260 -0
  166. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-cards-actions/pages/p00001-home.apx +125 -0
  167. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-3d-effect/pages/p00001-home.apx +108 -0
  168. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-area-custom-legend/pages/p00001-home.apx +158 -0
  169. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bar-dual-axis/pages/p00001-home.apx +135 -0
  170. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bar-stacked-horizontal/pages/p00001-home.apx +102 -0
  171. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-bubble/pages/p00001-home.apx +103 -0
  172. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-custom-tooltip/pages/p00001-home.apx +88 -0
  173. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-dashboard-combination/pages/p00001-home.apx +166 -0
  174. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-data-densification/pages/p00001-home.apx +101 -0
  175. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-gantt/pages/p00001-home.apx +120 -0
  176. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-line-with-area/pages/p00001-home.apx +129 -0
  177. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-links/pages/p00001-home.apx +120 -0
  178. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-scatter/pages/p00001-home.apx +99 -0
  179. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-series-color/pages/p00001-home.apx +75 -0
  180. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-status-meter-gauge/pages/p00001-home.apx +74 -0
  181. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-stock/pages/p00001-home.apx +105 -0
  182. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-chart-zoom-scroll/pages/p00001-home.apx +100 -0
  183. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-notifications/pages/p00001-home.apx +73 -0
  184. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-percent-graph/pages/p00001-home.apx +83 -0
  185. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-classic-report-suggestions/pages/p00001-home.apx +66 -0
  186. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-contextual-info-row-based/pages/p00001-home.apx +70 -0
  187. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-directory-hero-search-content-row/pages/p00001-home.apx +406 -0
  188. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-alert-confirm/pages/p00001-home.apx +109 -0
  189. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00001-home.apx +48 -0
  190. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00002-dialog.apx +98 -0
  191. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00001-home.apx +48 -0
  192. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00002-dialog.apx +102 -0
  193. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-debounce-throttle/pages/p00001-home.apx +262 -0
  194. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-delete-notification/pages/p00001-home.apx +129 -0
  195. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00001-home.apx +109 -0
  196. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00002-dialog.apx +99 -0
  197. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-region-class/pages/p00001-home.apx +125 -0
  198. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-dynamic-actions-show-error-message/pages/p00001-home.apx +86 -0
  199. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-editable-grid-expense-lines/pages/p00001-home.apx +310 -0
  200. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-calendar/pages/p00001-home.apx +284 -0
  201. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-cards/pages/p00001-home.apx +362 -0
  202. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-content-row/pages/p00001-home.apx +531 -0
  203. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-dashboard/pages/p00001-home.apx +809 -0
  204. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-directory-groups/pages/p00001-home.apx +446 -0
  205. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-grouped-rows/pages/p00001-home.apx +595 -0
  206. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-map/pages/p00001-home.apx +311 -0
  207. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-search-only-report/pages/p00001-home.apx +340 -0
  208. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-faceted-search-timeline/pages/p00001-home.apx +442 -0
  209. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-form-dialog-buttons/pages/p00001-home.apx +179 -0
  210. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-help-text/pages/p00001-home.apx +69 -0
  211. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-grid-toolbar-download/pages/p00001-home.apx +132 -0
  212. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-full-options/pages/p00001-home.apx +159 -0
  213. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-search-bar-actions/pages/p00001-home.apx +138 -0
  214. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-interactive-report-secondary/pages/p00001-home.apx +93 -0
  215. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-checkbox-group-columns/pages/p00001-home.apx +55 -0
  216. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-date-picker-range/pages/p00001-home.apx +51 -0
  217. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-display-image/pages/p00001-home.apx +50 -0
  218. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-geocoded-address/pages/p00001-home.apx +66 -0
  219. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-number-field-format-mask/pages/p00001-home.apx +53 -0
  220. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-popup-lov-display-null/pages/p00001-home.apx +58 -0
  221. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-radio-group-columns/pages/p00001-home.apx +53 -0
  222. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-rich-text-editor/pages/p00001-home.apx +56 -0
  223. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-select-list-shared-lov/pages/p00001-home.apx +48 -0
  224. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-select-list-shared-lov/shared-components/lovs.apx +25 -0
  225. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-shuttle-shared-lov/pages/p00001-home.apx +50 -0
  226. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-shuttle-shared-lov/shared-components/lovs.apx +31 -0
  227. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-switch-custom-values/pages/p00001-home.apx +53 -0
  228. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-item-textarea-required-length/pages/p00001-home.apx +53 -0
  229. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-bbox-static/pages/p00001-home.apx +82 -0
  230. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-browser-location/pages/p00001-home.apx +70 -0
  231. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-extruded-polygons/pages/p00001-home.apx +87 -0
  232. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-geojson-icon-points/pages/p00001-home.apx +82 -0
  233. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-heat-map/pages/p00001-home.apx +75 -0
  234. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-lines-geojson/pages/p00001-home.apx +79 -0
  235. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-multi-layer-legend/pages/p00001-home.apx +152 -0
  236. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-points-lonlat/pages/p00001-home.apx +80 -0
  237. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-map-polygons-color-scheme/pages/p00001-home.apx +92 -0
  238. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-close-dialog/pages/p00001-home.apx +48 -0
  239. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-close-dialog/pages/p00002-dialog.apx +145 -0
  240. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-execute-code/pages/p00001-home.apx +130 -0
  241. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-processes-form-initialization/pages/p00001-home.apx +171 -0
  242. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-region-display-selector-icons/pages/p00001-home.apx +93 -0
  243. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-sectioned-form-expense-report/pages/p00001-home.apx +870 -0
  244. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-accordion/pages/p00001-home.apx +84 -0
  245. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-collection-toolbar/pages/p00001-home.apx +137 -0
  246. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-dividers/pages/p00001-home.apx +87 -0
  247. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-static-content-empty-state/pages/p00001-home.apx +71 -0
  248. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/internet-validations-plsql-error/pages/p00001-home.apx +134 -0
  249. package/dist/codex-compat/plugins/apexrest-apex/resources/components/recipes/registry.json +4973 -0
  250. package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/docs/metrics/capacity-summary/recipes/unit-aware.md +3 -3
  251. package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/index.json +408 -408
  252. package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/manifest.json +8 -8
  253. package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/compiler-evidence.json +3 -3
  254. package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/registry.json +1 -1
  255. package/dist/codex-compat/plugins/apexrest-apex/resources/patterns/recipes/ux-extra-metrics-capacity-summary-unit-aware/pages/p00001-home.apx +2 -2
  256. package/dist/codex-compat/plugins/apexrest-apex/resources/policy/deployment-safety.md +197 -20
  257. package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/guides/upgrade-audit.md +13 -1
  258. package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/guides.json +1 -1
  259. package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/index.json +3 -3
  260. package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/oracle-snapshot.json +2 -2
  261. package/dist/codex-compat/plugins/apexrest-apex/resources/references/26.2/search.json +1 -1
  262. package/dist/codex-compat/plugins/apexrest-apex/resources/scaffold/observations.sql +126 -0
  263. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-blueprint.schema.json +17 -17
  264. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-contract.schema.json +9 -2
  265. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-entity.schema.json +5 -3
  266. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-field.schema.json +4 -1
  267. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-instance.schema.json +2 -8
  268. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-parameters.schema.json +1 -5
  269. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-plan.schema.json +102 -5
  270. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-shared-resource.schema.json +82 -0
  271. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/composer-state.schema.json +88 -0
  272. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/deploy-plan.schema.json +75 -3
  273. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/operations.schema.json +488 -17
  274. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/policy.schema.json +1 -1
  275. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/project.schema.json +61 -5
  276. package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/sync-state.schema.json +8 -0
  277. package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/application.apx +1 -0
  278. package/dist/codex-compat/plugins/apexrest-apex/resources/toolchains/sources.lock.json +1 -1
  279. package/dist/codex-compat/plugins/apexrest-apex/runtime/apexrest.mjs +154 -52
  280. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-26MTCOZK.mjs +239 -0
  281. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-47GDU535.mjs +1020 -0
  282. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-4LEHTNYH.mjs +252 -0
  283. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-4MIZ34V4.mjs +280 -0
  284. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-6JZB7NDZ.mjs +33342 -0
  285. package/dist/{runtime/chunk-U7MVLA3R.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-CI5IU2PI.mjs} +433 -181
  286. package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-JZ5FIGSS.mjs → chunk-DJPW35KJ.mjs} +5 -5
  287. package/dist/{runtime/chunk-BLB5JLWO.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-GHVRIHN6.mjs} +834 -4808
  288. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-JJYHZOQR.mjs +6608 -0
  289. package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-AESZGFM2.mjs → chunk-LCNHRIKE.mjs} +6 -3
  290. package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-YEGSGHTV.mjs → chunk-LIG5PZ4K.mjs} +44 -12
  291. package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-2YXH4VEB.mjs → chunk-LIGDVE6F.mjs} +438 -154
  292. package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-WK445BKL.mjs → chunk-M5EC4OUI.mjs} +116 -41
  293. package/dist/{runtime/chunk-TE5VTEAH.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-MPKKOQVI.mjs} +349 -446
  294. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-N3KQBIVW.mjs +252 -0
  295. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-PFOHMLO4.mjs +141 -0
  296. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-PNGZYZE7.mjs +4703 -0
  297. package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-NBA54QYW.mjs → chunk-PS2GKOR2.mjs} +9 -6
  298. package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-T3UX6AQO.mjs → chunk-TBHIU7PZ.mjs} +170 -3432
  299. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-TDM3E2NK.mjs +161 -0
  300. package/dist/{runtime/chunk-ZSDDYNF5.mjs → codex-compat/plugins/apexrest-apex/runtime/chunk-UKXRUJT4.mjs} +7 -5
  301. package/dist/codex-compat/plugins/apexrest-apex/runtime/{chunk-BZZ3RV7L.mjs → chunk-XJ7FW7XH.mjs} +4 -4
  302. package/dist/codex-compat/plugins/apexrest-apex/runtime/mcp.mjs +1 -1
  303. package/dist/codex-compat/plugins/apexrest-apex/runtime/preview-oracle-worker.mjs +57 -0
  304. package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/SKILL.md +11 -13
  305. package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-oracle-sync/SKILL.md +5 -1
  306. package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-oracle-sync/references/oracle-skills.md +19 -0
  307. package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/SKILL.md +14 -11
  308. package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/peer-review.md +12 -0
  309. package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/scaffold.md +115 -0
  310. package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/references/upgrade.md +11 -0
  311. package/dist/resources/blocks/generator.json +1 -1
  312. package/dist/resources/blueprints/crm-26.2.yaml +1 -0
  313. package/dist/resources/blueprints/crm.yaml +1 -0
  314. package/dist/resources/blueprints/service-desk-26.2.yaml +1 -0
  315. package/dist/resources/blueprints/service-desk.yaml +1 -0
  316. package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-alert-confirm.md +177 -0
  317. package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-cancel-dialog.md +220 -0
  318. package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-close-dialog.md +224 -0
  319. package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-debounce-throttle.md +330 -0
  320. package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-delete-notification.md +199 -0
  321. package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-refresh-after-dialog.md +282 -0
  322. package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-region-class.md +193 -0
  323. package/dist/resources/components/documents/business-logic/dynamic-actions/recipes/dynamic-actions-show-error-message.md +154 -0
  324. package/dist/resources/components/documents/business-logic/dynamic-actions.md +9 -1
  325. package/dist/resources/components/documents/business-logic/processes/parameters.md +32618 -0
  326. package/dist/resources/components/documents/business-logic/processes/recipes/processes-close-dialog.md +269 -0
  327. package/dist/resources/components/documents/business-logic/processes/recipes/processes-execute-code.md +201 -0
  328. package/dist/resources/components/documents/business-logic/processes/recipes/processes-form-initialization.md +239 -0
  329. package/dist/resources/components/documents/business-logic/processes/source-examples.md +938 -0
  330. package/dist/resources/components/documents/business-logic/processes.md +31 -0
  331. package/dist/resources/components/documents/business-logic/validations/recipes/validations-plsql-error.md +205 -0
  332. package/dist/resources/components/documents/business-logic/validations.md +2 -1
  333. package/dist/resources/components/documents/buttons/icon/recipes/button-trigger-action.md +139 -0
  334. package/dist/resources/components/documents/buttons/icon.md +2 -1
  335. package/dist/resources/components/documents/buttons/text/recipes/button-confirmation.md +128 -0
  336. package/dist/resources/components/documents/buttons/text/recipes/button-server-side-condition.md +160 -0
  337. package/dist/resources/components/documents/buttons/text/recipes/button-submit-request.md +183 -0
  338. package/dist/resources/components/documents/buttons/text-with-icon/recipes/button-dynamic-action.md +137 -0
  339. package/dist/resources/components/documents/buttons/text-with-icon/recipes/button-redirect-items.md +155 -0
  340. package/dist/resources/components/documents/buttons/text-with-icon.md +3 -1
  341. package/dist/resources/components/documents/buttons/text.md +4 -1
  342. package/dist/resources/components/documents/catalog.md +7 -1
  343. package/dist/resources/components/documents/items/checkbox-group/recipes/item-checkbox-group-columns.md +125 -0
  344. package/dist/resources/components/documents/items/checkbox-group.md +2 -1
  345. package/dist/resources/components/documents/items/date-picker/recipes/item-date-picker-range.md +121 -0
  346. package/dist/resources/components/documents/items/date-picker.md +2 -1
  347. package/dist/resources/components/documents/items/display-image/parameters.md +7998 -0
  348. package/dist/resources/components/documents/items/display-image/recipes/item-display-image.md +118 -0
  349. package/dist/resources/components/documents/items/display-image.md +27 -0
  350. package/dist/resources/components/documents/items/geocoded-address/parameters.md +8564 -0
  351. package/dist/resources/components/documents/items/geocoded-address/recipes/item-geocoded-address.md +137 -0
  352. package/dist/resources/components/documents/items/geocoded-address.md +27 -0
  353. package/dist/resources/components/documents/items/number-field/recipes/item-number-field-format-mask.md +123 -0
  354. package/dist/resources/components/documents/items/number-field.md +2 -1
  355. package/dist/resources/components/documents/items/popup-lov/recipes/item-popup-lov-display-null.md +128 -0
  356. package/dist/resources/components/documents/items/popup-lov.md +2 -1
  357. package/dist/resources/components/documents/items/radio-group/recipes/item-radio-group-columns.md +123 -0
  358. package/dist/resources/components/documents/items/radio-group.md +2 -1
  359. package/dist/resources/components/documents/items/rich-text-editor/parameters.md +8003 -0
  360. package/dist/resources/components/documents/items/rich-text-editor/recipes/item-rich-text-editor.md +126 -0
  361. package/dist/resources/components/documents/items/rich-text-editor.md +27 -0
  362. package/dist/resources/components/documents/items/select-list/recipes/item-select-list-shared-lov.md +149 -0
  363. package/dist/resources/components/documents/items/select-list.md +2 -1
  364. package/dist/resources/components/documents/items/shuttle/recipes/item-shuttle-shared-lov.md +157 -0
  365. package/dist/resources/components/documents/items/shuttle.md +2 -1
  366. package/dist/resources/components/documents/items/switch/recipes/item-switch-custom-values.md +123 -0
  367. package/dist/resources/components/documents/items/switch.md +2 -1
  368. package/dist/resources/components/documents/items/textarea/recipes/item-textarea-required-length.md +123 -0
  369. package/dist/resources/components/documents/items/textarea.md +2 -1
  370. package/dist/resources/components/documents/regions/breadcrumb/parameters.md +13322 -0
  371. package/dist/resources/components/documents/regions/breadcrumb/recipes/breadcrumb.md +137 -0
  372. package/dist/resources/components/documents/regions/breadcrumb/source-examples.md +20 -0
  373. package/dist/resources/components/documents/regions/breadcrumb.md +29 -0
  374. package/dist/resources/components/documents/regions/calendar/recipes/calendar-create-event-on-select.md +252 -0
  375. package/dist/resources/components/documents/regions/calendar/recipes/calendar-custom-navigation.md +360 -0
  376. package/dist/resources/components/documents/regions/calendar/recipes/calendar-custom-styling.md +156 -0
  377. package/dist/resources/components/documents/regions/calendar/recipes/calendar-delete-or-copy-on-click.md +271 -0
  378. package/dist/resources/components/documents/regions/calendar/recipes/calendar-standard-monthly.md +147 -0
  379. package/dist/resources/components/documents/regions/calendar/recipes/calendar-status-tracking.md +259 -0
  380. package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-conference.md +153 -0
  381. package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-drag-drop.md +146 -0
  382. package/dist/resources/components/documents/regions/calendar/recipes/calendar-weekly-time-format-toggle.md +330 -0
  383. package/dist/resources/components/documents/regions/calendar.md +10 -1
  384. package/dist/resources/components/documents/regions/cards/recipes/cards-actions.md +193 -0
  385. package/dist/resources/components/documents/regions/cards.md +2 -1
  386. package/dist/resources/components/documents/regions/chart/recipes/chart-3d-effect.md +176 -0
  387. package/dist/resources/components/documents/regions/chart/recipes/chart-area-custom-legend.md +226 -0
  388. package/dist/resources/components/documents/regions/chart/recipes/chart-bar-dual-axis.md +203 -0
  389. package/dist/resources/components/documents/regions/chart/recipes/chart-bar-stacked-horizontal.md +170 -0
  390. package/dist/resources/components/documents/regions/chart/recipes/chart-bubble.md +171 -0
  391. package/dist/resources/components/documents/regions/chart/recipes/chart-custom-tooltip.md +156 -0
  392. package/dist/resources/components/documents/regions/chart/recipes/chart-dashboard-combination.md +234 -0
  393. package/dist/resources/components/documents/regions/chart/recipes/chart-data-densification.md +169 -0
  394. package/dist/resources/components/documents/regions/chart/recipes/chart-gantt.md +188 -0
  395. package/dist/resources/components/documents/regions/chart/recipes/chart-line-with-area.md +197 -0
  396. package/dist/resources/components/documents/regions/chart/recipes/chart-links.md +188 -0
  397. package/dist/resources/components/documents/regions/chart/recipes/chart-scatter.md +167 -0
  398. package/dist/resources/components/documents/regions/chart/recipes/chart-series-color.md +143 -0
  399. package/dist/resources/components/documents/regions/chart/recipes/chart-status-meter-gauge.md +142 -0
  400. package/dist/resources/components/documents/regions/chart/recipes/chart-stock.md +173 -0
  401. package/dist/resources/components/documents/regions/chart/recipes/chart-zoom-scroll.md +168 -0
  402. package/dist/resources/components/documents/regions/chart.md +17 -1
  403. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-calendar.md +352 -0
  404. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-cards.md +430 -0
  405. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-content-row.md +599 -0
  406. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-dashboard.md +883 -0
  407. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-directory-groups.md +514 -0
  408. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-grouped-rows.md +663 -0
  409. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-map.md +379 -0
  410. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-search-only-report.md +408 -0
  411. package/dist/resources/components/documents/regions/faceted-search/recipes/faceted-search-timeline.md +510 -0
  412. package/dist/resources/components/documents/regions/faceted-search.md +10 -1
  413. package/dist/resources/components/documents/regions/form/recipes/form-dialog-buttons.md +247 -0
  414. package/dist/resources/components/documents/regions/form/recipes/sectioned-form-expense-report.md +938 -0
  415. package/dist/resources/components/documents/regions/form.md +3 -1
  416. package/dist/resources/components/documents/regions/help-text/parameters.md +11842 -0
  417. package/dist/resources/components/documents/regions/help-text/recipes/help-text.md +137 -0
  418. package/dist/resources/components/documents/regions/help-text.md +27 -0
  419. package/dist/resources/components/documents/regions/map/recipes/map-bbox-static.md +152 -0
  420. package/dist/resources/components/documents/regions/map/recipes/map-browser-location.md +138 -0
  421. package/dist/resources/components/documents/regions/map/recipes/map-extruded-polygons.md +155 -0
  422. package/dist/resources/components/documents/regions/map/recipes/map-geojson-icon-points.md +150 -0
  423. package/dist/resources/components/documents/regions/map/recipes/map-heat-map.md +143 -0
  424. package/dist/resources/components/documents/regions/map/recipes/map-lines-geojson.md +147 -0
  425. package/dist/resources/components/documents/regions/map/recipes/map-multi-layer-legend.md +220 -0
  426. package/dist/resources/components/documents/regions/map/recipes/map-points-lonlat.md +148 -0
  427. package/dist/resources/components/documents/regions/map/recipes/map-polygons-color-scheme.md +160 -0
  428. package/dist/resources/components/documents/regions/map.md +10 -1
  429. package/dist/resources/components/documents/regions/region-display-selector/recipes/region-display-selector-icons.md +161 -0
  430. package/dist/resources/components/documents/regions/region-display-selector.md +2 -1
  431. package/dist/resources/components/documents/regions/static-content/recipes/static-content-accordion.md +152 -0
  432. package/dist/resources/components/documents/regions/static-content/recipes/static-content-collection-toolbar.md +205 -0
  433. package/dist/resources/components/documents/regions/static-content/recipes/static-content-dividers.md +155 -0
  434. package/dist/resources/components/documents/regions/static-content/recipes/static-content-empty-state.md +139 -0
  435. package/dist/resources/components/documents/regions/static-content.md +5 -1
  436. package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-notifications.md +141 -0
  437. package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-percent-graph.md +151 -0
  438. package/dist/resources/components/documents/reports/classic-report/recipes/classic-report-suggestions.md +134 -0
  439. package/dist/resources/components/documents/reports/classic-report.md +4 -1
  440. package/dist/resources/components/documents/reports/contextual-info/recipes/contextual-info-row-based.md +138 -0
  441. package/dist/resources/components/documents/reports/contextual-info.md +2 -1
  442. package/dist/resources/components/documents/reports/interactive-grid/recipes/editable-grid-expense-lines.md +378 -0
  443. package/dist/resources/components/documents/reports/interactive-grid/recipes/interactive-grid-toolbar-download.md +200 -0
  444. package/dist/resources/components/documents/reports/interactive-grid.md +3 -1
  445. package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-full-options.md +227 -0
  446. package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-search-bar-actions.md +206 -0
  447. package/dist/resources/components/documents/reports/interactive-report/recipes/interactive-report-secondary.md +161 -0
  448. package/dist/resources/components/documents/reports/interactive-report.md +4 -1
  449. package/dist/resources/components/documents/template-components/content-row/recipes/directory-hero-search-content-row.md +476 -0
  450. package/dist/resources/components/documents/template-components/content-row.md +2 -1
  451. package/dist/resources/components/index.json +3485 -739
  452. package/dist/resources/components/manifest.json +245 -38
  453. package/dist/resources/components/recipes/compiler-evidence.json +2103 -422
  454. package/dist/resources/components/recipes/internet-breadcrumb/pages/p00001-home.apx +46 -0
  455. package/dist/resources/components/recipes/internet-breadcrumb/shared-components/breadcrumbs.apx +17 -0
  456. package/dist/resources/components/recipes/internet-button-confirmation/pages/p00001-home.apx +60 -0
  457. package/dist/resources/components/recipes/internet-button-dynamic-action/pages/p00001-home.apx +69 -0
  458. package/dist/resources/components/recipes/internet-button-redirect-items/pages/p00001-home.apx +87 -0
  459. package/dist/resources/components/recipes/internet-button-server-side-condition/pages/p00001-home.apx +90 -0
  460. package/dist/resources/components/recipes/internet-button-submit-request/pages/p00001-home.apx +113 -0
  461. package/dist/resources/components/recipes/internet-button-trigger-action/pages/p00001-home.apx +71 -0
  462. package/dist/resources/components/recipes/internet-calendar-create-event-on-select/pages/p00001-home.apx +181 -0
  463. package/dist/resources/components/recipes/internet-calendar-custom-navigation/pages/p00001-home.apx +292 -0
  464. package/dist/resources/components/recipes/internet-calendar-custom-styling/pages/p00001-home.apx +88 -0
  465. package/dist/resources/components/recipes/internet-calendar-delete-or-copy-on-click/pages/p00001-home.apx +200 -0
  466. package/dist/resources/components/recipes/internet-calendar-standard-monthly/pages/p00001-home.apx +79 -0
  467. package/dist/resources/components/recipes/internet-calendar-status-tracking/pages/p00001-home.apx +191 -0
  468. package/dist/resources/components/recipes/internet-calendar-weekly-conference/pages/p00001-home.apx +85 -0
  469. package/dist/resources/components/recipes/internet-calendar-weekly-drag-drop/pages/p00001-home.apx +78 -0
  470. package/dist/resources/components/recipes/internet-calendar-weekly-time-format-toggle/pages/p00001-home.apx +260 -0
  471. package/dist/resources/components/recipes/internet-cards-actions/pages/p00001-home.apx +125 -0
  472. package/dist/resources/components/recipes/internet-chart-3d-effect/pages/p00001-home.apx +108 -0
  473. package/dist/resources/components/recipes/internet-chart-area-custom-legend/pages/p00001-home.apx +158 -0
  474. package/dist/resources/components/recipes/internet-chart-bar-dual-axis/pages/p00001-home.apx +135 -0
  475. package/dist/resources/components/recipes/internet-chart-bar-stacked-horizontal/pages/p00001-home.apx +102 -0
  476. package/dist/resources/components/recipes/internet-chart-bubble/pages/p00001-home.apx +103 -0
  477. package/dist/resources/components/recipes/internet-chart-custom-tooltip/pages/p00001-home.apx +88 -0
  478. package/dist/resources/components/recipes/internet-chart-dashboard-combination/pages/p00001-home.apx +166 -0
  479. package/dist/resources/components/recipes/internet-chart-data-densification/pages/p00001-home.apx +101 -0
  480. package/dist/resources/components/recipes/internet-chart-gantt/pages/p00001-home.apx +120 -0
  481. package/dist/resources/components/recipes/internet-chart-line-with-area/pages/p00001-home.apx +129 -0
  482. package/dist/resources/components/recipes/internet-chart-links/pages/p00001-home.apx +120 -0
  483. package/dist/resources/components/recipes/internet-chart-scatter/pages/p00001-home.apx +99 -0
  484. package/dist/resources/components/recipes/internet-chart-series-color/pages/p00001-home.apx +75 -0
  485. package/dist/resources/components/recipes/internet-chart-status-meter-gauge/pages/p00001-home.apx +74 -0
  486. package/dist/resources/components/recipes/internet-chart-stock/pages/p00001-home.apx +105 -0
  487. package/dist/resources/components/recipes/internet-chart-zoom-scroll/pages/p00001-home.apx +100 -0
  488. package/dist/resources/components/recipes/internet-classic-report-notifications/pages/p00001-home.apx +73 -0
  489. package/dist/resources/components/recipes/internet-classic-report-percent-graph/pages/p00001-home.apx +83 -0
  490. package/dist/resources/components/recipes/internet-classic-report-suggestions/pages/p00001-home.apx +66 -0
  491. package/dist/resources/components/recipes/internet-contextual-info-row-based/pages/p00001-home.apx +70 -0
  492. package/dist/resources/components/recipes/internet-directory-hero-search-content-row/pages/p00001-home.apx +406 -0
  493. package/dist/resources/components/recipes/internet-dynamic-actions-alert-confirm/pages/p00001-home.apx +109 -0
  494. package/dist/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00001-home.apx +48 -0
  495. package/dist/resources/components/recipes/internet-dynamic-actions-cancel-dialog/pages/p00002-dialog.apx +98 -0
  496. package/dist/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00001-home.apx +48 -0
  497. package/dist/resources/components/recipes/internet-dynamic-actions-close-dialog/pages/p00002-dialog.apx +102 -0
  498. package/dist/resources/components/recipes/internet-dynamic-actions-debounce-throttle/pages/p00001-home.apx +262 -0
  499. package/dist/resources/components/recipes/internet-dynamic-actions-delete-notification/pages/p00001-home.apx +129 -0
  500. package/dist/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00001-home.apx +109 -0
  501. package/dist/resources/components/recipes/internet-dynamic-actions-refresh-after-dialog/pages/p00002-dialog.apx +99 -0
  502. package/dist/resources/components/recipes/internet-dynamic-actions-region-class/pages/p00001-home.apx +125 -0
  503. package/dist/resources/components/recipes/internet-dynamic-actions-show-error-message/pages/p00001-home.apx +86 -0
  504. package/dist/resources/components/recipes/internet-editable-grid-expense-lines/pages/p00001-home.apx +310 -0
  505. package/dist/resources/components/recipes/internet-faceted-search-calendar/pages/p00001-home.apx +284 -0
  506. package/dist/resources/components/recipes/internet-faceted-search-cards/pages/p00001-home.apx +362 -0
  507. package/dist/resources/components/recipes/internet-faceted-search-content-row/pages/p00001-home.apx +531 -0
  508. package/dist/resources/components/recipes/internet-faceted-search-dashboard/pages/p00001-home.apx +809 -0
  509. package/dist/resources/components/recipes/internet-faceted-search-directory-groups/pages/p00001-home.apx +446 -0
  510. package/dist/resources/components/recipes/internet-faceted-search-grouped-rows/pages/p00001-home.apx +595 -0
  511. package/dist/resources/components/recipes/internet-faceted-search-map/pages/p00001-home.apx +311 -0
  512. package/dist/resources/components/recipes/internet-faceted-search-search-only-report/pages/p00001-home.apx +340 -0
  513. package/dist/resources/components/recipes/internet-faceted-search-timeline/pages/p00001-home.apx +442 -0
  514. package/dist/resources/components/recipes/internet-form-dialog-buttons/pages/p00001-home.apx +179 -0
  515. package/dist/resources/components/recipes/internet-help-text/pages/p00001-home.apx +69 -0
  516. package/dist/resources/components/recipes/internet-interactive-grid-toolbar-download/pages/p00001-home.apx +132 -0
  517. package/dist/resources/components/recipes/internet-interactive-report-full-options/pages/p00001-home.apx +159 -0
  518. package/dist/resources/components/recipes/internet-interactive-report-search-bar-actions/pages/p00001-home.apx +138 -0
  519. package/dist/resources/components/recipes/internet-interactive-report-secondary/pages/p00001-home.apx +93 -0
  520. package/dist/resources/components/recipes/internet-item-checkbox-group-columns/pages/p00001-home.apx +55 -0
  521. package/dist/resources/components/recipes/internet-item-date-picker-range/pages/p00001-home.apx +51 -0
  522. package/dist/resources/components/recipes/internet-item-display-image/pages/p00001-home.apx +50 -0
  523. package/dist/resources/components/recipes/internet-item-geocoded-address/pages/p00001-home.apx +66 -0
  524. package/dist/resources/components/recipes/internet-item-number-field-format-mask/pages/p00001-home.apx +53 -0
  525. package/dist/resources/components/recipes/internet-item-popup-lov-display-null/pages/p00001-home.apx +58 -0
  526. package/dist/resources/components/recipes/internet-item-radio-group-columns/pages/p00001-home.apx +53 -0
  527. package/dist/resources/components/recipes/internet-item-rich-text-editor/pages/p00001-home.apx +56 -0
  528. package/dist/resources/components/recipes/internet-item-select-list-shared-lov/pages/p00001-home.apx +48 -0
  529. package/dist/resources/components/recipes/internet-item-select-list-shared-lov/shared-components/lovs.apx +25 -0
  530. package/dist/resources/components/recipes/internet-item-shuttle-shared-lov/pages/p00001-home.apx +50 -0
  531. package/dist/resources/components/recipes/internet-item-shuttle-shared-lov/shared-components/lovs.apx +31 -0
  532. package/dist/resources/components/recipes/internet-item-switch-custom-values/pages/p00001-home.apx +53 -0
  533. package/dist/resources/components/recipes/internet-item-textarea-required-length/pages/p00001-home.apx +53 -0
  534. package/dist/resources/components/recipes/internet-map-bbox-static/pages/p00001-home.apx +82 -0
  535. package/dist/resources/components/recipes/internet-map-browser-location/pages/p00001-home.apx +70 -0
  536. package/dist/resources/components/recipes/internet-map-extruded-polygons/pages/p00001-home.apx +87 -0
  537. package/dist/resources/components/recipes/internet-map-geojson-icon-points/pages/p00001-home.apx +82 -0
  538. package/dist/resources/components/recipes/internet-map-heat-map/pages/p00001-home.apx +75 -0
  539. package/dist/resources/components/recipes/internet-map-lines-geojson/pages/p00001-home.apx +79 -0
  540. package/dist/resources/components/recipes/internet-map-multi-layer-legend/pages/p00001-home.apx +152 -0
  541. package/dist/resources/components/recipes/internet-map-points-lonlat/pages/p00001-home.apx +80 -0
  542. package/dist/resources/components/recipes/internet-map-polygons-color-scheme/pages/p00001-home.apx +92 -0
  543. package/dist/resources/components/recipes/internet-processes-close-dialog/pages/p00001-home.apx +48 -0
  544. package/dist/resources/components/recipes/internet-processes-close-dialog/pages/p00002-dialog.apx +145 -0
  545. package/dist/resources/components/recipes/internet-processes-execute-code/pages/p00001-home.apx +130 -0
  546. package/dist/resources/components/recipes/internet-processes-form-initialization/pages/p00001-home.apx +171 -0
  547. package/dist/resources/components/recipes/internet-region-display-selector-icons/pages/p00001-home.apx +93 -0
  548. package/dist/resources/components/recipes/internet-sectioned-form-expense-report/pages/p00001-home.apx +870 -0
  549. package/dist/resources/components/recipes/internet-static-content-accordion/pages/p00001-home.apx +84 -0
  550. package/dist/resources/components/recipes/internet-static-content-collection-toolbar/pages/p00001-home.apx +137 -0
  551. package/dist/resources/components/recipes/internet-static-content-dividers/pages/p00001-home.apx +87 -0
  552. package/dist/resources/components/recipes/internet-static-content-empty-state/pages/p00001-home.apx +71 -0
  553. package/dist/resources/components/recipes/internet-validations-plsql-error/pages/p00001-home.apx +134 -0
  554. package/dist/resources/components/recipes/registry.json +4973 -0
  555. package/dist/resources/patterns/docs/metrics/capacity-summary/recipes/unit-aware.md +3 -3
  556. package/dist/resources/patterns/index.json +408 -408
  557. package/dist/resources/patterns/manifest.json +8 -8
  558. package/dist/resources/patterns/recipes/compiler-evidence.json +3 -3
  559. package/dist/resources/patterns/recipes/registry.json +1 -1
  560. package/dist/resources/patterns/recipes/ux-extra-metrics-capacity-summary-unit-aware/pages/p00001-home.apx +2 -2
  561. package/dist/resources/policy/deployment-safety.md +197 -20
  562. package/dist/resources/references/26.2/guides/upgrade-audit.md +13 -1
  563. package/dist/resources/references/26.2/guides.json +1 -1
  564. package/dist/resources/references/26.2/index.json +3 -3
  565. package/dist/resources/references/26.2/oracle-snapshot.json +2 -2
  566. package/dist/resources/references/26.2/search.json +1 -1
  567. package/dist/resources/scaffold/observations.sql +126 -0
  568. package/dist/resources/schemas/composer-blueprint.schema.json +17 -17
  569. package/dist/resources/schemas/composer-contract.schema.json +9 -2
  570. package/dist/resources/schemas/composer-entity.schema.json +5 -3
  571. package/dist/resources/schemas/composer-field.schema.json +4 -1
  572. package/dist/resources/schemas/composer-instance.schema.json +2 -8
  573. package/dist/resources/schemas/composer-parameters.schema.json +1 -5
  574. package/dist/resources/schemas/composer-plan.schema.json +102 -5
  575. package/dist/resources/schemas/composer-shared-resource.schema.json +82 -0
  576. package/dist/resources/schemas/composer-state.schema.json +88 -0
  577. package/dist/resources/schemas/deploy-plan.schema.json +75 -3
  578. package/dist/resources/schemas/operations.schema.json +488 -17
  579. package/dist/resources/schemas/policy.schema.json +1 -1
  580. package/dist/resources/schemas/project.schema.json +61 -5
  581. package/dist/resources/schemas/sync-state.schema.json +8 -0
  582. package/dist/resources/templates/blank-app/application/application.apx +1 -0
  583. package/dist/resources/toolchains/sources.lock.json +1 -1
  584. package/dist/runtime/apexrest.mjs +154 -52
  585. package/dist/runtime/chunk-26MTCOZK.mjs +239 -0
  586. package/dist/runtime/chunk-47GDU535.mjs +1020 -0
  587. package/dist/runtime/chunk-4LEHTNYH.mjs +252 -0
  588. package/dist/runtime/chunk-4MIZ34V4.mjs +280 -0
  589. package/dist/runtime/chunk-6JZB7NDZ.mjs +33342 -0
  590. package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-U7MVLA3R.mjs → runtime/chunk-CI5IU2PI.mjs} +433 -181
  591. package/dist/runtime/{chunk-JZ5FIGSS.mjs → chunk-DJPW35KJ.mjs} +5 -5
  592. package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-BLB5JLWO.mjs → runtime/chunk-GHVRIHN6.mjs} +834 -4808
  593. package/dist/runtime/chunk-JJYHZOQR.mjs +6608 -0
  594. package/dist/runtime/{chunk-AESZGFM2.mjs → chunk-LCNHRIKE.mjs} +6 -3
  595. package/dist/runtime/{chunk-YEGSGHTV.mjs → chunk-LIG5PZ4K.mjs} +44 -12
  596. package/dist/runtime/{chunk-2YXH4VEB.mjs → chunk-LIGDVE6F.mjs} +438 -154
  597. package/dist/runtime/{chunk-WK445BKL.mjs → chunk-M5EC4OUI.mjs} +116 -41
  598. package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-TE5VTEAH.mjs → runtime/chunk-MPKKOQVI.mjs} +349 -446
  599. package/dist/runtime/chunk-N3KQBIVW.mjs +252 -0
  600. package/dist/runtime/chunk-PFOHMLO4.mjs +141 -0
  601. package/dist/runtime/chunk-PNGZYZE7.mjs +4703 -0
  602. package/dist/runtime/{chunk-NBA54QYW.mjs → chunk-PS2GKOR2.mjs} +9 -6
  603. package/dist/runtime/{chunk-T3UX6AQO.mjs → chunk-TBHIU7PZ.mjs} +170 -3432
  604. package/dist/runtime/chunk-TDM3E2NK.mjs +161 -0
  605. package/dist/{codex-compat/plugins/apexrest-apex/runtime/chunk-ZSDDYNF5.mjs → runtime/chunk-UKXRUJT4.mjs} +7 -5
  606. package/dist/runtime/{chunk-BZZ3RV7L.mjs → chunk-XJ7FW7XH.mjs} +4 -4
  607. package/dist/runtime/mcp.mjs +1 -1
  608. package/dist/runtime/preview-oracle-worker.mjs +57 -0
  609. package/package.json +8 -5
  610. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-A7ESH6F5.mjs +0 -31
  611. package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-I5KYBPSK.mjs +0 -419
  612. package/dist/runtime/chunk-A7ESH6F5.mjs +0 -31
  613. 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-T3UX6AQO.mjs";
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-TE5VTEAH.mjs";
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
- atomicWrite,
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(path5, options) {
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 && path5.substr(-p.length).toLowerCase() === 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(stat, path5, options) {
77
- if (!stat.isSymbolicLink() && !stat.isFile()) {
86
+ function checkStat(stat2, path6, options) {
87
+ if (!stat2.isSymbolicLink() && !stat2.isFile()) {
78
88
  return false;
79
89
  }
80
- return checkPathExt(path5, options);
90
+ return checkPathExt(path6, options);
81
91
  }
82
- function isexe(path5, options, cb) {
83
- fs.stat(path5, function(er, stat) {
84
- cb(er, er ? false : checkStat(stat, path5, options));
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(path5, options) {
88
- return checkStat(fs.statSync(path5), path5, options);
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(path5, options, cb) {
100
- fs.stat(path5, function(er, stat) {
101
- cb(er, er ? false : checkStat(stat, options));
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(path5, options) {
105
- return checkStat(fs.statSync(path5), options);
114
+ function sync(path6, options) {
115
+ return checkStat(fs.statSync(path6), options);
106
116
  }
107
- function checkStat(stat, options) {
108
- return stat.isFile() && checkMode(stat, options);
117
+ function checkStat(stat2, options) {
118
+ return stat2.isFile() && checkMode(stat2, options);
109
119
  }
110
- function checkMode(stat, options) {
111
- var mod = stat.mode;
112
- var uid = stat.uid;
113
- var gid = stat.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(path5, options, cb) {
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(path5, options || {}, function(er, is) {
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(path5, options || {}, function(er, is) {
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(path5, options) {
177
+ function sync(path6, options) {
168
178
  try {
169
- return core.sync(path5, options || {});
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 path5 = __require("path");
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 = path5.join(pathPart, cmd);
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 = path5.join(pathPart, cmd);
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 path5 = __require("path");
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 ? path5.delimiter : void 0
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 = path5.resolve(hasCustomCwd ? parsed.options.cwd : "", 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 [path5, argument] = match[0].replace(/#! ?/, "").split(" ");
380
- const binary = path5.split("/").pop();
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 path5 = __require("path");
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 = path5.normalize(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 path4 from "node:path";
1376
- import { homedir } from "node:os";
1377
- import { readFile as readFile2, rm as rm2 } from "node:fs/promises";
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 path2 from "node:path";
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 inspectRegistration(markets, home, codexHome, destination) {
1703
- const entries = markets.filter((m) => m.name === "apexrest");
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 update the apexrest marketplace at ${entries[0]?.root ?? "(unknown)"} in ${codexHome}: ${reason} It was left unchanged. Select another Codex profile directory in Advanced options, or review this registration in Codex.`,
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(markets)), markets };
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(path2.join(existing.root, ".agents/plugins/marketplace.json"));
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 (path2.relative(existing.root, plugin).split(path2.sep).join("/") !== "plugins/apexrest-apex")
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 = path2.join(home, "installation.json");
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
- markets
1970
+ fingerprint: hash(canonical({ markets: identity, files })),
1971
+ ...context
1740
1972
  };
1741
1973
  }
1742
1974
 
1743
1975
  // packages/installer/src/native.ts
1744
- import path3 from "node:path";
1745
- import { cp, mkdir, readFile, rm, chmod } from "node:fs/promises";
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(path3.join(source, claudeFile)) ? await readJson(path3.join(source, claudeFile)) : void 0;
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(path3.join(source, "plugin.json")) ? "mcp.json" : ".mcp.json";
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(path3.join(source, sourceMcpFile));
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 = path3.join(home, "native", hash(canonical({ sourceDigest: digest, node, home })));
1810
- const root = path3.join(destination, "plugins/apexrest-apex");
1811
- const cli = path3.join(root, "runtime/apexrest.mjs");
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 invoke = codexInvoke(codexHome, await exists(home) ? home : process.cwd(), r.codex);
1814
- if (!await exists(codexHome)) await checkCodex(codexHome, r.codex);
1815
- const inspect = async () => inspectRegistration(
1816
- await exists(codexHome) ? await listMarketplaces(invoke) : [],
1817
- home,
1818
- codexHome,
1819
- destination
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(path3.join(home, "install.lock"), async () => {
2089
+ return withLock(path4.join(home, "install.lock"), async () => {
1841
2090
  await mkdir(codexHome, { recursive: true, mode: 448 });
1842
- const config = path3.join(codexHome, "config.toml");
2091
+ const config = path4.join(codexHome, "config.toml");
1843
2092
  const stamp = Date.now();
1844
- const configBackup = path3.join(home, "config-before-install-" + stamp + ".toml");
2093
+ const configBackup = path4.join(home, "config-before-install-" + stamp + ".toml");
1845
2094
  if (await exists(config)) await cp(config, configBackup);
1846
- const repaired = await exists(destination) && !await reusable(destination, expectedFiles, mcpKey, expectedClaude);
1847
- if (repaired) {
1848
- const broken = `${destination}.broken-${stamp}`;
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
- await mkdir(staging, { recursive: true, mode: 448 });
1856
- await mkdir(path3.join(staging, "plugins"), { recursive: true });
1857
- await cp(source, path3.join(staging, "plugins/apexrest-apex"), { recursive: true });
1858
- await writeJson(path3.join(staging, ".agents/plugins/marketplace.json"), nativeMarketplace);
1859
- if (claudeMarketplace)
1860
- await writeJson(path3.join(staging, ".claude-plugin/marketplace.json"), claudeMarketplace);
1861
- if (hash(canonical(await inventory(staging))) !== copyDigest)
1862
- throw new Fault("PACKAGE_COPY_INVALID", "Native package copy changed.", 5);
1863
- await renameWithRetry(staging, destination);
1864
- }
1865
- const portable = await exists(path3.join(root, "plugin.json"));
1866
- const mcpPath = path3.join(root, portable ? "mcp.json" : ".mcp.json");
1867
- const mcp = JSON.parse(await readFile(mcpPath, "utf8"));
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 = [path3.join(root, "runtime/mcp.mjs")];
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(path3.join(root, claudeFile))
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(path3.join(root, claudeFile), installedClaude);
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 = path3.join(home, "registration-before-install-" + stamp + ".json");
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) await invoke(["plugin", "marketplace", "remove", "apexrest", "--json"]);
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 listMarketplaces(invoke);
1915
- if (after.find((m) => m.name === "apexrest")?.root !== destination || canonical(after.filter((m) => m.name !== "apexrest")) !== canonical(registration.markets.filter((m) => m.name !== "apexrest")))
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 listMarketplaces(invoke);
1929
- const selected = after.find((m) => m.name === "apexrest");
1930
- if (canonical(after.filter((m) => m.name !== "apexrest")) !== canonical(registration.markets.filter((m) => m.name !== "apexrest")) || (await inspectRegistration(registration.markets, home, codexHome, destination)).fingerprint !== registration.fingerprint)
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
- if ((await listMarketplaces(invoke)).find((m) => m.name === "apexrest")?.root !== registration.previousRoot)
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(path3.join(home, "installation.json"), state);
1975
- await mkdir(path3.join(home, "bin"), { recursive: true });
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(path3.join(home, "bin", name), contents);
1978
- if (name === "apexrest") await chmod(path3.join(home, "bin", name), 448);
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(path3.join(home, "installation.json"));
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(path3.join(destination, claudeKey)))) !== expectedClaude)
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" ? path4.join(text("project") ?? process.cwd(), ".apexrest/managed") : managedHome())
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 ?? path4.join(homedir(), ".codex")
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(path4.join(home, "setup-result.json"), result);
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" || !path4.isAbsolute(destination) || path4.dirname(destination) !== path4.join(home, "native") || !/^[a-f0-9]{64}$/.test(path4.basename(destination)))
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(path4.join(home, "install.lock"), async () => {
2446
+ return withLock(path5.join(home, "install.lock"), async () => {
2163
2447
  const state = await installationState(home);
2164
- if (typeof state.codexHome !== "string" || !path4.isAbsolute(state.codexHome))
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(path4.join(home, "native"), destination), {
2468
+ await rm2(await containedChild(path5.join(home, "native"), destination), {
2185
2469
  recursive: true,
2186
2470
  force: true
2187
2471
  });
2188
- await writeJson(path4.join(home, "uninstalled.json"), {
2472
+ await writeJson(path5.join(home, "uninstalled.json"), {
2189
2473
  at: (/* @__PURE__ */ new Date()).toISOString(),
2190
2474
  keepRuntime,
2191
2475
  sharedRuntimePreserved: true