@xn-intenton-z2a/agentic-lib 7.4.28 → 7.4.29
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.
|
@@ -48,6 +48,10 @@ on:
|
|
|
48
48
|
type: string
|
|
49
49
|
required: false
|
|
50
50
|
default: "false"
|
|
51
|
+
run-workflow:
|
|
52
|
+
type: string
|
|
53
|
+
required: false
|
|
54
|
+
default: "true"
|
|
51
55
|
workflow_dispatch:
|
|
52
56
|
inputs:
|
|
53
57
|
mode:
|
|
@@ -131,6 +135,11 @@ on:
|
|
|
131
135
|
type: boolean
|
|
132
136
|
required: false
|
|
133
137
|
default: false
|
|
138
|
+
run-workflow:
|
|
139
|
+
description: "Dispatch agentic-lib-workflow after init completes"
|
|
140
|
+
type: boolean
|
|
141
|
+
required: false
|
|
142
|
+
default: true
|
|
134
143
|
|
|
135
144
|
permissions: write-all
|
|
136
145
|
|
|
@@ -179,7 +188,7 @@ jobs:
|
|
|
179
188
|
- uses: actions/checkout@v6
|
|
180
189
|
if: inputs.dry-run == 'true' || inputs.dry-run == true
|
|
181
190
|
with:
|
|
182
|
-
ref: ${{ inputs.ref || github.
|
|
191
|
+
ref: ${{ inputs.ref || github.ref }}
|
|
183
192
|
- uses: actions/checkout@v6
|
|
184
193
|
if: inputs.dry-run != 'true' && inputs.dry-run != true
|
|
185
194
|
with:
|
|
@@ -467,3 +476,26 @@ jobs:
|
|
|
467
476
|
script: |
|
|
468
477
|
const summary = `## Job: init\n| Key | Value |\n|-----|-------|\n| Status | ${context.job.status || 'completed'} |\n| Mode | ${{ inputs.mode }} |\n| Dry Run | ${{ inputs.dry-run }} |\n| Create Seed Issues | ${{ inputs.create-seed-issues }} |`;
|
|
469
478
|
core.summary.addRaw(summary).write();
|
|
479
|
+
|
|
480
|
+
# Step 3: Dispatch agentic-lib-workflow to start the first cycle
|
|
481
|
+
dispatch-workflow:
|
|
482
|
+
needs: [params, init]
|
|
483
|
+
if: >-
|
|
484
|
+
!cancelled()
|
|
485
|
+
&& needs.init.result == 'success'
|
|
486
|
+
&& inputs.dry-run != 'true' && inputs.dry-run != true
|
|
487
|
+
&& inputs.run-workflow != 'false' && inputs.run-workflow != false
|
|
488
|
+
&& github.repository != 'xn-intenton-z2a/agentic-lib'
|
|
489
|
+
runs-on: ubuntu-latest
|
|
490
|
+
steps:
|
|
491
|
+
- name: Dispatch agentic-lib-workflow
|
|
492
|
+
env:
|
|
493
|
+
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
|
494
|
+
run: |
|
|
495
|
+
echo "Dispatching agentic-lib-workflow to start first cycle..."
|
|
496
|
+
gh workflow run agentic-lib-workflow.yml \
|
|
497
|
+
--repo "${{ github.repository }}" \
|
|
498
|
+
--ref main \
|
|
499
|
+
-f mode=full \
|
|
500
|
+
-f dry-run=false
|
|
501
|
+
echo "Dispatched agentic-lib-workflow"
|
|
@@ -104,7 +104,7 @@ jobs:
|
|
|
104
104
|
- uses: actions/checkout@v6
|
|
105
105
|
if: inputs.dry-run == 'true' || inputs.dry-run == true
|
|
106
106
|
with:
|
|
107
|
-
ref: ${{ inputs.ref || github.
|
|
107
|
+
ref: ${{ inputs.ref || github.ref }}
|
|
108
108
|
- uses: actions/checkout@v6
|
|
109
109
|
if: inputs.dry-run != 'true' && inputs.dry-run != true
|
|
110
110
|
with:
|
|
@@ -261,8 +261,10 @@ jobs:
|
|
|
261
261
|
FREQUENCY="${{ inputs.frequency }}"
|
|
262
262
|
MODEL="${{ inputs.model }}"
|
|
263
263
|
git add .github/workflows/agentic-lib-workflow.yml agentic-lib.toml
|
|
264
|
-
# Stage removed mission files if maintenance mode deleted them
|
|
265
|
-
|
|
264
|
+
# Stage removed mission files ONLY if maintenance mode deleted them
|
|
265
|
+
if [ "$FREQUENCY" = "maintenance" ]; then
|
|
266
|
+
git rm --ignore-unmatch MISSION_COMPLETE.md MISSION_FAILED.md 2>/dev/null || true
|
|
267
|
+
fi
|
|
266
268
|
git diff --cached --quiet && echo "No changes to commit" && exit 0
|
|
267
269
|
if [ "$FREQUENCY" = "maintenance" ]; then
|
|
268
270
|
git commit -m "schedule: switch to maintenance mode (weekly, unlimited budget, mission reset)"
|
package/package.json
CHANGED