@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.
@@ -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 f of readdirSync(dir)) {
701
- initCopyFile(resolve(dir, f), resolve(dstDir, f), `${srcSubdir}/${f}`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xn-intenton-z2a/agentic-lib",
3
- "version": "7.1.45",
3
+ "version": "7.1.47",
4
4
  "description": "Agentic-lib Agentic Coding Systems SDK powering automated GitHub workflows.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -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
- git config user.email "action@github.com"
158
- git config user.name "GitHub Actions[bot]"
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")
@@ -14,7 +14,7 @@
14
14
  "author": "",
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@xn-intenton-z2a/agentic-lib": "^7.1.45"
17
+ "@xn-intenton-z2a/agentic-lib": "^7.1.47"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@vitest/coverage-v8": "^4.0.0",
@@ -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
- git config user.name "github-actions[bot]"
137
- git config user.email "github-actions[bot]@users.noreply.github.com"
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