@xn-intenton-z2a/agentic-lib 7.4.7 → 7.4.8
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/.github/workflows/agentic-lib-bot.yml +1 -1
- package/.github/workflows/agentic-lib-workflow.yml +9 -9
- package/README.md +1 -1
- package/bin/agentic-lib.js +11 -2
- package/package.json +1 -1
- package/src/actions/agentic-step/action.yml +1 -1
- package/src/agents/agent-apply-fix.md +4 -0
- package/src/agents/agent-director.md +4 -0
- package/src/agents/agent-discovery.md +4 -0
- package/src/agents/agent-discussion-bot.md +4 -0
- package/src/agents/agent-issue-resolution.md +4 -0
- package/src/agents/agent-iterate.md +4 -0
- package/src/agents/agent-maintain-features.md +4 -0
- package/src/agents/agent-maintain-library.md +4 -0
- package/src/agents/agent-ready-issue.md +4 -0
- package/src/agents/agent-review-issue.md +4 -0
- package/src/agents/agent-supervisor.md +4 -0
- package/src/copilot/config.js +2 -2
- package/src/scripts/accept-release.sh +4 -4
- package/src/seeds/zero-package.json +1 -1
|
@@ -201,7 +201,7 @@ jobs:
|
|
|
201
201
|
with:
|
|
202
202
|
task: "discussions"
|
|
203
203
|
config: ${{ env.configPath }}
|
|
204
|
-
instructions: ".github/
|
|
204
|
+
instructions: ".github/agents/agent-discussion-bot.md"
|
|
205
205
|
discussion-url: ${{ steps.discussion-url.outputs.url }}
|
|
206
206
|
comment-node-id: ${{ steps.discussion-url.outputs.comment-node-id }}
|
|
207
207
|
comment-created-at: ${{ steps.discussion-url.outputs.comment-created-at }}
|
|
@@ -644,7 +644,7 @@ jobs:
|
|
|
644
644
|
with:
|
|
645
645
|
task: "maintain-features"
|
|
646
646
|
config: ${{ needs.params.outputs.config-path }}
|
|
647
|
-
instructions: ".github/
|
|
647
|
+
instructions: ".github/agents/agent-maintain-features.md"
|
|
648
648
|
writable-paths: ${{ steps.config.outputs.featuresWritablePaths }}
|
|
649
649
|
model: ${{ needs.params.outputs.model }}
|
|
650
650
|
|
|
@@ -658,7 +658,7 @@ jobs:
|
|
|
658
658
|
with:
|
|
659
659
|
task: "maintain-library"
|
|
660
660
|
config: ${{ needs.params.outputs.config-path }}
|
|
661
|
-
instructions: ".github/
|
|
661
|
+
instructions: ".github/agents/agent-maintain-library.md"
|
|
662
662
|
writable-paths: ${{ steps.config.outputs.libraryWritablePaths }}
|
|
663
663
|
model: ${{ needs.params.outputs.model }}
|
|
664
664
|
|
|
@@ -733,7 +733,7 @@ jobs:
|
|
|
733
733
|
with:
|
|
734
734
|
task: "direct"
|
|
735
735
|
config: ${{ needs.params.outputs.config-path }}
|
|
736
|
-
instructions: ".github/
|
|
736
|
+
instructions: ".github/agents/agent-director.md"
|
|
737
737
|
model: ${{ needs.params.outputs.model }}
|
|
738
738
|
|
|
739
739
|
- name: Push log to agentic-lib-logs branch
|
|
@@ -788,7 +788,7 @@ jobs:
|
|
|
788
788
|
with:
|
|
789
789
|
task: "supervise"
|
|
790
790
|
config: ${{ needs.params.outputs.config-path }}
|
|
791
|
-
instructions: ".github/
|
|
791
|
+
instructions: ".github/agents/agent-supervisor.md"
|
|
792
792
|
model: ${{ needs.params.outputs.model }}
|
|
793
793
|
|
|
794
794
|
- name: Push log to agentic-lib-logs branch
|
|
@@ -1060,7 +1060,7 @@ jobs:
|
|
|
1060
1060
|
with:
|
|
1061
1061
|
task: "fix-code"
|
|
1062
1062
|
config: ${{ needs.params.outputs.config-path }}
|
|
1063
|
-
instructions: ".github/
|
|
1063
|
+
instructions: ".github/agents/agent-apply-fix.md"
|
|
1064
1064
|
pr-number: ${{ env.FIX_PR_NUMBER }}
|
|
1065
1065
|
# test-command read from [execution].test in agentic-lib.toml
|
|
1066
1066
|
model: ${{ needs.params.outputs.model }}
|
|
@@ -1077,7 +1077,7 @@ jobs:
|
|
|
1077
1077
|
with:
|
|
1078
1078
|
task: "fix-code"
|
|
1079
1079
|
config: ${{ needs.params.outputs.config-path }}
|
|
1080
|
-
instructions: ".github/
|
|
1080
|
+
instructions: ".github/agents/agent-apply-fix.md"
|
|
1081
1081
|
model: ${{ needs.params.outputs.model }}
|
|
1082
1082
|
|
|
1083
1083
|
- name: Build website and run behaviour tests (fix)
|
|
@@ -1158,7 +1158,7 @@ jobs:
|
|
|
1158
1158
|
with:
|
|
1159
1159
|
task: "review-issue"
|
|
1160
1160
|
config: ${{ needs.params.outputs.config-path }}
|
|
1161
|
-
instructions: ".github/
|
|
1161
|
+
instructions: ".github/agents/agent-review-issue.md"
|
|
1162
1162
|
model: ${{ needs.params.outputs.model }}
|
|
1163
1163
|
|
|
1164
1164
|
- name: Enhance issues
|
|
@@ -1169,7 +1169,7 @@ jobs:
|
|
|
1169
1169
|
with:
|
|
1170
1170
|
task: "enhance-issue"
|
|
1171
1171
|
config: ${{ needs.params.outputs.config-path }}
|
|
1172
|
-
instructions: ".github/
|
|
1172
|
+
instructions: ".github/agents/agent-ready-issue.md"
|
|
1173
1173
|
model: ${{ needs.params.outputs.model }}
|
|
1174
1174
|
|
|
1175
1175
|
# ─── Dev: sequential issue resolution ──────────────────────────────
|
|
@@ -1295,7 +1295,7 @@ jobs:
|
|
|
1295
1295
|
with:
|
|
1296
1296
|
task: "transform"
|
|
1297
1297
|
config: ${{ needs.params.outputs.config-path }}
|
|
1298
|
-
instructions: ".github/
|
|
1298
|
+
instructions: ".github/agents/agent-issue-resolution.md"
|
|
1299
1299
|
# test-command read from [execution].test in agentic-lib.toml
|
|
1300
1300
|
model: ${{ needs.params.outputs.model }}
|
|
1301
1301
|
issue-number: ${{ steps.issue.outputs.issue-number }}
|
package/README.md
CHANGED
|
@@ -203,7 +203,7 @@ The `profile` setting controls all tuning defaults. Three profiles are built in:
|
|
|
203
203
|
|
|
204
204
|
Override individual knobs in `[tuning]` to deviate from a profile. Limits (`[limits]`) also scale with the profile.
|
|
205
205
|
|
|
206
|
-
The YAML config at `.github/agentic-lib/agents/agentic-lib.yml` is also supported as a fallback.
|
|
206
|
+
The legacy YAML config at `.github/agentic-lib/agents/agentic-lib.yml` is also supported as a fallback.
|
|
207
207
|
|
|
208
208
|
## The `agentic-step` Action
|
|
209
209
|
|
package/bin/agentic-lib.js
CHANGED
|
@@ -575,11 +575,13 @@ function initActions(agenticDir) {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
function initDirContents(srcSubdir, dstDir, label) {
|
|
578
|
+
function initDirContents(srcSubdir, dstDir, label, excludeFiles = []) {
|
|
579
579
|
console.log(`\n--- ${label} ---`);
|
|
580
580
|
const dir = resolve(srcDir, srcSubdir);
|
|
581
581
|
if (!existsSync(dir)) return;
|
|
582
|
+
const excludeSet = new Set(excludeFiles);
|
|
582
583
|
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
584
|
+
if (excludeSet.has(entry.name)) continue;
|
|
583
585
|
if (entry.isDirectory()) {
|
|
584
586
|
initCopyDirRecursive(resolve(dir, entry.name), resolve(dstDir, entry.name), `${srcSubdir}/${entry.name}`);
|
|
585
587
|
} else {
|
|
@@ -1269,7 +1271,14 @@ function runInit() {
|
|
|
1269
1271
|
initWorkflows();
|
|
1270
1272
|
initActions(agenticDir);
|
|
1271
1273
|
initDirContents("copilot", resolve(agenticDir, "copilot"), "Copilot (shared modules)");
|
|
1272
|
-
initDirContents("agents", resolve(
|
|
1274
|
+
initDirContents("agents", resolve(target, ".github/agents"), "Agents", ["agentic-lib.yml"]);
|
|
1275
|
+
// Remove stale legacy agents directory
|
|
1276
|
+
const legacyAgentsDir = resolve(agenticDir, "agents");
|
|
1277
|
+
if (existsSync(legacyAgentsDir)) {
|
|
1278
|
+
if (!dryRun) rmSync(legacyAgentsDir, { recursive: true });
|
|
1279
|
+
console.log(" REMOVE stale: .github/agentic-lib/agents/ (migrated to .github/agents/)");
|
|
1280
|
+
initChanges++;
|
|
1281
|
+
}
|
|
1273
1282
|
initDirContents("seeds", resolve(agenticDir, "seeds"), "Seeds");
|
|
1274
1283
|
initScripts(agenticDir);
|
|
1275
1284
|
initConfig(seedsDir);
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ inputs:
|
|
|
18
18
|
config:
|
|
19
19
|
description: "Path to agentic-lib.yml configuration file"
|
|
20
20
|
required: false
|
|
21
|
-
default: "
|
|
21
|
+
default: "agentic-lib.toml"
|
|
22
22
|
instructions:
|
|
23
23
|
description: "Path to agent prompt/instructions file (.md)"
|
|
24
24
|
required: false
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Fix build or test failures by applying coordinated changes across all code layers
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
You are providing the entire new content of source files, test files, documentation files,
|
|
2
6
|
and other necessary files with all necessary changes applied to resolve a possible build or test
|
|
3
7
|
problem. Fix the root cause. If the problem is in an area of the code with little
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Evaluate mission status as complete, failed, or in-progress with gap analysis
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
You are the director of an autonomous coding repository. Your sole responsibility is evaluating whether the mission is complete, failed, or in progress.
|
|
2
6
|
|
|
3
7
|
## Your Role
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Explore a project and generate a MISSION.md describing improvements
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
You are a project discovery agent running locally via the intentïon CLI.
|
|
2
6
|
|
|
3
7
|
Your job is to explore the current working directory and generate a MISSION.md file that describes what this project is and what improvements could be made.
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Implement issue resolution with coordinated source, tests, website, and docs changes
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
You are providing the entire new content of source files, test files, documentation files, and other necessary
|
|
2
6
|
files with all necessary changes applied to deliver the resolution to an issue.
|
|
3
7
|
Implement as much as you can and refer to the project's features and mission statement when expanding the code
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Autonomous code transformation agent for implementing missions locally
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
You are an autonomous code transformation agent running locally via the intentïon CLI.
|
|
2
6
|
|
|
3
7
|
Your workspace is the current working directory. You have been given a MISSION to implement.
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate or update software feature specifications aligned with the mission
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
Please generate the name and specification for a software feature which will be added or updated to action the supplied feature prompt.
|
|
2
6
|
Features must advance the mission stated in MISSION.md. Aim for achievable outcomes within a single repository, not a grandiose vision or bloated feature set.
|
|
3
7
|
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Extract and condense technical details from sources into library documents
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
Extract and condense the technical details from the supplied crawl result that are relevant to the mission.
|
|
2
6
|
Before adding a new document, ensure that this document is distinct from any other document in the library, otherwise update an existing document.
|
|
3
7
|
The document name should be one or two words in SCREAMING_SNAKECASE.
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review GitHub issues and enhance with testable acceptance criteria
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
Please review the GitHub issue and determine if it should be enhanced, closed or if no operation is needed.
|
|
2
6
|
|
|
3
7
|
If the issue is relevant to the mission statement and features:
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review whether code changes resolve an issue across all layers
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
Does the combination of library source, unit tests, website, web tests, behaviour tests, README,
|
|
2
6
|
and dependencies resolve the following issue? Check that the solution satisfies the issue's
|
|
3
7
|
acceptance criteria and moves the mission toward complete.
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Orchestrate autonomous workflows by choosing strategic actions to advance the mission
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
You are the supervisor of an autonomous coding repository. Your job is to advance the mission by strategically choosing which workflows to dispatch and which GitHub actions to take.
|
|
2
6
|
|
|
3
7
|
**Important:** You do NOT evaluate mission-complete or mission-failed. That is the director's exclusive responsibility. Focus on advancing the mission through strategic action.
|
package/src/copilot/config.js
CHANGED
|
@@ -198,8 +198,8 @@ function resolveLimits(limitsSection, profileName, profilesSection) {
|
|
|
198
198
|
* Load configuration from agentic-lib.toml.
|
|
199
199
|
*
|
|
200
200
|
* If configPath ends in .toml, it is used directly.
|
|
201
|
-
* Otherwise, the project root is derived (3 levels up
|
|
202
|
-
* and agentic-lib.toml is loaded from there.
|
|
201
|
+
* Otherwise (legacy .yml path), the project root is derived (3 levels up
|
|
202
|
+
* from configPath) and agentic-lib.toml is loaded from there.
|
|
203
203
|
*
|
|
204
204
|
* @param {string} configPath - Path to config file or YAML path (for project root derivation)
|
|
205
205
|
* @returns {AgenticConfig} Parsed configuration object
|
|
@@ -13,14 +13,14 @@ if [ -z "$1" ]; then
|
|
|
13
13
|
exit 1
|
|
14
14
|
fi
|
|
15
15
|
|
|
16
|
-
schedule=$(grep '^
|
|
16
|
+
schedule=$(grep '^supervisor' agentic-lib.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')
|
|
17
17
|
if [ -z "${schedule}" ]; then
|
|
18
|
-
echo "No schedule found in
|
|
18
|
+
echo "No schedule found in agentic-lib.toml [schedule] section, using schedule-1"
|
|
19
19
|
schedule=1
|
|
20
20
|
fi
|
|
21
|
-
echo "Workflow schedule:
|
|
21
|
+
echo "Workflow schedule: ${schedule?}"
|
|
22
22
|
./scripts/activate-schedule.sh "${schedule?}"
|
|
23
|
-
git add .github/
|
|
23
|
+
git add .github/agents/*
|
|
24
24
|
git add .github/agentic-lib/actions/*
|
|
25
25
|
git add .github/workflows/*
|
|
26
26
|
git add scripts/*
|