惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
Recorded Future
Recorded Future
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
N
News | PayPal Newsroom
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Help Net Security
Help Net Security
博客园 - Franky
SecWiki News
SecWiki News
Recent Announcements
Recent Announcements
T
Troy Hunt's Blog
The Register - Security
The Register - Security
The Last Watchdog
The Last Watchdog
Webroot Blog
Webroot Blog
S
Security Affairs
博客园 - 司徒正美
S
Schneier on Security
I
InfoQ
博客园_首页
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threat Research - Cisco Blogs
Forbes - Security
Forbes - Security
腾讯CDC
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic
Cloudbric
Cloudbric
T
The Exploit Database - CXSecurity.com
P
Proofpoint News Feed
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Recent Commits to openclaw:main
Recent Commits to openclaw:main
B
Blog
V
Vulnerabilities – Threatpost
C
Check Point Blog
Google DeepMind News
Google DeepMind News
Google Online Security Blog
Google Online Security Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
Cisco Blogs
Schneier on Security
Schneier on Security
O
OpenAI News
K
Kaspersky official blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
feat: add update finalization command · openclaw/openclaw@92f8c1e
shakkernerd · 2026-05-15 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -5,6 +5,7 @@ import { registerUpdateCli } from "./update-cli.js";

55
66

const mocks = vi.hoisted(() => ({

77

updateCommand: vi.fn(async (_opts: unknown) => {}),

8+

updateFinalizeCommand: vi.fn(async (_opts: unknown) => {}),

89

updateStatusCommand: vi.fn(async (_opts: unknown) => {}),

910

updateWizardCommand: vi.fn(async (_opts: unknown) => {}),

1011

defaultRuntime: {

@@ -16,10 +17,17 @@ const mocks = vi.hoisted(() => ({

1617

},

1718

}));

1819
19-

const { updateCommand, updateStatusCommand, updateWizardCommand, defaultRuntime } = mocks;

20+

const {

21+

updateCommand,

22+

updateFinalizeCommand,

23+

updateStatusCommand,

24+

updateWizardCommand,

25+

defaultRuntime,

26+

} = mocks;

2027
2128

vi.mock("./update-cli/update-command.js", () => ({

2229

updateCommand: (opts: unknown) => mocks.updateCommand(opts),

30+

updateFinalizeCommand: (opts: unknown) => mocks.updateFinalizeCommand(opts),

2331

}));

2432
2533

vi.mock("./update-cli/status.js", () => ({

@@ -41,6 +49,7 @@ function firstCallOptions(mock: { mock: { calls: unknown[][] } }) {

4149

describe("update cli option collisions", () => {

4250

beforeEach(() => {

4351

updateCommand.mockClear();

52+

updateFinalizeCommand.mockClear();

4453

updateStatusCommand.mockClear();

4554

updateWizardCommand.mockClear();

4655

defaultRuntime.log.mockClear();

@@ -61,6 +70,23 @@ describe("update cli option collisions", () => {

6170

expect((opts as { json?: boolean; timeout?: string } | undefined)?.timeout).toBe("9");

6271

},

6372

},

73+

{

74+

name: "forwards parent-captured --json/--timeout to hidden `update finalize`",

75+

argv: ["update", "finalize", "--json", "--timeout", "17", "--no-restart"],

76+

assert: () => {

77+

expect(updateFinalizeCommand).toHaveBeenCalledTimes(1);

78+

const opts = firstCallOptions(updateFinalizeCommand);

79+

expect(

80+

(opts as { json?: boolean; timeout?: string; restart?: boolean } | undefined)?.json,

81+

).toBe(true);

82+

expect(

83+

(opts as { json?: boolean; timeout?: string; restart?: boolean } | undefined)?.timeout,

84+

).toBe("17");

85+

expect(

86+

(opts as { json?: boolean; timeout?: string; restart?: boolean } | undefined)?.restart,

87+

).toBe(false);

88+

},

89+

},

6490

{

6591

name: "forwards parent-captured --timeout to `update wizard`",

6692

argv: ["update", "wizard", "--timeout", "13"],

Original file line numberDiff line numberDiff line change

@@ -278,7 +278,8 @@ const { runCommandWithTimeout } = await import("../process/exec.js");

278278

const { runDaemonRestart, runDaemonInstall } = await import("./daemon-cli.js");

279279

const { doctorCommand } = await import("../commands/doctor.js");

280280

const { defaultRuntime } = await import("../runtime.js");

281-

const { updateCommand, updateStatusCommand, updateWizardCommand } = await import("./update-cli.js");

281+

const { updateCommand, updateFinalizeCommand, updateStatusCommand, updateWizardCommand } =

282+

await import("./update-cli.js");

282283

const updateCliShared = await import("./update-cli/shared.js");

283284

const { resolveGitInstallDir } = updateCliShared;

284285

const { spawnSync } = await import("node:child_process");

@@ -3356,6 +3357,48 @@ describe("update-cli", () => {

33563357

}

33573358

});

33583359
3360+

it("updateFinalizeCommand runs doctor and plugin convergence with full update env", async () => {

3361+

await withEnvAsync(

3362+

{

3363+

OPENCLAW_UPDATE_IN_PROGRESS: undefined,

3364+

OPENCLAW_UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE: undefined,

3365+

},

3366+

async () => {

3367+

let doctorEnv: NodeJS.ProcessEnv | undefined;

3368+

vi.mocked(doctorCommand).mockImplementationOnce(async () => {

3369+

doctorEnv = { ...process.env };

3370+

});

3371+

vi.mocked(defaultRuntime.writeJson).mockClear();

3372+
3373+

await updateFinalizeCommand({ json: true, yes: true, timeout: "9", restart: false });

3374+
3375+

expect(doctorEnv?.OPENCLAW_UPDATE_IN_PROGRESS).toBe("1");

3376+

expect(doctorEnv?.OPENCLAW_UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE).toBe("1");

3377+

expect(process.env.OPENCLAW_UPDATE_IN_PROGRESS).toBeUndefined();

3378+

expect(process.env.OPENCLAW_UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE).toBeUndefined();

3379+

expect(doctorCommand).toHaveBeenCalledWith(defaultRuntime, {

3380+

nonInteractive: true,

3381+

yes: true,

3382+

});

3383+

expect(syncPluginCall()?.channel).toBe("stable");

3384+

expect(lastNpmPluginUpdateCall()?.timeoutMs).toBe(9_000);

3385+

const output = lastWriteJsonCall() as

3386+

| {

3387+

status?: string;

3388+

mode?: string;

3389+

restart?: boolean;

3390+

postUpdate?: { doctor?: { status?: string }; plugins?: { status?: string } };

3391+

}

3392+

| undefined;

3393+

expect(output?.status).toBe("ok");

3394+

expect(output?.mode).toBe("finalize");

3395+

expect(output?.restart).toBe(false);

3396+

expect(output?.postUpdate?.doctor?.status).toBe("ok");

3397+

expect(output?.postUpdate?.plugins?.status).toBe("ok");

3398+

},

3399+

);

3400+

});

3401+
33593402

it.each([

33603403

{

33613404

name: "update command invalid timeout",

Original file line numberDiff line numberDiff line change

@@ -6,15 +6,21 @@ import { inheritOptionFromParent } from "./command-options.js";

66

import { formatHelpExamples } from "./help-format.js";

77

import {

88

type UpdateCommandOptions,

9+

type UpdateFinalizeOptions,

910

type UpdateStatusOptions,

1011

type UpdateWizardOptions,

1112

} from "./update-cli/shared.js";

1213

import { updateStatusCommand } from "./update-cli/status.js";

13-

import { updateCommand } from "./update-cli/update-command.js";

14+

import { updateCommand, updateFinalizeCommand } from "./update-cli/update-command.js";

1415

import { updateWizardCommand } from "./update-cli/wizard.js";

1516
16-

export { updateCommand, updateStatusCommand, updateWizardCommand };

17-

export type { UpdateCommandOptions, UpdateStatusOptions, UpdateWizardOptions };

17+

export { updateCommand, updateFinalizeCommand, updateStatusCommand, updateWizardCommand };

18+

export type {

19+

UpdateCommandOptions,

20+

UpdateFinalizeOptions,

21+

UpdateStatusOptions,

22+

UpdateWizardOptions,

23+

};

1824
1925

function inheritedUpdateJson(command?: Command): boolean {

2026

return Boolean(inheritOptionFromParent<boolean>(command, "json"));

@@ -106,6 +112,32 @@ ${theme.muted("Docs:")} ${formatDocsLink("/cli/update", "docs.openclaw.ai/cli/up

106112

}

107113

});

108114
115+

update

116+

.command("finalize", { hidden: true })

117+

.description("Run OpenClaw update finalization after an external core runtime change")

118+

.option("--json", "Output result as JSON", false)

119+

.option("--channel <stable|beta|dev>", "Persist update channel for finalization")

120+

.option(

121+

"--timeout <seconds>",

122+

"Timeout for update finalization steps in seconds (default: 1800)",

123+

)

124+

.option("--yes", "Skip confirmation prompts (non-interactive)", false)

125+

.option("--no-restart", "Accepted for update command parity; finalization never restarts")

126+

.action(async (opts, command) => {

127+

try {

128+

await updateFinalizeCommand({

129+

json: Boolean(opts.json) || inheritedUpdateJson(command),

130+

channel: opts.channel as string | undefined,

131+

timeout: inheritedUpdateTimeout(opts, command),

132+

yes: Boolean(opts.yes),

133+

restart: Boolean(opts.restart),

134+

});

135+

} catch (err) {

136+

defaultRuntime.error(String(err));

137+

defaultRuntime.exit(1);

138+

}

139+

});

140+
109141

update

110142

.command("wizard")

111143

.description("Interactive update wizard")

Original file line numberDiff line numberDiff line change

@@ -39,6 +39,14 @@ export type UpdateStatusOptions = {

3939

timeout?: string;

4040

};

4141
42+

export type UpdateFinalizeOptions = {

43+

json?: boolean;

44+

channel?: string;

45+

timeout?: string;

46+

yes?: boolean;

47+

restart?: boolean;

48+

};

49+
4250

export type UpdateWizardOptions = {

4351

timeout?: string;

4452

};

Original file line numberDiff line numberDiff line change

@@ -114,6 +114,7 @@ import {

114114

runUpdateStep,

115115

tryWriteCompletionCache,

116116

type UpdateCommandOptions,

117+

type UpdateFinalizeOptions,

117118

} from "./shared.js";

118119

import { suppressDeprecations } from "./suppress-deprecations.js";

119120

@@ -1767,6 +1768,120 @@ async function runPostCorePluginUpdate(params: {

17671768

});

17681769

}

17691770
1771+

type UpdateFinalizeResult = {

1772+

status: "ok" | "warning" | "error";

1773+

mode: "finalize";

1774+

root: string;

1775+

channel: "stable" | "beta" | "dev";

1776+

restart: false;

1777+

postUpdate: {

1778+

doctor: {

1779+

status: "ok";

1780+

};

1781+

plugins: PostCorePluginUpdateResult;

1782+

};

1783+

};

1784+
1785+

function withUpdateFinalizationEnv<T>(run: () => Promise<T>): Promise<T> {

1786+

const previousUpdateInProgress = process.env.OPENCLAW_UPDATE_IN_PROGRESS;

1787+

const previousParentSupportsDoctorConfigWrite =

1788+

process.env[UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE_ENV];

1789+

process.env.OPENCLAW_UPDATE_IN_PROGRESS = "1";

1790+

process.env[UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE_ENV] = "1";

1791+

return run().finally(() => {

1792+

if (previousUpdateInProgress === undefined) {

1793+

delete process.env.OPENCLAW_UPDATE_IN_PROGRESS;

1794+

} else {

1795+

process.env.OPENCLAW_UPDATE_IN_PROGRESS = previousUpdateInProgress;

1796+

}

1797+

if (previousParentSupportsDoctorConfigWrite === undefined) {

1798+

delete process.env[UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE_ENV];

1799+

} else {

1800+

process.env[UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE_ENV] =

1801+

previousParentSupportsDoctorConfigWrite;

1802+

}

1803+

});

1804+

}

1805+
1806+

export async function updateFinalizeCommand(opts: UpdateFinalizeOptions): Promise<void> {

1807+

suppressDeprecations();

1808+

const timeoutMs = parseTimeoutMsOrExit(opts.timeout);

1809+

if (timeoutMs === null) {

1810+

return;

1811+

}

1812+

assertConfigWriteAllowedInCurrentMode();

1813+
1814+

const root = await resolveUpdateRoot();

1815+

let configSnapshot = await readConfigFileSnapshot();

1816+

const requestedChannel = normalizeUpdateChannel(opts.channel);

1817+

if (opts.channel && !requestedChannel) {

1818+

defaultRuntime.error(`--channel must be "stable", "beta", or "dev" (got "${opts.channel}")`);

1819+

defaultRuntime.exit(1);

1820+

return;

1821+

}

1822+

const storedChannel = configSnapshot.valid

1823+

? normalizeUpdateChannel(configSnapshot.config.update?.channel)

1824+

: null;

1825+

const channel = requestedChannel ?? storedChannel ?? DEFAULT_PACKAGE_CHANNEL;

1826+

if (requestedChannel) {

1827+

configSnapshot = await persistRequestedUpdateChannel({

1828+

configSnapshot,

1829+

requestedChannel,

1830+

});

1831+

}

1832+
1833+

const pluginInstallRecords = await loadInstalledPluginIndexInstallRecords();

1834+

const pluginUpdate = await withUpdateFinalizationEnv(async () => {

1835+

await createUpdateConfigSnapshot();

1836+

await doctorCommand(defaultRuntime, {

1837+

nonInteractive: true,

1838+

yes: opts.yes === true,

1839+

});

1840+

return await runPostCorePluginUpdate({

1841+

root,

1842+

channel,

1843+

configSnapshot,

1844+

opts: {

1845+

json: opts.json,

1846+

timeout: opts.timeout,

1847+

yes: opts.yes,

1848+

restart: false,

1849+

},

1850+

timeoutMs: timeoutMs ?? DEFAULT_UPDATE_STEP_TIMEOUT_MS,

1851+

pluginInstallRecords,

1852+

});

1853+

});

1854+
1855+

const result: UpdateFinalizeResult = {

1856+

status:

1857+

pluginUpdate.status === "error"

1858+

? "error"

1859+

: pluginUpdate.status === "warning"

1860+

? "warning"

1861+

: "ok",

1862+

mode: "finalize",

1863+

root,

1864+

channel,

1865+

restart: false,

1866+

postUpdate: {

1867+

doctor: {

1868+

status: "ok",

1869+

},

1870+

plugins: pluginUpdate,

1871+

},

1872+

};

1873+
1874+

await tryWriteCompletionCache(root, Boolean(opts.json));

1875+

if (opts.json) {

1876+

defaultRuntime.writeJson(result);

1877+

} else if (result.status === "ok") {

1878+

defaultRuntime.log(theme.muted("Update finalization completed."));

1879+

}

1880+

if (result.status === "error") {

1881+

defaultRuntime.exit(1);

1882+

}

1883+

}

1884+
17701885

async function persistRequestedUpdateChannel(params: {

17711886

configSnapshot: Awaited<ReturnType<typeof readConfigFileSnapshot>>;

17721887

requestedChannel: "stable" | "beta" | "dev" | null;