@coze-arch/cli 0.0.20-alpha.d2b336 → 0.0.21

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.
@@ -94,30 +94,6 @@
94
94
  "additionalProperties": false
95
95
  }
96
96
  },
97
- {
98
- "name": "pi-agent",
99
- "description": "Pi Agent:`coze init ${COZE_WORKSPACE_PATH} --template pi-agent`\n- 适用:基于 pi-agent-core 的 AI Agent 应用\n- 支持飞书、微信等多渠道接入\n- 内置 Dashboard 管理面板\n- 使用 TypeScript + Express + Vite",
100
- "location": "./pi-agent",
101
- "paramsSchema": {
102
- "type": "object",
103
- "properties": {
104
- "port": {
105
- "type": "number",
106
- "default": 5000,
107
- "minimum": 1024,
108
- "maximum": 65535,
109
- "description": "Dashboard server port"
110
- },
111
- "workspaceDir": {
112
- "type": "string",
113
- "default": "/workspace/workspace",
114
- "description": "Workspace directory path"
115
- }
116
- },
117
- "required": [],
118
- "additionalProperties": false
119
- }
120
- },
121
97
  {
122
98
  "name": "taro",
123
99
  "description": "Taro(小程序 + H5):`coze init ${COZE_WORKSPACE_PATH} --template taro`\n- 适用:微信小程序、H5 跨端应用\n- 前后端分离架构:Taro 4 + NestJS\n- 支持微信小程序和 H5 双端构建\n- 使用 TailwindCSS + weapp-tailwindcss 实现跨端样式",
@@ -181,6 +157,30 @@
181
157
  "required": [],
182
158
  "additionalProperties": false
183
159
  }
160
+ },
161
+ {
162
+ "name": "pi-agent",
163
+ "description": "Pi Agent:`coze init ${COZE_WORKSPACE_PATH} --template pi-agent`\n- 适用:基于 pi-agent-core 的 AI Agent 应用\n- 支持飞书、微信等多渠道接入\n- 内置 Dashboard 管理面板\n- 使用 TypeScript + Express + Vite",
164
+ "location": "./pi-agent",
165
+ "paramsSchema": {
166
+ "type": "object",
167
+ "properties": {
168
+ "port": {
169
+ "type": "number",
170
+ "default": 5000,
171
+ "minimum": 1024,
172
+ "maximum": 65535,
173
+ "description": "Dashboard server port"
174
+ },
175
+ "workspaceDir": {
176
+ "type": "string",
177
+ "default": "/workspace/workspace",
178
+ "description": "Workspace directory path"
179
+ }
180
+ },
181
+ "required": [],
182
+ "additionalProperties": false
183
+ }
184
184
  }
185
185
  ]
186
186
  }
package/lib/cli.js CHANGED
@@ -2107,7 +2107,7 @@ const EventBuilder = {
2107
2107
  };
2108
2108
 
2109
2109
  var name = "@coze-arch/cli";
2110
- var version = "0.0.20-alpha.d2b336";
2110
+ var version = "0.0.21";
2111
2111
  var description = "coze coding devtools cli";
2112
2112
  var license = "MIT";
2113
2113
  var author = "fanwenjie.fe@bytedance.com";
@@ -2130,6 +2130,8 @@ var scripts = {
2130
2130
  prebuild: "tsx scripts/prebuild.ts",
2131
2131
  build: "tsx scripts/build.ts",
2132
2132
  create: "tsx scripts/create-template.ts",
2133
+ knip: "knip --include files",
2134
+ "knip:all": "knip",
2133
2135
  lint: "eslint ./ --cache",
2134
2136
  "pre-release": "tsx scripts/pre-release.ts",
2135
2137
  postpublish: "bash scripts/sync-npmmirror.sh",
@@ -2165,6 +2167,7 @@ var devDependencies = {
2165
2167
  "@coze-arch/ts-config": "workspace:*",
2166
2168
  "@coze-arch/vitest-config": "workspace:*",
2167
2169
  "@coze-coding/lambda": "workspace:*",
2170
+ "@emnapi/runtime": "^1.7.1",
2168
2171
  "@inquirer/prompts": "^3.2.0",
2169
2172
  "@playwright/test": "~1.55.0",
2170
2173
  "@slardar/rd-cli": "^0.10.3",
@@ -2178,6 +2181,7 @@ var devDependencies = {
2178
2181
  "@types/shelljs": "^0.10.0",
2179
2182
  "@vitest/coverage-v8": "~4.0.18",
2180
2183
  "json-schema-to-typescript": "^15.0.3",
2184
+ knip: "^5.30.1",
2181
2185
  minimatch: "^10.0.1",
2182
2186
  playwright: "~1.55.0",
2183
2187
  rollup: "^4.60.1",
@@ -6217,7 +6221,7 @@ const isPackageJsonValid$3 = async (projectFolder) => {
6217
6221
  return false;
6218
6222
  }
6219
6223
  if (typeof scripts.validate !== 'undefined') {
6220
- logger.info('[patch-expo-validate] NOT APPLY: validate exists');
6224
+ logger.info('[patch-expo-validate] NOT APPLY: pnpm validate exists');
6221
6225
  return false;
6222
6226
  }
6223
6227
  return true;
@@ -6391,7 +6395,7 @@ const isPackageJsonValid$2 = async (projectFolder) => {
6391
6395
  return false;
6392
6396
  }
6393
6397
  if (typeof scripts.validate !== 'undefined') {
6394
- logger.info('[patch-nextjs-validate] NOT APPLY: validate exists');
6398
+ logger.info('[patch-nextjs-validate] NOT APPLY: pnpm validate exists');
6395
6399
  return false;
6396
6400
  }
6397
6401
  return true;
@@ -6572,7 +6576,7 @@ const isPackageJsonValid$1 = async (projectFolder) => {
6572
6576
  return false;
6573
6577
  }
6574
6578
  if (typeof scripts.validate !== 'undefined') {
6575
- logger.info('[patch-vite-validate] NOT APPLY: validate exists');
6579
+ logger.info('[patch-vite-validate] NOT APPLY: pnpm validate exists');
6576
6580
  return false;
6577
6581
  }
6578
6582
  return true;
@@ -6755,7 +6759,7 @@ const isPackageJsonValid = async (projectFolder) => {
6755
6759
  }
6756
6760
 
6757
6761
  if (typeof scripts.validate !== 'undefined') {
6758
- logger.info('[patch-taro-validate] NOT APPLY: validate exists');
6762
+ logger.info('[patch-taro-validate] NOT APPLY: pnpm validate exists');
6759
6763
  return false;
6760
6764
  }
6761
6765
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coze-arch/cli",
3
- "version": "0.0.20-alpha.d2b336",
3
+ "version": "0.0.21",
4
4
  "private": false,
5
5
  "description": "coze coding devtools cli",
6
6
  "license": "MIT",
@@ -23,6 +23,8 @@
23
23
  "prebuild": "tsx scripts/prebuild.ts",
24
24
  "build": "tsx scripts/build.ts",
25
25
  "create": "tsx scripts/create-template.ts",
26
+ "knip": "knip --include files",
27
+ "knip:all": "knip",
26
28
  "lint": "eslint ./ --cache",
27
29
  "pre-release": "tsx scripts/pre-release.ts",
28
30
  "postpublish": "bash scripts/sync-npmmirror.sh",
@@ -58,6 +60,7 @@
58
60
  "@coze-arch/ts-config": "workspace:*",
59
61
  "@coze-arch/vitest-config": "workspace:*",
60
62
  "@coze-coding/lambda": "workspace:*",
63
+ "@emnapi/runtime": "^1.7.1",
61
64
  "@inquirer/prompts": "^3.2.0",
62
65
  "@playwright/test": "~1.55.0",
63
66
  "@slardar/rd-cli": "^0.10.3",
@@ -71,6 +74,7 @@
71
74
  "@types/shelljs": "^0.10.0",
72
75
  "@vitest/coverage-v8": "~4.0.18",
73
76
  "json-schema-to-typescript": "^15.0.3",
77
+ "knip": "^5.30.1",
74
78
  "minimatch": "^10.0.1",
75
79
  "playwright": "~1.55.0",
76
80
  "rollup": "^4.60.1",