sofatofu 0.0.1 → 0.1.0

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.
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ // Runs the binary of the platform package that npm installed from the
3
+ // optionalDependencies (NP-1). The package has no postinstall.
4
+ const { spawnSync } = require("node:child_process");
5
+
6
+ const os = process.platform === "win32" ? "windows" : process.platform;
7
+ const target = `${os}-${process.arch}`;
8
+ const exe = os === "windows" ? ".exe" : "";
9
+
10
+ let binary;
11
+ try {
12
+ binary = require.resolve(`sofatofu-${target}/bin/sofatofu${exe}`);
13
+ } catch {
14
+ console.error(
15
+ `sofatofu found no binary for ${target} in this npm install. Supported: darwin-arm64, darwin-x64, linux-arm64, linux-x64, windows-x64.\nTo install sofatofu without npm, see https://sofatofu.com/skills/sofatofu/references/setup.md`,
16
+ );
17
+ process.exit(1);
18
+ }
19
+
20
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
21
+ if (result.error) throw result.error;
22
+ if (result.signal) process.kill(process.pid, result.signal);
23
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,9 +1,21 @@
1
1
  {
2
2
  "name": "sofatofu",
3
- "version": "0.0.1",
4
- "description": "Placeholder for sofatofu.",
3
+ "description": "Agent-first CRM command-line tool",
4
+ "homepage": "https://sofatofu.com",
5
5
  "license": "MIT",
6
- "type": "module",
7
- "bin": { "sofatofu": "cli.js" },
8
- "files": ["cli.js"]
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Sotong-Labs/sofatofu.git"
9
+ },
10
+ "bin": {
11
+ "sofatofu": "bin/sofatofu.js"
12
+ },
13
+ "version": "0.1.0",
14
+ "optionalDependencies": {
15
+ "sofatofu-darwin-arm64": "0.1.0",
16
+ "sofatofu-darwin-x64": "0.1.0",
17
+ "sofatofu-linux-arm64": "0.1.0",
18
+ "sofatofu-linux-x64": "0.1.0",
19
+ "sofatofu-windows-x64": "0.1.0"
20
+ }
9
21
  }
package/README.md DELETED
@@ -1,7 +0,0 @@
1
- # sofatofu
2
-
3
- ```sh
4
- npx sofatofu init
5
- ```
6
-
7
- Prints 🛋️.
package/cli.js DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- console.log("🛋️");