agent-email-guard-test 0.1.0 → 0.1.1

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.
@@ -3,7 +3,9 @@ import { spawnSync } from 'node:child_process';
3
3
  import { fileURLToPath } from 'node:url';
4
4
 
5
5
  const cli = fileURLToPath(new URL('../src/cli.ts', import.meta.url));
6
- const child = spawnSync(process.execPath, ['--import', 'tsx', cli, ...process.argv.slice(2)], {
6
+ // Resolve tsx from this package, not from the caller's directory, so `npx agent-email-guard test` works anywhere.
7
+ const tsx = import.meta.resolve('tsx');
8
+ const child = spawnSync(process.execPath, ['--import', tsx, cli, ...process.argv.slice(2)], {
7
9
  stdio: 'inherit',
8
10
  });
9
11
  process.exit(child.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-email-guard-test",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Blast-radius control checks for an agent that sends email. A fake send tool records attempts. Nothing is delivered.",
6
6
  "license": "MIT",