openyida 2026.11.6 → 2026.11.8
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 +3 -4
- package/bin/yida.js +22 -9
- package/lib/auth/dingtalk-login.js +78 -0
- package/lib/auth/oauth-loopback.js +4 -0
- package/lib/auth/token-auth.js +4 -18
- package/lib/core/command-manifest.js +2 -6
- package/lib/core/env-cmd.js +1 -1
- package/lib/core/env-manager.js +4 -21
- package/lib/core/locales/en.js +13 -48
- package/lib/core/locales/zh.js +13 -48
- package/package.json +1 -1
- package/yida-skills/SKILL.md +2 -2
- package/yida-skills/skills/yida-flash-note-to-prd/SKILL.md +33 -288
- package/yida-skills/skills/yida-flash-note-to-prd/references/examples.md +4 -10
- package/yida-skills/skills/yida-flash-note-to-prd/references/flash-note-prompt.md +30 -220
- package/yida-skills/skills/yida-login/SKILL.md +5 -1
- package/yida-skills/skills-index.json +1 -1
- package/lib/flash-note/build-flash-note-prompt.js +0 -958
- package/lib/flash-note/flash-to-prd.js +0 -343
package/README.md
CHANGED
|
@@ -336,7 +336,7 @@ npm run test:e2e:real:skills
|
|
|
336
336
|
|
|
337
337
|
The runner creates a disposable app, form, and custom page with an `OY_E2E_*` prefix, then verifies token login, app listing, schema fetch, data query, and page publish. It writes a registry to `project/.cache/e2e-real/` so created resources can be audited later. Run `openyida login` for the target environment before starting the real E2E runner.
|
|
338
338
|
|
|
339
|
-
`test:e2e:real:full` extends the smoke path into a broad deterministic feature matrix: auth/env, app update, form update and option mutation, page build/compile/generate/publish, data create/get/update/query, permission read, page config and short URL check, report create/append, dashboard skill verification, export/import, batch, task-center, formula/doctor/sample/CDN config, and local connector parsing/template generation.
|
|
339
|
+
`test:e2e:real:full` extends the smoke path into a broad deterministic feature matrix: auth/env, app update, form update and option mutation, page build/compile/generate/publish, data create/get/update/query, permission read, page config and short URL check, report create/append, dashboard skill verification, export/import, batch, task-center, formula/doctor/sample/CDN config, and local connector parsing/template generation. Meeting-note PRD generation is handled by the current agent through the `yida-flash-note-to-prd` skill and verified by reviewing its document output. Workflow mutation is available as the opt-in `process` stage; it creates and republishes a workflow on the disposable E2E form and records advanced official-node fixtures for review.
|
|
340
340
|
|
|
341
341
|
`test:e2e:real:skills` enforces coverage for every directory under `yida-skills/skills/`. Each skill must be classified as real E2E, offline/unit, opt-in, or deprecated with an explicit reason. This prevents new skills from quietly bypassing the real-environment test plan.
|
|
342
342
|
|
|
@@ -484,7 +484,7 @@ When preparing a PR that needs a personal Fork, or when you ask how to support t
|
|
|
484
484
|
|
|
485
485
|
| Command | Description |
|
|
486
486
|
|---------|-------------|
|
|
487
|
-
| `openyida login [--qwenwork] [target-url] [--env <name>\|--intl\|--overseas\|--global\|--yidaapps\|--alibaba] [--client-id <clientId>] [--endpoint <url>] [--no-browser]` | Login with OAuth token mode |
|
|
487
|
+
| `openyida login [--qwenwork] [target-url] [--env <name>\|--intl\|--overseas\|--global\|--yidaapps\|--alibaba] [--dingtalk <domestic\|intl>] [--client-id <clientId>] [--endpoint <url>] [--no-browser]` | Login with OAuth token mode |
|
|
488
488
|
| `openyida logout` | Logout / unbind current project auth |
|
|
489
489
|
| `openyida auth <status\|login\|refresh\|logout\|profiles\|profile switch\|qwenwork user-info> [--json]` | Token login state and profile management |
|
|
490
490
|
| `openyida org <list\|switch> [--json] [--corp-id <corpId>] [--no-browser]` | Organization management (list / switch existing profiles first) |
|
|
@@ -661,7 +661,6 @@ When preparing a PR that needs a personal Fork, or when you ask how to support t
|
|
|
661
661
|
| `openyida export-conversation [options]` | Export AI conversation records |
|
|
662
662
|
| `openyida feedback <report\|github\|setup\|url\|dismiss\|status> [options]` | Prepare local issue reports, configure feedback forms and reminders |
|
|
663
663
|
| `openyida batch <file>\|--commands "cmd1 ; cmd2" [--concurrency 1..4] [--stop-on-error] [--json]` | Run OpenYida commands in batch |
|
|
664
|
-
| `openyida flash-to-prd --file <path> --name "<project>"` | Convert flash notes or meeting notes to a PRD prompt |
|
|
665
664
|
| `openyida ai <text\|image> [options]` | Call Yida AI text and image recognition APIs |
|
|
666
665
|
| `openyida asset <status\|resolve\|sources> [options]` | Detect asset capability / resolve materials |
|
|
667
666
|
| `openyida cdn-config [options]` | Configure CDN / OSS upload |
|
|
@@ -714,7 +713,7 @@ The opt-in `node scripts/e2e-real/connector/action-update-runner.js` regression
|
|
|
714
713
|
|
|
715
714
|
#### Environment and Localization
|
|
716
715
|
|
|
717
|
-
Environment selectors such as `--env intl`, `--intl`, `--overseas`, `--global`, and `--yidaapps`
|
|
716
|
+
Environment selectors such as `--env intl`, `--intl`, `--overseas`, `--global`, and `--yidaapps` choose the target YiDA environment for that run. `openyida login --intl` selects Global YiDA at `https://www.yidaapps.com`. In an interactive terminal, login offers domestic DingTalk for overseas YiDA (`login.dingtalk.com`, default) or DingTalk International for overseas YiDA (`login.dingtalk.io`). Press Enter to use domestic DingTalk, or pass `--dingtalk domestic` / `--dingtalk intl` explicitly. Non-interactive calls default to domestic DingTalk. Selecting the overseas YiDA site does not select the DingTalk account system. The CLI retains its local OAuth callback and token session; business API requests use the authenticated environment `baseUrl`, including supported customer custom subdomains.
|
|
718
717
|
|
|
719
718
|
For overseas apps, pass `--locale en_US` or `--locale ja_JP` on creation commands, or set `OPENYIDA_CONTENT_LOCALE`. OpenYida writes YiDA resource names with `zh_CN`, `en_US`, and `ja_JP` values so Global YiDA does not fall back to Chinese-only metadata.
|
|
720
719
|
|
package/bin/yida.js
CHANGED
|
@@ -280,6 +280,7 @@ function getFirstPositionalArg(cliArgs, startIndex = 0) {
|
|
|
280
280
|
'--login-url',
|
|
281
281
|
'--profile',
|
|
282
282
|
'--user-id',
|
|
283
|
+
'--dingtalk',
|
|
283
284
|
]);
|
|
284
285
|
for (let index = startIndex; index < cliArgs.length; index++) {
|
|
285
286
|
const arg = cliArgs[index];
|
|
@@ -370,6 +371,14 @@ function applyLoginTargetUrl(value) {
|
|
|
370
371
|
return true;
|
|
371
372
|
}
|
|
372
373
|
|
|
374
|
+
function applyLoginEnvironmentName(envName) {
|
|
375
|
+
process.env.OPENYIDA_ENV = envName;
|
|
376
|
+
const { resolveEnvNameAlias, INTERNATIONAL_BASE_URL } = require('../lib/core/env-manager');
|
|
377
|
+
if (resolveEnvNameAlias(envName) === 'intl' && (command === 'login' || (command === 'auth' && rawArgs[0] === 'login'))) {
|
|
378
|
+
applyLoginTargetUrl(INTERNATIONAL_BASE_URL);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
373
382
|
function applyLoginEnvironmentFlags(cliArgs, options = {}) {
|
|
374
383
|
const envFlagMap = {
|
|
375
384
|
'--public': 'public',
|
|
@@ -387,6 +396,7 @@ function applyLoginEnvironmentFlags(cliArgs, options = {}) {
|
|
|
387
396
|
'--client-id',
|
|
388
397
|
'--profile',
|
|
389
398
|
'--user-id',
|
|
399
|
+
'--dingtalk',
|
|
390
400
|
]);
|
|
391
401
|
const targetUrlFlags = new Set([
|
|
392
402
|
'--endpoint',
|
|
@@ -401,7 +411,7 @@ function applyLoginEnvironmentFlags(cliArgs, options = {}) {
|
|
|
401
411
|
if (arg === '--env') {
|
|
402
412
|
const envName = cliArgs[index + 1];
|
|
403
413
|
if (envName && !envName.startsWith('--')) {
|
|
404
|
-
|
|
414
|
+
applyLoginEnvironmentName(envName);
|
|
405
415
|
index++;
|
|
406
416
|
}
|
|
407
417
|
continue;
|
|
@@ -422,7 +432,7 @@ function applyLoginEnvironmentFlags(cliArgs, options = {}) {
|
|
|
422
432
|
continue;
|
|
423
433
|
}
|
|
424
434
|
if (envFlagMap[arg]) {
|
|
425
|
-
|
|
435
|
+
applyLoginEnvironmentName(envFlagMap[arg]);
|
|
426
436
|
continue;
|
|
427
437
|
}
|
|
428
438
|
if (inferTargetUrl && !arg.startsWith('--') && applyLoginTargetUrl(arg)) {
|
|
@@ -468,6 +478,9 @@ function formatSuggestionMessage(suggestion) {
|
|
|
468
478
|
function throwUnknownCommand(commandName, commandArgs = []) {
|
|
469
479
|
const suggestion = findCommandSuggestion([commandName, ...commandArgs]);
|
|
470
480
|
const lines = [t('cli.unknown_command', commandName)];
|
|
481
|
+
if (commandName === 'flash-to-prd') {
|
|
482
|
+
lines.push(t('cli.flash_note_skill'));
|
|
483
|
+
}
|
|
471
484
|
if (suggestion) {
|
|
472
485
|
lines.push(t('cli.command_suggestion', suggestion.suggested_usage));
|
|
473
486
|
const suggestionMessage = formatSuggestionMessage(suggestion);
|
|
@@ -534,11 +547,17 @@ function printManifestCommandHelp(commandName) {
|
|
|
534
547
|
}
|
|
535
548
|
|
|
536
549
|
function printLoginHelp() {
|
|
537
|
-
printCommandUsage(t('cli.login_usage'), t('cli.login_example'));
|
|
550
|
+
printCommandUsage(t('cli.login_usage'), t('cli.login_example'), t('dingtalk_login.help'));
|
|
538
551
|
}
|
|
539
552
|
|
|
540
553
|
function buildTokenLoginOptions(loginArgs) {
|
|
554
|
+
const dingtalkIndex = loginArgs.indexOf('--dingtalk');
|
|
555
|
+
const dingtalkVersion = dingtalkIndex < 0 ? undefined : loginArgs[dingtalkIndex + 1];
|
|
556
|
+
if (dingtalkIndex >= 0 && !['domestic', 'intl'].includes(dingtalkVersion)) {
|
|
557
|
+
throwCliUsage(t('dingtalk_login.invalid_version'));
|
|
558
|
+
}
|
|
541
559
|
return {
|
|
560
|
+
dingtalkVersion,
|
|
542
561
|
clientId: getArgValue(loginArgs, '--client-id'),
|
|
543
562
|
corpId: getArgValue(loginArgs, '--corp-id'),
|
|
544
563
|
userId: getArgValue(loginArgs, '--user-id'),
|
|
@@ -1266,12 +1285,6 @@ async function main() {
|
|
|
1266
1285
|
break;
|
|
1267
1286
|
}
|
|
1268
1287
|
|
|
1269
|
-
case 'flash-to-prd': {
|
|
1270
|
-
const { run: runFlashToPrd } = require('../lib/flash-note/flash-to-prd');
|
|
1271
|
-
await runFlashToPrd(args);
|
|
1272
|
-
break;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
1288
|
case 'ai': {
|
|
1276
1289
|
const { run: runAI } = require('../lib/ai/ai');
|
|
1277
1290
|
await runAI(args);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const readline = require('readline');
|
|
4
|
+
const { t } = require('../core/i18n');
|
|
5
|
+
const { CliError } = require('../core/cli-error');
|
|
6
|
+
const {
|
|
7
|
+
DINGTALK_LOGIN_ORIGIN,
|
|
8
|
+
DINGTALK_INTL_LOGIN_ORIGIN,
|
|
9
|
+
isYidaAppsHost,
|
|
10
|
+
} = require('../core/env-manager');
|
|
11
|
+
|
|
12
|
+
function originForVersion(version) {
|
|
13
|
+
if (version === 'domestic') { return DINGTALK_LOGIN_ORIGIN; }
|
|
14
|
+
if (version === 'intl') { return DINGTALK_INTL_LOGIN_ORIGIN; }
|
|
15
|
+
throw new CliError(t('dingtalk_login.invalid_version'), { code: 'INVALID_ARGUMENTS' });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function explicitLoginOrigin(value) {
|
|
19
|
+
try {
|
|
20
|
+
const origin = new URL(value).origin;
|
|
21
|
+
if ([DINGTALK_LOGIN_ORIGIN, DINGTALK_INTL_LOGIN_ORIGIN].includes(origin)) {
|
|
22
|
+
return origin;
|
|
23
|
+
}
|
|
24
|
+
} catch {
|
|
25
|
+
// A service entry URL does not select the DingTalk account system.
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async function selectDingtalkLoginOrigin(options = {}) {
|
|
31
|
+
if (options.dingtalkVersion !== undefined) {
|
|
32
|
+
return originForVersion(options.dingtalkVersion);
|
|
33
|
+
}
|
|
34
|
+
if (options.loginOrigin) {
|
|
35
|
+
const origin = explicitLoginOrigin(options.loginOrigin);
|
|
36
|
+
if (!origin) {
|
|
37
|
+
throw new CliError(t('dingtalk_login.invalid_origin'), { code: 'INVALID_ARGUMENTS' });
|
|
38
|
+
}
|
|
39
|
+
return origin;
|
|
40
|
+
}
|
|
41
|
+
const env = options.env || process.env;
|
|
42
|
+
const explicitOrigin = explicitLoginOrigin(options.loginUrl || env.OPENYIDA_LOGIN_URL);
|
|
43
|
+
if (explicitOrigin) { return explicitOrigin; }
|
|
44
|
+
|
|
45
|
+
const input = options.input || process.stdin;
|
|
46
|
+
const output = options.output || process.stderr;
|
|
47
|
+
if (!isYidaAppsHost(options.baseUrl) || options.quiet || !input.isTTY || !output.isTTY) {
|
|
48
|
+
return DINGTALK_LOGIN_ORIGIN;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const rl = readline.createInterface({ input, output });
|
|
52
|
+
output.write(`${t('dingtalk_login.select_version')}\n1. ${t('dingtalk_login.domestic')}\n2. ${t('dingtalk_login.international')}\n`);
|
|
53
|
+
try {
|
|
54
|
+
return await new Promise((resolve, reject) => {
|
|
55
|
+
let settled = false;
|
|
56
|
+
rl.once('close', () => {
|
|
57
|
+
if (!settled) {
|
|
58
|
+
reject(new CliError(t('dingtalk_login.cancelled'), { code: 'LOGIN_CANCELLED' }));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const ask = () => rl.question(t('dingtalk_login.choose'), answer => {
|
|
62
|
+
const choice = answer.trim();
|
|
63
|
+
if (choice === '' || choice === '1' || choice === '2') {
|
|
64
|
+
settled = true;
|
|
65
|
+
resolve(choice === '2' ? DINGTALK_INTL_LOGIN_ORIGIN : DINGTALK_LOGIN_ORIGIN);
|
|
66
|
+
} else {
|
|
67
|
+
output.write(`${t('dingtalk_login.invalid_choice')}\n`);
|
|
68
|
+
ask();
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
ask();
|
|
72
|
+
});
|
|
73
|
+
} finally {
|
|
74
|
+
rl.close();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
module.exports = { selectDingtalkLoginOrigin };
|
|
@@ -456,6 +456,9 @@ function buildDingtalkOAuthUrl(options) {
|
|
|
456
456
|
if (prompt) {
|
|
457
457
|
url.searchParams.set('prompt', prompt);
|
|
458
458
|
}
|
|
459
|
+
if (options.forceLogin) {
|
|
460
|
+
url.searchParams.set('FEForceLogin', 'true');
|
|
461
|
+
}
|
|
459
462
|
return url.toString();
|
|
460
463
|
}
|
|
461
464
|
|
|
@@ -694,6 +697,7 @@ function runDingtalkLoopback(options = {}) {
|
|
|
694
697
|
redirectUri,
|
|
695
698
|
state,
|
|
696
699
|
loginOrigin: options.loginOrigin,
|
|
700
|
+
forceLogin: options.forceLogin,
|
|
697
701
|
scope: options.scope,
|
|
698
702
|
prompt: options.prompt,
|
|
699
703
|
});
|
package/lib/auth/token-auth.js
CHANGED
|
@@ -7,12 +7,12 @@ const https = require('https');
|
|
|
7
7
|
|
|
8
8
|
const {
|
|
9
9
|
DINGTALK_OAUTH_CLIENT_ID,
|
|
10
|
-
DINGTALK_LOGIN_ORIGIN,
|
|
11
10
|
DINGTALK_INTL_LOGIN_ORIGIN,
|
|
12
11
|
getCurrentEnvConfig,
|
|
13
12
|
normalizeBaseUrl,
|
|
14
13
|
} = require('../core/env-manager');
|
|
15
14
|
const { runDingtalkLoopback } = require('./oauth-loopback');
|
|
15
|
+
const { selectDingtalkLoginOrigin } = require('./dingtalk-login');
|
|
16
16
|
const {
|
|
17
17
|
clearTokenSession,
|
|
18
18
|
deleteUserAuthProfile,
|
|
@@ -71,22 +71,6 @@ function resolveTokenBaseUrl(options = {}) {
|
|
|
71
71
|
return baseUrl;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
function resolveDingtalkLoginOrigin(options = {}) {
|
|
75
|
-
if (options.loginOrigin) {
|
|
76
|
-
return options.loginOrigin;
|
|
77
|
-
}
|
|
78
|
-
try {
|
|
79
|
-
const { config } = getCurrentEnvConfig(options.projectRoot);
|
|
80
|
-
const baseUrl = normalizeBaseUrl(config.baseUrl, '');
|
|
81
|
-
if (baseUrl && baseUrl.includes('yidaapps.com')) {
|
|
82
|
-
return DINGTALK_INTL_LOGIN_ORIGIN;
|
|
83
|
-
}
|
|
84
|
-
} catch {
|
|
85
|
-
// Fall back to domestic DingTalk login.
|
|
86
|
-
}
|
|
87
|
-
return DINGTALK_LOGIN_ORIGIN;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
74
|
function requestJson(method, url, body, headers = {}) {
|
|
91
75
|
return new Promise((resolve, reject) => {
|
|
92
76
|
const parsedUrl = new URL(url);
|
|
@@ -328,9 +312,11 @@ async function tokenLogin(options = {}) {
|
|
|
328
312
|
const baseUrl = resolveTokenBaseUrl(options);
|
|
329
313
|
const authBaseUrl = appendPath(baseUrl, DEFAULT_AUTH_PATH_PREFIX);
|
|
330
314
|
const clientId = options.clientId || process.env.OPENYIDA_DINGTALK_CLIENT_ID || DINGTALK_OAUTH_CLIENT_ID;
|
|
315
|
+
const loginOrigin = await selectDingtalkLoginOrigin({ ...options, baseUrl });
|
|
331
316
|
const callback = await runDingtalkLoopback({
|
|
332
317
|
clientId,
|
|
333
|
-
loginOrigin
|
|
318
|
+
loginOrigin,
|
|
319
|
+
forceLogin: loginOrigin === DINGTALK_INTL_LOGIN_ORIGIN,
|
|
334
320
|
scope: options.scope || process.env.OPENYIDA_DINGTALK_SCOPE || 'openid corpid',
|
|
335
321
|
prompt: options.prompt,
|
|
336
322
|
port: options.port,
|
|
@@ -442,7 +442,6 @@ const COMMAND_SIDE_EFFECTS = new Map([
|
|
|
442
442
|
'design-plan.patch',
|
|
443
443
|
'export',
|
|
444
444
|
'export-conversation',
|
|
445
|
-
'flash-to-prd',
|
|
446
445
|
'login',
|
|
447
446
|
'login-qwenwork',
|
|
448
447
|
'logout',
|
|
@@ -799,7 +798,6 @@ const COMMAND_PERMISSIONS = new Map([
|
|
|
799
798
|
'export-conversation',
|
|
800
799
|
'externalize-form',
|
|
801
800
|
'export',
|
|
802
|
-
'flash-to-prd',
|
|
803
801
|
'import',
|
|
804
802
|
'integration.create',
|
|
805
803
|
'integration.update',
|
|
@@ -1137,9 +1135,10 @@ const COMMAND_GROUPS = [
|
|
|
1137
1135
|
id: 'auth',
|
|
1138
1136
|
titleKey: 'help.group_auth',
|
|
1139
1137
|
commands: [
|
|
1140
|
-
command('login', ['login'], 'login [--qwenwork] [target-url] [--env <name>|--intl|--overseas|--global|--yidaapps|--alibaba] [--client-id <clientId>] [--endpoint <url>] [--no-browser]', 'help.cmd_login', { managedRun: { scope: 'local', allowedFlags: ['--check-only', '--json', '--quiet'], requiredFlags: ['--check-only'] },
|
|
1138
|
+
command('login', ['login'], 'login [--qwenwork] [target-url] [--env <name>|--intl|--overseas|--global|--yidaapps|--alibaba] [--dingtalk <domestic|intl>] [--client-id <clientId>] [--endpoint <url>] [--no-browser]', 'help.cmd_login', { managedRun: { scope: 'local', allowedFlags: ['--check-only', '--json', '--quiet'], requiredFlags: ['--check-only'] },
|
|
1141
1139
|
requiresLogin: false,
|
|
1142
1140
|
output: 'json',
|
|
1141
|
+
notes: ['--intl selects https://www.yidaapps.com. Overseas YiDA login offers domestic DingTalk (.com, default) or DingTalk International (.io, explicit selection only). Use --dingtalk domestic|intl to skip the terminal choice. Non-interactive calls default to domestic DingTalk; an explicit DingTalk OAuth entry URL preserves its account system unless --dingtalk overrides it. The CLI still uses an OAuth loopback callback and token session.'],
|
|
1143
1142
|
}),
|
|
1144
1143
|
command('login-qwenwork', ['login-qwenwork'], 'login-qwenwork --exchange-ticket <ticket> --ticket-context <json> [--json]', 'help.cmd_login_qwenwork', { managedRun: { scope: 'denied', reason: 'identity_exchange' }, requiresLogin: false, output: 'json', hidden: true }),
|
|
1145
1144
|
command('logout', ['logout'], 'logout', 'help.cmd_logout', { managedRun: { scope: 'denied', reason: 'scope_not_audited' }, requiresLogin: false }),
|
|
@@ -2164,9 +2163,6 @@ const COMMAND_GROUPS = [
|
|
|
2164
2163
|
args: [{ name: 'concurrency', type: 'integer', source: 'option', builder_options: ['--concurrency'], description: 'Independent ready-task limit, 1..4; defaults to 1.' }],
|
|
2165
2164
|
notes: ['Batch only independent ready tasks. Default concurrency is 1; opt in to 1..4. Audited reads and independent page compile/publish commands overlap; conflicting page/source/output writes wait, other commands are serial barriers. Dependent work belongs in later batches. Stop-on-error drains running tasks and stops queued work. Results retain input order and timing; failed batches exit nonzero. Managed-run admission remains unchanged.'],
|
|
2166
2165
|
}),
|
|
2167
|
-
command('flash-to-prd', ['flash-to-prd'], 'flash-to-prd --file <path> --name "<project>"', 'help.cmd_flash_to_prd', { managedRun: { scope: 'denied', reason: 'scope_not_audited' },
|
|
2168
|
-
requiresLogin: false,
|
|
2169
|
-
}),
|
|
2170
2166
|
command('ai', ['ai'], 'ai <text|image> [options]', 'help.cmd_ai', { managedRun: { scope: 'denied', reason: 'scope_not_audited' },
|
|
2171
2167
|
output: 'text|json',
|
|
2172
2168
|
}),
|
package/lib/core/env-cmd.js
CHANGED
|
@@ -325,7 +325,7 @@ async function cmdAdd(envName) {
|
|
|
325
325
|
process.exit(1);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
//
|
|
328
|
+
// 推导宜搭站点入口;钉钉认证体系在登录时单独选择。
|
|
329
329
|
const inferredLoginUrl = inferLoginUrlForBaseUrl(baseUrl);
|
|
330
330
|
const workPlatformLoginUrl = baseUrl.replace(/\/+$/, '') + '/workPlatform';
|
|
331
331
|
const defaultLoginUrl = existingConfig?.loginUrl && existingConfig.loginUrl !== workPlatformLoginUrl
|
package/lib/core/env-manager.js
CHANGED
|
@@ -68,17 +68,8 @@ function buildDingtalkOAuthLoginUrl(options = {}) {
|
|
|
68
68
|
return `${loginOrigin}/oauth2/auth?${params.toString()}`;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
//
|
|
72
|
-
|
|
73
|
-
// 1. login origin 为 login.dingtalk.io
|
|
74
|
-
// 2. redirect_uri 落在 www.yidaapps.com(否则登完跳回国内域名,海外后端拿不到 session)
|
|
75
|
-
// 3. 追加 FEForceLogin=true,强制走国际版登录流程
|
|
76
|
-
const INTERNATIONAL_LOGIN_URL = buildDingtalkOAuthLoginUrl({
|
|
77
|
-
loginOrigin: DINGTALK_INTL_LOGIN_ORIGIN,
|
|
78
|
-
baseUrl: INTERNATIONAL_BASE_URL,
|
|
79
|
-
lang: 'en_US',
|
|
80
|
-
forceLogin: true,
|
|
81
|
-
});
|
|
71
|
+
// The YiDA service site is independent of the DingTalk account system.
|
|
72
|
+
const INTERNATIONAL_LOGIN_URL = `${INTERNATIONAL_BASE_URL}/workPlatform`;
|
|
82
73
|
const LEGACY_INTERNATIONAL_LOGIN_URL = buildDingtalkOAuthLoginUrl({
|
|
83
74
|
loginOrigin: DINGTALK_INTL_LOGIN_ORIGIN,
|
|
84
75
|
baseUrl: DEFAULT_BASE_URL,
|
|
@@ -99,11 +90,11 @@ const DEFAULT_ALIBABA_INTERNAL_ENV = {
|
|
|
99
90
|
description: '阿里内网宜搭',
|
|
100
91
|
};
|
|
101
92
|
|
|
102
|
-
/** 海外版 YiDA
|
|
93
|
+
/** 海外版 YiDA 环境配置,登录时单独选择钉钉版本。 */
|
|
103
94
|
const DEFAULT_INTERNATIONAL_ENV = {
|
|
104
95
|
baseUrl: INTERNATIONAL_BASE_URL,
|
|
105
96
|
loginUrl: INTERNATIONAL_LOGIN_URL,
|
|
106
|
-
description: '海外版 YiDA Apps
|
|
97
|
+
description: '海外版 YiDA Apps(www.yidaapps.com)',
|
|
107
98
|
};
|
|
108
99
|
|
|
109
100
|
const BUILTIN_ENVIRONMENTS = {
|
|
@@ -292,14 +283,6 @@ function isDefaultWorkPlatformLoginUrl(loginUrl, baseUrl) {
|
|
|
292
283
|
|
|
293
284
|
function inferLoginUrlForBaseUrl(baseUrl, fallbackLoginUrl) {
|
|
294
285
|
const normalizedBaseUrl = normalizeBaseUrl(baseUrl, DEFAULT_BASE_URL);
|
|
295
|
-
if (isYidaAppsHost(normalizedBaseUrl)) {
|
|
296
|
-
return buildDingtalkOAuthLoginUrl({
|
|
297
|
-
loginOrigin: DINGTALK_INTL_LOGIN_ORIGIN,
|
|
298
|
-
baseUrl: normalizedBaseUrl,
|
|
299
|
-
lang: 'en_US',
|
|
300
|
-
forceLogin: true,
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
286
|
return fallbackLoginUrl || `${normalizedBaseUrl}/workPlatform`;
|
|
304
287
|
}
|
|
305
288
|
|
package/lib/core/locales/en.js
CHANGED
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
+
dingtalk_login: {
|
|
8
|
+
select_version: 'Choose a DingTalk version for overseas YiDA:',
|
|
9
|
+
domestic: 'Domestic DingTalk (overseas YiDA, default)',
|
|
10
|
+
international: 'DingTalk International (overseas YiDA)',
|
|
11
|
+
choose: 'Choose [1/2, default 1]: ',
|
|
12
|
+
invalid_version: '--dingtalk must be domestic or intl.',
|
|
13
|
+
invalid_origin: 'The DingTalk login origin must be https://login.dingtalk.com or https://login.dingtalk.io.',
|
|
14
|
+
invalid_choice: 'Enter 1 or 2, or press Enter for domestic DingTalk.',
|
|
15
|
+
cancelled: 'DingTalk selection cancelled; authorization was not started.',
|
|
16
|
+
help: '--intl selects www.yidaapps.com. Use --dingtalk domestic for domestic DingTalk (.com, default) or --dingtalk intl for DingTalk International (.io). Interactive login offers a choice; non-interactive login defaults to domestic DingTalk.',
|
|
17
|
+
},
|
|
7
18
|
data_seed: {
|
|
8
19
|
optional_notes: 'Standard writable components use seed. Addresses: default domestic ADDRESS only. Unadapted optional fields are listed in skippedFields; all-omitted input creates no records.',
|
|
9
20
|
failed: 'Seed data operation stopped: {0}. Inspect details; do not repeat attempted writes.',
|
|
@@ -309,7 +320,6 @@ module.exports = {
|
|
|
309
320
|
cmd_export_conversation: 'Export AI conversation records',
|
|
310
321
|
cmd_feedback: 'Prepare local issue reports, configure feedback forms and reminders',
|
|
311
322
|
cmd_batch: 'Run OpenYida commands in batch',
|
|
312
|
-
cmd_flash_to_prd: 'Convert flash notes or meeting notes to a PRD prompt',
|
|
313
323
|
cmd_ai: 'Call Yida AI text and image recognition APIs',
|
|
314
324
|
cmd_asset: 'Detect asset capability / resolve materials',
|
|
315
325
|
cmd_cdn: 'CDN image management (config/upload/refresh)',
|
|
@@ -464,6 +474,7 @@ Examples:
|
|
|
464
474
|
openyida export-conversation --list List available conversations
|
|
465
475
|
`,
|
|
466
476
|
unknown_command: 'Unknown command: {0}',
|
|
477
|
+
flash_note_skill: 'The flash-to-prd command has been removed. Ask your current agent to use the yida-flash-note-to-prd skill to generate a PRD directly from the meeting content.',
|
|
467
478
|
command_suggestion: 'Suggested command: {0}',
|
|
468
479
|
forbidden_alias_list_apps: '`{0}` is not an OpenYida command; use `{1}` for application discovery.',
|
|
469
480
|
forbidden_alias_get_app: '`{0}` is ambiguous; use `{1}` for app name search, `{2}` for form/schema lookup, or `{3}` for resource context preflight.',
|
|
@@ -523,7 +534,7 @@ Examples:
|
|
|
523
534
|
save_permission_usage: 'Usage: openyida save-permission <appType> <formUuid> [--package-uuid <packageUuid>] [--data-permission <json>] [--action-permission <json>] [--package-type <FORM_PACKAGE_VIEW|FORM_PACKAGE_START>]',
|
|
524
535
|
save_permission_example: "Example: openyida save-permission APP_XXX FORM-XXX --data-permission '{\"role\":\"DEFAULT\",\"dataRange\":\"SELF\"}'",
|
|
525
536
|
exec_failed: '\n❌ Execution failed: {0}',
|
|
526
|
-
login_usage: 'Usage: openyida login [--qwenwork] [entryUrl|--public|--alibaba|--intl] [--no-browser] [--check-only] [--json] [--client-id <clientId>]',
|
|
537
|
+
login_usage: 'Usage: openyida login [--qwenwork] [entryUrl|--public|--alibaba|--intl] [--no-browser] [--check-only] [--json] [--client-id <clientId>] [--dingtalk <domestic|intl>]',
|
|
527
538
|
login_example: 'Examples:\n openyida login # Automatically open the browser via OAuth loopback login\n openyida login --no-browser # Let the caller handle the authorization URL\n openyida login --check-only --json # Check token auth status only\n openyida login --intl # Login against the international environment\n OPENYIDA_NO_BROWSER=1 openyida login # Suppress auto-opening the browser with an environment variable\n openyida auth login # Login alias',
|
|
528
539
|
login_unsupported_option: 'Removed legacy login option is no longer supported: {0}. Use token/OAuth login; env token mode reads only OPENYIDA_* tokens.',
|
|
529
540
|
auth_usage: 'Usage: openyida auth <status|login|refresh|logout|profiles|profile switch|qwenwork user-info> [--json]',
|
|
@@ -1865,52 +1876,6 @@ Options:
|
|
|
1865
1876
|
file_not_found: '❌ File not found: {0}',
|
|
1866
1877
|
},
|
|
1867
1878
|
|
|
1868
|
-
// ── src/flash-note/flash-to-prd.ts ──────────────
|
|
1869
|
-
flashNote: {
|
|
1870
|
-
toPrd: {
|
|
1871
|
-
title: '📋 DingTalk Flash Note to PRD',
|
|
1872
|
-
help_usage: 'Usage: openyida flash-to-prd --file <flash-note-path> [--name <project-name>]',
|
|
1873
|
-
help_usage2: ' openyida flash-to-prd --name <project-name> (read from stdin)',
|
|
1874
|
-
help_args_title: 'Arguments:',
|
|
1875
|
-
help_arg_file: ' --file, -f <path> Flash note file path (.txt / .md)',
|
|
1876
|
-
help_arg_name: ' --name, -n <name> Project name (optional, auto-extracted from content)',
|
|
1877
|
-
help_arg_max_tokens: ' --max-tokens <count> Max AI output tokens (default 8000)',
|
|
1878
|
-
help_examples_title: 'Examples:',
|
|
1879
|
-
help_example1: ' openyida flash-to-prd --file ./meeting-notes.txt --name "Equipment Inspection"',
|
|
1880
|
-
help_example2: ' cat meeting.txt | openyida flash-to-prd --name "Equipment Inspection"',
|
|
1881
|
-
step_read: '[Step 1] Reading flash note content...',
|
|
1882
|
-
file_not_found: 'File not found: {0}',
|
|
1883
|
-
no_input: 'No flash note content provided. Use --file to specify a file, or pipe content via stdin.',
|
|
1884
|
-
stdin_empty: 'Standard input is empty',
|
|
1885
|
-
read_success: '✅ Read successfully, {0} characters',
|
|
1886
|
-
step_load_module: '[Step 2] Loading prompt builder module...',
|
|
1887
|
-
module_loaded_builtin: '✅ Built-in prompt module loaded',
|
|
1888
|
-
module_loaded_local: '✅ Local prompt module loaded: {0}',
|
|
1889
|
-
module_not_found: '❌ build-flash-note-prompt.js module not found',
|
|
1890
|
-
module_path_tried: ' Tried path {0}: {1}',
|
|
1891
|
-
step_preprocess: '[Step 3] Preprocessing + meeting recognition...',
|
|
1892
|
-
preprocess_result: ' Preprocessed: {0} chars -> {1} chars',
|
|
1893
|
-
meeting_meta: ' Meeting metadata: {0} fields{1}',
|
|
1894
|
-
a1_sections: ' A1 summary sections: {0}{1}',
|
|
1895
|
-
speakers: ' Speakers identified: {0}{1}',
|
|
1896
|
-
speakers_with_role: ' (with {0} role annotations)',
|
|
1897
|
-
step_login: '[Step 4] Checking login status...',
|
|
1898
|
-
no_login: ' No login session found, triggering login...',
|
|
1899
|
-
login_ready: '✅ Login ready ({0})',
|
|
1900
|
-
step_ai: '[Step 5] Calling AI to generate PRD...',
|
|
1901
|
-
single_segment: ' Single segment mode, prompt length: {0} chars',
|
|
1902
|
-
multi_segment: ' Multi-segment mode, {0} segments total',
|
|
1903
|
-
extracting_segment: ' Extracting segment {0}/{1} ({2} chars)...',
|
|
1904
|
-
merging_segments: ' Merging segment results...',
|
|
1905
|
-
ai_success: '✅ PRD generated successfully',
|
|
1906
|
-
ai_error: 'AI API call failed: {0}',
|
|
1907
|
-
done: '✅ Flash note to PRD complete',
|
|
1908
|
-
done_project: ' Project name: {0}',
|
|
1909
|
-
done_file: ' Output file: {0}',
|
|
1910
|
-
done_size: ' File size: {0} characters',
|
|
1911
|
-
done_meeting: ' Meeting recognition: {0} metadata fields, {1} A1 sections, {2} speakers',
|
|
1912
|
-
},
|
|
1913
|
-
},
|
|
1914
1879
|
|
|
1915
1880
|
// ── lib/process/preview-process.js ─────────────────
|
|
1916
1881
|
preview_process: {
|
package/lib/core/locales/zh.js
CHANGED
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
+
dingtalk_login: {
|
|
8
|
+
select_version: '请选择用于登录宜搭海外站的钉钉版本:',
|
|
9
|
+
domestic: '钉钉国内版(宜搭海外,默认)',
|
|
10
|
+
international: '钉钉国际版(宜搭海外)',
|
|
11
|
+
choose: '请选择 [1/2,默认 1]:',
|
|
12
|
+
invalid_version: '--dingtalk 必须为 domestic 或 intl。',
|
|
13
|
+
invalid_origin: '钉钉认证入口必须为 https://login.dingtalk.com 或 https://login.dingtalk.io。',
|
|
14
|
+
invalid_choice: '请输入 1 或 2,直接回车使用国内版。',
|
|
15
|
+
cancelled: '已取消钉钉版本选择,未发起授权。',
|
|
16
|
+
help: '--intl 登录 www.yidaapps.com;--dingtalk domestic 使用钉钉国内版(默认 .com),--dingtalk intl 使用钉钉国际版(.io)。终端登录前可选择,非交互默认国内版。',
|
|
17
|
+
},
|
|
7
18
|
data_seed: {
|
|
8
19
|
optional_notes: '标准可写组件均使用 seed;地址限默认国内 ADDRESS。未适配的可选字段见 skippedFields,全部省略时不创建记录。',
|
|
9
20
|
failed: '示例数据操作已停止:{0}。请查看错误详情;已尝试写入的记录不得重复创建。',
|
|
@@ -309,7 +320,6 @@ module.exports = {
|
|
|
309
320
|
cmd_export_conversation: '导出 AI 对话记录',
|
|
310
321
|
cmd_feedback: '整理本地问题报告、配置反馈表单与提醒',
|
|
311
322
|
cmd_batch: '批量执行 OpenYida 命令',
|
|
312
|
-
cmd_flash_to_prd: '闪记 / 会议纪要转 PRD prompt',
|
|
313
323
|
cmd_ai: '调用 AI 文生文和识图能力',
|
|
314
324
|
cmd_asset: '检测素材能力 / 解析回填素材',
|
|
315
325
|
cmd_cdn: 'CDN 图片管理(配置/上传/刷新)',
|
|
@@ -464,6 +474,7 @@ openyida - 宜搭命令行工具
|
|
|
464
474
|
openyida export-conversation --list 列出可用对话
|
|
465
475
|
`,
|
|
466
476
|
unknown_command: '未知命令: {0}',
|
|
477
|
+
flash_note_skill: 'flash-to-prd 命令已移除。请将会议内容交给当前 Agent,使用 yida-flash-note-to-prd 技能直接生成 PRD。',
|
|
467
478
|
command_suggestion: '建议命令: {0}',
|
|
468
479
|
forbidden_alias_list_apps: '`{0}` 不是 OpenYida 命令;请使用 `{1}` 查询应用。',
|
|
469
480
|
forbidden_alias_get_app: '`{0}` 含义不明确;按应用名称搜索请用 `{1}`,查询表单/字段结构请用 `{2}`,读取资源上下文请用 `{3}`。',
|
|
@@ -523,7 +534,7 @@ openyida - 宜搭命令行工具
|
|
|
523
534
|
save_permission_usage: '用法: openyida save-permission <appType> <formUuid> [--package-uuid <packageUuid>] [--data-permission <json>] [--action-permission <json>] [--package-type <FORM_PACKAGE_VIEW|FORM_PACKAGE_START>]',
|
|
524
535
|
save_permission_example: "示例: openyida save-permission APP_XXX FORM-XXX --data-permission '{\"role\":\"DEFAULT\",\"dataRange\":\"SELF\"}'",
|
|
525
536
|
exec_failed: '\n❌ 执行失败: {0}',
|
|
526
|
-
login_usage: '用法: openyida login [--qwenwork] [entryUrl|--public|--alibaba|--intl] [--no-browser] [--check-only] [--json] [--client-id <clientId>]',
|
|
537
|
+
login_usage: '用法: openyida login [--qwenwork] [entryUrl|--public|--alibaba|--intl] [--no-browser] [--check-only] [--json] [--client-id <clientId>] [--dingtalk <domestic|intl>]',
|
|
527
538
|
login_example: '示例:\n openyida login # 通过 OAuth loopback 自动打开浏览器登录\n openyida login --no-browser # 不自动打开浏览器,由调用方接管授权链接\n openyida login --check-only --json # 只检查 token 登录态\n openyida login --intl # 使用国际站环境登录\n OPENYIDA_NO_BROWSER=1 openyida login # 通过环境变量抑制自动打开浏览器\n openyida auth login # 登录入口别名',
|
|
528
539
|
login_unsupported_option: '已删除的旧登录参数不再支持: {0}。请使用 token/OAuth 登录;env token 模式下只读取 OPENYIDA_* token。',
|
|
529
540
|
first_run_title: ' 🤖 OpenYida - AI 问答模式已开启! ',
|
|
@@ -1862,52 +1873,6 @@ openyida - 宜搭命令行工具
|
|
|
1862
1873
|
file_not_found: '❌ 文件不存在: {0}',
|
|
1863
1874
|
},
|
|
1864
1875
|
|
|
1865
|
-
// ── src/flash-note/flash-to-prd.ts ──────────────
|
|
1866
|
-
flashNote: {
|
|
1867
|
-
toPrd: {
|
|
1868
|
-
title: '📋 钉钉闪记转 PRD',
|
|
1869
|
-
help_usage: '用法:openyida flash-to-prd --file <闪记文件路径> [--name <项目名>]',
|
|
1870
|
-
help_usage2: ' openyida flash-to-prd --name <项目名> (从标准输入读取)',
|
|
1871
|
-
help_args_title: '参数:',
|
|
1872
|
-
help_arg_file: ' --file, -f <路径> 闪记文本文件路径(支持 .txt / .md)',
|
|
1873
|
-
help_arg_name: ' --name, -n <名称> 项目名称(可选,默认从闪记内容中自动提取)',
|
|
1874
|
-
help_arg_max_tokens: ' --max-tokens <数量> AI 最大输出 token 数(默认 8000)',
|
|
1875
|
-
help_examples_title: '示例:',
|
|
1876
|
-
help_example1: ' openyida flash-to-prd --file ./meeting-notes.txt --name "设备巡检系统"',
|
|
1877
|
-
help_example2: ' cat meeting.txt | openyida flash-to-prd --name "设备巡检系统"',
|
|
1878
|
-
step_read: '[Step 1] 读取闪记内容...',
|
|
1879
|
-
file_not_found: '文件不存在:{0}',
|
|
1880
|
-
no_input: '未提供闪记内容。请使用 --file 指定文件,或通过管道传入内容。',
|
|
1881
|
-
stdin_empty: '标准输入内容为空',
|
|
1882
|
-
read_success: '✅ 读取成功,原文 {0} 字',
|
|
1883
|
-
step_load_module: '[Step 2] 加载 Prompt 构建模块...',
|
|
1884
|
-
module_loaded_builtin: '✅ 已加载内置 Prompt 模块',
|
|
1885
|
-
module_loaded_local: '✅ 已加载本地 Prompt 模块:{0}',
|
|
1886
|
-
module_not_found: '❌ 未找到 build-flash-note-prompt.js 模块',
|
|
1887
|
-
module_path_tried: ' 尝试路径 {0}:{1}',
|
|
1888
|
-
step_preprocess: '[Step 3] 预处理 + 会议识别...',
|
|
1889
|
-
preprocess_result: ' 预处理:{0} 字 → {1} 字',
|
|
1890
|
-
meeting_meta: ' 会议元信息:{0} 项{1}',
|
|
1891
|
-
a1_sections: ' A1 摘要段落:{0} 段{1}',
|
|
1892
|
-
speakers: ' 发言人识别:{0} 位{1}',
|
|
1893
|
-
speakers_with_role: '(含角色标注 {0} 位)',
|
|
1894
|
-
step_login: '[Step 4] 检查登录态...',
|
|
1895
|
-
no_login: ' 未检测到登录态,触发登录...',
|
|
1896
|
-
login_ready: '✅ 登录态就绪({0})',
|
|
1897
|
-
step_ai: '[Step 5] 调用 AI 生成 PRD...',
|
|
1898
|
-
single_segment: ' 单段模式,Prompt 长度:{0} 字',
|
|
1899
|
-
multi_segment: ' 多段模式,共 {0} 段',
|
|
1900
|
-
extracting_segment: ' 提取第 {0}/{1} 段({2} 字)...',
|
|
1901
|
-
merging_segments: ' 合并分段结果...',
|
|
1902
|
-
ai_success: '✅ PRD 生成成功',
|
|
1903
|
-
ai_error: 'AI 接口调用失败:{0}',
|
|
1904
|
-
done: '✅ 闪记转 PRD 完成',
|
|
1905
|
-
done_project: ' 项目名称:{0}',
|
|
1906
|
-
done_file: ' 输出文件:{0}',
|
|
1907
|
-
done_size: ' 文件大小:{0} 字',
|
|
1908
|
-
done_meeting: ' 会议识别:元信息 {0} 项,A1 摘要 {1} 段,发言人 {2} 位',
|
|
1909
|
-
},
|
|
1910
|
-
},
|
|
1911
1876
|
|
|
1912
1877
|
// ── lib/process/preview-process.js ─────────────────
|
|
1913
1878
|
preview_process: {
|
package/package.json
CHANGED
package/yida-skills/SKILL.md
CHANGED
|
@@ -193,8 +193,8 @@ Fast / Plan 选定的主题和主色属于整个应用:导航、原生页、
|
|
|
193
193
|
| 按 taskUuid 读取钉钉听记 | `yida-tingji`,将听记任务 ID 原样传入命令 |
|
|
194
194
|
| 将钉钉开放平台官方 API 接入宜搭或 Canvas | `yida-dingtalk-openapi`;密钥不进聊天,账号由用户在宜搭或本机 TTY 配置 |
|
|
195
195
|
| 钉钉事件订阅、Stream 或 HTTP 回调 | OpenYida 不支持;直接说明能力边界并停止,不生成连接器动作 |
|
|
196
|
-
| 用户给 taskUuid 并要求转 PRD | 先用 `yida-tingji` 读取听记内容,再把已有内容交给 `yida-flash-note-to-prd`
|
|
197
|
-
| 已有会议纪要/闪记内容转 PRD | `yida-flash-note-to-prd
|
|
196
|
+
| 用户给 taskUuid 并要求转 PRD | 先用 `yida-tingji` 读取听记内容,再把已有内容交给 `yida-flash-note-to-prd` 由当前 Agent 直接生成 PRD |
|
|
197
|
+
| 已有会议纪要/闪记内容转 PRD | `yida-flash-note-to-prd`,由当前 Agent 直接处理已有内容;生成阶段无需宜搭登录或远端 AI 接口 |
|
|
198
198
|
| 只创建应用壳并拿 appType | `yida-create-app`;若随后继续完整搭建,已经确认的 `requirement-brief.json`、`prd.md` 与 `design.md` 保持不变,真实 `appType` 只写入 schema 或当前任务资源上下文 |
|
|
199
199
|
| 明确强制要求 AI 老应用升级成新版主题 | `yida-upgrade-app-theme`;必须先取得针对目标应用的 ask_human 肯定回复,普通美化/换色/建应用不得触发 |
|
|
200
200
|
| 启用/上线或停用/下线已有应用 | `yida-app-lifecycle`;只有用户明确要求时执行,`app-offline` 执行前需再次确认目标应用 |
|