# WORKSPACE-WIDE DISABLED (2026-06-19) — per user-request
# Az Actions-percek megtakarítása miatt; a CICD-t a futdevpro Overseer
# webhook-rendszere irányítja. A workflow-trigger NEM aktiválódik egyetlen
# push-ra sem, amíg ez a komment-blokk fent van. Visszaállításhoz töröld
# a header-blokkot + uncomment minden következő sort (egy '# ' eltávolítás).
# ═════════════════════════════════════════════════════════════════
# # =============================================================================
# # Dynamo-NTS CI/CD — Overseer Pipeline Trigger
# # =============================================================================
# # Ez a workflow CSAK egy webhook-ot kuld az Overseer-nek es AZONNAL kilep.
# # A pipeline-t az Overseer FDP Runner-ek futtatjak (nem a GitHub Actions).
# #
# # A regi workflow a fajl vegen kommentben megtalalhato (fallback).
# # =============================================================================
# 
# name: Trigger Pipeline
# on:
#   workflow_dispatch:
#     # Az org-szintu GitHub webhook kozvetlenul triggereli az Overseer-t.
#     # Ez a workflow csak manualis fallback (workflow_dispatch).
# 
# jobs:
#   trigger:
#     name: Overseer Trigger
#     runs-on: ubuntu-latest
#     timeout-minutes: 1
#     steps:
#     - uses: actions/checkout@v4
# 
#     - name: Trigger Overseer Pipeline
#       uses: futdevpro/fdp-github-actions/overseer-trigger@master
#       with:
#         OVERSEER_WEBHOOK_URL: ${{ vars.OVERSEER_URL }}/pipeline-runner/webhook/github
#         OVERSEER_WEBHOOK_SECRET: ${{ secrets.OVERSEER_SECRET_KEY }}
# 
# 
# # =============================================================================
# # PREVIOUS: Full GitHub Actions Pipeline (preserved for reference/fallback)
# # =============================================================================
# # name: Test and Deploy
# # on: 
# #   push:
# #     branches:
# #       - '**'
# # permissions:
# #   actions: read
# #   id-token: write
# #   contents: read
# #   checks: write
# #   issues: read
# #   pull-requests: write
# # env:
# #   PACKAGE_NAME: ''
# #   THIS_VERSION: 0.0.0
# #   LATEST_VERSION: 0.0.0
# #   VERSION_PUBLISHED: true
# # 
# # jobs:
# #   notification0:
# #     name: 🏹 Discord start Notification
# #     #runs-on: ubuntu-latest
# #     runs-on: plo-koon
# #     timeout-minutes: 20
# #     outputs:
# #       start: ${{ steps.mark_start.outputs.started }}
# #     steps:
# #     - uses: actions/checkout@v4
# #     - id: mark_start
# #       run: echo "started=$(date +%s)" >> "$GITHUB_OUTPUT"
# #     - name: Send Discord start notification
# #       uses: futdevpro/fdp-github-actions/discord-start-notification@latest
# #       with:
# #         NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# #         APPLICATION_NAME: "Dynamo-NTS"
# #         APPLICATION_EMOJI: "💽"
# #         COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
# #         EVENT_DATETIME: ${{ github.event.head_commit.timestamp }}
# #         DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
# #         DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
# # 
# #   notification0_fail_report:
# #     name: 💣 Discord Start Notification Fail Report
# #     runs-on: ubuntu-latest
# #     #runs-on: plo-koon
# #     timeout-minutes: 20
# #     if: always() && needs.notification0.result == 'failure'
# #     needs: [notification0]
# #     steps:
# #       - name: send custom message with args
# #         uses: appleboy/discord-action@master
# #         with:
# #           webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
# #           webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
# #           message: |
# #             ❌❌❌💽 Failed to send Discord start notification for ${{ github.repository }}! [🔗](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
# # 
# #   check_secrets:
# #     name: 🔍 Check Required Secrets and Variables
# #     #runs-on: ubuntu-latest
# #     runs-on: plo-koon
# #     timeout-minutes: 20
# #     steps:
# #     - name: Check Required Secrets and Variables
# #       uses: futdevpro/fdp-github-actions/check-secrets-and-variables@latest
# #       with:
# #         NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# #         ITEMS_TO_CHECK: |
# #           [
# #             {
# #               "valueName": "NPM_TOKEN", 
# #               "value": "${{ secrets.NPM_TOKEN }}", 
# #               "type": "SECRET"
# #             }, 
# #             {
# #               "valueName": "DISCORD_WEBHOOK_ID", 
# #               "value": "${{ secrets.DISCORD_WEBHOOK_ID }}", 
# #               "type": "SECRET"
# #             }, 
# #             {
# #               "valueName": "DISCORD_WEBHOOK_TOKEN", 
# #               "value": "${{ secrets.DISCORD_WEBHOOK_TOKEN }}", 
# #               "type": "SECRET"
# #             }, 
# #             {
# #               "valueName": "OVERSEER_SECRET_KEY", 
# #               "value": "${{ secrets.OVERSEER_SECRET_KEY }}", 
# #               "type": "SECRET"
# #             }, 
# #             
# #             {
# #               "valueName": "OVERSEER_URL", 
# #               "value": "${{ vars.OVERSEER_URL }}", 
# #               "type": "VARIABLE"
# #             }
# #           ]
# # 
# #   check_dev_leftovers:
# #     name: 🔍 Check Dev leftovers
# #     needs: [check_secrets]
# #     #runs-on: ubuntu-latest
# #     runs-on: plo-koon
# #     timeout-minutes: 20
# #     steps:
# #     - name: Checkout code
# #       uses: actions/checkout@v4
# # 
# #     - name: Check Dev Leftovers
# #       uses: futdevpro/fdp-github-actions/check-dev-leftovers@latest
# #       with:
# #         NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# #         CHECKS_TO_PERFORM: |
# #           [
# #             {
# #               "type": "TSCONFIG_PATHS",
# #               "directory": "."
# #             },
# #             {
# #               "type": "PACKAGE_VERSIONS",
# #               "directory": ".",
# #               "packages": [
# #                 "@futdevpro/fsm-dynamo"
# #               ]
# #             }
# #           ]
# # 
# #   test:
# #     name: 🧪 Test Build
# #     needs: [ check_dev_leftovers ]
# #     runs-on: ubuntu-latest
# #     timeout-minutes: 20
# #     services:
# #       mongodb:
# #         image: mongo
# #         ports:
# #           - 27017:27017
# #     steps:
# #     - name: Checkout code
# #       uses: actions/checkout@v4
# # 
# #     - name: Set NPM RC
# #       run: |
# #         echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
# # 
# #     - name: Get safe-chain version
# #       run: |
# #         VERSION=$(curl -s https://api.github.com/repos/AikidoSec/safe-chain/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/^v//')
# #         echo "SAFE_CHAIN_VERSION=$VERSION" >> $GITHUB_ENV
# # 
# #     - name: Install safe-chain
# #       run: |
# #         curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
# # 
# #     - name: Install pnpm
# #       run: |
# #         npm i -g pnpm 
# # 
# #     - name: Install Packages
# #       run: |
# #         pnpm i --safe-chain-skip-minimum-package-age
# # 
# #     - name: Build
# #       run: |
# #         npx tsc
# # 
# #     - name: Install Jasmine
# #       run: |
# #         npm i -g jasmine
# # 
# #     - name: Test
# #       run: |
# #         jasmine
# # 
# #     - name: Test Pack
# #       run: |
# #         pnpm pack
# # 
# # 
# #   check_version:
# #     name: 🔍 Check Version
# #     needs: [ test ]
# #     #runs-on: ubuntu-latest
# #     runs-on: plo-koon
# #     timeout-minutes: 20
# #     outputs:
# #       version_published: ${{ steps.version_check_results.outputs.version_published }}
# #     steps:
# #     - name: Checkout code
# #       uses: actions/checkout@v4
# # 
# #     - name: Set Package Name
# #       run: |
# #         echo "PACKAGE_NAME=$(node -p -e "require('./package.json').name")" >> $GITHUB_ENV
# # 
# #     - name: Set RC
# #       run: |
# #         echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
# # 
# #     - name: Get This Version
# #       run: |
# #         RAW_THIS_VERSION=$(node -p -e "require('./package.json').version")
# #           # replace ALL: 'v0' with '', '01' with '1', '.0' with '.'
# #         RAW_THIS_VERSION=$(echo $RAW_THIS_VERSION | sed 's:v0::g'  | sed 's:01:1:g' | sed -e 's:\.0:\.:g')
# #         echo "THIS_VERSION=$RAW_THIS_VERSION" >> $GITHUB_ENV
# # 
# #     - name: Get Latest Version
# #       run: |
# #         echo "LATEST_VERSION=$(npm view ${{ env.PACKAGE_NAME }} version)" >> $GITHUB_ENV
# # 
# #     - name: Check All Versions
# #       run: |
# #         ALL_VERSIONS=$(npm view ${{ env.PACKAGE_NAME }} versions)
# #         if echo "$ALL_VERSIONS" | grep -q "${{ env.THIS_VERSION }}"; then
# #           echo "VERSION_PUBLISHED=true" >> $GITHUB_ENV
# #         else
# #           echo "VERSION_PUBLISHED=false" >> $GITHUB_ENV          
# #         fi
# # 
# #     - name: Version Check Results (and Outputs)
# #       id: version_check_results
# #       run: |
# #         echo package name: "${{ env.PACKAGE_NAME }}"
# #         echo this: "${{ env.THIS_VERSION }}" 
# #         echo latest: "${{ env.LATEST_VERSION }}"
# #         echo this is the latest: "${{ env.LATEST_VERSION == env.THIS_VERSION }}"
# #         echo this version is published: "${{ env.VERSION_PUBLISHED }}"
# #         echo all published versions: $(npm view ${{ env.PACKAGE_NAME }} versions)
# #         echo "::set-output name=version_published::${{ env.VERSION_PUBLISHED }}"
# #           
# # 
# #   deploy:
# #     name: 🚀 Deploy to NPM 
# #     needs: [ check_version ]
# #     if: ${{ needs.check_version.outputs.version_published != 'true' }}
# #     runs-on: ubuntu-latest
# #     timeout-minutes: 20
# #     steps:
# #     - name: Checkout code
# #       uses: actions/checkout@v4 
# # 
# #     - name: Set NPM RC
# #       run: |
# #         echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
# # 
# #     - name: Install pnpm
# #       run: |
# #         npm i -g pnpm 
# # 
# #     - name: Install Packages
# #       run: |
# #         pnpm i
# # 
# #     - name: Build
# #       run: |
# #         npx tsc
# # 
# #     - name: Pack
# #       run: |
# #         pnpm pack
# #         
# #     - name: Publish
# #       run: |
# #         npm publish
# # 
# #   build_report:
# #     name: 📊 Build Report
# #     needs: [ 
# #       notification0, 
# #       check_dev_leftovers, 
# #       test, 
# #       check_version, 
# #       deploy 
# #     ]
# #     #runs-on: ubuntu-latest
# #     runs-on: plo-koon
# #     timeout-minutes: 20
# #     if: always()
# #     steps:
# #       
# #     # NEW IMPLEMENTATION using futdevpro/fdp-github-actions/send-build-report@master:
# #     - name: Checkout code
# #       uses: actions/checkout@v4
# #       
# #     - name: Send Build Report
# #       uses: futdevpro/fdp-github-actions/send-build-report@master
# #       with:
# #         NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# #         SETTINGS: |
# #           {
# #             "overseerUrl": "${{ vars.OVERSEER_URL }}",
# #             "overseerSecret": "${{ secrets.OVERSEER_SECRET_KEY }}",
# #             "branchName": "${{ github.ref_name }}",
# #             "repository": "${{ github.repository }}",
# #             "runId": "${{ github.run_id }}",
# #             "linkToAction": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
# #             "eventDateTime": "${{ needs.notification0.outputs.start }}",
# #             "projects": [
# #               {
# #                 "environment": "prod",
# #                 "stepResults": [
# #                   {
# #                     "stepName": "checkDevLeftovers",
# #                     "resultCode": "${{ needs.check_dev_leftovers.result }}",
# #                     "requirement": "optional"
# #                   },
# #                   {
# #                     "stepName": "tests",
# #                     "resultCode": "${{ needs.test.result }}",
# #                     "requirement": "required"
# #                   },
# #                   {
# #                     "stepName": "checkVersion",
# #                     "resultCode": "${{ needs.check_version.result }}",
# #                     "requirement": "required"
# #                   },
# #                   {
# #                     "stepName": "deploy",
# #                     "resultCode": "${{ needs.deploy.result }}",
# #                     "requirement": "optional"
# #                   }
# #                 ]
# #               }
# #             ]
# #           }
# # 
# #   end:
# #     name: 🎯 Discord Results
# #     needs: [ 
# #       notification0, 
# #       check_secrets, 
# #       check_dev_leftovers, 
# #       test, 
# #       check_version, 
# #       deploy, 
# #       build_report 
# #     ]
# #     #runs-on: ubuntu-latest
# #     runs-on: plo-koon
# #     timeout-minutes: 20
# #     if: always()
# #     steps:
# #     - name: Checkout code
# #       uses: actions/checkout@v4
# #       
# #     - name: Send Discord result notification
# #       uses: futdevpro/fdp-github-actions/discord-result-notification@latest
# #       with:
# #         NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# #         APPLICATION_NAME: "Dynamo-NTS"
# #         APPLICATION_EMOJI: "💽"
# #         BRANCH: ${{ github.ref_name }}
# #         RUN_NUMBER: ${{ github.run_number }}
# #         RUN_ID: ${{ github.run_id }}
# #         REPOSITORY: ${{ github.repository }}
# #         START_TIME: ${{ needs.notification0.outputs.start }}
# #         DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
# #         DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
# #         STEPS_CONFIG: |
# #           [
# #             {
# #               "stepName": "Secrets Check",
# #               "stepEmoji": "🔑",
# #               "resultCode": "${{ needs.check_secrets.result }}"
# #             },
# #             {
# #               "stepName": "Dev Leftovers Check",
# #               "stepEmoji": "🔍",
# #               "resultCode": "${{ needs.check_dev_leftovers.result }}"
# #             },
# #             {
# #               "stepName": "Test Build",
# #               "stepEmoji": "🧪",
# #               "resultCode": "${{ needs.test.result }}"
# #             },
# #             {
# #               "stepName": "Check Version",
# #               "stepEmoji": "🔍",
# #               "resultCode": "${{ needs.check_version.result }}"
# #             },
# #             {
# #               "stepName": "Deploy",
# #               "stepEmoji": "📦",
# #               "resultCode": "${{ needs.deploy.result }}",
# #               "specialSuccessEmoji": "🚀🚀🚀"
# #             },
# #             {
# #               "stepName": "Build Report",
# #               "stepEmoji": "📊",
# #               "resultCode": "${{ needs.build_report.result }}"
# #             }
# #           ]
# # 
# # 
# # 
# # 
# # 
# # 
# # 
# # 
