@oxmumu3/dsh-plugin-finder 0.13.0 → 0.13.2
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/CHANGELOG.md +12 -0
- package/README.md +3 -3
- package/dist/client.js +880 -255
- package/docs/install.md +2 -2
- package/package.json +1 -1
- package/src/creator-strip.js +677 -159
- package/src/experience-style.js +15 -32
- package/src/experience-view.js +123 -38
- package/src/telemetry-config.js +1 -1
- package/src/v8-style.js +21 -2
package/src/experience-style.js
CHANGED
|
@@ -548,41 +548,24 @@ const experienceV3Css = `
|
|
|
548
548
|
.pfv_capability_gap { border-style: dashed; border-color: color-mix(in srgb, var(--pfv_accent) 45%, var(--pfv_line)); background: var(--pfv_tint); }
|
|
549
549
|
.pfv_capability_gap .pfv_capability_kind { color: var(--pfv_accent); }
|
|
550
550
|
|
|
551
|
-
/* Runtime output owns the
|
|
551
|
+
/* Runtime output owns the full width; the saved plan sits below as a compact expandable bar. */
|
|
552
552
|
.pfv_outcome_document.pfv_outcome_live { padding: 0; border: 0; box-shadow: none; background: transparent; }
|
|
553
|
-
.pfv_result_grid { display: grid; grid-template-columns: minmax(0, 1fr)
|
|
554
|
-
.pfv_result_primary { min-
|
|
555
|
-
.pfv_result_primary .pfv_execution { margin: 0; padding: 20px; background: var(--pfv_paper); border: 1px solid var(--pfv_line); border-radius:
|
|
556
|
-
.pfv_result_primary .
|
|
557
|
-
.pfv_result_primary .pfv_execution_heading
|
|
558
|
-
.pfv_result_primary .
|
|
559
|
-
.pfv_result_primary .
|
|
560
|
-
.
|
|
561
|
-
.
|
|
562
|
-
.
|
|
563
|
-
.pfv_solution_overview
|
|
564
|
-
.pfv_solution_overview .pfv_capabilities_heading .pfv_hint { display: none; }
|
|
565
|
-
.pfv_solution_overview .pfv_capability_map { grid-template-columns: minmax(0, 1fr); gap: 0; border-block: 1px solid var(--pfv_line); }
|
|
566
|
-
.pfv_solution_overview .pfv_capability_item { padding: 14px 0; border: 0; border-bottom: 1px solid var(--pfv_line); border-radius: 0; background: transparent; }
|
|
567
|
-
.pfv_solution_overview .pfv_capability_item:last-child { border-bottom: 0; }
|
|
568
|
-
.pfv_solution_overview .pfv_capability_gap { padding-left: 12px; border-left: 2px solid var(--pfv_accent); }
|
|
569
|
-
.pfv_solution_overview .pfv_capability_kind { margin-bottom: 4px; }
|
|
570
|
-
.pfv_solution_overview .pfv_capability_item strong { font-size: 14px; }
|
|
571
|
-
.pfv_solution_overview .pfv_outcome_actions { gap: 6px; margin-top: 16px; }
|
|
572
|
-
.pfv_solution_overview .pfv_outcome_actions .pfv_button { font-size: 13px; min-width: 0; }
|
|
573
|
-
.pfv_solution_overview .pfv_prerequisites { padding: 0; border-radius: 0; background: transparent; }
|
|
574
|
-
.pfv_solution_overview .pfv_prerequisites .pfv_list { font-size: 12px; color: var(--pfv_muted); }
|
|
575
|
-
@container finder (max-width: 900px) {
|
|
576
|
-
.pfv_result_grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
|
|
577
|
-
.pfv_solution_overview { border-top: 1px solid var(--pfv_line); padding-top: 20px; }
|
|
578
|
-
.pfv_solution_overview .pfv_capability_map { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; border: 0; }
|
|
579
|
-
.pfv_solution_overview .pfv_capability_item { padding: 14px; border: 1px solid var(--pfv_line); border-radius: 10px; background: var(--pfv_paper); }
|
|
580
|
-
.pfv_solution_overview .pfv_capability_gap { border-style: dashed; border-color: var(--pfv_accent); }
|
|
581
|
-
}
|
|
553
|
+
.pfv_result_grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
|
|
554
|
+
.pfv_result_primary { min-inline-size: 0; }
|
|
555
|
+
.pfv_result_primary .pfv_execution { margin: 0; padding: 18px 22px 20px; background: var(--card, var(--pfv_paper)); border: 1px solid var(--line2, var(--pfv_line)); border-radius: 22px; box-shadow: none; }
|
|
556
|
+
.pfv_result_primary .pfv_execution_head_band { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line, var(--pfv_line)); }
|
|
557
|
+
.pfv_result_primary .pfv_execution_heading { display: flex; align-items: safe center; justify-content: space-between; gap: 12px; padding-bottom: 0; border-bottom: 0; }
|
|
558
|
+
.pfv_result_primary .pfv_execution_heading h3 { font: 600 15.5px/1.4 var(--sans, inherit); color: var(--ink, var(--pfv_ink)); }
|
|
559
|
+
.pfv_result_primary .pfv_execution_head_band > .pfv_prose { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink3, var(--pfv_muted)); }
|
|
560
|
+
.pfv_result_primary .pfv_execution_details { margin-top: 2px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
561
|
+
.pfv_result_primary .pf_execution_conversation { min-inline-size: 0; margin-top: 12px; min-height: 320px !important; height: clamp(340px, calc(100vh - 380px), 680px) !important; height: clamp(340px, calc(100dvh - 380px), 680px) !important; }
|
|
562
|
+
.pfv_result_primary .pf_execution_file_preview { min-inline-size: 0; }
|
|
563
|
+
.pfv_solution_overview { min-inline-size: 0; padding: 14px 20px; border: 1px solid var(--line, var(--pfv_line)); border-radius: 18px; background: var(--card, var(--pfv_paper)); }
|
|
582
564
|
@container finder (max-width: 520px) {
|
|
583
565
|
.pfv_capability_map_hybrid { grid-template-columns: minmax(0, 1fr); }
|
|
584
|
-
.pfv_result_primary .pfv_execution { padding: 16px; }
|
|
585
|
-
.pfv_result_primary .pf_execution_conversation { min-height: 300px !important; height:
|
|
566
|
+
.pfv_result_primary .pfv_execution { padding: 14px 16px 16px; border-radius: 18px; }
|
|
567
|
+
.pfv_result_primary .pf_execution_conversation { min-height: 280px !important; height: clamp(300px, calc(100vh - 340px), 560px) !important; height: clamp(300px, calc(100dvh - 340px), 560px) !important; }
|
|
568
|
+
.pfv_solution_overview { padding: 12px 16px; border-radius: 16px; }
|
|
586
569
|
.pf_v2 .pfv_expert_identity h1 { font-size: 25px; }
|
|
587
570
|
}
|
|
588
571
|
|
package/src/experience-view.js
CHANGED
|
@@ -202,14 +202,20 @@ export function createExperienceView(React) {
|
|
|
202
202
|
if (state.view === 'home' && !state.searching) return home();
|
|
203
203
|
if (state.view === 'find' && state.stage === 'describe' && !busy && !state.request && !plan) return home();
|
|
204
204
|
|
|
205
|
+
const executionTitle = execution ? ({
|
|
206
|
+
preparing: '正在准备', running: execution.kind === 'create' ? '正在创建' : '正在使用方案', waiting: '等待继续',
|
|
207
|
+
completed: '本次运行已结束', failed: '这次没有完成', cancelled: '已停止',
|
|
208
|
+
}[execution.phase] || '当前状态') : '';
|
|
209
|
+
const rawExecSummary = execution ? text(execution.summary).trim() : '';
|
|
210
|
+
const executionSummary = rawExecSummary && rawExecSummary !== executionTitle && !(execution?.phase === 'completed' && rawExecSummary === '执行已结束')
|
|
211
|
+
? execution.summary
|
|
212
|
+
: '';
|
|
205
213
|
const executionView = execution ? h('section', { className: `pfv_execution pfv_execution_${execution.phase}`, role: execution.phase === 'failed' ? 'alert' : 'status', 'aria-label': '当前执行状态' },
|
|
206
|
-
h('div', { className: '
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
text(execution.details) ? paragraph(execution.details, { className: 'pfv_hint pfv_execution_details' }) : list(strings(execution.details)),
|
|
212
|
-
execution.canContinue ? primary('继续执行', () => controller.continueExecution(), { disabled: busy }) : null,
|
|
214
|
+
h('div', { className: 'pfv_execution_head_band' },
|
|
215
|
+
h('div', { className: 'pfv_execution_heading' }, h('h3', null, executionTitle), executionActive ? button('停止', () => controller.cancelExecution(), { className: 'pfv_button pfv_quiet', 'aria-label': '停止当前执行' }) : null),
|
|
216
|
+
paragraph(executionSummary),
|
|
217
|
+
text(execution.details) ? paragraph(execution.details, { className: 'pfv_hint pfv_execution_details' }) : list(strings(execution.details)),
|
|
218
|
+
execution.canContinue ? primary('继续执行', () => controller.continueExecution(), { disabled: busy }) : null),
|
|
213
219
|
sections.executionConversation) : null;
|
|
214
220
|
|
|
215
221
|
const clarification = isCreating && question ? planSurface.clarification({
|
|
@@ -446,15 +452,42 @@ export function createExperienceView(React) {
|
|
|
446
452
|
h('span', { className: 'pf8_fine' }, expertMode ? '我看得到你的工作区和已经装的插件' : '接着说,这份方案会跟着改')),
|
|
447
453
|
expertSection || followup);
|
|
448
454
|
|
|
455
|
+
const creationSummaryRows = () => [
|
|
456
|
+
['首版做什么', blueprint.scope], ['怎样使用', blueprint.workflow], ['得到什么', blueprint.outputs],
|
|
457
|
+
['数据与权限', unique([text(blueprint.data), text(blueprint.tools)]).join(';')], ['完成标准', blueprint.acceptance],
|
|
458
|
+
].filter(([, value]) => text(value));
|
|
459
|
+
|
|
460
|
+
const startBlueprintAction = () => ({
|
|
461
|
+
label: '开始创建', primary: true,
|
|
462
|
+
onClick: () => !workspacePending && confirmOrRun({
|
|
463
|
+
title: '开始在工作区创建这个插件?',
|
|
464
|
+
body: '会先把当前方案存成草稿并交给执行对话,按五步陪做节奏推进。',
|
|
465
|
+
facts: [
|
|
466
|
+
text(blueprint?.name) ? { label: '插件草稿', value: text(blueprint.name) } : null,
|
|
467
|
+
text(blueprint?.purpose) ? { label: '目标', value: short(blueprint.purpose, 80) } : null,
|
|
468
|
+
state.executionWorkspaceLabel ? { label: '工作区', value: text(state.executionWorkspaceLabel) } : null,
|
|
469
|
+
].filter(Boolean),
|
|
470
|
+
showWorkspacePicker: true,
|
|
471
|
+
confirmLabel: '确认开始创建',
|
|
472
|
+
cancelLabel: '再改改',
|
|
473
|
+
}, () => controller.createInWorkspace()),
|
|
474
|
+
disabled: !canAct || workspacePending || Boolean(question),
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
const blueprintEditorDisclosure = () => disclosure('查看与编辑详细方案', h(React.Fragment, null,
|
|
478
|
+
...blueprintGroups.map((group, index) => h('section', { className: 'pfv_blueprint_block', key: group.title },
|
|
479
|
+
h('h3', null, group.title), h('dl', { className: 'pfv_blueprint_values' }, ...group.fields.map(([key, label]) => h('div', { key }, h('dt', null, label), h('dd', null, text(blueprint[key]) || '待补充')))),
|
|
480
|
+
disclosure(`编辑${group.title}`, h('div', { className: 'pfv_block_editor' }, ...group.fields.map(([key, label]) => h('label', { key, className: 'pfv_field', htmlFor: `pfv_field_${key}` }, label, h('textarea', { id: `pfv_field_${key}`, 'aria-label': label, value: text(blueprint[key]), maxLength: 4000, disabled: locked, onChange: event => controller.editCreation({ blueprint: { [key]: event.target.value } }) })))), { key: `edit-${index}`, className: 'pfv_disclosure pfv_edit_block' }))),
|
|
481
|
+
paragraph(creation.reuseAssessment), list(records(creation.candidateDecisions).map(item => `${records(state.candidates).find(candidate => candidate.id === item.pluginId)?.name || item.pluginId}:${text(item.reason)}`)),
|
|
482
|
+
h('label', { className: 'pfv_field', htmlFor: 'pfv_assumptions' }, '假设,每行一项', h('textarea', { id: 'pfv_assumptions', value: items(form?.assumptions || creation.assumptions).filter(item => typeof item === 'string').join('\n'), maxLength: 6000, disabled: locked, onChange: event => controller.editCreation({ assumptions: event.target.value.split('\n') }) })),
|
|
483
|
+
state.creationDirty ? button('保存草稿', () => controller.updateCreation(), { disabled: locked }) : null));
|
|
484
|
+
|
|
449
485
|
const blueprintView = () => {
|
|
450
486
|
if (!creation) return h('article', { className: 'pf8_card' },
|
|
451
487
|
h('h1', { className: 'pf8_verdict' }, busy ? '正在整理插件方案' : '创建自己的插件'),
|
|
452
488
|
h('p', { className: 'pf8_why' }, '根据这次需求,整理首版要做什么。'),
|
|
453
489
|
!busy ? h('div', { className: 'pf8_acts' }, v8Action({ label: '创建自己的插件', primary: true, onClick: () => controller.startCreation(), disabled: !modelReady || !state.plan })) : null);
|
|
454
|
-
const summaryRows =
|
|
455
|
-
['首版做什么', blueprint.scope], ['怎样使用', blueprint.workflow], ['得到什么', blueprint.outputs],
|
|
456
|
-
['数据与权限', unique([text(blueprint.data), text(blueprint.tools)]).join(';')], ['完成标准', blueprint.acceptance],
|
|
457
|
-
].filter(([, value]) => text(value));
|
|
490
|
+
const summaryRows = creationSummaryRows();
|
|
458
491
|
const capabilities = capabilityMap();
|
|
459
492
|
return h('article', { className: 'pf8_card', 'aria-label': '插件方案' },
|
|
460
493
|
h('p', { className: 'pf8_q' }, '创建自己的插件'),
|
|
@@ -467,45 +500,97 @@ export function createExperienceView(React) {
|
|
|
467
500
|
clarification,
|
|
468
501
|
showActions ? h(React.Fragment, null, workspacePicker, workspaceStatus,
|
|
469
502
|
h('div', { className: 'pf8_acts' },
|
|
470
|
-
v8Action(
|
|
471
|
-
label: '开始创建', primary: true,
|
|
472
|
-
onClick: () => !workspacePending && confirmOrRun({
|
|
473
|
-
title: '开始在工作区创建这个插件?',
|
|
474
|
-
body: '会先把当前方案存成草稿并交给执行对话,按五步陪做节奏推进。',
|
|
475
|
-
facts: [
|
|
476
|
-
text(blueprint?.name) ? { label: '插件草稿', value: text(blueprint.name) } : null,
|
|
477
|
-
text(blueprint?.purpose) ? { label: '目标', value: short(blueprint.purpose, 80) } : null,
|
|
478
|
-
state.executionWorkspaceLabel ? { label: '工作区', value: text(state.executionWorkspaceLabel) } : null,
|
|
479
|
-
].filter(Boolean),
|
|
480
|
-
showWorkspacePicker: true,
|
|
481
|
-
confirmLabel: '确认开始创建',
|
|
482
|
-
cancelLabel: '再改改',
|
|
483
|
-
}, () => controller.createInWorkspace()),
|
|
484
|
-
disabled: !canAct || workspacePending || Boolean(question),
|
|
485
|
-
}),
|
|
503
|
+
v8Action(startBlueprintAction()),
|
|
486
504
|
v8Action({ label: '回看方案', onClick: () => controller.showFind(), disabled: locked })),
|
|
487
505
|
h('p', { className: 'pf8_next' }, '会先在发现好插件里存一份草稿,再从第一步开始;随时可以回来改。')) : null,
|
|
488
506
|
state.creationDirty ? h('p', { className: 'pf8_fine', role: 'status' }, '修改已保留,开始创建时会一并使用。') : null,
|
|
489
|
-
|
|
490
|
-
...blueprintGroups.map((group, index) => h('section', { className: 'pfv_blueprint_block', key: group.title },
|
|
491
|
-
h('h3', null, group.title), h('dl', { className: 'pfv_blueprint_values' }, ...group.fields.map(([key, label]) => h('div', { key }, h('dt', null, label), h('dd', null, text(blueprint[key]) || '待补充')))),
|
|
492
|
-
disclosure(`编辑${group.title}`, h('div', { className: 'pfv_block_editor' }, ...group.fields.map(([key, label]) => h('label', { key, className: 'pfv_field', htmlFor: `pfv_field_${key}` }, label, h('textarea', { id: `pfv_field_${key}`, 'aria-label': label, value: text(blueprint[key]), maxLength: 4000, disabled: locked, onChange: event => controller.editCreation({ blueprint: { [key]: event.target.value } }) })))), { key: `edit-${index}`, className: 'pfv_disclosure pfv_edit_block' }))),
|
|
493
|
-
paragraph(creation.reuseAssessment), list(records(creation.candidateDecisions).map(item => `${records(state.candidates).find(candidate => candidate.id === item.pluginId)?.name || item.pluginId}:${text(item.reason)}`)),
|
|
494
|
-
h('label', { className: 'pfv_field', htmlFor: 'pfv_assumptions' }, '假设,每行一项', h('textarea', { id: 'pfv_assumptions', value: items(form?.assumptions || creation.assumptions).filter(item => typeof item === 'string').join('\n'), maxLength: 6000, disabled: locked, onChange: event => controller.editCreation({ assumptions: event.target.value.split('\n') }) })),
|
|
495
|
-
state.creationDirty ? button('保存草稿', () => controller.updateCreation(), { disabled: locked }) : null)));
|
|
507
|
+
blueprintEditorDisclosure());
|
|
496
508
|
};
|
|
497
509
|
|
|
498
|
-
const
|
|
499
|
-
|
|
510
|
+
const execActionBtn = action => h('button', {
|
|
511
|
+
key: action.label, type: 'button',
|
|
512
|
+
className: action.primary ? 'pf8_btn pf8_ink pfv_primary' : 'pf8_btn',
|
|
513
|
+
disabled: Boolean(action.disabled), onClick: action.onClick,
|
|
514
|
+
}, action.label);
|
|
515
|
+
|
|
516
|
+
const execBar = ({ kicker, title, chips = [], actions = [] }) => h('div', { className: 'pf8_exec_bar' },
|
|
517
|
+
h('div', { className: 'pf8_exec_plan_main' },
|
|
518
|
+
h('span', { className: 'pf8_exec_kicker' }, kicker),
|
|
519
|
+
h('strong', { className: 'pf8_exec_title' }, title),
|
|
520
|
+
chips.length ? h('span', { className: 'pf8_exec_chips' }, ...chips.map((block, index) => h('span', { key: `${block.kind}-${index}`, className: `pf8_exec_chip ${block.kind}` }, h('code', null, text(block.name))))) : null),
|
|
521
|
+
actions.length ? h('div', { className: 'pf8_exec_acts' }, ...actions.map(execActionBtn)) : null);
|
|
522
|
+
|
|
523
|
+
const execDetailsFold = content => content ? h('details', { className: 'pf8_disclosure pf8_exec_details' },
|
|
524
|
+
h('summary', { className: 'pf8_lk' }, '查看本次方案详情'),
|
|
525
|
+
h('div', { className: 'pf8_disclosure_body' }, content)) : null;
|
|
526
|
+
|
|
527
|
+
const completedCreationAction = execution?.phase === 'completed' && execution.kind === 'use'
|
|
528
|
+
? { label: '创建自己的插件', onClick: () => controller.startCreation(), disabled: locked || !modelReady }
|
|
500
529
|
: null;
|
|
501
530
|
|
|
531
|
+
const executionOverview = () => {
|
|
532
|
+
if (isCreating) {
|
|
533
|
+
if (!creation) {
|
|
534
|
+
return execBar({
|
|
535
|
+
kicker: '插件方案',
|
|
536
|
+
title: busy ? '正在整理插件方案' : '创建自己的插件',
|
|
537
|
+
actions: !busy ? [{ label: '创建自己的插件', primary: true, onClick: () => controller.startCreation(), disabled: !modelReady || !state.plan }] : [],
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
const summaryRows = creationSummaryRows();
|
|
541
|
+
const capabilities = capabilityMap();
|
|
542
|
+
const actions = showActions ? [startBlueprintAction(), { label: '回看方案', onClick: () => controller.showFind(), disabled: locked }] : [];
|
|
543
|
+
return h(React.Fragment, null,
|
|
544
|
+
execBar({ kicker: '插件方案', title: text(blueprint.name) || '我的插件', actions }),
|
|
545
|
+
clarification,
|
|
546
|
+
showActions && (workspacePicker || workspaceStatus) ? h('div', { className: 'pf8_exec_recovery' }, workspacePicker, workspaceStatus) : null,
|
|
547
|
+
state.creationDirty ? h('p', { className: 'pf8_fine', role: 'status' }, '修改已保留,开始创建时会一并使用。') : null,
|
|
548
|
+
execDetailsFold(h(React.Fragment, null,
|
|
549
|
+
text(blueprint.purpose) ? h('p', { className: 'pf8_why' }, short(blueprint.purpose, 260)) : null,
|
|
550
|
+
summaryRows.length ? h('dl', { className: 'pfv_creation_summary' }, ...summaryRows.map(([label, value]) => h('div', { key: label }, h('dt', null, label), h('dd', null, short(value, 200))))) : null,
|
|
551
|
+
capabilities,
|
|
552
|
+
blueprintEditorDisclosure())));
|
|
553
|
+
}
|
|
554
|
+
if (uncertainGap) {
|
|
555
|
+
const actions = showActions
|
|
556
|
+
? [retryAction(), plan ? { label: '创建自己的插件', onClick: () => controller.startCreation(), disabled: !canAct } : null].filter(Boolean)
|
|
557
|
+
: (completedCreationAction ? [completedCreationAction] : []);
|
|
558
|
+
return h(React.Fragment, null,
|
|
559
|
+
execBar({ kicker: '来源待核对', title: '这次没查完,先不给你结论', actions }),
|
|
560
|
+
execDetailsFold(h(React.Fragment, null,
|
|
561
|
+
h('p', { className: 'pf8_why' }, text(health?.message) || '部分来源没有读回来,只凭已经读到的内容下结论,容易让你装错。'),
|
|
562
|
+
plan ? planSurface.solution({ request, understanding: '', plan, candidates: outcome.candidates, discovery, searchedAt, actions: [], note: '', showSignature: false, compact: true, embedded: true }) : null)));
|
|
563
|
+
}
|
|
564
|
+
if (plan) {
|
|
565
|
+
const execBlocks = planSurface.planBlocks({ plan, candidates: outcome.candidates, request });
|
|
566
|
+
const secondary = !needsCreation || uncertainGap
|
|
567
|
+
? { label: '创建自己的插件', onClick: () => controller.startCreation(), disabled: !canAct }
|
|
568
|
+
: null;
|
|
569
|
+
const execActions = showActions
|
|
570
|
+
? [primaryAction(), secondary].filter(Boolean)
|
|
571
|
+
: (completedCreationAction ? [completedCreationAction] : []);
|
|
572
|
+
return h(React.Fragment, null,
|
|
573
|
+
execBar({ kicker: '本次方案', title: text(plan.title) || '当前方案', chips: execBlocks, actions: execActions }),
|
|
574
|
+
showActions && (workspacePicker || workspaceStatus) ? h('div', { className: 'pf8_exec_recovery' }, workspacePicker, workspaceStatus) : null,
|
|
575
|
+
execDetailsFold(planSurface.solution({
|
|
576
|
+
request, understanding: '', plan, candidates: outcome.candidates, discovery, searchedAt,
|
|
577
|
+
actions: [], note: '', showSignature: true, compact: true, embedded: true,
|
|
578
|
+
})));
|
|
579
|
+
}
|
|
580
|
+
const fallbackActions = !showFindCard && showActions && (state.intent || request) ? [retryAction()] : [];
|
|
581
|
+
return execBar({
|
|
582
|
+
kicker: '本次方案',
|
|
583
|
+
title: showFindCard ? '正在替你找' : '继续查找方案',
|
|
584
|
+
actions: fallbackActions,
|
|
585
|
+
});
|
|
586
|
+
};
|
|
587
|
+
|
|
502
588
|
const body = startingNew
|
|
503
589
|
? searchingCard()
|
|
504
590
|
: execution
|
|
505
591
|
? h('div', { className: 'pfv_result_grid' },
|
|
506
592
|
h('div', { className: 'pfv_result_primary' }, executionView),
|
|
507
|
-
h('aside', { className: 'pfv_solution_overview', 'aria-label': '本次能力方案' },
|
|
508
|
-
isCreating ? blueprintView() : h(React.Fragment, null, planCardArea(), completedCreation)))
|
|
593
|
+
h('aside', { className: 'pfv_solution_overview', 'aria-label': '本次能力方案' }, executionOverview()))
|
|
509
594
|
: isCreating
|
|
510
595
|
? blueprintView()
|
|
511
596
|
: h('section', { className: 'pf8_planwrap', 'aria-label': '当前方案' }, expertPlanCard, planCardArea());
|
package/src/telemetry-config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const COLLECTOR_URL='https://dsh-plugin-finder-feedback-v1.dsh-plugin-finder.workers.dev';
|
|
2
|
-
export const CLIENT_VERSION='0.13.
|
|
2
|
+
export const CLIENT_VERSION='0.13.2';
|
package/src/v8-style.js
CHANGED
|
@@ -296,12 +296,18 @@ export const v8Css = `
|
|
|
296
296
|
.pf_v8 .pf8_drafts .pf8_btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 18px; color: var(--ink); background: transparent; font-size: 13.5px; }
|
|
297
297
|
.pf_v8 .pf8_drafts .pf8_lk { padding: 0; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; color: var(--ink2); background: none; font-size: 13px; }
|
|
298
298
|
.pf_root.pf_v2 .pf_footer { max-width: 1080px; margin: 0 auto; padding: 0 40px 56px; border-top: 0; }
|
|
299
|
+
.pf_root.pf_v2:has(.pf8_narrow) .pf_footer { max-width: 860px; }
|
|
300
|
+
.pf_root.pf_v2:has(.pf8_shopw) .pf_footer, .pf_root.pf_v2:has(.pf8_histwrap) .pf_footer { max-width: 920px; }
|
|
299
301
|
.pf_root.pf_v2 .pf_footer .pf_details { border-top: 0; }
|
|
300
|
-
.pf_root.pf_v2 .pf_footer .pf_details > summary { font-size: 13px; color: var(--ink3); }
|
|
301
|
-
.pf_root.pf_v2 .pf_footer .pf_details > summary { list-style: none; cursor: pointer; }
|
|
302
|
+
.pf_root.pf_v2 .pf_footer .pf_details > summary { min-height: 26px; padding-block: 2px; font-size: 13px; color: var(--ink3); list-style: none; cursor: pointer; }
|
|
302
303
|
.pf_root.pf_v2 .pf_footer .pf_details > summary::-webkit-details-marker { display: none; }
|
|
303
304
|
.pf_root.pf_v2 .pf_footer .pf_details > summary::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 7px; vertical-align: 1px; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
|
|
304
305
|
.pf_root.pf_v2 .pf_footer .pf_details[open] > summary::before { vertical-align: 0; border-left: 0; border-top: 5px solid currentColor; border-right: 4px solid transparent; border-bottom: 0; border-left: 4px solid transparent; }
|
|
306
|
+
.pf_root.pf_v2:has(.pfv_result_grid) > .pf_inner { padding-top: 10px; }
|
|
307
|
+
.pf_v8.pf8_findpage:has(.pfv_result_grid) .pf8_wrap { padding-top: 12px; padding-bottom: 14px; }
|
|
308
|
+
.pf_v8.pf8_findpage:has(.pfv_result_grid) .pf8_top { margin-bottom: 16px; }
|
|
309
|
+
.pf_v8.pf8_findpage:has(.pfv_result_grid) .pf8_folds { margin-top: 12px; }
|
|
310
|
+
.pf_root.pf_v2:has(.pfv_result_grid) .pf_footer { margin-top: 8px; padding-bottom: 18px; }
|
|
305
311
|
.pf_v8.pf8_flowback { width: calc(100% - 80px); max-width: 840px; margin: 0 auto 12px; }
|
|
306
312
|
@container finder (max-width: 700px) { .pf_v8.pf8_flowback { width: calc(100% - 32px); } }
|
|
307
313
|
@container finder (max-width: 700px) { .pf_v8 .pf8_oppcard { max-width: none; } }
|
|
@@ -550,5 +556,18 @@ export const v8Css = `
|
|
|
550
556
|
.pf_modal_ws { margin-top: 14px; display: grid; gap: 6px; font-size: 13px; color: var(--ink2); }
|
|
551
557
|
.pf_modal_ws select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
|
|
552
558
|
.pf_modal_acts { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
|
|
559
|
+
.pf_v8 .pf8_exec_bar { display: flex; align-items: safe center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; min-inline-size: 0; }
|
|
560
|
+
.pf_v8 .pf8_exec_plan_main { display: flex; align-items: baseline; gap: 8px 10px; flex-wrap: wrap; flex: 1 1 260px; min-inline-size: 0; }
|
|
561
|
+
.pf_v8 .pf8_exec_kicker { font-size: 12px; color: var(--ink3); white-space: nowrap; }
|
|
562
|
+
.pf_v8 .pf8_exec_title { font: 500 15px/1.45 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
|
|
563
|
+
.pf_v8 .pf8_exec_chips { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-inline-size: 0; }
|
|
564
|
+
.pf_v8 .pf8_exec_chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; background: var(--subtle); color: var(--ink2); max-inline-size: 100%; }
|
|
565
|
+
.pf_v8 .pf8_exec_chip.have { background: color-mix(in srgb, var(--have) 11%, transparent); color: color-mix(in srgb, var(--have) 88%, var(--ink)); }
|
|
566
|
+
.pf_v8 .pf8_exec_chip.build { background: color-mix(in srgb, var(--build) 12%, transparent); color: color-mix(in srgb, var(--build) 80%, var(--ink)); }
|
|
567
|
+
.pf_v8 .pf8_exec_chip code { font: 500 11.5px/1 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-inline-size: 220px; }
|
|
568
|
+
.pf_v8 .pf8_exec_acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
|
|
569
|
+
.pf_v8 .pf8_exec_recovery { margin-top: 10px; display: grid; gap: 8px; }
|
|
570
|
+
.pf_v8 .pf8_exec_details { margin-top: 8px; }
|
|
571
|
+
.pf_v8 .pf8_exec_details > summary { min-height: 24px; padding-block: 2px; line-height: 1.5; }
|
|
553
572
|
|
|
554
573
|
`;
|