推进 INI 面板 shell handoff checklist

This commit is contained in:
2026-06-15 10:07:44 +08:00
parent 2a7485c14d
commit c92021fa82
10 changed files with 402 additions and 5 deletions

View File

@@ -81,6 +81,7 @@
!launchApi?.getShellSessionHandoffSnapshot ||
!launchApi?.getShellSessionHandoffRenderState ||
!launchApi?.getShellSessionHandoffActionPlan ||
!launchApi?.getShellSessionHandoffChecklist ||
!launchApi?.getLauncherLinks ||
!launchApi?.getControlPageApiMethods
) {
@@ -120,7 +121,7 @@
);
assertEqual(
launchApiManifest.methods.join(","),
"isSupportedLaunchApiManifest,getLaunchApiSchema,getLaunchApiManifest,getShellIntegrationSchema,getShellIntegrationManifest,getShellIntegrationReadiness,getShellSessionHandoffSummarySchema,getShellSessionHandoffSummary,isSupportedShellSessionHandoffSummary,getShellSessionHandoffCompatibilityReport,getShellSessionHandoffDisplayViewModel,getShellSessionHandoffSnapshot,getShellSessionHandoffRenderState,getShellSessionHandoffActionPlan,getLauncherLinks,getControlPageApiMethods",
"isSupportedLaunchApiManifest,getLaunchApiSchema,getLaunchApiManifest,getShellIntegrationSchema,getShellIntegrationManifest,getShellIntegrationReadiness,getShellSessionHandoffSummarySchema,getShellSessionHandoffSummary,isSupportedShellSessionHandoffSummary,getShellSessionHandoffCompatibilityReport,getShellSessionHandoffDisplayViewModel,getShellSessionHandoffSnapshot,getShellSessionHandoffRenderState,getShellSessionHandoffActionPlan,getShellSessionHandoffChecklist,getLauncherLinks,getControlPageApiMethods",
"launch API manifest methods",
);
const shellIntegrationSchema = launchApi.getShellIntegrationSchema();
@@ -133,6 +134,7 @@
const shellSessionHandoffSnapshot = launchApi.getShellSessionHandoffSnapshot();
const shellSessionHandoffRenderState = launchApi.getShellSessionHandoffRenderState();
const shellSessionHandoffActionPlan = launchApi.getShellSessionHandoffActionPlan();
const shellSessionHandoffChecklist = launchApi.getShellSessionHandoffChecklist();
assertEqual(
shellIntegrationSchema.manifestVersion,
1,
@@ -263,6 +265,26 @@
"readControlPageStatus",
"shell session handoff action-plan read method",
);
assertEqual(
shellSessionHandoffChecklist.checklistVersion,
1,
"shell session handoff checklist version",
);
assertEqual(
shellSessionHandoffChecklist.ready,
true,
"shell session handoff checklist readiness",
);
assertEqual(
shellSessionHandoffChecklist.checks.map(({ status }) => status).join(","),
"pass,pass,pass,pass,pass",
"shell session handoff checklist checks",
);
assertEqual(
shellSessionHandoffChecklist.nextStepIds.join(","),
"open-control-page,read-readonly-status",
"shell session handoff checklist next step ids",
);
assertEqual(
JSON.stringify(shellSessionHandoffSnapshot.readiness),
JSON.stringify(shellIntegrationReadiness),
@@ -288,6 +310,11 @@
JSON.stringify(shellSessionHandoffRenderState.rows),
"shell session handoff action-plan rows",
);
assertEqual(
JSON.stringify(shellSessionHandoffChecklist.displayRows),
JSON.stringify(shellSessionHandoffRenderState.rows),
"shell session handoff checklist rows",
);
assertEqual(
launchDoc.querySelector("[data-handoff-status]").textContent,
"Ready: No blocking reasons",