@xn-intenton-z2a/agentic-lib 7.1.46 → 7.1.48
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/bin/agentic-lib.js
CHANGED
|
@@ -839,6 +839,7 @@ function initPurge(seedsDir, missionName) {
|
|
|
839
839
|
clearAndRecreateDir(sourcePath, sourcePath);
|
|
840
840
|
clearAndRecreateDir(testsPath, testsPath);
|
|
841
841
|
clearAndRecreateDir(examplesPath, examplesPath);
|
|
842
|
+
clearAndRecreateDir("docs", "docs");
|
|
842
843
|
|
|
843
844
|
// Copy seed files (including config TOML) — MISSION.md handled separately via mission seed
|
|
844
845
|
const SEED_MAP = {
|
package/package.json
CHANGED
package/src/seeds/init.yml
CHANGED
|
@@ -153,9 +153,14 @@ jobs:
|
|
|
153
153
|
- run: npm test
|
|
154
154
|
|
|
155
155
|
- name: Commit and push
|
|
156
|
+
env:
|
|
157
|
+
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
|
156
158
|
run: |
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
# Use the WORKFLOW_TOKEN owner's identity so GitHub re-registers cron schedules
|
|
160
|
+
TOKEN_USER=$(gh api /user --jq '.login')
|
|
161
|
+
TOKEN_ID=$(gh api /user --jq '.id')
|
|
162
|
+
git config user.name "${TOKEN_USER}"
|
|
163
|
+
git config user.email "${TOKEN_ID}+${TOKEN_USER}@users.noreply.github.com"
|
|
159
164
|
git add -A
|
|
160
165
|
git diff --cached --quiet && echo "No changes" && exit 0
|
|
161
166
|
VERSION=$(npx @xn-intenton-z2a/agentic-lib version 2>/dev/null || echo "latest")
|
|
@@ -132,9 +132,14 @@ jobs:
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
- name: Commit and push
|
|
135
|
+
env:
|
|
136
|
+
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
|
135
137
|
run: |
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
# Use the WORKFLOW_TOKEN owner's identity so GitHub re-registers cron schedules
|
|
139
|
+
TOKEN_USER=$(gh api /user --jq '.login')
|
|
140
|
+
TOKEN_ID=$(gh api /user --jq '.id')
|
|
141
|
+
git config user.name "${TOKEN_USER}"
|
|
142
|
+
git config user.email "${TOKEN_ID}+${TOKEN_USER}@users.noreply.github.com"
|
|
138
143
|
FREQUENCY="${{ inputs.frequency }}"
|
|
139
144
|
MODEL="${{ inputs.model }}"
|
|
140
145
|
git add .github/workflows/agent-supervisor.yml agentic-lib.toml
|