@lark-apaas/fullstack-cli 1.1.72-alpha.20261117092932 → 1.1.72-alpha.20261118061505
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.en-US.md +418 -0
- package/README.md +10 -0
- package/dist/index.js +473 -95
- package/package.json +6 -3
package/README.en-US.md
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
# @lark-apaas/fullstack-cli
|
|
2
|
+
|
|
3
|
+
[中文](./README.md) | English
|
|
4
|
+
|
|
5
|
+
> Fullstack development toolkit - file syncing, database schema generation, OpenAPI generation, capability management, build tools
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
1. **Automatic syncing** - manages project scripts and config files automatically
|
|
10
|
+
2. **Database schema generation** - generates a Drizzle ORM schema from an existing database
|
|
11
|
+
3. **OpenAPI generation** - generates API docs and a client SDK automatically
|
|
12
|
+
4. **Action plugin management** - installs, updates and removes action plugins
|
|
13
|
+
5. **Capability config management** - lists, hydrates and migrates capability configs
|
|
14
|
+
6. **Build tools** - build-related operations such as getting STI artifact upload credentials
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install --save-dev @lark-apaas/fullstack-cli
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
### 1. Automatic syncing
|
|
25
|
+
|
|
26
|
+
Every time `npm install` runs, files are synced into the project automatically:
|
|
27
|
+
|
|
28
|
+
**What gets synced:**
|
|
29
|
+
- `scripts/` - shell script directory (always overwritten)
|
|
30
|
+
- `.gitignore` - fullstack-cli ignore rules are appended
|
|
31
|
+
|
|
32
|
+
⚠️ **The `scripts/` directory is managed by the CLI. Do not edit it by hand!**
|
|
33
|
+
|
|
34
|
+
### 2. Generate the database schema
|
|
35
|
+
|
|
36
|
+
Generate a Drizzle ORM schema from an existing database:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm run gen:db-schema
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Environment variables:**
|
|
43
|
+
```bash
|
|
44
|
+
# Required
|
|
45
|
+
SUDA_DATABASE_URL=postgresql://user:pass@host:port/dbname?schema=public
|
|
46
|
+
|
|
47
|
+
# Optional
|
|
48
|
+
DB_SCHEMA_OUTPUT=server/database/schema.ts # Output path
|
|
49
|
+
DRIZZLE_SCHEMA_FILTER=public,custom # Schema filter
|
|
50
|
+
DRIZZLE_TABLES_FILTER=users,orders # Table filter
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Workflow:**
|
|
54
|
+
1. Reads the database connection from `SUDA_DATABASE_URL`
|
|
55
|
+
2. Uses the CLI's built-in `drizzle.config.ts` (nothing for you to maintain)
|
|
56
|
+
3. Runs `drizzle-kit introspect`
|
|
57
|
+
4. Post-processes the schema (via devtool-kits)
|
|
58
|
+
5. Writes the result to `server/database/schema.ts`
|
|
59
|
+
|
|
60
|
+
### 3. Generate OpenAPI docs
|
|
61
|
+
|
|
62
|
+
Generate OpenAPI docs and a client SDK automatically:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
npm run gen:openapi
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Environment variables:**
|
|
69
|
+
```bash
|
|
70
|
+
# Optional
|
|
71
|
+
APP_MODULE_PATH=server/app.module # AppModule path (without extension)
|
|
72
|
+
CLIENT_BASE_PATH=/ # Client base path
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Workflow:**
|
|
76
|
+
1. Dynamically imports the project's `AppModule`
|
|
77
|
+
2. Mounts DevToolsModule
|
|
78
|
+
3. Generates the OpenAPI docs and client SDK
|
|
79
|
+
|
|
80
|
+
### 4. Action plugin management
|
|
81
|
+
|
|
82
|
+
Install, update, remove and list Action plugins:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# Install a plugin (latest version by default)
|
|
86
|
+
fullstack-cli action-plugin install @office/feishu-create-group
|
|
87
|
+
|
|
88
|
+
# Install a specific version
|
|
89
|
+
fullstack-cli action-plugin install @office/feishu-create-group@1.0.0
|
|
90
|
+
|
|
91
|
+
# Update a plugin to the latest version
|
|
92
|
+
fullstack-cli action-plugin update @office/feishu-create-group
|
|
93
|
+
|
|
94
|
+
# Remove a plugin
|
|
95
|
+
fullstack-cli action-plugin remove @office/feishu-create-group
|
|
96
|
+
|
|
97
|
+
# List installed plugins
|
|
98
|
+
fullstack-cli action-plugin list
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Command aliases:**
|
|
102
|
+
| Full command | Alias |
|
|
103
|
+
|----------|------|
|
|
104
|
+
| `action-plugin install` | `action-plugin i` |
|
|
105
|
+
| `action-plugin update` | `action-plugin up` |
|
|
106
|
+
| `action-plugin remove` | `action-plugin rm` |
|
|
107
|
+
| `action-plugin list` | `action-plugin ls` |
|
|
108
|
+
|
|
109
|
+
**Plugin storage:**
|
|
110
|
+
- Plugin files: `node_modules/<plugin-name>/` (the standard npm package location)
|
|
111
|
+
- Config file: `.capabilityrc.json` (records metadata of installed action plugins)
|
|
112
|
+
|
|
113
|
+
### 5. Capability config management
|
|
114
|
+
|
|
115
|
+
View and manage the capability configs in a project:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# List all capabilities (hydrated, with actions)
|
|
119
|
+
fullstack-cli capability list
|
|
120
|
+
|
|
121
|
+
# List all capabilities (raw config, not hydrated)
|
|
122
|
+
fullstack-cli capability list --summary
|
|
123
|
+
|
|
124
|
+
# Get the config of a specific capability
|
|
125
|
+
fullstack-cli capability list --id create_feishu_group_for_task
|
|
126
|
+
|
|
127
|
+
# Get the raw config of a specific capability
|
|
128
|
+
fullstack-cli capability list --id create_feishu_group_for_task --summary
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Capability hydration:**
|
|
132
|
+
- By default, hydrated capability configs are returned, including actions read from the plugin manifest
|
|
133
|
+
- Dynamic schemas are supported: schemas marked `{ dynamic: true }` in the manifest are generated at runtime
|
|
134
|
+
- Schema priority: `capability.paramsSchema > dynamic schema > static schema`
|
|
135
|
+
- If hydration fails, the raw config is returned with an `_hydrateError` field (no exception is thrown)
|
|
136
|
+
- `--summary` returns the raw config (the content stored in `server/capabilities/*.json`)
|
|
137
|
+
|
|
138
|
+
### 6. Capability migration
|
|
139
|
+
|
|
140
|
+
Migrate legacy capability configs (`capabilities.json`) to the new format (one JSON file per capability):
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
# Run the migration
|
|
144
|
+
fullstack-cli capability migration
|
|
145
|
+
|
|
146
|
+
# Preview mode (no files are changed)
|
|
147
|
+
fullstack-cli capability migration --dry-run
|
|
148
|
+
|
|
149
|
+
# Skip plugin installation
|
|
150
|
+
fullstack-cli capability migration --skip-install
|
|
151
|
+
|
|
152
|
+
# Skip code migration
|
|
153
|
+
fullstack-cli capability migration --skip-code
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Migration steps:**
|
|
157
|
+
|
|
158
|
+
1. **JSON file migration**
|
|
159
|
+
- Reads `server/capabilities.json` (legacy format: an array)
|
|
160
|
+
- Converts it into separate files `server/capabilities/<id>.json` (new format)
|
|
161
|
+
- Backs up the original file as `capabilities.json.backup`
|
|
162
|
+
|
|
163
|
+
2. **Plugin installation**
|
|
164
|
+
- Looks up the plugin through the `sourceActionID → pluginID` mapping table
|
|
165
|
+
- Calls `fullstack-cli action-plugin install` to install any missing plugins
|
|
166
|
+
|
|
167
|
+
3. **Code migration**
|
|
168
|
+
- Scans TypeScript files under `server/`
|
|
169
|
+
- Removes direct capability imports `import xxx from '@/capabilities/xxx'`
|
|
170
|
+
- Adds `CapabilityService` dependency injection
|
|
171
|
+
- Replaces call sites with `capabilityService.load('xxx').call('run', params)`
|
|
172
|
+
|
|
173
|
+
**Legacy format vs new format:**
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
// Legacy format (capabilities.json)
|
|
177
|
+
{
|
|
178
|
+
"id": "create_group",
|
|
179
|
+
"sourceActionID": "feishu_group_create", // Legacy field
|
|
180
|
+
"name": "创建群组",
|
|
181
|
+
"desc": "创建飞书群组", // Legacy field
|
|
182
|
+
"actionInput": { ... }, // Legacy field
|
|
183
|
+
"inputSchema": { ... }
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// New format (server/capabilities/create_group.json)
|
|
187
|
+
{
|
|
188
|
+
"id": "create_group",
|
|
189
|
+
"pluginID": "@official/feishu-group", // New field
|
|
190
|
+
"pluginVersion": "1.0.0", // New field
|
|
191
|
+
"name": "创建群组",
|
|
192
|
+
"description": "创建飞书群组", // Renamed
|
|
193
|
+
"formValue": { ... }, // Renamed
|
|
194
|
+
"paramsSchema": { ... }
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**Mapping file format:**
|
|
199
|
+
|
|
200
|
+
```json
|
|
201
|
+
{
|
|
202
|
+
"feishu_group_create": "@official/feishu-group",
|
|
203
|
+
"feishu_send_message": "@official/feishu-message"
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### 7. Build tools
|
|
208
|
+
|
|
209
|
+
Get the STI artifact upload credentials needed by the build process:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Pipeline release - commit-id is required
|
|
213
|
+
fullstack-cli build get-token --app-id app_xxx --scene pipeline --commit-id abc123
|
|
214
|
+
|
|
215
|
+
# Static asset deployment
|
|
216
|
+
fullstack-cli build get-token --app-id app_xxx --scene static
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
**Options:**
|
|
220
|
+
|
|
221
|
+
| Option | Required | Description |
|
|
222
|
+
|------|------|------|
|
|
223
|
+
| `--app-id <id>` | Yes | App ID |
|
|
224
|
+
| `--scene <scene>` | Yes | Build scene (`pipeline`, `static`) |
|
|
225
|
+
| `--commit-id <id>` | Required when scene=pipeline | Git commit ID |
|
|
226
|
+
|
|
227
|
+
**Output:** the full JSON returned by the API goes to stdout, while logs and errors go to stderr, so scripts can parse the result easily:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
token_response=$(fullstack-cli build get-token --app-id "$APP_ID" --scene pipeline --commit-id "$COMMIT_ID")
|
|
231
|
+
credential=$(echo "$token_response" | jq -r '.data.accessKeyID')
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
**Environment variables:**
|
|
235
|
+
- `FORCE_AUTHN_INNERAPI_DOMAIN` — API domain
|
|
236
|
+
- `FORCE_AUTHN_ACCESS_KEY` — Access Key
|
|
237
|
+
- `FORCE_AUTHN_ACCESS_SECRET` — Secret Key
|
|
238
|
+
- `FORCE_FRAMEWORK_CLI_CANARY_ENV` — Canary environment (optional)
|
|
239
|
+
|
|
240
|
+
### 8. CLI commands
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
# Show help
|
|
244
|
+
fullstack-cli --help
|
|
245
|
+
|
|
246
|
+
# Generate the database schema
|
|
247
|
+
fullstack-cli gen-db-schema
|
|
248
|
+
|
|
249
|
+
# Generate OpenAPI
|
|
250
|
+
fullstack-cli gen-openapi
|
|
251
|
+
|
|
252
|
+
# Action plugin management
|
|
253
|
+
fullstack-cli action-plugin --help
|
|
254
|
+
fullstack-cli action-plugin install <plugin>
|
|
255
|
+
fullstack-cli action-plugin list
|
|
256
|
+
|
|
257
|
+
# Capability config management
|
|
258
|
+
fullstack-cli capability --help
|
|
259
|
+
fullstack-cli capability list
|
|
260
|
+
fullstack-cli capability migration --dry-run
|
|
261
|
+
|
|
262
|
+
# Build tools
|
|
263
|
+
fullstack-cli build --help
|
|
264
|
+
fullstack-cli build get-token --app-id <id> --scene <scene> [--commit-id <id>]
|
|
265
|
+
|
|
266
|
+
# Show the version
|
|
267
|
+
fullstack-cli --version
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### 9. Global options
|
|
271
|
+
|
|
272
|
+
#### Canary environment
|
|
273
|
+
|
|
274
|
+
Use the `--canary` option to target a canary environment; it adds an `x-tt-env` header to HTTP requests:
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
# Pass it as a command-line option
|
|
278
|
+
fullstack-cli --canary boe_canary action-plugin install @office/feishu-create-group
|
|
279
|
+
|
|
280
|
+
# It can also go after the command
|
|
281
|
+
fullstack-cli action-plugin install @office/feishu-create-group --canary boe_canary
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
It can also be set with an environment variable:
|
|
285
|
+
|
|
286
|
+
```bash
|
|
287
|
+
FORCE_FRAMEWORK_CLI_CANARY_ENV=boe_canary fullstack-cli action-plugin install @office/feishu-create-group
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
## package.json Configuration
|
|
291
|
+
|
|
292
|
+
Add the following to your project's `package.json`:
|
|
293
|
+
|
|
294
|
+
```json
|
|
295
|
+
{
|
|
296
|
+
"scripts": {
|
|
297
|
+
"gen:db-schema": "fullstack-cli gen-db-schema",
|
|
298
|
+
"gen:openapi": "NODE_ENV=development DEPRECATED_SKIP_INIT_DB_CONNECTION=true fullstack-cli gen-openapi"
|
|
299
|
+
},
|
|
300
|
+
"devDependencies": {
|
|
301
|
+
"@lark-apaas/fullstack-cli": "^0.1.0",
|
|
302
|
+
"drizzle-kit": "^0.20.0" // If you use the database features
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## Technical Details
|
|
308
|
+
|
|
309
|
+
### Sync configuration
|
|
310
|
+
|
|
311
|
+
Sync rules are defined in `src/postinstall.config.ts`:
|
|
312
|
+
|
|
313
|
+
```typescript
|
|
314
|
+
export default {
|
|
315
|
+
sync: [
|
|
316
|
+
{
|
|
317
|
+
from: 'templates/scripts',
|
|
318
|
+
to: 'scripts',
|
|
319
|
+
type: 'directory',
|
|
320
|
+
overwrite: true,
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
from: 'templates/.gitignore.append',
|
|
324
|
+
to: '.gitignore',
|
|
325
|
+
type: 'append',
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
permissions: {
|
|
329
|
+
'**/*.sh': 0o755,
|
|
330
|
+
},
|
|
331
|
+
};
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### Drizzle configuration
|
|
335
|
+
|
|
336
|
+
The CLI ships a built-in `templates/drizzle.config.ts` that is configured dynamically through environment variables:
|
|
337
|
+
- You do **not** need to maintain `drizzle.config.ts`
|
|
338
|
+
- All settings are passed through environment variables
|
|
339
|
+
- Absolute paths point to your project
|
|
340
|
+
|
|
341
|
+
### OpenAPI generation
|
|
342
|
+
|
|
343
|
+
- Dynamically imports your `AppModule`
|
|
344
|
+
- Uses DevToolsModule from `@lark-apaas/fullstack-nestjs-core`
|
|
345
|
+
- Generates the client SDK automatically
|
|
346
|
+
|
|
347
|
+
## Dependencies
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
fullstack-cli
|
|
351
|
+
↓ depends on
|
|
352
|
+
@lark-apaas/devtool-kits (core logic)
|
|
353
|
+
|
|
354
|
+
Project peerDependencies:
|
|
355
|
+
- @nestjs/core (for gen-openapi)
|
|
356
|
+
- @lark-apaas/fullstack-nestjs-core (for gen-openapi)
|
|
357
|
+
- drizzle-kit (for gen-db-schema, optional)
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
## Upgrade Notes
|
|
361
|
+
|
|
362
|
+
### Migrating from older versions
|
|
363
|
+
|
|
364
|
+
**Files you can delete:**
|
|
365
|
+
- ❌ `scripts/gen-db-schema.ts` - now built into the CLI
|
|
366
|
+
- ❌ `scripts/gen-openapi.ts` - now built into the CLI
|
|
367
|
+
- ❌ `drizzle.config.ts` - now managed by the CLI
|
|
368
|
+
|
|
369
|
+
**Update package.json:**
|
|
370
|
+
```diff
|
|
371
|
+
{
|
|
372
|
+
"scripts": {
|
|
373
|
+
- "gen:db-schema": "ts-node scripts/gen-db-schema.ts",
|
|
374
|
+
+ "gen:db-schema": "fullstack-cli gen-db-schema",
|
|
375
|
+
- "gen:openapi": "nest start --entryFile ../scripts/gen-openapi",
|
|
376
|
+
+ "gen:openapi": "fullstack-cli gen-openapi"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### Capability migration
|
|
382
|
+
|
|
383
|
+
If your project uses the legacy capability system (a `capabilities.json` file), upgrade automatically with the migration command:
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
# 1. Preview the migration first
|
|
387
|
+
fullstack-cli capability migration --dry-run
|
|
388
|
+
|
|
389
|
+
# 2. Run the migration once it looks right
|
|
390
|
+
fullstack-cli capability migration
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
The migration automatically handles:
|
|
394
|
+
- Converting the JSON config file format
|
|
395
|
+
- Installing plugins
|
|
396
|
+
- Updating how code calls capabilities (from direct imports to CapabilityService injection)
|
|
397
|
+
|
|
398
|
+
## Brand, Settings and i18n
|
|
399
|
+
|
|
400
|
+
- **Settings read**: the brand (`brand`, from the injected `MIAODA_APP_SETTINGS`) through `createI18nForDev(messages)` from `@lark-apaas/miaoda-common-settings`, re-read on every output; Feishu when not injected. No domain settings are read:
|
|
401
|
+
- npm registry for `upgrade global-deps`: `--registry` → `MIAODA_NPM_REGISTRY` (injected by the deployment in overseas and other environments) → the built-in default registry;
|
|
402
|
+
- TOS `--endpoint` / `--region` for `build upload-static` are passed in by the caller (the build script) per deployment region.
|
|
403
|
+
- **Message language**: the CLI's callers are the Agent and platform pipelines, so its messages follow the brand through `tDev` (Chinese for Feishu, English for Lark). This covers the `component` command help, logs and errors of the `build` and `component` commands, comments and Swagger descriptions generated into user code by `gen-db-schema --enable-nest-module-generate`, platform API errors and telemetry logs. Under the Feishu brand they are identical to those before the change. Output of the other commands was already English and does not change with the brand.
|
|
404
|
+
- **Verification**: `src/__test__/overseas-feishu-baseline.test.ts` (Feishu brand unchanged), `src/__test__/overseas-lark.test.ts` (all English under Lark).
|
|
405
|
+
|
|
406
|
+
## License
|
|
407
|
+
|
|
408
|
+
MIT
|
|
409
|
+
|
|
410
|
+
## MCP UI Checks and Syncing Existing Configs
|
|
411
|
+
|
|
412
|
+
When creating an MCP UI, the Agent generates both `tsconfig.json` and `eslint.config.cjs` in `server/mcp/ui`, and proactively runs standalone checks after changing the UI or its shared dependencies. Templates and the CLI do not generate UI configs, and UI checks are not wired into the main project's lint/type:check.
|
|
413
|
+
|
|
414
|
+
The main project keeps its existing client/server checks. From the project root, the Agent runs `npx --no-install tsc --noEmit --project server/mcp/ui/tsconfig.json`, then `npx --no-install eslint --config server/mcp/ui/eslint.config.cjs "server/mcp/ui/**/*.{ts,tsx,js,jsx}" --max-warnings 0`; it must check the exit codes and fix any errors. No helper script or new npm command is needed.
|
|
415
|
+
|
|
416
|
+
The CLI does not inject MCP UI check commands; the main project keeps its existing client/server checks, and the Agent runs standard tsc/eslint for the UI with its standalone configs.
|
|
417
|
+
|
|
418
|
+
Syncing existing projects does not rewrite ESLint sources; the global UI exclusion comes from the platform ESLint preset. For TS it only appends the directory to an existing explicit `exclude` array, keeping comments and existing entries; custom configs that rely on inheritance without an explicit `exclude` are left unchanged with a prompt to adjust them manually. Custom check commands are kept. lint.js and build.sh are still maintained by the platform script templates and don't depend on script entries in the preset package.
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @lark-apaas/fullstack-cli
|
|
2
2
|
|
|
3
|
+
中文 | [English](./README.en-US.md)
|
|
4
|
+
|
|
3
5
|
> Fullstack 开发工具集 - 文件派生、数据库 Schema 生成、OpenAPI 生成、能力管理、构建工具
|
|
4
6
|
|
|
5
7
|
## 功能
|
|
@@ -446,6 +448,14 @@ fullstack-cli capability migration
|
|
|
446
448
|
- 插件安装
|
|
447
449
|
- 代码调用方式更新(从直接导入改为 CapabilityService 注入)
|
|
448
450
|
|
|
451
|
+
## 品牌、配置与多语
|
|
452
|
+
|
|
453
|
+
- **读了哪些配置**:通过 `@lark-apaas/miaoda-common-settings` 的 `createI18nForDev(messages)` 读取品牌(`brand`,来自下发的 `MIAODA_APP_SETTINGS`),每次输出时重新读取;未下发时按飞书。不读域名配置:
|
|
454
|
+
- `upgrade global-deps` 的 npm 源:`--registry` → `MIAODA_NPM_REGISTRY`(海外等环境由部署方注入)→ 内置默认源;
|
|
455
|
+
- `build upload-static` 的 TOS `--endpoint` / `--region` 由调用方(构建脚本)按部署区域传入。
|
|
456
|
+
- **文案跟随什么语言**:CLI 的调用方是 Agent 和平台流水线,输出文案用 `tDev` 按品牌出(飞书中文、Lark 英文),覆盖 `component` 命令的帮助、`build` 和 `component` 命令的日志与报错、`gen-db-schema --enable-nest-module-generate` 生成到用户代码里的注释和 Swagger 描述、平台接口报错和埋点日志。飞书品牌下与改造前逐字一致。其余命令的输出本来就是英文,不随品牌变化。
|
|
457
|
+
- **验收**:`src/__test__/overseas-feishu-baseline.test.ts`(飞书品牌与改造前一致)、`src/__test__/overseas-lark.test.ts`(Lark 品牌下全部为英文)。
|
|
458
|
+
|
|
449
459
|
## License
|
|
450
460
|
|
|
451
461
|
MIT
|