@technomoron/agent-run 0.99.20 → 0.99.21
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 +6 -0
- package/README.md +19 -19
- package/dist/agent-run.js +17 -2
- package/package.json +1 -1
package/CHANGES
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
Version 0.99.21 (2026-06-27)
|
|
5
|
+
----------------------------
|
|
6
|
+
* Default project commands for `[code]/owner/repo` checkouts to `[code]/agent-config`.
|
|
7
|
+
* Make `update --all` map profiles under a colocated `agent-config` root back to their matching project roots.
|
|
8
|
+
* Expand integration coverage for the colocated config-root layout and Windows command/path behavior.
|
|
9
|
+
|
|
4
10
|
Version 0.99.20 (2026-06-03)
|
|
5
11
|
----------------------------
|
|
6
12
|
* Add systemd unit templates and install tooling for the global AI tools updater.
|
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Small wrapper for AI coding CLIs like Codex and Claude.
|
|
4
4
|
|
|
5
5
|
It keeps agent files out of normal repos and stores them in a separate
|
|
6
|
-
agent config tree.
|
|
7
|
-
|
|
6
|
+
agent config tree. By default, that tree lives beside owner/repo checkouts
|
|
7
|
+
under the same code root.
|
|
8
8
|
|
|
9
9
|
## Model
|
|
10
10
|
|
|
@@ -18,27 +18,26 @@ Example:
|
|
|
18
18
|
|
|
19
19
|
```text
|
|
20
20
|
~/source/
|
|
21
|
+
agent-config/
|
|
22
|
+
org/
|
|
23
|
+
my-api/
|
|
24
|
+
agent-run.jsonc
|
|
25
|
+
local.md.njk
|
|
26
|
+
overrides/
|
|
27
|
+
AGENTS.md
|
|
28
|
+
CLAUDE.md
|
|
29
|
+
config.toml
|
|
30
|
+
.agents/
|
|
31
|
+
.claude/
|
|
32
|
+
bin/
|
|
21
33
|
org/
|
|
22
34
|
my-api/
|
|
23
|
-
|
|
24
|
-
~/.agent-config/
|
|
25
|
-
org/
|
|
26
|
-
my-api/
|
|
27
|
-
agent-run.jsonc
|
|
28
|
-
local.md.njk
|
|
29
|
-
overrides/
|
|
30
|
-
AGENTS.md
|
|
31
|
-
CLAUDE.md
|
|
32
|
-
config.toml
|
|
33
|
-
.agents/
|
|
34
|
-
.claude/
|
|
35
|
-
bin/
|
|
36
35
|
```
|
|
37
36
|
|
|
38
|
-
If your source repo is `~/source/org/my-api`, `agent-run`
|
|
37
|
+
If your source repo is `~/source/org/my-api`, `agent-run` maps it to:
|
|
39
38
|
|
|
40
39
|
```text
|
|
41
|
-
|
|
40
|
+
~/source/agent-config/org/my-api
|
|
42
41
|
```
|
|
43
42
|
|
|
44
43
|
The source repo stays clean. The agent files live in the matching path under
|
|
@@ -93,7 +92,7 @@ AGENT_RUN_PROFILE=org/my-api
|
|
|
93
92
|
|
|
94
93
|
Config root:
|
|
95
94
|
|
|
96
|
-
- default
|
|
95
|
+
- default for a project at `[code]/owner/repo`: `[code]/agent-config`
|
|
97
96
|
- override with `--config-root /path/to/agent-configs`
|
|
98
97
|
- override with `AGENT_CONFIG_DIR=/path/to/agent-configs`
|
|
99
98
|
- override with `AGENT_CONFIG_ROOT=/path/to/agent-configs`
|
|
@@ -169,7 +168,8 @@ agent-run update --all ~/.agent-config
|
|
|
169
168
|
```
|
|
170
169
|
|
|
171
170
|
If the config root argument is omitted, `update --all` uses the normal configured
|
|
172
|
-
root
|
|
171
|
+
root. Without a project path, that falls back to `$HOME/.agent-config`; for
|
|
172
|
+
project commands, the default is `[code]/agent-config`.
|
|
173
173
|
|
|
174
174
|
You can also generate from a tool command and stop before launch:
|
|
175
175
|
|
package/dist/agent-run.js
CHANGED
|
@@ -675,7 +675,7 @@ function runUpdateAll(targetPath) {
|
|
|
675
675
|
let updated = 0;
|
|
676
676
|
for (const agentDir of profileDirs) {
|
|
677
677
|
const profile = path.relative(configRoot, agentDir).replace(/\\/g, '/');
|
|
678
|
-
const projectRoot = projectRootForProfile(profile);
|
|
678
|
+
const projectRoot = projectRootForProfile(profile, configRoot);
|
|
679
679
|
verbose(`update --all profile=${profile} syntheticProjectRoot=${projectRoot}`);
|
|
680
680
|
ensureProfileOverridesDir(agentDir);
|
|
681
681
|
convertLegacyProfileIfNeeded(configRoot, agentDir, profile);
|
|
@@ -2186,7 +2186,10 @@ function parseProfile(profile, source) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
return { profile: segments.join('/'), reason: '' };
|
|
2188
2188
|
}
|
|
2189
|
-
function projectRootForProfile(profile) {
|
|
2189
|
+
function projectRootForProfile(profile, configRoot) {
|
|
2190
|
+
if (configRoot && path.basename(configRoot) === 'agent-config') {
|
|
2191
|
+
return path.join(path.dirname(configRoot), ...profile.split('/'));
|
|
2192
|
+
}
|
|
2190
2193
|
return path.join(os.homedir(), ...profile.split('/'));
|
|
2191
2194
|
}
|
|
2192
2195
|
function readAgentRunEnv(dir) {
|
|
@@ -2251,8 +2254,20 @@ function defaultConfigRoot(projectRoot) {
|
|
|
2251
2254
|
return path.resolve(projectRoot, localConfigRoot);
|
|
2252
2255
|
}
|
|
2253
2256
|
}
|
|
2257
|
+
if (projectRoot) {
|
|
2258
|
+
return defaultCodeConfigRoot(projectRoot);
|
|
2259
|
+
}
|
|
2254
2260
|
return path.join(os.homedir(), '.agent-config');
|
|
2255
2261
|
}
|
|
2262
|
+
function defaultCodeConfigRoot(projectRoot) {
|
|
2263
|
+
const resolvedProjectRoot = path.resolve(projectRoot);
|
|
2264
|
+
const ownerDir = path.dirname(resolvedProjectRoot);
|
|
2265
|
+
const codeRoot = path.dirname(ownerDir);
|
|
2266
|
+
if (ownerDir === resolvedProjectRoot || codeRoot === ownerDir) {
|
|
2267
|
+
return path.join(os.homedir(), '.agent-config');
|
|
2268
|
+
}
|
|
2269
|
+
return path.join(codeRoot, 'agent-config');
|
|
2270
|
+
}
|
|
2256
2271
|
function findRealBinary(tool) {
|
|
2257
2272
|
const pathValue = process.env.PATH || '';
|
|
2258
2273
|
const pathDirs = pathValue.split(path.delimiter).filter((entry) => entry.length > 0);
|