@xn-intenton-z2a/agentic-lib 7.1.28 → 7.1.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xn-intenton-z2a/agentic-lib",
3
- "version": "7.1.28",
3
+ "version": "7.1.29",
4
4
  "description": "Agentic-lib Agentic Coding Systems SDK powering automated GitHub workflows.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -31,11 +31,30 @@ runs:
31
31
  else
32
32
  git commit -m "${{ inputs.commit-message }}"
33
33
  REF="${{ inputs.push-ref }}"
34
- if [ -n "$REF" ]; then
35
- git pull --rebase origin "$REF"
36
- git push origin "$REF"
37
- else
38
- git pull --rebase
39
- git push
40
- fi
34
+ MAX_RETRIES=3
35
+ for attempt in $(seq 1 $MAX_RETRIES); do
36
+ if [ -n "$REF" ]; then
37
+ git pull --rebase origin "$REF" || {
38
+ echo "Rebase conflict on attempt $attempt — aborting rebase and retrying"
39
+ git rebase --abort 2>/dev/null || true
40
+ sleep $((attempt * 2))
41
+ continue
42
+ }
43
+ git push origin "$REF" && break
44
+ else
45
+ git pull --rebase || {
46
+ echo "Rebase conflict on attempt $attempt — aborting rebase and retrying"
47
+ git rebase --abort 2>/dev/null || true
48
+ sleep $((attempt * 2))
49
+ continue
50
+ }
51
+ git push && break
52
+ fi
53
+ if [ "$attempt" -eq "$MAX_RETRIES" ]; then
54
+ echo "::error::Failed to push after $MAX_RETRIES attempts"
55
+ exit 1
56
+ fi
57
+ echo "Push failed on attempt $attempt, retrying..."
58
+ sleep $((attempt * 2))
59
+ done
41
60
  fi
@@ -14,7 +14,7 @@
14
14
  "author": "",
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@xn-intenton-z2a/agentic-lib": "^7.1.28"
17
+ "@xn-intenton-z2a/agentic-lib": "^7.1.29"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@vitest/coverage-v8": "^4.0.0",
@@ -7,7 +7,9 @@
7
7
 
8
8
  name: agent-discussions-bot
9
9
  run-name: "agent-discussions-bot [${{ github.ref_name }}]"
10
- concurrency: agentic-lib-bot
10
+ concurrency:
11
+ group: agentic-lib-bot-${{ github.event.discussion.node_id || github.run_id }}
12
+ cancel-in-progress: false
11
13
 
12
14
  on:
13
15
  discussion:
@@ -24,6 +26,11 @@ on:
24
26
  - cron: "7 12 */28 * *" # schedule-1: every 28 days
25
27
  workflow_dispatch:
26
28
  inputs:
29
+ discussion-url:
30
+ description: "Discussion URL to respond to (required for supervisor-dispatched runs)"
31
+ type: string
32
+ required: false
33
+ default: ""
27
34
  model:
28
35
  description: "Copilot SDK model to use"
29
36
  type: choice
@@ -76,8 +83,8 @@ jobs:
76
83
  uses: actions/github-script@v7
77
84
  with:
78
85
  script: |
79
- let url = '';
80
- if (context.payload.discussion) {
86
+ let url = '${{ inputs.discussion-url }}' || '';
87
+ if (!url && context.payload.discussion) {
81
88
  url = context.payload.discussion.html_url;
82
89
  }
83
90
  core.setOutput('url', url);
@@ -7,7 +7,9 @@
7
7
 
8
8
  name: agent-flow-maintain
9
9
  run-name: "agent-flow-maintain [${{ github.ref_name }}]"
10
- concurrency: agentic-lib-main
10
+ concurrency:
11
+ group: agentic-lib-maintain
12
+ cancel-in-progress: true
11
13
 
12
14
  on:
13
15
  schedule:
@@ -6,7 +6,9 @@
6
6
 
7
7
  name: agent-flow-review
8
8
  run-name: "agent-flow-review [${{ github.ref_name }}]"
9
- concurrency: agentic-lib-main
9
+ concurrency:
10
+ group: agentic-lib-review
11
+ cancel-in-progress: true
10
12
 
11
13
  on:
12
14
  schedule:
@@ -7,7 +7,9 @@
7
7
 
8
8
  name: agent-flow-transform
9
9
  run-name: "agent-flow-transform [${{ github.ref_name }}]"
10
- concurrency: agentic-lib-main
10
+ concurrency:
11
+ group: agentic-lib-transform
12
+ cancel-in-progress: true
11
13
 
12
14
  on:
13
15
  schedule: