@rasensio/aidlc 1.94.0 → 1.94.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/autopilot/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/autopilot/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAgCD,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EA8B/C,CAAC;AA4BF,2FAA2F;AAC3F,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAG1D;AAED,eAAO,MAAM,gBAAgB;;;;;;;;EAGnB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;EAKnB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;EAQhB,CAAC;AAEX,eAAO,MAAM,eAAe;;;;;;;;;;;;EAIlB,CAAC;AAEX,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC1B;AAED,sFAAsF;AACtF,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAElE,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,EAAE,CAiBnE;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAE/D"}
|
|
@@ -16,16 +16,36 @@ import { join } from 'node:path';
|
|
|
16
16
|
* refusal shows in its log.
|
|
17
17
|
*/
|
|
18
18
|
const SCOPED_BASH = ['git', 'pnpm', 'npm', 'npx', 'node', 'ls', 'cat', 'grep', 'find', 'mkdir'];
|
|
19
|
+
/**
|
|
20
|
+
* The `aidlc` subcommands the scoped preset allows: the lifecycle bookkeeping a phase
|
|
21
|
+
* does on its own instance, plus the two roadmap commands the unattended rules name
|
|
22
|
+
* (`roadmap next`, and `roadmap park` for a hard stop). Named one by one rather than
|
|
23
|
+
* `aidlc:*`, because `aidlc autopilot setup --agent claude-full` would let an agent
|
|
24
|
+
* widen its own next run, and `roadmap sync` writes to GitHub. The driver runs
|
|
25
|
+
* `aidlc start` itself, so the agent never needs it.
|
|
26
|
+
*/
|
|
27
|
+
const SCOPED_AIDLC = [
|
|
28
|
+
'status', 'claim', 'release', 'transition', 'gate', 'amend', 'cross-check', 'verify',
|
|
29
|
+
'review', 'spec', 'knowledge', 'cost', 'metrics', 'explain', 'templates',
|
|
30
|
+
'roadmap next', 'roadmap park',
|
|
31
|
+
];
|
|
32
|
+
/** Read-only GitHub CLI calls, so an agent sent to fix CI can read the failing log. */
|
|
33
|
+
const SCOPED_GH = ['gh pr checks', 'gh pr view', 'gh run view', 'gh run list'];
|
|
34
|
+
const SCOPED_ALLOWED = [
|
|
35
|
+
...SCOPED_BASH.map((c) => `Bash(${c}:*)`),
|
|
36
|
+
...SCOPED_AIDLC.map((c) => `Bash(aidlc ${c}:*)`),
|
|
37
|
+
...SCOPED_GH.map((c) => `Bash(${c}:*)`),
|
|
38
|
+
];
|
|
19
39
|
export const AGENT_PRESETS = [
|
|
20
40
|
{
|
|
21
41
|
id: 'claude-scoped',
|
|
22
|
-
label: 'Claude Code — edit files, run git/pnpm/node and read-only shell tools (recommended)',
|
|
42
|
+
label: 'Claude Code — edit files, run git/pnpm/node, lifecycle aidlc commands and read-only shell tools (recommended)',
|
|
23
43
|
hint: 'other commands are refused; the refusal shows in the agent log',
|
|
24
44
|
platform: 'claude-code',
|
|
25
45
|
command: [
|
|
26
46
|
'claude', '-p', '{prompt}',
|
|
27
47
|
'--permission-mode', 'acceptEdits',
|
|
28
|
-
'--allowedTools', ...
|
|
48
|
+
'--allowedTools', ...SCOPED_ALLOWED,
|
|
29
49
|
],
|
|
30
50
|
},
|
|
31
51
|
{
|
|
@@ -60,6 +80,17 @@ export const AGENT_PRESETS = [
|
|
|
60
80
|
*/
|
|
61
81
|
const RETIRED_COMMANDS = [
|
|
62
82
|
{ command: ['codex', 'exec', '--full-auto', '{prompt}'], preset: 'codex-full-auto' },
|
|
83
|
+
// Before scoped-preset-runs-aidlc: no aidlc or gh grants, so every unattended phase
|
|
84
|
+
// hand-wrote its claim, transitions and cost.
|
|
85
|
+
{
|
|
86
|
+
command: [
|
|
87
|
+
'claude', '-p', '{prompt}',
|
|
88
|
+
'--permission-mode', 'acceptEdits',
|
|
89
|
+
'--allowedTools', 'Bash(git:*)', 'Bash(pnpm:*)', 'Bash(npm:*)', 'Bash(npx:*)', 'Bash(node:*)',
|
|
90
|
+
'Bash(ls:*)', 'Bash(cat:*)', 'Bash(grep:*)', 'Bash(find:*)', 'Bash(mkdir:*)',
|
|
91
|
+
],
|
|
92
|
+
preset: 'claude-scoped',
|
|
93
|
+
},
|
|
63
94
|
];
|
|
64
95
|
/** The command to run for a saved one: its replacement when it is retired, else itself. */
|
|
65
96
|
export function currentCommand(command) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../src/autopilot/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG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C,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAChD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasensio/aidlc",
|
|
3
|
-
"version": "1.94.
|
|
3
|
+
"version": "1.94.2",
|
|
4
4
|
"description": "AI Development Lifecycle Framework — structured lifecycle guidance for AI coding agents across platforms",
|
|
5
5
|
"homepage": "https://aidlc.rodrigoasensio.com",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"commander": "15.0.0",
|
|
32
32
|
"picomatch": "4.0.5",
|
|
33
33
|
"yaml": "2.9.0",
|
|
34
|
-
"@rasensio/aidlc-content": "1.94.
|
|
34
|
+
"@rasensio/aidlc-content": "1.94.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "22.15.32",
|