@xn-intenton-z2a/agentic-lib 7.1.8 → 7.1.10

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.
@@ -625,6 +625,19 @@ function initCopyDirRecursive(srcPath, dstPath, label, excludes = []) {
625
625
  }
626
626
  }
627
627
 
628
+ function removeStaleWorkflows(templateWorkflows) {
629
+ const KEEP = new Set(["init.yml"]);
630
+ const targetWorkflowsDir = resolve(target, ".github/workflows");
631
+ if (!existsSync(targetWorkflowsDir)) return;
632
+ for (const f of readdirSync(targetWorkflowsDir)) {
633
+ if (f.endsWith(".yml") && !templateWorkflows.has(f) && !KEEP.has(f)) {
634
+ if (!dryRun) rmSync(resolve(targetWorkflowsDir, f));
635
+ console.log(` REMOVE stale: workflows/${f}`);
636
+ initChanges++;
637
+ }
638
+ }
639
+ }
640
+
628
641
  function initWorkflows() {
629
642
  console.log("--- Workflows ---");
630
643
  const workflowsDir = resolve(srcDir, "workflows");
@@ -636,24 +649,12 @@ function initWorkflows() {
636
649
  initCopyFile(resolve(workflowsDir, f), resolve(target, ".github/workflows", f), `workflows/${f}`);
637
650
  }
638
651
  }
639
- // Also copy test.yml from seeds to workflows if it exists
640
652
  const seedTest = resolve(srcDir, "seeds/test.yml");
641
653
  if (existsSync(seedTest)) {
642
654
  templateWorkflows.add("test.yml");
643
655
  initCopyFile(seedTest, resolve(target, ".github/workflows/test.yml"), "workflows/test.yml (from seeds)");
644
656
  }
645
- // Delete stale workflows not in the template (skip init.yml — maintained by consumer)
646
- const KEEP = new Set(["init.yml"]);
647
- const targetWorkflowsDir = resolve(target, ".github/workflows");
648
- if (existsSync(targetWorkflowsDir)) {
649
- for (const f of readdirSync(targetWorkflowsDir)) {
650
- if (f.endsWith(".yml") && !templateWorkflows.has(f) && !KEEP.has(f)) {
651
- if (!dryRun) rmSync(resolve(targetWorkflowsDir, f));
652
- console.log(` REMOVE stale: workflows/${f}`);
653
- initChanges++;
654
- }
655
- }
656
- }
657
+ removeStaleWorkflows(templateWorkflows);
657
658
  }
658
659
 
659
660
  function initActions(agenticDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xn-intenton-z2a/agentic-lib",
3
- "version": "7.1.8",
3
+ "version": "7.1.10",
4
4
  "description": "Agentic-lib Agentic Coding Systems SDK powering automated GitHub workflows.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -32,8 +32,10 @@ runs:
32
32
  git commit -m "${{ inputs.commit-message }}"
33
33
  REF="${{ inputs.push-ref }}"
34
34
  if [ -n "$REF" ]; then
35
+ git pull --rebase origin "$REF"
35
36
  git push origin "$REF"
36
37
  else
38
+ git pull --rebase
37
39
  git push
38
40
  fi
39
41
  fi
@@ -7,6 +7,9 @@
7
7
 
8
8
  name: agent-flow-fix-code
9
9
  run-name: "agent-flow-fix-code [${{ github.ref_name }}]"
10
+ concurrency:
11
+ group: agentic-lib-fix-${{ github.event.check_suite.head_branch || inputs.pr-number || github.ref_name }}
12
+ cancel-in-progress: true
10
13
 
11
14
  on:
12
15
  check_suite:
@@ -73,7 +73,8 @@ jobs:
73
73
  push-ref: ${{ github.ref_name }}
74
74
 
75
75
  maintain-library:
76
- if: inputs.step == 'all' || inputs.step == 'library' || github.event_name == 'schedule'
76
+ needs: maintain-features
77
+ if: always() && (inputs.step == 'all' || inputs.step == 'library' || github.event_name == 'schedule')
77
78
  runs-on: ubuntu-latest
78
79
  steps:
79
80
  - uses: actions/checkout@v4
@@ -11,7 +11,7 @@ concurrency: agentic-lib-main
11
11
 
12
12
  on:
13
13
  schedule:
14
- - cron: "17 6,8,10,12 * * *" # daily at 06:17 UTC
14
+ - cron: "17 6,8,10,12 * * *" # 06:17, 08:17, 10:17, 12:17 UTC
15
15
  workflow_dispatch:
16
16
  inputs:
17
17
  model:
@@ -11,7 +11,7 @@ run-name: "agent-supervisor [${{ github.ref_name }}]"
11
11
  on:
12
12
  workflow_run:
13
13
  workflows:
14
- - ci
14
+ - test
15
15
  - agent-flow-transform
16
16
  - agent-flow-maintain
17
17
  types: