@unity-china/codely-cli 1.0.0-alpha.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.
@@ -0,0 +1,17 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Codely Web UI</title>
7
+ <link rel="stylesheet" href="/app.css" />
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script>
12
+ // Injected by the server at request time
13
+ window.__CODELY__ = __CODELY_CONFIG__;
14
+ </script>
15
+ <script type="module" src="/app.js"></script>
16
+ </body>
17
+ </html>
package/package.json ADDED
@@ -0,0 +1,119 @@
1
+ {
2
+ "name": "@unity-china/codely-cli",
3
+ "version": "1.0.0-alpha.1",
4
+ "engines": {
5
+ "node": ">=20.0.0"
6
+ },
7
+ "type": "module",
8
+ "workspaces": [
9
+ "packages/*"
10
+ ],
11
+ "scripts": {
12
+ "start": "node scripts/start.js",
13
+ "debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js",
14
+ "auth:npm": "npx google-artifactregistry-auth",
15
+ "auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",
16
+ "auth": "npm run auth:npm && npm run auth:docker",
17
+ "generate": "node scripts/generate-git-commit-info.js",
18
+ "build": "node scripts/build.js",
19
+ "build-and-start": "npm run build && npm run start",
20
+ "build:vscode": "node scripts/build_vscode_companion.js",
21
+ "publish:vscode": "node scripts/publish_vscode_companion.js",
22
+ "build:all": "npm run build && npm run build:sandbox && npm run build:vscode",
23
+ "build:packages": "npm run build --workspaces",
24
+ "build:sandbox": "node scripts/build_sandbox.js --skip-npm-install-build",
25
+ "bundle": "npm run generate && node esbuild.config.js && node scripts/copy_bundle_assets.js",
26
+ "build:single-exe": "node scripts/build_single_exe_bun.js",
27
+ "measure:startup": "node scripts/measure_startup.js",
28
+ "test": "cross-env NODE_NO_WARNINGS=1 npm run test --workspaces --if-present",
29
+ "test:ci": "npm run test:ci --workspaces --if-present && npm run test:scripts",
30
+ "test:scripts": "vitest run --config ./scripts/tests/vitest.config.ts",
31
+ "test:e2e": "cross-env VERBOSE=true KEEP_OUTPUT=true npm run test:integration:sandbox:none",
32
+ "test:integration:all": "npm run test:integration:sandbox:none && npm run test:integration:sandbox:docker && npm run test:integration:sandbox:podman",
33
+ "test:integration:sandbox:none": "cross-env GEMINI_SANDBOX=false vitest run --root ./integration-tests",
34
+ "test:integration:sandbox:docker": "npm run build:sandbox && cross-env GEMINI_SANDBOX=docker vitest run --root ./integration-tests",
35
+ "test:integration:sandbox:podman": "cross-env GEMINI_SANDBOX=podman vitest run --root ./integration-tests",
36
+ "lint": "eslint . --ext .ts,.tsx --ignore-pattern qwen-code --ignore-pattern gemini-cli --ignore-pattern opencode && eslint integration-tests",
37
+ "lint:fix": "eslint . --fix --ignore-pattern qwen-code --ignore-pattern gemini-cli --ignore-pattern opencode && eslint integration-tests --fix",
38
+ "lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 --ignore-pattern qwen-code --ignore-pattern gemini-cli --ignore-pattern opencode && eslint integration-tests --max-warnings 0",
39
+ "format": "prettier --experimental-cli --ignore-path .gitignore --write .",
40
+ "typecheck": "npm run typecheck --workspaces --if-present",
41
+ "preflight": "npm run clean && npm ci && npm run format && npm run lint:ci && npm run build && npm run typecheck && npm run test:ci",
42
+ "prepare": "npm run bundle && husky",
43
+ "prepare:package": "node scripts/prepare-package.js",
44
+ "release:version": "node scripts/version.js",
45
+ "telemetry": "node scripts/telemetry.js",
46
+ "verify-external-platforms": "node scripts/verify-external-platforms-disabled.js",
47
+ "clean": "node scripts/clean.js",
48
+ "install-cli": "npm install -g ./packages/cli",
49
+ "pack": "node scripts/ensure-dist.js && npm run build && npm pack --pack-destination ./dist",
50
+ "pack:offline": "node scripts/pack-offline.js",
51
+ "update-server-version": "node update-server-version.js",
52
+ "update-server-version:execute": "node update-server-version.js --execute",
53
+ "dev:web-ui:ui": "npm run dev --workspace=@codely/codely-web-ui",
54
+ "dev:web-ui:serve": "npm run serve:web-ui --workspace=@codely/codely-cli",
55
+ "dev:web-ui": "npm run build --workspace=@codely/codely-cli && concurrently -k -n web-ui,server -c cyan,magenta npm:dev:web-ui:ui npm:dev:web-ui:serve",
56
+ "unity-mcp:build": "npm run build --workspace=@codely/codely-unity-client && npm run build --workspace=@codely/unity-mcp-server",
57
+ "unity-mcp": "node ./packages/unity-mcp-server/dist/index.js --http --unity-project-path ",
58
+ "unity-mcp:debug": "node ./packages/unity-mcp-server/dist/index.js --http --debug --unity-project-path ",
59
+ "unity-mcp-stdio": "node ./packages/unity-mcp-server/dist/index.js --stdio --unity-project-path ",
60
+ "unity-mcp-stdio:debug": "node ./packages/unity-mcp-server/dist/index.js --stdio --debug --unity-project-path "
61
+ },
62
+ "bin": {
63
+ "codely": "bundle/gemini.js"
64
+ },
65
+ "files": [
66
+ "bundle/",
67
+ "README.md",
68
+ "README.zh-CN.md",
69
+ "LICENSE"
70
+ ],
71
+ "publishConfig": {
72
+ "access": "public",
73
+ "registry": "https://registry.npmjs.org/"
74
+ },
75
+ "devDependencies": {
76
+ "@types/marked": "^5.0.2",
77
+ "@types/micromatch": "^4.0.9",
78
+ "@types/mime-types": "^3.0.1",
79
+ "@types/minimatch": "^5.1.2",
80
+ "@types/mock-fs": "^4.13.4",
81
+ "@types/qrcode-terminal": "^0.12.2",
82
+ "@types/shell-quote": "^1.7.5",
83
+ "@types/uuid": "^10.0.0",
84
+ "@vitest/coverage-v8": "^3.1.1",
85
+ "concurrently": "^9.2.0",
86
+ "cross-env": "^7.0.3",
87
+ "esbuild": "^0.25.0",
88
+ "eslint": "^9.24.0",
89
+ "postject": "^1.0.0-alpha.6",
90
+ "eslint-config-prettier": "^10.1.2",
91
+ "eslint-plugin-import": "^2.31.0",
92
+ "eslint-plugin-license-header": "^0.8.0",
93
+ "eslint-plugin-react": "^7.37.5",
94
+ "eslint-plugin-react-hooks": "^5.2.0",
95
+ "glob": "^10.4.5",
96
+ "globals": "^16.0.0",
97
+ "husky": "^9.1.7",
98
+ "json": "^11.0.0",
99
+ "lodash": "^4.17.21",
100
+ "memfs": "^4.17.2",
101
+ "mnemonist": "^0.40.3",
102
+ "mock-fs": "^5.5.0",
103
+ "msw": "^2.10.4",
104
+ "prettier": "^3.5.3",
105
+ "react-devtools-core": "^6.1.2",
106
+ "rimraf": "^6.0.1",
107
+ "tsx": "^4.20.3",
108
+ "typescript-eslint": "^8.30.1",
109
+ "vitest": "^3.2.4",
110
+ "yargs": "^17.7.2"
111
+ },
112
+ "dependencies": {
113
+ "extract-zip": "^2.0.1",
114
+ "gpt-tokenizer": "^3.0.1",
115
+ "node-fetch": "^3.3.2",
116
+ "simple-git": "^3.28.0",
117
+ "tar": "^7.5.1"
118
+ }
119
+ }