docs: document repository scripts

This commit is contained in:
Peter Steinberger
2026-06-04 20:52:36 -04:00
parent 95d51c5fe8
commit b8d08f0cfd
173 changed files with 195 additions and 19 deletions

View File

@@ -1,3 +1,4 @@
// Credentials module supports OpenClaw QA credential workflows.
import { v } from "convex/values";
import { internal } from "./_generated/api";
import type { Id } from "./_generated/dataModel";

View File

@@ -1,3 +1,4 @@
// Crons module supports OpenClaw QA credential workflows.
import { cronJobs } from "convex/server";
import { internal } from "./_generated/api";

View File

@@ -1,3 +1,4 @@
// Http module supports OpenClaw QA credential workflows.
import { httpRouter } from "convex/server";
import { internal } from "./_generated/api";
import type { Id } from "./_generated/dataModel";

View File

@@ -1,3 +1,4 @@
// Payload Validation module supports OpenClaw QA credential workflows.
export class CredentialPayloadValidationError extends Error {
code: string;
httpStatus: number;

View File

@@ -1,3 +1,4 @@
// Schema module supports OpenClaw QA credential workflows.
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Analyze Plugin Sdk Usage script supports OpenClaw repository automation.
import { main } from "./ts-topology.ts";
const forwardedArgs = process.argv.slice(2);

View File

@@ -1,3 +1,4 @@
// Anthropic Prompt Probe script supports OpenClaw repository automation.
import { spawn } from "node:child_process";
// Live prompt probe for Anthropic setup-token and Claude CLI prompt-path debugging.
// Usage:

View File

@@ -1,3 +1,4 @@
// Bench Cli Startup script supports OpenClaw repository automation.
import { spawn } from "node:child_process";
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Bench Gateway Restart script supports OpenClaw repository automation.
import { spawn, spawnSync, type ChildProcessWithoutNullStreams } from "node:child_process";
import fs from "node:fs";
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";

View File

@@ -1,3 +1,4 @@
// Bench Gateway Startup script supports OpenClaw repository automation.
import { spawn, spawnSync } from "node:child_process";
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { request } from "node:http";

View File

@@ -1,3 +1,4 @@
// Bench Model script supports OpenClaw repository automation.
import { completeSimple, type Model } from "openclaw/plugin-sdk/llm";
type Usage = {

View File

@@ -1,3 +1,4 @@
// Check Codex App Server Protocol script supports OpenClaw repository automation.
import fs from "node:fs/promises";
import path from "node:path";
import {

View File

@@ -1,3 +1,4 @@
// Check File Utils helper supports OpenClaw script workflows.
import fs from "node:fs";
import path from "node:path";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Check Import Cycles script supports OpenClaw repository automation.
import { readFileSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";

View File

@@ -1,3 +1,4 @@
// Check Live Cache script supports OpenClaw repository automation.
import { runLiveCacheRegression } from "../src/agents/live-cache-regression-runner.js";
import { LIVE_CACHE_TEST_ENABLED, logLiveCache } from "../src/agents/live-cache-test-support.js";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Check Madge Import Cycles script supports OpenClaw repository automation.
import { readFileSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";

View File

@@ -1,3 +1,4 @@
// Check No Deprecated Channel Access script supports OpenClaw repository automation.
import fs from "node:fs";
import path from "node:path";
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";

View File

@@ -1,3 +1,4 @@
// Check No Extension Src Imports script supports OpenClaw repository automation.
import fs from "node:fs";
import path from "node:path";
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";

View File

@@ -1,3 +1,4 @@
// Check No Extension Test Core Imports script supports OpenClaw repository automation.
import fs from "node:fs";
import path from "node:path";
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";

View File

@@ -1,3 +1,4 @@
// Check No Monolithic Plugin Sdk Entry Imports script supports OpenClaw repository automation.
import fs from "node:fs";
import path from "node:path";
import { discoverOpenClawPlugins } from "../src/plugins/discovery.js";

View File

@@ -1,3 +1,4 @@
// Check Temp Path Guardrails script supports OpenClaw repository automation.
import { execFileSync } from "node:child_process";
import fs from "node:fs/promises";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Check Ts Max Loc script supports OpenClaw repository automation.
import { execFileSync } from "node:child_process";
import { existsSync } from "node:fs";
import { readFile } from "node:fs/promises";

View File

@@ -1,3 +1,4 @@
// Control Ui I18N Report script supports OpenClaw repository automation.
import { existsSync } from "node:fs";
import { readFile } from "node:fs/promises";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Control Ui I18N script supports OpenClaw repository automation.
import { spawn, spawnSync } from "node:child_process";
import { createHash } from "node:crypto";
import { existsSync } from "node:fs";

View File

@@ -1,3 +1,4 @@
// Control Ui Mock Dev script supports OpenClaw repository automation.
import path from "node:path";
import { fileURLToPath } from "node:url";
import { createServer, type Plugin, type ViteDevServer } from "vite";

View File

@@ -1,3 +1,4 @@
// Cron Usage Report script supports OpenClaw repository automation.
import fs from "node:fs/promises";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Debug Claude Usage script supports OpenClaw repository automation.
import { execFileSync } from "node:child_process";
import crypto from "node:crypto";
import fs from "node:fs";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env -S node --import tsx
// Channel Message Flows script supports OpenClaw repository automation.
import { setTimeout as sleep } from "node:timers/promises";
import { fileURLToPath } from "node:url";
import { Bot, type ApiClientOptions } from "grammy";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bun
// Discord Acp Plain Language Smoke script supports OpenClaw repository automation.
import { execFile } from "node:child_process";
// Manual ACP thread smoke for plain-language routing.
// Keep this script available for regression/debug validation. Do not delete.

View File

@@ -1,3 +1,4 @@
// Gateway Smoke script supports OpenClaw repository automation.
import { fileURLToPath } from "node:url";
import {
MIN_CLIENT_PROTOCOL_VERSION,

View File

@@ -1 +1,2 @@
// Gateway Ws Client script supports OpenClaw repository automation.
export * from "../lib/gateway-ws-client.ts";

View File

@@ -1,3 +1,4 @@
// Ios Node E2E script supports OpenClaw repository automation.
import {
MIN_CLIENT_PROTOCOL_VERSION,
PROTOCOL_VERSION,

View File

@@ -1,3 +1,4 @@
// Realtime Talk Live Smoke script supports OpenClaw repository automation.
import { mkdtemp, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Test Device Pair Telegram script supports OpenClaw repository automation.
import { sendMessageTelegram } from "../../extensions/telegram/runtime-api.js";
import { getRuntimeConfig } from "../../src/config/config.js";
import { matchPluginCommand, executePluginCommand } from "../../src/plugins/commands.js";

View File

@@ -1,3 +1,4 @@
// Tui Pty Test Watch script supports OpenClaw repository automation.
import { spawn } from "node:child_process";
import { mkdir, readFile, writeFile } from "node:fs/promises";
import { createRequire } from "node:module";

View File

@@ -1,3 +1,4 @@
// Diffs Shiki Curated script supports OpenClaw repository automation.
import {
createBundledHighlighter,
createCssVariablesTheme,

View File

@@ -1,3 +1,4 @@
// Cron Mcp Cleanup Docker Client script supports OpenClaw repository automation.
import { execFile } from "node:child_process";
import { randomUUID } from "node:crypto";
import fs from "node:fs/promises";

View File

@@ -1,3 +1,4 @@
// Cron Mcp Cleanup Seed script supports OpenClaw repository automation.
import fs from "node:fs/promises";
import { createRequire } from "node:module";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Session Log Mentions script supports OpenClaw repository automation.
import fs from "node:fs/promises";
import path from "node:path";
import { readPositiveIntEnv } from "./env-limits.mjs";

View File

@@ -1,3 +1,4 @@
// Temp State Dir script supports OpenClaw repository automation.
import { rmSync } from "node:fs";
import fs from "node:fs/promises";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Mcp Channel Limits script supports OpenClaw repository automation.
import { readPositiveIntEnv } from "./lib/env-limits.mjs";
export type McpChannelLimits = {

View File

@@ -1,3 +1,4 @@
// Mcp Channels Docker Client script supports OpenClaw repository automation.
import { randomUUID } from "node:crypto";
import {
assert,

View File

@@ -1,3 +1,4 @@
// Mcp Channels Seed script supports OpenClaw repository automation.
import fs from "node:fs/promises";
import os from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Mcp Client Temp State script supports OpenClaw repository automation.
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Mcp Code Mode Gateway Client script supports OpenClaw repository automation.
import path from "node:path";
import { setTimeout as setNodeTimeout, clearTimeout as clearNodeTimeout } from "node:timers";
import { pathToFileURL } from "node:url";

View File

@@ -1,3 +1,4 @@
// Mcp Code Mode Gateway Seed script supports OpenClaw repository automation.
import fs from "node:fs/promises";
import { createRequire } from "node:module";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Mcp Connect Timeout script supports OpenClaw repository automation.
type McpConnectTransport = {
close?(): Promise<void> | void;
};

View File

@@ -1,3 +1,4 @@
// Mcp Websocket Open script supports OpenClaw repository automation.
type WebSocketOpenHandle = {
close?: () => void;
off?: (event: "open" | "error" | "close", listener: (...args: unknown[]) => void) => void;

View File

@@ -1,3 +1,4 @@
// Openai Image Auth Docker Client script supports OpenClaw repository automation.
import http from "node:http";
import type { AddressInfo } from "node:net";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Agent Workspace script supports OpenClaw repository automation.
export function posixAgentWorkspaceScript(purpose: string): string {
return `set -eu
workspace="\${OPENCLAW_WORKSPACE_DIR:-$HOME/.openclaw/workspace}"

View File

@@ -1,3 +1,4 @@
// Common helper supports OpenClaw script workflows.
export * from "./filesystem.ts";
export * from "./env-limits.ts";
export * from "./host-command.ts";

View File

@@ -1,3 +1,4 @@
// Env Limits script supports OpenClaw repository automation.
import { die } from "./host-command.ts";
const positiveIntPattern = /^[1-9]\d*$/u;

View File

@@ -1,3 +1,4 @@
// Filesystem script supports OpenClaw repository automation.
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { access, mkdir, readFile, rm, writeFile } from "node:fs/promises";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Guest Transports script supports OpenClaw repository automation.
import { run } from "./host-command.ts";
import type { PhaseRunner } from "./phase-runner.ts";
import { encodePowerShell, psSingleQuote } from "./powershell.ts";

View File

@@ -1,3 +1,4 @@
// Host Command script supports OpenClaw repository automation.
import { spawn, spawnSync, type SpawnOptions, type SpawnSyncReturns } from "node:child_process";
import { writeFile } from "node:fs/promises";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Host Server script supports OpenClaw repository automation.
import { spawn, type ChildProcessWithoutNullStreams } from "node:child_process";
import { createServer } from "node:http";
import { createConnection } from "node:net";

View File

@@ -1,3 +1,4 @@
// Lane Runner script supports OpenClaw repository automation.
import { warn } from "./host-command.ts";
export type SmokeLane = "fresh" | "upgrade";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env -S pnpm tsx
// Linux Smoke script supports OpenClaw repository automation.
import { mkdir, readFile } from "node:fs/promises";
import path from "node:path";
import { pathToFileURL } from "node:url";

View File

@@ -1,3 +1,4 @@
// Macos Discord script supports OpenClaw repository automation.
import { readFile, writeFile } from "node:fs/promises";
import path from "node:path";
import type { MacosGuest } from "./guest-transports.ts";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env -S pnpm tsx
// Macos Smoke script supports OpenClaw repository automation.
import { readFile, rm } from "node:fs/promises";
import path from "node:path";
import { pathToFileURL } from "node:url";

View File

@@ -1,3 +1,4 @@
// Npm Update Scripts script supports OpenClaw repository automation.
import { posixAgentWorkspaceScript, windowsAgentWorkspaceScript } from "./agent-workspace.ts";
import { shellQuote } from "./host-command.ts";
import { posixProviderOnlyPluginIsolationScript } from "./plugin-isolation.ts";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env -S pnpm tsx
// Npm Update Smoke script supports OpenClaw repository automation.
import { spawn } from "node:child_process";
import { appendFileSync, readFileSync, writeFileSync } from "node:fs";
import { readFile, rm } from "node:fs/promises";

View File

@@ -1,3 +1,4 @@
// Package Artifact script supports OpenClaw repository automation.
import { randomUUID } from "node:crypto";
import { copyFile, mkdir, readFile, rm, stat, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Parallels Vm script supports OpenClaw repository automation.
import { die, run, say, warn } from "./host-command.ts";
const PRLCTL_STATUS_TIMEOUT_MS = 30_000;

View File

@@ -1,3 +1,4 @@
// Phase Runner script supports OpenClaw repository automation.
import { appendFileSync } from "node:fs";
import { writeFile } from "node:fs/promises";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Plugin Isolation script supports OpenClaw repository automation.
import { shellQuote } from "./host-command.ts";
import { providerIdFromModelId } from "./provider-auth.ts";

View File

@@ -1,3 +1,4 @@
// Powershell script supports OpenClaw repository automation.
import {
configPathMapKey,
modelProviderConfigBatchJson,

View File

@@ -1,3 +1,4 @@
// Provider Auth script supports OpenClaw repository automation.
import { mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Smoke Common helper supports OpenClaw script workflows.
import { readFile, rm } from "node:fs/promises";
import path from "node:path";
import { run, say } from "./host-command.ts";

View File

@@ -1,3 +1,4 @@
// Snapshots script supports OpenClaw repository automation.
import { die, run } from "./host-command.ts";
import type { SnapshotInfo } from "./types.ts";

View File

@@ -1,3 +1,4 @@
// Types script supports OpenClaw repository automation.
export type Provider = "openai" | "anthropic" | "minimax";
export type Mode = "fresh" | "upgrade" | "both";
export type Platform = "macos" | "windows" | "linux";

View File

@@ -1,3 +1,4 @@
// Update Job Timeout script supports OpenClaw repository automation.
interface TimedUpdateJobOptions {
append(this: void, chunk: string): void;
label: string;

View File

@@ -1,3 +1,4 @@
// Windows Git script supports OpenClaw repository automation.
import path from "node:path";
import type { WindowsGuest } from "./guest-transports.ts";
import { die, run, say } from "./host-command.ts";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env -S pnpm tsx
// Windows Smoke script supports OpenClaw repository automation.
import path from "node:path";
import { pathToFileURL } from "node:url";
import { windowsAgentWorkspaceScript } from "./agent-workspace.ts";

View File

@@ -1,3 +1,4 @@
// Telegram Bot Api script supports OpenClaw repository automation.
import { readBoundedResponseText } from "../lib/bounded-response.ts";
import { readPositiveIntEnv } from "./lib/env-limits.mjs";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env -S node --import tsx
// Telegram User Crabbox Proof script supports OpenClaw repository automation.
import { type ChildProcess, spawn, type SpawnOptionsWithoutStdio } from "node:child_process";
import fs from "node:fs";

View File

@@ -1,3 +1,4 @@
// Telegram User Credential Io script supports OpenClaw repository automation.
import { spawn } from "node:child_process";
import { readBoundedResponseText } from "../lib/bounded-response.ts";
@@ -36,11 +37,15 @@ function readKillGraceMs() {
return 5_000;
}
if (!/^\d+$/u.test(raw)) {
throw new Error(`OPENCLAW_QA_CREDENTIAL_KILL_GRACE_MS must be a non-negative integer; got: ${raw}`);
throw new Error(
`OPENCLAW_QA_CREDENTIAL_KILL_GRACE_MS must be a non-negative integer; got: ${raw}`,
);
}
const parsed = Number(raw);
if (!Number.isSafeInteger(parsed)) {
throw new Error(`OPENCLAW_QA_CREDENTIAL_KILL_GRACE_MS must be a non-negative integer; got: ${raw}`);
throw new Error(
`OPENCLAW_QA_CREDENTIAL_KILL_GRACE_MS must be a non-negative integer; got: ${raw}`,
);
}
return parsed;
}
@@ -183,7 +188,9 @@ export function runCommand(
return;
}
if (forwardedSignalExitCode !== undefined) {
activeChildTree.unregister({ finishForwardedSignal: !childProcessTreeMayStillExist(child) });
activeChildTree.unregister({
finishForwardedSignal: !childProcessTreeMayStillExist(child),
});
return;
}
if (timedOutError && killTimer && childProcessTreeMayStillExist(child)) {

View File

@@ -1,3 +1,4 @@
// Telegram User Credential Paths script supports OpenClaw repository automation.
import { chmod, mkdir, writeFile } from "node:fs/promises";
import path from "node:path";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env -S node --import tsx
// Telegram User Credential script supports OpenClaw repository automation.
import { createHash } from "node:crypto";
import { copyFile, mkdir, mkdtemp, readFile, rm, unlink, writeFile } from "node:fs/promises";

View File

@@ -1,3 +1,4 @@
// Firecrawl Compare script supports OpenClaw repository automation.
import { pathToFileURL } from "node:url";
import { fetchFirecrawlContent } from "../extensions/firecrawl/api.ts";
import { extractReadableContent } from "../src/agents/tools/web-tools.js";

View File

@@ -1,3 +1,4 @@
// Packed Plugin Sdk Type Smoke script supports OpenClaw repository automation.
type PublicPluginSdkModules = [
typeof import("openclaw/plugin-sdk"),
typeof import("openclaw/plugin-sdk/channel-entry-contract"),

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Generate Base Config Schema script supports OpenClaw repository automation.
import { pathToFileURL } from "node:url";
import { computeBaseConfigSchemaResponse } from "../src/config/schema-base.js";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Generate Bundled Channel Config Metadata script supports OpenClaw repository automation.
import fs from "node:fs";
import path from "node:path";
import { loadBundledPluginPublicArtifactModuleSync } from "../src/plugins/public-surface-loader.js";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Generate Config Doc Baseline script supports OpenClaw repository automation.
import path from "node:path";
import { fileURLToPath } from "node:url";
import { writeConfigDocBaselineArtifacts } from "../src/config/doc-baseline.js";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Generate Plugin Sdk Api Baseline script supports OpenClaw repository automation.
import path from "node:path";
import { writePluginSdkApiBaselineStatefile } from "../src/plugin-sdk/api-baseline.ts";

View File

@@ -1,3 +1,4 @@
// Generate Prompt Snapshots script supports OpenClaw repository automation.
import { execFile } from "node:child_process";
import fs from "node:fs/promises";
import os from "node:os";

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env node
// Generate Runtime Sidecar Paths Baseline script supports OpenClaw repository automation.
import path from "node:path";
import { writeBundledRuntimeSidecarPathBaseline } from "../src/plugins/runtime-sidecar-paths-baseline.js";

View File

@@ -1,3 +1,4 @@
// Generate Secretref Credential Matrix script supports OpenClaw repository automation.
import fs from "node:fs";
import path from "node:path";
import { buildSecretRefCredentialMatrix } from "../src/secrets/credential-matrix.js";

View File

@@ -1,3 +1,4 @@
// Gh Read script supports OpenClaw repository automation.
import { execFileSync, spawnSync } from "node:child_process";
import { createPrivateKey, createSign } from "node:crypto";
import { readFileSync } from "node:fs";

View File

@@ -1,3 +1,4 @@
// Ios Pin Version script supports OpenClaw repository automation.
import path from "node:path";
import {
normalizePinnedIosVersion,

View File

@@ -1,3 +1,4 @@
// Ios Sync Versioning script supports OpenClaw repository automation.
import path from "node:path";
import { syncIosVersioning } from "./lib/ios-version.ts";

View File

@@ -1,3 +1,4 @@
// Ios Version script supports OpenClaw repository automation.
import path from "node:path";
import { resolveIosVersion } from "./lib/ios-version.ts";

View File

@@ -1,3 +1,4 @@
// Label Open Issues script supports OpenClaw repository automation.
import { execFileSync } from "node:child_process";
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
import { homedir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Bounded Response script supports OpenClaw repository automation.
type BoundedResponseTextOptions = {
createTooLargeError?: (message: string) => Error;
formatTooLargeMessage?: (label: string, maxBytes: number) => string;

View File

@@ -1,3 +1,4 @@
// Bundled Extension Manifest script supports OpenClaw repository automation.
import { validateMinHostVersion } from "../../src/plugins/min-host-version.ts";
import { isRecord } from "../../src/utils.js";

View File

@@ -1,3 +1,4 @@
// Bundled Plugin Build Entries Types.D script supports OpenClaw repository automation.
export type BundledPluginBuildEntry = {
id: string;
hasPackageJson: boolean;

View File

@@ -1 +1,2 @@
// Bundled Plugin Build Entries.D script supports OpenClaw repository automation.
export * from "./bundled-plugin-build-entries-types.js";

View File

@@ -1,3 +1,4 @@
// Codex App Server Protocol Source script supports OpenClaw repository automation.
import { spawnSync } from "node:child_process";
import fs from "node:fs/promises";
import path from "node:path";
@@ -82,9 +83,7 @@ export function buildCodexProtocolExportArgs(manifestPath: string, outDir: strin
];
}
export function resolveCodexProtocolMinFreeBytes(
env: NodeJS.ProcessEnv = process.env,
): number {
export function resolveCodexProtocolMinFreeBytes(env: NodeJS.ProcessEnv = process.env): number {
const raw = env.OPENCLAW_CODEX_PROTOCOL_MIN_FREE_BYTES;
if (raw === undefined || raw.trim() === "") {
return DEFAULT_PROTOCOL_GENERATION_MIN_FREE_BYTES;
@@ -104,7 +103,9 @@ export function resolveCodexProtocolCargoTargetDir(
): string {
const targetDir = env.CARGO_TARGET_DIR ?? env.CARGO_BUILD_TARGET_DIR;
if (targetDir !== undefined && targetDir.trim() !== "") {
return path.isAbsolute(targetDir) ? path.resolve(targetDir) : path.resolve(codexRepo, targetDir);
return path.isAbsolute(targetDir)
? path.resolve(targetDir)
: path.resolve(codexRepo, targetDir);
}
return path.join(codexRepo, "codex-rs", "target");
}

View File

@@ -1,3 +1,4 @@
// Copy Assets script supports OpenClaw repository automation.
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";

View File

@@ -1,3 +1,4 @@
// Dev Tooling Safety script supports OpenClaw repository automation.
import path from "node:path";
import { redactSensitiveText } from "../../src/logging/redact.js";

Some files were not shown because too many files have changed in this diff Show More