@futdevpro/nts-dynamo 1.15.58 โ†’ 1.15.64

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