@drsamonline/cli 0.0.0-stage → 0.12.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/bin/sui.js ADDED
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * sui — free tiers, verified before use.
4
+ * MIT licensed. No dependencies.
5
+ */
6
+
7
+ // B0.2: nothing escapes unhandled. A gateway that dies silently is worse than
8
+ // one that reports, because the silence looks like idleness.
9
+ let shuttingDown = false;
10
+
11
+ process.on('unhandledRejection', (reason) => {
12
+ const message = reason instanceof Error ? reason.message : String(reason);
13
+ console.error(`\nsui: an unexpected error escaped (${message}).`);
14
+ console.error('Nothing was corrupted — this is a bug worth reporting: https://github.com/your-org/sui/issues');
15
+ if (process.env.SUI_DEBUG === '1' && reason instanceof Error) console.error(reason.stack);
16
+ if (!shuttingDown) process.exitCode = 1;
17
+ });
18
+
19
+ process.on('uncaughtException', (err) => {
20
+ console.error(`\nsui: fatal — ${err?.message ?? err}`);
21
+ if (process.env.SUI_DEBUG === '1') console.error(err?.stack);
22
+ else console.error('Set SUI_DEBUG=1 to see the stack. In-flight requests were not completed.');
23
+ shuttingDown = true;
24
+ process.exit(1);
25
+ });
26
+
27
+ import('../src/cli.js')
28
+ .then(({ run }) => run())
29
+ .catch((err) => {
30
+ const message = err?.message ?? String(err);
31
+ console.error(`\n${message}\n`);
32
+ if (process.env.SUI_DEBUG === '1' && err?.stack) console.error(err.stack);
33
+ process.exitCode = 1;
34
+ });
package/package.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
2
  "name": "@drsamonline/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.12.3",
4
+ "description": "The `sui` command line.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "main": "./src/index.js",
8
+ "exports": {
9
+ ".": "./src/cli.js",
10
+ "./src/*": "./src/*"
11
+ },
12
+ "files": [
13
+ "bin",
14
+ "src"
15
+ ],
16
+ "bin": {
17
+ "sui": "./bin/sui.js"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git://github.com/drsamonline/sui.git",
22
+ "directory": "apps/cli"
23
+ },
24
+ "homepage": "https://github.com/drsamonline/sui#readme",
25
+ "publishConfig": {
26
+ "access": "public",
27
+ "registry": "https://registry.npmjs.org/"
28
+ },
29
+ "dependencies": {
30
+ "@drsamonline/catalog": "^0.12.3",
31
+ "@drsamonline/compression": "^0.12.3",
32
+ "@drsamonline/core": "^0.12.3",
33
+ "@drsamonline/gateway": "^0.12.3",
34
+ "@drsamonline/kits": "^0.12.3",
35
+ "@drsamonline/mcp": "^0.12.3",
36
+ "@drsamonline/prober": "^0.12.3",
37
+ "@drsamonline/redteam": "^0.12.3",
38
+ "@drsamonline/router": "^0.12.3",
39
+ "@drsamonline/vault": "^0.12.3"
40
+ }
41
+ }