@antelopejs/dms 0.21.3 → 0.21.4-next.1001.gdf7ba11
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/E2E.md +101 -10
- package/README.md +3 -3
- package/data/mockup-spec.schema.json +181 -0
- package/dist/config/internal/state.d.ts +4 -1
- package/dist/config/internal/state.js +5 -0
- package/dist/config/internal/state.js.map +1 -1
- package/dist/db/setup-token.d.ts +1 -1
- package/dist/db/setup-token.js +2 -2
- package/dist/db/setup-token.js.map +1 -1
- package/dist/{bin/control → e2e}/backend.d.mts +4 -4
- package/dist/{bin/control → e2e}/base.d.mts +5 -5
- package/dist/{bin/control → e2e}/browser.d.mts +2 -28
- package/dist/e2e/fixtures.d.mts +45 -0
- package/dist/{bin/control → e2e}/frontend-workspace.d.mts +9 -1
- package/dist/e2e/global-setup.d.mts +27 -0
- package/dist/{bin/control → e2e}/identity.d.mts +3 -4
- package/dist/e2e/index.d.mts +57 -0
- package/dist/{bin/control → e2e}/journey-judge.d.mts +8 -8
- package/dist/{bin/control → e2e}/journey-load.d.mts +0 -6
- package/dist/e2e/journey-run.d.mts +61 -0
- package/dist/{bin/control → e2e}/journey.d.mts +37 -38
- package/dist/e2e/journeys-config.d.mts +56 -0
- package/dist/{bin/control → e2e}/json.d.mts +7 -14
- package/dist/{bin/control → e2e}/launch.d.mts +3 -3
- package/dist/{bin/control → e2e}/module-root.d.mts +3 -3
- package/dist/{bin/control → e2e}/mongo.d.mts +3 -3
- package/dist/{bin/control → e2e}/renderer.d.mts +1 -1
- package/dist/{bin/control → e2e}/run-state.d.mts +8 -7
- package/dist/e2e/run.d.mts +53 -0
- package/dist/{bin/control → e2e}/stack.d.mts +0 -1
- package/dist/e2e/start.d.mts +50 -0
- package/dist/{bin/control/e2e-suite.d.mts → e2e/suite.d.mts} +13 -16
- package/dist/e2e/test-journey.d.mts +30 -0
- package/dist/{bin/control → e2e}/timing.d.mts +0 -29
- package/dist/e2e/types.d.mts +58 -0
- package/dist/implementations/dms-auth/database-deadline.d.ts +7 -0
- package/dist/implementations/dms-auth/database-deadline.js +45 -0
- package/dist/implementations/dms-auth/database-deadline.js.map +1 -0
- package/dist/implementations/dms-auth/index.js +14 -6
- package/dist/implementations/dms-auth/index.js.map +1 -1
- package/dist/implementations/dms-builder/engine/analysis.js +1 -0
- package/dist/implementations/dms-builder/engine/analysis.js.map +1 -1
- package/dist/implementations/dms-builder/engine/cell-displays.js +1 -0
- package/dist/implementations/dms-builder/engine/cell-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/compose-page.js +2 -5
- package/dist/implementations/dms-builder/engine/compose-page.js.map +1 -1
- package/dist/implementations/dms-builder/engine/index.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/index.js +5 -1
- package/dist/implementations/dms-builder/engine/index.js.map +1 -1
- package/dist/implementations/dms-builder/engine/indexed-project.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/indexed-project.js +18 -3
- package/dist/implementations/dms-builder/engine/indexed-project.js.map +1 -1
- package/dist/implementations/dms-builder/engine/interface-capabilities.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/interface-capabilities.js +14 -5
- package/dist/implementations/dms-builder/engine/interface-capabilities.js.map +1 -1
- package/dist/implementations/dms-builder/engine/map-resources.js +2 -3
- package/dist/implementations/dms-builder/engine/map-resources.js.map +1 -1
- package/dist/implementations/dms-builder/engine/mapped-choices.js +9 -1
- package/dist/implementations/dms-builder/engine/mapped-choices.js.map +1 -1
- package/dist/implementations/dms-builder/engine/modules.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/modules.js +3 -2
- package/dist/implementations/dms-builder/engine/modules.js.map +1 -1
- package/dist/implementations/dms-builder/engine/ops-blocks.js +1 -2
- package/dist/implementations/dms-builder/engine/ops-blocks.js.map +1 -1
- package/dist/implementations/dms-builder/engine/ops-categories.js +2 -4
- package/dist/implementations/dms-builder/engine/ops-categories.js.map +1 -1
- package/dist/implementations/dms-builder/engine/ops.js +3 -4
- package/dist/implementations/dms-builder/engine/ops.js.map +1 -1
- package/dist/implementations/dms-builder/engine/page-access.js +3 -1
- package/dist/implementations/dms-builder/engine/page-access.js.map +1 -1
- package/dist/implementations/dms-builder/engine/page-category-move.js +3 -3
- package/dist/implementations/dms-builder/engine/page-category-move.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-chain.d.ts +3 -1
- package/dist/implementations/dms-builder/engine/query-chain.js +10 -4
- package/dist/implementations/dms-builder/engine/query-chain.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-emit.d.ts +17 -2
- package/dist/implementations/dms-builder/engine/query-emit.js +72 -15
- package/dist/implementations/dms-builder/engine/query-emit.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-ops-emit.js +6 -0
- package/dist/implementations/dms-builder/engine/query-ops-emit.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-ops.js +29 -1
- package/dist/implementations/dms-builder/engine/query-ops.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-plan-execute.d.ts +1 -1
- package/dist/implementations/dms-builder/engine/query-plan-execute.js +11 -4
- package/dist/implementations/dms-builder/engine/query-plan-execute.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-plan.d.ts +14 -1
- package/dist/implementations/dms-builder/engine/query-plan.js +68 -28
- package/dist/implementations/dms-builder/engine/query-plan.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-preview.js +25 -15
- package/dist/implementations/dms-builder/engine/query-preview.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-route-response.js +3 -4
- package/dist/implementations/dms-builder/engine/query-route-response.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-structure.js +66 -15
- package/dist/implementations/dms-builder/engine/query-structure.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-template-emit.js +2 -0
- package/dist/implementations/dms-builder/engine/query-template-emit.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-template-ratio.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/query-template-ratio.js +140 -0
- package/dist/implementations/dms-builder/engine/query-template-ratio.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-template.d.ts +8 -1
- package/dist/implementations/dms-builder/engine/query-template.js +2 -3
- package/dist/implementations/dms-builder/engine/query-template.js.map +1 -1
- package/dist/implementations/dms-builder/engine/query-where.d.ts +2 -1
- package/dist/implementations/dms-builder/engine/query-where.js +4 -2
- package/dist/implementations/dms-builder/engine/query-where.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resolution-inputs.d.ts +8 -0
- package/dist/implementations/dms-builder/engine/resolution-inputs.js +85 -0
- package/dist/implementations/dms-builder/engine/resolution-inputs.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-index.js +1 -1
- package/dist/implementations/dms-builder/engine/resource-index.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-ops.js +2 -4
- package/dist/implementations/dms-builder/engine/resource-ops.js.map +1 -1
- package/dist/implementations/dms-builder/engine/save-check.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/save-check.js +104 -0
- package/dist/implementations/dms-builder/engine/save-check.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-scaffold.js +1 -2
- package/dist/implementations/dms-builder/engine/theme-scaffold.js.map +1 -1
- package/dist/implementations/dms-builder/engine/writable.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/writable.js +46 -42
- package/dist/implementations/dms-builder/engine/writable.js.map +1 -1
- package/dist/implementations/dms-html-render/index.js +1 -0
- package/dist/implementations/dms-html-render/index.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/analysis-summary.d.ts +3 -0
- package/dist/mcp/analysis-summary.js +23 -1
- package/dist/mcp/analysis-summary.js.map +1 -1
- package/dist/mcp/page-verify/mockup.js +2 -2
- package/dist/mcp/page-verify/mockup.js.map +1 -1
- package/dist/mcp/relation-groups.d.ts +7 -0
- package/dist/mcp/relation-groups.js +88 -0
- package/dist/mcp/relation-groups.js.map +1 -0
- package/dist/mcp/tools/builder-analysis.js +1 -1
- package/dist/mcp/tools/builder-analysis.js.map +1 -1
- package/dist/mcp/tools/builder-queries.js +3 -3
- package/dist/mcp/tools/builder-queries.js.map +1 -1
- package/dist/mcp/tools/builder-resources.js +1 -1
- package/dist/mcp/tools/builder-resources.js.map +1 -1
- package/dist/mcp/tools/index.d.ts +1 -0
- package/dist/mcp/tools/index.js +3 -3
- package/dist/mcp/tools/index.js.map +1 -1
- package/dist/mcp/tools/mockup-from-page.d.ts +2 -0
- package/dist/mcp/tools/mockup-from-page.js +28 -24
- package/dist/mcp/tools/mockup-from-page.js.map +1 -1
- package/dist/mcp/tools/mockup-patch-spec.js +4 -1
- package/dist/mcp/tools/mockup-patch-spec.js.map +1 -1
- package/dist/mcp/tools/mockup-read-spec.js +14 -2
- package/dist/mcp/tools/mockup-read-spec.js.map +1 -1
- package/dist/mcp/tools/mockup-support.d.ts +2 -0
- package/dist/mcp/tools/mockup-support.js +13 -2
- package/dist/mcp/tools/mockup-support.js.map +1 -1
- package/dist/mcp/tools/mockup-write-spec.js +1 -1
- package/dist/mcp/tools/mockup-write-spec.js.map +1 -1
- package/dist/mockup/anchor.d.ts +1 -0
- package/dist/mockup/anchor.js +7 -0
- package/dist/mockup/anchor.js.map +1 -1
- package/dist/mockup/compile.d.ts +2 -1
- package/dist/mockup/compile.js +3 -0
- package/dist/mockup/compile.js.map +1 -1
- package/dist/mockup/from-page-routes.d.ts +4 -2
- package/dist/mockup/from-page-routes.js +3 -2
- package/dist/mockup/from-page-routes.js.map +1 -1
- package/dist/mockup/history-routes.d.ts +3 -1
- package/dist/mockup/history-routes.js +25 -11
- package/dist/mockup/history-routes.js.map +1 -1
- package/dist/mockup/index.d.ts +5 -0
- package/dist/mockup/index.js +11 -4
- package/dist/mockup/index.js.map +1 -1
- package/dist/mockup/json-schema.js +8 -0
- package/dist/mockup/json-schema.js.map +1 -1
- package/dist/mockup/live-page.d.ts +2 -1
- package/dist/mockup/live-page.js +19 -10
- package/dist/mockup/live-page.js.map +1 -1
- package/dist/mockup/manage-routes.d.ts +1 -0
- package/dist/mockup/model.d.ts +8 -0
- package/dist/mockup/model.js +6 -0
- package/dist/mockup/model.js.map +1 -1
- package/dist/mockup/modules.d.ts +11 -0
- package/dist/mockup/modules.js +38 -0
- package/dist/mockup/modules.js.map +1 -0
- package/dist/mockup/owner-controller.d.ts +2 -0
- package/dist/mockup/owner-controller.js +8 -0
- package/dist/mockup/owner-controller.js.map +1 -1
- package/dist/mockup/presence-board.d.ts +45 -0
- package/dist/mockup/presence-board.js +181 -0
- package/dist/mockup/presence-board.js.map +1 -0
- package/dist/mockup/presence-routes.d.ts +23 -0
- package/dist/mockup/presence-routes.js +169 -0
- package/dist/mockup/presence-routes.js.map +1 -0
- package/dist/mockup/presence.d.ts +83 -0
- package/dist/mockup/presence.js +168 -0
- package/dist/mockup/presence.js.map +1 -0
- package/dist/mockup/routes.d.ts +6 -0
- package/dist/mockup/routes.js +20 -4
- package/dist/mockup/routes.js.map +1 -1
- package/dist/mockup/source-routes.d.ts +6 -1
- package/dist/mockup/source-routes.js +36 -13
- package/dist/mockup/source-routes.js.map +1 -1
- package/dist/mockup/source.d.ts +1 -0
- package/dist/mockup/source.js +1 -0
- package/dist/mockup/source.js.map +1 -1
- package/dist/mockup/store.d.ts +4 -0
- package/dist/mockup/store.js +3 -0
- package/dist/mockup/store.js.map +1 -1
- package/dist/pages/settings/users/role-preview.d.ts +1 -1
- package/dist/pages/settings/users/role-preview.js +2 -2
- package/dist/pages/settings/users/role-preview.js.map +1 -1
- package/dist/pages/settings/users/roles.js +1 -1
- package/dist/pages/settings/users/roles.js.map +1 -1
- package/dist/routes/auth/refresh.d.ts +1 -1
- package/dist/routes/auth/refresh.js +3 -25
- package/dist/routes/auth/refresh.js.map +1 -1
- package/dist/store/catalog.d.ts +1 -0
- package/dist/store/catalog.js +1 -0
- package/dist/store/catalog.js.map +1 -1
- package/dist/store/internal/frontend/dev-reload.d.ts +7 -4
- package/dist/store/internal/frontend/dev-reload.js +16 -17
- package/dist/store/internal/frontend/dev-reload.js.map +1 -1
- package/dist/utils/auth-constants.d.ts +0 -1
- package/dist/utils/auth-constants.js +1 -2
- package/dist/utils/auth-constants.js.map +1 -1
- package/dist/utils/user-activity.js +1 -7
- package/dist/utils/user-activity.js.map +1 -1
- package/{bin/control → e2e}/backend.mjs +5 -5
- package/{bin/control → e2e}/base.mjs +11 -11
- package/{bin/control → e2e}/browser.mjs +1 -113
- package/{bin/control → e2e}/build-cache.mjs +3 -3
- package/{bin/control → e2e}/build-key.mjs +27 -3
- package/{bin/control → e2e}/dashboard.mjs +33 -6
- package/e2e/fixtures.mjs +154 -0
- package/{bin/control → e2e}/frontend-workspace.mjs +39 -5
- package/e2e/global-setup.mjs +74 -0
- package/{bin/control → e2e}/identity.mjs +4 -5
- package/e2e/index.mjs +110 -0
- package/{bin/control → e2e}/journey-judge.mjs +4 -4
- package/{bin/control → e2e}/journey-load.mjs +0 -13
- package/e2e/journey-run.mjs +190 -0
- package/{bin/control → e2e}/journey.mjs +57 -216
- package/e2e/journeys-config.mjs +126 -0
- package/{bin/control → e2e}/json.mjs +11 -32
- package/{bin/control → e2e}/launch.mjs +6 -6
- package/{bin/control → e2e}/mail.mjs +2 -3
- package/{bin/control → e2e}/module-root.mjs +3 -3
- package/{bin/control → e2e}/mongo.mjs +8 -8
- package/{bin/control → e2e}/prepared-workspace.mjs +1 -1
- package/{bin/control → e2e}/renderer.mjs +6 -4
- package/{bin/control → e2e}/run-state.mjs +15 -14
- package/e2e/run.mjs +96 -0
- package/e2e/service.mjs +11 -0
- package/e2e/services.mjs +64 -0
- package/{bin/control → e2e}/session.mjs +1 -3
- package/{bin/control → e2e}/stack.mjs +4 -5
- package/e2e/start.mjs +79 -0
- package/{bin/control/e2e-suite.mjs → e2e/suite.mjs} +25 -33
- package/e2e/test-journey.mjs +55 -0
- package/{bin/control → e2e}/timing.mjs +0 -112
- package/{bin/control/verify → e2e}/types.mjs +3 -7
- package/frontend-vue/eslint-globals.generated.mjs +20 -20
- package/frontend-vue/layers/dms-auth/server/session.ts +9 -2
- package/frontend-vue/layers/dms-core/app/build/utils/previewFrame.ts +12 -0
- package/frontend-vue/layers/dms-core/app/composables/page/useSiteLayout.ts +20 -14
- package/frontend-vue/layers/dms-core/app/composables/realtime/useUserRealtime.ts +2 -1
- package/frontend-vue/layers/dms-core/app/entries/utils/previewFrame.ts +1 -0
- package/frontend-vue/layers/dms-core/app/types/live.ts +1 -1
- package/frontend-vue/layers/dms-core/app/types/page.ts +1 -0
- package/frontend-vue/layers/dms-core/app/types/row-action.ts +2 -0
- package/frontend-vue/layers/dms-core/app/utils/http-status.ts +1 -0
- package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +5 -0
- package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +5 -0
- package/frontend-vue/layers/dms-layout/app/app.config.ts +1 -1
- package/frontend-vue/layers/dms-layout/app/assets/css/foundation.css +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +30 -29
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionBar.vue +4 -8
- package/frontend-vue/layers/dms-layout/app/build/mockups/created-toast.ts +4 -7
- package/frontend-vue/layers/dms-layout/app/error.vue +7 -0
- package/frontend-vue/layers/dms-layout/app/plugins/dms-dev-reload.client.ts +2 -1
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +1 -1
- package/frontend-vue/layers/dms-layout/public/images/antelope-logo/dark.svg +1 -1
- package/frontend-vue/layers/dms-layout/public/images/antelope-logo/light.svg +1 -1
- package/frontend-vue/layers/dms-onboarding/i18n/locales/onboarding-en-GB.json +2 -2
- package/frontend-vue/layers/dms-onboarding/i18n/locales/onboarding-fr-FR.json +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +29 -8
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupLayers.vue +10 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +46 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +26 -5
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +47 -3
- package/frontend-vue/layers/dms-ui/app/build/components/button/DisabledReason.vue +27 -0
- package/frontend-vue/layers/dms-ui/app/build/components/period/PeriodRangeCalendar.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/build/components/stat/StatCell.vue +2 -11
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableActions.vue +17 -17
- package/frontend-vue/layers/dms-ui/app/build/components/table/TablePagination.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardAvatar.vue +2 -10
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/IdentityCell.vue +15 -11
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/actionTargetContainers.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/actionTargetHandlers.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/actionTargetRequests.ts +14 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/actionTargetUrl.ts +25 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/actions/useActionTargets.ts +5 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +5 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDocument.ts +12 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +34 -8
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupLocks.ts +268 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +39 -23
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +10 -7
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +21 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +92 -29
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +11 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/chart/apexAxes.ts +11 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/chart/apexCategoryFormat.ts +32 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/chart/apexTheme.ts +8 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultIdentityCells.ts +3 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultPrimitiveTypes.ts +1 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/metricCells.ts +45 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationFilter.ts +17 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/page/pageUrlValues.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/period/periodDisplay.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionDescriptors.ts +47 -31
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionRendering.ts +19 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionSizing.ts +2 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnTypes.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionTypes.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewActions.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewLive.ts +10 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableLiveHold.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViewRowActions.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +4 -2
- package/frontend-vue/layers/dms-ui/app/build/types/tree.ts +8 -3
- package/frontend-vue/layers/dms-ui/app/build/utils/fetchStatus.ts +12 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/initials.ts +36 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +24 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEdit.ts +18 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOutline.ts +7 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +15 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupPresence.ts +117 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupRebase.ts +139 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +16 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +23 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +13 -1
- package/frontend-vue/layers/dms-ui/app/components/form/FormBlock.vue +5 -3
- package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputCalendar.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputRelation.vue +14 -1
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputRepeater.vue +23 -10
- package/frontend-vue/layers/dms-ui/app/components/kpi/KpiCard.vue +1 -6
- package/frontend-vue/layers/dms-ui/app/components/period/PeriodSelector.vue +9 -8
- package/frontend-vue/layers/dms-ui/app/components/period/usePeriodSelectorInteraction.ts +62 -16
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/action-target.ts +5 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/button/DisabledReason.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/stat/StatCell.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupLocks.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/initials.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupPresence.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupRebase.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/types/row-action.ts +2 -0
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +4 -1
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +4 -1
- package/frontend-vue/package.json +1 -1
- package/package.json +20 -18
- package/skills/dms/REFERENCE.md +1 -1
- package/skills/dms-module/SKILL.md +1 -1
- package/bin/control/backend-mode.test.mjs +0 -112
- package/bin/control/backend-records.test.mjs +0 -330
- package/bin/control/backend.test.mjs +0 -346
- package/bin/control/base.test.mjs +0 -88
- package/bin/control/browser-client.mjs +0 -65
- package/bin/control/browser-wire.mjs +0 -41
- package/bin/control/browser-wire.test.mjs +0 -96
- package/bin/control/build-cache.test.mjs +0 -270
- package/bin/control/build-key-refusals.test.mjs +0 -138
- package/bin/control/build-key.test.mjs +0 -417
- package/bin/control/build-layout.test.mjs +0 -357
- package/bin/control/commands-stack.mjs +0 -297
- package/bin/control/commands-verify.mjs +0 -157
- package/bin/control/consumer-install.test.mjs +0 -86
- package/bin/control/dashboard.test.mjs +0 -102
- package/bin/control/doctor.mjs +0 -346
- package/bin/control/e2e-run.mjs +0 -61
- package/bin/control/e2e-suite.test.mjs +0 -174
- package/bin/control/e2e.mjs +0 -178
- package/bin/control/forwarder.test.mjs +0 -267
- package/bin/control/frontend-check.mjs +0 -55
- package/bin/control/frontend-mode.test.mjs +0 -24
- package/bin/control/frontend-workspace.test.mjs +0 -133
- package/bin/control/helpers/env.mjs +0 -21
- package/bin/control/helpers/ephemeral-range.mjs +0 -18
- package/bin/control/helpers/evidence.mjs +0 -13
- package/bin/control/helpers/fake-run.mjs +0 -368
- package/bin/control/helpers/key-fixture.mjs +0 -85
- package/bin/control/helpers/narrow-range.mjs +0 -35
- package/bin/control/helpers/pids.mjs +0 -37
- package/bin/control/helpers/repo.mjs +0 -13
- package/bin/control/helpers/tree.mjs +0 -40
- package/bin/control/identity.test.mjs +0 -166
- package/bin/control/journey-judge.test.mjs +0 -106
- package/bin/control/journey.test.mjs +0 -392
- package/bin/control/json.test.mjs +0 -130
- package/bin/control/mail.test.mjs +0 -55
- package/bin/control/module-root.test.mjs +0 -69
- package/bin/control/mongo-server.test.mjs +0 -136
- package/bin/control/mongo.test.mjs +0 -298
- package/bin/control/namespaces.test.mjs +0 -263
- package/bin/control/options.mjs +0 -36
- package/bin/control/pid-guard.test.mjs +0 -202
- package/bin/control/pid-reuse.test.mjs +0 -278
- package/bin/control/processes.test.mjs +0 -289
- package/bin/control/renderer.test.mjs +0 -268
- package/bin/control/run-ports.test.mjs +0 -141
- package/bin/control/run-state.test.mjs +0 -171
- package/bin/control/tab.test.mjs +0 -444
- package/bin/control/timing.test.mjs +0 -186
- package/bin/control/verify/decode.mjs +0 -78
- package/bin/control/verify/decode.test.mjs +0 -123
- package/bin/control/verify/doors.mjs +0 -44
- package/bin/control/verify/doors.test.mjs +0 -87
- package/bin/control/verify/formal.mjs +0 -77
- package/bin/control/verify/formal.test.mjs +0 -94
- package/bin/control/verify/map.mjs +0 -236
- package/bin/control/verify/map.test.mjs +0 -212
- package/bin/control/verify/skill.mjs +0 -160
- package/bin/dms-control.mjs +0 -77
- package/dist/bin/control/browser-client.d.mts +0 -26
- package/dist/bin/control/browser-wire.d.mts +0 -4
- package/dist/bin/control/commands-stack.d.mts +0 -40
- package/dist/bin/control/doctor.d.mts +0 -18
- package/dist/bin/control/e2e-run.d.mts +0 -22
- package/dist/bin/control/e2e.d.mts +0 -47
- package/dist/bin/control/frontend-check.d.mts +0 -11
- package/dist/bin/control/options.d.mts +0 -95
- package/dist/bin/control/verify/decode.d.mts +0 -41
- package/dist/bin/control/verify/skill.d.mts +0 -69
- package/dist/bin/control/verify/types.d.mts +0 -106
- package/dist/mcp/tools/preview-blocks.d.ts +0 -1
- package/dist/mcp/tools/preview-blocks.js +0 -249
- package/dist/mcp/tools/preview-blocks.js.map +0 -1
- /package/dist/{bin/control → e2e}/build-cache.d.mts +0 -0
- /package/dist/{bin/control → e2e}/build-inputs.d.mts +0 -0
- /package/dist/{bin/control → e2e}/build-key.d.mts +0 -0
- /package/dist/{bin/control → e2e}/dashboard.d.mts +0 -0
- /package/dist/{bin/control → e2e}/database.d.mts +0 -0
- /package/dist/{bin/control → e2e}/failure.d.mts +0 -0
- /package/dist/{bin/control → e2e}/forwarder.d.mts +0 -0
- /package/dist/{bin/control → e2e}/git.d.mts +0 -0
- /package/dist/{bin/control → e2e}/mail.d.mts +0 -0
- /package/dist/{bin/control → e2e}/processes.d.mts +0 -0
- /package/dist/{bin/control → e2e}/run-copy.d.mts +0 -0
- /package/dist/{bin/control → e2e}/session.d.mts +0 -0
- /package/dist/{bin/control → e2e}/tab.d.mts +0 -0
- /package/{bin/control → e2e}/build-inputs.mjs +0 -0
- /package/{bin/control → e2e}/database.mjs +0 -0
- /package/{bin/control → e2e}/failure.mjs +0 -0
- /package/{bin/control → e2e}/forwarder.mjs +0 -0
- /package/{bin/control → e2e}/git.mjs +0 -0
- /package/{bin/control → e2e}/processes.mjs +0 -0
- /package/{bin/control → e2e}/run-copy.mjs +0 -0
- /package/{bin/control → e2e}/tab.mjs +0 -0
package/E2E.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# The e2e kit
|
|
2
2
|
|
|
3
|
-
`@antelopejs/dms/e2e`
|
|
3
|
+
`@antelopejs/dms/e2e` is a Playwright setup for a DMS repository. The global setup of its config prepares the playground and starts one run for the whole invocation: a copy of the playground on free ports, its own MongoDB, a mail sink and the built dashboard. It stops the run after the last test. A spec is ordinary Playwright: it imports `test` and `expect` from the kit, and its fixtures give it a fresh database, an administrator and the run's dashboard as `baseURL`. `registerJourneys()` turns the journeys of `e2e/journeys/` into tests on the same fixtures.
|
|
4
4
|
|
|
5
5
|
## Configure a suite
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ import { e2eConfig } from "@antelopejs/dms/e2e";
|
|
|
12
12
|
export default e2eConfig();
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
`e2e/journeys.spec.ts`:
|
|
15
|
+
`e2e/zz-journeys.spec.ts`:
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
18
|
import { registerJourneys } from "@antelopejs/dms/e2e";
|
|
@@ -20,26 +20,117 @@ import { registerJourneys } from "@antelopejs/dms/e2e";
|
|
|
20
20
|
await registerJourneys();
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
`
|
|
23
|
+
`e2e/journeys.config.ts` declares the suite's run and its journeys:
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
```ts
|
|
26
|
+
import type { JourneysConfig } from "@antelopejs/dms/e2e";
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
playground: "packages/dms/playground",
|
|
30
|
+
prepare: [
|
|
31
|
+
["pnpm", "install", "--frozen-lockfile", "--prefer-offline", "--ignore-scripts"],
|
|
32
|
+
["pnpm", "--dir", "packages/dms", "build"],
|
|
33
|
+
["pnpm", "--dir", "packages/dms/playground", "build"],
|
|
34
|
+
],
|
|
35
|
+
smoke: "smoke",
|
|
36
|
+
} satisfies JourneysConfig;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
- `playground`: the playground folder, relative to the repository root, or absolute for a playground in another checkout.
|
|
40
|
+
- `renderer`: the built `@antelopejs/dms-frontend` checkout the run serves, for the repository that is the renderer. Without it, the playground's installed one.
|
|
41
|
+
- `prepare`: the install and build commands the global setup runs before the run starts.
|
|
42
|
+
- `smoke`: the feature whose journeys run first.
|
|
43
|
+
|
|
44
|
+
Each `*.mjs` file of `e2e/journeys/` is a feature, named after the file, and exports its `journeys`. The helpers they import live in subfolders or outside `e2e/journeys/`.
|
|
45
|
+
|
|
46
|
+
`e2eConfig` and `startRun` of `@antelopejs/dms/e2e/run` take these options:
|
|
47
|
+
|
|
48
|
+
- `config`: a journeys config file relative to the repository root, whose journeys are the `*.mjs` files of `journeys/` beside it, for a second suite (`e2eConfig({ config: "e2e/builder/journeys.config.ts" })`). It defaults to `e2e/journeys.config.ts`.
|
|
49
|
+
- `frontend: "dev"`: the run serves the dashboard with `ajs dms dev`, and the suite runs only the journeys that set `frontend: "dev"`. A suite without it serves a build and leaves those journeys out. Its test output and report folders end in `-dev`.
|
|
27
50
|
|
|
28
51
|
`registerJourneys()` reads both from the config that loaded it.
|
|
29
52
|
|
|
53
|
+
The tests of a suite run one at a time against its run, the files in alphabetical order. `registerJourneys()` registers the journeys of the config's `smoke` feature first, then the other features in alphabetical order, then every journey marked `last`, so `--grep @smoke` runs the `smoke` journey before the other journeys. Name the journeys file so that it sorts after the specs (`zz-journeys.spec.ts`): a journey marked `last` changes the playground for the backends that follow, and a spec that sorts after it cannot start its backend. `--shard=i/N` splits a suite across machines, each with a run of its own.
|
|
54
|
+
|
|
55
|
+
## Write a spec
|
|
56
|
+
|
|
57
|
+
`e2e/members.spec.ts`:
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
import { expect, test } from "@antelopejs/dms/e2e";
|
|
61
|
+
|
|
62
|
+
test("the administrator opens the members page", async ({ adminPage }) => {
|
|
63
|
+
await adminPage.goto("/settings/workspace/members");
|
|
64
|
+
await expect(adminPage.getByRole("heading", { name: "Members", exact: true })).toBeVisible();
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
The fixtures:
|
|
69
|
+
|
|
70
|
+
- `run`: the run of the global setup, shared by a worker: its `webUrl`, `apiUrl`, `accounts` and `evidence` folder.
|
|
71
|
+
- `baseURL`: the run's dashboard, so `page.goto("/settings")` opens it.
|
|
72
|
+
- `dms`: the test's journey context. Before the test, it prepares the run as a journey's run does: a fresh database with a backend of its own, and an onboarded administrator. The test drives the run through it: `dms.tab(account)`, `dms.api(label, request)`, `dms.mail(accept)`, `dms.email(name)`, `dms.unique(prefix)` and `dms.verify(label, checks)`. After the test, it closes the tabs, judges the `verify` steps, and replays them into the report. A failing step attaches its screenshot and ARIA snapshot, and a failed test attaches the backend's log. The evidence goes to `<run>/evidence/<feature>/<test>/`. A test whose preparation fails does not run.
|
|
73
|
+
- `adminPage`: a tab of `dms` that the administrator signed in on.
|
|
74
|
+
- `dmsOptions`: how `dms` prepares the test, with the fields of a journey: `test.use({ dmsOptions: { database: "shared", onboard: false, backend: "dev", standby: false, knownFailures: { … } } })`.
|
|
75
|
+
|
|
76
|
+
Playwright's own `page` opens the run's dashboard on the database the previous test left. A test that needs a fresh database uses `dms` or `adminPage`.
|
|
77
|
+
|
|
30
78
|
## Journey fields for the suite
|
|
31
79
|
|
|
32
80
|
- `tag`: Playwright tags, such as `@smoke`.
|
|
33
81
|
- `knownFailures`: the name of each check that fails today, mapped to the finding that makes it fail. A listed check that fails does not fail the journey. A listed check that passes does.
|
|
34
82
|
- `last: true`: runs the journey after all others, for a journey that changes the run's playground for later backends.
|
|
35
|
-
- `frontend: "dev"`: the journey needs the development dashboard, for UI that only `import.meta.env.DEV` renders. `
|
|
83
|
+
- `frontend: "dev"`: the journey needs the development dashboard, for UI that only `import.meta.env.DEV` renders. A suite without `frontend: "dev"` leaves it out.
|
|
84
|
+
- `database`, `onboard`, `backend` and `standby`: how the run is prepared for the journey, as `dmsOptions` does for a spec.
|
|
85
|
+
|
|
86
|
+
## Start a run from node:test
|
|
87
|
+
|
|
88
|
+
`@antelopejs/dms/e2e/run` starts the same run as the global setup, for a test runner without Playwright. It loads no `@playwright/test`. `startRun` takes the options of `e2eConfig` plus `prepare`, which runs the config's `prepare` commands unless `DMS_E2E_PREBUILT=1`. It returns the ready `run` and `stop`, which stops every process the run started. `onboard(run, {})` creates and signs in the administrator, and `apiRequest(run, { method, path, body, as })` calls the backend as `admin`, another account of `run.accounts`, or `anon`. Each request and its answer go to the run's `evidence/` folder.
|
|
89
|
+
|
|
90
|
+
`test/cli.test.mjs`:
|
|
91
|
+
|
|
92
|
+
```js
|
|
93
|
+
import assert from "node:assert/strict";
|
|
94
|
+
import { after, before, test } from "node:test";
|
|
95
|
+
import { apiRequest, onboard, startRun } from "@antelopejs/dms/e2e/run";
|
|
96
|
+
|
|
97
|
+
/** @type {Awaited<ReturnType<typeof startRun>>} */
|
|
98
|
+
let started;
|
|
99
|
+
before(async () => {
|
|
100
|
+
started = await startRun();
|
|
101
|
+
await onboard(started.run, {});
|
|
102
|
+
});
|
|
103
|
+
after(() => started?.stop());
|
|
104
|
+
|
|
105
|
+
test("the administrator reads the onboarding state", async () => {
|
|
106
|
+
const answer = await apiRequest(started.run, {
|
|
107
|
+
method: "GET",
|
|
108
|
+
path: "/api/onboarding/informations",
|
|
109
|
+
as: "admin",
|
|
110
|
+
});
|
|
111
|
+
assert.deepEqual(answer.body, { has_onboarded: true });
|
|
112
|
+
});
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
`run.apiUrl` and `run.webUrl` are the backend's and the dashboard's addresses, for a CLI or an HTTP client of the test's own.
|
|
116
|
+
|
|
117
|
+
## Environment
|
|
118
|
+
|
|
119
|
+
- `DMS_E2E_PREBUILT=1`: the global setup and `startRun` skip the config's `prepare` commands (install and build), for a checkout an earlier run prepared.
|
|
120
|
+
- `DMS_E2E_RUN=<run folder>`: the tests drive that run, such as one `startRun` started, and the suite stops nothing. A run whose dashboard is not served the way the suite asks is refused.
|
|
121
|
+
- `DMS_E2E_RUNS`: the folder the run folders go to.
|
|
122
|
+
- `DMS_E2E_NO_STANDBY=1`: each fresh database's backend starts when the test needs it, rather than one ahead.
|
|
36
123
|
|
|
37
124
|
## Port recipe
|
|
38
125
|
|
|
39
126
|
1. Pin `@antelopejs/dms` to the exact preview that `next` publishes (dist-tag `next`). A range such as `>=0.20.2 <0.21.0` does not match a prerelease. Add `@playwright/test` `~1.65.0` as a devDependency, on the line of the `playwright-core` that `@antelopejs/dms` resolves.
|
|
40
|
-
2. Add the
|
|
41
|
-
3. Move the skill's `journeys/` folder
|
|
42
|
-
4. Give each journey that needs the development dashboard `frontend: "dev"`, and add `e2e/playwright.dev.config.ts` with `e2eConfig({ frontend: "dev" })
|
|
127
|
+
2. Add the three files above, an `e2e/tsconfig.json` (`allowJs`, `noEmit`, `nodenext`), and the script `"e2e": "playwright test -c e2e"`.
|
|
128
|
+
3. Move the skill's `journeys/` folder to `e2e/journeys/`, with the helpers it imports in subfolders or beside it in `e2e/`.
|
|
129
|
+
4. Give each journey that needs the development dashboard `frontend: "dev"`, and add `e2e/playwright.dev.config.ts` with `e2eConfig({ frontend: "dev" })`. Run it with `playwright test -c e2e/playwright.dev.config.ts`.
|
|
43
130
|
5. A journey that fails today because of a product finding gets `knownFailures`, never a skip. A journey that changes the run's playground for later backends gets `last: true`.
|
|
44
131
|
6. Tag `@smoke` on about 5 fast journeys, the `smoke` journey first, none that needs `backend: "watch"`, `withBaseBackend`, `standby: false` or `frontend: "dev"`.
|
|
45
|
-
7. Copy the `e2e` and `e2e-report` jobs of AntelopeJS/dms's `ci.yml` and the `e2e` line of its `ubuntu` gate
|
|
132
|
+
7. Copy the `e2e` and `e2e-report` jobs of AntelopeJS/dms's `ci.yml` and the `e2e` line of its `ubuntu` gate. Nothing runs on a draft or the none tier. A pull request runs `--grep @smoke`. The merge queue, a manual run, a pull request labelled `ci:full` and the nightly schedule run the whole suite with `--shard=i/N --add-reporter=blob`, which keeps the config's reporters, with N chosen so that one shard stays under about 30 minutes, and `e2e-report` merges the shards' blob reports. A dev config runs in the same job, after the build config.
|
|
133
|
+
|
|
134
|
+
## Move off verify.config.ts
|
|
135
|
+
|
|
136
|
+
The kit reads only `e2e/journeys.config.ts`, or the file `config` names. A suite whose config is still a verify skill's `verify.config.ts` moves before it upgrades: copy its `playground`, `renderer`, `prepare` and `smoke` into `e2e/journeys.config.ts`, move its journeys to `e2e/journeys/` and a playground that lives in the skill folder to `e2e/`, and drop `skill` from `e2eConfig`, which now refuses it.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<picture>
|
|
4
4
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/AntelopeJS/dms/main/packages/dms/frontend-vue/layers/dms-layout/public/images/antelope-logo/dark.svg">
|
|
5
|
-
<img alt="
|
|
5
|
+
<img alt="AntelopeJS DMS" src="https://raw.githubusercontent.com/AntelopeJS/dms/main/packages/dms/frontend-vue/layers/dms-layout/public/images/antelope-logo/light.svg" data-illustration height="72">
|
|
6
6
|
</picture>
|
|
7
7
|
|
|
8
8
|
# `@antelopejs/dms`
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
- Declares pages as TypeScript classes: forms, tables, charts and layouts are blocks the shared Vue renderer draws, with no Vue to write for standard screens.
|
|
26
26
|
- Handles sign-in, members, roles and permissions down to each block, multi-tenancy and a SaaS mode.
|
|
27
27
|
- Manages data through data controllers and table views, with file uploads, notifications and realtime updates.
|
|
28
|
-
- Grows with installable modules: an AI assistant
|
|
28
|
+
- Grows with installable modules: an AI assistant with live mockups, database and API consoles, automations, SaaS billing, translations, mailing, marketing analytics and a media library.
|
|
29
29
|
- Ships Claude Code skills (`dms`, `dms-project`, `dms-auth`, `dms-module`) so coding agents use its API the way the DMS expects. The `antelopejs` plugin adds the page-building skills.
|
|
30
30
|
|
|
31
31
|
Its public contracts live in a separate package, [`@antelopejs/interface-dms`](https://www.npmjs.com/package/@antelopejs/interface-dms): modules import them from there, never from this runtime.
|
|
@@ -110,7 +110,7 @@ Each DMS release declares the renderer releases it runs on in `engines["@antelop
|
|
|
110
110
|
|
|
111
111
|
The runtime guides live in [`docs/`](./docs). The canonical contract reference belongs to [`@antelopejs/interface-dms`](../interface-dms/docs/index.md), not this runtime package.
|
|
112
112
|
|
|
113
|
-
The package ships the core Claude Code skills (`dms`, `dms-auth`, `dms-module`, `dms-project`) in [`skills/`](https://github.com/AntelopeJS/dms/tree/main/packages/dms/skills), declared under `antelopeJs.skills`; [Install the plugin](https://dms.antelopejs.com/docs/ai-and-claude-code/install) to use them. The plugin itself ships `antelopejs:dms-pages` and `antelopejs:dms-best-practices`.
|
|
113
|
+
The package ships the core Claude Code skills (`dms`, `dms-auth`, `dms-module`, `dms-project`) in [`skills/`](https://github.com/AntelopeJS/dms/tree/main/packages/dms/skills), declared under `antelopeJs.skills`; [Install the plugin](https://dms.antelopejs.com/docs/ai-and-claude-code/coding-agent/install) to use them. The plugin itself ships `antelopejs:dms-pages` and `antelopejs:dms-best-practices`.
|
|
114
114
|
|
|
115
115
|
## Contributing
|
|
116
116
|
|
|
@@ -163,6 +163,25 @@
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
|
+
"modules": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"maxItems": 50,
|
|
169
|
+
"uniqueItems": true,
|
|
170
|
+
"description": "The DMS modules the app needs, by their ids in the module store catalog. Building the mockup installs each one (`ajs project modules add <package>`), and the viewer lists them.",
|
|
171
|
+
"items": {
|
|
172
|
+
"enum": [
|
|
173
|
+
"ai",
|
|
174
|
+
"api",
|
|
175
|
+
"automation",
|
|
176
|
+
"database",
|
|
177
|
+
"lang",
|
|
178
|
+
"mailing",
|
|
179
|
+
"marketing",
|
|
180
|
+
"media",
|
|
181
|
+
"saas"
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
166
185
|
"pages": {
|
|
167
186
|
"type": "array",
|
|
168
187
|
"maxItems": 50,
|
|
@@ -2209,6 +2228,24 @@
|
|
|
2209
2228
|
"numeric"
|
|
2210
2229
|
]
|
|
2211
2230
|
},
|
|
2231
|
+
"xAxis": {
|
|
2232
|
+
"type": "object",
|
|
2233
|
+
"properties": {
|
|
2234
|
+
"tickAmount": {
|
|
2235
|
+
"type": "number"
|
|
2236
|
+
},
|
|
2237
|
+
"rotate": {
|
|
2238
|
+
"type": "number"
|
|
2239
|
+
},
|
|
2240
|
+
"hideOverlappingLabels": {
|
|
2241
|
+
"type": "boolean"
|
|
2242
|
+
},
|
|
2243
|
+
"datetimeFormat": {
|
|
2244
|
+
"type": "string",
|
|
2245
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
},
|
|
2212
2249
|
"fillOpacity": {
|
|
2213
2250
|
"type": "number"
|
|
2214
2251
|
},
|
|
@@ -2587,6 +2624,24 @@
|
|
|
2587
2624
|
"numeric"
|
|
2588
2625
|
]
|
|
2589
2626
|
},
|
|
2627
|
+
"xAxis": {
|
|
2628
|
+
"type": "object",
|
|
2629
|
+
"properties": {
|
|
2630
|
+
"tickAmount": {
|
|
2631
|
+
"type": "number"
|
|
2632
|
+
},
|
|
2633
|
+
"rotate": {
|
|
2634
|
+
"type": "number"
|
|
2635
|
+
},
|
|
2636
|
+
"hideOverlappingLabels": {
|
|
2637
|
+
"type": "boolean"
|
|
2638
|
+
},
|
|
2639
|
+
"datetimeFormat": {
|
|
2640
|
+
"type": "string",
|
|
2641
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
},
|
|
2590
2645
|
"stacked": {
|
|
2591
2646
|
"type": "boolean"
|
|
2592
2647
|
},
|
|
@@ -2975,6 +3030,24 @@
|
|
|
2975
3030
|
"datetime",
|
|
2976
3031
|
"numeric"
|
|
2977
3032
|
]
|
|
3033
|
+
},
|
|
3034
|
+
"xAxis": {
|
|
3035
|
+
"type": "object",
|
|
3036
|
+
"properties": {
|
|
3037
|
+
"tickAmount": {
|
|
3038
|
+
"type": "number"
|
|
3039
|
+
},
|
|
3040
|
+
"rotate": {
|
|
3041
|
+
"type": "number"
|
|
3042
|
+
},
|
|
3043
|
+
"hideOverlappingLabels": {
|
|
3044
|
+
"type": "boolean"
|
|
3045
|
+
},
|
|
3046
|
+
"datetimeFormat": {
|
|
3047
|
+
"type": "string",
|
|
3048
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
2978
3051
|
}
|
|
2979
3052
|
}
|
|
2980
3053
|
},
|
|
@@ -3461,6 +3534,24 @@
|
|
|
3461
3534
|
"numeric"
|
|
3462
3535
|
]
|
|
3463
3536
|
},
|
|
3537
|
+
"xAxis": {
|
|
3538
|
+
"type": "object",
|
|
3539
|
+
"properties": {
|
|
3540
|
+
"tickAmount": {
|
|
3541
|
+
"type": "number"
|
|
3542
|
+
},
|
|
3543
|
+
"rotate": {
|
|
3544
|
+
"type": "number"
|
|
3545
|
+
},
|
|
3546
|
+
"hideOverlappingLabels": {
|
|
3547
|
+
"type": "boolean"
|
|
3548
|
+
},
|
|
3549
|
+
"datetimeFormat": {
|
|
3550
|
+
"type": "string",
|
|
3551
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
},
|
|
3464
3555
|
"stacked": {
|
|
3465
3556
|
"type": "boolean"
|
|
3466
3557
|
},
|
|
@@ -4313,6 +4404,24 @@
|
|
|
4313
4404
|
"numeric"
|
|
4314
4405
|
]
|
|
4315
4406
|
},
|
|
4407
|
+
"xAxis": {
|
|
4408
|
+
"type": "object",
|
|
4409
|
+
"properties": {
|
|
4410
|
+
"tickAmount": {
|
|
4411
|
+
"type": "number"
|
|
4412
|
+
},
|
|
4413
|
+
"rotate": {
|
|
4414
|
+
"type": "number"
|
|
4415
|
+
},
|
|
4416
|
+
"hideOverlappingLabels": {
|
|
4417
|
+
"type": "boolean"
|
|
4418
|
+
},
|
|
4419
|
+
"datetimeFormat": {
|
|
4420
|
+
"type": "string",
|
|
4421
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
},
|
|
4316
4425
|
"strokeWidth": {
|
|
4317
4426
|
"type": "number"
|
|
4318
4427
|
}
|
|
@@ -4688,6 +4797,24 @@
|
|
|
4688
4797
|
"numeric"
|
|
4689
4798
|
]
|
|
4690
4799
|
},
|
|
4800
|
+
"xAxis": {
|
|
4801
|
+
"type": "object",
|
|
4802
|
+
"properties": {
|
|
4803
|
+
"tickAmount": {
|
|
4804
|
+
"type": "number"
|
|
4805
|
+
},
|
|
4806
|
+
"rotate": {
|
|
4807
|
+
"type": "number"
|
|
4808
|
+
},
|
|
4809
|
+
"hideOverlappingLabels": {
|
|
4810
|
+
"type": "boolean"
|
|
4811
|
+
},
|
|
4812
|
+
"datetimeFormat": {
|
|
4813
|
+
"type": "string",
|
|
4814
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
4815
|
+
}
|
|
4816
|
+
}
|
|
4817
|
+
},
|
|
4691
4818
|
"seriesDefs": {
|
|
4692
4819
|
"type": "array",
|
|
4693
4820
|
"items": {
|
|
@@ -5247,6 +5374,24 @@
|
|
|
5247
5374
|
"numeric"
|
|
5248
5375
|
]
|
|
5249
5376
|
},
|
|
5377
|
+
"xAxis": {
|
|
5378
|
+
"type": "object",
|
|
5379
|
+
"properties": {
|
|
5380
|
+
"tickAmount": {
|
|
5381
|
+
"type": "number"
|
|
5382
|
+
},
|
|
5383
|
+
"rotate": {
|
|
5384
|
+
"type": "number"
|
|
5385
|
+
},
|
|
5386
|
+
"hideOverlappingLabels": {
|
|
5387
|
+
"type": "boolean"
|
|
5388
|
+
},
|
|
5389
|
+
"datetimeFormat": {
|
|
5390
|
+
"type": "string",
|
|
5391
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
5392
|
+
}
|
|
5393
|
+
}
|
|
5394
|
+
},
|
|
5250
5395
|
"fillOpacity": {
|
|
5251
5396
|
"type": "number"
|
|
5252
5397
|
}
|
|
@@ -5788,6 +5933,24 @@
|
|
|
5788
5933
|
"numeric"
|
|
5789
5934
|
]
|
|
5790
5935
|
},
|
|
5936
|
+
"xAxis": {
|
|
5937
|
+
"type": "object",
|
|
5938
|
+
"properties": {
|
|
5939
|
+
"tickAmount": {
|
|
5940
|
+
"type": "number"
|
|
5941
|
+
},
|
|
5942
|
+
"rotate": {
|
|
5943
|
+
"type": "number"
|
|
5944
|
+
},
|
|
5945
|
+
"hideOverlappingLabels": {
|
|
5946
|
+
"type": "boolean"
|
|
5947
|
+
},
|
|
5948
|
+
"datetimeFormat": {
|
|
5949
|
+
"type": "string",
|
|
5950
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
5951
|
+
}
|
|
5952
|
+
}
|
|
5953
|
+
},
|
|
5791
5954
|
"fillOpacity": {
|
|
5792
5955
|
"type": "number"
|
|
5793
5956
|
}
|
|
@@ -6163,6 +6326,24 @@
|
|
|
6163
6326
|
"numeric"
|
|
6164
6327
|
]
|
|
6165
6328
|
},
|
|
6329
|
+
"xAxis": {
|
|
6330
|
+
"type": "object",
|
|
6331
|
+
"properties": {
|
|
6332
|
+
"tickAmount": {
|
|
6333
|
+
"type": "number"
|
|
6334
|
+
},
|
|
6335
|
+
"rotate": {
|
|
6336
|
+
"type": "number"
|
|
6337
|
+
},
|
|
6338
|
+
"hideOverlappingLabels": {
|
|
6339
|
+
"type": "boolean"
|
|
6340
|
+
},
|
|
6341
|
+
"datetimeFormat": {
|
|
6342
|
+
"type": "string",
|
|
6343
|
+
"description": "ApexCharts datetime tokens, for example \"dd MMM\". Applies to a datetime X axis (`xaxisType: \"datetime\"`) on a vertical chart; a horizontal ChartBar always uses a category axis."
|
|
6344
|
+
}
|
|
6345
|
+
}
|
|
6346
|
+
},
|
|
6166
6347
|
"pointSize": {
|
|
6167
6348
|
"type": "number"
|
|
6168
6349
|
},
|
|
@@ -68,7 +68,9 @@ export interface BuilderConfig {
|
|
|
68
68
|
projectRoot?: string;
|
|
69
69
|
theme?: BuilderThemeConfig;
|
|
70
70
|
}
|
|
71
|
-
export type DmsHtmlRenderConfig = Omit<HtmlRenderConfig, "renderEndpoint"> & Partial<Pick<HtmlRenderConfig, "renderEndpoint"
|
|
71
|
+
export type DmsHtmlRenderConfig = Omit<HtmlRenderConfig, "renderEndpoint"> & Partial<Pick<HtmlRenderConfig, "renderEndpoint">> & {
|
|
72
|
+
renderTimeout?: number;
|
|
73
|
+
};
|
|
72
74
|
export interface Config {
|
|
73
75
|
auth?: AuthConfig;
|
|
74
76
|
htmlRender?: DmsHtmlRenderConfig;
|
|
@@ -103,6 +105,7 @@ export declare function isBuilderEnabled(dev?: boolean): boolean;
|
|
|
103
105
|
export declare function getAuthConfig(): AuthConfig;
|
|
104
106
|
export declare function getHtmlRenderConfig(): DmsHtmlRenderConfig;
|
|
105
107
|
export declare function getHtmlRenderEndpoint(): string | undefined;
|
|
108
|
+
export declare function getHtmlRenderTimeout(): number;
|
|
106
109
|
export declare function getUploadsConfig(): UploadsConfig;
|
|
107
110
|
export declare function getFrontendConfig(): FrontendConfig;
|
|
108
111
|
export declare function getStoreConfig(): StoreConfig;
|
|
@@ -14,6 +14,7 @@ exports.isBuilderEnabled = isBuilderEnabled;
|
|
|
14
14
|
exports.getAuthConfig = getAuthConfig;
|
|
15
15
|
exports.getHtmlRenderConfig = getHtmlRenderConfig;
|
|
16
16
|
exports.getHtmlRenderEndpoint = getHtmlRenderEndpoint;
|
|
17
|
+
exports.getHtmlRenderTimeout = getHtmlRenderTimeout;
|
|
17
18
|
exports.getUploadsConfig = getUploadsConfig;
|
|
18
19
|
exports.getFrontendConfig = getFrontendConfig;
|
|
19
20
|
exports.getStoreConfig = getStoreConfig;
|
|
@@ -37,6 +38,7 @@ let globalHtmlRenderConfig = {
|
|
|
37
38
|
serviceTokenLifetime: SERVICE_TOKEN_LIFETIME_MINUTES * time_1.MILLISECONDS_PER_MINUTE,
|
|
38
39
|
};
|
|
39
40
|
const HTML_RENDER_PATH = "/api/html/render";
|
|
41
|
+
const DEFAULT_HTML_RENDER_TIMEOUT_MS = 10_000;
|
|
40
42
|
const BYTES_IN_KILOBYTE = 1024;
|
|
41
43
|
const KILOBYTES_IN_MEGABYTE = 1024;
|
|
42
44
|
const DEFAULT_MAX_UPLOAD_MEGABYTES = 100;
|
|
@@ -108,6 +110,9 @@ function getHtmlRenderEndpoint() {
|
|
|
108
110
|
const clientBaseUrl = getClientBaseUrl();
|
|
109
111
|
return clientBaseUrl && new URL(HTML_RENDER_PATH, clientBaseUrl).href;
|
|
110
112
|
}
|
|
113
|
+
function getHtmlRenderTimeout() {
|
|
114
|
+
return globalHtmlRenderConfig.renderTimeout ?? DEFAULT_HTML_RENDER_TIMEOUT_MS;
|
|
115
|
+
}
|
|
111
116
|
function getUploadsConfig() {
|
|
112
117
|
return globalUploadsConfig;
|
|
113
118
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/config/internal/state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/config/internal/state.ts"],"names":[],"mappings":"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"}
|
package/dist/db/setup-token.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function instanceHasUsers(): Promise<boolean>;
|
|
2
|
-
export declare function announceSetupToken(): Promise<void>;
|
|
2
|
+
export declare function announceSetupToken(dev: boolean): Promise<void>;
|
package/dist/db/setup-token.js
CHANGED
|
@@ -13,7 +13,7 @@ async function instanceHasUsers() {
|
|
|
13
13
|
const users = await (0, interface_database_decorators_1.GetModel)(db_1.UserModel).table.slice(0, 1).run();
|
|
14
14
|
return users.length > 0;
|
|
15
15
|
}
|
|
16
|
-
async function announceSetupToken() {
|
|
16
|
+
async function announceSetupToken(dev) {
|
|
17
17
|
const tokens = (0, interface_database_decorators_1.GetModel)(models_1.SetupTokenModel);
|
|
18
18
|
if (await instanceHasUsers()) {
|
|
19
19
|
await tokens.clear();
|
|
@@ -22,7 +22,7 @@ async function announceSetupToken() {
|
|
|
22
22
|
const configured = (0, startup_config_1.resolveConfiguredSetupToken)();
|
|
23
23
|
const token = await tokens.ensure(configured);
|
|
24
24
|
const address = `${(0, config_1.getConfig)().clientBaseUrl ?? ""}${ONBOARDING_PATH}`;
|
|
25
|
-
const shown = configured ? "<DMS_SETUP_TOKEN>"
|
|
25
|
+
const shown = dev && !configured ? token : "<DMS_SETUP_TOKEN>";
|
|
26
26
|
logging_1.Logging.Warn(`[DMS] No owner exists yet. To create it, open ${address}?token=${shown}`);
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=setup-token.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-token.js","sourceRoot":"","sources":["../../src/db/setup-token.ts"],"names":[],"mappings":";;;;AAAA,gEAA6D;AAC7D,6FAAqE;AACrE,0DAA8D;AAC9D,sCAAsC;AACtC,6DAAuE;AACvE,qCAA2C;AAE3C,MAAM,eAAe,GAAG,aAAa,CAAC;AAG/B,KAAK;IACV,MAAM,KAAK,GAAG,MAAM,IAAA,wCAAQ,EAAC,cAAS,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAChE,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1B,CAAC;
|
|
1
|
+
{"version":3,"file":"setup-token.js","sourceRoot":"","sources":["../../src/db/setup-token.ts"],"names":[],"mappings":";;;;AAAA,gEAA6D;AAC7D,6FAAqE;AACrE,0DAA8D;AAC9D,sCAAsC;AACtC,6DAAuE;AACvE,qCAA2C;AAE3C,MAAM,eAAe,GAAG,aAAa,CAAC;AAG/B,KAAK;IACV,MAAM,KAAK,GAAG,MAAM,IAAA,wCAAQ,EAAC,cAAS,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAChE,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1B,CAAC;AAYM,KAAK,6BAA6B,GAAY;IACnD,MAAM,MAAM,GAAG,IAAA,wCAAQ,EAAC,wBAAe,CAAC,CAAC;IACzC,IAAI,MAAM,gBAAgB,EAAE,EAAE,CAAC;QAC7B,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO;IACT,CAAC;IAED,MAAM,UAAU,GAAG,IAAA,4CAA2B,GAAE,CAAC;IACjD,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAG,GAAG,IAAA,kBAAS,GAAE,CAAC,aAAa,IAAI,EAAE,GAAG,eAAe,EAAE,CAAC;IACvE,MAAM,KAAK,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAC/D,iBAAO,CAAC,IAAI,CACV,iDAAiD,OAAO,UAAU,KAAK,EAAE,CAC1E,CAAC;AACJ,CAAC"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
/** @typedef {import("./run-state.mjs").BackendRecord} BackendRecord */
|
|
3
3
|
/** @typedef {import("./run-state.mjs").BackendMode} BackendMode */
|
|
4
4
|
/**
|
|
5
|
-
* Refuses a run whose backend holds the API port itself: an
|
|
6
|
-
*
|
|
5
|
+
* Refuses a run whose backend holds the API port itself: an older e2e kit
|
|
6
|
+
* started it, with no forwarder to move the API between
|
|
7
7
|
* backends.
|
|
8
8
|
*
|
|
9
9
|
* @param {RunState} state The run
|
|
10
|
-
* @throws When an
|
|
10
|
+
* @throws When an older e2e kit started the run
|
|
11
11
|
*/
|
|
12
12
|
export function assertForwardedRun(state: RunState): void;
|
|
13
13
|
/**
|
|
@@ -44,7 +44,7 @@ export function restartBackend(state: RunState, build?: {
|
|
|
44
44
|
* @param {string} suffix What tells the database apart, such as `j003`
|
|
45
45
|
* @param {{ backend?: BackendMode, standby?: boolean }} [pins] How its backend runs, the run's mode by default, and whether a standby takes it and starts after it, true by default
|
|
46
46
|
* @returns {Promise<string>} The database now in use
|
|
47
|
-
* @throws When an
|
|
47
|
+
* @throws When an older e2e kit started the run, or a folder of the run's build is missing (a build runs), before it starts or stops anything
|
|
48
48
|
*/
|
|
49
49
|
export function freshDatabase(state: RunState, suffix: string, { backend: mode, standby }?: {
|
|
50
50
|
backend?: BackendMode;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A prepared worktree of the run's base ref, built once per commit under
|
|
3
|
-
* `~/.cache/dms-
|
|
3
|
+
* `~/.cache/dms-e2e/base/<sha>` with the journeys config's `prepare` commands.
|
|
4
4
|
* When the base ref has no playground folder, as in the change that adds
|
|
5
5
|
* it, the worktree gets a copy of the run's playground before `prepare`,
|
|
6
6
|
* and is built again on every call so the copy follows the run's.
|
|
7
7
|
*
|
|
8
8
|
* @param {import("./run-state.mjs").RunState} state The run
|
|
9
|
-
* @param {import("./
|
|
9
|
+
* @param {Pick<import("./journeys-config.mjs").SuiteConfig, "prepare">} config The journeys config
|
|
10
10
|
* @returns {{ sha: string, dir: string, playground: string }} The base commit, its worktree and its playground
|
|
11
11
|
*/
|
|
12
|
-
export function baseCheckout(state: import("./run-state.mjs").RunState,
|
|
12
|
+
export function baseCheckout(state: import("./run-state.mjs").RunState, config: Pick<import("./journeys-config.mjs").SuiteConfig, "prepare">): {
|
|
13
13
|
sha: string;
|
|
14
14
|
dir: string;
|
|
15
15
|
playground: string;
|
|
@@ -21,8 +21,8 @@ export function baseCheckout(state: import("./run-state.mjs").RunState, skill: i
|
|
|
21
21
|
* back with the head version after it.
|
|
22
22
|
*
|
|
23
23
|
* @param {import("./run-state.mjs").RunState} state The run
|
|
24
|
-
* @param {import("./
|
|
24
|
+
* @param {Pick<import("./journeys-config.mjs").SuiteConfig, "prepare">} config The journeys config, whose `prepare` builds the base
|
|
25
25
|
* @param {(sha: string) => Promise<void>} action What to do against the base backend
|
|
26
26
|
* @returns {Promise<string>} The base commit
|
|
27
27
|
*/
|
|
28
|
-
export function withBaseBackend(state: import("./run-state.mjs").RunState,
|
|
28
|
+
export function withBaseBackend(state: import("./run-state.mjs").RunState, config: Pick<import("./journeys-config.mjs").SuiteConfig, "prepare">, action: (sha: string) => Promise<void>): Promise<string>;
|
|
@@ -9,10 +9,10 @@ export function launchBrowser(from: string[]): Promise<Browser>;
|
|
|
9
9
|
* A new browser context: one per account, so cookies never leak between
|
|
10
10
|
* the users a journey plays.
|
|
11
11
|
*
|
|
12
|
-
* @param {Browser} browser The Playwright browser
|
|
12
|
+
* @param {Pick<Browser, "newContext">} browser The Playwright browser
|
|
13
13
|
* @returns {Promise<BrowserContext>} The context
|
|
14
14
|
*/
|
|
15
|
-
export function newContext(browser: Browser): Promise<BrowserContext>;
|
|
15
|
+
export function newContext(browser: Pick<Browser, "newContext">): Promise<BrowserContext>;
|
|
16
16
|
/**
|
|
17
17
|
* What an action targets: an ARIA role and accessible name, optionally
|
|
18
18
|
* inside another one (`within`), or the n-th of several matches.
|
|
@@ -103,27 +103,6 @@ export function signInThroughForm(page: Page, credentials: {
|
|
|
103
103
|
evidence: string;
|
|
104
104
|
};
|
|
105
105
|
}): Promise<Outcome>;
|
|
106
|
-
/**
|
|
107
|
-
* Decodes a posted request and answers it. A body that is no valid request
|
|
108
|
-
* is answered as a failed action, like any action that throws.
|
|
109
|
-
*
|
|
110
|
-
* @param {string} body What the client posted
|
|
111
|
-
* @param {(request: BrowserRequest) => Promise<Outcome>} handle Runs one action
|
|
112
|
-
* @returns {Promise<string>} The outcome as JSON
|
|
113
|
-
*/
|
|
114
|
-
export function answerRequest(body: string, handle: (request: BrowserRequest) => Promise<Outcome>): Promise<string>;
|
|
115
|
-
/**
|
|
116
|
-
* Serves the run's browser for `dms-control browser`: one context per
|
|
117
|
-
* account and one page per tab name, kept between commands, driven by JSON
|
|
118
|
-
* posted to a loopback port. A GET answers 200 once it listens. It exits
|
|
119
|
-
* when the browser closes, which Playwright does on SIGTERM.
|
|
120
|
-
*
|
|
121
|
-
* @param {string} dir The run folder
|
|
122
|
-
* @param {string[]} from Folders to resolve playwright-core from
|
|
123
|
-
* @param {number} port The loopback port
|
|
124
|
-
* @returns {Promise<void>} Resolves once listening
|
|
125
|
-
*/
|
|
126
|
-
export function serveBrowser(dir: string, from: string[], port: number): Promise<void>;
|
|
127
106
|
/** The action names `perform` accepts. */
|
|
128
107
|
export const ACTION_NAMES: string[];
|
|
129
108
|
/**
|
|
@@ -161,8 +140,3 @@ export type Action = {
|
|
|
161
140
|
state?: "attached" | "detached" | "visible" | "hidden";
|
|
162
141
|
timeoutMs?: number;
|
|
163
142
|
};
|
|
164
|
-
export type BrowserRequest = Omit<Action, "baseUrl"> & {
|
|
165
|
-
account: string;
|
|
166
|
-
tab: string;
|
|
167
|
-
folder: string;
|
|
168
|
-
};
|