@xn-intenton-z2a/agentic-lib 7.1.10 → 7.1.12
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/README.md
CHANGED
|
@@ -57,20 +57,15 @@ your-repo/
|
|
|
57
57
|
├── agentic-lib.toml # [INIT] Config (created once, never overwritten)
|
|
58
58
|
│
|
|
59
59
|
├── .github/
|
|
60
|
-
│ ├── workflows/ # [INIT]
|
|
60
|
+
│ ├── workflows/ # [INIT] 8 workflow files (always overwritten)
|
|
61
61
|
│ │ ├── agent-flow-transform.yml # Core: transform code toward the mission
|
|
62
62
|
│ │ ├── agent-flow-maintain.yml # Core: maintain features and library
|
|
63
63
|
│ │ ├── agent-flow-review.yml # Core: review and close resolved issues
|
|
64
64
|
│ │ ├── agent-flow-fix-code.yml # Core: fix failing tests
|
|
65
65
|
│ │ ├── agent-discussions-bot.yml # Bot: respond to GitHub Discussions
|
|
66
66
|
│ │ ├── agent-supervisor.yml # Supervisor: orchestrate the pipeline
|
|
67
|
-
│ │ ├── agent-archive-intentïon.yml # Archive the activity log
|
|
68
|
-
│ │ ├── ci-test.yml # CI: run tests
|
|
69
67
|
│ │ ├── ci-automerge.yml # CI: auto-merge passing PRs
|
|
70
|
-
│ │
|
|
71
|
-
│ │ ├── ci-update.yml # CI: dependency updates
|
|
72
|
-
│ │ ├── ci-init.yml # CI: pull latest infrastructure
|
|
73
|
-
│ │ └── publish-packages.yml # Release: npm publish
|
|
68
|
+
│ │ └── test.yml # CI: run tests
|
|
74
69
|
│ │
|
|
75
70
|
│ └── agentic-lib/ # [INIT] Internal infrastructure (always overwritten)
|
|
76
71
|
│ ├── actions/
|
|
@@ -95,6 +90,8 @@ your-repo/
|
|
|
95
90
|
- **[USER]** -- Your files. `init` never touches these. `init --purge` resets them to seed state.
|
|
96
91
|
- **[GENERATED]** -- Created by the agentic workflows during operation.
|
|
97
92
|
|
|
93
|
+
Your repository should also have an `init.yml` workflow (not distributed — maintained locally) that runs `npx agentic-lib init --purge` on a schedule to keep infrastructure up to date. See [repository0/init.yml](https://github.com/xn-intenton-z2a/repository0/blob/main/.github/workflows/init.yml) for an example.
|
|
94
|
+
|
|
98
95
|
### What You Need Before Running `init`
|
|
99
96
|
|
|
100
97
|
| File | Required? | Notes |
|
|
@@ -279,16 +276,16 @@ This repository is the source for the `@xn-intenton-z2a/agentic-lib` npm package
|
|
|
279
276
|
|
|
280
277
|
```
|
|
281
278
|
src/
|
|
282
|
-
├── workflows/
|
|
279
|
+
├── workflows/ 7 GitHub Actions workflow templates
|
|
283
280
|
├── actions/ 3 composite/SDK actions (agentic-step, commit-if-changed, setup-npmrc)
|
|
284
281
|
├── agents/ 7 agent prompt files + 1 config
|
|
285
|
-
├── seeds/
|
|
286
|
-
└── scripts/
|
|
282
|
+
├── seeds/ 7 seed files (test.yml + 6 project seed files for --purge reset)
|
|
283
|
+
└── scripts/ 7 utility scripts distributed to consumers
|
|
287
284
|
```
|
|
288
285
|
|
|
289
286
|
### Testing
|
|
290
287
|
|
|
291
|
-
|
|
288
|
+
236 unit tests across 21 test files, plus system tests:
|
|
292
289
|
|
|
293
290
|
```bash
|
|
294
291
|
npm test # Run all tests (vitest)
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ export async function checkWipLimit(octokit, repo, label, limit) {
|
|
|
37
37
|
* @param {import('@actions/github').GitHub} octokit - GitHub API client
|
|
38
38
|
* @param {Object} repo - { owner, repo } identifying the repository
|
|
39
39
|
* @param {string|number} issueNumber - The issue number
|
|
40
|
-
* @param {string} branchPrefix - Branch naming prefix (e.g. 'agentic-lib-
|
|
40
|
+
* @param {string} branchPrefix - Branch naming prefix (e.g. 'agentic-lib-')
|
|
41
41
|
* @returns {Promise<number>} Number of branches matching the pattern
|
|
42
42
|
*/
|
|
43
43
|
export async function countBranchAttempts(octokit, repo, issueNumber, branchPrefix) {
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
# Mission
|
|
2
2
|
|
|
3
|
-
Build a useful
|
|
4
|
-
|
|
5
|
-
Write your intention here. The agentic workflows will transform the code in `src/lib/main.js` to realise this mission. Tests in `tests/unit/` keep the code on track. Each workflow cycle assesses the current state, plans improvements, and executes changes — guided by this document.
|
|
6
|
-
|
|
7
|
-
See [intentïon agentic-lib](https://github.com/xn-intenton-z2a/agentic-lib) for details.
|
|
3
|
+
Build a JavaScript library that is immediately useful to something or someone and it immediately available to run e.g. `npx @xn-intenton-z2a/<this package name>`.
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
github.event_name == 'workflow_dispatch' ||
|
|
37
37
|
(github.event_name == 'check_suite' &&
|
|
38
38
|
github.event.check_suite.conclusion == 'failure' &&
|
|
39
|
-
(startsWith(github.event.check_suite.head_branch, 'agentic-lib-
|
|
39
|
+
(startsWith(github.event.check_suite.head_branch, 'agentic-lib-') ||
|
|
40
40
|
startsWith(github.event.check_suite.head_branch, 'copilot/')))
|
|
41
41
|
runs-on: ubuntu-latest
|
|
42
42
|
outputs:
|
|
@@ -25,7 +25,7 @@ on:
|
|
|
25
25
|
|
|
26
26
|
env:
|
|
27
27
|
pullRequestLabel: "automerge"
|
|
28
|
-
branchPrefix: "agentic-lib-
|
|
28
|
+
branchPrefix: "agentic-lib-"
|
|
29
29
|
copilotBranchPrefix: "copilot/"
|
|
30
30
|
|
|
31
31
|
jobs:
|
|
@@ -240,7 +240,7 @@ jobs:
|
|
|
240
240
|
branchName = pullRequest.head.ref;
|
|
241
241
|
core.info(`branchName '${branchName}'`);
|
|
242
242
|
|
|
243
|
-
// Extract issue number from branch name (supports agentic-lib
|
|
243
|
+
// Extract issue number from branch name (supports agentic-lib-* and copilot/* prefixes)
|
|
244
244
|
let issueNumberMatch = '';
|
|
245
245
|
if (branchName.startsWith(branchPrefix)) {
|
|
246
246
|
issueNumberMatch = branchName.replace(branchPrefix, '');
|