@antelopejs/dms-automation 0.6.0 → 0.7.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.
- package/README.md +3 -3
- package/dist/data/procedures-table.d.ts +11 -6
- package/dist/data/procedures-table.js +13 -6
- package/dist/data/procedures-table.js.map +1 -1
- package/dist/data/runs-table.js +0 -5
- package/dist/data/runs-table.js.map +1 -1
- package/dist/db/tables/procedure.table.d.ts +0 -1
- package/dist/db/tables/procedure.table.js +0 -4
- package/dist/db/tables/procedure.table.js.map +1 -1
- package/dist/routes/procedures.d.ts +0 -2
- package/dist/runtime/builtins/nodes/retry.js +0 -2
- package/dist/runtime/builtins/nodes/retry.js.map +1 -1
- package/dist/runtime/builtins/nodes/tryCatch.js +0 -2
- package/dist/runtime/builtins/nodes/tryCatch.js.map +1 -1
- package/dist/runtime/declaredProcedures.js +14 -90
- package/dist/runtime/declaredProcedures.js.map +1 -1
- package/dist/runtime/executionResult.d.ts +1 -1
- package/dist/runtime/executor.js +2 -31
- package/dist/runtime/executor.js.map +1 -1
- package/dist/runtime/registry.d.ts +0 -7
- package/dist/runtime/registry.js +3 -24
- package/dist/runtime/registry.js.map +1 -1
- package/dist/runtime/subscriptions.js +0 -3
- package/dist/runtime/subscriptions.js.map +1 -1
- package/dist/runtime/triggerHandles.js +0 -3
- package/dist/runtime/triggerHandles.js.map +1 -1
- package/dist/stats/health.js +2 -3
- package/dist/stats/health.js.map +1 -1
- package/frontend-vue/app/components/Editor/BottomDock.vue +0 -3
- package/frontend-vue/app/components/Editor.vue +0 -6
- package/frontend-vue/app/composables/useAutomationRuns.ts +2 -2
- package/frontend-vue/i18n/locales/dms-automation-en-GB.json +0 -3
- package/frontend-vue/i18n/locales/dms-automation-fr-FR.json +0 -3
- package/frontend-vue/package.json +3 -3
- package/frontend-vue/pnpm-lock.yaml +54 -38
- package/package.json +7 -7
- package/skills/dms-automation/SKILL.md +2 -2
- package/dist/runtime/departed.d.ts +0 -6
- package/dist/runtime/departed.js +0 -38
- package/dist/runtime/departed.js.map +0 -1
|
@@ -16,11 +16,11 @@ importers:
|
|
|
16
16
|
version: 3.5.44(typescript@5.9.3)
|
|
17
17
|
devDependencies:
|
|
18
18
|
'@antelopejs/dms':
|
|
19
|
-
specifier: '>=0.
|
|
20
|
-
version: 0.
|
|
19
|
+
specifier: '>=0.11.0 <1.0.0'
|
|
20
|
+
version: 0.11.0(@antelopejs/core@1.16.0)
|
|
21
21
|
'@antelopejs/dms-frontend':
|
|
22
|
-
specifier: '>=0.
|
|
23
|
-
version: 0.
|
|
22
|
+
specifier: '>=0.9.0 <0.10.0'
|
|
23
|
+
version: 0.9.0(@antelopejs/core@1.16.0)
|
|
24
24
|
'@antelopejs/tooling-configs':
|
|
25
25
|
specifier: '>=0.0.9 <1.0.0'
|
|
26
26
|
version: 0.0.9
|
|
@@ -69,17 +69,17 @@ packages:
|
|
|
69
69
|
engines: {node: '>=20.19'}
|
|
70
70
|
hasBin: true
|
|
71
71
|
|
|
72
|
-
'@antelopejs/dms-frontend@0.
|
|
73
|
-
resolution: {integrity: sha512-
|
|
72
|
+
'@antelopejs/dms-frontend@0.9.0':
|
|
73
|
+
resolution: {integrity: sha512-G9Ax7H7EmMM9s1KncED7Gen+4viOPiX45HqM/QGISR6kPVgWAT/aICA+71M1AmjhLwlNkzpMR2OToLIPW+s88w==}
|
|
74
74
|
engines: {node: '>=20.19.0'}
|
|
75
75
|
hasBin: true
|
|
76
76
|
peerDependencies:
|
|
77
77
|
'@antelopejs/core': '>=1.16.0 <2'
|
|
78
78
|
|
|
79
|
-
'@antelopejs/dms@0.
|
|
80
|
-
resolution: {integrity: sha512-
|
|
79
|
+
'@antelopejs/dms@0.11.0':
|
|
80
|
+
resolution: {integrity: sha512-2agf+fWoRnAwymQ8Ys+XR9N/8HEcwwRcTPAJNXP4i2sEFsuvF+t6t7f712zjbeL4YS9YbbNEMYC42KOHBgMrLQ==}
|
|
81
81
|
peerDependencies:
|
|
82
|
-
'@antelopejs/core': '>=1.
|
|
82
|
+
'@antelopejs/core': '>=1.17.0 <2'
|
|
83
83
|
peerDependenciesMeta:
|
|
84
84
|
'@antelopejs/core':
|
|
85
85
|
optional: true
|
|
@@ -98,24 +98,24 @@ packages:
|
|
|
98
98
|
'@antelopejs/interface-core@0.2.4':
|
|
99
99
|
resolution: {integrity: sha512-2qF6/KwahCQvvNuC/piUvPWD4wq2Npmco941HMg2/bMBoJKbhMH16WcXXRvPYznNSkU0U+6vqK6KE+2N5NojSA==}
|
|
100
100
|
|
|
101
|
-
'@antelopejs/interface-data-api@0.
|
|
102
|
-
resolution: {integrity: sha512-
|
|
101
|
+
'@antelopejs/interface-data-api@0.4.0':
|
|
102
|
+
resolution: {integrity: sha512-DG0/Iroi0YjBpx4goJmrQ0oU79ylSG4QdRGswh1TlP7ucgT4K3l2BhVDEln5BevkKqiiE0fycdzFJcOKMzHiRw==}
|
|
103
103
|
peerDependencies:
|
|
104
104
|
'@antelopejs/interface-api': '>=0.0.15 <1.0.0'
|
|
105
105
|
'@antelopejs/interface-api-util': '>=0.1.3 <1.0.0'
|
|
106
106
|
'@antelopejs/interface-core': '>=0.2.4 <1.0.0'
|
|
107
107
|
'@antelopejs/interface-database': '>=0.1.10 <1.0.0'
|
|
108
|
-
'@antelopejs/interface-database-decorators': '>=0.1.
|
|
108
|
+
'@antelopejs/interface-database-decorators': '>=0.1.10 <1.0.0'
|
|
109
109
|
|
|
110
|
-
'@antelopejs/interface-database-decorators@0.1.
|
|
111
|
-
resolution: {integrity: sha512-
|
|
110
|
+
'@antelopejs/interface-database-decorators@0.1.10':
|
|
111
|
+
resolution: {integrity: sha512-frdqN199ExzpoeMu+wi/y0Zc2ARADYXSFJ3+YJH5sUSCKa0U4GXfiXC36XdvBCqNjG+Kv7h+C/vjpi+r0/vqDg==}
|
|
112
112
|
peerDependencies:
|
|
113
113
|
'@antelopejs/interface-api': '>=0.0.15 <1.0.0'
|
|
114
114
|
'@antelopejs/interface-core': '>=0.2.4 <1.0.0'
|
|
115
|
-
'@antelopejs/interface-database': '>=0.1.
|
|
115
|
+
'@antelopejs/interface-database': '>=0.1.11 <1.0.0'
|
|
116
116
|
|
|
117
|
-
'@antelopejs/interface-database@0.1.
|
|
118
|
-
resolution: {integrity: sha512-
|
|
117
|
+
'@antelopejs/interface-database@0.1.11':
|
|
118
|
+
resolution: {integrity: sha512-uv6mB1Lghmlc9z+oWzntmzD1ZNBAmrj+2+7MItv6zClEolbqw5hfAt8+c3IPq2yLfWDfhpqWme2m0eTwsAm0RQ==}
|
|
119
119
|
peerDependencies:
|
|
120
120
|
'@antelopejs/interface-core': '>=0.2.4 <1.0.0'
|
|
121
121
|
|
|
@@ -124,15 +124,15 @@ packages:
|
|
|
124
124
|
peerDependencies:
|
|
125
125
|
'@antelopejs/interface-core': '>=0.2.4 <1.0.0'
|
|
126
126
|
|
|
127
|
-
'@antelopejs/interface-dms@0.
|
|
128
|
-
resolution: {integrity: sha512
|
|
127
|
+
'@antelopejs/interface-dms@0.9.0':
|
|
128
|
+
resolution: {integrity: sha512-PrLbDaToYjzNR7sbEtUA3fo6Cvn9E5HOKm06hab8LWJ9F1pcZM75uLAIhMTgnaxOIiGTvUJ+E70bq0Rd2ZDIgw==}
|
|
129
129
|
peerDependencies:
|
|
130
130
|
'@antelopejs/interface-api': '>=0.0.15 <1.0.0'
|
|
131
131
|
'@antelopejs/interface-api-util': '>=0.1.3 <1.0.0'
|
|
132
132
|
'@antelopejs/interface-core': '>=0.2.4 <1.0.0'
|
|
133
|
-
'@antelopejs/interface-data-api': '>=0.
|
|
134
|
-
'@antelopejs/interface-database': '>=0.1.
|
|
135
|
-
'@antelopejs/interface-database-decorators': '>=0.1.
|
|
133
|
+
'@antelopejs/interface-data-api': '>=0.4.0 <1.0.0'
|
|
134
|
+
'@antelopejs/interface-database': '>=0.1.11 <1.0.0'
|
|
135
|
+
'@antelopejs/interface-database-decorators': '>=0.1.10 <1.0.0'
|
|
136
136
|
'@antelopejs/interface-file-storage': '>=0.1.4 <1.0.0'
|
|
137
137
|
|
|
138
138
|
'@antelopejs/interface-email@0.0.6':
|
|
@@ -450,6 +450,14 @@ packages:
|
|
|
450
450
|
'@internationalized/number@3.6.9':
|
|
451
451
|
resolution: {integrity: sha512-GgWy2caO/+hV9sT/oCTWGHvbjmJMPT9kkXzoKRLnkEq7adghhR7UprhvY9sXrKfrp3NcDfhF6QQHXR1KfQbB8g==}
|
|
452
452
|
|
|
453
|
+
'@intlify/message-compiler@11.4.16':
|
|
454
|
+
resolution: {integrity: sha512-p4lDWmBAsi3ja+PuEfPRavYyvqkYn/Upxz7UpnyI9LgIIy8XawcGIDzN+k99Z+99etO3HmDXGeTxnJIJGgSZ+g==}
|
|
455
|
+
engines: {node: '>= 22'}
|
|
456
|
+
|
|
457
|
+
'@intlify/shared@11.4.16':
|
|
458
|
+
resolution: {integrity: sha512-xehmkbEgbbNh/V+d8r3hFup0ViaN29YTJSAfRr28C54rxjyZEO0RNQKqW7VVajj16gLdglotNjiq+sIVNtHGzw==}
|
|
459
|
+
engines: {node: '>= 22'}
|
|
460
|
+
|
|
453
461
|
'@ioredis/commands@1.10.0':
|
|
454
462
|
resolution: {integrity: sha512-UmeW7z4LfctwoQ5wkhVzgq8tXkreED2xZGpX+Bg+zA+WJFZCT6c062AfCK/Dfk81xZnnwdhJCUMkitihRaoC2Q==}
|
|
455
463
|
|
|
@@ -3300,9 +3308,10 @@ snapshots:
|
|
|
3300
3308
|
semver: 7.8.5
|
|
3301
3309
|
typescript: 5.9.3
|
|
3302
3310
|
|
|
3303
|
-
'@antelopejs/dms-frontend@0.
|
|
3311
|
+
'@antelopejs/dms-frontend@0.9.0(@antelopejs/core@1.16.0)':
|
|
3304
3312
|
dependencies:
|
|
3305
3313
|
'@antelopejs/core': 1.16.0
|
|
3314
|
+
'@intlify/message-compiler': 11.4.16
|
|
3306
3315
|
chokidar: 4.0.3
|
|
3307
3316
|
commander: 13.1.0
|
|
3308
3317
|
ignore: 7.0.12
|
|
@@ -3314,16 +3323,16 @@ snapshots:
|
|
|
3314
3323
|
'@oxc-parser/binding-linux-x64-gnu': 0.95.0
|
|
3315
3324
|
'@oxc-parser/binding-win32-x64-msvc': 0.95.0
|
|
3316
3325
|
|
|
3317
|
-
'@antelopejs/dms@0.
|
|
3326
|
+
'@antelopejs/dms@0.11.0(@antelopejs/core@1.16.0)':
|
|
3318
3327
|
dependencies:
|
|
3319
3328
|
2fa: 0.1.2
|
|
3320
3329
|
'@antelopejs/interface-api': 0.0.15(@antelopejs/interface-core@0.2.4)
|
|
3321
3330
|
'@antelopejs/interface-api-util': 0.1.3(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)
|
|
3322
3331
|
'@antelopejs/interface-core': 0.2.4
|
|
3323
|
-
'@antelopejs/interface-data-api': 0.
|
|
3324
|
-
'@antelopejs/interface-database': 0.1.
|
|
3325
|
-
'@antelopejs/interface-database-decorators': 0.1.
|
|
3326
|
-
'@antelopejs/interface-dms': 0.
|
|
3332
|
+
'@antelopejs/interface-data-api': 0.4.0(@antelopejs/interface-api-util@0.1.3(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database-decorators@0.1.10(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4)))(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4))
|
|
3333
|
+
'@antelopejs/interface-database': 0.1.11(@antelopejs/interface-core@0.2.4)
|
|
3334
|
+
'@antelopejs/interface-database-decorators': 0.1.10(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4))
|
|
3335
|
+
'@antelopejs/interface-dms': 0.9.0(57cdc4cdfc3be14a3edccd2f9b728cdb)
|
|
3327
3336
|
'@antelopejs/interface-email': 0.0.6(@antelopejs/interface-core@0.2.4)
|
|
3328
3337
|
'@antelopejs/interface-file-storage': 0.1.4(@antelopejs/interface-core@0.2.4)
|
|
3329
3338
|
archiver: 7.0.1
|
|
@@ -3360,23 +3369,23 @@ snapshots:
|
|
|
3360
3369
|
dependencies:
|
|
3361
3370
|
reflect-metadata: 0.2.2
|
|
3362
3371
|
|
|
3363
|
-
'@antelopejs/interface-data-api@0.
|
|
3372
|
+
'@antelopejs/interface-data-api@0.4.0(@antelopejs/interface-api-util@0.1.3(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database-decorators@0.1.10(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4)))(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4))':
|
|
3364
3373
|
dependencies:
|
|
3365
3374
|
'@antelopejs/interface-api': 0.0.15(@antelopejs/interface-core@0.2.4)
|
|
3366
3375
|
'@antelopejs/interface-api-util': 0.1.3(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)
|
|
3367
3376
|
'@antelopejs/interface-core': 0.2.4
|
|
3368
|
-
'@antelopejs/interface-database': 0.1.
|
|
3369
|
-
'@antelopejs/interface-database-decorators': 0.1.
|
|
3377
|
+
'@antelopejs/interface-database': 0.1.11(@antelopejs/interface-core@0.2.4)
|
|
3378
|
+
'@antelopejs/interface-database-decorators': 0.1.10(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4))
|
|
3370
3379
|
|
|
3371
|
-
'@antelopejs/interface-database-decorators@0.1.
|
|
3380
|
+
'@antelopejs/interface-database-decorators@0.1.10(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4))':
|
|
3372
3381
|
dependencies:
|
|
3373
3382
|
'@antelopejs/interface-api': 0.0.15(@antelopejs/interface-core@0.2.4)
|
|
3374
3383
|
'@antelopejs/interface-core': 0.2.4
|
|
3375
|
-
'@antelopejs/interface-database': 0.1.
|
|
3384
|
+
'@antelopejs/interface-database': 0.1.11(@antelopejs/interface-core@0.2.4)
|
|
3376
3385
|
randomstring: 1.3.2
|
|
3377
3386
|
reflect-metadata: 0.2.2
|
|
3378
3387
|
|
|
3379
|
-
'@antelopejs/interface-database@0.1.
|
|
3388
|
+
'@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4)':
|
|
3380
3389
|
dependencies:
|
|
3381
3390
|
'@antelopejs/interface-core': 0.2.4
|
|
3382
3391
|
|
|
@@ -3385,14 +3394,14 @@ snapshots:
|
|
|
3385
3394
|
'@antelopejs/interface-core': 0.2.4
|
|
3386
3395
|
optional: true
|
|
3387
3396
|
|
|
3388
|
-
'@antelopejs/interface-dms@0.
|
|
3397
|
+
'@antelopejs/interface-dms@0.9.0(57cdc4cdfc3be14a3edccd2f9b728cdb)':
|
|
3389
3398
|
dependencies:
|
|
3390
3399
|
'@antelopejs/interface-api': 0.0.15(@antelopejs/interface-core@0.2.4)
|
|
3391
3400
|
'@antelopejs/interface-api-util': 0.1.3(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)
|
|
3392
3401
|
'@antelopejs/interface-core': 0.2.4
|
|
3393
|
-
'@antelopejs/interface-data-api': 0.
|
|
3394
|
-
'@antelopejs/interface-database': 0.1.
|
|
3395
|
-
'@antelopejs/interface-database-decorators': 0.1.
|
|
3402
|
+
'@antelopejs/interface-data-api': 0.4.0(@antelopejs/interface-api-util@0.1.3(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database-decorators@0.1.10(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4)))(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4))
|
|
3403
|
+
'@antelopejs/interface-database': 0.1.11(@antelopejs/interface-core@0.2.4)
|
|
3404
|
+
'@antelopejs/interface-database-decorators': 0.1.10(@antelopejs/interface-api@0.0.15(@antelopejs/interface-core@0.2.4))(@antelopejs/interface-core@0.2.4)(@antelopejs/interface-database@0.1.11(@antelopejs/interface-core@0.2.4))
|
|
3396
3405
|
'@antelopejs/interface-file-storage': 0.1.4(@antelopejs/interface-core@0.2.4)
|
|
3397
3406
|
randomstring: 1.3.2
|
|
3398
3407
|
zod: 3.24.4
|
|
@@ -3637,6 +3646,13 @@ snapshots:
|
|
|
3637
3646
|
dependencies:
|
|
3638
3647
|
'@swc/helpers': 0.5.23
|
|
3639
3648
|
|
|
3649
|
+
'@intlify/message-compiler@11.4.16':
|
|
3650
|
+
dependencies:
|
|
3651
|
+
'@intlify/shared': 11.4.16
|
|
3652
|
+
source-map-js: 1.2.2
|
|
3653
|
+
|
|
3654
|
+
'@intlify/shared@11.4.16': {}
|
|
3655
|
+
|
|
3640
3656
|
'@ioredis/commands@1.10.0':
|
|
3641
3657
|
optional: true
|
|
3642
3658
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/dms-automation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
"@antelopejs/interface-api": ">=0.0.15 <1.0.0",
|
|
47
47
|
"@antelopejs/interface-api-util": ">=0.1.3 <1.0.0",
|
|
48
48
|
"@antelopejs/interface-core": ">=0.2.4 <1.0.0",
|
|
49
|
-
"@antelopejs/interface-data-api": ">=0.
|
|
50
|
-
"@antelopejs/interface-database": ">=0.1.
|
|
51
|
-
"@antelopejs/interface-database-decorators": ">=0.1.
|
|
52
|
-
"@antelopejs/interface-dms": ">=0.
|
|
53
|
-
"@antelopejs/interface-dms-automation": ">=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",
|
|
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.
|
|
59
|
+
"@antelopejs/core": "1.17.1",
|
|
60
60
|
"@antelopejs/tooling-configs": ">=0.0.9 <1.0.0",
|
|
61
61
|
"@types/node": "^24.0.0",
|
|
62
62
|
"knip": "^6.34.0",
|
|
@@ -15,7 +15,7 @@ Runs procedures: a trigger starts a run, actions run along trigger edges, data n
|
|
|
15
15
|
- Pages (owner-only): Overview, Procedures, Builder (`/modules/automation/builder?selected=<id>`), Run history, Run trace (`/modules/automation/trace?run=<id>`), Library.
|
|
16
16
|
- Overview, Run history and Procedures are live pages whose first block is the DMS `PageToolbar` (`@antelopejs/interface-dms/base/page-toolbar`): updated label + Live / Pause, plus on Overview and Run history the shared 24H / 7D / 30D period (`rememberKey: "automation"`, comparison menu over `previous-period` (default) / `none`, plus `previous-year` only when `runs.retentionDays` reaches a year and 30 days (or is 0), which `pageToolbar()` draws as a menu; the KPI routes read the `compareFrom` / `compareTo` the scope resolves and drop them on `comparison=none` or when no run kept reaches back to them; the Overview's runs chart (`/stats/runs-per-day`) does the same and answers `comparisonSeries`, the compared runs per bucket as a dashed `type: "line"` series over the stacked bars, plus `previousValue` / `delta` like the Runs KPI). Every period-scoped KPI and chart on those pages shows the comparison; the lists (attention, recent runs, procedure counts, triggers) are not period comparisons. No layout shift: each block's skeleton is the size of what it loads. The recent runs and procedure counts draw `RECENT_RUNS` / `PROCEDURE_COUNT_LINES` skeleton rows (from `src/stats/overview.ts`, the counts the routes send), the runs chart carries a `description` that holds the line under its total when no comparison answers, and the attention list draws two skeleton rows shaped like loaded ones, as tall as its empty state. Live: the `topics` block calls `refreshLivePageBlocks()` on each `automation.runs` / `automation.procedures` event, so every block reads through the page's live gate (no block carries its own `realtimeTopic`); the Run history and Procedures tables set `liveHold`. Its block id stays `live` (children `topics`, `toggle`, `period`, placed by `pageToolbar()` with `live.childId: "toggle"`) on Overview and Run history, `toolbar` on Procedures.
|
|
17
17
|
- API under `/api/automation` (owner-only). A procedure exported from the builder (`{ name, description, graph }`) is re-created with `POST /api/automation/procedures/import` `{ json }` as a disabled draft; `PUT …/:id/enabled` `{ enabled }` enables it; `POST …/:id/run-now` `{ payload }` runs it.
|
|
18
|
-
- Procedures shipped by a project or module as code: `DeclareProcedure({ id, name, description, graph, enabled })` from `@antelopejs/interface-dms-automation`, called in `start()`
|
|
18
|
+
- Procedures shipped by a project or module as code: `DeclareProcedure({ id, name, description, graph, enabled })` from `@antelopejs/interface-dms-automation`, called in `start()` (keyed by `id`, which becomes the procedure id; created once, then never touched; enabled = armed at once). Never insert into the module's tables directly: not armed until restart, couples to the internal schema. Details: the `dms-automation-interface` skill.
|
|
19
19
|
- States: failing (last run failed, or the trigger cannot be armed), degraded (a failure in 7 days), healthy, paused, draft. Test runs never count.
|
|
20
20
|
|
|
21
21
|
## Config (`antelope.config.ts`, all optional)
|
|
@@ -30,7 +30,7 @@ Runs procedures: a trigger starts a run, actions run along trigger edges, data n
|
|
|
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".
|
|
32
32
|
- A trigger type registered after the module armed its procedures (start order, hot reload) arms them on registration; "not available" that lasts means the registering module is not loaded.
|
|
33
|
-
- A module stopping or hot-reloading has its triggers torn down as its types are unregistered
|
|
33
|
+
- A module stopping or hot-reloading has its triggers torn down as its types are unregistered ; a run on its steps fails, like any other error.
|
|
34
34
|
- From backend code, `InvokeProcedure` needs a manual trigger node; `RunProcedure(id, { payload?, triggerNodeId? })` runs any procedure (cron-only, webhook-only…) as the builder's Run now and resolves to `{ runId, status, errorMessage? }`.
|
|
35
35
|
- In a Redis cluster, singleton triggers (cron, table watch) are fire-once, not exactly-once: make their effects idempotent.
|
|
36
36
|
- Keep credentials out of graphs: every builder user sees them.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { GraphNode } from "../types/graph";
|
|
2
|
-
export declare function isModuleGone(err: unknown): boolean;
|
|
3
|
-
export declare class RunCancelledError extends Error {
|
|
4
|
-
name: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function departure(err: unknown, node: GraphNode, typesMark: number): RunCancelledError | undefined;
|
package/dist/runtime/departed.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RunCancelledError = void 0;
|
|
4
|
-
exports.isModuleGone = isModuleGone;
|
|
5
|
-
exports.departure = departure;
|
|
6
|
-
const interface_core_1 = require("@antelopejs/interface-core");
|
|
7
|
-
const registry_1 = require("./registry");
|
|
8
|
-
const MAX_CAUSES = 8;
|
|
9
|
-
function isModuleGone(err) {
|
|
10
|
-
let current = err;
|
|
11
|
-
for (let depth = 0; current && depth < MAX_CAUSES; depth++) {
|
|
12
|
-
const { code, cause } = current;
|
|
13
|
-
if (code === interface_core_1.MODULE_CONTEXT_INVALIDATED_CODE)
|
|
14
|
-
return true;
|
|
15
|
-
current = cause;
|
|
16
|
-
}
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
class RunCancelledError extends Error {
|
|
20
|
-
name = "RunCancelledError";
|
|
21
|
-
}
|
|
22
|
-
exports.RunCancelledError = RunCancelledError;
|
|
23
|
-
function departure(err, node, typesMark) {
|
|
24
|
-
if (err instanceof RunCancelledError)
|
|
25
|
-
return err;
|
|
26
|
-
const step = node.typeId ?? node.kind;
|
|
27
|
-
if (isModuleGone(err)) {
|
|
28
|
-
return new RunCancelledError(`the module behind "${step}" was unloaded while the run was on`, { cause: err });
|
|
29
|
-
}
|
|
30
|
-
if (node.kind === "action" &&
|
|
31
|
-
node.typeId &&
|
|
32
|
-
!registry_1.registry.getAction(node.typeId) &&
|
|
33
|
-
registry_1.registry.removedSince("action", node.typeId, typesMark)) {
|
|
34
|
-
return new RunCancelledError(`"${step}" was unregistered while the run was on`, { cause: err });
|
|
35
|
-
}
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=departed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"departed.js","sourceRoot":"","sources":["../../src/runtime/departed.ts"],"names":[],"mappings":";;;AAeA,oCAUC;AAgBD,8BAyBC;AAlED,+DAA6E;AAE7E,yCAAsC;AAUtC,MAAM,UAAU,GAAG,CAAC,CAAC;AAGrB,SAAgB,YAAY,CAAC,GAAY;IACvC,IAAI,OAAO,GAAG,GAAG,CAAC;IAClB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,OAAO,IAAI,KAAK,GAAG,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC;QAG3D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAA8C,CAAC;QACvE,IAAI,IAAI,KAAK,gDAA+B;YAAE,OAAO,IAAI,CAAC;QAC1D,OAAO,GAAG,KAAK,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAMD,MAAa,iBAAkB,SAAQ,KAAK;IACjC,IAAI,GAAG,mBAAmB,CAAC;CACrC;AAFD,8CAEC;AAQD,SAAgB,SAAS,CACvB,GAAY,EACZ,IAAe,EACf,SAAiB;IAEjB,IAAI,GAAG,YAAY,iBAAiB;QAAE,OAAO,GAAG,CAAC;IACjD,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC;IACtC,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,iBAAiB,CAC1B,sBAAsB,IAAI,qCAAqC,EAC/D,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;IACJ,CAAC;IACD,IACE,IAAI,CAAC,IAAI,KAAK,QAAQ;QACtB,IAAI,CAAC,MAAM;QACX,CAAC,mBAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;QAChC,mBAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,EACvD,CAAC;QACD,OAAO,IAAI,iBAAiB,CAC1B,IAAI,IAAI,yCAAyC,EACjD,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|