@cometix/claude-code 2.1.113 → 2.1.116

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/install.cjs ADDED
@@ -0,0 +1,91 @@
1
+ #!/usr/bin/env node
2
+ const { copyFileSync, mkdirSync, readdirSync, statSync, existsSync } = require('fs');
3
+ const path = require('path');
4
+
5
+ const PACKAGE_PREFIX = '@cometix/claude-code';
6
+
7
+ const PLATFORMS = {
8
+ 'darwin-arm64': { pkg: PACKAGE_PREFIX + '-darwin-arm64' },
9
+ 'darwin-x64': { pkg: PACKAGE_PREFIX + '-darwin-x64' },
10
+ 'linux-arm64': { pkg: PACKAGE_PREFIX + '-linux-arm64' },
11
+ 'linux-x64': { pkg: PACKAGE_PREFIX + '-linux-x64' },
12
+ 'linux-arm64-musl': { pkg: PACKAGE_PREFIX + '-linux-arm64-musl' },
13
+ 'linux-x64-musl': { pkg: PACKAGE_PREFIX + '-linux-x64-musl' },
14
+ 'win32-arm64': { pkg: PACKAGE_PREFIX + '-win32-arm64' },
15
+ 'win32-x64': { pkg: PACKAGE_PREFIX + '-win32-x64' },
16
+ 'android-arm64': { pkg: PACKAGE_PREFIX + '-android-arm64' },
17
+ };
18
+
19
+ function detectMusl() {
20
+ if (process.platform !== 'linux') return false;
21
+ try {
22
+ const report = typeof process.report?.getReport === 'function'
23
+ ? process.report.getReport() : null;
24
+ return report != null && report.header?.glibcVersionRuntime === undefined;
25
+ } catch { return false; }
26
+ }
27
+
28
+ function getPlatformKey() {
29
+ const platform = process.platform;
30
+ const arch = process.arch;
31
+ if (platform === 'linux' && detectMusl()) return `linux-${arch}-musl`;
32
+ if (platform === 'android') return `android-${arch}`;
33
+ return `${platform}-${arch}`;
34
+ }
35
+
36
+ function copyDirSync(src, dest) {
37
+ mkdirSync(dest, { recursive: true });
38
+ for (const entry of readdirSync(src)) {
39
+ const srcPath = path.join(src, entry);
40
+ const destPath = path.join(dest, entry);
41
+ if (statSync(srcPath).isDirectory()) {
42
+ copyDirSync(srcPath, destPath);
43
+ } else {
44
+ copyFileSync(srcPath, destPath);
45
+ }
46
+ }
47
+ }
48
+
49
+ function main() {
50
+ const platformKey = getPlatformKey();
51
+ const info = PLATFORMS[platformKey];
52
+
53
+ if (!info) {
54
+ console.error(`[@cometix/claude-code postinstall] Unsupported platform: ${process.platform} ${process.arch}`);
55
+ console.error(` Supported: ${Object.keys(PLATFORMS).join(', ')}`);
56
+ return;
57
+ }
58
+
59
+ let pkgDir;
60
+ try {
61
+ pkgDir = path.dirname(require.resolve(info.pkg + '/package.json'));
62
+ } catch {
63
+ console.error(`[@cometix/claude-code postinstall] Platform package "${info.pkg}" not found.`);
64
+ console.error(' This happens with --omit=optional or when the download failed.');
65
+ console.error(' The `claude` command will show an error when invoked.');
66
+ return;
67
+ }
68
+
69
+ const dest = __dirname;
70
+ const srcCli = path.join(pkgDir, 'cli.js');
71
+ const srcVendor = path.join(pkgDir, 'vendor');
72
+
73
+ // Copy cli.js
74
+ try {
75
+ copyFileSync(srcCli, path.join(dest, 'cli.js'));
76
+ } catch (err) {
77
+ console.error(`[@cometix/claude-code postinstall] Failed to copy cli.js: ${err.message}`);
78
+ return;
79
+ }
80
+
81
+ // Copy vendor/
82
+ if (existsSync(srcVendor)) {
83
+ try {
84
+ copyDirSync(srcVendor, path.join(dest, 'vendor'));
85
+ } catch (err) {
86
+ console.error(`[@cometix/claude-code postinstall] Failed to copy vendor/: ${err.message}`);
87
+ }
88
+ }
89
+ }
90
+
91
+ main();
package/package.json CHANGED
@@ -1,31 +1,41 @@
1
1
  {
2
2
  "name": "@cometix/claude-code",
3
- "version": "2.1.113",
4
- "description": "Use Claude, Anthropic's AI assistant, right from your terminal. Claude can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/CometixSpace/claude-code"
8
- },
3
+ "version": "2.1.116",
9
4
  "bin": {
10
5
  "claude": "cli.js"
11
6
  },
12
7
  "engines": {
13
8
  "node": ">=18.0.0"
14
9
  },
10
+ "scripts": {
11
+ "postinstall": "node install.cjs"
12
+ },
15
13
  "author": "Anthropic <support@anthropic.com>",
16
14
  "license": "SEE LICENSE IN README.md",
17
- "homepage": "https://github.com/anthropics/claude-code",
15
+ "description": "Claude Code restored for Node.js runtime.",
16
+ "homepage": "https://github.com/CometixSpace/claude-code",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/CometixSpace/claude-code.git"
20
+ },
18
21
  "bugs": {
19
- "url": "https://github.com/anthropics/claude-code/issues"
22
+ "url": "https://github.com/CometixSpace/claude-code/issues"
20
23
  },
21
- "scripts": {},
22
24
  "dependencies": {
23
25
  "ws": "^8.18.0",
24
26
  "yaml": "^2.7.0",
25
- "undici": "^7.3.0",
26
- "bufferutil": "^4.0.9"
27
+ "undici": "^7.3.0"
27
28
  },
28
29
  "optionalDependencies": {
30
+ "@cometix/claude-code-darwin-arm64": "2.1.116",
31
+ "@cometix/claude-code-darwin-x64": "2.1.116",
32
+ "@cometix/claude-code-linux-arm64": "2.1.116",
33
+ "@cometix/claude-code-linux-x64": "2.1.116",
34
+ "@cometix/claude-code-linux-arm64-musl": "2.1.116",
35
+ "@cometix/claude-code-linux-x64-musl": "2.1.116",
36
+ "@cometix/claude-code-win32-arm64": "2.1.116",
37
+ "@cometix/claude-code-win32-x64": "2.1.116",
38
+ "@cometix/claude-code-android-arm64": "2.1.116",
29
39
  "@img/sharp-darwin-arm64": "^0.34.2",
30
40
  "@img/sharp-darwin-x64": "^0.34.2",
31
41
  "@img/sharp-linux-arm": "^0.34.2",
@@ -38,9 +48,7 @@
38
48
  },
39
49
  "files": [
40
50
  "cli.js",
41
- "sdk-tools.d.ts",
42
- "vendor/ripgrep/",
43
- "vendor/audio-capture/",
44
- "vendor/seccomp/"
51
+ "install.cjs",
52
+ "sdk-tools.d.ts"
45
53
  ]
46
54
  }
package/sdk-tools.d.ts CHANGED
@@ -2231,6 +2231,10 @@ export interface BashOutput {
2231
2231
  * Model-facing note listing readFileState entries whose mtime bumped during this command (set when WRITE_COMMAND_MARKERS matches)
2232
2232
  */
2233
2233
  staleReadFileStateHint?: string;
2234
+ /**
2235
+ * Model-facing system-reminder appended when a gh command reports a GitHub API rate-limit error
2236
+ */
2237
+ ghRateLimitHint?: string;
2234
2238
  }
2235
2239
  export interface ExitPlanModeOutput {
2236
2240
  /**
@@ -1,3 +0,0 @@
1
- This project is dual-licensed under the Unlicense and MIT licenses.
2
-
3
- You may use this code under the terms of either license.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file