apexrest 0.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +18 -0
- package/README.md +201 -0
- package/README.uk.md +201 -0
- package/dist/codex-compat/.agents/plugins/marketplace.json +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/.codex-plugin/plugin.json +32 -0
- package/dist/codex-compat/plugins/apexrest-apex/.mcp.json +11 -0
- package/dist/codex-compat/plugins/apexrest-apex/LICENSE +202 -0
- package/dist/codex-compat/plugins/apexrest-apex/NOTICE +18 -0
- package/dist/codex-compat/plugins/apexrest-apex/assets/apexrest-icon.svg +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/assets/apexrest-logo.svg +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/ords/OrdsBridge.java +323 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/LICENCE.txt +118 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/bulbasaur.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/charmander.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/mewtwo.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/pikachu.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/sources.json +36 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/assets/squirtle.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/index.html +68 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/panel.css +805 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/panel/panel.js +951 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/playwright/auth.mjs +17 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/playwright/package-lock.json +57 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/playwright/package.json +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/ORACLE-LICENSE.txt +35 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/index.json +54432 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/oracle-snapshot.json +648 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/references/search.json +1 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/deploy-plan.schema.json +210 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/operations.schema.json +1721 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/policy.schema.json +63 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/project.schema.json +250 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/toolchain-lock.schema.json +118 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/vendor/mcp.schema.json +120 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/schemas/vendor/plugin.schema.json +65 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/README.md +5 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/README.uk.md +5 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/.apex/apexlang.json +3 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/application.apx +51 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/deployments/default.json +2 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/page-groups.apx +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/pages/p00000-global-page.apx +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/pages/p00001-home.apx +35 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/pages/p09999-login.apx +254 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/authentications.apx +5 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/authorizations.apx +11 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/breadcrumbs.apx +18 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/build-options.apx +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/component-settings.apx +92 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/lists.apx +81 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/lovs.apx +20 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-144-rounded.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-192.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-256-rounded.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-32.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-512.png +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/static-files.apx +25 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/shared-components/themes/universal-theme/theme.apx +57 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/supporting-objects/deinstall-script.sql +0 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/blank-app/application/supporting-objects/supporting-objects.apx +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/README.md +7 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/README.uk.md +7 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/apex-overlay/pages/p00010-customers.apx +164 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/apex-overlay/pages/p00020-dashboard.apx +54 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/apex-overlay/pages/p00080-customer.apx +332 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/project/src/database/migrations/0001__customers.sql +10 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/project/src/database/packages/0010__customer_api.sql +28 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/project/src/database/packages/0020__customer_validation_trigger.sql +10 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/project/tests/e2e/customer-crud.spec.mjs +25 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/customer-crm/project/tests/sql/test_customers.sql +49 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/database-control/install.sql +17 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/existing-app/README.md +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/templates/existing-app/README.uk.md +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/testkit/apex.mjs +58 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@hono__node-server__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@isaacs__fs-minipass__LICENSE +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@modelcontextprotocol__sdk__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@playwright__test__LICENSE +202 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@playwright__test__NOTICE +5 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@types__node__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@types__yauzl__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@typescript__typescript-darwin-arm64__LICENSE +55 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__@typescript__typescript-darwin-arm64__NOTICE.txt +436 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__accepts__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__ajv-formats__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__ajv__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__body-parser__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__body-parser__node_modules__content-type__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__bytes__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__call-bind-apply-helpers__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__call-bound__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__chownr__LICENSE.md +63 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__content-disposition__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__content-type__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__cookie-signature__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__cookie__LICENSE +24 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__cors__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__cross-spawn__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__debug__LICENSE +20 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__depd__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__dunder-proto__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__ee-first__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__encodeurl__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__es-define-property__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__es-errors__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__es-object-atoms__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__esbuild__LICENSE.md +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__escape-html__LICENSE +24 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__etag__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__eventsource-parser__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__eventsource__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__express-rate-limit__license +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__express__LICENSE +24 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__fast-deep-equal__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__fast-uri__LICENSE +30 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__fflate__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__finalhandler__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__forwarded__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__fresh__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__function-bind__LICENSE +20 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__get-intrinsic__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__get-proto__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__gopd__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__has-symbols__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__hasown__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__hono__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__http-errors__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__iconv-lite__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__inherits__LICENSE +16 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__ip-address__LICENSE +19 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__ipaddr.js__LICENSE +19 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__is-promise__LICENSE +19 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__isexe__LICENSE +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__jose__LICENSE.md +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__json-schema-traverse__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__json-schema-typed__LICENSE.md +57 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__marked__LICENSE +44 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__math-intrinsics__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__media-typer__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__merge-descriptors__license +11 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__mime-db__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__mime-types__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__minipass__LICENSE.md +55 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__minizlib__LICENSE +26 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__ms__license.md +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__negotiator__LICENSE +24 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__negotiator__node_modules__content-type__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__object-assign__license +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__object-inspect__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__on-finished__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__once__LICENSE +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__parseurl__LICENSE +24 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__path-key__license +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__path-to-regexp__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__pend__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__pkce-challenge__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__playwright-core__LICENSE +202 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__playwright-core__NOTICE +5 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__playwright__LICENSE +202 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__playwright__NOTICE +5 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__prettier__LICENSE +7 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__proxy-addr__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__qs__LICENSE.md +29 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__range-parser__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__raw-body__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__require-from-string__license +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__router__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__safer-buffer__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__send__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__serve-static__LICENSE +25 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__setprototypeof__LICENSE +13 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__shebang-command__license +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__shebang-regex__license +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__side-channel-list__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__side-channel-map__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__side-channel-weakmap__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__side-channel__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__statuses__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__tar__LICENSE.md +55 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__toidentifier__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__type-is__LICENSE +23 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__type-is__node_modules__content-type__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__typescript__LICENSE +55 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__typescript__NOTICE.txt +436 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__undici-types__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__unpipe__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__vary__LICENSE +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__which__LICENSE +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__wrappy__LICENSE +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__yallist__LICENSE.md +63 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__yauzl__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__zod-to-json-schema__LICENSE +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/third-party/node_modules__zod__LICENSE +21 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/toolchains/compatibility.json +50 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/toolchains/sources.lock.json +14 -0
- package/dist/codex-compat/plugins/apexrest-apex/resources/toolchains/toolchain.lock.json +204 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/apexrest.mjs +226 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-2SZCZZ3J.mjs +37111 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-2VGE5Y5J.mjs +994 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-3GSS6SJH.mjs +1424 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-5GOWABKB.mjs +409 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-ARMO5ZAQ.mjs +25 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-ED2YPDPS.mjs +1123 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-FPOEB42H.mjs +100 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-GFRSRK3K.mjs +16 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-ICWYSHJ7.mjs +19 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-IPU64TJI.mjs +291 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-JWX4UQAZ.mjs +14 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-K3KT6RZY.mjs +1064 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-QLRGI23I.mjs +1307 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-RF4XQO6I.mjs +13 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-VPCUV5QA.mjs +237 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-WMJTK7ZB.mjs +201 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-WROK6RQH.mjs +200 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-XDJEGHUX.mjs +1179 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-YK34QNHH.mjs +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-Z6Y72JVG.mjs +37 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/chunk-ZQFJ2BNZ.mjs +329 -0
- package/dist/codex-compat/plugins/apexrest-apex/runtime/mcp.mjs +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/SKILL.md +32 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/assets/p00020-filtered-components.apx +152 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/references/component-routes.md +35 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-apexlang/references/native-dashboard.md +11 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-database/SKILL.md +11 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-database/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-debug/SKILL.md +11 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-debug/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-deploy/SKILL.md +19 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-deploy/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-install-dependencies/SKILL.md +38 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-install-dependencies/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-menu/SKILL.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-menu/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-menu/references/cli-catalog.md +22 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-panel/SKILL.md +20 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-panel/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-project/SKILL.md +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-project/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-review/SKILL.md +9 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-review/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-setup/SKILL.md +15 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-setup/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-setup/references/ords.md +3 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-team/SKILL.md +24 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-team/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-test/SKILL.md +27 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-test/agents/openai.yaml +4 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/SKILL.md +17 -0
- package/dist/codex-compat/plugins/apexrest-apex/skills/apexrest-work/agents/openai.yaml +7 -0
- package/dist/resources/ords/OrdsBridge.java +323 -0
- package/dist/resources/panel/assets/LICENCE.txt +118 -0
- package/dist/resources/panel/assets/bulbasaur.png +0 -0
- package/dist/resources/panel/assets/charmander.png +0 -0
- package/dist/resources/panel/assets/mewtwo.png +0 -0
- package/dist/resources/panel/assets/pikachu.png +0 -0
- package/dist/resources/panel/assets/sources.json +36 -0
- package/dist/resources/panel/assets/squirtle.png +0 -0
- package/dist/resources/panel/index.html +68 -0
- package/dist/resources/panel/panel.css +805 -0
- package/dist/resources/panel/panel.js +951 -0
- package/dist/resources/playwright/auth.mjs +17 -0
- package/dist/resources/playwright/package-lock.json +57 -0
- package/dist/resources/playwright/package.json +9 -0
- package/dist/resources/references/ORACLE-LICENSE.txt +35 -0
- package/dist/resources/references/index.json +54432 -0
- package/dist/resources/references/oracle-snapshot.json +648 -0
- package/dist/resources/references/search.json +1 -0
- package/dist/resources/schemas/deploy-plan.schema.json +210 -0
- package/dist/resources/schemas/operations.schema.json +1721 -0
- package/dist/resources/schemas/policy.schema.json +63 -0
- package/dist/resources/schemas/project.schema.json +250 -0
- package/dist/resources/schemas/toolchain-lock.schema.json +118 -0
- package/dist/resources/schemas/vendor/mcp.schema.json +120 -0
- package/dist/resources/schemas/vendor/plugin.schema.json +65 -0
- package/dist/resources/templates/blank-app/README.md +5 -0
- package/dist/resources/templates/blank-app/README.uk.md +5 -0
- package/dist/resources/templates/blank-app/application/.apex/apexlang.json +3 -0
- package/dist/resources/templates/blank-app/application/application.apx +51 -0
- package/dist/resources/templates/blank-app/application/deployments/default.json +2 -0
- package/dist/resources/templates/blank-app/application/page-groups.apx +4 -0
- package/dist/resources/templates/blank-app/application/pages/p00000-global-page.apx +4 -0
- package/dist/resources/templates/blank-app/application/pages/p00001-home.apx +35 -0
- package/dist/resources/templates/blank-app/application/pages/p09999-login.apx +254 -0
- package/dist/resources/templates/blank-app/application/shared-components/authentications.apx +5 -0
- package/dist/resources/templates/blank-app/application/shared-components/authorizations.apx +11 -0
- package/dist/resources/templates/blank-app/application/shared-components/breadcrumbs.apx +18 -0
- package/dist/resources/templates/blank-app/application/shared-components/build-options.apx +4 -0
- package/dist/resources/templates/blank-app/application/shared-components/component-settings.apx +92 -0
- package/dist/resources/templates/blank-app/application/shared-components/lists.apx +81 -0
- package/dist/resources/templates/blank-app/application/shared-components/lovs.apx +20 -0
- package/dist/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-144-rounded.png +0 -0
- package/dist/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-192.png +0 -0
- package/dist/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-256-rounded.png +0 -0
- package/dist/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-32.png +0 -0
- package/dist/resources/templates/blank-app/application/shared-components/static-files/icons/app-icon-512.png +0 -0
- package/dist/resources/templates/blank-app/application/shared-components/static-files.apx +25 -0
- package/dist/resources/templates/blank-app/application/shared-components/themes/universal-theme/theme.apx +57 -0
- package/dist/resources/templates/blank-app/application/supporting-objects/deinstall-script.sql +0 -0
- package/dist/resources/templates/blank-app/application/supporting-objects/supporting-objects.apx +9 -0
- package/dist/resources/templates/customer-crm/README.md +7 -0
- package/dist/resources/templates/customer-crm/README.uk.md +7 -0
- package/dist/resources/templates/customer-crm/apex-overlay/pages/p00010-customers.apx +164 -0
- package/dist/resources/templates/customer-crm/apex-overlay/pages/p00020-dashboard.apx +54 -0
- package/dist/resources/templates/customer-crm/apex-overlay/pages/p00080-customer.apx +332 -0
- package/dist/resources/templates/customer-crm/project/src/database/migrations/0001__customers.sql +10 -0
- package/dist/resources/templates/customer-crm/project/src/database/packages/0010__customer_api.sql +28 -0
- package/dist/resources/templates/customer-crm/project/src/database/packages/0020__customer_validation_trigger.sql +10 -0
- package/dist/resources/templates/customer-crm/project/tests/e2e/customer-crud.spec.mjs +25 -0
- package/dist/resources/templates/customer-crm/project/tests/sql/test_customers.sql +49 -0
- package/dist/resources/templates/database-control/install.sql +17 -0
- package/dist/resources/templates/existing-app/README.md +9 -0
- package/dist/resources/templates/existing-app/README.uk.md +9 -0
- package/dist/resources/testkit/apex.mjs +58 -0
- package/dist/resources/third-party/node_modules__@hono__node-server__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__@isaacs__fs-minipass__LICENSE +15 -0
- package/dist/resources/third-party/node_modules__@modelcontextprotocol__sdk__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__@playwright__test__LICENSE +202 -0
- package/dist/resources/third-party/node_modules__@playwright__test__NOTICE +5 -0
- package/dist/resources/third-party/node_modules__@types__node__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__@types__yauzl__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__@typescript__typescript-darwin-arm64__LICENSE +55 -0
- package/dist/resources/third-party/node_modules__@typescript__typescript-darwin-arm64__NOTICE.txt +436 -0
- package/dist/resources/third-party/node_modules__accepts__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__ajv-formats__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__ajv__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__body-parser__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__body-parser__node_modules__content-type__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__bytes__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__call-bind-apply-helpers__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__call-bound__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__chownr__LICENSE.md +63 -0
- package/dist/resources/third-party/node_modules__content-disposition__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__content-type__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__cookie-signature__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__cookie__LICENSE +24 -0
- package/dist/resources/third-party/node_modules__cors__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__cross-spawn__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__debug__LICENSE +20 -0
- package/dist/resources/third-party/node_modules__depd__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__dunder-proto__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__ee-first__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__encodeurl__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__es-define-property__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__es-errors__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__es-object-atoms__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__esbuild__LICENSE.md +21 -0
- package/dist/resources/third-party/node_modules__escape-html__LICENSE +24 -0
- package/dist/resources/third-party/node_modules__etag__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__eventsource-parser__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__eventsource__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__express-rate-limit__license +21 -0
- package/dist/resources/third-party/node_modules__express__LICENSE +24 -0
- package/dist/resources/third-party/node_modules__fast-deep-equal__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__fast-uri__LICENSE +30 -0
- package/dist/resources/third-party/node_modules__fflate__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__finalhandler__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__forwarded__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__fresh__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__function-bind__LICENSE +20 -0
- package/dist/resources/third-party/node_modules__get-intrinsic__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__get-proto__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__gopd__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__has-symbols__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__hasown__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__hono__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__http-errors__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__iconv-lite__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__inherits__LICENSE +16 -0
- package/dist/resources/third-party/node_modules__ip-address__LICENSE +19 -0
- package/dist/resources/third-party/node_modules__ipaddr.js__LICENSE +19 -0
- package/dist/resources/third-party/node_modules__is-promise__LICENSE +19 -0
- package/dist/resources/third-party/node_modules__isexe__LICENSE +15 -0
- package/dist/resources/third-party/node_modules__jose__LICENSE.md +21 -0
- package/dist/resources/third-party/node_modules__json-schema-traverse__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__json-schema-typed__LICENSE.md +57 -0
- package/dist/resources/third-party/node_modules__marked__LICENSE +44 -0
- package/dist/resources/third-party/node_modules__math-intrinsics__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__media-typer__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__merge-descriptors__license +11 -0
- package/dist/resources/third-party/node_modules__mime-db__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__mime-types__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__minipass__LICENSE.md +55 -0
- package/dist/resources/third-party/node_modules__minizlib__LICENSE +26 -0
- package/dist/resources/third-party/node_modules__ms__license.md +21 -0
- package/dist/resources/third-party/node_modules__negotiator__LICENSE +24 -0
- package/dist/resources/third-party/node_modules__negotiator__node_modules__content-type__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__object-assign__license +21 -0
- package/dist/resources/third-party/node_modules__object-inspect__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__on-finished__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__once__LICENSE +15 -0
- package/dist/resources/third-party/node_modules__parseurl__LICENSE +24 -0
- package/dist/resources/third-party/node_modules__path-key__license +9 -0
- package/dist/resources/third-party/node_modules__path-to-regexp__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__pend__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__pkce-challenge__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__playwright-core__LICENSE +202 -0
- package/dist/resources/third-party/node_modules__playwright-core__NOTICE +5 -0
- package/dist/resources/third-party/node_modules__playwright__LICENSE +202 -0
- package/dist/resources/third-party/node_modules__playwright__NOTICE +5 -0
- package/dist/resources/third-party/node_modules__prettier__LICENSE +7 -0
- package/dist/resources/third-party/node_modules__proxy-addr__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__qs__LICENSE.md +29 -0
- package/dist/resources/third-party/node_modules__range-parser__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__raw-body__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__require-from-string__license +21 -0
- package/dist/resources/third-party/node_modules__router__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__safer-buffer__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__send__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__serve-static__LICENSE +25 -0
- package/dist/resources/third-party/node_modules__setprototypeof__LICENSE +13 -0
- package/dist/resources/third-party/node_modules__shebang-command__license +9 -0
- package/dist/resources/third-party/node_modules__shebang-regex__license +9 -0
- package/dist/resources/third-party/node_modules__side-channel-list__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__side-channel-map__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__side-channel-weakmap__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__side-channel__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__statuses__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__tar__LICENSE.md +55 -0
- package/dist/resources/third-party/node_modules__toidentifier__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__type-is__LICENSE +23 -0
- package/dist/resources/third-party/node_modules__type-is__node_modules__content-type__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__typescript__LICENSE +55 -0
- package/dist/resources/third-party/node_modules__typescript__NOTICE.txt +436 -0
- package/dist/resources/third-party/node_modules__undici-types__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__unpipe__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__vary__LICENSE +22 -0
- package/dist/resources/third-party/node_modules__which__LICENSE +15 -0
- package/dist/resources/third-party/node_modules__wrappy__LICENSE +15 -0
- package/dist/resources/third-party/node_modules__yallist__LICENSE.md +63 -0
- package/dist/resources/third-party/node_modules__yauzl__LICENSE +21 -0
- package/dist/resources/third-party/node_modules__zod-to-json-schema__LICENSE +15 -0
- package/dist/resources/third-party/node_modules__zod__LICENSE +21 -0
- package/dist/resources/toolchains/compatibility.json +50 -0
- package/dist/resources/toolchains/sources.lock.json +14 -0
- package/dist/resources/toolchains/toolchain.lock.json +204 -0
- package/dist/runtime/apexrest.mjs +226 -0
- package/dist/runtime/chunk-2SZCZZ3J.mjs +37111 -0
- package/dist/runtime/chunk-2VGE5Y5J.mjs +994 -0
- package/dist/runtime/chunk-3GSS6SJH.mjs +1424 -0
- package/dist/runtime/chunk-5GOWABKB.mjs +409 -0
- package/dist/runtime/chunk-ARMO5ZAQ.mjs +25 -0
- package/dist/runtime/chunk-ED2YPDPS.mjs +1123 -0
- package/dist/runtime/chunk-FPOEB42H.mjs +100 -0
- package/dist/runtime/chunk-GFRSRK3K.mjs +16 -0
- package/dist/runtime/chunk-ICWYSHJ7.mjs +19 -0
- package/dist/runtime/chunk-IPU64TJI.mjs +291 -0
- package/dist/runtime/chunk-JWX4UQAZ.mjs +14 -0
- package/dist/runtime/chunk-K3KT6RZY.mjs +1064 -0
- package/dist/runtime/chunk-QLRGI23I.mjs +1307 -0
- package/dist/runtime/chunk-RF4XQO6I.mjs +13 -0
- package/dist/runtime/chunk-VPCUV5QA.mjs +237 -0
- package/dist/runtime/chunk-WMJTK7ZB.mjs +201 -0
- package/dist/runtime/chunk-WROK6RQH.mjs +200 -0
- package/dist/runtime/chunk-XDJEGHUX.mjs +1179 -0
- package/dist/runtime/chunk-YK34QNHH.mjs +15 -0
- package/dist/runtime/chunk-Z6Y72JVG.mjs +37 -0
- package/dist/runtime/chunk-ZQFJ2BNZ.mjs +329 -0
- package/dist/runtime/mcp.mjs +15 -0
- package/package.json +70 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
TeamService,
|
|
4
|
+
teamRuntime
|
|
5
|
+
} from "./chunk-VPCUV5QA.mjs";
|
|
6
|
+
import {
|
|
7
|
+
openVerificationBrowser,
|
|
8
|
+
recordedExecutionMode,
|
|
9
|
+
teamStartSchema,
|
|
10
|
+
workPreferences,
|
|
11
|
+
workPreferencesSchema
|
|
12
|
+
} from "./chunk-QLRGI23I.mjs";
|
|
13
|
+
import {
|
|
14
|
+
VERSION
|
|
15
|
+
} from "./chunk-Z6Y72JVG.mjs";
|
|
16
|
+
import {
|
|
17
|
+
OracleAdapter,
|
|
18
|
+
configureConnection,
|
|
19
|
+
configureSqlcl,
|
|
20
|
+
connections,
|
|
21
|
+
external_exports,
|
|
22
|
+
loadProject,
|
|
23
|
+
ordsUrl,
|
|
24
|
+
ordsUsername,
|
|
25
|
+
parse,
|
|
26
|
+
policy,
|
|
27
|
+
refName,
|
|
28
|
+
requireTrust,
|
|
29
|
+
runProcess,
|
|
30
|
+
savedConnectionName,
|
|
31
|
+
sqlclConfig,
|
|
32
|
+
sqlclConfigSchema
|
|
33
|
+
} from "./chunk-2SZCZZ3J.mjs";
|
|
34
|
+
import {
|
|
35
|
+
Fault,
|
|
36
|
+
contained,
|
|
37
|
+
exists,
|
|
38
|
+
readJson,
|
|
39
|
+
sanitized,
|
|
40
|
+
writeJson
|
|
41
|
+
} from "./chunk-IPU64TJI.mjs";
|
|
42
|
+
|
|
43
|
+
// packages/core/src/panel-schema.ts
|
|
44
|
+
var panelPreferencesSchema = external_exports.strictObject({
|
|
45
|
+
executionMode: workPreferencesSchema.shape.executionMode.removeDefault().optional(),
|
|
46
|
+
multiAgentEnabled: workPreferencesSchema.shape.multiAgentEnabled.removeDefault().optional(),
|
|
47
|
+
browserMode: workPreferencesSchema.shape.browserMode.removeDefault().optional(),
|
|
48
|
+
developers: workPreferencesSchema.shape.developers.removeDefault().optional(),
|
|
49
|
+
sandbox: workPreferencesSchema.shape.sandbox.removeDefault().optional(),
|
|
50
|
+
timeoutSeconds: workPreferencesSchema.shape.timeoutSeconds.removeDefault().optional()
|
|
51
|
+
});
|
|
52
|
+
var panelReadSchema = external_exports.strictObject({
|
|
53
|
+
project: external_exports.string().min(1).max(4096).optional(),
|
|
54
|
+
team: external_exports.uuid().optional()
|
|
55
|
+
});
|
|
56
|
+
var connectionActionSchema = external_exports.strictObject({
|
|
57
|
+
kind: external_exports.literal("connection"),
|
|
58
|
+
name: refName,
|
|
59
|
+
sqlclName: savedConnectionName.optional(),
|
|
60
|
+
ordsUrl: ordsUrl.optional(),
|
|
61
|
+
ordsUsername: ordsUsername.optional(),
|
|
62
|
+
password: external_exports.string().min(1).max(4096).optional()
|
|
63
|
+
});
|
|
64
|
+
var panelActionSchema = external_exports.strictObject({
|
|
65
|
+
project: external_exports.string().min(1).max(4096).optional(),
|
|
66
|
+
action: external_exports.discriminatedUnion("kind", [
|
|
67
|
+
external_exports.strictObject({ kind: external_exports.literal("preferences"), settings: panelPreferencesSchema }),
|
|
68
|
+
external_exports.strictObject({ kind: external_exports.literal("sqlcl"), settings: sqlclConfigSchema }),
|
|
69
|
+
external_exports.strictObject({ kind: external_exports.literal("saved-connections") }),
|
|
70
|
+
connectionActionSchema,
|
|
71
|
+
external_exports.strictObject({ kind: external_exports.literal("start"), request: teamStartSchema.omit({ project: true }) }),
|
|
72
|
+
external_exports.strictObject({ kind: external_exports.literal("message"), id: external_exports.uuid(), message: external_exports.string().trim().min(1).max(8e3) }),
|
|
73
|
+
external_exports.strictObject({ kind: external_exports.literal("cancel-team"), id: external_exports.uuid() }),
|
|
74
|
+
external_exports.strictObject({ kind: external_exports.literal("cancel-job"), id: external_exports.uuid() }),
|
|
75
|
+
external_exports.strictObject({ kind: external_exports.literal("validate") }),
|
|
76
|
+
external_exports.strictObject({ kind: external_exports.literal("browser"), env: external_exports.string().min(1).max(100) }),
|
|
77
|
+
external_exports.strictObject({
|
|
78
|
+
kind: external_exports.literal("test"),
|
|
79
|
+
suite: external_exports.enum(["unit", "sql", "api", "e2e", "all"]),
|
|
80
|
+
env: external_exports.string().min(1).max(100).optional()
|
|
81
|
+
}),
|
|
82
|
+
external_exports.strictObject({ kind: external_exports.literal("plan"), env: external_exports.string().min(1).max(100) })
|
|
83
|
+
])
|
|
84
|
+
});
|
|
85
|
+
var publicPanelActionSchema = panelActionSchema.extend({
|
|
86
|
+
action: external_exports.discriminatedUnion("kind", [
|
|
87
|
+
panelActionSchema.shape.action.options[0],
|
|
88
|
+
...panelActionSchema.shape.action.options.slice(1).map(
|
|
89
|
+
(option) => option.shape.kind.value === "connection" ? connectionActionSchema.omit({ password: true }) : option
|
|
90
|
+
)
|
|
91
|
+
])
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
// packages/core/src/jobs.ts
|
|
95
|
+
import path from "node:path";
|
|
96
|
+
import { spawn } from "node:child_process";
|
|
97
|
+
import { randomUUID } from "node:crypto";
|
|
98
|
+
import { setTimeout as delay } from "node:timers/promises";
|
|
99
|
+
var JobService = class {
|
|
100
|
+
constructor(ctx) {
|
|
101
|
+
this.ctx = ctx;
|
|
102
|
+
}
|
|
103
|
+
ctx;
|
|
104
|
+
async start(operation, input, runtime) {
|
|
105
|
+
await requireTrust(this.ctx.root);
|
|
106
|
+
if (!["apex.generate", "apex.export", "apex.validate", "deploy.plan", "deploy.apply", "test.run"].includes(
|
|
107
|
+
operation
|
|
108
|
+
))
|
|
109
|
+
throw new Fault("INVALID_JOB_OPERATION", "Operation cannot run as a background job.", 2);
|
|
110
|
+
const id = randomUUID(), root = await contained(this.ctx.root, ".apexrest/jobs/" + id);
|
|
111
|
+
await writeJson(path.join(root, "request.json"), {
|
|
112
|
+
id,
|
|
113
|
+
operation,
|
|
114
|
+
input: { ...input, project: this.ctx.root }
|
|
115
|
+
});
|
|
116
|
+
await writeJson(path.join(root, "state.json"), {
|
|
117
|
+
id,
|
|
118
|
+
status: "queued",
|
|
119
|
+
operation,
|
|
120
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
121
|
+
});
|
|
122
|
+
const worker = spawn(process.execPath, [runtime, "--job-worker", this.ctx.root, id], {
|
|
123
|
+
cwd: this.ctx.root,
|
|
124
|
+
env: process.env,
|
|
125
|
+
detached: true,
|
|
126
|
+
stdio: "ignore",
|
|
127
|
+
windowsHide: true
|
|
128
|
+
});
|
|
129
|
+
await new Promise((resolve, reject) => {
|
|
130
|
+
worker.once("spawn", resolve);
|
|
131
|
+
worker.once("error", reject);
|
|
132
|
+
});
|
|
133
|
+
worker.unref();
|
|
134
|
+
return {
|
|
135
|
+
jobId: id,
|
|
136
|
+
status: "queued",
|
|
137
|
+
nextAction: "Wait for this job with apexrest_job_status and waitSeconds:25; never rerun the operation to fetch results. Cancellation does not imply database rollback."
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
async status(id, waitSeconds = 0, signal) {
|
|
141
|
+
parse(external_exports.uuid(), id);
|
|
142
|
+
parse(external_exports.number().int().min(0).max(30), waitSeconds);
|
|
143
|
+
const root = await contained(this.ctx.root, ".apexrest/jobs/" + id);
|
|
144
|
+
const deadline = Date.now() + waitSeconds * 1e3;
|
|
145
|
+
for (; ; ) {
|
|
146
|
+
const state = await readJson(path.join(root, "state.json"));
|
|
147
|
+
if (!["queued", "running"].includes(state.status)) return state;
|
|
148
|
+
if (Date.parse(state.updatedAt) + 6e4 < Date.now())
|
|
149
|
+
return {
|
|
150
|
+
...state,
|
|
151
|
+
status: "outcome_unknown",
|
|
152
|
+
nextAction: "Worker heartbeat expired. Reconcile target before retrying."
|
|
153
|
+
};
|
|
154
|
+
const remaining = deadline - Date.now();
|
|
155
|
+
if (remaining <= 0 || signal?.aborted) return state;
|
|
156
|
+
await delay(Math.min(250, remaining), void 0, { signal }).catch((error) => {
|
|
157
|
+
if (!signal?.aborted) throw error;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
async cancel(id) {
|
|
162
|
+
await requireTrust(this.ctx.root);
|
|
163
|
+
parse(external_exports.uuid(), id);
|
|
164
|
+
const state = await this.status(id);
|
|
165
|
+
if (!["queued", "running"].includes(state.status)) return state;
|
|
166
|
+
await writeJson(await contained(this.ctx.root, ".apexrest/jobs/" + id + "/cancel.json"), {
|
|
167
|
+
requestedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
168
|
+
});
|
|
169
|
+
return { jobId: id, status: "cancellation_requested", rollbackConfirmed: false };
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
async function executeJob(ctx, id, execute) {
|
|
173
|
+
await requireTrust(ctx.root);
|
|
174
|
+
parse(external_exports.uuid(), id);
|
|
175
|
+
const root = await contained(ctx.root, ".apexrest/jobs/" + id);
|
|
176
|
+
const request = await readJson(path.join(root, "request.json"));
|
|
177
|
+
const controller = new AbortController();
|
|
178
|
+
let done = false;
|
|
179
|
+
const pulse = async () => {
|
|
180
|
+
if (done) return;
|
|
181
|
+
if (await exists(path.join(root, "cancel.json"))) controller.abort();
|
|
182
|
+
if (!done)
|
|
183
|
+
await writeJson(path.join(root, "state.json"), {
|
|
184
|
+
id,
|
|
185
|
+
operation: request.operation,
|
|
186
|
+
status: "running",
|
|
187
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
await pulse();
|
|
191
|
+
let pending = Promise.resolve();
|
|
192
|
+
const timer = setInterval(() => {
|
|
193
|
+
pending = pending.then(pulse).catch(() => {
|
|
194
|
+
controller.abort();
|
|
195
|
+
});
|
|
196
|
+
}, 2e3), timeout = setTimeout(() => controller.abort(), 9e5);
|
|
197
|
+
try {
|
|
198
|
+
const result = await execute(request.operation, request.input, controller.signal);
|
|
199
|
+
done = true;
|
|
200
|
+
clearInterval(timer);
|
|
201
|
+
clearTimeout(timeout);
|
|
202
|
+
await pending;
|
|
203
|
+
await writeJson(path.join(root, "state.json"), {
|
|
204
|
+
id,
|
|
205
|
+
status: "completed",
|
|
206
|
+
result,
|
|
207
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
208
|
+
});
|
|
209
|
+
} finally {
|
|
210
|
+
done = true;
|
|
211
|
+
clearInterval(timer);
|
|
212
|
+
clearTimeout(timeout);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// packages/core/src/panel.ts
|
|
217
|
+
import { readdir, realpath, stat } from "node:fs/promises";
|
|
218
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
219
|
+
var safe = (value) => sanitized(value);
|
|
220
|
+
var PanelService = class {
|
|
221
|
+
constructor(root, oracle = new OracleAdapter()) {
|
|
222
|
+
this.root = root;
|
|
223
|
+
this.oracle = oracle;
|
|
224
|
+
}
|
|
225
|
+
root;
|
|
226
|
+
oracle;
|
|
227
|
+
async preferences() {
|
|
228
|
+
return workPreferences(this.root);
|
|
229
|
+
}
|
|
230
|
+
async records(folder) {
|
|
231
|
+
const base = await contained(this.root, ".apexrest/" + folder);
|
|
232
|
+
if (!await exists(base)) return [];
|
|
233
|
+
const entries = (await readdir(base, { withFileTypes: true })).filter(
|
|
234
|
+
(e) => e.isDirectory() && external_exports.uuid().safeParse(e.name).success
|
|
235
|
+
);
|
|
236
|
+
if (entries.length > 2e3)
|
|
237
|
+
throw new Fault(
|
|
238
|
+
"PANEL_HISTORY_LIMIT",
|
|
239
|
+
"Archive old operation records before loading more than 2000 runs.",
|
|
240
|
+
2
|
|
241
|
+
);
|
|
242
|
+
const files = await Promise.all(
|
|
243
|
+
entries.map(async (entry) => {
|
|
244
|
+
const file = await contained(base, entry.name + "/state.json");
|
|
245
|
+
const info = await stat(file).catch(() => null);
|
|
246
|
+
return { id: entry.name, file, at: info?.mtimeMs ?? 0, size: info?.size ?? 0 };
|
|
247
|
+
})
|
|
248
|
+
);
|
|
249
|
+
return Promise.all(
|
|
250
|
+
files.filter((f) => f.size > 0).sort((a, b) => b.at - a.at).slice(0, 12).map(async (f) => {
|
|
251
|
+
if (f.size > 2 * 1024 * 1024)
|
|
252
|
+
return {
|
|
253
|
+
id: f.id,
|
|
254
|
+
status: "unavailable",
|
|
255
|
+
diagnostics: ["Record exceeds the panel limit."]
|
|
256
|
+
};
|
|
257
|
+
try {
|
|
258
|
+
return { ...await readJson(f.file), id: f.id };
|
|
259
|
+
} catch {
|
|
260
|
+
return {
|
|
261
|
+
id: f.id,
|
|
262
|
+
status: "unavailable",
|
|
263
|
+
diagnostics: ["Cannot read this operation record."]
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
})
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
async snapshot(selectedTeam) {
|
|
270
|
+
this.root = await realpath(this.root);
|
|
271
|
+
if (selectedTeam) parse(external_exports.uuid(), selectedTeam);
|
|
272
|
+
const ctx = await loadProject(this.root).catch((error) => {
|
|
273
|
+
if (error instanceof Fault && error.code === "PROJECT_NOT_CONFIGURED") return null;
|
|
274
|
+
throw error;
|
|
275
|
+
});
|
|
276
|
+
const [prefs, sqlcl, refs, security, teamRecords, jobRecords, deploymentRecords] = await Promise.all([
|
|
277
|
+
this.preferences(),
|
|
278
|
+
sqlclConfig(),
|
|
279
|
+
connections(),
|
|
280
|
+
policy(),
|
|
281
|
+
this.records("teams"),
|
|
282
|
+
this.records("jobs"),
|
|
283
|
+
this.records("deployments")
|
|
284
|
+
]);
|
|
285
|
+
const teams = teamRecords.map((row) => ({
|
|
286
|
+
id: String(row.id),
|
|
287
|
+
status: String(row.status),
|
|
288
|
+
phase: String(row.phase ?? "unknown"),
|
|
289
|
+
revision: Number(row.revision ?? 0),
|
|
290
|
+
updatedAt: String(row.updatedAt ?? ""),
|
|
291
|
+
members: Array.isArray(row.members) ? row.members.length : 0,
|
|
292
|
+
executionMode: recordedExecutionMode(row)
|
|
293
|
+
})).map(
|
|
294
|
+
(row) => ["queued", "running"].includes(row.status) && Date.parse(row.updatedAt) + 6e4 < Date.now() ? { ...row, status: "outcome_unknown" } : row
|
|
295
|
+
);
|
|
296
|
+
const chosen = selectedTeam ?? teams.find((t) => ["running", "queued"].includes(t.status))?.id ?? teams[0]?.id;
|
|
297
|
+
const team = ctx && chosen ? await new TeamService(ctx).snapshot(chosen) : null;
|
|
298
|
+
const assignment = ctx && chosen ? await readJson(await contained(this.root, ".apexrest/teams/" + chosen + "/request.json")).catch(
|
|
299
|
+
() => null
|
|
300
|
+
) : null;
|
|
301
|
+
const jobs = await Promise.all(
|
|
302
|
+
jobRecords.map(async (row) => {
|
|
303
|
+
const state = ctx ? await new JobService(ctx).status(String(row.id)) : row;
|
|
304
|
+
const result = state.result ?? {};
|
|
305
|
+
return {
|
|
306
|
+
id: String(row.id),
|
|
307
|
+
operation: String(row.operation ?? result.operation ?? "operation"),
|
|
308
|
+
status: String(result.status ?? state.status),
|
|
309
|
+
updatedAt: String(state.updatedAt ?? ""),
|
|
310
|
+
summary: String(result.summary ?? "").slice(0, 1e3),
|
|
311
|
+
diagnostics: Array.isArray(result.diagnostics) ? result.diagnostics.slice(0, 5) : [],
|
|
312
|
+
artifacts: Array.isArray(result.artifacts) ? result.artifacts.slice(0, 10) : []
|
|
313
|
+
};
|
|
314
|
+
})
|
|
315
|
+
);
|
|
316
|
+
const deployments = deploymentRecords.map((row) => ({
|
|
317
|
+
id: String(row.id),
|
|
318
|
+
status: String(row.state ?? "unknown"),
|
|
319
|
+
at: String(row.at ?? ""),
|
|
320
|
+
details: JSON.stringify(safe(row.details ?? {})).slice(0, 1200)
|
|
321
|
+
}));
|
|
322
|
+
let changes = { status: "unavailable", files: [] };
|
|
323
|
+
try {
|
|
324
|
+
const git = await runProcess({
|
|
325
|
+
executable: "git",
|
|
326
|
+
args: ["status", "--porcelain=v1", "--untracked-files=normal"],
|
|
327
|
+
cwd: this.root,
|
|
328
|
+
timeoutMs: 3e3
|
|
329
|
+
});
|
|
330
|
+
if (git.code === 0)
|
|
331
|
+
changes = { status: "available", files: git.stdout.split("\n").filter(Boolean).slice(0, 80) };
|
|
332
|
+
} catch {
|
|
333
|
+
}
|
|
334
|
+
let toolchain = null;
|
|
335
|
+
if (ctx) {
|
|
336
|
+
const file = await contained(this.root, ctx.config.toolchain.lockFile);
|
|
337
|
+
if (await exists(file)) {
|
|
338
|
+
if ((await stat(file)).size <= 128e3) toolchain = await readJson(file);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return safe({
|
|
342
|
+
version: VERSION,
|
|
343
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
344
|
+
project: this.root,
|
|
345
|
+
configured: !!ctx,
|
|
346
|
+
trusted: security.trustedProjects.includes(this.root),
|
|
347
|
+
configuration: ctx?.config ?? null,
|
|
348
|
+
sqlcl,
|
|
349
|
+
preferences: prefs,
|
|
350
|
+
connections: refs,
|
|
351
|
+
toolchain,
|
|
352
|
+
teams,
|
|
353
|
+
team,
|
|
354
|
+
task: typeof assignment?.task === "string" ? assignment.task.slice(0, 2e3) : null,
|
|
355
|
+
jobs,
|
|
356
|
+
deployments,
|
|
357
|
+
changes,
|
|
358
|
+
permissions: {
|
|
359
|
+
activeGrants: security.grants.filter((g) => g.projectRoot === this.root && Date.parse(g.expiresAt) > Date.now()).map((g) => ({ operations: g.operations, expiresAt: g.expiresAt, exactPlan: !!g.planDigest }))
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
async act(action) {
|
|
364
|
+
action = parse(panelActionSchema, { action }).action;
|
|
365
|
+
this.root = await realpath(this.root);
|
|
366
|
+
await requireTrust(this.root);
|
|
367
|
+
if (action.kind === "saved-connections") return this.oracle.savedConnections();
|
|
368
|
+
if (action.kind === "preferences") {
|
|
369
|
+
const settings = { ...await this.preferences(), ...action.settings };
|
|
370
|
+
if (!settings.multiAgentEnabled) {
|
|
371
|
+
if (action.settings.executionMode === "team")
|
|
372
|
+
throw new Fault(
|
|
373
|
+
"MULTI_AGENT_DISABLED",
|
|
374
|
+
"Explicitly enable multiAgentEnabled in Settings to select a team.",
|
|
375
|
+
2
|
|
376
|
+
);
|
|
377
|
+
settings.executionMode = "single";
|
|
378
|
+
}
|
|
379
|
+
await writeJson(await contained(this.root, ".apexrest/panel/preferences.json"), settings);
|
|
380
|
+
return { saved: true, appliesTo: "new-teams" };
|
|
381
|
+
}
|
|
382
|
+
if (action.kind === "sqlcl") {
|
|
383
|
+
return configureSqlcl(
|
|
384
|
+
action.settings.mode,
|
|
385
|
+
action.settings.mcpRestrictLevel,
|
|
386
|
+
action.settings.databaseTransport
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
if (action.kind === "connection") return configureConnection(action.name, action);
|
|
390
|
+
const ctx = await loadProject(this.root), team = new TeamService(ctx);
|
|
391
|
+
if (action.kind === "start") return team.start({ ...action.request, project: this.root });
|
|
392
|
+
if (action.kind === "browser") return openVerificationBrowser(ctx, action.env);
|
|
393
|
+
if (action.kind === "message") return team.message(action.id, action.message);
|
|
394
|
+
if (action.kind === "cancel-team") return team.cancel(action.id);
|
|
395
|
+
if (action.kind === "cancel-job") return new JobService(ctx).cancel(action.id);
|
|
396
|
+
const operation = action.kind === "validate" ? "apex.validate" : action.kind === "plan" ? "deploy.plan" : "test.run";
|
|
397
|
+
const input = action.kind === "plan" ? { env: action.env, out: ".apexrest/plans/" + randomUUID2() + ".json" } : action.kind === "test" ? { suite: action.suite, ...action.env ? { env: action.env } : {} } : {};
|
|
398
|
+
return new JobService(ctx).start(operation, input, teamRuntime());
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
export {
|
|
403
|
+
panelReadSchema,
|
|
404
|
+
panelActionSchema,
|
|
405
|
+
publicPanelActionSchema,
|
|
406
|
+
JobService,
|
|
407
|
+
executeJob,
|
|
408
|
+
PanelService
|
|
409
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
atomicWrite,
|
|
4
|
+
canonical,
|
|
5
|
+
contained,
|
|
6
|
+
exists,
|
|
7
|
+
hash,
|
|
8
|
+
hashFile,
|
|
9
|
+
inventory,
|
|
10
|
+
readJson,
|
|
11
|
+
withLock,
|
|
12
|
+
writeJson
|
|
13
|
+
} from "./chunk-IPU64TJI.mjs";
|
|
14
|
+
export {
|
|
15
|
+
atomicWrite,
|
|
16
|
+
canonical,
|
|
17
|
+
contained,
|
|
18
|
+
exists,
|
|
19
|
+
hash,
|
|
20
|
+
hashFile,
|
|
21
|
+
inventory,
|
|
22
|
+
readJson,
|
|
23
|
+
withLock,
|
|
24
|
+
writeJson
|
|
25
|
+
};
|