@antelopejs/dms 0.21.3 → 0.21.4-next.1000.g005d1ab
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 +1 -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/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
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runs one browser action in the run's long-lived browser, starting it on
|
|
3
|
-
* first use. Each account has its own context and each tab name its own
|
|
4
|
-
* page, both kept between commands. The action, the URL and the ARIA
|
|
5
|
-
* snapshot go to `<run>/evidence/browser/NN-<label>/`, with a screenshot when
|
|
6
|
-
* the action failed or is `screenshot`.
|
|
7
|
-
*
|
|
8
|
-
* @param {import("./run-state.mjs").RunState} state The run
|
|
9
|
-
* @param {Omit<import("./browser.mjs").BrowserRequest, "folder">} request The action: `do`, `account`, `tab`, and the action's target, value, key or path
|
|
10
|
-
* @param {string} label What the step does
|
|
11
|
-
* @returns {Promise<{ ok: boolean, url: string, error: string | null, aria: string, folder: string }>} The outcome
|
|
12
|
-
*/
|
|
13
|
-
export function browserCommand(state: import("./run-state.mjs").RunState, request: Omit<import("./browser.mjs").BrowserRequest, "folder">, label: string): Promise<{
|
|
14
|
-
ok: boolean;
|
|
15
|
-
url: string;
|
|
16
|
-
error: string | null;
|
|
17
|
-
aria: string;
|
|
18
|
-
folder: string;
|
|
19
|
-
}>;
|
|
20
|
-
/**
|
|
21
|
-
* @param {number} port The browser server's port
|
|
22
|
-
* @param {import("./browser.mjs").BrowserRequest} request The action
|
|
23
|
-
* @returns {Promise<import("./browser.mjs").Outcome>} The server's answer
|
|
24
|
-
* @throws When the answer is not an outcome
|
|
25
|
-
*/
|
|
26
|
-
export function postAction(port: number, request: import("./browser.mjs").BrowserRequest): Promise<import("./browser.mjs").Outcome>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** @type {import("./json.mjs").Guard<import("./browser.mjs").BrowserRequest>} One browser action, as the client posts it */
|
|
2
|
-
export const isBrowserRequest: import("./json.mjs").Guard<import("./browser.mjs").BrowserRequest>;
|
|
3
|
-
/** @type {import("./json.mjs").Guard<import("./browser.mjs").Outcome>} What the server answers for one action */
|
|
4
|
-
export const isOutcome: import("./json.mjs").Guard<import("./browser.mjs").Outcome>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Writes `text` to stdout with a trailing newline.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} text The output
|
|
5
|
-
*/
|
|
6
|
-
export function print(text: string): void;
|
|
7
|
-
/**
|
|
8
|
-
* The playground and the renderer checkout `up` starts: the options, then
|
|
9
|
-
* the skill's `verify.config.ts`.
|
|
10
|
-
*
|
|
11
|
-
* @param {Pick<Values, "playground" | "renderer" | "skill">} values
|
|
12
|
-
* @param {string} cwd Where the command runs, which finds the skill
|
|
13
|
-
* @returns {Promise<{ playground: string, renderer: string | undefined }>}
|
|
14
|
-
*/
|
|
15
|
-
export function targetOf(values: Pick<Values, "playground" | "renderer" | "skill">, cwd: string): Promise<{
|
|
16
|
-
playground: string;
|
|
17
|
-
renderer: string | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* Starts a run the way `up` does: with `prepare`, the skill's install and
|
|
21
|
-
* build commands first, then the stack on the skill's playground and
|
|
22
|
-
* renderer.
|
|
23
|
-
*
|
|
24
|
-
* @param {Values} values The options of `up`
|
|
25
|
-
* @param {string} cwd Where the command runs, which finds the skill
|
|
26
|
-
* @returns {Promise<import("./run-state.mjs").RunState>} The run
|
|
27
|
-
*/
|
|
28
|
-
export function startRun(values: Values, cwd: string): Promise<import("./run-state.mjs").RunState>;
|
|
29
|
-
/**
|
|
30
|
-
* Runs a command that drives the product: `up`, `doctor`, `onboard`,
|
|
31
|
-
* `browser`, `api`, `mail`, `down`, `timings`, the three services `up`
|
|
32
|
-
* starts, and the frontend workspace setup it runs (`prepare-frontend`).
|
|
33
|
-
*
|
|
34
|
-
* @param {string | undefined} command The command
|
|
35
|
-
* @param {string[]} rest Its positional arguments
|
|
36
|
-
* @param {Values} values Its options
|
|
37
|
-
* @returns {Promise<number | undefined>} The exit code, or undefined for a command it does not own; the three services keep the process alive
|
|
38
|
-
*/
|
|
39
|
-
export function runStackCommand(command: string | undefined, rest: string[], values: Values): Promise<number | undefined>;
|
|
40
|
-
export type Values = import("./options.mjs").Values;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Answers whether a run is worth driving: every recorded process is alive
|
|
3
|
-
* and holds its port, both servers answer, the API port forwards to the
|
|
4
|
-
* run's backend, the frontend serves this run's backend, the builds are
|
|
5
|
-
* newer than their sources (the frontend build is keyed as a fresh `up`
|
|
6
|
-
* would key it now, when it recorded a key), the backend started after the
|
|
7
|
-
* last build, the database is the run's own, and the admin session (once
|
|
8
|
-
* onboarded) is valid.
|
|
9
|
-
*
|
|
10
|
-
* @param {import("./run-state.mjs").RunState} state The run
|
|
11
|
-
* @returns {Promise<{ check: string, ok: boolean, detail: string }[]>} One line per check
|
|
12
|
-
*/
|
|
13
|
-
export function doctor(state: import("./run-state.mjs").RunState): Promise<{
|
|
14
|
-
check: string;
|
|
15
|
-
ok: boolean;
|
|
16
|
-
detail: string;
|
|
17
|
-
}[]>;
|
|
18
|
-
export type RunState = import("./run-state.mjs").RunState;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Playwright's global setup of a journeys suite, once per `playwright test`.
|
|
3
|
-
* With `DMS_E2E_RUN` set, the tests drive that run and it stops nothing; a
|
|
4
|
-
* run whose dashboard is not served the way the suite asks is refused.
|
|
5
|
-
* Otherwise it starts a run as `dms-control up --prepare` does, on the
|
|
6
|
-
* config's skill and with `--dev-frontend` for a `frontend: "dev"` suite
|
|
7
|
-
* (`up` alone with `DMS_E2E_PREBUILT=1`), publishes its folder in
|
|
8
|
-
* `DMS_E2E_RUN` for the workers, and returns the teardown that stops it.
|
|
9
|
-
* The run outlives the worker Playwright replaces after a failed test.
|
|
10
|
-
*
|
|
11
|
-
* @returns {Promise<(() => Promise<void>) | undefined>} The teardown of the run it started
|
|
12
|
-
* @throws When the adopted run serves its dashboard another way than the suite asks
|
|
13
|
-
*/
|
|
14
|
-
export default function globalSetup(): Promise<(() => Promise<void>) | undefined>;
|
|
15
|
-
/**
|
|
16
|
-
* The run this `playwright test` drives, read again for each test: tests run
|
|
17
|
-
* one at a time, and each saves the run before the next reads it.
|
|
18
|
-
*
|
|
19
|
-
* @returns {import("./run-state.mjs").RunState} The run
|
|
20
|
-
* @throws When no global setup published a run
|
|
21
|
-
*/
|
|
22
|
-
export function currentRun(): import("./run-state.mjs").RunState;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Playwright config of a journeys suite: one worker against the run its
|
|
3
|
-
* global setup starts (parallelism comes from `--shard`), no retries, a test
|
|
4
|
-
* timeout above dms-control's own waits, and the CI reporters. It is plain
|
|
5
|
-
* Playwright config, so `defineConfig(e2eConfig(), overrides)` adjusts it.
|
|
6
|
-
* `skill` names the verify skill of a repository that has several.
|
|
7
|
-
* `frontend: "dev"` starts the run with `up --dev-frontend` and runs only
|
|
8
|
-
* the journeys that set `frontend: "dev"`, which every other suite leaves
|
|
9
|
-
* out; its test output and report folders end in `-dev`.
|
|
10
|
-
*
|
|
11
|
-
* @param {SuiteOptions} [options] The suite
|
|
12
|
-
* @returns {import("@playwright/test").PlaywrightTestConfig} The config
|
|
13
|
-
*/
|
|
14
|
-
export function e2eConfig(options?: SuiteOptions): import("@playwright/test").PlaywrightTestConfig;
|
|
15
|
-
/**
|
|
16
|
-
* Registers the journeys of the suite its config declared: those of the
|
|
17
|
-
* config's verify skill that its `frontend` serves, in the order of the
|
|
18
|
-
* skill's feature files and with those marked `last` after all others. One
|
|
19
|
-
* test per journey, named by its id under its feature's name, with the
|
|
20
|
-
* journey's `tag` and its title and entry point as annotations. A test
|
|
21
|
-
* drives its journey through `runJourney` in Playwright's browser, on the
|
|
22
|
-
* run of the global setup, then replays the judged result into the report.
|
|
23
|
-
*
|
|
24
|
-
* @returns {Promise<void>}
|
|
25
|
-
* @throws When a feature has no journeys module, or two journeys share an id
|
|
26
|
-
*/
|
|
27
|
-
export function registerJourneys(): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* What a journey drives the run through
|
|
30
|
-
*/
|
|
31
|
-
export type Ctx = import("./journey.mjs").JourneyContext;
|
|
32
|
-
/**
|
|
33
|
-
* A browser tab of a journey
|
|
34
|
-
*/
|
|
35
|
-
export type Tab = import("./tab.mjs").Tab;
|
|
36
|
-
/**
|
|
37
|
-
* A check a journey records
|
|
38
|
-
*/
|
|
39
|
-
export type Check = import("./journey.mjs").Check;
|
|
40
|
-
/**
|
|
41
|
-
* A journey a feature's module exports
|
|
42
|
-
*/
|
|
43
|
-
export type Journey = import("./journey-load.mjs").Journey;
|
|
44
|
-
/**
|
|
45
|
-
* What a journeys suite runs
|
|
46
|
-
*/
|
|
47
|
-
export type SuiteOptions = import("./e2e-suite.mjs").SuiteOptions;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The key of the run's frontend build inputs as a fresh `up` would read
|
|
3
|
-
* them now: a new copy of the playground (see `layOutCopy`) with the run's
|
|
4
|
-
* installed project modules, whose workspace is set up without installing,
|
|
5
|
-
* keyed with the versions the run's own workspace installed. The copy is
|
|
6
|
-
* removed.
|
|
7
|
-
*
|
|
8
|
-
* @param {import("./run-state.mjs").RunState} state The run, after `up`
|
|
9
|
-
* @returns {Promise<string>} The key
|
|
10
|
-
*/
|
|
11
|
-
export function currentFrontendBuildKey(state: import("./run-state.mjs").RunState): Promise<string>;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The command line of dms-control: every option any command reads.
|
|
3
|
-
*/
|
|
4
|
-
export const OPTIONS: {
|
|
5
|
-
readonly prepare: {
|
|
6
|
-
readonly type: "boolean";
|
|
7
|
-
};
|
|
8
|
-
readonly "no-standby": {
|
|
9
|
-
readonly type: "boolean";
|
|
10
|
-
};
|
|
11
|
-
readonly "no-build-cache": {
|
|
12
|
-
readonly type: "boolean";
|
|
13
|
-
};
|
|
14
|
-
readonly "dev-frontend": {
|
|
15
|
-
readonly type: "boolean";
|
|
16
|
-
};
|
|
17
|
-
readonly "dev-backend": {
|
|
18
|
-
readonly type: "boolean";
|
|
19
|
-
};
|
|
20
|
-
readonly playground: {
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
};
|
|
23
|
-
readonly renderer: {
|
|
24
|
-
readonly type: "string";
|
|
25
|
-
};
|
|
26
|
-
readonly runs: {
|
|
27
|
-
readonly type: "string";
|
|
28
|
-
};
|
|
29
|
-
readonly "mongo-url": {
|
|
30
|
-
readonly type: "string";
|
|
31
|
-
};
|
|
32
|
-
readonly env: {
|
|
33
|
-
readonly type: "string";
|
|
34
|
-
readonly multiple: true;
|
|
35
|
-
};
|
|
36
|
-
readonly base: {
|
|
37
|
-
readonly type: "string";
|
|
38
|
-
readonly default: "origin/main";
|
|
39
|
-
};
|
|
40
|
-
readonly skill: {
|
|
41
|
-
readonly type: "string";
|
|
42
|
-
};
|
|
43
|
-
readonly verbose: {
|
|
44
|
-
readonly type: "boolean";
|
|
45
|
-
};
|
|
46
|
-
readonly "platform-name": {
|
|
47
|
-
readonly type: "string";
|
|
48
|
-
};
|
|
49
|
-
readonly as: {
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
};
|
|
52
|
-
readonly tab: {
|
|
53
|
-
readonly type: "string";
|
|
54
|
-
};
|
|
55
|
-
readonly role: {
|
|
56
|
-
readonly type: "string";
|
|
57
|
-
};
|
|
58
|
-
readonly name: {
|
|
59
|
-
readonly type: "string";
|
|
60
|
-
};
|
|
61
|
-
readonly exact: {
|
|
62
|
-
readonly type: "boolean";
|
|
63
|
-
};
|
|
64
|
-
readonly nth: {
|
|
65
|
-
readonly type: "string";
|
|
66
|
-
};
|
|
67
|
-
readonly "within-role": {
|
|
68
|
-
readonly type: "string";
|
|
69
|
-
};
|
|
70
|
-
readonly "within-name": {
|
|
71
|
-
readonly type: "string";
|
|
72
|
-
};
|
|
73
|
-
readonly value: {
|
|
74
|
-
readonly type: "string";
|
|
75
|
-
};
|
|
76
|
-
readonly key: {
|
|
77
|
-
readonly type: "string";
|
|
78
|
-
};
|
|
79
|
-
readonly path: {
|
|
80
|
-
readonly type: "string";
|
|
81
|
-
};
|
|
82
|
-
readonly body: {
|
|
83
|
-
readonly type: "string";
|
|
84
|
-
};
|
|
85
|
-
readonly all: {
|
|
86
|
-
readonly type: "boolean";
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* The options of one command line
|
|
91
|
-
*/
|
|
92
|
-
export type Values = ReturnType<typeof import("node:util").parseArgs<{
|
|
93
|
-
options: typeof OPTIONS;
|
|
94
|
-
allowPositionals: true;
|
|
95
|
-
}>>["values"];
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {unknown} exported The default export of `verify.config.ts`
|
|
3
|
-
* @param {string} source The config file
|
|
4
|
-
* @returns {import("./skill.mjs").SkillConfig} The config
|
|
5
|
-
* @throws When the export is not a skill config
|
|
6
|
-
*/
|
|
7
|
-
export function decodeSkillConfig(exported: unknown, source: string): import("./skill.mjs").SkillConfig;
|
|
8
|
-
/** The default export of a skill's `verify.config.ts`. `notUserFacing`, `shared`, `notShared`, `renderer` and `journeys` may be absent. */
|
|
9
|
-
export const isSkillConfig: import("../json.mjs").Guard<import("../json.mjs").Properties<{
|
|
10
|
-
playground: typeof isString;
|
|
11
|
-
prepare: import("../json.mjs").Guard<string[][]>;
|
|
12
|
-
userFacing: import("../json.mjs").Guard<string[]>;
|
|
13
|
-
smoke: typeof isString;
|
|
14
|
-
smokeJourney: typeof isString;
|
|
15
|
-
doors: import("../json.mjs").Guard<Record<string, import("../json.mjs").Properties<{
|
|
16
|
-
globs: import("../json.mjs").Guard<string[]>;
|
|
17
|
-
funnels: import("../json.mjs").Guard<string[]>;
|
|
18
|
-
why: typeof isString;
|
|
19
|
-
}, Record<never, never>> | null>>;
|
|
20
|
-
formal: import("../json.mjs").Guard<import("../json.mjs").Properties<{
|
|
21
|
-
name: typeof isString;
|
|
22
|
-
covers: import("../json.mjs").Guard<string[]>;
|
|
23
|
-
command: import("../json.mjs").Guard<string[]>;
|
|
24
|
-
violation: import("../json.mjs").Guard<RegExp | null>;
|
|
25
|
-
}, {
|
|
26
|
-
files: import("../json.mjs").Guard<string[]>;
|
|
27
|
-
}>[]>;
|
|
28
|
-
}, {
|
|
29
|
-
notUserFacing: import("../json.mjs").Guard<string[]>;
|
|
30
|
-
shared: import("../json.mjs").Guard<string[]>;
|
|
31
|
-
notShared: import("../json.mjs").Guard<string[]>;
|
|
32
|
-
renderer: typeof isString;
|
|
33
|
-
journeys: typeof isString;
|
|
34
|
-
}>>;
|
|
35
|
-
/**
|
|
36
|
-
* Guard for the JSON the verification harness reads back, the skill's
|
|
37
|
-
* config. It is checked against the typedef it narrows to, and a value that
|
|
38
|
-
* does not match is refused with an error that names where it was read.
|
|
39
|
-
*/
|
|
40
|
-
export type AnyGuard = import("../json.mjs").Guard<unknown>;
|
|
41
|
-
import { isString } from "../json.mjs";
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Loads a verification skill: its `verify.config.ts` (imported with Node's
|
|
3
|
-
* TypeScript type stripping), its feature files and where its journeys
|
|
4
|
-
* live. Without `--skill`, the one
|
|
5
|
-
* `.agents/skills/verify-*` folder of the checkout holding `cwd`.
|
|
6
|
-
*
|
|
7
|
-
* @param {string | undefined} option The `--skill` folder
|
|
8
|
-
* @param {string} cwd Where the command runs
|
|
9
|
-
* @returns {Promise<import("./skill.mjs").Skill>} The skill
|
|
10
|
-
*/
|
|
11
|
-
export function loadSkill(option: string | undefined, cwd: string): Promise<import("./skill.mjs").Skill>;
|
|
12
|
-
/**
|
|
13
|
-
* Every feature file under `features/`, README.md excluded, with its
|
|
14
|
-
* `covers:` globs, `docs:` pages and text.
|
|
15
|
-
*
|
|
16
|
-
* @param {Skill} skill The skill
|
|
17
|
-
* @returns {{ name: string, file: string, covers: string[], docs: string[], body: string }[]} The features
|
|
18
|
-
*/
|
|
19
|
-
export function readFeatures(skill: Skill): {
|
|
20
|
-
name: string;
|
|
21
|
-
file: string;
|
|
22
|
-
covers: string[];
|
|
23
|
-
docs: string[];
|
|
24
|
-
body: string;
|
|
25
|
-
}[];
|
|
26
|
-
/**
|
|
27
|
-
* The journeys module of a feature.
|
|
28
|
-
*
|
|
29
|
-
* @param {Skill} skill The skill
|
|
30
|
-
* @param {string} feature The feature name
|
|
31
|
-
* @returns {string} Its path
|
|
32
|
-
*/
|
|
33
|
-
export function journeysFile(skill: Skill, feature: string): string;
|
|
34
|
-
/**
|
|
35
|
-
* Runs the config's `prepare` commands (install and build) in a checkout of
|
|
36
|
-
* the repository, so a run starts from a fresh build.
|
|
37
|
-
*
|
|
38
|
-
* @param {Skill} skill The skill
|
|
39
|
-
* @param {string} cwd The checkout
|
|
40
|
-
* @returns {import("../timing.mjs").TimingEntry[]} One timing entry per command, for the run folder that does not exist yet
|
|
41
|
-
* @throws When a command fails, with its output
|
|
42
|
-
*/
|
|
43
|
-
export function runPrepare(skill: Skill, cwd: string): import("../timing.mjs").TimingEntry[];
|
|
44
|
-
export type Skill = {
|
|
45
|
-
dir: string;
|
|
46
|
-
name: string;
|
|
47
|
-
repo: string;
|
|
48
|
-
config: SkillConfig;
|
|
49
|
-
featuresDir: string;
|
|
50
|
-
journeysDir: string;
|
|
51
|
-
};
|
|
52
|
-
export type SkillConfig = {
|
|
53
|
-
playground: string;
|
|
54
|
-
renderer?: string;
|
|
55
|
-
prepare: string[][];
|
|
56
|
-
userFacing: string[];
|
|
57
|
-
notUserFacing: string[];
|
|
58
|
-
shared: string[];
|
|
59
|
-
notShared: string[];
|
|
60
|
-
smoke: string;
|
|
61
|
-
smokeJourney: string;
|
|
62
|
-
journeys?: string;
|
|
63
|
-
doors: Record<string, {
|
|
64
|
-
globs: string[];
|
|
65
|
-
funnels: string[];
|
|
66
|
-
why: string;
|
|
67
|
-
} | null>;
|
|
68
|
-
formal: import("./types.mjs").FormalCheck[];
|
|
69
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The shapes the verification harness passes between its modules: the plan a
|
|
3
|
-
* diff maps to, the recorded result of a formal check and the results of a
|
|
4
|
-
* feature's journeys. This module holds types only.
|
|
5
|
-
*/
|
|
6
|
-
export type FormalCheck = {
|
|
7
|
-
name: string;
|
|
8
|
-
covers: string[];
|
|
9
|
-
files?: string[];
|
|
10
|
-
command: string[];
|
|
11
|
-
violation: RegExp | null;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* The shapes the verification harness passes between its modules: the plan a
|
|
15
|
-
* diff maps to, the recorded result of a formal check and the results of a
|
|
16
|
-
* feature's journeys. This module holds types only.
|
|
17
|
-
*/
|
|
18
|
-
export type FormalResult = {
|
|
19
|
-
name: string;
|
|
20
|
-
exitCode: number | null;
|
|
21
|
-
violated: string[];
|
|
22
|
-
folder: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* The shapes the verification harness passes between its modules: the plan a
|
|
26
|
-
* diff maps to, the recorded result of a formal check and the results of a
|
|
27
|
-
* feature's journeys. This module holds types only.
|
|
28
|
-
*/
|
|
29
|
-
export type TouchedFeature = {
|
|
30
|
-
feature: string;
|
|
31
|
-
files: string[];
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* The shapes the verification harness passes between its modules: the plan a
|
|
35
|
-
* diff maps to, the recorded result of a formal check and the results of a
|
|
36
|
-
* feature's journeys. This module holds types only.
|
|
37
|
-
*/
|
|
38
|
-
export type Plan = {
|
|
39
|
-
baseRef: string;
|
|
40
|
-
baseSha: string;
|
|
41
|
-
headSha: string;
|
|
42
|
-
changed: string[];
|
|
43
|
-
touched: TouchedFeature[];
|
|
44
|
-
shared: string[];
|
|
45
|
-
unmapped: string[];
|
|
46
|
-
docs: string[];
|
|
47
|
-
run: string[];
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* The shapes the verification harness passes between its modules: the plan a
|
|
51
|
-
* diff maps to, the recorded result of a formal check and the results of a
|
|
52
|
-
* feature's journeys. This module holds types only.
|
|
53
|
-
*/
|
|
54
|
-
export type JourneyCheck = {
|
|
55
|
-
name: string;
|
|
56
|
-
pass: boolean;
|
|
57
|
-
detail: string;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* The shapes the verification harness passes between its modules: the plan a
|
|
61
|
-
* diff maps to, the recorded result of a formal check and the results of a
|
|
62
|
-
* feature's journeys. This module holds types only.
|
|
63
|
-
*/
|
|
64
|
-
export type JourneyStep = {
|
|
65
|
-
name: string;
|
|
66
|
-
folder: string;
|
|
67
|
-
checks: JourneyCheck[];
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* `known`: a check the journey lists as a known failure failed; `fixed`: it passed
|
|
71
|
-
*/
|
|
72
|
-
export type Verdict = "pass" | "fail" | "known" | "fixed";
|
|
73
|
-
/**
|
|
74
|
-
* `finding`: why a listed check fails today
|
|
75
|
-
*/
|
|
76
|
-
export type JudgedCheck = JourneyCheck & {
|
|
77
|
-
verdict: Verdict;
|
|
78
|
-
finding?: string;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* The shapes the verification harness passes between its modules: the plan a
|
|
82
|
-
* diff maps to, the recorded result of a formal check and the results of a
|
|
83
|
-
* feature's journeys. This module holds types only.
|
|
84
|
-
*/
|
|
85
|
-
export type JudgedStep = {
|
|
86
|
-
name: string;
|
|
87
|
-
folder: string;
|
|
88
|
-
checks: JudgedCheck[];
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* The shapes the verification harness passes between its modules: the plan a
|
|
92
|
-
* diff maps to, the recorded result of a formal check and the results of a
|
|
93
|
-
* feature's journeys. This module holds types only.
|
|
94
|
-
*/
|
|
95
|
-
export type FeatureResult = {
|
|
96
|
-
feature: string;
|
|
97
|
-
journey: string;
|
|
98
|
-
title: string;
|
|
99
|
-
entryPoint: string;
|
|
100
|
-
status: "PASS" | "FAIL";
|
|
101
|
-
database: string;
|
|
102
|
-
steps: JudgedStep[];
|
|
103
|
-
error: string | null;
|
|
104
|
-
folder: string;
|
|
105
|
-
ms?: number;
|
|
106
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const previewBlocksTool: import("../tool").McpTool;
|