@futdevpro/fsm-dynamo 1.15.7 โ 1.15.9
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/.cursor/rules/_ag_frontend-structure.mdc +5 -5
- package/.dynamo/version-bump.config.json +5 -0
- package/.github/workflows/main.yml +427 -394
- package/.husky/pre-commit +1 -0
- package/build/_models/control-models/error.control-model.d.ts +5 -0
- package/build/_models/control-models/error.control-model.d.ts.map +1 -1
- package/build/_models/control-models/error.control-model.js +16 -0
- package/build/_models/control-models/error.control-model.js.map +1 -1
- package/build/_models/data-models/errors.data-model.d.ts +2 -1
- package/build/_models/data-models/errors.data-model.d.ts.map +1 -1
- package/build/_models/data-models/errors.data-model.js +4 -3
- package/build/_models/data-models/errors.data-model.js.map +1 -1
- package/build/_models/types/db-filter.type.d.ts +1 -1
- package/build/_models/types/db-filter.type.d.ts.map +1 -1
- package/nodemon.json +2 -1
- package/package.json +64 -34
- package/pipeline.cicd.config.json +128 -0
- package/src/_collections/utils/async.util.spec.ts +354 -0
- package/src/_collections/utils/data.util.spec.ts +345 -0
- package/src/_collections/utils/json-error-helper.util.spec.ts +521 -0
- package/src/_collections/utils/math/box-bounds.spec.ts +74 -0
- package/src/_collections/utils/utilities.util.spec.ts +201 -0
- package/src/_models/control-models/error.control-model.spec.ts +37 -0
- package/src/_models/control-models/error.control-model.ts +18 -0
- package/src/_models/control-models/http/http-error-response.control-model.spec.ts +116 -0
- package/src/_models/control-models/http/http-headers.control-model.spec.ts +25 -0
- package/src/_models/control-models/http/http-response.model-base.spec.ts +46 -0
- package/src/_models/control-models/server-status.control-model.spec.ts +66 -0
- package/src/_models/control-models/service-endpoint-settings-base.control-model.spec.ts +145 -0
- package/src/_models/data-models/errors.data-model.spec.ts +71 -0
- package/src/_models/data-models/errors.data-model.ts +4 -4
- package/src/_models/data-models/metadata.data-model.spec.ts +184 -0
- package/src/_models/types/db-filter.type.ts +1 -2
- package/src/_modules/ai/_modules/anthropic/_models/aai-call-settings.control-model.spec.ts +28 -0
- package/src/_modules/ai/_modules/anthropic/_models/aai-settings.control-model.spec.ts +22 -0
- package/src/_modules/ai/_modules/google-ai/_models/gai-call-settings.control-model.spec.ts +28 -0
- package/src/_modules/ai/_modules/google-ai/_models/gai-settings.control-model.spec.ts +22 -0
- package/src/_modules/ai/_modules/local-ai/_models/lai-call-settings.control-model.spec.ts +28 -0
- package/src/_modules/ai/_modules/local-ai/_models/lai-settings.control-model.spec.ts +22 -0
- package/src/_modules/ai/_modules/open-ai/_models/oai-call-settings.control-model.spec.ts +28 -0
- package/src/_modules/ai/_modules/open-ai/_models/oai-settings.control-model.spec.ts +22 -0
- package/src/_modules/ci-tools/_models/cit-ci-result-info.data-models.spec.ts +58 -0
- package/src/_modules/data-handler/_models/data-handler-settings.control-model.spec.ts +110 -0
- package/src/_modules/data-handler/_models/data-handler.control-model.spec.ts +445 -0
- package/src/_modules/data-handler/_models/data-list-handler.control-model.spec.ts +263 -0
- package/src/_modules/data-handler/_models/data-search-handler.control-model.spec.ts +417 -0
- package/src/_modules/data-handler/_models/list-collector-data-handler.control-model.spec.ts +374 -0
- package/src/_modules/messaging/_models/msg-conversation.data-model.spec.ts +69 -0
- package/src/_modules/messaging/_models/msg-message.data-model.spec.ts +79 -0
- package/src/_modules/pipe/_collections/utils/pip-json-pipe.util.spec.ts +62 -0
- package/src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.ts +10 -3
- package/futdevpro-fsm-dynamo-01.15.7.tgz +0 -0
|
@@ -1,400 +1,433 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
LATEST_VERSION: 0.0.0
|
|
17
|
-
VERSION_PUBLISHED: true
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# Dynamo-FSM CI/CD โ Overseer Pipeline Trigger
|
|
3
|
+
# =============================================================================
|
|
4
|
+
# Ez a workflow CSAK egy webhook-ot kuld az Overseer-nek es AZONNAL kilep.
|
|
5
|
+
# A pipeline-t az Overseer FDP Runner-ek futtatjak (nem a GitHub Actions).
|
|
6
|
+
#
|
|
7
|
+
# A regi workflow a fajl vegen kommentben megtalalhato (fallback).
|
|
8
|
+
# =============================================================================
|
|
9
|
+
|
|
10
|
+
name: Trigger Pipeline
|
|
11
|
+
on:
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
# Az org-szintu GitHub webhook kozvetlenul triggereli az Overseer-t.
|
|
14
|
+
# Ez a workflow csak manualis fallback (workflow_dispatch).
|
|
15
|
+
|
|
20
16
|
jobs:
|
|
21
|
-
|
|
22
|
-
name:
|
|
17
|
+
trigger:
|
|
18
|
+
name: Overseer Trigger
|
|
23
19
|
runs-on: ubuntu-latest
|
|
24
|
-
|
|
25
|
-
timeout-minutes: 20
|
|
26
|
-
outputs:
|
|
27
|
-
start: ${{ steps.mark_start.outputs.started }}
|
|
20
|
+
timeout-minutes: 1
|
|
28
21
|
steps:
|
|
29
22
|
- uses: actions/checkout@v4
|
|
30
|
-
- id: mark_start
|
|
31
|
-
run: echo "started=$(date +%s)" >> "$GITHUB_OUTPUT"
|
|
32
|
-
- name: Send Discord start notification
|
|
33
|
-
uses: futdevpro/fdp-github-actions/discord-start-notification@latest
|
|
34
|
-
with:
|
|
35
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
36
|
-
APPLICATION_NAME: "Dynamo-FSM"
|
|
37
|
-
APPLICATION_EMOJI: "๐งฑ"
|
|
38
|
-
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
|
39
|
-
EVENT_DATETIME: ${{ github.event.head_commit.timestamp }}
|
|
40
|
-
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
|
41
|
-
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
|
42
|
-
|
|
43
|
-
notification0_fail_report:
|
|
44
|
-
name: ๐ฃ Discord Start Notification Fail Report
|
|
45
|
-
runs-on: ubuntu-latest
|
|
46
|
-
#runs-on: plo-koon
|
|
47
|
-
timeout-minutes: 20
|
|
48
|
-
if: always() && needs.notification0.result == 'failure'
|
|
49
|
-
needs: [notification0]
|
|
50
|
-
steps:
|
|
51
|
-
- name: send custom message with args
|
|
52
|
-
uses: appleboy/discord-action@master
|
|
53
|
-
with:
|
|
54
|
-
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
|
55
|
-
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
|
56
|
-
message: |
|
|
57
|
-
โโโ๐งฑ Failed to send Discord start notification for ${{ github.repository }}! [๐](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
|
|
58
|
-
|
|
59
|
-
check_secrets:
|
|
60
|
-
name: ๐ Check Required Secrets and Variables
|
|
61
|
-
#runs-on: ubuntu-latest
|
|
62
|
-
runs-on: plo-koon
|
|
63
|
-
timeout-minutes: 20
|
|
64
|
-
steps:
|
|
65
|
-
- name: Check Required Secrets and Variables
|
|
66
|
-
uses: futdevpro/fdp-github-actions/check-secrets-and-variables@latest
|
|
67
|
-
with:
|
|
68
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
69
|
-
ITEMS_TO_CHECK: |
|
|
70
|
-
[
|
|
71
|
-
{
|
|
72
|
-
"valueName": "NPM_TOKEN",
|
|
73
|
-
"value": "${{ secrets.NPM_TOKEN }}",
|
|
74
|
-
"type": "SECRET"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"valueName": "DISCORD_WEBHOOK_ID",
|
|
78
|
-
"value": "${{ secrets.DISCORD_WEBHOOK_ID }}",
|
|
79
|
-
"type": "SECRET"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"valueName": "DISCORD_WEBHOOK_TOKEN",
|
|
83
|
-
"value": "${{ secrets.DISCORD_WEBHOOK_TOKEN }}",
|
|
84
|
-
"type": "SECRET"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"valueName": "OVERSEER_SECRET_KEY",
|
|
88
|
-
"value": "${{ secrets.OVERSEER_SECRET_KEY }}",
|
|
89
|
-
"type": "SECRET"
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
"valueName": "OVERSEER_URL",
|
|
94
|
-
"value": "${{ vars.OVERSEER_URL }}",
|
|
95
|
-
"type": "VARIABLE"
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
|
|
99
|
-
check_dev_leftovers:
|
|
100
|
-
name: ๐ Check Dev leftovers
|
|
101
|
-
#runs-on: ubuntu-latest
|
|
102
|
-
runs-on: plo-koon
|
|
103
|
-
timeout-minutes: 20
|
|
104
|
-
steps:
|
|
105
|
-
- name: Checkout code
|
|
106
|
-
uses: actions/checkout@v4
|
|
107
23
|
|
|
108
|
-
- name:
|
|
109
|
-
uses: actions/
|
|
24
|
+
- name: Trigger Overseer Pipeline
|
|
25
|
+
uses: futdevpro/fdp-github-actions/overseer-trigger@master
|
|
110
26
|
with:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
27
|
+
OVERSEER_WEBHOOK_URL: ${{ vars.OVERSEER_URL }}/pipeline-runner/webhook/github
|
|
28
|
+
OVERSEER_WEBHOOK_SECRET: ${{ secrets.OVERSEER_SECRET_KEY }}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# =============================================================================
|
|
32
|
+
# PREVIOUS: Full GitHub Actions Pipeline (preserved for reference/fallback)
|
|
33
|
+
# =============================================================================
|
|
34
|
+
# name: Test and Deploy
|
|
35
|
+
# on:
|
|
36
|
+
# push:
|
|
37
|
+
# branches:
|
|
38
|
+
# - '**'
|
|
39
|
+
# permissions:
|
|
40
|
+
# actions: read
|
|
41
|
+
# id-token: write
|
|
42
|
+
# contents: read
|
|
43
|
+
# checks: write
|
|
44
|
+
# issues: read
|
|
45
|
+
# pull-requests: write
|
|
46
|
+
# env:
|
|
47
|
+
# PACKAGE_NAME: ''
|
|
48
|
+
# THIS_VERSION: 0.0.0
|
|
49
|
+
# LATEST_VERSION: 0.0.0
|
|
50
|
+
# VERSION_PUBLISHED: true
|
|
51
|
+
#
|
|
52
|
+
#
|
|
53
|
+
# jobs:
|
|
54
|
+
# notification0:
|
|
55
|
+
# name: ๐น Discord start Notification
|
|
56
|
+
# runs-on: ubuntu-latest
|
|
57
|
+
# #runs-on: plo-koon
|
|
58
|
+
# timeout-minutes: 20
|
|
59
|
+
# outputs:
|
|
60
|
+
# start: ${{ steps.mark_start.outputs.started }}
|
|
61
|
+
# steps:
|
|
62
|
+
# - uses: actions/checkout@v4
|
|
63
|
+
# - id: mark_start
|
|
64
|
+
# run: echo "started=$(date +%s)" >> "$GITHUB_OUTPUT"
|
|
65
|
+
# - name: Send Discord start notification
|
|
66
|
+
# uses: futdevpro/fdp-github-actions/discord-start-notification@latest
|
|
67
|
+
# with:
|
|
68
|
+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
69
|
+
# APPLICATION_NAME: "Dynamo-FSM"
|
|
70
|
+
# APPLICATION_EMOJI: "๐งฑ"
|
|
71
|
+
# COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
|
|
72
|
+
# EVENT_DATETIME: ${{ github.event.head_commit.timestamp }}
|
|
73
|
+
# DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
|
74
|
+
# DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
|
75
|
+
#
|
|
76
|
+
# notification0_fail_report:
|
|
77
|
+
# name: ๐ฃ Discord Start Notification Fail Report
|
|
78
|
+
# runs-on: ubuntu-latest
|
|
79
|
+
# #runs-on: plo-koon
|
|
80
|
+
# timeout-minutes: 20
|
|
81
|
+
# if: always() && needs.notification0.result == 'failure'
|
|
82
|
+
# needs: [notification0]
|
|
83
|
+
# steps:
|
|
84
|
+
# - name: send custom message with args
|
|
85
|
+
# uses: appleboy/discord-action@master
|
|
86
|
+
# with:
|
|
87
|
+
# webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
|
88
|
+
# webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
|
89
|
+
# message: |
|
|
90
|
+
# โโโ๐งฑ Failed to send Discord start notification for ${{ github.repository }}! [๐](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
|
|
91
|
+
#
|
|
92
|
+
# check_secrets:
|
|
93
|
+
# name: ๐ Check Required Secrets and Variables
|
|
94
|
+
# #runs-on: ubuntu-latest
|
|
95
|
+
# runs-on: plo-koon
|
|
96
|
+
# timeout-minutes: 20
|
|
97
|
+
# steps:
|
|
98
|
+
# - name: Check Required Secrets and Variables
|
|
99
|
+
# uses: futdevpro/fdp-github-actions/check-secrets-and-variables@latest
|
|
100
|
+
# with:
|
|
101
|
+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
102
|
+
# ITEMS_TO_CHECK: |
|
|
103
|
+
# [
|
|
104
|
+
# {
|
|
105
|
+
# "valueName": "NPM_TOKEN",
|
|
106
|
+
# "value": "${{ secrets.NPM_TOKEN }}",
|
|
107
|
+
# "type": "SECRET"
|
|
108
|
+
# },
|
|
109
|
+
# {
|
|
110
|
+
# "valueName": "DISCORD_WEBHOOK_ID",
|
|
111
|
+
# "value": "${{ secrets.DISCORD_WEBHOOK_ID }}",
|
|
112
|
+
# "type": "SECRET"
|
|
113
|
+
# },
|
|
114
|
+
# {
|
|
115
|
+
# "valueName": "DISCORD_WEBHOOK_TOKEN",
|
|
116
|
+
# "value": "${{ secrets.DISCORD_WEBHOOK_TOKEN }}",
|
|
117
|
+
# "type": "SECRET"
|
|
118
|
+
# },
|
|
119
|
+
# {
|
|
120
|
+
# "valueName": "OVERSEER_SECRET_KEY",
|
|
121
|
+
# "value": "${{ secrets.OVERSEER_SECRET_KEY }}",
|
|
122
|
+
# "type": "SECRET"
|
|
123
|
+
# },
|
|
124
|
+
#
|
|
125
|
+
# {
|
|
126
|
+
# "valueName": "OVERSEER_URL",
|
|
127
|
+
# "value": "${{ vars.OVERSEER_URL }}",
|
|
128
|
+
# "type": "VARIABLE"
|
|
129
|
+
# }
|
|
130
|
+
# ]
|
|
131
|
+
#
|
|
132
|
+
# check_dev_leftovers:
|
|
133
|
+
# name: ๐ Check Dev leftovers
|
|
134
|
+
# #runs-on: ubuntu-latest
|
|
135
|
+
# runs-on: plo-koon
|
|
136
|
+
# timeout-minutes: 20
|
|
137
|
+
# steps:
|
|
138
|
+
# - name: Checkout code
|
|
139
|
+
# uses: actions/checkout@v4
|
|
140
|
+
#
|
|
141
|
+
# - name: Install Node.js
|
|
142
|
+
# uses: actions/setup-node@v2
|
|
143
|
+
# with:
|
|
144
|
+
# node-version: '16'
|
|
145
|
+
#
|
|
146
|
+
# # TODO: Check build version (to ALL packages)
|
|
147
|
+
# - name: Check build folder
|
|
148
|
+
# run: |
|
|
149
|
+
# node -e "
|
|
150
|
+
# const buildFolder = './build/';
|
|
151
|
+
# const fs = require('fs');
|
|
152
|
+
#
|
|
153
|
+
# fs.readdir(buildFolder, (err, files) => {
|
|
154
|
+
# if (!files?.length) {
|
|
155
|
+
# console.error(
|
|
156
|
+
# 'FDPError: ./build folder is MISSING!' +
|
|
157
|
+
# '\nbuild the project locally before push!'
|
|
158
|
+
# );
|
|
159
|
+
# process.exit(1);
|
|
160
|
+
# }
|
|
161
|
+
#
|
|
162
|
+
# if (files.includes('dynamo-fsm')) {
|
|
163
|
+
# console.error(
|
|
164
|
+
# 'FDPError: ./build copntains dynamo-fsm folder which means this is a local dev build!' +
|
|
165
|
+
# '\nrebuild the project locally before push!'
|
|
166
|
+
# );
|
|
167
|
+
# process.exit(1);
|
|
168
|
+
# }
|
|
169
|
+
# });
|
|
170
|
+
# "
|
|
171
|
+
#
|
|
172
|
+
# test:
|
|
173
|
+
# name: ๐งช Test Build
|
|
174
|
+
# runs-on: ubuntu-latest
|
|
175
|
+
# needs: [ check_dev_leftovers ]
|
|
176
|
+
# timeout-minutes: 20
|
|
177
|
+
# steps:
|
|
178
|
+
# - name: Checkout code
|
|
179
|
+
# uses: actions/checkout@v4
|
|
180
|
+
#
|
|
181
|
+
# - name: Set NPM RC
|
|
182
|
+
# run: |
|
|
183
|
+
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
184
|
+
#
|
|
185
|
+
# - name: Get safe-chain version
|
|
186
|
+
# run: |
|
|
187
|
+
# VERSION=$(curl -s https://api.github.com/repos/AikidoSec/safe-chain/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/^v//')
|
|
188
|
+
# echo "SAFE_CHAIN_VERSION=$VERSION" >> $GITHUB_ENV
|
|
189
|
+
#
|
|
190
|
+
# - name: Install safe-chain
|
|
191
|
+
# run: |
|
|
192
|
+
# curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
|
|
193
|
+
#
|
|
194
|
+
# - name: Install pnpm
|
|
195
|
+
# run: |
|
|
196
|
+
# npm i -g pnpm
|
|
197
|
+
#
|
|
198
|
+
# - name: Install Packages
|
|
199
|
+
# run: |
|
|
200
|
+
# pnpm i --safe-chain-skip-minimum-package-age
|
|
201
|
+
#
|
|
202
|
+
# - name: Build
|
|
203
|
+
# run: |
|
|
204
|
+
# npx tsc
|
|
205
|
+
#
|
|
206
|
+
# - name: Install Jasmine
|
|
207
|
+
# run: |
|
|
208
|
+
# npm i -g jasmine
|
|
209
|
+
#
|
|
210
|
+
# - name: Test
|
|
211
|
+
# run: |
|
|
212
|
+
# jasmine
|
|
213
|
+
#
|
|
214
|
+
# - name: Test Pack
|
|
215
|
+
# run: |
|
|
216
|
+
# pnpm pack
|
|
217
|
+
#
|
|
218
|
+
#
|
|
219
|
+
# check_version:
|
|
220
|
+
# name: ๐ Check Version
|
|
221
|
+
# needs: [ test ]
|
|
222
|
+
# #runs-on: ubuntu-latest
|
|
223
|
+
# runs-on: plo-koon
|
|
224
|
+
# timeout-minutes: 20
|
|
225
|
+
# outputs:
|
|
226
|
+
# version_published: ${{ steps.version_check_results.outputs.version_published }}
|
|
227
|
+
# steps:
|
|
228
|
+
# - name: Checkout code
|
|
229
|
+
# uses: actions/checkout@v4
|
|
230
|
+
#
|
|
231
|
+
# - name: Set Package Name
|
|
232
|
+
# run: |
|
|
233
|
+
# echo "PACKAGE_NAME=$(node -p -e "require('./package.json').name")" >> $GITHUB_ENV
|
|
234
|
+
#
|
|
235
|
+
# - name: Set RC
|
|
236
|
+
# run: |
|
|
237
|
+
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
238
|
+
#
|
|
239
|
+
# - name: Get This Version
|
|
240
|
+
# run: |
|
|
241
|
+
# RAW_THIS_VERSION=$(node -p -e "require('./package.json').version")
|
|
242
|
+
# # replace ALL: 'v0' with '', '01' with '1', '.0' with '.'
|
|
243
|
+
# RAW_THIS_VERSION=$(echo $RAW_THIS_VERSION | sed 's:v0::g' | sed 's:01:1:g' | sed -e 's:\.0:\.:g')
|
|
244
|
+
# echo "THIS_VERSION=$RAW_THIS_VERSION" >> $GITHUB_ENV
|
|
245
|
+
#
|
|
246
|
+
# - name: Get Latest Version
|
|
247
|
+
# run: |
|
|
248
|
+
# echo "LATEST_VERSION=$(npm view ${{ env.PACKAGE_NAME }} version)" >> $GITHUB_ENV
|
|
249
|
+
#
|
|
250
|
+
# - name: Check All Versions
|
|
251
|
+
# run: |
|
|
252
|
+
# ALL_VERSIONS=$(npm view ${{ env.PACKAGE_NAME }} versions)
|
|
253
|
+
# if echo "$ALL_VERSIONS" | grep -q "${{ env.THIS_VERSION }}"; then
|
|
254
|
+
# echo "VERSION_PUBLISHED=true" >> $GITHUB_ENV
|
|
255
|
+
# else
|
|
256
|
+
# echo "VERSION_PUBLISHED=false" >> $GITHUB_ENV
|
|
257
|
+
# fi
|
|
258
|
+
#
|
|
259
|
+
# - name: Version Check Results
|
|
260
|
+
# id: version_check_results
|
|
261
|
+
# run: |
|
|
262
|
+
# echo package name: "${{ env.PACKAGE_NAME }}"
|
|
263
|
+
# echo this: "${{ env.THIS_VERSION }}"
|
|
264
|
+
# echo latest: "${{ env.LATEST_VERSION }}"
|
|
265
|
+
# echo this is the latest: "${{ env.LATEST_VERSION == env.THIS_VERSION }}"
|
|
266
|
+
# echo this version is published: "${{ env.VERSION_PUBLISHED }}"
|
|
267
|
+
# echo all published versions: $(npm view ${{ env.PACKAGE_NAME }} versions)
|
|
268
|
+
# echo "::set-output name=version_published::${{ env.VERSION_PUBLISHED }}"
|
|
269
|
+
#
|
|
270
|
+
# deploy:
|
|
271
|
+
# needs: [ check_version ]
|
|
272
|
+
# name: ๐ Deploy to NPM
|
|
273
|
+
# runs-on: ubuntu-latest
|
|
274
|
+
# timeout-minutes: 20
|
|
275
|
+
# if: ${{ needs.check_version.outputs.version_published != 'true' }}
|
|
276
|
+
# steps:
|
|
277
|
+
# - name: Checkout code
|
|
278
|
+
# uses: actions/checkout@v4
|
|
279
|
+
#
|
|
280
|
+
# - name: Set RC
|
|
281
|
+
# run: |
|
|
282
|
+
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
283
|
+
#
|
|
284
|
+
# - name: Install pnpm
|
|
285
|
+
# run: |
|
|
286
|
+
# npm i -g pnpm
|
|
287
|
+
#
|
|
288
|
+
# - name: Install Packages
|
|
289
|
+
# run: |
|
|
290
|
+
# pnpm i
|
|
291
|
+
#
|
|
292
|
+
# - name: Build
|
|
293
|
+
# run: |
|
|
294
|
+
# npx tsc
|
|
295
|
+
#
|
|
296
|
+
# - name: Pack
|
|
297
|
+
# run: |
|
|
298
|
+
# pnpm pack
|
|
299
|
+
#
|
|
300
|
+
# - name: Publish
|
|
301
|
+
# run: |
|
|
302
|
+
# npm publish
|
|
303
|
+
#
|
|
304
|
+
# build_report:
|
|
305
|
+
# name: ๐ Build Report
|
|
306
|
+
# needs: [
|
|
307
|
+
# notification0,
|
|
308
|
+
# check_dev_leftovers,
|
|
309
|
+
# test,
|
|
310
|
+
# check_version,
|
|
311
|
+
# deploy
|
|
312
|
+
# ]
|
|
313
|
+
# #runs-on: ubuntu-latest
|
|
314
|
+
# runs-on: plo-koon
|
|
315
|
+
# timeout-minutes: 20
|
|
316
|
+
# if: always()
|
|
317
|
+
# steps:
|
|
318
|
+
#
|
|
319
|
+
# # NEW IMPLEMENTATION using futdevpro/fdp-github-actions/send-build-report@master:
|
|
320
|
+
# - name: Checkout code
|
|
321
|
+
# uses: actions/checkout@v4
|
|
322
|
+
#
|
|
323
|
+
# - name: Send Build Report
|
|
324
|
+
# uses: futdevpro/fdp-github-actions/send-build-report@master
|
|
325
|
+
# with:
|
|
326
|
+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
327
|
+
# SETTINGS: |
|
|
328
|
+
# {
|
|
329
|
+
# "overseerUrl": "${{ vars.OVERSEER_URL }}",
|
|
330
|
+
# "overseerSecret": "${{ secrets.OVERSEER_SECRET_KEY }}",
|
|
331
|
+
# "branchName": "${{ github.ref_name }}",
|
|
332
|
+
# "repository": "${{ github.repository }}",
|
|
333
|
+
# "runId": "${{ github.run_id }}",
|
|
334
|
+
# "linkToAction": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
|
335
|
+
# "eventDateTime": "${{ needs.notification0.outputs.start }}",
|
|
336
|
+
# "projects": [
|
|
337
|
+
# {
|
|
338
|
+
# "environment": "prod",
|
|
339
|
+
# "stepResults": [
|
|
340
|
+
# {
|
|
341
|
+
# "stepName": "checkDevLeftovers",
|
|
342
|
+
# "resultCode": "${{ needs.check_dev_leftovers.result }}",
|
|
343
|
+
# "requirement": "optional"
|
|
344
|
+
# },
|
|
345
|
+
# {
|
|
346
|
+
# "stepName": "tests",
|
|
347
|
+
# "resultCode": "${{ needs.test.result }}",
|
|
348
|
+
# "requirement": "required"
|
|
349
|
+
# },
|
|
350
|
+
# {
|
|
351
|
+
# "stepName": "checkVersion",
|
|
352
|
+
# "resultCode": "${{ needs.check_version.result }}",
|
|
353
|
+
# "requirement": "required"
|
|
354
|
+
# },
|
|
355
|
+
# {
|
|
356
|
+
# "stepName": "deploy",
|
|
357
|
+
# "resultCode": "${{ needs.deploy.result }}",
|
|
358
|
+
# "requirement": "optional"
|
|
359
|
+
# }
|
|
360
|
+
# ]
|
|
361
|
+
# }
|
|
362
|
+
# ]
|
|
363
|
+
# }
|
|
364
|
+
#
|
|
365
|
+
#
|
|
366
|
+
# end:
|
|
367
|
+
# name: ๐ฏ Discord Results
|
|
368
|
+
# needs: [
|
|
369
|
+
# notification0,
|
|
370
|
+
# check_secrets,
|
|
371
|
+
# check_dev_leftovers,
|
|
372
|
+
# test,
|
|
373
|
+
# check_version,
|
|
374
|
+
# deploy,
|
|
375
|
+
# build_report
|
|
376
|
+
# ]
|
|
377
|
+
# #runs-on: ubuntu-latest
|
|
378
|
+
# runs-on: plo-koon
|
|
379
|
+
# timeout-minutes: 20
|
|
380
|
+
# if: always()
|
|
381
|
+
# steps:
|
|
382
|
+
# - name: Checkout code
|
|
383
|
+
# uses: actions/checkout@v4
|
|
384
|
+
#
|
|
385
|
+
# - name: Send Discord result notification
|
|
386
|
+
# uses: futdevpro/fdp-github-actions/discord-result-notification@latest
|
|
387
|
+
# with:
|
|
388
|
+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
389
|
+
# APPLICATION_NAME: "Dynamo-FSM"
|
|
390
|
+
# APPLICATION_EMOJI: "๐งฑ"
|
|
391
|
+
# BRANCH: ${{ github.ref_name }}
|
|
392
|
+
# RUN_NUMBER: ${{ github.run_number }}
|
|
393
|
+
# RUN_ID: ${{ github.run_id }}
|
|
394
|
+
# REPOSITORY: ${{ github.repository }}
|
|
395
|
+
# START_TIME: ${{ needs.notification0.outputs.start }}
|
|
396
|
+
# DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
|
397
|
+
# DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
|
398
|
+
# STEPS_CONFIG: |
|
|
399
|
+
# [
|
|
400
|
+
# {
|
|
401
|
+
# "stepName": "Secrets Check",
|
|
402
|
+
# "stepEmoji": "๐",
|
|
403
|
+
# "resultCode": "${{ needs.check_secrets.result }}"
|
|
404
|
+
# },
|
|
405
|
+
# {
|
|
406
|
+
# "stepName": "Dev Leftovers Check",
|
|
407
|
+
# "stepEmoji": "๐",
|
|
408
|
+
# "resultCode": "${{ needs.check_dev_leftovers.result }}"
|
|
409
|
+
# },
|
|
410
|
+
# {
|
|
411
|
+
# "stepName": "Test Build",
|
|
412
|
+
# "stepEmoji": "๐งช",
|
|
413
|
+
# "resultCode": "${{ needs.test.result }}"
|
|
414
|
+
# },
|
|
415
|
+
# {
|
|
416
|
+
# "stepName": "Check Version",
|
|
417
|
+
# "stepEmoji": "๐",
|
|
418
|
+
# "resultCode": "${{ needs.check_version.result }}"
|
|
419
|
+
# },
|
|
420
|
+
# {
|
|
421
|
+
# "stepName": "Deploy",
|
|
422
|
+
# "stepEmoji": "๐ฆ",
|
|
423
|
+
# "resultCode": "${{ needs.deploy.result }}",
|
|
424
|
+
# "specialSuccessEmoji": "๐๐๐"
|
|
425
|
+
# },
|
|
426
|
+
# {
|
|
427
|
+
# "stepName": "Build Report",
|
|
428
|
+
# "stepEmoji": "๐",
|
|
429
|
+
# "resultCode": "${{ needs.build_report.result }}"
|
|
430
|
+
# }
|
|
431
|
+
# ]
|
|
432
|
+
#
|
|
433
|
+
#
|