@technomoron/agent-run 0.99.24 → 0.99.26
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/CHANGES +19 -0
- package/README.md +68 -34
- package/dist/agent-run.js +13 -3213
- package/dist/checks.js +110 -0
- package/dist/cli.js +371 -0
- package/dist/commands.js +292 -0
- package/dist/config-tree.js +170 -0
- package/dist/constants.js +62 -0
- package/dist/defaults.js +408 -0
- package/dist/guards.js +163 -0
- package/dist/manifest.js +190 -0
- package/dist/model.js +2 -0
- package/dist/process.js +208 -0
- package/dist/project.js +316 -0
- package/dist/renderer.js +441 -0
- package/dist/templates.js +203 -0
- package/dist/tools.js +119 -0
- package/dist/utils.js +117 -0
- package/dist/walk-tree.js +24 -0
- package/examples/basic-config/README.md +3 -3
- package/examples/basic-config/agent-config/agent-run.defaults.jsonc +38 -0
- package/examples/basic-config/agent-config/global/tool-templates/AGENTS.md.njk +1 -1
- package/examples/basic-config/agent-config/starter/basic-project/agent-run.jsonc +1 -21
- package/package.json +1 -1
package/CHANGES
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
Version 0.99.26 (2026-07-31)
|
|
5
|
+
----------------------------
|
|
6
|
+
* Add `--danger` support for Claude so unattended runs pass
|
|
7
|
+
`--dangerously-skip-permissions`.
|
|
8
|
+
* Remove Claude's generated `.claude/settings.local.json` after guarded runs,
|
|
9
|
+
while preserving project-local settings when `--local` is used.
|
|
10
|
+
* Keep nested command-guard tests independent of an outer agent-run session's
|
|
11
|
+
executable search path.
|
|
12
|
+
|
|
13
|
+
Version 0.99.25 (2026-07-11)
|
|
14
|
+
----------------------------
|
|
15
|
+
* Add config-root `agent-run.defaults.jsonc` inheritance so project manifests
|
|
16
|
+
contain only overrides, with nested-object merging and array replacement.
|
|
17
|
+
* Stop creating empty local templates and override directories, require an
|
|
18
|
+
explicit sparse profile marker for updates and tool runs, and keep `edit` as
|
|
19
|
+
the command that creates local instructions.
|
|
20
|
+
* Split the TypeScript CLI into focused parsing, configuration, rendering,
|
|
21
|
+
project-discovery, checking, process, and tool-runtime modules.
|
|
22
|
+
|
|
4
23
|
Version 0.99.24 (2026-07-11)
|
|
5
24
|
----------------------------
|
|
6
25
|
* Allow failed tag releases to be retried through a manual workflow dispatch,
|
package/README.md
CHANGED
|
@@ -19,11 +19,12 @@ Example:
|
|
|
19
19
|
```text
|
|
20
20
|
~/source/
|
|
21
21
|
agent-config/
|
|
22
|
+
agent-run.defaults.jsonc
|
|
22
23
|
org/
|
|
23
24
|
my-api/
|
|
24
25
|
agent-run.jsonc
|
|
25
|
-
local.md.njk
|
|
26
|
-
overrides/
|
|
26
|
+
local.md.njk # optional
|
|
27
|
+
overrides/ # optional
|
|
27
28
|
live/
|
|
28
29
|
CLAUDE.md
|
|
29
30
|
.claude/
|
|
@@ -48,8 +49,9 @@ the agent config tree.
|
|
|
48
49
|
|
|
49
50
|
## File Roles
|
|
50
51
|
|
|
51
|
-
- `agent-run.jsonc`: profile
|
|
52
|
-
- `
|
|
52
|
+
- `agent-run.defaults.jsonc`: config-root defaults shared by every profile
|
|
53
|
+
- `agent-run.jsonc`: sparse profile manifest and profile-discovery marker
|
|
54
|
+
- `local.md.njk`: optional project-specific instructions
|
|
53
55
|
- `overrides/`: optional per-profile template overrides
|
|
54
56
|
- `live/memories/codex-home/AGENTS.md`: generated Codex instructions
|
|
55
57
|
- `live/memories/codex-home/config.toml`: generated Codex config
|
|
@@ -57,7 +59,30 @@ the agent config tree.
|
|
|
57
59
|
- `live/CLAUDE.md`: generated Claude instructions
|
|
58
60
|
- `live/.claude/`: generated Claude settings and local plugin skills
|
|
59
61
|
|
|
60
|
-
Edit
|
|
62
|
+
Edit only the root defaults and profile overrides that differ. `agent-run` keeps
|
|
63
|
+
generated files in sync.
|
|
64
|
+
|
|
65
|
+
## Manifest Defaults
|
|
66
|
+
|
|
67
|
+
Manifest values are resolved in this order:
|
|
68
|
+
|
|
69
|
+
1. built-in defaults
|
|
70
|
+
2. `<config-root>/agent-run.defaults.jsonc`
|
|
71
|
+
3. `<config-root>/<profile>/agent-run.jsonc`
|
|
72
|
+
|
|
73
|
+
Nested manifest objects are merged. Arrays such as `checks`, `agent.includes`,
|
|
74
|
+
and `skills.install` replace the inherited array instead of being appended.
|
|
75
|
+
The profile name is always inferred from project mapping; the root defaults file
|
|
76
|
+
must not set `profile`.
|
|
77
|
+
|
|
78
|
+
A profile with no differences from the root defaults needs only this marker:
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
`local.md.njk` and `overrides/` are not created unless they contain actual
|
|
85
|
+
profile-specific configuration.
|
|
61
86
|
|
|
62
87
|
## Profile Resolution
|
|
63
88
|
|
|
@@ -129,9 +154,8 @@ Codex defaults to `-a on-request -s workspace-write`. `agent-run` sets
|
|
|
129
154
|
`CODEX_HOME` under the private agent directory, where Codex discovers the
|
|
130
155
|
generated `AGENTS.md`, `config.toml`, and skills natively. It starts Codex from
|
|
131
156
|
that private directory, passes the project root with `-C`, and keeps generated
|
|
132
|
-
guard shims on `PATH`. Use `--
|
|
133
|
-
|
|
134
|
-
the workspace-write sandbox.
|
|
157
|
+
guard shims on `PATH`. Use `--network` to enable network access in the
|
|
158
|
+
workspace-write sandbox.
|
|
135
159
|
When `~/.codex/auth.json` exists, profile-specific Codex homes link their
|
|
136
160
|
`auth.json` to that shared login cache so changing profiles does not require a
|
|
137
161
|
new ChatGPT login.
|
|
@@ -140,7 +164,16 @@ Claude Code currently has no `--cd` equivalent. `agent-run` keeps Claude's
|
|
|
140
164
|
process cwd at the project root, appends the generated `CLAUDE.md` with
|
|
141
165
|
`--append-system-prompt-file`, passes generated settings with `--settings`, and
|
|
142
166
|
loads generated skills from a local plugin with `--plugin-dir`. It does not
|
|
143
|
-
replace the user's normal `CLAUDE_CONFIG_DIR`.
|
|
167
|
+
replace the user's normal `CLAUDE_CONFIG_DIR`. If Claude writes remembered
|
|
168
|
+
permissions to `.claude/settings.local.json`, `agent-run` removes that file
|
|
169
|
+
after the session unless `--local` was used.
|
|
170
|
+
|
|
171
|
+
`--danger` runs either tool unattended, with no approval prompts: Codex with
|
|
172
|
+
`-a never -s danger-full-access`, Claude with `--dangerously-skip-permissions`.
|
|
173
|
+
Only use it when the agent may change or delete anything it can reach. Claude
|
|
174
|
+
refuses `--dangerously-skip-permissions` when it runs as root, so run it as a
|
|
175
|
+
normal user. `--sandboxed` and `--network` stay Codex-only because Claude has no
|
|
176
|
+
matching sandbox.
|
|
144
177
|
|
|
145
178
|
By default, `agent-run codex` and `agent-run claude` fail when local AI files
|
|
146
179
|
such as `AGENTS.md`, `CLAUDE.md`, `CLAUDE.local.md`, `.mcp.json`, `.agents`,
|
|
@@ -153,12 +186,9 @@ Initialize mapped files for the current repo:
|
|
|
153
186
|
agent-run init
|
|
154
187
|
```
|
|
155
188
|
|
|
156
|
-
This creates
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
- `agent-run.jsonc`
|
|
160
|
-
- `local.md.njk`
|
|
161
|
-
- `overrides/`
|
|
189
|
+
This creates `<config-root>/agent-run.defaults.jsonc` when needed and a minimal
|
|
190
|
+
`agent-run.jsonc` marker for the mapped profile. It does not create empty local
|
|
191
|
+
instruction or override files.
|
|
162
192
|
|
|
163
193
|
Edit the source file for the current repo:
|
|
164
194
|
|
|
@@ -166,8 +196,8 @@ Edit the source file for the current repo:
|
|
|
166
196
|
agent-run edit
|
|
167
197
|
```
|
|
168
198
|
|
|
169
|
-
This creates
|
|
170
|
-
|
|
199
|
+
This creates `local.md.njk` when needed, syncs generated files, then opens it in
|
|
200
|
+
your editor.
|
|
171
201
|
|
|
172
202
|
Regenerate the generated files for the current repo:
|
|
173
203
|
|
|
@@ -175,6 +205,10 @@ Regenerate the generated files for the current repo:
|
|
|
175
205
|
agent-run update
|
|
176
206
|
```
|
|
177
207
|
|
|
208
|
+
`update` requires an existing profile marker or local/legacy instruction file;
|
|
209
|
+
it does not silently scaffold an unconfigured project. Use `agent-run init` or
|
|
210
|
+
the tool command's `--create` option first.
|
|
211
|
+
|
|
178
212
|
Regenerate every profile under the config root without requiring matching code
|
|
179
213
|
checkouts:
|
|
180
214
|
|
|
@@ -193,15 +227,15 @@ agent-run codex --generate
|
|
|
193
227
|
agent-run claude --generate
|
|
194
228
|
```
|
|
195
229
|
|
|
196
|
-
This reads
|
|
197
|
-
|
|
230
|
+
This reads the root defaults, sparse profile manifest, and Nunjucks templates,
|
|
231
|
+
then rewrites generated files:
|
|
198
232
|
|
|
199
|
-
- `CLAUDE.md`
|
|
200
|
-
- `memories/codex-home/AGENTS.md`
|
|
201
|
-
- `memories/codex-home/config.toml`
|
|
202
|
-
- `memories/codex-home/skills/**`
|
|
203
|
-
-
|
|
204
|
-
- `bin/**`
|
|
233
|
+
- `live/CLAUDE.md`
|
|
234
|
+
- `live/memories/codex-home/AGENTS.md`
|
|
235
|
+
- `live/memories/codex-home/config.toml`
|
|
236
|
+
- `live/memories/codex-home/skills/**`
|
|
237
|
+
- `live/.claude/**`
|
|
238
|
+
- `live/bin/**`
|
|
205
239
|
|
|
206
240
|
Per-profile override templates can be placed in:
|
|
207
241
|
|
|
@@ -211,10 +245,10 @@ Per-profile override templates can be placed in:
|
|
|
211
245
|
## Starter Config
|
|
212
246
|
|
|
213
247
|
A complete starter lives in `examples/basic-config`. It includes a minimal
|
|
214
|
-
project, `.agent-run.env`,
|
|
215
|
-
profile-local templates, skill templates, a personal memory skill,
|
|
216
|
-
skill overrides, tool config overrides, guardrails, checks, and
|
|
217
|
-
runtime paths.
|
|
248
|
+
project, `.agent-run.env`, root manifest defaults, global templates and
|
|
249
|
+
snippets, profile-local templates, skill templates, a personal memory skill,
|
|
250
|
+
profile skill overrides, tool config overrides, guardrails, checks, and
|
|
251
|
+
generated runtime paths.
|
|
218
252
|
|
|
219
253
|
To copy the packaged starter config root into your default config location:
|
|
220
254
|
|
|
@@ -264,11 +298,11 @@ Migrate an existing config tree to the manifest/template layout:
|
|
|
264
298
|
agent-run migrate-config ~/.agent-config
|
|
265
299
|
```
|
|
266
300
|
|
|
267
|
-
This preserves `AGENTS-MODS.md`, creates `local.md.njk
|
|
268
|
-
`
|
|
269
|
-
review files into `reviews/`, moves loose
|
|
270
|
-
and moves old Codex runtime files into
|
|
271
|
-
|
|
301
|
+
This preserves `AGENTS-MODS.md`, creates `local.md.njk` and a sparse
|
|
302
|
+
`agent-run.jsonc` marker for legacy profiles, creates the root defaults and
|
|
303
|
+
`global/` templates, moves loose review files into `reviews/`, moves loose
|
|
304
|
+
`memory*.md` files into `memories/`, and moves old Codex runtime files into
|
|
305
|
+
`live/memories/codex-home` without overwriting existing files.
|
|
272
306
|
|
|
273
307
|
## Systemd Jobs
|
|
274
308
|
|