@xn-intenton-z2a/agentic-lib 7.3.0 → 7.4.1

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.
@@ -67,18 +67,22 @@ on:
67
67
  default: "hamming-distance"
68
68
  options:
69
69
  - hamming-distance
70
+ - agi
71
+ - ascii-face
72
+ - c64-emulator
73
+ - cron-engine
74
+ - dense-encoding
70
75
  - fizz-buzz
71
- - roman-numerals
76
+ - hello-world
77
+ - json-schema-diff
72
78
  - lunar-lander
73
- - string-utils
74
- - dense-encoding
75
- - plot-code-lib
76
- - cron-engine
79
+ - markdown-compiler
77
80
  - owl-ontology
78
- - time-series-lab
79
- - c64-emulator
81
+ - plot-code-lib
80
82
  - ray-tracer
81
- - markdown-compiler
83
+ - roman-numerals
84
+ - string-utils
85
+ - time-series-lab
82
86
  - empty
83
87
  mission-text:
84
88
  description: "Freeform mission text for MISSION.md (overrides mission-seed if provided)"
@@ -250,10 +254,10 @@ jobs:
250
254
 
251
255
  const SCHEDULE_MAP = {
252
256
  off: null,
253
- weekly: '15 6 * * 1',
254
- daily: '15 6 * * *',
255
- hourly: '15 * * * *',
256
- continuous: '5,15,25,35,45,55 * * * *',
257
+ weekly: '25 6 * * 1',
258
+ daily: '25 6 * * *',
259
+ hourly: '25 * * * *',
260
+ continuous: '5,25,45 * * * *',
257
261
  };
258
262
 
259
263
  if (fs.existsSync(workflowPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xn-intenton-z2a/agentic-lib",
3
- "version": "7.3.0",
3
+ "version": "7.4.1",
4
4
  "description": "Agentic-lib Agentic Coding Systems SDK powering automated GitHub workflows.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -35,8 +35,12 @@ runs:
35
35
  fi
36
36
  if ! git diff --cached --quiet; then
37
37
  git commit -m "${{ inputs.commit-message }}"
38
+ # Stash any unstaged changes (e.g. log/screenshot files we just unstaged)
39
+ # so that git pull --rebase can work cleanly
40
+ git stash 2>/dev/null || true
38
41
  REF="${{ inputs.push-ref }}"
39
42
  MAX_RETRIES=3
43
+ PUSH_SUCCESS=""
40
44
  REMOTE_REF_EXISTS=""
41
45
  if [ -n "$REF" ]; then
42
46
  git ls-remote --exit-code origin "$REF" > /dev/null 2>&1 && REMOTE_REF_EXISTS="true"
@@ -53,7 +57,7 @@ runs:
53
57
  continue
54
58
  }
55
59
  fi
56
- git push origin "$REF" && { REMOTE_REF_EXISTS="true"; break; }
60
+ git push origin "$REF" && { REMOTE_REF_EXISTS="true"; PUSH_SUCCESS="true"; break; }
57
61
  else
58
62
  git pull --rebase || {
59
63
  echo "Rebase conflict on attempt $attempt — aborting rebase and retrying"
@@ -61,13 +65,15 @@ runs:
61
65
  sleep $((attempt * 2))
62
66
  continue
63
67
  }
64
- git push && break
65
- fi
66
- if [ "$attempt" -eq "$MAX_RETRIES" ]; then
67
- echo "::error::Failed to push after $MAX_RETRIES attempts"
68
- exit 1
68
+ git push && { PUSH_SUCCESS="true"; break; }
69
69
  fi
70
70
  echo "Push failed on attempt $attempt, retrying..."
71
71
  sleep $((attempt * 2))
72
72
  done
73
+ # Restore stashed unstaged changes
74
+ git stash pop 2>/dev/null || true
75
+ if [ "$PUSH_SUCCESS" != "true" ]; then
76
+ echo "::error::Failed to push after $MAX_RETRIES attempts"
77
+ exit 1
78
+ fi
73
79
  fi
@@ -29,6 +29,10 @@ fi
29
29
 
30
30
  echo "push-to-logs: pushing ${FILES[*]} to ${BRANCH}"
31
31
 
32
+ # Mark the workspace as safe (needed in container jobs where the checkout
33
+ # was done by a different user, e.g. Playwright containers)
34
+ git config --global --add safe.directory "$(pwd)" 2>/dev/null || true
35
+
32
36
  # Configure git
33
37
  git config --local user.email 'action@github.com'
34
38
  git config --local user.name 'GitHub Actions[bot]'
@@ -39,13 +43,21 @@ for f in "${FILES[@]}"; do
39
43
  cp "$f" "${TMPDIR}/$(basename "$f")"
40
44
  done
41
45
 
46
+ # Remember which branch/ref to return to
47
+ ORIGINAL_REF=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
48
+ if [ "$ORIGINAL_REF" = "HEAD" ]; then
49
+ ORIGINAL_REF=$(git rev-parse HEAD 2>/dev/null || echo "")
50
+ fi
51
+
52
+ # Stash any uncommitted changes so branch switching works cleanly
53
+ git stash --include-untracked 2>/dev/null || true
54
+
42
55
  # Fetch the agentic-lib-logs branch (may not exist yet)
43
56
  REMOTE_EXISTS=""
44
57
  git fetch origin "${BRANCH}" 2>/dev/null && REMOTE_EXISTS="true" || true
45
58
 
46
59
  if [ "$REMOTE_EXISTS" = "true" ]; then
47
- # Check out existing agentic-lib-logs branch into a detached worktree-like state
48
- git checkout "origin/${BRANCH}" -- . 2>/dev/null || true
60
+ # Check out existing agentic-lib-logs branch
49
61
  git checkout -B "${BRANCH}" "origin/${BRANCH}"
50
62
  else
51
63
  # Create orphan branch
@@ -79,8 +91,15 @@ else
79
91
  done
80
92
  fi
81
93
 
82
- # Return to previous branch
83
- git checkout - 2>/dev/null || git checkout main 2>/dev/null || true
94
+ # Return to original branch/ref
95
+ if [ -n "$ORIGINAL_REF" ]; then
96
+ git checkout "$ORIGINAL_REF" 2>/dev/null || git checkout main 2>/dev/null || true
97
+ else
98
+ git checkout main 2>/dev/null || true
99
+ fi
100
+
101
+ # Restore stashed changes
102
+ git stash pop 2>/dev/null || true
84
103
 
85
104
  # Clean up
86
105
  rm -rf "$TMPDIR"
@@ -0,0 +1,22 @@
1
+ # Mission
2
+
3
+ **Agentic-lib** is evolving into an intelligent automation system endowed with multiple AGI-aligned capabilities, all oriented toward a coherent long-term purpose: enabling agentic, cross-repository intelligent automation. The ultimate vision is a network of self-managing coding agents that can understand high-level goals, break them down, execute tasks across many projects, learn from their experiences, and seek assistance when needed – all with minimal human intervention. Each of the new features (Memory, Planning, Goal Decomposition, Self-Improvement, Replication, and Help-Seeking) contributes to this vision in a concrete, feasible way, building the stepping stones toward a truly autonomous development workflow.
4
+
5
+ In the near term, these traits function as enhancements to the JavaScript CLI/Lambda agent that drives **agentic-lib**:
6
+ - **Memory** provides continuity. The agent now retains a log of actions and outcomes, which means it can carry context from one step to the next. This is immediately useful for avoiding redundant operations and will later allow experience-based learning. For example, when the agent works on Repository A and then on Repository B, a memory of patterns or solutions from A could inform its actions on B.
7
+ - **Planning** gives the agent foresight. Instead of reacting to one command at a time, it can map out a sequence of tasks to achieve a bigger objective. Right now it executes those plans instantly, but this capability will expand to planning over longer durations (even across workflow runs) and coordinating complex changes (like a multi-step refactor that touches many parts of a codebase or multiple repositories).
8
+ - **Goal Decomposition** adds transparency and manageability to complex objectives. The agent can articulate a game plan (a set of sub-tasks) for a broad goal, which can be reviewed or assigned out. In a multi-repository scenario, the agent might decompose a company-wide objective into repo-specific tasks. This structured breakdown makes large-scale automation safer and more organized, since each piece can be tracked (potentially as separate issues or pull requests).
9
+ - **Self-Improvement** makes the agent reflective. By tracking its performance (how many errors, how fast it completes tasks) the agent lays the groundwork for optimizing itself. In the short run, this means better observability and diagnostics in the system. In the long run, the agent could use this information to autonomously fine-tune its own algorithms – for instance, detecting that it often fails a certain kind of task and adjusting its approach or updating its code. This trait keeps the agent aligned with best practices and efficiency as it scales up.
10
+ - **Replication** unlocks scale. The agent is no longer a singleton processing one item at a time – it can replicate its effort either through parallel processing or by spawning new agent instances. Immediately, this manifests as parallel command execution which speeds up workflows (e.g., running multiple checks or updates simultaneously). Looking forward, replication means the agentic-lib model can be instantiated in multiple environments at once: think of dozens of agent clones each working on a different repository but sharing the same core knowledge. This horizontal scaling is essential for cross-repository automation in large organizations.
11
+ - **Help-Seeking** keeps the agent humble and effective. When the agent encounters something it doesn’t know, it can ask an external AI or resource, rather than stalling or guessing wrongly. Currently, this is achieved via OpenAI API calls for answers. As this feature matures, the agent will integrate more sources (documentation, human feedback) and become increasingly adept at knowing when and how to seek help. This ensures that as the agent’s autonomy grows, it remains grounded and correct in its actions, leveraging the broader world’s knowledge.
12
+
13
+ All these capabilities align to serve a **unified mission**: an autonomous system that can handle the lifecycle of software development tasks across multiple projects. Concretely, we are moving toward a scenario where you could give the agent a high-level directive (for example, “ensure all our repositories are using the latest version of library X and adhere to security policy Y”), and the agent would:
14
+ 1. **Understand and Plan:** It would use Goal Decomposition and Planning to figure out what needs to be done for each repository – maybe creating a checklist per repository.
15
+ 2. **Take Action in Parallel:** Using Replication, it would initiate changes in multiple repositories at once (branching, editing files, running tests), using memory to avoid repeating known fixes and using its plan as a guide.
16
+ 3. **Learn and Adapt:** Throughout, Self-Improvement metrics would monitor which repos encountered issues (maybe some tests failed or some had edge cases). The agent could adjust its approach repository by repository – for instance, if it learned a better fix in one place, Memory would carry that knowledge to the others.
17
+ 4. **Seek Guidance if Stuck:** If a particular repository has an unusual setup that the agent doesn’t understand, the Help-Seeking trait would kick in – the agent might query documentation or even open a “help needed” issue for a human maintainer, ensuring that it doesn’t silently fail.
18
+ 5. **Deliver Results:** Finally, the agent would open pull requests or issues summarizing changes for each repository (or automatically merge them if permitted), effectively executing a coordinated cross-repo update with minimal human oversight.
19
+
20
+ The long-term purpose is ambitious but grounded in these tangible capabilities. Each new feature is a **plausible next step**: for example, after implementing basic memory, the next step is to make that memory persistent or sharable among agent instances (so that one agent’s learnings become every agent’s knowledge). After introducing planning and decomposition, the next step is to integrate those with the GitHub issue workflow – the agent could start creating and managing issues on its own to track sub-tasks. Self-improvement opens the door to techniques like on-the-fly model prompting (the agent asking “how can I do this better?” and applying the advice). Replication will eventually entail deploying the agent as a service or container that can be instantiated on demand for whatever project needs it. And help-seeking will evolve into a rich web of integrations with documentation, Q&A forums, and direct human loop-ins when necessary.
21
+
22
+ In summary, the trajectory defined in this feature set steers **agentic-lib** toward becoming a general-purpose automation AI for software projects. It’s not science fiction – each step is achievable with incremental improvements and integrations, and together they compound into a system that can handle increasing complexity. By focusing on feasible enhancements now (like logging memory, adding parallelism, using an API for help, etc.), we ensure that future leaps (like autonomous multi-repo refactoring or self-directed learning) are built on solid ground. All traits work in concert: memory and help-seeking ensure it has the knowledge, planning and decomposition give it strategy, replication gives it manpower, and self-improvement ensures it keeps getting better. With these aligned, **agentic-lib** can truly fulfill its mission of agentic, cross-repository intelligent automation – a stepping stone toward the broader vision of self-evolving code.
@@ -0,0 +1,4 @@
1
+ # Mission
2
+
3
+ Create a CLI app that depicts emotion using facial expressions using ascii art.
4
+ This will be the emotion communication mechanism for an AI.
@@ -0,0 +1,3 @@
1
+ # Mission
2
+
3
+ Deliver the traditional first program to write in a new language, the "Hello World!" message.
@@ -0,0 +1,4 @@
1
+ # Mission
2
+
3
+ **json‑schema‑diff** is designed to help API developers and teams track and validate changes in JSON Schemas.
4
+ By providing a human‑readable diff, the tool simplifies the evolution of API definitions and facilitates collaboration during version upgrades.
@@ -17,7 +17,7 @@
17
17
  "author": "",
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@xn-intenton-z2a/agentic-lib": "^7.3.0"
20
+ "@xn-intenton-z2a/agentic-lib": "^7.4.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@playwright/test": "^1.58.0",
@@ -1,3 +0,0 @@
1
- # Mission
2
-
3
- Describe your project's mission here. The agentic workflows will evolve `src/lib/main.js` to fulfil this mission.