xitsg 0.2.40

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 XiT Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # XiT / 吸T神功
2
+
3
+ > AI CLI command-output compression, raw_log evidence, and Kimi integration.
4
+
5
+ ## Install
6
+
7
+ ```
8
+ npm i -g xitsg
9
+ ```
10
+
11
+ The installed command is `xit`.
12
+
13
+ ## Usage
14
+
15
+ ```
16
+ xit --version
17
+ xit auto go test -v ./...
18
+ xit auto npm test
19
+ xit doctor
20
+ ```
21
+
22
+ ## Kimi Code Setup
23
+
24
+ ```
25
+ xit init kimi --method official_hook --scope user --yes
26
+ xit kimi rules install --scope user --yes
27
+ ```
28
+
29
+ ## Optional Kimi Toolbar Patch
30
+
31
+ ```
32
+ xit kimi status-patch install --yes --accept-risk
33
+ ```
34
+
35
+ > **Note:** The status patch is opt-in because it modifies your local Kimi package. It is not applied automatically.
36
+
37
+ ## Safety
38
+
39
+ - No telemetry
40
+ - raw logs stay local at `.xit/runs/` and `.xit/history.jsonl`
41
+ - `xit auto` never uploads output to any remote service
42
+ - Kimi status patch is opt-in, clearly labeled `--accept-risk`
43
+ - No network downloads at install time
44
+
45
+ ## Supported Platforms
46
+
47
+ | Platform | Architecture |
48
+ |--------------|-------------|
49
+ | macOS | arm64 (Apple Silicon) |
50
+ | macOS | x64 (Intel) |
51
+ | Linux | x64 |
52
+ | Linux | arm64 |
53
+ | Windows | x64 |
54
+
55
+ ## How It Works
56
+
57
+ `xitsg` is a thin Node.js wrapper that selects the correct pre-compiled Go binary for your platform and forwards all arguments and stdio. No compilation required at install time.
58
+
59
+ ## License
60
+
61
+ MIT
package/bin/xit.js ADDED
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+
3
+ 'use strict';
4
+
5
+ const { spawnSync } = require('child_process');
6
+ const path = require('path');
7
+ const fs = require('fs');
8
+
9
+ const platform = process.platform;
10
+ const arch = process.arch;
11
+
12
+ let binaryPath;
13
+
14
+ if (platform === 'darwin' && arch === 'arm64') {
15
+ binaryPath = path.join(__dirname, '..', 'vendor', 'darwin-arm64', 'xit');
16
+ } else if (platform === 'darwin' && arch === 'x64') {
17
+ binaryPath = path.join(__dirname, '..', 'vendor', 'darwin-amd64', 'xit');
18
+ } else if (platform === 'linux' && arch === 'x64') {
19
+ binaryPath = path.join(__dirname, '..', 'vendor', 'linux-amd64', 'xit');
20
+ } else if (platform === 'linux' && arch === 'arm64') {
21
+ binaryPath = path.join(__dirname, '..', 'vendor', 'linux-arm64', 'xit');
22
+ } else if (platform === 'win32' && arch === 'x64') {
23
+ binaryPath = path.join(__dirname, '..', 'vendor', 'win32-amd64', 'xit.exe');
24
+ } else {
25
+ process.stderr.write(`Unsupported platform/arch for xit: ${platform}/${arch}\n`);
26
+ process.exit(1);
27
+ }
28
+
29
+ if (!fs.existsSync(binaryPath)) {
30
+ process.stderr.write(`xit binary not found at: ${binaryPath}\n`);
31
+ process.exit(1);
32
+ }
33
+
34
+ const result = spawnSync(binaryPath, process.argv.slice(2), {
35
+ stdio: 'inherit',
36
+ windowsHide: false,
37
+ });
38
+
39
+ if (result.error) {
40
+ process.stderr.write(`Failed to run xit: ${result.error.message}\n`);
41
+ process.exit(1);
42
+ }
43
+
44
+ process.exit(result.status ?? 0);
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "xitsg",
3
+ "version": "0.2.40",
4
+ "description": "XiT / 吸T神功: AI CLI command-output compression, raw_log evidence, and Kimi integration.",
5
+ "bin": {
6
+ "xit": "bin/xit.js"
7
+ },
8
+ "files": [
9
+ "bin",
10
+ "vendor",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "preferGlobal": true,
15
+ "license": "MIT",
16
+ "keywords": [
17
+ "xit",
18
+ "ai",
19
+ "cli",
20
+ "kimi",
21
+ "compression",
22
+ "raw-log"
23
+ ],
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/stephenywilson/xit"
27
+ },
28
+ "engines": {
29
+ "node": ">=14"
30
+ }
31
+ }
Binary file
Binary file
Binary file
Binary file
Binary file