@technomoron/agent-run 0.99.42 → 0.99.43

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 CHANGED
@@ -1,6 +1,11 @@
1
1
  CHANGES
2
2
  =======
3
3
 
4
+ Version 0.99.43 (2026-09-25)
5
+ ----------------------------
6
+ * Report startup errors without a stack trace and include file ownership and
7
+ permissions guidance when access is denied.
8
+
4
9
  Version 0.99.42 (2026-09-25)
5
10
  ----------------------------
6
11
  * Apply repository AI-file checks only to project scopes and actual repositories.
package/dist/commands.js CHANGED
@@ -15,12 +15,18 @@ const renderer_1 = require("./renderer");
15
15
  const spawn_agent_1 = require("./runtime/spawn-agent");
16
16
  const utils_1 = require("./utils");
17
17
  function main(invokedTool, argv) {
18
- dispatch((0, cli_1.parseInvocation)(invokedTool, argv));
18
+ try {
19
+ dispatch((0, cli_1.parseInvocation)(invokedTool, argv));
20
+ }
21
+ catch (error) {
22
+ process.stderr.write(`agent-run: ${(0, utils_1.formatError)(error)}\n`);
23
+ process.exitCode = 1;
24
+ }
19
25
  }
20
26
  function dispatch(command) {
21
27
  switch (command.command) {
22
28
  case 'compress':
23
- void runCompress(command).catch((error) => { process.stderr.write(`agent-run: ${error instanceof Error ? error.message : String(error)}\n`); process.exitCode = 1; });
29
+ void runCompress(command).catch((error) => { process.stderr.write(`agent-run: ${(0, utils_1.formatError)(error)}\n`); process.exitCode = 1; });
24
30
  return;
25
31
  case 'mcp':
26
32
  case 'create':
package/dist/utils.js CHANGED
@@ -35,6 +35,12 @@ function localDateString() {
35
35
  return `${year}-${month}-${day}`;
36
36
  }
37
37
  function formatError(error) {
38
+ if (error instanceof Error) {
39
+ const { code, path: filePath } = error;
40
+ if (code === 'EACCES' || code === 'EPERM') {
41
+ return `${error.message}\nCheck file ownership and permissions${filePath ? ` for ${filePath}` : ''} and its parent directories. Run agent-run as your normal user, not with sudo.`;
42
+ }
43
+ }
38
44
  return error instanceof Error ? error.message : String(error);
39
45
  }
40
46
  function verbose(message) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technomoron/agent-run",
3
- "version": "0.99.42",
3
+ "version": "0.99.43",
4
4
  "packageManager": "pnpm@10.34.5",
5
5
  "bin": {
6
6
  "agent-run": "dist/agent-run.js",