@teleai/starcode 1.0.0-beta.3
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/README.md +42 -0
- package/bin/starcode +17 -0
- package/package.json +55 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @teleai/starcode
|
|
2
|
+
|
|
3
|
+
**星辰大模型·软件工厂 CLI** — AI 编程助手命令行工具。
|
|
4
|
+
|
|
5
|
+
官方网站:[星辰大模型·软件工厂](https://starfactory.teleagi.cn/)
|
|
6
|
+
|
|
7
|
+
## 运行环境
|
|
8
|
+
|
|
9
|
+
- Node.js ≥ 18
|
|
10
|
+
- 支持平台:macOS(Apple Silicon / Intel)、Linux(x64 / arm64)、Windows x64
|
|
11
|
+
|
|
12
|
+
## 安装
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install -g @teleai/starcode
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 用法
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# 登录
|
|
22
|
+
starcode auth login
|
|
23
|
+
|
|
24
|
+
# 交互式聊天(默认)
|
|
25
|
+
starcode
|
|
26
|
+
|
|
27
|
+
# 单次任务执行
|
|
28
|
+
starcode run "帮我给 src/utils.ts 添加单元测试"
|
|
29
|
+
|
|
30
|
+
# HTTP 服务模式
|
|
31
|
+
starcode serve --port 8097
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## 技术支持
|
|
35
|
+
|
|
36
|
+
如有问题或建议,请联系我们的技术支持团队。
|
|
37
|
+
|
|
38
|
+
官方网站:[星辰大模型·软件工厂](https://starfactory.teleagi.cn/)
|
|
39
|
+
|
|
40
|
+
## 许可证
|
|
41
|
+
|
|
42
|
+
UNLICENSED — 内部使用,未经授权不得分发。
|
package/bin/starcode
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { execFileSync } from 'child_process';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const platform = process.platform === 'win32' ? 'windows' : process.platform;
|
|
8
|
+
const arch = process.arch;
|
|
9
|
+
const binary = process.platform === 'win32' ? 'starcode.exe' : 'starcode';
|
|
10
|
+
const binPath = path.resolve(__dirname, '..', 'node_modules', `@teleai/starcode-${platform}-${arch}`, 'bin', binary);
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
execFileSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
14
|
+
process.exit(0);
|
|
15
|
+
} catch (e) {
|
|
16
|
+
process.exit(e.status ?? 1);
|
|
17
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@teleai/starcode",
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
|
+
"description": "Star Factory CLI - AI Coding Assistant",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"starcode": "bin/starcode"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"download:ts-assets": "bun run scripts/download-tree-sitter-assets.ts",
|
|
11
|
+
"build": "bun run build.ts",
|
|
12
|
+
"build:dev": "bun run build.ts --single",
|
|
13
|
+
"dev": "bun --conditions browser run src/index.ts",
|
|
14
|
+
"test": "bun test",
|
|
15
|
+
"typecheck": "tsc --noEmit",
|
|
16
|
+
"publish:platforms": "bun run publish-platforms.ts",
|
|
17
|
+
"release": "bun run build && bun run publish:platforms && npm publish",
|
|
18
|
+
"release:dry": "bun run build && bun run publish-platforms.ts --dry-run && npm publish --dry-run",
|
|
19
|
+
"release:rc": "bun run scripts/release-rc.ts",
|
|
20
|
+
"release:rc:dry": "bun run scripts/release-rc.ts --dry-run",
|
|
21
|
+
"release:npm": "bun run scripts/release-npm.ts",
|
|
22
|
+
"release:npm:dry": "bun run scripts/release-npm.ts --dry-run",
|
|
23
|
+
"unlink": "node scripts/unlink.js"
|
|
24
|
+
},
|
|
25
|
+
"optionalDependencies": {
|
|
26
|
+
"@teleai/starcode-windows-x64": "1.0.0-beta.3",
|
|
27
|
+
"@teleai/starcode-linux-x64": "1.0.0-beta.3",
|
|
28
|
+
"@teleai/starcode-linux-arm64": "1.0.0-beta.3",
|
|
29
|
+
"@teleai/starcode-linux-x64-musl": "1.0.0-beta.3",
|
|
30
|
+
"@teleai/starcode-darwin-arm64": "1.0.0-beta.3",
|
|
31
|
+
"@teleai/starcode-darwin-x64": "1.0.0-beta.3"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@clack/prompts": "^1.1.0",
|
|
35
|
+
"@opentui/core": "0.1.87",
|
|
36
|
+
"@opentui/solid": "0.1.87",
|
|
37
|
+
"@types/bun": "latest",
|
|
38
|
+
"@types/express": "^5.0.6",
|
|
39
|
+
"@types/node": "^25.4.0",
|
|
40
|
+
"@types/uuid": "^9.0.8",
|
|
41
|
+
"commander": "^12.0.0",
|
|
42
|
+
"core": "file:../../core",
|
|
43
|
+
"express": "^5.2.1",
|
|
44
|
+
"fuzzysort": "^3.1.0",
|
|
45
|
+
"opentui-spinner": "^0.0.6",
|
|
46
|
+
"resedit": "^3.0.2",
|
|
47
|
+
"solid-js": "1.9.9",
|
|
48
|
+
"typescript": "^5.3.3",
|
|
49
|
+
"uuid": "^9.0.1",
|
|
50
|
+
"web-tree-sitter": "0.25.10",
|
|
51
|
+
"zod": "^4.3.6"
|
|
52
|
+
},
|
|
53
|
+
"license": "UNLICENSED",
|
|
54
|
+
"private": false
|
|
55
|
+
}
|