@smbcloud/sigit 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.
Files changed (3) hide show
  1. package/README.md +85 -0
  2. package/lib/index.js +38 -0
  3. package/package.json +41 -0
package/README.md ADDED
@@ -0,0 +1,85 @@
1
+ <h1 align="center">siGit Code</h1>
2
+
3
+ <p align="center">
4
+ AI coding agent powered by local LLM via Onde Inference.
5
+ </p>
6
+
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/@smbcloud/sigit"><img src="https://img.shields.io/npm/v/@smbcloud/sigit?style=flat-square&labelColor=17211D&color=235843" alt="npm"></a>
9
+ <a href="https://crates.io/crates/sigit"><img src="https://img.shields.io/crates/v/sigit?style=flat-square&labelColor=17211D&color=235843" alt="crates.io"></a>
10
+ <a href="https://pypi.org/project/sigit/"><img src="https://img.shields.io/pypi/v/sigit?style=flat-square&labelColor=17211D&color=235843" alt="PyPI"></a>
11
+ </p>
12
+
13
+ ---
14
+
15
+ ## Install
16
+
17
+ ```sh
18
+ npm install -g @smbcloud/sigit
19
+ ```
20
+
21
+ The right binary for your platform gets pulled in automatically. Works on macOS (Apple Silicon and Intel), Linux (x64 and arm64), and Windows (x64 and arm64).
22
+
23
+ ### Other ways to install
24
+
25
+ | Method | Command |
26
+ |---|---|
27
+ | **Homebrew** | `brew install getsigit/homebrew-tap/sigit` |
28
+ | **pip** | `pip install sigit` |
29
+ | **Cargo** | `cargo install sigit` |
30
+
31
+ ---
32
+
33
+ ## Usage
34
+
35
+ ```sh
36
+ sigit
37
+ ```
38
+
39
+ Opens a TUI coding agent that runs entirely on your device using a local LLM.
40
+
41
+ ### Zed ACP (Agent Control Protocol)
42
+
43
+ Add siGit as an agent in Zed by adding this to your settings:
44
+
45
+ ```json
46
+ {
47
+ "agent": {
48
+ "profiles": {
49
+ "sigit": {
50
+ "provider": "acp",
51
+ "binary": "sigit",
52
+ "args": ["--acp"]
53
+ }
54
+ }
55
+ }
56
+ }
57
+ ```
58
+
59
+ ---
60
+
61
+ ## Platform support
62
+
63
+ | Platform | Architecture | Package |
64
+ |---|---|---|
65
+ | macOS | Apple Silicon (arm64) | `@smbcloud/sigit-darwin-arm64` |
66
+ | macOS | Intel (x64) | `@smbcloud/sigit-darwin-x64` |
67
+ | Linux | x64 | `@smbcloud/sigit-linux-x64` |
68
+ | Linux | arm64 | `@smbcloud/sigit-linux-arm64` |
69
+ | Windows | x64 | `@smbcloud/sigit-windows-x64` |
70
+ | Windows | arm64 | `@smbcloud/sigit-windows-arm64` |
71
+
72
+ ---
73
+
74
+ ## Links
75
+
76
+ - [Source code](https://github.com/getsigit/sigit)
77
+ - [Issues](https://github.com/getsigit/sigit/issues)
78
+
79
+ ## License
80
+
81
+ [Apache-2.0](https://github.com/getsigit/sigit/blob/main/LICENSE)
82
+
83
+ ## Copyright
84
+
85
+ 2026 smbCloud (Splitfire AB).
package/lib/index.js ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const child_process_1 = require("child_process");
5
+ /**
6
+ * Returns the executable path which is located inside node_modules
7
+ * The naming convention is cli-OS-ARCH
8
+ * If the platform is win32 or cygwin, executable will include a .exe extension.
9
+ * @see https://nodejs.org/api/os.html#osarch
10
+ * @see https://nodejs.org/api/os.html#osplatform
11
+ * @example "x/xx/node_modules/cli-darwin-arm64"
12
+ */
13
+ function getExePath() {
14
+ const arch = process.arch;
15
+ let os = process.platform;
16
+ let extension = "";
17
+ if (["win32", "cygwin"].includes(process.platform)) {
18
+ os = "windows";
19
+ extension = ".exe";
20
+ }
21
+ try {
22
+ // Since the binary will be located inside node_modules, we can simply call require.resolve
23
+ return require.resolve(`@smbcloud/sigit-${os}-${arch}/bin/sigit${extension}`);
24
+ }
25
+ catch (e) {
26
+ throw new Error(`Couldn't find application binary inside node_modules for ${os}-${arch}`);
27
+ }
28
+ }
29
+ /**
30
+ * Runs the application with args using nodejs spawn
31
+ */
32
+ function run() {
33
+ var _a;
34
+ const args = process.argv.slice(2);
35
+ const processResult = (0, child_process_1.spawnSync)(getExePath(), args, { stdio: "inherit" });
36
+ process.exit((_a = processResult.status) !== null && _a !== void 0 ? _a : 0);
37
+ }
38
+ run();
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@smbcloud/sigit",
3
+ "version": "0.1.1",
4
+ "keywords": [
5
+ "sigit",
6
+ "cli",
7
+ "ai",
8
+ "coding-agent",
9
+ "llm",
10
+ "on-device",
11
+ "smbcloud",
12
+ "acp"
13
+ ],
14
+ "bin": {
15
+ "sigit": "lib/index.js"
16
+ },
17
+ "files": ["lib", "README.md"],
18
+ "description": "AI coding agent powered by local LLM via Onde Inference.",
19
+ "license": "Apache-2.0",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/getsigit/sigit.git"
23
+ },
24
+ "scripts": {
25
+ "typecheck": "tsc --noEmit",
26
+ "build": "tsc",
27
+ "dev": "npm run build && node lib/index.js"
28
+ },
29
+ "devDependencies": {
30
+ "@types/node": "^18.15.11",
31
+ "typescript": "^5.0.0"
32
+ },
33
+ "optionalDependencies": {
34
+ "@smbcloud/sigit-darwin-arm64": "0.1.1",
35
+ "@smbcloud/sigit-darwin-x64": "0.1.1",
36
+ "@smbcloud/sigit-linux-arm64": "0.1.1",
37
+ "@smbcloud/sigit-linux-x64": "0.1.1",
38
+ "@smbcloud/sigit-windows-arm64": "0.1.1",
39
+ "@smbcloud/sigit-windows-x64": "0.1.1"
40
+ }
41
+ }