@xn-intenton-z2a/agentic-lib 7.2.20 → 7.2.21
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/.github/workflows/agentic-lib-bot.yml +6 -0
- package/.github/workflows/agentic-lib-init.yml +8 -1
- package/.github/workflows/agentic-lib-schedule.yml +7 -1
- package/.github/workflows/agentic-lib-test.yml +12 -0
- package/.github/workflows/agentic-lib-update.yml +7 -1
- package/.github/workflows/agentic-lib-workflow.yml +32 -6
- package/package.json +1 -1
- package/src/seeds/zero-package.json +1 -1
|
@@ -28,6 +28,10 @@ on:
|
|
|
28
28
|
#@dist - edited
|
|
29
29
|
workflow_call:
|
|
30
30
|
inputs:
|
|
31
|
+
ref:
|
|
32
|
+
type: string
|
|
33
|
+
required: false
|
|
34
|
+
default: ""
|
|
31
35
|
discussion-url:
|
|
32
36
|
type: string
|
|
33
37
|
required: false
|
|
@@ -83,6 +87,7 @@ jobs:
|
|
|
83
87
|
steps:
|
|
84
88
|
- uses: actions/checkout@v6
|
|
85
89
|
with:
|
|
90
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
86
91
|
sparse-checkout: ${{ env.configPath }}
|
|
87
92
|
sparse-checkout-cone-mode: false
|
|
88
93
|
- name: Normalise params
|
|
@@ -111,6 +116,7 @@ jobs:
|
|
|
111
116
|
- uses: actions/checkout@v6
|
|
112
117
|
with:
|
|
113
118
|
fetch-depth: 0
|
|
119
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
114
120
|
|
|
115
121
|
- uses: actions/setup-node@v6
|
|
116
122
|
with:
|
|
@@ -12,6 +12,10 @@ run-name: "agentic-lib-init ${{ inputs.mode || 'update' }} [${{ github.ref_name
|
|
|
12
12
|
on:
|
|
13
13
|
workflow_call:
|
|
14
14
|
inputs:
|
|
15
|
+
ref:
|
|
16
|
+
type: string
|
|
17
|
+
required: false
|
|
18
|
+
default: ""
|
|
15
19
|
mode:
|
|
16
20
|
type: string
|
|
17
21
|
required: false
|
|
@@ -121,6 +125,7 @@ jobs:
|
|
|
121
125
|
update:
|
|
122
126
|
uses: ./.github/workflows/agentic-lib-update.yml
|
|
123
127
|
with:
|
|
128
|
+
ref: ${{ inputs.ref }}
|
|
124
129
|
dry-run: ${{ inputs.dry-run || 'false' }}
|
|
125
130
|
secrets: inherit
|
|
126
131
|
|
|
@@ -136,10 +141,12 @@ jobs:
|
|
|
136
141
|
steps:
|
|
137
142
|
- uses: actions/checkout@v6
|
|
138
143
|
if: inputs.dry-run == 'true' || inputs.dry-run == true
|
|
144
|
+
with:
|
|
145
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
139
146
|
- uses: actions/checkout@v6
|
|
140
147
|
if: inputs.dry-run != 'true' && inputs.dry-run != true
|
|
141
148
|
with:
|
|
142
|
-
ref: main
|
|
149
|
+
ref: ${{ inputs.ref || 'main' }}
|
|
143
150
|
token: ${{ secrets.WORKFLOW_TOKEN }}
|
|
144
151
|
|
|
145
152
|
- uses: actions/setup-node@v6
|
|
@@ -13,6 +13,10 @@ run-name: "agentic-lib-schedule -> ${{ inputs.frequency }} (${{ inputs.model }}$
|
|
|
13
13
|
on:
|
|
14
14
|
workflow_call:
|
|
15
15
|
inputs:
|
|
16
|
+
ref:
|
|
17
|
+
type: string
|
|
18
|
+
required: false
|
|
19
|
+
default: ""
|
|
16
20
|
frequency:
|
|
17
21
|
description: "How often the workflow should run"
|
|
18
22
|
required: true
|
|
@@ -80,10 +84,12 @@ jobs:
|
|
|
80
84
|
steps:
|
|
81
85
|
- uses: actions/checkout@v6
|
|
82
86
|
if: inputs.dry-run == 'true' || inputs.dry-run == true
|
|
87
|
+
with:
|
|
88
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
83
89
|
- uses: actions/checkout@v6
|
|
84
90
|
if: inputs.dry-run != 'true' && inputs.dry-run != true
|
|
85
91
|
with:
|
|
86
|
-
ref: main
|
|
92
|
+
ref: ${{ inputs.ref || 'main' }}
|
|
87
93
|
token: ${{ secrets.WORKFLOW_TOKEN }}
|
|
88
94
|
|
|
89
95
|
- name: Update workflow schedule and model
|
|
@@ -40,6 +40,10 @@ on:
|
|
|
40
40
|
type: string
|
|
41
41
|
required: false
|
|
42
42
|
default: "false"
|
|
43
|
+
ref:
|
|
44
|
+
type: string
|
|
45
|
+
required: false
|
|
46
|
+
default: ""
|
|
43
47
|
workflow_dispatch:
|
|
44
48
|
inputs:
|
|
45
49
|
push-screenshot:
|
|
@@ -58,6 +62,8 @@ jobs:
|
|
|
58
62
|
runs-on: ubuntu-latest
|
|
59
63
|
steps:
|
|
60
64
|
- uses: actions/checkout@v6
|
|
65
|
+
with:
|
|
66
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
61
67
|
|
|
62
68
|
- uses: actions/setup-node@v6
|
|
63
69
|
with:
|
|
@@ -89,6 +95,8 @@ jobs:
|
|
|
89
95
|
tests-failed: ${{ steps.result.outputs.tests-failed }}
|
|
90
96
|
steps:
|
|
91
97
|
- uses: actions/checkout@v6
|
|
98
|
+
with:
|
|
99
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
92
100
|
|
|
93
101
|
- name: Install dependencies
|
|
94
102
|
run: npm ci
|
|
@@ -182,6 +190,8 @@ jobs:
|
|
|
182
190
|
runs-on: ubuntu-latest
|
|
183
191
|
steps:
|
|
184
192
|
- uses: actions/checkout@v6
|
|
193
|
+
with:
|
|
194
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
185
195
|
|
|
186
196
|
- name: Install dependencies (non-blocking)
|
|
187
197
|
id: install-deps
|
|
@@ -291,6 +301,8 @@ jobs:
|
|
|
291
301
|
container: mcr.microsoft.com/playwright:v1.58.2-noble
|
|
292
302
|
steps:
|
|
293
303
|
- uses: actions/checkout@v6
|
|
304
|
+
with:
|
|
305
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
294
306
|
|
|
295
307
|
- name: Install dependencies (non-blocking)
|
|
296
308
|
id: install-deps
|
|
@@ -14,6 +14,10 @@ run-name: "agentic-lib-update [${{ github.ref_name }}]"
|
|
|
14
14
|
on:
|
|
15
15
|
workflow_call:
|
|
16
16
|
inputs:
|
|
17
|
+
ref:
|
|
18
|
+
type: string
|
|
19
|
+
required: false
|
|
20
|
+
default: ""
|
|
17
21
|
dry-run:
|
|
18
22
|
type: string
|
|
19
23
|
required: false
|
|
@@ -36,10 +40,12 @@ jobs:
|
|
|
36
40
|
steps:
|
|
37
41
|
- uses: actions/checkout@v6
|
|
38
42
|
if: inputs.dry-run == 'true' || inputs.dry-run == true
|
|
43
|
+
with:
|
|
44
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
39
45
|
- uses: actions/checkout@v6
|
|
40
46
|
if: inputs.dry-run != 'true' && inputs.dry-run != true
|
|
41
47
|
with:
|
|
42
|
-
ref: main
|
|
48
|
+
ref: ${{ inputs.ref || 'main' }}
|
|
43
49
|
token: ${{ secrets.WORKFLOW_TOKEN }}
|
|
44
50
|
|
|
45
51
|
- uses: actions/setup-node@v6
|
|
@@ -20,6 +20,10 @@ on:
|
|
|
20
20
|
#@dist - cron: "0 6 * * 1"
|
|
21
21
|
workflow_call:
|
|
22
22
|
inputs:
|
|
23
|
+
ref:
|
|
24
|
+
type: string
|
|
25
|
+
required: false
|
|
26
|
+
default: ""
|
|
23
27
|
model:
|
|
24
28
|
type: string
|
|
25
29
|
required: false
|
|
@@ -135,6 +139,7 @@ jobs:
|
|
|
135
139
|
steps:
|
|
136
140
|
- uses: actions/checkout@v6
|
|
137
141
|
with:
|
|
142
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
138
143
|
sparse-checkout: ${{ env.configPath }}
|
|
139
144
|
sparse-checkout-cone-mode: false
|
|
140
145
|
- name: Normalise params
|
|
@@ -265,6 +270,8 @@ jobs:
|
|
|
265
270
|
container: mcr.microsoft.com/playwright:v1.58.2-noble
|
|
266
271
|
steps:
|
|
267
272
|
- uses: actions/checkout@v6
|
|
273
|
+
with:
|
|
274
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
268
275
|
|
|
269
276
|
- uses: actions/setup-node@v6
|
|
270
277
|
with:
|
|
@@ -305,6 +312,8 @@ jobs:
|
|
|
305
312
|
runs-on: ubuntu-latest
|
|
306
313
|
steps:
|
|
307
314
|
- uses: actions/checkout@v6
|
|
315
|
+
with:
|
|
316
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
308
317
|
|
|
309
318
|
- uses: actions/setup-node@v6
|
|
310
319
|
with:
|
|
@@ -553,10 +562,13 @@ jobs:
|
|
|
553
562
|
needs.params.result == 'success' &&
|
|
554
563
|
inputs.skipMaintain != 'true' && inputs.skipMaintain != true
|
|
555
564
|
runs-on: ubuntu-latest
|
|
565
|
+
outputs:
|
|
566
|
+
commit-sha: ${{ steps.get-sha.outputs.sha }}
|
|
556
567
|
steps:
|
|
557
568
|
- uses: actions/checkout@v6
|
|
558
569
|
with:
|
|
559
570
|
fetch-depth: 0
|
|
571
|
+
ref: ${{ inputs.ref || github.sha }}
|
|
560
572
|
|
|
561
573
|
- name: Fetch log from agentic-lib-logs branch
|
|
562
574
|
run: |
|
|
@@ -660,6 +672,10 @@ jobs:
|
|
|
660
672
|
commit-message: "agentic-step: maintain features and library"
|
|
661
673
|
push-ref: ${{ github.ref_name }}
|
|
662
674
|
|
|
675
|
+
- name: Capture commit SHA
|
|
676
|
+
id: get-sha
|
|
677
|
+
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
|
678
|
+
|
|
663
679
|
- name: Push log to agentic-lib-logs branch
|
|
664
680
|
if: github.repository != 'xn-intenton-z2a/agentic-lib' && needs.params.outputs.dry-run != 'true'
|
|
665
681
|
run: bash .github/agentic-lib/scripts/push-to-logs.sh "intentïon.md" "intention.md"
|
|
@@ -679,6 +695,7 @@ jobs:
|
|
|
679
695
|
- uses: actions/checkout@v6
|
|
680
696
|
with:
|
|
681
697
|
fetch-depth: 0
|
|
698
|
+
ref: ${{ needs.maintain.outputs.commit-sha || github.sha }}
|
|
682
699
|
|
|
683
700
|
- name: Fetch log from agentic-lib-logs branch
|
|
684
701
|
run: |
|
|
@@ -729,6 +746,7 @@ jobs:
|
|
|
729
746
|
- uses: actions/checkout@v6
|
|
730
747
|
with:
|
|
731
748
|
fetch-depth: 0
|
|
749
|
+
ref: ${{ needs.maintain.outputs.commit-sha || github.sha }}
|
|
732
750
|
|
|
733
751
|
- name: Fetch log from agentic-lib-logs branch
|
|
734
752
|
run: |
|
|
@@ -767,7 +785,7 @@ jobs:
|
|
|
767
785
|
|
|
768
786
|
# ─── Fix stuck PRs with failing checks ─────────────────────────────
|
|
769
787
|
fix-stuck:
|
|
770
|
-
needs: [params, supervisor]
|
|
788
|
+
needs: [params, maintain, supervisor]
|
|
771
789
|
if: |
|
|
772
790
|
!cancelled() &&
|
|
773
791
|
needs.params.outputs.mode == 'full' &&
|
|
@@ -777,6 +795,7 @@ jobs:
|
|
|
777
795
|
- uses: actions/checkout@v6
|
|
778
796
|
with:
|
|
779
797
|
fetch-depth: 0
|
|
798
|
+
ref: ${{ needs.maintain.outputs.commit-sha || github.sha }}
|
|
780
799
|
|
|
781
800
|
- uses: actions/setup-node@v6
|
|
782
801
|
with:
|
|
@@ -1088,7 +1107,7 @@ jobs:
|
|
|
1088
1107
|
|
|
1089
1108
|
# ─── Review: close resolved issues, enhance with criteria ──────────
|
|
1090
1109
|
review-features:
|
|
1091
|
-
needs: [params, supervisor]
|
|
1110
|
+
needs: [params, maintain, supervisor]
|
|
1092
1111
|
if: |
|
|
1093
1112
|
!cancelled() &&
|
|
1094
1113
|
(needs.params.outputs.mode == 'full' || needs.params.outputs.mode == 'review-only') &&
|
|
@@ -1096,6 +1115,8 @@ jobs:
|
|
|
1096
1115
|
runs-on: ubuntu-latest
|
|
1097
1116
|
steps:
|
|
1098
1117
|
- uses: actions/checkout@v6
|
|
1118
|
+
with:
|
|
1119
|
+
ref: ${{ needs.maintain.outputs.commit-sha || github.sha }}
|
|
1099
1120
|
|
|
1100
1121
|
- uses: actions/setup-node@v6
|
|
1101
1122
|
with:
|
|
@@ -1133,7 +1154,7 @@ jobs:
|
|
|
1133
1154
|
|
|
1134
1155
|
# ─── Dev: sequential issue resolution ──────────────────────────────
|
|
1135
1156
|
dev:
|
|
1136
|
-
needs: [params, review-features]
|
|
1157
|
+
needs: [params, maintain, review-features]
|
|
1137
1158
|
if: |
|
|
1138
1159
|
!cancelled() &&
|
|
1139
1160
|
(needs.params.outputs.mode == 'full' || needs.params.outputs.mode == 'dev-only') &&
|
|
@@ -1144,6 +1165,7 @@ jobs:
|
|
|
1144
1165
|
with:
|
|
1145
1166
|
fetch-depth: 0
|
|
1146
1167
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
1168
|
+
ref: ${{ needs.maintain.outputs.commit-sha || github.sha }}
|
|
1147
1169
|
|
|
1148
1170
|
- name: Fetch log from agentic-lib-logs branch
|
|
1149
1171
|
run: |
|
|
@@ -1405,13 +1427,14 @@ jobs:
|
|
|
1405
1427
|
|
|
1406
1428
|
# ─── Post-merge: stats, schedule, mission check ────────────────────
|
|
1407
1429
|
post-merge:
|
|
1408
|
-
needs: [params, dev, pr-cleanup]
|
|
1430
|
+
needs: [params, maintain, dev, pr-cleanup]
|
|
1409
1431
|
if: ${{ !cancelled() && needs.params.result == 'success' }}
|
|
1410
1432
|
runs-on: ubuntu-latest
|
|
1411
1433
|
steps:
|
|
1412
1434
|
- uses: actions/checkout@v6
|
|
1413
1435
|
with:
|
|
1414
1436
|
fetch-depth: 0
|
|
1437
|
+
ref: ${{ needs.maintain.outputs.commit-sha || github.sha }}
|
|
1415
1438
|
|
|
1416
1439
|
- name: Summary
|
|
1417
1440
|
run: |
|
|
@@ -1428,20 +1451,23 @@ jobs:
|
|
|
1428
1451
|
|
|
1429
1452
|
# ─── Post-commit validation: call test workflow to verify branch health ───
|
|
1430
1453
|
post-commit-test:
|
|
1431
|
-
needs: [params, dev, fix-stuck, post-merge]
|
|
1454
|
+
needs: [params, maintain, dev, fix-stuck, post-merge]
|
|
1432
1455
|
if: >-
|
|
1433
1456
|
!cancelled()
|
|
1434
1457
|
&& needs.params.outputs.dry-run != 'true'
|
|
1435
1458
|
&& needs.params.result == 'success'
|
|
1436
1459
|
uses: ./.github/workflows/agentic-lib-test.yml
|
|
1460
|
+
with:
|
|
1461
|
+
ref: ${{ needs.maintain.outputs.commit-sha || github.sha }}
|
|
1437
1462
|
secrets: inherit
|
|
1438
1463
|
|
|
1439
1464
|
# ─── Schedule change (if requested) ────────────────────────────────
|
|
1440
1465
|
update-schedule:
|
|
1441
|
-
needs: [params, dev]
|
|
1466
|
+
needs: [params, maintain, dev]
|
|
1442
1467
|
if: ${{ !cancelled() && needs.params.outputs.dry-run != 'true' && needs.params.outputs.schedule != '' && needs.params.result == 'success' }}
|
|
1443
1468
|
uses: ./.github/workflows/agentic-lib-schedule.yml
|
|
1444
1469
|
with:
|
|
1470
|
+
ref: ${{ needs.maintain.outputs.commit-sha || github.sha }}
|
|
1445
1471
|
frequency: ${{ needs.params.outputs.schedule }}
|
|
1446
1472
|
model: ${{ needs.params.outputs.model }}
|
|
1447
1473
|
profile: ${{ needs.params.outputs.profile }}
|
package/package.json
CHANGED