@agentteams/runner 0.0.116 → 0.0.118
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/dist/api-client.js +10 -1
- package/dist/api-client.js.map +1 -1
- package/dist/commands/init.js +2 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/executable.js +25 -14
- package/dist/executable.js.map +1 -1
- package/dist/executable.test.js +38 -1
- package/dist/executable.test.js.map +1 -1
- package/dist/help.d.ts +16 -0
- package/dist/help.js +35 -0
- package/dist/help.js.map +1 -0
- package/dist/help.test.d.ts +1 -0
- package/dist/help.test.js +42 -0
- package/dist/help.test.js.map +1 -0
- package/dist/index.js +2 -18
- package/dist/index.js.map +1 -1
- package/dist/utils/auto-update.js +84 -35
- package/dist/utils/auto-update.js.map +1 -1
- package/dist/utils/auto-update.test.js +269 -0
- package/dist/utils/auto-update.test.js.map +1 -1
- package/dist/utils/convention-sync.d.ts +2 -0
- package/dist/utils/convention-sync.js +11 -4
- package/dist/utils/convention-sync.js.map +1 -1
- package/dist/utils/convention-sync.test.js +37 -2
- package/dist/utils/convention-sync.test.js.map +1 -1
- package/dist/utils/model-enumerator.d.ts +6 -2
- package/dist/utils/model-enumerator.js +19 -5
- package/dist/utils/model-enumerator.js.map +1 -1
- package/dist/utils/model-enumerator.test.js +79 -4
- package/dist/utils/model-enumerator.test.js.map +1 -1
- package/dist/utils/npm-global-permission.js +4 -3
- package/dist/utils/npm-global-permission.js.map +1 -1
- package/dist/utils/npm-install-error.d.ts +9 -1
- package/dist/utils/npm-install-error.js +27 -5
- package/dist/utils/npm-install-error.js.map +1 -1
- package/dist/utils/npm-install-error.test.js +23 -1
- package/dist/utils/npm-install-error.test.js.map +1 -1
- package/native/bin/win32-x64/agentrunner-launcher.exe +0 -0
- package/native/bin/win32-x64/manifest.json +2 -2
- package/package.json +3 -2
- package/readme.md +14 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import assert from 'node:assert/strict';
|
|
2
2
|
import test from 'node:test';
|
|
3
|
-
import { classifyInstallError, describeInstallError, normalizeInstallError } from './npm-install-error.js';
|
|
3
|
+
import { classifyInstallError, describeInstallError, normalizeInstallError, requiresManualFix, } from './npm-install-error.js';
|
|
4
4
|
test('classifyInstallError detects permission failures from real npm output', () => {
|
|
5
5
|
const eacces = new Error([
|
|
6
6
|
'Command failed: /usr/bin/npm install -g @agentteams/runner@0.0.114',
|
|
@@ -25,4 +25,26 @@ test('normalizeInstallError returns an Error carrying the described message', ()
|
|
|
25
25
|
assert.ok(normalized instanceof Error);
|
|
26
26
|
assert.equal(normalized.message, describeInstallError(new Error('npm ERR! code EACCES')));
|
|
27
27
|
});
|
|
28
|
+
const EEXIST_INSTALL_ERROR_MESSAGE = [
|
|
29
|
+
'Command failed: /usr/bin/npm install -g @agentteams/cli@0.0.114',
|
|
30
|
+
'npm ERR! code EEXIST',
|
|
31
|
+
'npm ERR! path /usr/local/bin/agt',
|
|
32
|
+
'npm ERR! EEXIST: file already exists',
|
|
33
|
+
'npm ERR! File exists: /usr/local/bin/agt',
|
|
34
|
+
].join('\n');
|
|
35
|
+
test('describeInstallError guides the user to clear a conflicting global bin file', () => {
|
|
36
|
+
// `agt`/`agr` bin이 늘어난 뒤 새로 열린 실패 경로다. 원시 npm 출력만 보여주면 조치를 알 수 없다.
|
|
37
|
+
const described = describeInstallError(new Error(EEXIST_INSTALL_ERROR_MESSAGE));
|
|
38
|
+
assert.match(described, /already taken by a file from another source/u);
|
|
39
|
+
assert.match(described, /remove or rename that file/u);
|
|
40
|
+
});
|
|
41
|
+
test('requiresManualFix covers both permission blocks and global bin conflicts', () => {
|
|
42
|
+
assert.equal(requiresManualFix(new Error('npm ERR! code EACCES')), true);
|
|
43
|
+
assert.equal(requiresManualFix(new Error(EEXIST_INSTALL_ERROR_MESSAGE)), true);
|
|
44
|
+
assert.equal(requiresManualFix(new Error('npm ERR! File exists: /usr/local/bin/agr')), true);
|
|
45
|
+
assert.equal(requiresManualFix(new Error('network unavailable')), false);
|
|
46
|
+
});
|
|
47
|
+
test('a bin conflict keeps reporting UNKNOWN so the server reason contract stays unchanged', () => {
|
|
48
|
+
assert.equal(classifyInstallError(new Error(EEXIST_INSTALL_ERROR_MESSAGE)), 'UNKNOWN');
|
|
49
|
+
});
|
|
28
50
|
//# sourceMappingURL=npm-install-error.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npm-install-error.test.js","sourceRoot":"","sources":["../../src/utils/npm-install-error.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,
|
|
1
|
+
{"version":3,"file":"npm-install-error.test.js","sourceRoot":"","sources":["../../src/utils/npm-install-error.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAEhC,IAAI,CAAC,uEAAuE,EAAE,GAAG,EAAE;IACjF,MAAM,MAAM,GAAG,IAAI,KAAK,CACtB;QACE,oEAAoE;QACpE,sBAAsB;QACtB,yBAAyB;QACzB,oBAAoB;KACrB,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;IAEF,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC;IAChE,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC;IAC1F,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC;AAC9F,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,+DAA+D,EAAE,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EAAE,6BAA6B,CAAC,CAAC;AACzD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,0EAA0E,EAAE,GAAG,EAAE;IACpF,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACzE,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IAC/E,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IAC7F,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAC3E,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,sFAAsF,EAAE,GAAG,EAAE;IAChG,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AACzF,CAAC,CAAC,CAAC"}
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.118",
|
|
4
4
|
"platform": "win32",
|
|
5
5
|
"arch": "x64",
|
|
6
6
|
"fileName": "agentrunner-launcher.exe",
|
|
7
|
-
"sha256": "
|
|
7
|
+
"sha256": "7401e89ce20c10a249e042e894a022f2c4e5fb5bea0230477026f00803c55a12"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentteams/runner",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.118",
|
|
4
4
|
"description": "AgentRunner - Background runner that polls and executes AI agent tasks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"agentrunner": "dist/index.js"
|
|
8
|
+
"agentrunner": "dist/index.js",
|
|
9
|
+
"agr": "dist/index.js"
|
|
9
10
|
},
|
|
10
11
|
"files": [
|
|
11
12
|
"dist/**/*",
|
package/readme.md
CHANGED
|
@@ -23,6 +23,18 @@ Verify the installation:
|
|
|
23
23
|
agentrunner --help
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
### Short alias (`agr`)
|
|
27
|
+
|
|
28
|
+
`agentrunner` is also installed as `agr`. The canonical name keeps working — the alias is an addition, not a replacement.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
agr --help # same as: agentrunner --help
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- The alias symlink is created at install time. If you installed an earlier version, rerun `npm install -g @agentteams/runner` to get it.
|
|
35
|
+
- Use the alias only when you type commands yourself. Autostart entries, scripts, and agent guides should keep using `agentrunner`, which exists in every environment.
|
|
36
|
+
- Usage text echoes the alias only where npm installs bins as symlinks (POSIX). Windows `.cmd`/`.ps1` shims and pnpm global installs are shell wrappers, so `agr --help` still prints `Usage: agentrunner ...` there. Running the alias itself works everywhere.
|
|
37
|
+
|
|
26
38
|
## Quick Start
|
|
27
39
|
|
|
28
40
|
### 1. Initialize
|
|
@@ -213,9 +225,9 @@ For a release smoke test on a disposable Windows test machine:
|
|
|
213
225
|
|
|
214
226
|
## Troubleshooting
|
|
215
227
|
|
|
216
|
-
### `Missing token. Usage:
|
|
228
|
+
### `Missing token. Usage: ... init --token <token> ...`
|
|
217
229
|
|
|
218
|
-
The `--token` flag was not provided to `init`.
|
|
230
|
+
The `--token` flag was not provided to `init`. The usage line names whichever executable you ran, so it reads `agentrunner init ...` or `agr init ...`.
|
|
219
231
|
|
|
220
232
|
### `Daemon token is missing. Run 'agentrunner init --token <token>' first.`
|
|
221
233
|
|