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

推荐订阅源

WordPress大学
WordPress大学
Jina AI
Jina AI
小众软件
小众软件
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
D
DataBreaches.Net
腾讯CDC
V
Visual Studio Blog
博客园 - 叶小钗
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
U
Unit 42
博客园 - 司徒正美
博客园 - 聂微东

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
refactor(agents): remove stale wrapper exports · openclaw...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main

@@ -4,9 +4,9 @@ import fs from "node:fs/promises";

44

import os from "node:os";

55

import path from "node:path";

66

import { afterAll, beforeAll, describe, expect, it } from "vitest";

7-

import { loadExtraBootstrapFiles, loadExtraBootstrapFilesWithDiagnostics } from "./workspace.js";

7+

import { loadExtraBootstrapFilesWithDiagnostics } from "./workspace.js";

889-

describe("loadExtraBootstrapFiles", () => {

9+

describe("loadExtraBootstrapFilesWithDiagnostics", () => {

1010

let fixtureRoot = "";

1111

let fixtureCount = 0;

1212

@@ -26,14 +26,19 @@ describe("loadExtraBootstrapFiles", () => {

2626

}

2727

});

282829+

async function loadExtraBootstrapFileList(dir: string, extraPatterns: string[]) {

30+

const { files } = await loadExtraBootstrapFilesWithDiagnostics(dir, extraPatterns);

31+

return files;

32+

}

33+2934

it("loads recognized bootstrap files from glob patterns", async () => {

3035

const workspaceDir = await createWorkspaceDir("glob");

3136

const packageDir = path.join(workspaceDir, "packages", "core");

3237

await fs.mkdir(packageDir, { recursive: true });

3338

await fs.writeFile(path.join(packageDir, "TOOLS.md"), "tools", "utf-8");

3439

await fs.writeFile(path.join(packageDir, "README.md"), "not bootstrap", "utf-8");

354036-

const files = await loadExtraBootstrapFiles(workspaceDir, ["packages/*/*"]);

41+

const files = await loadExtraBootstrapFileList(workspaceDir, ["packages/*/*"]);

37423843

expect(files).toStrictEqual([

3944

{

@@ -51,7 +56,7 @@ describe("loadExtraBootstrapFiles", () => {

5156

await fs.mkdir(packageDir, { recursive: true });

5257

await fs.writeFile(path.join(packageDir, "AGENTS.md"), "agents", "utf-8");

535854-

const files = await loadExtraBootstrapFiles(workspaceDir, ["./packages/*/AGENTS.md"]);

59+

const files = await loadExtraBootstrapFileList(workspaceDir, ["./packages/*/AGENTS.md"]);

55605661

expect(files).toStrictEqual([

5762

{

@@ -69,7 +74,7 @@ describe("loadExtraBootstrapFiles", () => {

6974

await fs.mkdir(packageDir, { recursive: true });

7075

await fs.writeFile(path.join(packageDir, "AGENTS.md"), "literal agents", "utf-8");

717672-

const files = await loadExtraBootstrapFiles(workspaceDir, ["pkg[1]/AGENTS.md"]);

77+

const files = await loadExtraBootstrapFileList(workspaceDir, ["pkg[1]/AGENTS.md"]);

73787479

expect(files).toStrictEqual([

7580

{

@@ -89,7 +94,7 @@ describe("loadExtraBootstrapFiles", () => {

8994

await fs.mkdir(outsideDir, { recursive: true });

9095

await fs.writeFile(path.join(outsideDir, "AGENTS.md"), "outside", "utf-8");

919692-

const files = await loadExtraBootstrapFiles(workspaceDir, ["../outside/AGENTS.md"]);

97+

const files = await loadExtraBootstrapFileList(workspaceDir, ["../outside/AGENTS.md"]);

93989499

expect(files).toHaveLength(0);

95100

});

@@ -106,7 +111,7 @@ describe("loadExtraBootstrapFiles", () => {

106111

await fs.writeFile(path.join(realWorkspace, "AGENTS.md"), "linked agents", "utf-8");

107112

await fs.symlink(realWorkspace, linkedWorkspace, "dir");

108113109-

const files = await loadExtraBootstrapFiles(linkedWorkspace, ["AGENTS.md"]);

114+

const files = await loadExtraBootstrapFileList(linkedWorkspace, ["AGENTS.md"]);

110115111116

expect(files).toStrictEqual([

112117

{

@@ -142,7 +147,7 @@ describe("loadExtraBootstrapFiles", () => {

142147

throw err;

143148

}

144149145-

const files = await loadExtraBootstrapFiles(workspaceDir, ["AGENTS.md"]);

150+

const files = await loadExtraBootstrapFileList(workspaceDir, ["AGENTS.md"]);

146151

expect(files).toHaveLength(0);

147152

});

148153