solidity-argus 0.1.1 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solidity-argus",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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",
@@ -1,4 +1,7 @@
1
1
  import type { CliCommand } from "./types";
2
+ import { doctorCommand } from "./commands/doctor";
3
+ import { initCommand } from "./commands/init";
4
+ import { installCommand } from "./commands/install";
2
5
 
3
6
  const HELP_TEXT = `argus — Solidity Security Auditor for OpenCode
4
7
 
@@ -35,33 +38,8 @@ export class CliProgram {
35
38
 
36
39
  export function createCliProgram(): CliProgram {
37
40
  const program = new CliProgram();
38
-
39
- program.registerCommand({
40
- name: "doctor",
41
- description: "Check Slither/Foundry installation and config health",
42
- execute: async () => {
43
- console.log("argus doctor: not yet implemented");
44
- return 0;
45
- },
46
- });
47
-
48
- program.registerCommand({
49
- name: "init",
50
- description: "Create solidity-argus config file",
51
- execute: async () => {
52
- console.log("argus init: not yet implemented");
53
- return 0;
54
- },
55
- });
56
-
57
- program.registerCommand({
58
- name: "install",
59
- description: "Configure argus plugin in opencode config",
60
- execute: async () => {
61
- console.log("argus install: not yet implemented");
62
- return 0;
63
- },
64
- });
65
-
41
+ program.registerCommand(doctorCommand);
42
+ program.registerCommand(initCommand);
43
+ program.registerCommand(installCommand);
66
44
  return program;
67
45
  }
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;