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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Jina AI
Jina AI
The Cloudflare Blog
V
Visual Studio Blog
博客园_首页
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
博客园 - Franky

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
chore: remove unused agent helpers · openclaw/openclaw@0b...
steipete · 2026-05-31 · via Recent Commits to openclaw:main

@@ -313,23 +313,6 @@ function isManagedByGlobalPackageManager(

313313

});

314314

}

315315316-

export function getSelfUpdateCommand(

317-

packageName: string,

318-

npmCommand?: string[],

319-

updatePackageName = packageName,

320-

): SelfUpdateCommand | undefined {

321-

const method = detectInstallMethod();

322-

const command = getSelfUpdateCommandForMethod(method, packageName, updatePackageName, npmCommand);

323-

if (

324-

!command ||

325-

!isManagedByGlobalPackageManager(method, packageName, npmCommand) ||

326-

!isSelfUpdatePathWritable()

327-

) {

328-

return undefined;

329-

}

330-

return command;

331-

}

332-333316

export function getSelfUpdateUnavailableInstruction(

334317

packageName: string,

335318

npmCommand?: string[],

@@ -352,15 +335,6 @@ export function getSelfUpdateUnavailableInstruction(

352335

return `Update ${updatePackageName} using the package manager, wrapper, or source checkout that provides this installation.`;

353336

}

354337355-

export function getUpdateInstruction(packageName: string): string {

356-

const method = detectInstallMethod();

357-

const command = getSelfUpdateCommandForMethod(method, packageName);

358-

if (command) {

359-

return `Run: ${command.display}`;

360-

}

361-

return getSelfUpdateUnavailableInstruction(packageName);

362-

}

363-364338

// =============================================================================

365339

// Package Asset Paths (shipped with executable)

366340

// =============================================================================

@@ -439,29 +413,6 @@ export function getExamplesPath(): string {

439413

return resolve(join(getPackageDir(), "examples"));

440414

}

441415442-

/** Get path to CHANGELOG.md */

443-

export function getChangelogPath(): string {

444-

return resolve(join(getPackageDir(), "CHANGELOG.md"));

445-

}

446-447-

/**

448-

* Get path to built-in interactive assets directory.

449-

* - For Bun binary: assets/ next to executable

450-

* - For Node.js (dist/): dist/agents/modes/interactive/assets/

451-

* - For tsx (src/): src/agents/modes/interactive/assets/

452-

*/

453-

export function getInteractiveAssetsDir(): string {

454-

if (isBunBinary) {

455-

return join(getPackageDir(), "assets");

456-

}

457-

return join(getPackageSourceOrDistDir(), "agents", "modes", "interactive", "assets");

458-

}

459-460-

/** Get path to a bundled interactive asset */

461-

export function getBundledInteractiveAssetPath(name: string): string {

462-

return join(getInteractiveAssetsDir(), name);

463-

}

464-465416

// =============================================================================

466417

// App Config (from package.json openclawConfig)

467418

// =============================================================================

@@ -478,14 +429,11 @@ interface PackageJson {

478429

const pkg = JSON.parse(readFileSync(getPackageJsonPath(), "utf-8")) as PackageJson;

479430480431

const openClawConfigName: string | undefined = pkg.openclawConfig?.name;

481-

export const PACKAGE_NAME: string = pkg.name || "openclaw/plugin-sdk/agent-sessions";

482432

export const APP_NAME: string = openClawConfigName || "openclaw";

483-

export const APP_TITLE: string = openClawConfigName ? APP_NAME : "OpenClaw";

484433

export const CONFIG_DIR_NAME: string = pkg.openclawConfig?.configDir || ".openclaw";

485434

export const VERSION: string = pkg.version || "0.0.0";

486435487436

export const ENV_AGENT_DIR = `${APP_NAME.toUpperCase()}_AGENT_DIR`;

488-

export const ENV_SESSION_DIR = `${APP_NAME.toUpperCase()}_AGENT_SESSION_DIR`;

489437490438

export function expandTildePath(path: string): string {

491439

if (path === "~") {

@@ -497,14 +445,6 @@ export function expandTildePath(path: string): string {

497445

return path;

498446

}

499447500-

const DEFAULT_SHARE_VIEWER_URL = "https://openclaw.ai/session/";

501-502-

/** Get the share viewer URL for a gist ID */

503-

export function getShareViewerUrl(gistId: string): string {

504-

const baseUrl = process.env.OPENCLAW_SHARE_VIEWER_URL || DEFAULT_SHARE_VIEWER_URL;

505-

return `${baseUrl}#${gistId}`;

506-

}

507-508448

// =============================================================================

509449

// User Config Paths (~/.openclaw/agent/*)

510450

// =============================================================================

@@ -523,42 +463,12 @@ export function getCustomThemesDir(): string {

523463

return join(getAgentDir(), "themes");

524464

}

525465526-

/** Get path to models.json */

527-

export function getModelsPath(): string {

528-

return join(getAgentDir(), "models.json");

529-

}

530-531-

/** Get path to auth.json */

532-

export function getAuthPath(): string {

533-

return join(getAgentDir(), "auth.json");

534-

}

535-536-

/** Get path to settings.json */

537-

export function getSettingsPath(): string {

538-

return join(getAgentDir(), "settings.json");

539-

}

540-541-

/** Get path to tools directory */

542-

export function getToolsDir(): string {

543-

return join(getAgentDir(), "tools");

544-

}

545-546466

/** Get path to managed binaries directory (fd, rg) */

547467

export function getBinDir(): string {

548468

return join(getAgentDir(), "bin");

549469

}

550470551-

/** Get path to prompt templates directory */

552-

export function getPromptsDir(): string {

553-

return join(getAgentDir(), "prompts");

554-

}

555-556471

/** Get path to sessions directory */

557472

export function getSessionsDir(): string {

558473

return join(getAgentDir(), "sessions");

559474

}

560-561-

/** Get path to debug log file */

562-

export function getDebugLogPath(): string {

563-

return join(getAgentDir(), `${APP_NAME}-debug.log`);

564-

}