@antelopejs/dms 0.20.3 → 0.20.5
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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist/implementations/dms-builder/engine/compose-page.js +3 -2
- package/dist/implementations/dms-builder/engine/compose-page.js.map +1 -1
- package/dist/implementations/dms-builder/engine/database-access.d.ts +1 -16
- package/dist/implementations/dms-builder/engine/database-access.js +13 -44
- package/dist/implementations/dms-builder/engine/database-access.js.map +1 -1
- package/dist/implementations/dms-builder/engine/database-check.d.ts +1 -2
- package/dist/implementations/dms-builder/engine/database-check.js +28 -15
- package/dist/implementations/dms-builder/engine/database-check.js.map +1 -1
- package/dist/implementations/dms-builder/engine/driver-packages.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/driver-packages.js +4 -0
- package/dist/implementations/dms-builder/engine/driver-packages.js.map +1 -1
- package/dist/implementations/dms-builder/engine/driver-probe.d.ts +27 -0
- package/dist/implementations/dms-builder/engine/driver-probe.js +53 -0
- package/dist/implementations/dms-builder/engine/driver-probe.js.map +1 -0
- package/dist/implementations/dms-builder/engine/index.d.ts +2 -6
- package/dist/implementations/dms-builder/engine/index.js +2 -6
- package/dist/implementations/dms-builder/engine/index.js.map +1 -1
- package/dist/implementations/dms-builder/engine/probe-answer.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/probe-answer.js +90 -0
- package/dist/implementations/dms-builder/engine/probe-answer.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-child.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/probe-child.js +70 -0
- package/dist/implementations/dms-builder/engine/probe-child.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-process.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-process.js +132 -0
- package/dist/implementations/dms-builder/engine/probe-process.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-protocol.d.ts +46 -0
- package/dist/implementations/dms-builder/engine/probe-protocol.js +18 -0
- package/dist/implementations/dms-builder/engine/probe-protocol.js.map +1 -0
- package/dist/mcp/page-verify/index.d.ts +1 -0
- package/dist/mcp/page-verify/index.js +1 -0
- package/dist/mcp/page-verify/index.js.map +1 -1
- package/dist/mcp/page-verify/redact-report.d.ts +2 -0
- package/dist/mcp/page-verify/redact-report.js +120 -0
- package/dist/mcp/page-verify/redact-report.js.map +1 -0
- package/dist/mcp/page-verify/render.js +4 -1
- package/dist/mcp/page-verify/render.js.map +1 -1
- package/dist/mcp/redact.d.ts +87 -0
- package/dist/mcp/redact.js +139 -0
- package/dist/mcp/redact.js.map +1 -0
- package/dist/mcp/tools/builder-compose.js +11 -2
- package/dist/mcp/tools/builder-compose.js.map +1 -1
- package/dist/mcp/tools/builder-project.js +56 -23
- package/dist/mcp/tools/builder-project.js.map +1 -1
- package/dist/mcp/tools/builder-queries.js +41 -4
- package/dist/mcp/tools/builder-queries.js.map +1 -1
- package/dist/mcp/tools/builder-shared.d.ts +3 -1
- package/dist/mcp/tools/builder-shared.js +5 -0
- package/dist/mcp/tools/builder-shared.js.map +1 -1
- package/dist/mcp/tools/database.js +3 -2
- package/dist/mcp/tools/database.js.map +1 -1
- package/dist/mcp/tools/page-verify.js +3 -2
- package/dist/mcp/tools/page-verify.js.map +1 -1
- package/dist/mockup/fixtures.d.ts +1 -1
- package/dist/routes/system-state.d.ts +1 -1
- package/frontend-vue/eslint-globals.generated.mjs +259 -942
- package/frontend-vue/layers/dms-core/app/build/composables/api-error.ts +46 -23
- package/frontend-vue/layers/dms-core/app/build/composables/auth/usePermissionPreview.ts +34 -23
- package/frontend-vue/layers/dms-core/app/build/composables/user/preferencesCookie.ts +8 -2
- package/frontend-vue/layers/dms-core/app/build/composables/user/tablePreferences.ts +11 -5
- package/frontend-vue/layers/dms-core/app/build/utils/crossTab.ts +4 -2
- package/frontend-vue/layers/dms-core/app/build/utils/json.ts +31 -0
- package/frontend-vue/layers/dms-core/app/build/utils/permission-preview.ts +6 -11
- package/frontend-vue/layers/dms-core/app/build/utils/record.ts +4 -0
- package/frontend-vue/layers/dms-core/app/build/utils/sharedRealtimeConnection.ts +56 -36
- package/frontend-vue/layers/dms-core/app/composables/auth/useApiData.ts +2 -2
- package/frontend-vue/layers/dms-core/app/composables/auth/useAuthFetch.ts +6 -1
- package/frontend-vue/layers/dms-core/app/composables/auth/useCurrentUser.ts +3 -2
- package/frontend-vue/layers/dms-core/app/composables/auth/useLogout.ts +3 -2
- package/frontend-vue/layers/dms-core/app/composables/auth/useMultiAccount.ts +15 -14
- package/frontend-vue/layers/dms-core/app/composables/auth/useSessionRecovery.ts +21 -8
- package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +3 -3
- package/frontend-vue/layers/dms-core/app/composables/page/useSiteLayout.ts +11 -9
- package/frontend-vue/layers/dms-core/app/composables/period/periodLink.ts +3 -2
- package/frontend-vue/layers/dms-core/app/composables/period/usePeriod.ts +2 -2
- package/frontend-vue/layers/dms-core/app/composables/realtime/usePageRealtime.ts +10 -3
- package/frontend-vue/layers/dms-core/app/composables/realtime/useSseStream.ts +22 -16
- package/frontend-vue/layers/dms-core/app/composables/realtime/useUserRealtime.ts +68 -46
- package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +22 -11
- package/frontend-vue/layers/dms-core/app/composables/useEventedAction.ts +4 -1
- package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +14 -6
- package/frontend-vue/layers/dms-core/app/composables/user/usePreferences.ts +8 -3
- package/frontend-vue/layers/dms-core/app/composables/watch/useWatch.ts +17 -8
- package/frontend-vue/layers/dms-core/app/types/module-store.ts +3 -1
- package/frontend-vue/layers/dms-core/app/types/page.ts +3 -1
- package/frontend-vue/layers/dms-core/app/utils/dedupedRefresh.ts +2 -2
- package/frontend-vue/layers/dms-core/app/utils/formatter.ts +5 -5
- package/frontend-vue/layers/dms-core/app/utils/menu.ts +12 -4
- package/frontend-vue/layers/dms-core/app/utils/pageQuery.ts +7 -4
- package/frontend-vue/layers/dms-core/app/utils/row-action-rule-evaluator.ts +7 -3
- package/frontend-vue/layers/dms-core/app/utils/stringTypeParser.ts +8 -10
- package/frontend-vue/layers/dms-core/app/utils/type-check.ts +25 -12
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditOverlay.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIndex.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +3 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspectorField.vue +5 -2
- package/frontend-vue/layers/dms-ui/app/build/components/containers/drawer/DynamicDrawer.vue +4 -3
- package/frontend-vue/layers/dms-ui/app/build/components/containers/modal/DynamicModal.vue +3 -2
- package/frontend-vue/layers/dms-ui/app/build/components/containers/row/RowHeader.vue +2 -1
- package/frontend-vue/layers/dms-ui/app/build/components/period/PeriodRangeCalendar.vue +10 -7
- package/frontend-vue/layers/dms-ui/app/build/components/sortable/SortableList.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/FiltersRow.vue +20 -18
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuColumns.vue +2 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuDensity.vue +3 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuFilter.vue +3 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuImport.vue +2 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuPage.vue +2 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuRoot.vue +3 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuSort.vue +2 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuViewMode.vue +21 -19
- package/frontend-vue/layers/dms-ui/app/build/components/table/RowSelection.vue +3 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/Table.types.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableActions.vue +3 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableMenu.vue +3 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/TablePagination.vue +3 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableRoot.vue +3 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableTabs.vue +2 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableViews.vue +3 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/tableComponentFilters.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/components/table/tableComponentPreferences.ts +4 -3
- package/frontend-vue/layers/dms-ui/app/build/components/table/tableComponentRows.ts +4 -3
- package/frontend-vue/layers/dms-ui/app/build/components/table/tableComponentTheme.ts +11 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardsDisplay.vue +35 -9
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/mockups/resync.ts +9 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +34 -25
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +52 -26
- package/frontend-vue/layers/dms-ui/app/build/utils/calendarDay.ts +4 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/characterCount.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/dispatchQuickActionTarget.ts +16 -11
- package/frontend-vue/layers/dms-ui/app/build/utils/fieldOptionsI18n.ts +23 -21
- package/frontend-vue/layers/dms-ui/app/build/utils/json.ts +74 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/link.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCatalog.ts +59 -50
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupDrop.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEdit.ts +8 -6
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +34 -28
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStamp.ts +11 -3
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +5 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/streamHighlight.ts +8 -6
- package/frontend-vue/layers/dms-ui/app/build/utils/urlVariables.ts +2 -1
- package/frontend-vue/layers/dms-ui/app/components/RecursiveComponent.vue +3 -6
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +5 -4
- package/frontend-vue/layers/dms-ui/app/components/blocks/BannerBlock.vue +1 -2
- package/frontend-vue/layers/dms-ui/app/components/card/NavCard.vue +4 -1
- package/frontend-vue/layers/dms-ui/app/components/chart/ApexChartHost.vue +62 -13
- package/frontend-vue/layers/dms-ui/app/components/chart/ChartBlock.vue +18 -6
- package/frontend-vue/layers/dms-ui/app/components/code-snippet/CodeSnippet.vue +9 -4
- package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +9 -6
- package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +16 -18
- package/frontend-vue/layers/dms-ui/app/components/form/FormBlock.vue +4 -9
- package/frontend-vue/layers/dms-ui/app/components/form/LocalizedField.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputAddress.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputImage.vue +5 -8
- package/frontend-vue/layers/dms-ui/app/components/form/components/RichText.vue +3 -2
- package/frontend-vue/layers/dms-ui/app/components/master-detail/MasterDetail.vue +3 -1
- package/frontend-vue/layers/dms-ui/app/components/period/usePeriodSelectorInteraction.ts +9 -7
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +11 -6
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanDisplay.vue +40 -3
- package/frontend-vue/layers/dms-ui/app/composables/chart/apexDatetimeBuckets.ts +9 -5
- package/frontend-vue/layers/dms-ui/app/composables/chart/events.ts +6 -3
- package/frontend-vue/layers/dms-ui/app/composables/chart/heatmapColors.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/chart/localizeSeries.ts +13 -2
- package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.ts +27 -4
- package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.types.ts +3 -2
- package/frontend-vue/layers/dms-ui/app/composables/chart/useChartFetch.ts +3 -4
- package/frontend-vue/layers/dms-ui/app/composables/confirm/types.ts +5 -1
- package/frontend-vue/layers/dms-ui/app/composables/containers/openDynamicContainer.ts +6 -6
- package/frontend-vue/layers/dms-ui/app/composables/containers/types.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/containers/useDrawer.ts +8 -5
- package/frontend-vue/layers/dms-ui/app/composables/containers/useModal.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/form/types/props.ts +5 -2
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +80 -39
- package/frontend-vue/layers/dms-ui/app/composables/live/usePageLiveRefresh.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/resolveDmsComponent.ts +9 -2
- package/frontend-vue/layers/dms-ui/app/composables/tab/useTab.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftA.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/action-target.ts +2 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/column.ts +3 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/display.ts +6 -2
- package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableViewExport.ts +6 -5
- package/frontend-vue/layers/dms-ui/app/composables/unsaved-changes/useUnsavedChanges.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/useExportJob.ts +21 -9
- package/frontend-vue/layers/dms-ui/app/utils/blockRefresh.ts +8 -2
- package/frontend-vue/layers/dms-ui/app/utils/cascader.ts +18 -8
- package/frontend-vue/layers/dms-ui/app/utils/metadataRetry.ts +1 -1
- package/frontend-vue/package.json +2 -1
- package/frontend-vue/scripts/check-api-error-presentation.mjs +257 -117
- package/frontend-vue/scripts/check-autoimport-boundaries.mjs +143 -27
- package/frontend-vue/scripts/check-disable-blocks.mjs +26 -4
- package/frontend-vue/scripts/check-dms-components.mjs +152 -246
- package/frontend-vue/scripts/check-invariants.mjs +100 -42
- package/frontend-vue/scripts/check-page-invariants.mjs +103 -40
- package/frontend-vue/scripts/dms-components-dependencies.mjs +106 -13
- package/frontend-vue/scripts/dms-components-script.mjs +375 -0
- package/frontend-vue/scripts/eslint-test-quality.mjs +126 -0
- package/frontend-vue/scripts/jsconfig.json +10 -0
- package/frontend-vue/scripts/probes/capture-frontend-probe.cjs +4 -2
- package/frontend-vue/scripts/probes/frontend-behavior.cjs +217 -47
- package/frontend-vue/scripts/probes/frontend-legacy.cjs +159 -8
- package/frontend-vue/scripts/probes/frontend-probe-controls.cjs +89 -10
- package/frontend-vue/scripts/prove-comment-emit.mjs +33 -4
- package/frontend-vue/scripts/prove-component-registration.mjs +110 -24
- package/frontend-vue/scripts/test-autoimport-boundaries.mjs +37 -6
- package/frontend-vue/scripts/test-dms-components.mjs +51 -2
- package/package.json +5 -19
- package/dist/implementations/dms-builder/engine/access-mongodb.d.ts +0 -20
- package/dist/implementations/dms-builder/engine/access-mongodb.js +0 -30
- package/dist/implementations/dms-builder/engine/access-mongodb.js.map +0 -1
- package/dist/implementations/dms-builder/engine/access-mysql.d.ts +0 -8
- package/dist/implementations/dms-builder/engine/access-mysql.js +0 -11
- package/dist/implementations/dms-builder/engine/access-mysql.js.map +0 -1
- package/dist/implementations/dms-builder/engine/access-postgres.d.ts +0 -8
- package/dist/implementations/dms-builder/engine/access-postgres.js +0 -11
- package/dist/implementations/dms-builder/engine/access-postgres.js.map +0 -1
- package/dist/implementations/dms-builder/engine/probe-client.d.ts +0 -19
- package/dist/implementations/dms-builder/engine/probe-client.js +0 -50
- package/dist/implementations/dms-builder/engine/probe-client.js.map +0 -1
- package/dist/implementations/dms-builder/engine/probe-connections.d.ts +0 -10
- package/dist/implementations/dms-builder/engine/probe-connections.js +0 -43
- package/dist/implementations/dms-builder/engine/probe-connections.js.map +0 -1
- package/dist/implementations/dms-builder/engine/probe-mongodb.d.ts +0 -2
- package/dist/implementations/dms-builder/engine/probe-mongodb.js +0 -148
- package/dist/implementations/dms-builder/engine/probe-mongodb.js.map +0 -1
- package/dist/implementations/dms-builder/engine/probe-mysql.d.ts +0 -2
- package/dist/implementations/dms-builder/engine/probe-mysql.js +0 -189
- package/dist/implementations/dms-builder/engine/probe-mysql.js.map +0 -1
- package/dist/implementations/dms-builder/engine/probe-postgres.d.ts +0 -2
- package/dist/implementations/dms-builder/engine/probe-postgres.js +0 -164
- package/dist/implementations/dms-builder/engine/probe-postgres.js.map +0 -1
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.d.ts +0 -2
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.js +0 -92
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.js.map +0 -1
- package/dist/implementations/dms-builder/engine/rethinkdb-client.d.ts +0 -34
- package/dist/implementations/dms-builder/engine/rethinkdb-client.js +0 -3
- package/dist/implementations/dms-builder/engine/rethinkdb-client.js.map +0 -1
- package/dist/implementations/dms-builder/engine/scram-bound.d.ts +0 -5
- package/dist/implementations/dms-builder/engine/scram-bound.js +0 -60
- package/dist/implementations/dms-builder/engine/scram-bound.js.map +0 -1
- package/frontend-vue/eslint-test-quality.mjs +0 -62
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-queries.js","sourceRoot":"","sources":["../../../src/mcp/tools/builder-queries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"builder-queries.js","sourceRoot":"","sources":["../../../src/mcp/tools/builder-queries.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAM2C;AAC3C,6BAAwB;AACxB,kCAA2C;AAC3C,4DAA0D;AAC1D,sCAA0C;AAC1C,kCAAqC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f,CAAC,CAAC,IAAA,yBAAQ,EAAC,MAAM,IAAA,sCAAc,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CACnD,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,IAAA,iBAAU,EAAC;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,IAAA,mCAAkB,EAC7B,gSAAgS,CACjS;IACD,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IACrC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAC7B,sCAAkB,CAAC,GAAG,CAAC,SAAS,EAAE,sBAAsB,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,CACzE,IAAA,yBAAQ,EAAC,MAAM,IAAA,mCAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CACxC;CACJ,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG;IACjC,cAAc;IACd,QAAQ;IACR,YAAY;IACZ,cAAc;IACd,WAAW;CACZ,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { OperationName, Operations } from "@antelopejs/interface-dms-builder";
|
|
1
|
+
import type { OperationName, Operations, OpResult } from "@antelopejs/interface-dms-builder";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { type RedactedData } from "../redact";
|
|
3
4
|
import { type McpToolResult } from "../tool";
|
|
4
5
|
export type BuilderAnswer = Exclude<Awaited<ReturnType<(typeof Operations)[OperationName]>>, void>;
|
|
5
6
|
export declare const BUILDER_REF_NOTE = "To reference a builder-generated resource class inside config (e.g. a RelationType DataType's `dataApiController`), pass `{ $ref: { resource: \"<ref>\", as?: \"dataApi\" | \"table\" | \"model\" } }` (default `as` = \"dataApi\", the DataAPI controller). The resource must already exist (builder_list_resources). Unlike `$expr`, `$ref` is allowed in safe mode.";
|
|
6
7
|
export declare function withEscalationNote(description: string): string;
|
|
7
8
|
export declare function opResult(answer: BuilderAnswer): McpToolResult;
|
|
9
|
+
export declare function redactedOpResult<T>(answer: OpResult<T>, redact: (data: T) => RedactedData): McpToolResult;
|
|
8
10
|
export declare function refusalResult(code: string, detail: string): McpToolResult;
|
|
9
11
|
export declare const containsExprSentinel: z.ZodType<boolean, z.ZodTypeDef, unknown>;
|
|
10
12
|
export declare function exprRefusal(): McpToolResult;
|
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PARENT_PATH = exports.BLOCK_PATH = exports.BLOCK_PATH_FORMAT = exports.TARGET_MODULE = exports.containsExprSentinel = exports.BUILDER_REF_NOTE = void 0;
|
|
4
4
|
exports.withEscalationNote = withEscalationNote;
|
|
5
5
|
exports.opResult = opResult;
|
|
6
|
+
exports.redactedOpResult = redactedOpResult;
|
|
6
7
|
exports.refusalResult = refusalResult;
|
|
7
8
|
exports.exprRefusal = exprRefusal;
|
|
8
9
|
const zod_1 = require("zod");
|
|
10
|
+
const redact_1 = require("../redact");
|
|
9
11
|
const tool_1 = require("../tool");
|
|
10
12
|
const BUILDER_ESCALATION_NOTE = "If the result is ok:false with error.code 'opaque_target' or 'unsupported', safe mode cannot make this change. Explain the limitation to the user and ask permission to switch to Code mode (direct file edits) for this step.";
|
|
11
13
|
const BUILDER_EXPR_REFUSAL = 'Refused: safe mode does not allow raw `$expr` values in builder config. For a Form field or Column DataType, use `{ $dataType: "<id>", config: {…} }` (see builder_catalog for ids). To reference a generated resource class (e.g. a RelationType\'s `dataApiController`), use a reference value `{ $ref: { resource: "<name>" } }` instead — it is validated and allowed in safe mode. Only escalate to Code mode for genuinely arbitrary code.';
|
|
@@ -17,6 +19,9 @@ function opResult(answer) {
|
|
|
17
19
|
const failed = "ok" in answer && answer.ok === false;
|
|
18
20
|
return (0, tool_1.textResult)(JSON.stringify(answer), failed);
|
|
19
21
|
}
|
|
22
|
+
function redactedOpResult(answer, redact) {
|
|
23
|
+
return (0, tool_1.textResult)(JSON.stringify((0, redact_1.redactedResult)(answer, redact)), !answer.ok);
|
|
24
|
+
}
|
|
20
25
|
function refusalResult(code, detail) {
|
|
21
26
|
return (0, tool_1.textResult)(JSON.stringify({ ok: false, error: { code, detail } }), true);
|
|
22
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-shared.js","sourceRoot":"","sources":["../../../src/mcp/tools/builder-shared.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"builder-shared.js","sourceRoot":"","sources":["../../../src/mcp/tools/builder-shared.ts"],"names":[],"mappings":";;;AAuBA,gDAEC;AAED,4BAGC;AAGD,4CAKC;AAED,sCAKC;AAgBD,kCAEC;AA1DD,6BAAwB;AACxB,sCAA8D;AAC9D,kCAAyD;AAOzD,MAAM,uBAAuB,GAC3B,gOAAgO,CAAC;AAEnO,MAAM,oBAAoB,GACxB,kbAAkb,CAAC;AAExa,QAAA,gBAAgB,GAC3B,+VAA+V,CAAC;AAElW,SAAgB,kBAAkB,CAAC,WAAmB;IACpD,OAAO,GAAG,WAAW,OAAO,uBAAuB,EAAE,CAAC;AACxD,CAAC;AAED,SAAgB,QAAQ,CAAC,MAAqB;IAC5C,MAAM,MAAM,GAAG,IAAI,IAAI,MAAM,IAAI,MAAM,CAAC,EAAE,KAAK,KAAK,CAAC;IACrD,OAAO,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AACpD,CAAC;AAGD,SAAgB,gBAAgB,CAC9B,MAAmB,EACnB,MAAiC;IAEjC,OAAO,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,IAAA,uBAAc,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAChF,CAAC;AAED,SAAgB,aAAa,CAAC,IAAY,EAAE,MAAc;IACxD,OAAO,IAAA,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AAC,kCAAkC,yBAAiB,EAAE,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.DATABASE_TOOLS = void 0;
|
|
|
4
4
|
const interface_dms_builder_1 = require("@antelopejs/interface-dms-builder");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const catalog_connection_1 = require("../../implementations/dms-builder/engine/catalog-connection");
|
|
7
|
+
const redact_1 = require("../redact");
|
|
7
8
|
const tool_1 = require("../tool");
|
|
8
9
|
const builder_shared_1 = require("./builder-shared");
|
|
9
10
|
function failed(error) {
|
|
@@ -87,7 +88,7 @@ const describe = (0, tool_1.defineTool)({
|
|
|
87
88
|
const profile = (0, tool_1.defineTool)({
|
|
88
89
|
name: "database_profile",
|
|
89
90
|
title: "Profile a database relation",
|
|
90
|
-
description: "Profiles one relation
|
|
91
|
+
description: "Profiles the shape of one relation, without writing and without any value from its rows: rows, and per column nulls, distinct, `months` (how many calendar months hold rows), `categories` (for a few-valued column, `rows` per category, each seen at least 5 times, and `other`; never the values) and text lengths in characters, with traits (enum-like, identifier-like, label-candidate, time-axis, measure); children per parent over each declared reference. A measure past its time answers `timeout`. Large relations are sampled. `references` checks columns that look like references the database does not declare: the share of their values the target column holds, and whether the target is a key.",
|
|
91
92
|
effect: "read",
|
|
92
93
|
input: zod_1.z.object({
|
|
93
94
|
connection: CONNECTION,
|
|
@@ -100,7 +101,7 @@ const profile = (0, tool_1.defineTool)({
|
|
|
100
101
|
run: ({ connection, relation, columns, references }) => onCatalog(connection, async (catalog) => JSON.stringify({
|
|
101
102
|
profile: relation === undefined
|
|
102
103
|
? undefined
|
|
103
|
-
: await catalog.Profile({ relation, columns }),
|
|
104
|
+
: (0, redact_1.redactProfile)(await catalog.Profile({ relation, columns })),
|
|
104
105
|
references: await Promise.all((references ?? []).map((check) => catalog.CheckReference(check))),
|
|
105
106
|
})),
|
|
106
107
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../../src/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AM,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;aACjE,QAAQ,EAAE;KACd,CAAC;IACF,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CACrD,SAAS,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CACtC,IAAI,CAAC,SAAS,CAAC;QACb,OAAO,EACL,QAAQ,KAAK,SAAS;YACpB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,IAAA,sBAAa,EAAC,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;QACjE,UAAU,EAAE,MAAM,OAAO,CAAC,GAAG,CAC3B,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CACjE;KACF,CAAC,CACH;CACJ,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG;IAC5B,WAAW;IACX,OAAO;IACP,SAAS;IACT,QAAQ;IACR,OAAO;CACR,CAAC"}
|
|
@@ -37,6 +37,7 @@ exports.PAGE_VERIFY_TOOLS = void 0;
|
|
|
37
37
|
const runtime_1 = require("@antelopejs/interface-core/runtime");
|
|
38
38
|
const zod_1 = require("zod");
|
|
39
39
|
const config_1 = require("../../config");
|
|
40
|
+
const redact_report_1 = require("../page-verify/redact-report");
|
|
40
41
|
const report_1 = require("../page-verify/report");
|
|
41
42
|
const tool_1 = require("../tool");
|
|
42
43
|
const MAX_PAGES = 10;
|
|
@@ -84,7 +85,7 @@ const PageVerifyInput = zod_1.z.object({
|
|
|
84
85
|
const verifyPageTool = (0, tool_1.defineTool)({
|
|
85
86
|
name: "page_verify",
|
|
86
87
|
title: "Verify pages in a browser",
|
|
87
|
-
description: "Opens each page in a headless Chromium signed in as a role and answers a JSON report: `ok`, then per page `failures` (one line per failed check: read these first), the render at each viewport (every block present and visible, a screenshot per block and of the page, sideways scrolling, overlapping blocks), the data state of each table, chart and KPI (`ok`, `empty`, `error`, `loading`, `needs_backend`), console errors and failed requests, interactions (links answer, tabs select, sort and search respond, forms open and validate on an empty submit) and, for every role of the workspace, whether the page opens as the role's grants say. With `mockup`, each mockup block is paired with a page block and both are screenshotted for a side-by-side look. Screenshots are written under `.antelope/page-verify/` in the project; their paths are project-relative. Writes are held back unless `submit` is true. The first call installs Chromium (about 330 MB, once, in Playwright's browser cache). Development only.",
|
|
88
|
+
description: "Opens each page in a headless Chromium signed in as a role and answers a JSON report: `ok`, then per page `failures` (one line per failed check: read these first), the render at each viewport (every block present and visible, a screenshot per block and of the page, sideways scrolling, overlapping blocks), the data state of each table, chart and KPI (`ok`, `empty`, `error`, `loading`, `needs_backend`), console errors (by their error class only) and failed requests (`other origin` for another origin, and their path only when a block of the run reads it), interactions (links answer, tabs select, sort and search respond, forms open and validate on an empty submit; each control named by its kind and an ordinal, `tab #2`, never by the text the page shows) and, for every role of the workspace, whether the page opens as the role's grants say. With `mockup`, each mockup block is paired with a page block and both are screenshotted for a side-by-side look. Screenshots are written under `.antelope/page-verify/` in the project; their paths are project-relative. Writes are held back unless `submit` is true. The first call installs Chromium (about 330 MB, once, in Playwright's browser cache). Development only.",
|
|
88
89
|
effect: "read",
|
|
89
90
|
input: PageVerifyInput,
|
|
90
91
|
async run(args) {
|
|
@@ -105,7 +106,7 @@ const verifyPageTool = (0, tool_1.defineTool)({
|
|
|
105
106
|
origin: ((0, config_1.getClientBaseUrl)() ?? config_1.DEFAULT_CLIENT_BASE_URL).replace(/\/+$/, ""),
|
|
106
107
|
projectPath,
|
|
107
108
|
});
|
|
108
|
-
return (0, tool_1.textResult)(JSON.stringify(report), !report.ok);
|
|
109
|
+
return (0, tool_1.textResult)(JSON.stringify((0, redact_report_1.redactVerifyReport)(report)), !report.ok);
|
|
109
110
|
}
|
|
110
111
|
catch (error) {
|
|
111
112
|
return (0, tool_1.textResult)(`page_verify could not run: ${error instanceof Error ? error.message : String(error)}`, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-verify.js","sourceRoot":"","sources":["../../../src/mcp/tools/page-verify.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoE;AACpE,6BAAwB;AACxB,yCAAyE;AACzE,kDAAwD;AACxD,kCAAiD;AAEjD,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,WAAW,GAAG,GAAG,CAAC;AACxB,MAAM,WAAW,GAAG,KAAK,CAAC;AAE1B,MAAM,cAAc,GAAG,OAAC,CAAC,KAAK,CAAC;IAC7B,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,wBAAe,CAAC,IAAI,CAAC,CAAC;IACxE,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC;QACzD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC;KAC3D,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,OAAC;SACJ,KAAK,CAAC;QACL,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACjB,OAAC,CAAC,KAAK,CAAC,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AM,EAAE,CAAC,IAAA,yBAAgB,GAAE,IAAI,gCAAuB,CAAC,CAAC,OAAO,CAC7D,MAAM,EACN,EAAE,CACH;gBACD,WAAW;aACZ,CAAC,CAAC;YACH,OAAO,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,IAAA,kCAAkB,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC5E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAA,iBAAU,EACf,8BAA8B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EACtF,IAAI,CACL,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -10,9 +10,9 @@ export declare class PublicSystemStateController extends PublicSystemStateContro
|
|
|
10
10
|
_id?: string | undefined;
|
|
11
11
|
createdAt?: Date | undefined;
|
|
12
12
|
updatedAt?: Date | undefined;
|
|
13
|
-
default_language?: string | undefined;
|
|
14
13
|
has_onboarded?: boolean | undefined;
|
|
15
14
|
platform_name?: string | undefined;
|
|
15
|
+
default_language?: string | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
}
|
|
18
18
|
export {};
|