chatccc 0.2.18 → 0.2.19

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/chatccc.mjs CHANGED
@@ -1,24 +1,24 @@
1
- #!/usr/bin/env node
2
- import { spawnSync } from "node:child_process";
3
- import { createRequire } from "node:module";
4
- import { dirname, join } from "node:path";
5
-
6
- const require = createRequire(import.meta.url);
7
- // 相对 bin/chatccc.mjs 解析 package.json,包根目录不依赖 cwd,也不会多退一级到 node_modules
8
- const pkgRoot = dirname(require.resolve("../package.json"));
9
- const indexTs = join(pkgRoot, "src", "index.ts");
10
- const tsxCli = require.resolve("tsx/cli");
11
-
12
- const result = spawnSync(process.execPath, [tsxCli, indexTs, ...process.argv.slice(2)], {
13
- stdio: "inherit",
14
- cwd: process.cwd(),
15
- env: process.env,
16
- });
17
-
18
- const code = result.status === null ? 1 : result.status;
19
- if (code !== 0) {
20
- console.error("[ 未启动 ]");
21
- console.error("chatccc 子进程已结束,服务没有在后台运行。");
22
- }
23
-
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from "node:child_process";
3
+ import { createRequire } from "node:module";
4
+ import { dirname, join } from "node:path";
5
+
6
+ const require = createRequire(import.meta.url);
7
+ // 相对 bin/chatccc.mjs 解析 package.json,包根目录不依赖 cwd,也不会多退一级到 node_modules
8
+ const pkgRoot = dirname(require.resolve("../package.json"));
9
+ const indexTs = join(pkgRoot, "src", "index.ts");
10
+ const tsxCli = require.resolve("tsx/cli");
11
+
12
+ const result = spawnSync(process.execPath, [tsxCli, indexTs, ...process.argv.slice(2)], {
13
+ stdio: "inherit",
14
+ cwd: process.cwd(),
15
+ env: process.env,
16
+ });
17
+
18
+ const code = result.status === null ? 1 : result.status;
19
+ if (code !== 0) {
20
+ console.error("[ 未启动 ]");
21
+ console.error("chatccc 子进程已结束,服务没有在后台运行。");
22
+ }
23
+
24
24
  process.exit(code);
@@ -1,26 +1,26 @@
1
- {
2
- "feishu": {
3
- "appId": "",
4
- "appSecret": ""
5
- },
6
- "port": 18080,
7
- "gitTimeoutSeconds": 180,
8
- "claude": {
9
- "enabled": false,
10
- "model": "",
11
- "effort": "",
12
- "apiKey": "",
13
- "baseUrl": ""
14
- },
15
- "cursor": {
16
- "enabled": false,
17
- "path": "",
18
- "model": ""
19
- },
20
- "codex": {
21
- "enabled": false,
22
- "path": "",
23
- "model": "",
24
- "effort": ""
25
- }
26
- }
1
+ {
2
+ "feishu": {
3
+ "appId": "",
4
+ "appSecret": ""
5
+ },
6
+ "port": 18080,
7
+ "gitTimeoutSeconds": 180,
8
+ "claude": {
9
+ "enabled": false,
10
+ "model": "",
11
+ "effort": "",
12
+ "apiKey": "",
13
+ "baseUrl": ""
14
+ },
15
+ "cursor": {
16
+ "enabled": false,
17
+ "path": "",
18
+ "model": ""
19
+ },
20
+ "codex": {
21
+ "enabled": false,
22
+ "path": "",
23
+ "model": "",
24
+ "effort": ""
25
+ }
26
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",