@xn-intenton-z2a/agentic-lib 7.1.45 → 7.1.47
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
|
@@ -697,8 +697,12 @@ function initDirContents(srcSubdir, dstDir, label) {
|
|
|
697
697
|
console.log(`\n--- ${label} ---`);
|
|
698
698
|
const dir = resolve(srcDir, srcSubdir);
|
|
699
699
|
if (!existsSync(dir)) return;
|
|
700
|
-
for (const
|
|
701
|
-
|
|
700
|
+
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
701
|
+
if (entry.isDirectory()) {
|
|
702
|
+
initCopyDirRecursive(resolve(dir, entry.name), resolve(dstDir, entry.name), `${srcSubdir}/${entry.name}`);
|
|
703
|
+
} else {
|
|
704
|
+
initCopyFile(resolve(dir, entry.name), resolve(dstDir, entry.name), `${srcSubdir}/${entry.name}`);
|
|
705
|
+
}
|
|
702
706
|
}
|
|
703
707
|
}
|
|
704
708
|
|
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
|