@klars/agentobs 0.1.4 → 0.1.5

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/cli.js CHANGED
@@ -71,12 +71,12 @@ Examples:
71
71
 
72
72
  Note the "--": everything after it is the command to observe.
73
73
  On Windows, cmd.exe builtins (dir, echo, type) need: agentobs run -- cmd /c dir`)
74
- .argument('<command...>', 'command to run, after --')
74
+ .argument('[command...]', 'command to run, after --')
75
75
  .option('--agent <name>', 'agent name to record')
76
76
  .allowUnknownOption()
77
77
  .action(async (command, opts) => {
78
78
  const { run } = await import('./commands/run.js');
79
- await run(command, opts);
79
+ await run(command ?? [], opts);
80
80
  });
81
81
  program
82
82
  .command('export')
@@ -4,7 +4,16 @@
4
4
  import { runWrapped } from '../adapters/process-wrap.js';
5
5
  export async function run(command, opts = {}) {
6
6
  if (command.length === 0) {
7
- console.error('Nothing to run. Usage: agentobs run -- <command> [args...]');
7
+ console.error(`Nothing to run.
8
+
9
+ Usage: agentobs run -- <command> [args...]
10
+
11
+ Examples:
12
+ agentobs run -- npm test
13
+ agentobs run -- claude
14
+ agentobs run -- git status
15
+
16
+ The "--" matters: everything after it is the command to observe.`);
8
17
  process.exitCode = 2;
9
18
  return;
10
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klars/agentobs",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Observability and control layer for AI coding agents - see every tool call, token, and dollar your agents spend, and stop them before they do something risky.",
5
5
  "license": "MIT",
6
6
  "author": "Klars AI",