openyida 2026.11.2 → 2026.11.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 +11 -9
- package/bin/yida.js +2 -1
- package/lib/app/application-entry-urls.js +35 -1
- package/lib/app/check-prd-completeness.js +27 -6
- package/lib/app/create-app.js +17 -9
- package/lib/app/fast-build.js +151 -0
- package/lib/app/fast-theme.js +83 -0
- package/lib/app/form-data-contract.js +162 -0
- package/lib/app/services/canvas-page-schema-builder.js +10 -0
- package/lib/asset/ai-image.js +8 -5
- package/lib/asset/asset-cmd.js +24 -4
- package/lib/asset/asset-execution.js +25 -4
- package/lib/asset/asset-plan.js +4 -2
- package/lib/asset/asset-resolve.js +21 -7
- package/lib/auth/oauth-loopback.js +1 -1
- package/lib/auth/org.js +2 -0
- package/lib/auth/token-auth.js +1 -0
- package/lib/core/agent-capabilities.js +30 -9
- package/lib/core/batch.js +71 -122
- package/lib/core/command-manifest.js +71 -38
- package/lib/core/locales/en.js +20 -4
- package/lib/core/locales/zh.js +19 -3
- package/lib/core/permission-guidance.js +10 -10
- package/lib/core/query-data.js +67 -10
- package/lib/core/sample.js +73 -0
- package/lib/core/task-concurrency.js +96 -0
- package/lib/corp-efficiency/corp-efficiency.js +15 -8
- package/lib/design/fast-document.js +118 -0
- package/lib/design-plan/design-plan.js +3 -3
- package/lib/design-plan/init.js +90 -5
- package/lib/design-plan/materialize.js +2 -2
- package/lib/design-plan/validate.js +64 -9
- package/lib/flash-note/build-flash-note-prompt.js +1 -1
- package/lib/samples/openyida-scaffold/canvas-data-source.jsx +135 -0
- package/lib/samples/openyida-scaffold/canvas-file-upload.jsx +106 -0
- package/lib/samples/openyida-scaffold/file-upload-client.jsx +160 -0
- package/lib/samples/yida-app/fast-app.json +64 -0
- package/lib/samples/yida-design/fast-design.json +38 -0
- package/package.json +3 -3
- package/scripts/postinstall.js +6 -6
- package/yida-skills/SKILL.md +10 -9
- package/yida-skills/references/official-example-schema-patterns.md +3 -3
- package/yida-skills/references/qwenwork-link-presentation.md +11 -16
- package/yida-skills/references/user-facing-summary.md +1 -1
- package/yida-skills/skills/yida-app/SKILL.md +23 -12
- package/yida-skills/skills/yida-app/references/fast-context.md +7 -0
- package/yida-skills/skills/yida-app/workflow/fast-build.md +65 -0
- package/yida-skills/skills/yida-app/workflow/parallel-work.md +15 -5
- package/yida-skills/skills/yida-app/workflow/plan/workflow.md +5 -1
- package/yida-skills/skills/yida-app/workflow/step-2-design.md +13 -6
- package/yida-skills/skills/yida-app/workflow/step-3-create-or-reuse-app.md +7 -2
- package/yida-skills/skills/yida-app/workflow/step-4-forms-processes.md +4 -1
- package/yida-skills/skills/yida-app/workflow/step-5-seed-records.md +4 -1
- package/yida-skills/skills/yida-app/workflow/step-6-main-page.md +3 -0
- package/yida-skills/skills/yida-app/workflow/step-7-page-code.md +5 -2
- package/yida-skills/skills/yida-app/workflow/step-8-publish-navigation.md +3 -0
- package/yida-skills/skills/yida-app/workflow/step-9-output-finish.md +7 -2
- package/yida-skills/skills/yida-canvas-custom-page/SKILL.md +14 -4
- package/yida-skills/skills/yida-canvas-custom-page/references/data-bridge-guide.md +2 -0
- package/yida-skills/skills/yida-canvas-custom-page/references/file-upload.md +75 -0
- package/yida-skills/skills/yida-canvas-custom-page/references/native-components-bridge.md +4 -3
- package/yida-skills/skills/yida-canvas-custom-page/references/page-generation-guide.md +1 -1
- package/yida-skills/skills/yida-canvas-data-binding/SKILL.md +23 -82
- package/yida-skills/skills/yida-corp-efficiency/SKILL.md +3 -3
- package/yida-skills/skills/yida-create-app/SKILL.md +9 -5
- package/yida-skills/skills/yida-create-form-page/SKILL.md +1 -1
- package/yida-skills/skills/yida-create-form-page/references/field-definition-guide.md +1 -1
- package/yida-skills/skills/yida-create-form-page/references/form-field-properties.md +13 -17
- package/yida-skills/skills/yida-custom-page/SKILL.md +2 -0
- package/yida-skills/skills/yida-custom-page/references/attachment-upload-guide.md +4 -0
- package/yida-skills/skills/yida-data-management/SKILL.md +2 -0
- package/yida-skills/skills/yida-data-management/references/data-format-guide.md +9 -0
- package/yida-skills/skills/yida-design/SKILL.md +7 -2
- package/yida-skills/skills/yida-design/references/application-theme-consistency.md +4 -4
- package/yida-skills/skills/yida-design/references/ask-human-interaction-contract.md +2 -2
- package/yida-skills/skills/yida-design/references/design-mode.md +4 -2
- package/yida-skills/skills/yida-design/references/fast-design-spec.md +32 -0
- package/yida-skills/skills/yida-design/references/native-form-styles.md +2 -2
- package/yida-skills/skills/yida-design/templates/design-themes/app-teal/design.md +4 -4
- package/yida-skills/skills/yida-design/templates/design-themes/app-terminal/design.md +4 -4
- package/yida-skills/skills/yida-design/workflow/output-design.md +1 -1
- package/yida-skills/skills/yida-design/workflow/step-4-wireframe-interaction.md +1 -1
- package/yida-skills/skills/yida-design/workflow/step-6-handoff.md +1 -1
- package/yida-skills/skills/yida-dingtalk-openapi/references/api-contract.md +1 -1
- package/yida-skills/skills/yida-flash-note-to-prd/references/flash-note-prompt.md +1 -1
- package/yida-skills/skills/yida-image-assets/SKILL.md +11 -5
- package/yida-skills/skills/yida-login/SKILL.md +6 -0
- package/yida-skills/skills/yida-ppt-slider/references/examples.md +3 -3
- package/yida-skills/skills/yida-prd/SKILL.md +5 -1
- package/yida-skills/skills/yida-publish-page/SKILL.md +3 -0
- package/yida-skills/skills/yida-requirement-analysis/SKILL.md +4 -1
- package/yida-skills/skills/yida-requirement-analysis/references/handoff.md +4 -1
- package/yida-skills/skills/yida-requirement-analysis/workflow/prepare-brief.md +3 -0
- package/yida-skills/skills-index.json +2 -2
|
@@ -9,6 +9,7 @@ const { ENTRY_MODES } = require('../design-plan/entry-navigation');
|
|
|
9
9
|
const { DIVIDER_TYPES, DEFAULT_DIVIDER_TYPE } = require('../app/form-field-validator');
|
|
10
10
|
const { FORMULA_COMMANDS } = require('../formula/cli-contract');
|
|
11
11
|
const { printTemplateCommand, printTemplateEffects, printTemplatePermission } = require('../print-template/contract');
|
|
12
|
+
const { buildLinkPresentationCompletionGate } = require('../app/application-entry-urls');
|
|
12
13
|
|
|
13
14
|
/** 应用交付只约定入口内容;展示方式由宿主负责。 */
|
|
14
15
|
function buildEntryDeliveryPolicy() {
|
|
@@ -1105,15 +1106,6 @@ const FORBIDDEN_ALIASES = Object.freeze([
|
|
|
1105
1106
|
message_key: 'cli.forbidden_alias_get_app',
|
|
1106
1107
|
message_args: ['get-app', 'app-list', 'get-schema', 'agent-capabilities'],
|
|
1107
1108
|
}),
|
|
1108
|
-
Object.freeze({
|
|
1109
|
-
id: 'forbidden-alias.create-app-json',
|
|
1110
|
-
pattern: 'create-app --json',
|
|
1111
|
-
matcher: { type: 'command_has_option', command: 'create-app', option: '--json' },
|
|
1112
|
-
suggested_command_id: 'create-app',
|
|
1113
|
-
suggested_usage: 'openyida create-app "<name>"|--name <name> [options] [--locale zh_CN|en_US|ja_JP] [--open|--no-open]',
|
|
1114
|
-
message_key: 'cli.forbidden_alias_create_app_json',
|
|
1115
|
-
message_args: ['create-app --json', 'create-app'],
|
|
1116
|
-
}),
|
|
1117
1109
|
Object.freeze({
|
|
1118
1110
|
id: 'forbidden-alias.create-page-app-type-option',
|
|
1119
1111
|
pattern: 'create-page --app-type',
|
|
@@ -1184,6 +1176,7 @@ function command(id, path, usage, descriptionKey, options = {}) {
|
|
|
1184
1176
|
...(options.resultReuse ? { resultReuse: cloneJsonMetadata(options.resultReuse, null) } : {}),
|
|
1185
1177
|
hidden: options.hidden === true,
|
|
1186
1178
|
managedRun: cloneJsonMetadata(options.managedRun, null),
|
|
1179
|
+
...(options.taskConcurrency ? { taskConcurrency: cloneJsonMetadata(options.taskConcurrency, null) } : {}),
|
|
1187
1180
|
sideEffect: cloneSideEffect(commandSideEffect),
|
|
1188
1181
|
permission: clonePermission(normalizedPermission),
|
|
1189
1182
|
};
|
|
@@ -1201,7 +1194,7 @@ const COMMAND_GROUPS = [
|
|
|
1201
1194
|
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 }),
|
|
1202
1195
|
command('logout', ['logout'], 'logout', 'help.cmd_logout', { managedRun: { scope: 'denied', reason: 'scope_not_audited' }, requiresLogin: false }),
|
|
1203
1196
|
command('auth', ['auth'], 'auth <status|login|refresh|logout|profiles|profile switch|qwenwork user-info> [--json]', 'help.cmd_auth', { managedRun: { scope: 'actions', actions: { status: { scope: 'local', allowedFlags: ['--json', '--quiet'] }, qwenwork: { scope: 'denied', reason: 'identity_exchange' } } }, requiresLogin: false }),
|
|
1204
|
-
command('org', ['org'], 'org <list|switch> [--json] [--corp-id <corpId>]', 'help.cmd_org', { managedRun: { scope: 'denied', reason: 'scope_not_audited' } }),
|
|
1197
|
+
command('org', ['org'], 'org <list|switch> [--json] [--corp-id <corpId>] [--no-browser]', 'help.cmd_org', { managedRun: { scope: 'denied', reason: 'scope_not_audited' } }),
|
|
1205
1198
|
command('env', ['env'], 'env [--json|setup|list|show|switch|add|remove] [options]', 'help.cmd_env', { managedRun: { scope: 'local', allowedFlags: ['--json', '--quiet'] },
|
|
1206
1199
|
requiresLogin: false,
|
|
1207
1200
|
output: 'text|json',
|
|
@@ -1309,7 +1302,7 @@ const COMMAND_GROUPS = [
|
|
|
1309
1302
|
],
|
|
1310
1303
|
notes: ['Complete URLs, including workbench page IDs, are preserved. --frontend-page requires a published display page plus a live hidden-navigation readback, using the same standalone URL resolver as publish; missing/mismatched config or visible navigation prevents writing. Results return urls.frontend/management and configurationReadback separately from runtimeVerified. --management-page verifies ownership and builds /workbench/<formUuid>. Generated URLs need runtime verification; public entries require the verified complete URL. --frontend-page is a standalone shortcut only; an explicitly planned platform-shell frontend uses --frontend with its verified workbenchUrl. This command does not hide navigation, publish pages or change permissions. Entry registration accepts only platform-supported routes and query parameters; do not strip required per-open parameters from a rejected URL to claim an equivalent entry. Omitted entries remain unchanged.'],
|
|
1311
1304
|
}),
|
|
1312
|
-
command('app-list', ['app-list'], 'app-list [--type managed|created] [--page N] [--size N]', 'help.cmd_app_list', { managedRun: {'scope':'denied','reason':'scope_not_audited'},
|
|
1305
|
+
command('app-list', ['app-list'], 'app-list [--type managed|created] [--page N] [--size N]', 'help.cmd_app_list', { taskConcurrency: {'kind':'read'}, managedRun: {'scope':'denied','reason':'scope_not_audited'},
|
|
1313
1306
|
notes: ['Successful results include appUrl/workbenchUrl for the business workspace and adminUrl for developer administration. Complete application delivery retains adminUrl regardless of auth runtime; route construction does not verify recipient access. Preserve the frontend URL from its own page result.'],
|
|
1314
1307
|
}),
|
|
1315
1308
|
command('solution-template', ['solution-template'], 'solution-template <search|detail|prepare|ai-build|enable|status> [templateId|requestId] [options] [--json]', 'solution_template.description', {
|
|
@@ -1343,18 +1336,21 @@ const COMMAND_GROUPS = [
|
|
|
1343
1336
|
command('corp-efficiency', ['corp-efficiency'], 'corp-efficiency [overview|details|detail|groups|notify] [options] [--open|--no-open]', 'help.cmd_corp_efficiency', { managedRun: { scope: 'denied', reason: 'scope_not_audited' },
|
|
1344
1337
|
output: 'json',
|
|
1345
1338
|
}),
|
|
1346
|
-
command('create-app', ['create-app'], 'create-app "<name>"|--name <name> [options] [--locale zh_CN|en_US|ja_JP] [--open|--no-open]', 'help.cmd_create_app', { managedRun: { scope: 'denied', reason: 'scope_not_audited' },
|
|
1347
|
-
|
|
1339
|
+
command('create-app', ['create-app'], 'create-app "<name>"|--name <name> [options] [--locale zh_CN|en_US|ja_JP] [--open|--no-open] [--json]', 'help.cmd_create_app', { managedRun: { scope: 'denied', reason: 'scope_not_audited' },
|
|
1340
|
+
output: 'json',
|
|
1341
|
+
examples: ['openyida create-app --name "CRM" --desc "Customer management" --json'],
|
|
1342
|
+
notes: ['QwenWork creation returns pending linkPresentation even with --quiet --no-open; post-creation errors retain it in details. Apply full_app_build.link_presentation_gate before final summary, including app shells and partial delivery.', 'Creation always requests createWithModernTheme=y and verifies the new app identity and modern configuration through getAppIncludingAecpInfo.json before reporting success. APP_CREATED_THEME_UNVERIFIED preserves details.appCreated/appType/retryCreate=false; inspect that app and never recreate or silently downgrade it. themeVerification is configuration readback, not browser rendering proof.', 'Successful results include appUrl/workbenchUrl for the business workspace and adminUrl for developer administration. Complete application delivery retains adminUrl regardless of auth runtime; route construction does not verify recipient access. Preserve the frontend URL from its own page result.', 'In QwenWork, permission failures return a nonzero exit and structured status=permission_required. YIDA_PLATFORM_ACCESS_REQUIRED and YIDA_APP_CREATE_PERMISSION_REQUIRED include details.permissionLabel/permissionUrl and nextAction.label/url; YIDA_PERMISSION_REQUIRED preserves an unclassified permission reason without inventing a link. Explain the missing permission, display the semantic label as a Markdown link to its paired URL (or reuse nextStep), and pause resource writes; do not automatically open it, send an application, switch spaces, log in again or retry creation. Resume only after the user requests continuation and the host identity, organization and permissions are verified.'],
|
|
1348
1343
|
}),
|
|
1349
|
-
command('design-plan.catalog', ['design-plan', 'catalog'], 'design-plan catalog [--json]', 'help.cmd_design_plan_catalog', { managedRun: { scope: 'local' },
|
|
1344
|
+
command('design-plan.catalog', ['design-plan', 'catalog'], 'design-plan catalog [--compact] [--json]', 'help.cmd_design_plan_catalog', { managedRun: { scope: 'local' },
|
|
1350
1345
|
requiresLogin: false, output: 'json',
|
|
1351
|
-
args: [{ name: 'json', type: 'boolean', source: 'option', builder_options: ['--json'] }
|
|
1352
|
-
|
|
1346
|
+
args: [{ name: 'json', type: 'boolean', source: 'option', builder_options: ['--json'] },
|
|
1347
|
+
{ name: 'compact', type: 'boolean', source: 'option', builder_options: ['--compact'], description: 'Return themeId, label, content/nav tone and layout limits without verbose policy, preview URLs or page patterns. Keeps all eligible IDs, creative option and app-pop eligibility; does not select a theme.' }],
|
|
1348
|
+
notes: ['When the theme ID is unknown, use catalog --compact once for Fast selection. Themes are in themes and identified by themeId; do not truncate JSON with head/tail or rediscover its shape through repeated commands. Reuse the selected theme and current catalog. Full catalog remains available for visual guidance and planning; previews still require explicit user request.'],
|
|
1353
1349
|
}),
|
|
1354
1350
|
command('design-plan.init', ['design-plan', 'init'], 'design-plan init <requirement-brief.json> [--theme-id <id>] [--output-dir <dir>] [--json]', 'help.cmd_design_plan_init', { managedRun: { scope: 'local' },
|
|
1355
1351
|
requiresLogin: false,
|
|
1356
1352
|
output: 'text|json',
|
|
1357
|
-
notes: ['Requires a selected theme from --theme-id or visualSelection.themeId. A recorded brief theme cannot be overridden by a conflicting --theme-id; reuse the recorded choice. Init disables comparison and style questions for the selected theme, even when design fields are pending. There is no navigation-tone argument: init reads navTheme from the selected theme template, overwrites stale navigationStyle.tone, and records toneSource=theme_derived. Free creative preserves an explicitly authored navigationStyle.tone and records toneSource=project_defined. Returns preserved business facts, authoring.pendingFields with file/path/message, typed examples in authoring-context.md, and materialize.command with materialize.shell (powershell on Windows, posix elsewhere). Execute the command in that shell. Complete the pending facts, review business coverage, then set ready=true. Author ordered page blocks as {name,purpose}; omitted contentPriority and contentRichness.contentLayers derive from these blocks, preserving explicit overrides. Author project-specific acceptanceCriteria; materialize merges them with resource-based checks. A string visualSelection.colorStrategy is preserved as usage text with primaryColor pending; invalid types fail before files are written. Init guidance is preliminary; materialize still validates the completed plan.'],
|
|
1353
|
+
notes: ['Fills missing structural field properties and deterministic menu keys/labels/local view keys, while preserving explicit choices and unresolved permissions or entry purposes. Normalizes the selected primary color to six-digit HEX and fills an absent primary token. Authoring issues include file/path/code and available type/enum/example hints. Project examples remain outside facts. materialize.checkCommand runs the existing non-writing preflight.', 'Requires a selected theme from --theme-id or visualSelection.themeId. A recorded brief theme cannot be overridden by a conflicting --theme-id; reuse the recorded choice. Init disables comparison and style questions for the selected theme, even when design fields are pending. There is no navigation-tone argument: init reads navTheme from the selected theme template, overwrites stale navigationStyle.tone, and records toneSource=theme_derived. Free creative preserves an explicitly authored navigationStyle.tone and records toneSource=project_defined. Returns preserved business facts, authoring.pendingFields with file/path/message, typed examples in authoring-context.md, and materialize.command with materialize.shell (powershell on Windows, posix elsewhere). Execute the command in that shell. Complete the pending facts, review business coverage, then set ready=true. Author ordered page blocks as {name,purpose}; omitted contentPriority and contentRichness.contentLayers derive from these blocks, preserving explicit overrides. Author project-specific acceptanceCriteria; materialize merges them with resource-based checks. A string visualSelection.colorStrategy is preserved as usage text with primaryColor pending; invalid types fail before files are written. Init guidance is preliminary; materialize still validates the completed plan.'],
|
|
1358
1354
|
args: [
|
|
1359
1355
|
{ name: 'requirementBrief', type: 'file', required: true, source: 'positional', position: 0, builder_options: ['--requirement-brief'] },
|
|
1360
1356
|
{ name: 'themeId', type: 'string', required: false, source: 'option', builder_options: ['--theme-id'] },
|
|
@@ -1372,7 +1368,7 @@ const COMMAND_GROUPS = [
|
|
|
1372
1368
|
notes: ['Updates completed fact modules in preview/ drafts. Modules share a source base; one writer updates changed sections and preserves custom CSS. Final materialize validates the complete plan and writes PRD, design, HTML and theme together.'],
|
|
1373
1369
|
}),
|
|
1374
1370
|
command('design-plan.materialize', ['design-plan', 'materialize'], 'design-plan materialize <build-plan.json> [--from-preview | --business-file <json> --visual-file <json>] [--output-dir <dir>] [--rebase-parts] [--check] [--json]', 'help.cmd_design_plan_materialize', { managedRun: {'scope':'local'},
|
|
1375
|
-
notes: ['Local validation failures include repair.inputHash/errorHash. Do not retry unchanged inputs and arguments; stop after two repair attempts with the same error set. CLI reports diagnostics without persisting retry counters.', 'Validates readable text/surface pairs before materializing. Known low contrast returns DESIGN_THEME_CONTRAST_LOW and never silently recolors the project. Use check-design --json to inspect uncomputed pairs. Browser review follows builder_path.browser_verification and is limited to a local agent on the user machine.', 'Derives navigationStyle.tone and appConfig.navTheme from the selected theme template. Navigation appearance tokens come directly from that template plus explicit visualStyle.tokens; mode-independent tokens such as --pod-nav-menu-item-selected-shadow flow through the base token contract; materialize does not synthesize a light/dark replacement palette. Free creative uses project-authored navigation tone and tokens. Validates image slots before writing artifacts. JSON assetTasks lists taskKey/taskState, independent searches ordered by required/hero/design order, collection-wide concurrency, host-enforced time budgets, two-round limits, resume policy, output paths and resolve argv. After matching plan confirmation, executionContract requires checking background Agent and Bash separately, dispatching only verified nonblocking tools or doing authorized business work before synchronous asset batches; record real job IDs and continue app/form/page work; replace <appType> with the real ID for upload. Materialized PRD execution pages include navigationPolicy derived from app/page navigation: platform-shell is content-only; standalone without a planned menu renders no application menu. This command performs no search or upload. Local asset inputs resolve against the command cwd; absolute paths survive page-task directory changes.'],
|
|
1371
|
+
notes: ['--check additionally aggregates independent field, menu, asset structure and literal primary-color issues before downstream rendering. Errors expose details.issues with repair paths and available type/enum/example hints. It writes no plan artifacts and returns no confirmation attachment; normal materialize retains its complete validation and confirmation handoff.', 'Local validation failures include repair.inputHash/errorHash. Do not retry unchanged inputs and arguments; stop after two repair attempts with the same error set. CLI reports diagnostics without persisting retry counters.', 'Validates readable text/surface pairs before materializing. Known low contrast returns DESIGN_THEME_CONTRAST_LOW and never silently recolors the project. Use check-design --json to inspect uncomputed pairs. Browser review follows builder_path.browser_verification and is limited to a local agent on the user machine.', 'Derives navigationStyle.tone and appConfig.navTheme from the selected theme template. Navigation appearance tokens come directly from that template plus explicit visualStyle.tokens; mode-independent tokens such as --pod-nav-menu-item-selected-shadow flow through the base token contract; materialize does not synthesize a light/dark replacement palette. Free creative uses project-authored navigation tone and tokens. Validates image slots before writing artifacts. JSON assetTasks lists taskKey/taskState, independent searches ordered by required/hero/design order, collection-wide concurrency, host-enforced time budgets, two-round limits, resume policy, output paths and resolve argv. After matching plan confirmation, executionContract requires checking background Agent and Bash separately, dispatching only verified nonblocking tools or doing authorized business work before synchronous asset batches; record real job IDs and continue app/form/page work; replace <appType> with the real ID for upload. Materialized PRD execution pages include navigationPolicy derived from app/page navigation: platform-shell is content-only; standalone without a planned menu renders no application menu. This command performs no search or upload. Local asset inputs resolve against the command cwd; absolute paths survive page-task directory changes.'],
|
|
1376
1372
|
resultReuse: { mode: 'local_input_dependent', inputs: ['buildPlan', 'businessFile', 'visualFile', 'preview'], onInputChange: 'rerun_after_known_success', writes: 'local_artifacts_only' },
|
|
1377
1373
|
requiresLogin: false,
|
|
1378
1374
|
output: 'text|json',
|
|
@@ -1757,12 +1753,20 @@ const COMMAND_GROUPS = [
|
|
|
1757
1753
|
examples: ['openyida form-message options APP_XXX FORM_XXX --json', 'openyida form-message create APP_XXX FORM_XXX --config message.json --json'],
|
|
1758
1754
|
notes: ['Manages native form-level message notification bindings, not application settings, custom-page messaging or integration automation. list and inspect preserve native configurations. create and update currently support verified immediate events for ordinary forms and seven native templates; scheduled and process-node writes are rejected until their rule and process context can be verified. The platform exposes no independent enable/disable state, so deletion is the only supported removal action and requires --yes plus the current inspect hash. Writes back up first, detect concurrent changes and require readback; requests are never replayed automatically. Saving a binding does not send a test message or prove delivery. See docs/guides/form-messages.md.'],
|
|
1759
1755
|
}),
|
|
1760
|
-
command('get-schema', ['get-schema'], 'get-schema <appType> <formUuid|--all> [--summary-json|--field-map-json|--analysis-json]', 'help.cmd_get_schema', { managedRun: { scope: 'app', appPosition: 0 },
|
|
1756
|
+
command('get-schema', ['get-schema'], 'get-schema <appType> <formUuid|--all> [--summary-json|--field-map-json|--analysis-json]', 'help.cmd_get_schema', { taskConcurrency: {'kind':'read','forbiddenFlags':['--output-dir','--output','-o']}, managedRun: { scope: 'app', appPosition: 0 },
|
|
1761
1757
|
examples: ['openyida get-schema APP_XXX FORM_XXX --field-map-json'],
|
|
1762
1758
|
}),
|
|
1763
|
-
command('check-prd-completeness', ['check-prd-completeness'], 'check-prd-completeness <prd.md> --app-type <appType> [--build-manifest <file>] [--json]', 'help.cmd_check_prd_completeness', { managedRun: { scope: 'app', appParser: 'prd-completeness' },
|
|
1759
|
+
command('check-prd-completeness', ['check-prd-completeness'], 'check-prd-completeness [<prd.md> | --build-spec <build-context.json> | --manifest-only] --app-type <appType> [--build-manifest <file>] [--json]', 'help.cmd_check_prd_completeness', { managedRun: { scope: 'app', appParser: 'prd-completeness' },
|
|
1760
|
+
args: [
|
|
1761
|
+
{ name: 'prd', type: 'file', source: 'positional', position: 0, description: 'Plan/legacy PRD. Mutually exclusive with --build-spec.' },
|
|
1762
|
+
{ name: 'buildSpec', type: 'file', source: 'option', builder_options: ['--build-spec'], description: 'Optional legacy Fast context; mutually exclusive with PRD/--manifest-only.' },
|
|
1763
|
+
{ name: 'manifestOnly', type: 'boolean', source: 'option', builder_options: ['--manifest-only'], description: 'Fast final check with actual build-manifest resource IDs and optional applicationTheme/navigationVisibility. Requires --build-manifest; no prebuild JSON or PRD needed.' },
|
|
1764
|
+
{ name: 'appType', type: 'string', source: 'option', builder_options: ['--app-type', '--appType', '--app_type'], required: true },
|
|
1765
|
+
{ name: 'buildManifest', type: 'file', source: 'option', builder_options: ['--build-manifest', '--manifest'] },
|
|
1766
|
+
{ name: 'json', type: 'boolean', source: 'option', builder_options: ['--json'] },
|
|
1767
|
+
],
|
|
1764
1768
|
output: 'json',
|
|
1765
|
-
notes: ['Checks resource counts and optional build-manifest.assetExecution recorded intervals. Include materialize.assetTasks and taskState records plus businessWork startedAt/endedAt; missing dispatch proof, missing overlap or assets before business in synchronous fallback produces needs_review. This is record consistency, not independent verification of host events.', 'When the PRD execution handoff contains navigationVisibility, resolves frontend display pages through build-manifest resource IDs and checks PC/mobile menu hiding using the same remote resource-list read. A visible menu fails; unknown visibility or missing ID binding needs review. Checks PRD applicationTheme against live application settings: selected brand color, custom CSS enabled with a resource URL, and navigation tone. Mismatch fails; unreadable settings or invalid expectations need review. Reuses update-app readback field handling. Does not verify page renderNav, actual CSS content/loading, default routes or browser appearance.'],
|
|
1769
|
+
notes: ['Fast uses --manifest-only --build-manifest <file> for final readback after resources exist; no planning document or prebuild spec is required. This reads actual resource IDs and optional applicationTheme/navigationVisibility; it does not prove business rules or role enforcement.', 'Legacy Fast accepts --build-spec build-context.json instead of Markdown; the inputs are mutually exclusive. Uses resources/pages, navigationVisibility and applicationTheme with the same live readback and build-manifest checks. Declared roles, fields and business rules do not prove implementation or authorization.', 'Checks resource counts and optional build-manifest.assetExecution recorded intervals. Include materialize.assetTasks and taskState records plus businessWork startedAt/endedAt; missing dispatch proof, missing overlap or assets before business in synchronous fallback produces needs_review. This is record consistency, not independent verification of host events.', 'When the PRD execution handoff contains navigationVisibility, resolves frontend display pages through build-manifest resource IDs and checks PC/mobile menu hiding using the same remote resource-list read. A visible menu fails; unknown visibility or missing ID binding needs review. Checks PRD applicationTheme against live application settings: selected brand color, custom CSS enabled with a resource URL, and navigation tone. Mismatch fails; unreadable settings or invalid expectations need review. Reuses update-app readback field handling. Does not verify page renderNav, actual CSS content/loading, default routes or browser appearance.'],
|
|
1766
1770
|
}),
|
|
1767
1771
|
command('check-design', ['check-design'], 'check-design <design.md> [--prd <prd.md>] [--base-dir <dir>] [--json]', 'help.cmd_check_design', { managedRun: { scope: 'local' },
|
|
1768
1772
|
requiresLogin: false,
|
|
@@ -1798,7 +1802,7 @@ const COMMAND_GROUPS = [
|
|
|
1798
1802
|
],
|
|
1799
1803
|
}),
|
|
1800
1804
|
command('build-page', ['build-page'], 'build-page <sourceFile> [--output file|--write]', 'help.cmd_build_page', { managedRun: { scope: 'local' }, requiresLogin: false }),
|
|
1801
|
-
command('check-page', ['check-page'], 'check-page <src> [--compat] [--json]', 'help.cmd_check_page', { managedRun: { scope: 'local' },
|
|
1805
|
+
command('check-page', ['check-page'], 'check-page <src> [--compat] [--json]', 'help.cmd_check_page', { taskConcurrency: { kind: 'page', sourcePosition: 0 }, managedRun: { scope: 'local' },
|
|
1802
1806
|
requiresLogin: false,
|
|
1803
1807
|
output: 'text|json',
|
|
1804
1808
|
args: [
|
|
@@ -1808,7 +1812,7 @@ const COMMAND_GROUPS = [
|
|
|
1808
1812
|
],
|
|
1809
1813
|
notes: ['Local source validation, including form-open-container checks for recognized form links and drawer structure. Fails with CHECK_PAGE_FAILED and per-rule diagnostics. Dynamic interactions still require runtime verification.'],
|
|
1810
1814
|
}),
|
|
1811
|
-
command('compile', ['compile'], 'compile <src> [--canvas] [--compat] [--skip-lint] [--strict-theme|--allow-fixed-brand] [--json]', 'help.cmd_compile', { managedRun: {'scope':'local'},
|
|
1815
|
+
command('compile', ['compile'], 'compile <src> [--canvas] [--compat] [--skip-lint] [--strict-theme|--allow-fixed-brand] [--json]', 'help.cmd_compile', { taskConcurrency: {'kind':'page','sourcePosition':0}, managedRun: {'scope':'local'},
|
|
1812
1816
|
requiresLogin: false,
|
|
1813
1817
|
output: 'text|json',
|
|
1814
1818
|
args: [
|
|
@@ -1822,7 +1826,7 @@ const COMMAND_GROUPS = [
|
|
|
1822
1826
|
],
|
|
1823
1827
|
notes: ['Local validation failures include repair.inputHash/errorHash. Do not retry unchanged inputs and arguments; stop after two repair attempts with the same error set. CLI reports diagnostics without persisting retry counters.', 'Canvas compilation checks theme provider mounting, theme reads before the provider is active, module-level theme context declarations, fixed ConfigProvider brand colors, and known navigation destinations missing appType. Extract canvas-theme and canvas-navigation before coding. Form actions also require the maintained form-open-container fragment, hook and rendered container. Fixed brand colors remain in the source and are returned in warnings even with --json; --strict-theme blocks them and --allow-fixed-brand preserves them. These flags are Canvas-only and mutually exclusive. Dynamic colors, resource identity and runtime rendering still require verification.'],
|
|
1824
1828
|
}),
|
|
1825
|
-
command('publish', ['publish'], 'publish <src> <appType> <formUuid> [--health-check] [--force] [--canvas] [--compat] [--skip-lint] [--fix-theme] [--strict-theme] [--allow-fixed-brand] [--auto-nav-order] [--open|--no-open] [--json]', 'help.cmd_publish', { managedRun: {'scope':'app','appPosition':1,'sourcePosition':0,'mutation':{'operation':'publish_page','formUuidPosition':2}},
|
|
1829
|
+
command('publish', ['publish'], 'publish <src> <appType> <formUuid> [--health-check] [--force] [--canvas] [--compat] [--skip-lint] [--fix-theme] [--strict-theme] [--allow-fixed-brand] [--auto-nav-order] [--open|--no-open] [--json]', 'help.cmd_publish', { taskConcurrency: {'kind':'page','sourcePosition':0,'appPosition':1,'formPosition':2,'forbiddenFlags':['--auto-nav-order','--open']}, managedRun: {'scope':'app','appPosition':1,'sourcePosition':0,'mutation':{'operation':'publish_page','formUuidPosition':2}},
|
|
1826
1830
|
args: [
|
|
1827
1831
|
{ name: 'src', type: 'file', source: 'positional', position: 0, required: true },
|
|
1828
1832
|
{ name: 'appType', type: 'string', source: 'positional', position: 1, required: true },
|
|
@@ -1852,7 +1856,7 @@ const COMMAND_GROUPS = [
|
|
|
1852
1856
|
],
|
|
1853
1857
|
notes: ['The page write API accepts isRenderNav; keep reads renderNav first and falls back to the returned isRenderNav only when renderNav is absent. URL isRenderNav is a separate per-open parameter, not persistence evidence. A successful write acknowledgement is not navigation readback. Follow with get-form-config <appType> <formUuid> --json; inspect renderNav, falling back to isRenderNav only when renderNav is absent.'],
|
|
1854
1858
|
}),
|
|
1855
|
-
command('get-form-config', ['get-form-config'], 'get-form-config <appType> <formUuid> [--json]', 'help.cmd_get_form_config', { managedRun: { scope: 'app', appPosition: 0 },
|
|
1859
|
+
command('get-form-config', ['get-form-config'], 'get-form-config <appType> <formUuid> [--json]', 'help.cmd_get_form_config', { taskConcurrency: {'kind':'read'}, managedRun: { scope: 'app', appPosition: 0 },
|
|
1856
1860
|
output: 'json',
|
|
1857
1861
|
args: [
|
|
1858
1862
|
{ name: 'appType', type: 'string', source: 'positional', position: 0, required: true },
|
|
@@ -1899,7 +1903,10 @@ const COMMAND_GROUPS = [
|
|
|
1899
1903
|
} },
|
|
1900
1904
|
output: 'json',
|
|
1901
1905
|
noteKeys: ['help.data_notes', 'query_data.approver_query_help'],
|
|
1906
|
+
args: [{ name: 'verifyWrite', type: 'boolean', source: 'option', builder_options: ['--verify-write'],
|
|
1907
|
+
description: 'Ordinary form create/update only: live-schema payload preflight and submitted-field readback after one write.' }],
|
|
1902
1908
|
notes: [
|
|
1909
|
+
'--verify-write is opt-in for ordinary form create/update. It validates supplied field IDs, optional configured aliases, scoped subform references and supported value formats before writing, then reads the same instance and compares submitted fields. Labels are suggestions only; ambiguous aliases and unsupported formats fail before writing. ID/count alone is not field verification. Readback failure or mismatch exits nonzero, preserves partial.formInstId/candidateIds and mutationAccepted, and never repeats the write. Existing identity/permission gates and managed-run scope remain unchanged. Verification covers submitted business values, not all application acceptance criteria or server-side business rules.',
|
|
1903
1910
|
'Ordinary form updates read record edit permission and native edit-schema field behaviors before writing. Only verified NORMAL fields are accepted; readonly, hidden, disabled, unknown or dynamically unverifiable fields reject the entire update. Restricted subform replacements require the native editor. This CLI preflight does not replace server-side authorization.',
|
|
1904
1911
|
'Application tasks: data query tasks <appType> --type todo|created|done|cc [--normalized] [--transport app-v1|app-query]. submitted remains an alias of created. --normalized returns items/total/page/pageSize with native detail targets; an unknown total is null. app-v1 is the compatible default; only cc adds --process-codes and --instance-status. Explicit app-query fixes appKeys to the target app and supports the per-kind filters in task-center capabilities: --originators, --process-codes, --instance-create-from/to, --task-create-from/to, --task-finish-from/to, --carbon-create-from/to. Date values are Unix milliseconds. Unsupported filters and caller scope/identity overrides are rejected; transports never silently fall back.',
|
|
1905
1912
|
'Each condition uses key (field ID), componentName, type, operator and value. Query types: TextField/TextareaField/TableField TEXT; NumberField/RateField/DateField/CascadeDateField DOUBLE; RadioField/SelectField/CheckboxField/MultiSelectField/DepartmentSelectField ARRAY; EmployeeField/CascadeSelectField/CitySelectField STRING; ImageField/AttachmentField TEXT.',
|
|
@@ -2120,11 +2127,12 @@ const COMMAND_GROUPS = [
|
|
|
2120
2127
|
output: 'text|json',
|
|
2121
2128
|
}),
|
|
2122
2129
|
command('copy', ['copy'], 'copy [--force]', 'help.cmd_copy', { managedRun: {'scope':'denied','reason':'scope_not_audited'}, requiresLogin: false }),
|
|
2123
|
-
command('sample', ['sample'], 'sample [--list] [<skill> <name>] [--output <file-or-directory>] [--var KEY=VALUE ...] [--design-file <design.md>] [--style-id <themeId|free-creative>] [--theme-ids <id,...>] [--pop-art-context <explicit-request|showcase>]', 'help.cmd_sample', { managedRun: { scope: 'local' },
|
|
2130
|
+
command('sample', ['sample'], 'sample [--list] [<skill> <name>] [--output <file-or-directory>] [--var KEY=VALUE ...] [--design-file <design.md>] [--spec-file <spec.json>] [--primary-color <color>] [--tokens-file <theme.json>] [--nav-theme light|dark] [--check] [--style-id <themeId|free-creative>] [--theme-ids <id,...>] [--pop-art-context <explicit-request|showcase>]', 'help.cmd_sample', { managedRun: { scope: 'local' },
|
|
2124
2131
|
requiresLogin: false,
|
|
2125
2132
|
output: 'text|json',
|
|
2126
2133
|
notes: [
|
|
2127
2134
|
'openyida sample yida-data-management empty-query --output <file.js> emits buildEmptyConditions, buildCountConditions and countFilledRangeEndpoints. Use current schema field IDs and explicit range modes. Returned arrays work with --search-json or page searchFormDatas. The template performs no query, schema change or count maintenance.',
|
|
2135
|
+
'openyida-page-template canvas-data-source emits a read-only same-origin form-query bridge, strict page response normalizer and useCanvasFormData hook. Supply verified JSON app/form bindings and business field mappings; no seed fallback or total invented from page length. Paging is 1..100 rows, refresh preserves current rows, timeout/unmount/configuration changes ignore late replies. Bridge requests are not transport-cancelled. Unknown response shapes fail visibly. Merge the fragment into one Canvas file and retain business UI; extraction performs no platform request or publish.',
|
|
2128
2136
|
'On explicit preview requests only: openyida sample yida-design theme-preview --theme-ids <comma-separated-ids> --output <preview.html> --json generates a standalone read-only HTML gallery on any host. Displays all requested eligible themes, titles and images only, four to six columns on desktop with responsive wrapping and unlimited rows; refuses existing files. Named templates reuse the exact catalog previewImage URL; generated cards render without scripts. Returns attachment and presentation metadata: show HTML cards in the conversation and include result.attachment in the same ask_human attachments when selection is needed. A browser tab or bare link alone is not inline delivery; preview-only requests do not create a choice. No selection buttons. app-pop requires --pop-art-context explicit-request|showcase with actual task evidence; absent evidence, exclude it from recommendations, choices and previews.',
|
|
2129
2137
|
'Optional read-only QwenWork preview, only on explicit user request: run openyida sample yida-design theme-selector --json to prepare only the preview HTML in the host skills directory. No bridge submission; selection always uses ask_human. Pass result.widget_path unchanged to qoder_show_widget; it is relative to result.skillsRoot, not result.outputPath or a repository path. This sample does not accept --output, --var, --design-file or --style-id.',
|
|
2130
2138
|
'yida-design app-theme reads concrete tokens from --design-file and writes CSS plus a sibling <output>.tokens.md update snapshot. The same output path preserves project CSS and applies changed tokens. Without --design-file it resets the output to the public base template. Menu radius, normal/hover/selected borders and selected shadow apply to side, L-shaped and top navigation; only legacy/shared-skeleton CSS gains missing menu-shape rules. Named templates preserve paired CSS declarations and selectors, instantiate brand placeholders and apply project deltas without auto-adding navigation rules or color-group.',
|
|
@@ -2137,6 +2145,8 @@ const COMMAND_GROUPS = [
|
|
|
2137
2145
|
'form-fields demonstrates field layout, not a default divider design. Choose dividerType for the current business page before creating forms; keep same-level sections consistent and vary different business pages when appropriate.',
|
|
2138
2146
|
'openyida-page-template canvas-theme outputs the same provider as a reusable fragment; combine its imports and code with the business page in one Canvas file, keeping its scoped loading-mask style. Existing pages must update their provider and be republished; changing application theme CSS alone does not upgrade embedded provider code.',
|
|
2139
2147
|
'openyida-page-template form-open-container extracts the maintained Canvas form drawer. Merge its imports, CanvasDrawer, FormOpenContainer, useYidaFormOpen and helpers; bind openForm(request) and render formOpenContainer. Do not replace it with a similarly named custom drawer.',
|
|
2148
|
+
'Fast starts app creation as soon as name, scope and authorization are clear. Independently run sample yida-app fast-theme --style-id <themeId> --primary-color <color> --output <app_theme.css>. It generates only CSS using theme tokens, brand and palette checks; never calls the Plan renderer or validates business/page JSON. --check writes nothing; identical output is reused and changed existing output is protected. free-creative accepts --tokens-file with theme-only tokens/creativeDirection and --nav-theme; app-pop still requires actual --pop-art-context evidence. Explicit theme-file prohibition skips this task. fast-build/fast-spec remain optional legacy helpers, never a create-app prerequisite; fast-build errors include the complete structured repair list by default and accept --json. Use absolute paths and consume complete output without pipes or head/tail.',
|
|
2149
|
+
'Legacy/manual document export only: yida-design fast-spec copies the compact project-design input example. yida-design document --spec-file generates a complete validated Fast design.md through the shared theme renderer without a Plan revision, confirmation or business writes. It requires actual page decisions and explicit asset strategy, preserves required-image validation and palette contrast, and refuses to overwrite existing output. Returns scene references and next CLI argv; apply the normal PRD cross-check before implementation.',
|
|
2140
2150
|
'canvas-admin-entry includes canvas-navigation and a theme-aware business-workbench button. For service-management apps, consider a role-aware secondary frontend-to-management shortcut by default (header actions, profile menu or existing navigation), reusing an equivalent entry when present. This is design guidance only: no new required fields, validator or publish gate. The built-in flag supports app-manager identity, not arbitrary business roles; those need the project current-viewer permission adapter. Use the verified registered management destination, never developer admin. Visibility uses the current app-scoped loginUser.isAppAdmin flag (y/true only), matching g_config/pageConfig app identity with conflicts kept unknown, never CLI identities or a copied admin list. Configure a verified business page ID; unknown identity stays hidden and backend authorization remains authoritative.',
|
|
2141
2151
|
'canvas-view-state restores the current local task view, allowlisted non-sensitive enum filters and page through URL state, preserving unrelated query/hash/history metadata. Use only without an existing router or unsaved-edit blockers; drafts, per-task caches and scroll need explicit policies. Verify iframe refresh/return behavior in the host. Business writes require verified server-side role, record, field and state-transition authorization; hidden buttons do not grant or enforce it.',
|
|
2142
2152
|
'Extract canvas-theme before antd UI and canvas-navigation before cross-page actions; use verified target types and resource IDs. Local tabs use state. Compile/publish reject known app-prefix omissions and fixed ConfigProvider brand colors; runtime theme and destination verification is still required.',
|
|
@@ -2145,12 +2155,17 @@ const COMMAND_GROUPS = [
|
|
|
2145
2155
|
{ name: 'skill', type: 'string', source: 'positional', position: 0, description: 'Required when copying a sample.' },
|
|
2146
2156
|
{ name: 'name', type: 'string', source: 'positional', position: 1, description: 'Required when copying a sample; use --list for available names.' },
|
|
2147
2157
|
{ name: 'list', type: 'boolean', source: 'option', builder_options: ['--list'] },
|
|
2148
|
-
{ name: 'pop-art-context', type: 'string', source: 'option', builder_options: ['--pop-art-context'], description: 'theme-preview
|
|
2158
|
+
{ name: 'pop-art-context', type: 'string', source: 'option', builder_options: ['--pop-art-context'], description: 'theme-preview/fast-theme: app-pop requires explicit-request (user specifically asked for pop art) or showcase (primary task is presentation). Never infer from generic all-styles requests, dashboards or portals; use actual task evidence.' },
|
|
2149
2159
|
{ name: 'theme-ids', type: 'string', source: 'option', builder_options: ['--theme-ids'], description: 'theme-preview only: comma-separated eligible theme IDs in requested order; required, no duplicates. No limit on preview count or rows.' },
|
|
2150
|
-
{ name: 'output', type: 'file', source: 'option', builder_options: ['--output'], description: 'Output file for ordinary samples/app-theme/theme-preview; output directory for application-style.
|
|
2160
|
+
{ name: 'output', type: 'file', source: 'option', builder_options: ['--output'], description: 'Output file for ordinary samples/app-theme/theme-preview/fast-theme; output directory for application-style or yida-app fast-build. Ordinary samples default under cwd/.cache/samples; fast-theme defaults to .cache/openyida/app_theme.css; fast-build defaults to .cache/openyida/fast-app; application-style defaults to its application-style subdirectory and rejects an existing bundle file. Not accepted by theme-selector; its destination is resolved from the active QwenWork host skills roots.' },
|
|
2151
2161
|
{ name: 'var', type: 'string', source: 'option', builder_options: ['--var'], repeatable: true, description: 'Ordinary sample assignment KEY=VALUE; repeat --var for multiple variables. Not accepted by yida-design app-theme, application-style, theme-preview or theme-selector; complete design.md before generating theme CSS.' },
|
|
2152
2162
|
{ name: 'designFile', type: 'file', source: 'option', builder_options: ['--design-file'], description: 'Only for yida-design app-theme: completed design.md with concrete tokens. Optional for a base-template reset; supply it to generate or incrementally update project CSS.' },
|
|
2153
|
-
{ name: '
|
|
2163
|
+
{ name: 'check', type: 'boolean', source: 'option', builder_options: ['--check'], description: 'yida-app fast-theme/fast-build: validate the selected local operation without writing files.' },
|
|
2164
|
+
{ name: 'primaryColor', type: 'string', source: 'option', builder_options: ['--primary-color'], description: 'fast-theme only: project brand color; normalized by the CLI.' },
|
|
2165
|
+
{ name: 'tokensFile', type: 'file', source: 'option', builder_options: ['--tokens-file'], description: 'fast-theme only: optional theme token overrides and creativeDirection, no business/pages/Plan JSON.' },
|
|
2166
|
+
{ name: 'navTheme', type: 'string', source: 'option', builder_options: ['--nav-theme'], description: 'fast-theme free-creative only: light or dark navigation; named themes derive the tone.' },
|
|
2167
|
+
{ name: 'specFile', type: 'file', source: 'option', builder_options: ['--spec-file'], description: 'Optional legacy yida-app fast-build input (build-context.json/CSS), or yida-design document input (design.md). Never needed for immediate Fast app creation or fast-theme. Uses name/themeId/primaryColor/direction/navigation/pages/assetStrategy; use the corresponding fast-spec example.' },
|
|
2168
|
+
{ name: 'styleId', type: 'string', source: 'option', builder_options: ['--style-id'], description: 'For yida-design application-style or yida-app fast-theme. Accepts any themeId from design-plan catalog, including shared themes and free-creative. Exports design.md, app_theme.css and form-layout.json with brand placeholders; accepts neither --design-file nor --var.' },
|
|
2154
2169
|
],
|
|
2155
2170
|
}),
|
|
2156
2171
|
command('doctor', ['doctor'], 'doctor [--fix]', 'help.cmd_doctor', { managedRun: { scope: 'denied', reason: 'scope_not_audited' }, requiresLogin: false }),
|
|
@@ -2190,8 +2205,10 @@ const COMMAND_GROUPS = [
|
|
|
2190
2205
|
// The parser distinguishes read-only setup from a separately confirmed installation.
|
|
2191
2206
|
notes: ['github setup [--json] detects gh and verifies the current account without installing or logging in. github setup --install --confirm performs one user-approved installation via existing Homebrew (macOS/Linux) or WinGet (Windows), then checks gh again. No manager bootstrap, source changes, automatic retry, upgrade, or automatic login; unsupported environments use official instructions or the web. Browser authorization requires separate consent and public submission still requires content review. report prepares local review drafts only; no login, source checkout, update check or network submission. github status [--json] checks the authenticated github.com user, Star and personal Fork through an existing gh installation; it performs no writes. github star|fork --confirm [--json] requires the user to explicitly choose that account action. Missing gh/login, unknown status and declined actions never block Issue submission. Already applied actions are reused; writes are single-attempt with readback. No auto-update/install hook, Issue submission, clone or git remote modification. Managed runs permit only offline report preparation.'],
|
|
2192
2207
|
}),
|
|
2193
|
-
command('batch', ['batch'], 'batch <file>|--commands "cmd1 ; cmd2" [--stop-on-error] [--json]', 'help.cmd_batch', { managedRun: { scope: 'denied', reason: 'scope_not_audited' },
|
|
2208
|
+
command('batch', ['batch'], 'batch <file>|--commands "cmd1 ; cmd2" [--concurrency 1..4] [--stop-on-error] [--json]', 'help.cmd_batch', { managedRun: { scope: 'denied', reason: 'scope_not_audited' },
|
|
2194
2209
|
output: 'text|json',
|
|
2210
|
+
args: [{ name: 'concurrency', type: 'integer', source: 'option', builder_options: ['--concurrency'], description: 'Independent ready-task limit, 1..4; defaults to 1.' }],
|
|
2211
|
+
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.'],
|
|
2195
2212
|
}),
|
|
2196
2213
|
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' },
|
|
2197
2214
|
requiresLogin: false,
|
|
@@ -2201,11 +2218,13 @@ const COMMAND_GROUPS = [
|
|
|
2201
2218
|
}),
|
|
2202
2219
|
command('asset', ['asset'], 'asset <status|resolve|sources> [options]', 'help.cmd_asset', { managedRun: { scope: 'actions', actions: { status: { scope: 'local' }, sources: { scope: 'local' }, resolve: { scope: 'app', appOption: '--app-type' } } },
|
|
2203
2220
|
noteKeys: ['asset.sourceRecords'],
|
|
2204
|
-
notes: ['resolve --page-id <pageId> selects a page from --design or input assetStrategy; output contains only that page. Use distinct --manifest paths for concurrent page jobs. Host search follows collection_policy; resolve performs one attempt per supplied candidate. Verified hotlink-allowed URLs are delivered directly without login or appType. Draft assets accept hotlinkAllowed/rehostAllowed booleans and deliveryMode=auto|upload. Stock CDN URLs allow hotlinking by default; Unsplash requires hotlinking unless separate rehosting permission is recorded. --upload-assets requests permitted hosting; upload failure keeps only a verified hotlink-allowed original URL.'],
|
|
2221
|
+
notes: ['resolve --page-id <pageId> selects a page from --build-spec (Fast), --design (Plan/legacy), or input assetStrategy; output contains only that page. Use distinct --manifest paths for concurrent page jobs. Host search follows collection_policy; resolve performs one attempt per supplied candidate. Verified hotlink-allowed URLs are delivered directly without login or appType. Draft assets accept hotlinkAllowed/rehostAllowed booleans and deliveryMode=auto|upload. Stock CDN URLs allow hotlinking by default; Unsplash requires hotlinking unless separate rehosting permission is recorded. --upload-assets requests permitted hosting; upload failure keeps only a verified hotlink-allowed original URL.'],
|
|
2205
2222
|
args: [
|
|
2206
|
-
{ name: 'pageId', type: 'string', source: 'option', builder_options: ['--page-id'], description: 'Resolve only this page
|
|
2223
|
+
{ name: 'pageId', type: 'string', source: 'option', builder_options: ['--page-id'], description: 'Resolve only this page from build-spec, design or input assetStrategy.' },
|
|
2224
|
+
{ name: 'buildSpec', type: 'file', source: 'option', builder_options: ['--build-spec'], description: 'resolve only: optional existing Fast context; new Fast may put assetStrategy directly in its input draft. Mutually exclusive with --design.' },
|
|
2207
2225
|
{ name: 'appType', type: 'string', source: 'option', builder_options: ['--app-type'], description: 'Target application for uploads; direct URLs need no application.' },
|
|
2208
2226
|
{ name: 'uploadAssets', type: 'boolean', source: 'option', builder_options: ['--upload-assets'], description: 'Request hosting where rehosting is allowed; otherwise use verified direct URLs by default.' },
|
|
2227
|
+
{ name: 'deadlineAt', type: 'string', source: 'option', builder_options: ['--deadline-at'], description: 'Shared absolute ISO deadline across page jobs and retries; caps image requests and prevents new uploads after expiry. Already dispatched uploads retain their receipts. Expired CLI calls preserve existing manifests. Asset gaps block final image acceptance, not page implementation or preview.' },
|
|
2209
2228
|
],
|
|
2210
2229
|
requiresLogin: false,
|
|
2211
2230
|
output: 'text|json',
|
|
@@ -2244,6 +2263,7 @@ function localizeCommand(entry, translate) {
|
|
|
2244
2263
|
...(entry.resultReuse ? { result_reuse: cloneJsonMetadata(entry.resultReuse, null) } : {}),
|
|
2245
2264
|
hidden: entry.hidden,
|
|
2246
2265
|
managed_run: cloneJsonMetadata(entry.managedRun, null),
|
|
2266
|
+
...(entry.taskConcurrency ? { task_concurrency: cloneJsonMetadata(entry.taskConcurrency, null) } : {}),
|
|
2247
2267
|
side_effect: cloneSideEffect(entry.sideEffect),
|
|
2248
2268
|
permission: clonePermission(entry.permission),
|
|
2249
2269
|
};
|
|
@@ -2329,6 +2349,18 @@ function summarizeLocalizedCommands(commands) {
|
|
|
2329
2349
|
default_ui_guidance_skill_id: 'yida-design',
|
|
2330
2350
|
requirement_analysis_skill_id: 'yida-requirement-analysis',
|
|
2331
2351
|
requirement_brief_path: '.cache/openyida/<project>/requirement-brief.json',
|
|
2352
|
+
fast_build: {
|
|
2353
|
+
scope: 'Fast_only',
|
|
2354
|
+
workflow_file: 'yida-skills/skills/yida-app/workflow/fast-build.md',
|
|
2355
|
+
reading_policy: 'Fast only: read workflow_file, then operation skills/required references on demand; reuse receipts. Do not traverse the nine stage workflows. Other modes unchanged.',
|
|
2356
|
+
parallel_policy: 'Use actual host tools and task_concurrency for ready app/theme/layout, resources and pages. Use available subagents; continue ready work until dependencies; serialize shared writes and unaudited commands. Join before navigation/delivery; record handles/timing/fallback; preserve managed admission.',
|
|
2357
|
+
create: 'Create/reuse app immediately once name, scope and authorization are known. No prebuild Plan, design, context or full JSON check.',
|
|
2358
|
+
theme: 'sample yida-app fast-theme --style-id <themeId> --primary-color <color> --output <app_theme.css>',
|
|
2359
|
+
outputs: ['app_theme.css'],
|
|
2360
|
+
business_checks: 'Validate form fields, data, permissions, approvals and publishing at their owning operations. Failures block only dependent work.',
|
|
2361
|
+
final_check: 'check-prd-completeness --manifest-only --build-manifest <file> --app-type <appType> --json',
|
|
2362
|
+
legacy: 'fast-build/fast-spec are optional existing-file helpers only.',
|
|
2363
|
+
},
|
|
2332
2364
|
visual_decision_policy: getVisualDecisionPolicy(),
|
|
2333
2365
|
user_visible_expression_policy: {
|
|
2334
2366
|
reference: 'yida-skills/skills/yida-design/references/ask-human-interaction-contract.md',
|
|
@@ -2360,7 +2392,7 @@ function summarizeLocalizedCommands(commands) {
|
|
|
2360
2392
|
trigger: 'Any page is imageNeed=required, or imageNeed=beneficial with declared image slots.',
|
|
2361
2393
|
output_path: 'prd/<project>/asset-manifests/<pageId>.json',
|
|
2362
2394
|
skip: 'All pages are imageNeed=none.',
|
|
2363
|
-
dependency_policy: 'After Plan confirmation, dispatch materialize.assetTasks through host background tools, record actual task IDs in taskState and continue app/form/page creation, layout, data binding and interactions. Fast
|
|
2395
|
+
dependency_policy: 'After Plan confirmation, dispatch materialize.assetTasks through host background tools, record actual task IDs in taskState and continue app/form/page creation, layout, data binding and interactions. Fast uses only a page asset draft with assetStrategy and --input, without creating a business context. Existing contexts may still pass --build-spec. Reattach running tasks; preserve deadlines and used rounds on resume. Use scheduling_policy for collection-wide concurrency, priorities and host-enforced budgets. One writer owns each page draft/manifest. Verify direct URLs as each page draft becomes ready; uploads additionally need appType. Read results at own-page image binding, waiting only after independent work. Check background_agent and background_shell independently. QwenWork may use Bash run_in_background only when the actual tool schema supports it; synchronous Agent calls are not background dispatch. Without usable background execution, perform authorized resource/seed/independent page work first, then bounded asset batches. Record dispatch return and business start/end intervals in build-manifest.assetExecution for check-prd-completeness; never claim overlap from task names alone.',
|
|
2364
2396
|
},
|
|
2365
2397
|
artifact_generation: {
|
|
2366
2398
|
mode: 'parallel',
|
|
@@ -2419,13 +2451,14 @@ function summarizeLocalizedCommands(commands) {
|
|
|
2419
2451
|
plan_command_ids: ['design-plan.catalog', 'design-plan.init', 'design-plan.preview', 'design-plan.materialize', 'design-plan.patch'],
|
|
2420
2452
|
plan_confirmation_policy: confirmationPolicy,
|
|
2421
2453
|
theme_command_ids: ['sample', 'create-app', 'update-app'],
|
|
2454
|
+
link_presentation_gate: buildLinkPresentationCompletionGate(),
|
|
2422
2455
|
navigation_command_ids: { platform: ['update-app', 'nav-group'], custom: ['update-app', 'update-form-config', 'get-form-config'] },
|
|
2423
2456
|
navigation_policy: 'Before PRD planning in Fast and Plan, the agent determines navigation ownership and layout from business context. Follow yida-design/references/navigation-decision.md for entry and layout decisions. Preserve explicit user requirements and existing navigation for local changes; resource-only requests operate on their specified resources and settings. Use native navigation by default for the application workspace, and custom navigation only for an explicitly justified application-level branded menu or special navigation interaction. A service frontend defaults to one coding page with its own menu and all selected business views; a single-step entry can use navigation.type=none. Choose backend native or coding pages by task efficiency. Backend coding pages in platform-shell are content-only: platform menus own cross-module navigation; local Tabs cover categories or states of the current task only. Never turn the management entry menu into a second page navbar, sidebar or module Tabs. Persistent filters/state alone do not justify custom application navigation. Plan handoff pages include derived navigationPolicy; Fast records the same boundary. Do not hide platform navigation to repair duplicate page menus. Store application navigation in navigationType and standalone entry menus in pageSpecHandoff.navigation. Configure a custom frontend menu at page scope and preserve workspace navigation. Record type/source/reason/variant using ai_default for agent ownership decisions and user_selected for explicit user requirements. Include navigation in the overall Plan confirmation; Fast implements the recorded decision. Platform navigation uses update-app --layout top|side|l_shape --show-app-nav, persisting layoutDirection and hideAppNav=n. Preserve stored navType. For appThemeEnable=n or appThemeMode=legacy, persist side/top/l_shape as ver/hoz/ver and white/gray as light; without --layout preserve stored slide/ver/hoz. For modern or unknown capability, normalize layoutDirection and navType using the existing application layout compatibility rules (hoz plus top_side means l_shape; missing layout uses top_fold/top_side for top/l_shape). Apply shell top_fold/none overrides at page scope. Application-wide custom side/top/mixed/dock uses app hiding plus per-page hiding within scope; a standalone frontend in a platform-navigation app uses only page configuration. Read back layoutDirection, hideAppNav and each configured page, then verify the planned frontend and workspace links. Navigation structure is separate from tone. Navigation tone is derived from the final selected theme template, never guessed from the business brief or implicitly defaulted to light; apply that explicit value with update-app --nav-theme. Custom top navigation defaults to edge-to-edge, not floating. Over a hero image, start transparent, add a surface on scroll, restore transparency at the top; expanded menus stay readable. Follow yida-design/references/page-continuity.md; floating requires an explicit design.',
|
|
2424
|
-
design_mode_policy: 'Analyze requirements first with yida-requirement-analysis: read only necessary sources before the first question, offer concrete core-function candidates, clarify key usage, and preserve explicit scope and valid answers. Initial intake focuses on core functions and actual usage. Record actual user replies; proceed with dependent planning after a reply or explicit delegation. First-time builds include new apps and existing apps without business pages. After intake, reuse explicit mode choices and detailed supplied plans; if the user delegates the mode or asks for no more questions, use Fast unless Plan is explicit; otherwise, if the mode is unspecified, ask whether to prepare a PRD for confirmation (Plan, more detailed and slower) or build from the supplied requirements (Fast). Without detailed requirements, offer Fast and Plan neutrally. intake.confirmed records scope and key-usage clarification; the plan revision tracks plan approval separately. Apply visual_decision_policy.themeSelection.intent first: infer directly from stated styles or inspect reference websites/images for visual DNA, then generate
|
|
2457
|
+
design_mode_policy: 'Analyze requirements first with yida-requirement-analysis: read only necessary sources before the first question, offer concrete core-function candidates, clarify key usage, and preserve explicit scope and valid answers. Initial intake focuses on core functions and actual usage. Record actual user replies; proceed with dependent planning after a reply or explicit delegation. First-time builds include new apps and existing apps without business pages. After intake, reuse explicit mode choices and detailed supplied plans; if the user delegates the mode or asks for no more questions, use Fast unless Plan is explicit; otherwise, if the mode is unspecified, ask whether to prepare a PRD for confirmation (Plan, more detailed and slower) or build from the supplied requirements (Fast). Without detailed requirements, offer Fast and Plan neutrally. intake.confirmed records scope and key-usage clarification; the plan revision tracks plan approval separately. Apply visual_decision_policy.themeSelection.intent first: infer directly from stated styles or inspect reference websites/images for visual DNA, then generate Fast CSS directly or Plan design/CSS without reopening selection. Preserve sources and separate observed facts from AI defaults. Only without intent, visual reference or reusable choice do Fast and Plan share the three-direction comparison rule; Fast selects internally and Plan also selects internally when delegated. Follow themeSelection.reuse across stages, recovery and pending details; resolve only concrete conflicts. Preserve themeId and source. When Plan is explicit and there is no style intent, visual reference, reusable choice or delegation, generate exactly three directions and follow visual_decision_policy.themeSelection for the style choice before design-plan init. When a style question is needed, use ask_human on every host with text-only options by default. Apply themeSelection.preview on every host: all galleries, widgets, images and preview links are off by default and require explicit user requests; supplied references do not trigger display. On every host follow themeSelection.interactionOrder: batch ready independent style, scope and mode questions in one ask_human call; split only for real answer dependencies or host limits, keep only one pending interaction, and preserve later plan approval. Apply themeSelection.eligibility before recommending, selecting or previewing app-pop; generic all-styles requests do not qualify. Fast with clear name, scope and authorization creates/reuses the app immediately, with independent theme/page work; never wait for a full JSON, context or design check. The following init/authoring/materialize requirements apply only to Plan. Planning preparation derives page scenes, selected theme mapping and navigation structure before init; mark AI suggestions and apply navigation_policy. Existing business apps only clarify the current change. A named resource-only request with explicitScope.allowInferredResources=false keeps planning within the specified resources. When theme mapping is missing, query design-plan catalog once and reuse its themes and pagePatterns. Init returns authoring.pendingFields and context with typed examples; complete pending facts and review coverage before setting ready=true. Reuse one complete agent-capabilities summary per unchanged environment. Standard Plan uses design-plan init parallelTasks, then executes the returned materialize.command exactly once with business-file and visual-file; preview and --from-preview are only for explicitly incremental large plans. Present the current plan without revision numbers in user-visible titles, summaries, attachments or questions. Keep revision in internal confirmation fields, validate it before building, and execute its generated artifacts.',
|
|
2425
2458
|
product_design_policy: 'yida-requirement-analysis owns shared facts and first-time intake. yida-prd owns business planning; yida-design owns visual design. Reuse the same confirmed brief and supplied details. Prepare business and base visuals concurrently, then bind visuals to settled page tasks. yida-app merges and checks the artifacts before creating resources. Plan authors scope, data and rules, page organization, business interactions and acceptance once. Ordered blocks {name,purpose} supply default priority and content layers; explicit designs remain authoritative. Project-specific acceptance criteria are merged with generated resource checks. Plan uses the compact authoring contract and selected theme context; the CLI reads full templates and renders all artifacts. Fast, Plan and single-page design share yida-design/templates/design-themes and visual_decision_policy: infer directly from supplied style intent or extracted reference DNA, and use the shared three-direction rule only when comparison is needed. Theme templates declare application-global variables from basic-tokens.json with fixed typography, spacing and Tooltip colors, plus scoped custom-page variables; component recipes consume those variables. Each selected template is the authority for navTheme, its six navigation color tokens, and its selected-item shadow token; free-creative authors its own navigation tone and tokens. Explicit project customization stays in visualStyle.tokens. The CLI declares each fixed application palette once in a shared :root and platform-mode selector block. The CLI preserves mode-independent navigation appearance tokens. Light, dark, white and gray mode classes consume the same project tokens; navTheme remains platform metadata, not a second palette. Legacy generated mode blocks are consolidated on update, while unrelated custom CSS is preserved.',
|
|
2426
|
-
ui_guidance_policy: '
|
|
2459
|
+
ui_guidance_policy: 'Fast page implementation consumes confirmed requirements and incremental real resource/field receipts, with app_theme.css for visual tokens; no context/plan/page JSON prerequisite; it directly authors Canvas source without PRD/design/page-spec generation. The following document-based path applies to Plan and legacy builds: page implementation consumes yida-prd prd.md for positioning, information architecture, page prototype, native form entry policy, material strategy, business-specific checks, resource creation order, page implementation delivery order, navigation order, and acceptance criteria; it consumes yida-design design.md for app custom theme CSS delivery, themeColor/navTheme, visual states, visualScaffold, surface material, rounded rules, density rules, components, state styling, and page-level imageNeed. When a page is imageNeed=required, or beneficial with declared image slots, yida-image-assets prepares a traceable asset manifest alongside page layout and interaction work; wait for final images only at that page\'s image binding and acceptance. imageNeed=none skips the branch. prd.md and design.md remain the only design sources of truth. Page implementation may extract page-spec.json as a derived implementation handoff from prd.md + design.md; conflicts are resolved by sending business conflicts to yida-prd and visual conflicts to yida-design before regenerating the spec. Core normal forms default to 1-3 business sample records before page implementation, followed by query readback. An explicit opt-out, configuration dictionary, sensitive data, or lack of safely constructible values requires a recorded skip reason. Screenshots, public sharing, data-source deep binding, and fine navigation grouping are optional after explicit user request or PRD acceptance criteria.',
|
|
2427
2460
|
default_nav_order_policy: 'For application-wide custom navigation, implement each entry menu and verify app/page navigation hiding. A standalone frontend preserves platform navigation for the management workspace; frontend-only delivery skips platform ordering. After all scoped resources and page publications finish, perform exactly one navigation order operation. Use management tasks and their default destination, without creating a homepage or putting a frontend page first. When execution.entryRecommendation exists, derive navigationOrder from its management/workspace menus. Call openyida nav-group order <appType> <items...> for an explicit order; otherwise call openyida nav-group auto-order <appType> once for legacy single-workspace plans. Do not use openyida publish ... --auto-nav-order for per-page application builds. Explicit and automatic ordering are mutually exclusive; never generate per-item move loops.',
|
|
2428
|
-
final_link_policy: 'Return up to three verified application entry URLs
|
|
2461
|
+
final_link_policy: 'Return up to three verified application entry URLs: frontend, management, admin; honor scope/exclusions. application_entry_policy.entries.admin=include uses create-app/app-list adminUrl, independent of auth. Never emit one artifact or link card per form, process, report or intermediate file. For frontends, infer standalone when entryMode is missing; preserve an explicit platform-shell choice and its verified workbenchUrl. Use custom URLs only for standalone pages when get-form-config readback confirms renderNav=false. Use verified management entries and viewUuid; do not invent a backend or guess URLs/permissions. In QwenWork follow link_presentation_gate and agent-capabilities link_presentation_policy: select one existing modified page workbench entry when eligible, otherwise adminUrl; call the host link tool once, inspect this turn result, then summarize. Tool selection and fallback evidence follow references/qwenwork-link-presentation.md. Other hosts use their terminal delivery artifact description; use final response when no delivery tool is available. Explain business results/entry purposes/actions. Verify every resource count, seed-record count, and completed/verified claim against its own result/readback. When IDs/status/data summary or a manifest is requested, include one concise verified delivery manifest in that description (or final response).',
|
|
2429
2462
|
entry_navigation_contract: {
|
|
2430
2463
|
reference: 'yida-skills/skills/yida-app/references/entry-navigation.md',
|
|
2431
2464
|
brief_path: 'entryRecommendation',
|
|
@@ -2438,7 +2471,7 @@ function summarizeLocalizedCommands(commands) {
|
|
|
2438
2471
|
roles: ['service', 'management', 'workspace'],
|
|
2439
2472
|
entry_required_fields: ['key', 'name', 'role', 'menu', 'defaultMenuKey'],
|
|
2440
2473
|
service_page_binding: 'sceneKey of the frontend page; standalone by default, preserve explicit platform-shell. Missing page navigation for a multi-task service entry derives a custom top menu; single-task entries and explicit none retain their choice.',
|
|
2441
|
-
application_theme_handoff: 'Derived applicationTheme in the PRD execution handoff records final design themeColor/navTheme/designFile for full builds. Fast
|
|
2474
|
+
application_theme_handoff: 'Derived applicationTheme in the PRD execution handoff records final design themeColor/navTheme/designFile for full builds. Fast copies the fast-theme applicationTheme result into the incremental build-manifest after generation; it never waits for a full context before app creation. check-prd-completeness reads current application settings; publish does not install application themes. Resource-only changes add no theme task. Configuration matching is separate from browser acceptance and custom-page token consumption.',
|
|
2442
2475
|
menu_visibility_handoff: 'Derived navigationVisibility in the PRD execution handoff, not a build-plan input: service-management hides frontend-only standalone display pages in PC/mobile platform menus. Shared forms and explicitly management-linked pages are preserved. Resolve names to build-manifest resource IDs; nav-group hide and readback are separate from page renderNav=false. Resource-only changes schedule no menu hiding.',
|
|
2443
2476
|
page_navigation_policy: getPageNavigationContract(),
|
|
2444
2477
|
local_menu_binding: 'Every entry containing local menus, including management/workspace, requires sceneKey matching exactly one page; each local menu requires resource equal to that page name and a nonempty viewKey.',
|
|
@@ -2523,7 +2556,7 @@ function summarizeLocalizedCommands(commands) {
|
|
|
2523
2556
|
'yida-data-source-connectors',
|
|
2524
2557
|
'yida-dashboard',
|
|
2525
2558
|
],
|
|
2526
|
-
completion_contract: 'Clarify core functions and actual usage first, then resolve the required resource context and settle entry navigation before PRD planning. Fast generates
|
|
2559
|
+
completion_contract: 'Clarify core functions and actual usage first, then resolve the required resource context and settle entry navigation before PRD planning. Fast creates/reuses the app immediately from clear scope, independently generates app_theme.css from theme/color, and develops independent pages; no prebuild Plan/full JSON/context gate; Plan uses design-plan init/preview/materialize/patch and confirms the current revision. Validate the selected mode input, create or reuse app and core forms/processes, seed and query-check core normal-form samples or record an allowed skip reason, then implement the primary page in PRD resource order, publish it, apply PRD navigation order or lightweight fallback navigation order for platform navigation, or verify app and per-page hiding for application-wide custom navigation. For a standalone frontend in a platform-navigation app, verify that page independently and retain workspace navigation. Before returning up to three verified application entry URLs, persist and read back the verified in-scope frontend/management access addresses through app-entry get/set; final business links come from urls.frontend/management, not the last publish result. Include workbench when a management or unified workspace is in scope; backend-only delivers its business backend and developer admin URL without adding a frontend; frontend-only delivery includes its verified frontend entry and developer admin URL, without inventing a business backend. Always include developer adminUrl for complete application delivery unless explicitly excluded by the user, regardless of auth runtime; this is separate from the optional business backend. Use create-app or app-list URL fields and state any unavailable entry instead of silently omitting it. Put the verified business summary, results and remaining work in the delivery artifact description; use the final response when no delivery tool is available.',
|
|
2527
2560
|
},
|
|
2528
2561
|
},
|
|
2529
2562
|
};
|
package/lib/core/locales/en.js
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
+
corp_efficiency: {
|
|
8
|
+
learning_completed: 'Yida course completions',
|
|
9
|
+
certified_developers: 'Certified Yida developers',
|
|
10
|
+
},
|
|
7
11
|
qwenwork: {
|
|
8
12
|
organization_switch_success: 'Switched organization through QwenWork login.',
|
|
9
13
|
login_check_failed: 'Unable to verify the login session. Please retry.',
|
|
@@ -188,7 +192,7 @@ module.exports = {
|
|
|
188
192
|
cmd_custom_button: 'Native custom buttons: inspect and configure form edits, automation flows and page links',
|
|
189
193
|
cmd_form_message: 'Native form notifications: inspect triggers, recipients and templates, then safely maintain bindings',
|
|
190
194
|
cmd_check_design: 'Validate design documents, theme tokens and PRD handoff',
|
|
191
|
-
subtitle: '
|
|
195
|
+
subtitle: 'Application development tool for AI Yida',
|
|
192
196
|
usage: 'Usage:',
|
|
193
197
|
alias: 'Alias:',
|
|
194
198
|
group_auth: 'Auth & Environment',
|
|
@@ -527,7 +531,7 @@ Examples:
|
|
|
527
531
|
login_unsupported_option: 'Removed legacy login option is no longer supported: {0}. Use token/OAuth login; env token mode reads only OPENYIDA_* tokens.',
|
|
528
532
|
auth_usage: 'Usage: openyida auth <status|login|refresh|logout|profiles|profile switch|qwenwork user-info> [--json]',
|
|
529
533
|
auth_example: 'Examples:\n openyida auth status # View login status\n openyida auth profiles # List existing login profiles\n openyida auth profile switch <auth_profile> # Switch current project to an existing profile\n openyida auth login # Add a profile when the target does not exist\n openyida auth refresh # Refresh login session\n openyida auth logout # Unbind current project auth\n openyida auth logout --profile <auth_profile> # Delete a shared profile explicitly',
|
|
530
|
-
org_usage: 'Usage: openyida org <list|switch> [--json] [--corp-id <corpId>]',
|
|
534
|
+
org_usage: 'Usage: openyida org <list|switch> [--json] [--corp-id <corpId>] [--no-browser]',
|
|
531
535
|
org_example: 'Examples:\n openyida org list --json # List accessible organizations\n openyida org switch --corp-id dingXXX # Switch existing profiles first; login to add one if missing',
|
|
532
536
|
first_run_title: ' 🤖 OpenYida - AI Conversation Mode Activated! ',
|
|
533
537
|
first_run_welcome: " {0}Welcome to OpenYida!{1} Here's a quick start guide:",
|
|
@@ -881,7 +885,7 @@ Examples:
|
|
|
881
885
|
modern_theme_unverified: 'The app was created, but its modern theme configuration could not be verified. Inspect the returned app ID; do not recreate the app or fall back to a legacy theme.',
|
|
882
886
|
update_only_option: '{0} is only available in update-app. Create the app first, then use openyida update-app <appType>.',
|
|
883
887
|
title: ' openyida create-app - Yida App Creation Tool',
|
|
884
|
-
usage: 'Usage: openyida create-app "<appName>" [description] [icon] [iconColor] or openyida create-app --name "<appName>" [--desc "<description>"]',
|
|
888
|
+
usage: 'Usage: openyida create-app "<appName>" [description] [icon] [iconColor] [--json] or openyida create-app --name "<appName>" [--desc "<description>"] [--json]',
|
|
885
889
|
example: 'Example: openyida create-app --name "Attendance" --desc "Employee attendance system"',
|
|
886
890
|
available_icons: '\nAvailable icons:',
|
|
887
891
|
icons_list: ' xian-xinwen, xian-zhengfu, xian-yingyong, xian-xueshimao, xian-qiye,\n xian-danju, xian-shichang, xian-jingli, xian-falv, xian-baogao,\n huoche, shenbao, xian-diqiu, xian-qiche, xian-feiji,\n xian-diannao, xian-gongzuozheng, xian-gouwuche, xian-xinyongka,\n xian-huodong, xian-jiangbei, xian-liucheng, chaxun, daka',
|
|
@@ -1183,7 +1187,7 @@ Examples:
|
|
|
1183
1187
|
exec_failed: '\n❌ Execution failed: {0}',
|
|
1184
1188
|
auth_usage: 'Usage: openyida auth <status|login|refresh|logout|profiles|profile switch|qwenwork user-info> [--json]',
|
|
1185
1189
|
auth_example: 'Examples:\n openyida auth status # View login status\n openyida auth profiles # List existing login profiles\n openyida auth profile switch <auth_profile> # Switch current project to an existing profile\n openyida auth login # Add a profile when the target does not exist\n openyida auth refresh # Refresh login session\n openyida auth logout # Unbind current project auth\n openyida auth logout --profile <auth_profile> # Delete a shared profile explicitly',
|
|
1186
|
-
org_usage: 'Usage: openyida org <list|switch> [--json] [--corp-id <corpId>]',
|
|
1190
|
+
org_usage: 'Usage: openyida org <list|switch> [--json] [--corp-id <corpId>] [--no-browser]',
|
|
1187
1191
|
org_example: 'Examples:\n openyida org list --json # List accessible organizations\n openyida org switch --corp-id dingXXX # Switch existing profiles first; login to add one if missing',
|
|
1188
1192
|
title: ' openyida import - Yida App Import Tool',
|
|
1189
1193
|
|
|
@@ -2630,3 +2634,15 @@ Object.assign(module.exports.query_data || (module.exports.query_data = {}), {
|
|
|
2630
2634
|
fields_not_editable: 'The update includes fields that are not editable or cannot be verified: {0}. No update was sent. Use the native editor for dynamic behaviors or restricted subforms.',
|
|
2631
2635
|
form_update_forbidden: 'You do not have permission to modify this data.',
|
|
2632
2636
|
});
|
|
2637
|
+
|
|
2638
|
+
module.exports.batch = {
|
|
2639
|
+
'invalid_concurrency': '--concurrency must be an integer from 1 to 4.',
|
|
2640
|
+
'executing': 'Executing independent tasks (concurrency limit {0})'
|
|
2641
|
+
};
|
|
2642
|
+
|
|
2643
|
+
module.exports.data_verify = {
|
|
2644
|
+
'invalid_usage': '--verify-write is a flag for ordinary form create/update only.',
|
|
2645
|
+
'preflight_failed': 'Data write preflight failed ({0} issues).',
|
|
2646
|
+
'readback_failed': 'Write accepted, but readback could not be verified. Reconcile the existing instance; do not repeat the write.',
|
|
2647
|
+
'mismatch': 'Write accepted, but field readback differs from the submitted data.'
|
|
2648
|
+
};
|
package/lib/core/locales/zh.js
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
+
corp_efficiency: {
|
|
8
|
+
learning_completed: '宜搭学习完成人数',
|
|
9
|
+
certified_developers: '宜搭开发者认证人数',
|
|
10
|
+
},
|
|
7
11
|
qwenwork: {
|
|
8
12
|
organization_switch_success: '已通过千问办公登录切换组织。',
|
|
9
13
|
login_check_failed: '登录状态暂时无法确认,请重试。',
|
|
@@ -188,7 +192,7 @@ module.exports = {
|
|
|
188
192
|
cmd_custom_button: '原生自定义按钮:查询、配置填写表单、自动化流及页面跳转',
|
|
189
193
|
cmd_form_message: '原生表单消息通知:查询触发、接收对象与模板并安全维护配置',
|
|
190
194
|
cmd_check_design: '检查设计文档、主题变量与 PRD 交接',
|
|
191
|
-
subtitle: '
|
|
195
|
+
subtitle: 'AI 宜搭应用开发工具',
|
|
192
196
|
usage: '用法:',
|
|
193
197
|
alias: '别名:',
|
|
194
198
|
group_auth: '环境 & 认证',
|
|
@@ -852,7 +856,7 @@ openyida - 宜搭命令行工具
|
|
|
852
856
|
modern_theme_unverified: '应用已创建,但未能确认新版主题配置。请使用返回的应用 ID 排查,不要重复创建或降级为旧主题。',
|
|
853
857
|
update_only_option: '{0} 仅用于更新应用设置,请先创建应用,再使用 openyida update-app <appType>。',
|
|
854
858
|
title: ' openyida create-app - 宜搭应用创建工具',
|
|
855
|
-
usage: '用法: openyida create-app "<appName>" [description] [icon] [iconColor] 或 openyida create-app --name "<appName>" [--desc "<description>"]',
|
|
859
|
+
usage: '用法: openyida create-app "<appName>" [description] [icon] [iconColor] [--json] 或 openyida create-app --name "<appName>" [--desc "<description>"] [--json]',
|
|
856
860
|
example: '示例: openyida create-app --name "考勤管理" --desc "员工考勤打卡系统"',
|
|
857
861
|
available_icons: '\n可用图标:',
|
|
858
862
|
icons_list: ' xian-xinwen, xian-zhengfu, xian-yingyong, xian-xueshimao, xian-qiye,\n xian-danju, xian-shichang, xian-jingli, xian-falv, xian-baogao,\n huoche, shenbao, xian-diqiu, xian-qiche, xian-feiji,\n xian-diannao, xian-gongzuozheng, xian-gouwuche, xian-xinyongka,\n xian-huodong, xian-jiangbei, xian-liucheng, chaxun, daka',
|
|
@@ -1155,7 +1159,7 @@ openyida - 宜搭命令行工具
|
|
|
1155
1159
|
exec_failed: '\n❌ 执行失败: {0}',
|
|
1156
1160
|
auth_usage: '用法: openyida auth <status|login|refresh|logout|profiles|profile switch|qwenwork user-info> [--json]',
|
|
1157
1161
|
auth_example: '示例:\n openyida auth status # 查看登录状态\n openyida auth profiles # 列出已有登录 profile\n openyida auth profile switch <auth_profile> # 切换当前项目到已有 profile\n openyida auth login # 目标 profile 不存在时登录新增\n openyida auth refresh # 刷新登录态\n openyida auth logout # 解绑当前项目登录态\n openyida auth logout --profile <auth_profile> # 删除指定共享 profile',
|
|
1158
|
-
org_usage: '用法: openyida org <list|switch> [--json] [--corp-id <corpId>]',
|
|
1162
|
+
org_usage: '用法: openyida org <list|switch> [--json] [--corp-id <corpId>] [--no-browser]',
|
|
1159
1163
|
org_example: '示例:\n openyida org list --json # 列出可访问的组织\n openyida org switch --corp-id dingXXX # 优先切换已有 profile;不存在时登录新增',
|
|
1160
1164
|
title: ' openyida import - 宜搭应用导入工具',
|
|
1161
1165
|
|
|
@@ -2584,3 +2588,15 @@ Object.assign(module.exports.query_data || (module.exports.query_data = {}), {
|
|
|
2584
2588
|
fields_not_editable: '更新包含不可编辑或无法确认可编辑的字段:{0}。未发送更新;请在原生编辑页处理动态行为或受限子表。',
|
|
2585
2589
|
form_update_forbidden: '您无更改该数据的权限',
|
|
2586
2590
|
});
|
|
2591
|
+
|
|
2592
|
+
module.exports.batch = {
|
|
2593
|
+
'invalid_concurrency': '--concurrency 必须是 1 到 4 的整数。',
|
|
2594
|
+
'executing': '执行独立任务(并发上限 {0})'
|
|
2595
|
+
};
|
|
2596
|
+
|
|
2597
|
+
module.exports.data_verify = {
|
|
2598
|
+
'invalid_usage': '--verify-write 仅支持普通表单 create/update,且不接受参数值。',
|
|
2599
|
+
'preflight_failed': '数据写入预检未通过({0} 项问题)。',
|
|
2600
|
+
'readback_failed': '写入已被接受,但无法验证回读结果。请核实已有实例,不要重复写入。',
|
|
2601
|
+
'mismatch': '写入已被接受,但回读字段与提交内容不一致。'
|
|
2602
|
+
};
|