solidity-argus 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli/index.ts +5 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solidity-argus",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Solidity smart contract security auditing plugin for OpenCode — 4 specialized agents, 8 tools, and a curated vulnerability knowledge base",
5
5
  "keywords": ["solidity", "security", "audit", "opencode", "plugin", "smart-contract", "ethereum", "defi", "slither", "foundry"],
6
6
  "author": "Apegurus",
package/src/cli/index.ts CHANGED
@@ -1,14 +1,9 @@
1
1
  #!/usr/bin/env bun
2
2
  import { createCliProgram } from "./cli-program";
3
3
 
4
- async function main(): Promise<void> {
5
- const program = createCliProgram();
6
- const args = Bun.argv.slice(2);
7
- const exitCode = await program.dispatch(args);
8
- process.exit(exitCode);
9
- }
4
+ const program = createCliProgram();
5
+ const args = Bun.argv.slice(2);
6
+ const exitCode = await program.dispatch(args);
10
7
 
11
- main().catch((error) => {
12
- console.error("Fatal error:", error);
13
- process.exit(1);
14
- });
8
+ // Set exit code without process.exit() so stdout flushes before termination
9
+ process.exitCode = exitCode;