@antelopejs/dms-automation 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +27 -30
  2. package/dist/data/procedures-table.d.ts +1 -0
  3. package/dist/data/procedures-table.js.map +1 -1
  4. package/dist/data/runs-table.d.ts +3 -3
  5. package/dist/data/runs-table.js.map +1 -1
  6. package/dist/db/models/automation_template.model.d.ts +11 -9
  7. package/dist/db/models/automation_template.model.js.map +1 -1
  8. package/dist/db/models/procedure.model.d.ts +7 -5
  9. package/dist/db/models/procedure_run.model.d.ts +9 -6
  10. package/dist/db/models/procedure_run.model.js +8 -8
  11. package/dist/db/models/procedure_run.model.js.map +1 -1
  12. package/dist/db/models/type_switch.model.d.ts +7 -5
  13. package/dist/implementations/dms-automation/index.d.ts +2 -2
  14. package/dist/implementations/dms-automation/index.js.map +1 -1
  15. package/dist/routes/action-types.d.ts +1 -1
  16. package/dist/routes/data-node-types.d.ts +1 -1
  17. package/dist/routes/graphSchema.d.ts +1 -1
  18. package/dist/routes/graphSchema.js +5 -3
  19. package/dist/routes/graphSchema.js.map +1 -1
  20. package/dist/routes/library.d.ts +12 -1
  21. package/dist/routes/library.js +38 -34
  22. package/dist/routes/library.js.map +1 -1
  23. package/dist/routes/procedureRuns.d.ts +1 -1
  24. package/dist/routes/procedureSchemas.d.ts +7 -6
  25. package/dist/routes/procedureSchemas.js +4 -2
  26. package/dist/routes/procedureSchemas.js.map +1 -1
  27. package/dist/routes/procedures.d.ts +1 -1
  28. package/dist/routes/requests.d.ts +2 -2
  29. package/dist/routes/requests.js +2 -1
  30. package/dist/routes/requests.js.map +1 -1
  31. package/dist/routes/runs.d.ts +2 -1
  32. package/dist/routes/runs.js.map +1 -1
  33. package/dist/routes/templates.d.ts +2 -2
  34. package/dist/routes/trigger-types.d.ts +1 -1
  35. package/dist/routes/zodJson.d.ts +3 -0
  36. package/dist/routes/zodJson.js +21 -0
  37. package/dist/routes/zodJson.js.map +1 -0
  38. package/dist/runtime/armErrors.js +5 -5
  39. package/dist/runtime/armErrors.js.map +1 -1
  40. package/dist/runtime/boundRunLog.d.ts +6 -5
  41. package/dist/runtime/boundRunLog.js +14 -10
  42. package/dist/runtime/boundRunLog.js.map +1 -1
  43. package/dist/runtime/builtins/actions/http.d.ts +7 -3
  44. package/dist/runtime/builtins/actions/http.js +19 -15
  45. package/dist/runtime/builtins/actions/http.js.map +1 -1
  46. package/dist/runtime/builtins/actions/log.d.ts +5 -4
  47. package/dist/runtime/builtins/actions/log.js.map +1 -1
  48. package/dist/runtime/builtins/data/boolean.d.ts +2 -1
  49. package/dist/runtime/builtins/data/boolean.js.map +1 -1
  50. package/dist/runtime/builtins/data/compare.js +1 -1
  51. package/dist/runtime/builtins/data/compare.js.map +1 -1
  52. package/dist/runtime/builtins/data/constant.js.map +1 -1
  53. package/dist/runtime/builtins/data/math.js.map +1 -1
  54. package/dist/runtime/builtins/data/object.js +15 -10
  55. package/dist/runtime/builtins/data/object.js.map +1 -1
  56. package/dist/runtime/builtins/nodes/action.js +11 -3
  57. package/dist/runtime/builtins/nodes/action.js.map +1 -1
  58. package/dist/runtime/builtins/nodes/retry.js +8 -1
  59. package/dist/runtime/builtins/nodes/retry.js.map +1 -1
  60. package/dist/runtime/builtins/nodes/switch.js +6 -1
  61. package/dist/runtime/builtins/nodes/switch.js.map +1 -1
  62. package/dist/runtime/builtins/triggers/cron.d.ts +2 -2
  63. package/dist/runtime/builtins/triggers/webhook.d.ts +5 -2
  64. package/dist/runtime/builtins/triggers/webhook.js +6 -6
  65. package/dist/runtime/builtins/triggers/webhook.js.map +1 -1
  66. package/dist/runtime/describe.d.ts +3 -1
  67. package/dist/runtime/describe.js +3 -3
  68. package/dist/runtime/describe.js.map +1 -1
  69. package/dist/runtime/executor.d.ts +2 -1
  70. package/dist/runtime/executor.js +8 -6
  71. package/dist/runtime/executor.js.map +1 -1
  72. package/dist/runtime/graphIssues.d.ts +2 -2
  73. package/dist/runtime/graphIssues.js +15 -10
  74. package/dist/runtime/graphIssues.js.map +1 -1
  75. package/dist/runtime/graphVersion.js +2 -2
  76. package/dist/runtime/graphVersion.js.map +1 -1
  77. package/dist/runtime/nodeKinds.d.ts +5 -5
  78. package/dist/runtime/reconcile.js +4 -4
  79. package/dist/runtime/reconcile.js.map +1 -1
  80. package/dist/runtime/registry.d.ts +3 -3
  81. package/dist/runtime/resolveInputs.d.ts +10 -7
  82. package/dist/runtime/resolveInputs.js +8 -9
  83. package/dist/runtime/resolveInputs.js.map +1 -1
  84. package/dist/runtime/runProcedure.d.ts +2 -1
  85. package/dist/runtime/runProcedure.js.map +1 -1
  86. package/dist/runtime/schemaProperties.d.ts +1 -9
  87. package/dist/runtime/schemaProperties.js +1 -1
  88. package/dist/runtime/schemaProperties.js.map +1 -1
  89. package/dist/runtime/sideEffects.d.ts +2 -2
  90. package/dist/runtime/subscriptions.d.ts +6 -4
  91. package/dist/runtime/subscriptions.js.map +1 -1
  92. package/dist/runtime/trace.d.ts +5 -2
  93. package/dist/runtime/trace.js +16 -9
  94. package/dist/runtime/trace.js.map +1 -1
  95. package/dist/runtime/triggerHandles.d.ts +1 -3
  96. package/dist/runtime/triggerHandles.js +1 -1
  97. package/dist/runtime/triggerHandles.js.map +1 -1
  98. package/dist/types/dataValue.d.ts +5 -6
  99. package/dist/types/dataValue.js +20 -0
  100. package/dist/types/dataValue.js.map +1 -1
  101. package/dist/types/graph.d.ts +11 -12
  102. package/dist/types/graph.js.map +1 -1
  103. package/dist/types/runLog.d.ts +8 -7
  104. package/dist/types/runLog.js.map +1 -1
  105. package/frontend-vue/package.json +4 -4
  106. package/frontend-vue/pnpm-lock.yaml +162 -147
  107. package/frontend-vue/tests/api-error-presentation.test.cjs +3 -6
  108. package/package.json +15 -12
  109. package/skills/dms-automation/SKILL.md +1 -1
@@ -1,13 +1,10 @@
1
1
  const assert = require("node:assert/strict");
2
2
  const path = require("node:path");
3
3
  const { beforeEach, after, test } = require("node:test");
4
- const {
5
- FRONTEND,
6
- frontendRequire,
7
- } = require("../../tests/helpers/frontend.cjs");
4
+ const { FRONTEND } = require("../../tests/helpers/frontend.cjs");
8
5
  const { componentSetup, clientComposable } = require("./helpers/setup.cjs");
9
- const { ref, computed, effectScope } = frontendRequire("vue");
10
- const { createFetch } = frontendRequire("ofetch");
6
+ const { ref, computed, effectScope } = require("vue");
7
+ const { createFetch } = require("ofetch");
11
8
  const { useApiErrorPresenter } = clientComposable(
12
9
  path.join(
13
10
  FRONTEND,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/dms-automation",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Visual automation builder for the AntelopeJS DMS: procedures as node graphs started by schedules, webhooks, manual runs or DMS events, with a trace for every run.",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -43,23 +43,26 @@
43
43
  "registry": "https://registry.npmjs.org/"
44
44
  },
45
45
  "dependencies": {
46
- "@antelopejs/interface-api": ">=0.0.15 <1.0.0",
47
- "@antelopejs/interface-api-util": ">=0.1.3 <1.0.0",
48
- "@antelopejs/interface-core": ">=0.2.4 <1.0.0",
49
- "@antelopejs/interface-data-api": ">=0.4.0 <1.0.0",
50
- "@antelopejs/interface-database": ">=0.1.11 <1.0.0",
51
- "@antelopejs/interface-database-decorators": ">=0.1.10 <1.0.0",
52
- "@antelopejs/interface-dms": ">=0.9.0 <1.0.0",
53
- "@antelopejs/interface-dms-automation": ">=0.5.0 <0.6.0",
46
+ "@antelopejs/interface-api": ">=0.2.0 <1.0.0",
47
+ "@antelopejs/interface-api-util": ">=0.3.0 <1.0.0",
48
+ "@antelopejs/interface-core": ">=0.4.0 <1.0.0",
49
+ "@antelopejs/interface-data-api": ">=0.6.0 <1.0.0",
50
+ "@antelopejs/interface-database": ">=0.3.0 <1.0.0",
51
+ "@antelopejs/interface-database-decorators": ">=0.2.0 <1.0.0",
52
+ "@antelopejs/interface-dms": ">=0.12.0 <1.0.0",
53
+ "@antelopejs/interface-dms-automation": ">=0.6.0 <0.7.0",
54
54
  "defu": "^6.1.4",
55
55
  "node-cron": "^4.2.1",
56
56
  "zod": "^3.25.76"
57
57
  },
58
58
  "devDependencies": {
59
- "@antelopejs/core": "1.17.1",
60
- "@antelopejs/tooling-configs": ">=0.0.9 <1.0.0",
59
+ "@antelopejs/core": "1.20.0",
60
+ "@antelopejs/dms": ">=0.16.0 <1.0.0",
61
+ "@antelopejs/dms-frontend": ">=0.10.0 <1.0.0",
62
+ "@antelopejs/tooling-configs": ">=0.2.18 <1.0.0",
61
63
  "@types/node": "^24.0.0",
62
64
  "knip": "^6.34.0",
65
+ "mongodb-memory-server-core": "^11.0.1",
63
66
  "oxfmt": "^0.66.0",
64
67
  "oxlint": "1.81.0",
65
68
  "oxlint-tsgolint": "^7.0.2001",
@@ -96,7 +99,7 @@
96
99
  "lint:fix": "oxlint --fix && oxfmt . && cd frontend-vue && pnpm lint:fix",
97
100
  "format": "oxfmt .",
98
101
  "frontend:dev": "cd playground && pnpm frontend:dev",
99
- "release": "pnpm --filter @antelopejs/interface-dms-automation build && pnpm --dir frontend-vue install --frozen-lockfile && pnpm lint && pnpm typecheck && pnpm test:frontend-registration && pnpm run verify:interface && release-it",
102
+ "release": "pnpm --filter @antelopejs/interface-dms-automation build && pnpm --dir ../.. install --frozen-lockfile && pnpm lint && pnpm typecheck && pnpm test:frontend-registration && pnpm run verify:interface && release-it",
100
103
  "verify:interface": "node scripts/verify-interface-package.cjs",
101
104
  "knip": "knip --dependencies",
102
105
  "knip:all": "knip"
@@ -25,7 +25,7 @@ Runs procedures: a trigger starts a run, actions run along trigger edges, data n
25
25
  ## Gotchas
26
26
 
27
27
  - Webhook paths cannot overlap an existing route or start with `/api`, `/auth`, `/dms`, `/modules`, `/settings`; two enabled procedures cannot share method + path. URLs shown use the DMS `apiBaseUrl` (the API server, not the frontend server).
28
- - It needs `@antelopejs/dms` 0.11 or later (`interface-dms` 0.9 or later) and `@antelopejs/dms-frontend` 0.9; 0.6.0 is the DMS 0.10 line.
28
+ - The DMS backend and renderer releases the module runs on are in the README compatibility block and in `engines["@antelopejs/dms-frontend"]` of `frontend-vue/package.json`; 0.3 is the DMS 0.8 line.
29
29
  - **Test run** simulates only actions declaring `dryRun` (and runs `sideEffects: false` ones as is); every other action (HTTP request, module actions without `dryRun`) acts for real. The builder lists those steps and asks first; `POST …/:id/test` answers 409 with `realEffects` until called with `confirmRealEffects: true` (`POST …/:id/test-effects` `{ graph }` lists them). To make a project or module action safe to test, give it `dryRun` (see `dms-automation-interface`).
30
30
  - A re-run sends `[redacted]` where the original request held credentials.
31
31
  - Data-change triggers on a project's own tables: `database.table-watch` from `@antelopejs/dms-database` (`schema` = the `RegisterSchema` id, `table`). It needs a change feed: MongoDB **replica set** only (single node `--replSet rs0` + `rs.initiate()` + `replicaSet=rs0` in the URL); on a standalone server the procedure is Failing with "$changeStream is only supported on replica sets".