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

推荐订阅源

M
MIT News - Artificial intelligence
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
博客园 - Franky
腾讯CDC
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
V
V2EX
N
Netflix TechBlog - Medium
量子位
Jina AI
Jina AI
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
爱范儿
爱范儿
博客园 - 叶小钗
D
Docker
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss

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
fix: preserve clawhub install selectors · openclaw/opencl...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -408,8 +408,9 @@ describe("plugins cli install", () => {

408408

expect(writePersistedInstalledPluginIndexInstallRecords).toHaveBeenCalledWith({

409409

demo: expect.objectContaining({

410410

source: "clawhub",

411-

spec: "clawhub:demo@1.2.3",

411+

spec: "clawhub:demo",

412412

installPath: cliInstallPath("demo"),

413+

version: "1.2.3",

413414

clawhubPackage: "demo",

414415

clawhubFamily: "code-plugin",

415416

clawhubChannel: "official",

@@ -491,6 +492,48 @@ describe("plugins cli install", () => {

491492

);

492493

});

493494495+

it("keeps explicit ClawHub versions pinned in install records", async () => {

496+

const cfg = {

497+

plugins: {

498+

entries: {},

499+

},

500+

} as OpenClawConfig;

501+

const enabledCfg = createEnabledPluginConfig("demo");

502+503+

loadConfig.mockReturnValue(cfg);

504+

parseClawHubPluginSpec.mockReturnValue({ name: "demo", version: "1.2.3" });

505+

installPluginFromClawHub.mockResolvedValue(

506+

createClawHubInstallResult({

507+

pluginId: "demo",

508+

packageName: "demo",

509+

version: "1.2.3",

510+

channel: "official",

511+

}),

512+

);

513+

enablePluginInConfig.mockReturnValue({ config: enabledCfg });

514+

applyExclusiveSlotSelection.mockReturnValue({

515+

config: enabledCfg,

516+

warnings: [],

517+

});

518+519+

await runPluginsCommand(["plugins", "install", "clawhub:demo@1.2.3"]);

520+521+

expect(installPluginFromClawHub).toHaveBeenCalledWith(

522+

expect.objectContaining({

523+

spec: "clawhub:demo@1.2.3",

524+

}),

525+

);

526+

expect(writePersistedInstalledPluginIndexInstallRecords).toHaveBeenCalledWith({

527+

demo: expect.objectContaining({

528+

source: "clawhub",

529+

spec: "clawhub:demo@1.2.3",

530+

installPath: cliInstallPath("demo"),

531+

version: "1.2.3",

532+

clawhubPackage: "demo",

533+

}),

534+

});

535+

});

536+494537

it("prefers ClawHub before npm for bare plugin specs", async () => {

495538

const cfg = {

496539

plugins: {

@@ -524,14 +567,54 @@ describe("plugins cli install", () => {

524567

expect(writePersistedInstalledPluginIndexInstallRecords).toHaveBeenCalledWith({

525568

demo: expect.objectContaining({

526569

source: "clawhub",

527-

spec: "clawhub:demo@1.2.3",

570+

spec: "clawhub:demo",

528571

installPath: cliInstallPath("demo"),

572+

version: "1.2.3",

529573

clawhubPackage: "demo",

530574

}),

531575

});

532576

expect(writeConfigFile).toHaveBeenCalledWith(enabledCfg);

533577

});

534578579+

it("keeps explicit bare ClawHub selectors in install records", async () => {

580+

const cfg = {

581+

plugins: {

582+

entries: {},

583+

},

584+

} as OpenClawConfig;

585+

const enabledCfg = createEnabledPluginConfig("demo");

586+

loadConfig.mockReturnValue(cfg);

587+

installPluginFromClawHub.mockResolvedValue(

588+

createClawHubInstallResult({

589+

pluginId: "demo",

590+

packageName: "demo",

591+

version: "1.2.3-beta.1",

592+

channel: "community",

593+

}),

594+

);

595+

enablePluginInConfig.mockReturnValue({ config: enabledCfg });

596+

applyExclusiveSlotSelection.mockReturnValue({

597+

config: enabledCfg,

598+

warnings: [],

599+

});

600+601+

await runPluginsCommand(["plugins", "install", "demo@beta"]);

602+603+

expect(installPluginFromClawHub).toHaveBeenCalledWith(

604+

expect.objectContaining({

605+

spec: "clawhub:demo@beta",

606+

}),

607+

);

608+

expect(writePersistedInstalledPluginIndexInstallRecords).toHaveBeenCalledWith({

609+

demo: expect.objectContaining({

610+

source: "clawhub",

611+

spec: "clawhub:demo@beta",

612+

version: "1.2.3-beta.1",

613+

clawhubPackage: "demo",

614+

}),

615+

});

616+

});

617+535618

it("falls back to npm when ClawHub does not have the package", async () => {

536619

primeNpmPluginFallback();

537620