

























@@ -1313,9 +1313,8 @@ describe("migrateApplyCommand", () => {
13131313expect(mocks.backupCreateCommand).not.toHaveBeenCalled();
13141314});
131513151316-it("includes Codex app verification warnings in JSON dry-run output", async () => {
1317-const warning =
1318-"Codex app-backed plugins were planned without source app accessibility verification.";
1316+it("includes provider warnings in JSON dry-run output", async () => {
1317+const warning = "Provider warning.";
13191318const planned = codexPluginPlan({ warnings: [warning] });
13201319const logs: string[] = [];
13211320const errors: string[] = [];
@@ -1341,45 +1340,4 @@ describe("migrateApplyCommand", () => {
13411340const logPayload = JSON.parse(logs[0] ?? "{}") as { warnings?: unknown };
13421341expect(logPayload.warnings).toEqual([warning]);
13431342});
1344-1345-it("drops Codex app verification warning after plugin selection excludes app-backed items", async () => {
1346-const warning =
1347-"Codex app-backed plugins were planned without source app accessibility verification.";
1348-const base = codexPluginPlan();
1349-const items = [...base.items];
1350-const gmailIndex = items.findIndex((item) => item.id === "plugin:gmail");
1351-const gmailItem = items[gmailIndex];
1352-if (!gmailItem) {
1353-throw new Error("Expected gmail plugin item");
1354-}
1355-items[gmailIndex] = {
1356- ...gmailItem,
1357-details: {
1358- ...gmailItem.details,
1359-sourceAppVerification: "not_run",
1360-},
1361-};
1362-const planned = codexPluginPlan({
1363-warnings: [warning],
1364- items,
1365-});
1366-const logs: string[] = [];
1367-const jsonRuntime: RuntimeEnv = {
1368- ...runtime,
1369-log(message) {
1370-logs.push(String(message));
1371-},
1372-};
1373-mocks.provider.plan.mockResolvedValue(planned);
1374-1375-await migrateDefaultCommand(jsonRuntime, {
1376-provider: "codex",
1377-plugins: ["google-calendar"],
1378-dryRun: true,
1379-json: true,
1380-});
1381-1382-const logPayload = JSON.parse(logs[0] ?? "{}") as { warnings?: unknown };
1383-expect(logPayload.warnings).toBeUndefined();
1384-});
13851343});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。