mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
docs: document repository scripts
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
// Credentials module supports OpenClaw QA credential workflows.
|
||||||
import { v } from "convex/values";
|
import { v } from "convex/values";
|
||||||
import { internal } from "./_generated/api";
|
import { internal } from "./_generated/api";
|
||||||
import type { Id } from "./_generated/dataModel";
|
import type { Id } from "./_generated/dataModel";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Crons module supports OpenClaw QA credential workflows.
|
||||||
import { cronJobs } from "convex/server";
|
import { cronJobs } from "convex/server";
|
||||||
import { internal } from "./_generated/api";
|
import { internal } from "./_generated/api";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Http module supports OpenClaw QA credential workflows.
|
||||||
import { httpRouter } from "convex/server";
|
import { httpRouter } from "convex/server";
|
||||||
import { internal } from "./_generated/api";
|
import { internal } from "./_generated/api";
|
||||||
import type { Id } from "./_generated/dataModel";
|
import type { Id } from "./_generated/dataModel";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Payload Validation module supports OpenClaw QA credential workflows.
|
||||||
export class CredentialPayloadValidationError extends Error {
|
export class CredentialPayloadValidationError extends Error {
|
||||||
code: string;
|
code: string;
|
||||||
httpStatus: number;
|
httpStatus: number;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Schema module supports OpenClaw QA credential workflows.
|
||||||
import { defineSchema, defineTable } from "convex/server";
|
import { defineSchema, defineTable } from "convex/server";
|
||||||
import { v } from "convex/values";
|
import { v } from "convex/values";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// Analyze Plugin Sdk Usage script supports OpenClaw repository automation.
|
||||||
import { main } from "./ts-topology.ts";
|
import { main } from "./ts-topology.ts";
|
||||||
|
|
||||||
const forwardedArgs = process.argv.slice(2);
|
const forwardedArgs = process.argv.slice(2);
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Anthropic Prompt Probe script supports OpenClaw repository automation.
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
// Live prompt probe for Anthropic setup-token and Claude CLI prompt-path debugging.
|
// Live prompt probe for Anthropic setup-token and Claude CLI prompt-path debugging.
|
||||||
// Usage:
|
// Usage:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Bench Cli Startup script supports OpenClaw repository automation.
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Bench Gateway Restart script supports OpenClaw repository automation.
|
||||||
import { spawn, spawnSync, type ChildProcessWithoutNullStreams } from "node:child_process";
|
import { spawn, spawnSync, type ChildProcessWithoutNullStreams } from "node:child_process";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Bench Gateway Startup script supports OpenClaw repository automation.
|
||||||
import { spawn, spawnSync } from "node:child_process";
|
import { spawn, spawnSync } from "node:child_process";
|
||||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
||||||
import { request } from "node:http";
|
import { request } from "node:http";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Bench Model script supports OpenClaw repository automation.
|
||||||
import { completeSimple, type Model } from "openclaw/plugin-sdk/llm";
|
import { completeSimple, type Model } from "openclaw/plugin-sdk/llm";
|
||||||
|
|
||||||
type Usage = {
|
type Usage = {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check Codex App Server Protocol script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check File Utils helper supports OpenClaw script workflows.
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// Check Import Cycles script supports OpenClaw repository automation.
|
||||||
import { readFileSync } from "node:fs";
|
import { readFileSync } from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check Live Cache script supports OpenClaw repository automation.
|
||||||
import { runLiveCacheRegression } from "../src/agents/live-cache-regression-runner.js";
|
import { runLiveCacheRegression } from "../src/agents/live-cache-regression-runner.js";
|
||||||
import { LIVE_CACHE_TEST_ENABLED, logLiveCache } from "../src/agents/live-cache-test-support.js";
|
import { LIVE_CACHE_TEST_ENABLED, logLiveCache } from "../src/agents/live-cache-test-support.js";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// Check Madge Import Cycles script supports OpenClaw repository automation.
|
||||||
import { readFileSync } from "node:fs";
|
import { readFileSync } from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check No Deprecated Channel Access script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";
|
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check No Extension Src Imports script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";
|
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check No Extension Test Core Imports script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";
|
import { collectFilesSync, isCodeFile, relativeToCwd } from "./check-file-utils.js";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check No Monolithic Plugin Sdk Entry Imports script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { discoverOpenClawPlugins } from "../src/plugins/discovery.js";
|
import { discoverOpenClawPlugins } from "../src/plugins/discovery.js";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check Temp Path Guardrails script supports OpenClaw repository automation.
|
||||||
import { execFileSync } from "node:child_process";
|
import { execFileSync } from "node:child_process";
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Check Ts Max Loc script supports OpenClaw repository automation.
|
||||||
import { execFileSync } from "node:child_process";
|
import { execFileSync } from "node:child_process";
|
||||||
import { existsSync } from "node:fs";
|
import { existsSync } from "node:fs";
|
||||||
import { readFile } from "node:fs/promises";
|
import { readFile } from "node:fs/promises";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Control Ui I18N Report script supports OpenClaw repository automation.
|
||||||
import { existsSync } from "node:fs";
|
import { existsSync } from "node:fs";
|
||||||
import { readFile } from "node:fs/promises";
|
import { readFile } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Control Ui I18N script supports OpenClaw repository automation.
|
||||||
import { spawn, spawnSync } from "node:child_process";
|
import { spawn, spawnSync } from "node:child_process";
|
||||||
import { createHash } from "node:crypto";
|
import { createHash } from "node:crypto";
|
||||||
import { existsSync } from "node:fs";
|
import { existsSync } from "node:fs";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Control Ui Mock Dev script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { createServer, type Plugin, type ViteDevServer } from "vite";
|
import { createServer, type Plugin, type ViteDevServer } from "vite";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Cron Usage Report script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Debug Claude Usage script supports OpenClaw repository automation.
|
||||||
import { execFileSync } from "node:child_process";
|
import { execFileSync } from "node:child_process";
|
||||||
import crypto from "node:crypto";
|
import crypto from "node:crypto";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env -S node --import tsx
|
#!/usr/bin/env -S node --import tsx
|
||||||
|
// Channel Message Flows script supports OpenClaw repository automation.
|
||||||
import { setTimeout as sleep } from "node:timers/promises";
|
import { setTimeout as sleep } from "node:timers/promises";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { Bot, type ApiClientOptions } from "grammy";
|
import { Bot, type ApiClientOptions } from "grammy";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bun
|
#!/usr/bin/env bun
|
||||||
|
// Discord Acp Plain Language Smoke script supports OpenClaw repository automation.
|
||||||
import { execFile } from "node:child_process";
|
import { execFile } from "node:child_process";
|
||||||
// Manual ACP thread smoke for plain-language routing.
|
// Manual ACP thread smoke for plain-language routing.
|
||||||
// Keep this script available for regression/debug validation. Do not delete.
|
// Keep this script available for regression/debug validation. Do not delete.
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Gateway Smoke script supports OpenClaw repository automation.
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import {
|
import {
|
||||||
MIN_CLIENT_PROTOCOL_VERSION,
|
MIN_CLIENT_PROTOCOL_VERSION,
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
// Gateway Ws Client script supports OpenClaw repository automation.
|
||||||
export * from "../lib/gateway-ws-client.ts";
|
export * from "../lib/gateway-ws-client.ts";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Ios Node E2E script supports OpenClaw repository automation.
|
||||||
import {
|
import {
|
||||||
MIN_CLIENT_PROTOCOL_VERSION,
|
MIN_CLIENT_PROTOCOL_VERSION,
|
||||||
PROTOCOL_VERSION,
|
PROTOCOL_VERSION,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Realtime Talk Live Smoke script supports OpenClaw repository automation.
|
||||||
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
||||||
import { tmpdir } from "node:os";
|
import { tmpdir } from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Test Device Pair Telegram script supports OpenClaw repository automation.
|
||||||
import { sendMessageTelegram } from "../../extensions/telegram/runtime-api.js";
|
import { sendMessageTelegram } from "../../extensions/telegram/runtime-api.js";
|
||||||
import { getRuntimeConfig } from "../../src/config/config.js";
|
import { getRuntimeConfig } from "../../src/config/config.js";
|
||||||
import { matchPluginCommand, executePluginCommand } from "../../src/plugins/commands.js";
|
import { matchPluginCommand, executePluginCommand } from "../../src/plugins/commands.js";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Tui Pty Test Watch script supports OpenClaw repository automation.
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
||||||
import { createRequire } from "node:module";
|
import { createRequire } from "node:module";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Diffs Shiki Curated script supports OpenClaw repository automation.
|
||||||
import {
|
import {
|
||||||
createBundledHighlighter,
|
createBundledHighlighter,
|
||||||
createCssVariablesTheme,
|
createCssVariablesTheme,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Cron Mcp Cleanup Docker Client script supports OpenClaw repository automation.
|
||||||
import { execFile } from "node:child_process";
|
import { execFile } from "node:child_process";
|
||||||
import { randomUUID } from "node:crypto";
|
import { randomUUID } from "node:crypto";
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Cron Mcp Cleanup Seed script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import { createRequire } from "node:module";
|
import { createRequire } from "node:module";
|
||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Session Log Mentions script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { readPositiveIntEnv } from "./env-limits.mjs";
|
import { readPositiveIntEnv } from "./env-limits.mjs";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Temp State Dir script supports OpenClaw repository automation.
|
||||||
import { rmSync } from "node:fs";
|
import { rmSync } from "node:fs";
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Mcp Channel Limits script supports OpenClaw repository automation.
|
||||||
import { readPositiveIntEnv } from "./lib/env-limits.mjs";
|
import { readPositiveIntEnv } from "./lib/env-limits.mjs";
|
||||||
|
|
||||||
export type McpChannelLimits = {
|
export type McpChannelLimits = {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Mcp Channels Docker Client script supports OpenClaw repository automation.
|
||||||
import { randomUUID } from "node:crypto";
|
import { randomUUID } from "node:crypto";
|
||||||
import {
|
import {
|
||||||
assert,
|
assert,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Mcp Channels Seed script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Mcp Client Temp State script supports OpenClaw repository automation.
|
||||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
||||||
import { tmpdir } from "node:os";
|
import { tmpdir } from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Mcp Code Mode Gateway Client script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { setTimeout as setNodeTimeout, clearTimeout as clearNodeTimeout } from "node:timers";
|
import { setTimeout as setNodeTimeout, clearTimeout as clearNodeTimeout } from "node:timers";
|
||||||
import { pathToFileURL } from "node:url";
|
import { pathToFileURL } from "node:url";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Mcp Code Mode Gateway Seed script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import { createRequire } from "node:module";
|
import { createRequire } from "node:module";
|
||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Mcp Connect Timeout script supports OpenClaw repository automation.
|
||||||
type McpConnectTransport = {
|
type McpConnectTransport = {
|
||||||
close?(): Promise<void> | void;
|
close?(): Promise<void> | void;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Mcp Websocket Open script supports OpenClaw repository automation.
|
||||||
type WebSocketOpenHandle = {
|
type WebSocketOpenHandle = {
|
||||||
close?: () => void;
|
close?: () => void;
|
||||||
off?: (event: "open" | "error" | "close", listener: (...args: unknown[]) => void) => void;
|
off?: (event: "open" | "error" | "close", listener: (...args: unknown[]) => void) => void;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Openai Image Auth Docker Client script supports OpenClaw repository automation.
|
||||||
import http from "node:http";
|
import http from "node:http";
|
||||||
import type { AddressInfo } from "node:net";
|
import type { AddressInfo } from "node:net";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Agent Workspace script supports OpenClaw repository automation.
|
||||||
export function posixAgentWorkspaceScript(purpose: string): string {
|
export function posixAgentWorkspaceScript(purpose: string): string {
|
||||||
return `set -eu
|
return `set -eu
|
||||||
workspace="\${OPENCLAW_WORKSPACE_DIR:-$HOME/.openclaw/workspace}"
|
workspace="\${OPENCLAW_WORKSPACE_DIR:-$HOME/.openclaw/workspace}"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Common helper supports OpenClaw script workflows.
|
||||||
export * from "./filesystem.ts";
|
export * from "./filesystem.ts";
|
||||||
export * from "./env-limits.ts";
|
export * from "./env-limits.ts";
|
||||||
export * from "./host-command.ts";
|
export * from "./host-command.ts";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Env Limits script supports OpenClaw repository automation.
|
||||||
import { die } from "./host-command.ts";
|
import { die } from "./host-command.ts";
|
||||||
|
|
||||||
const positiveIntPattern = /^[1-9]\d*$/u;
|
const positiveIntPattern = /^[1-9]\d*$/u;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Filesystem script supports OpenClaw repository automation.
|
||||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
||||||
import { access, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
import { access, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Guest Transports script supports OpenClaw repository automation.
|
||||||
import { run } from "./host-command.ts";
|
import { run } from "./host-command.ts";
|
||||||
import type { PhaseRunner } from "./phase-runner.ts";
|
import type { PhaseRunner } from "./phase-runner.ts";
|
||||||
import { encodePowerShell, psSingleQuote } from "./powershell.ts";
|
import { encodePowerShell, psSingleQuote } from "./powershell.ts";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Host Command script supports OpenClaw repository automation.
|
||||||
import { spawn, spawnSync, type SpawnOptions, type SpawnSyncReturns } from "node:child_process";
|
import { spawn, spawnSync, type SpawnOptions, type SpawnSyncReturns } from "node:child_process";
|
||||||
import { writeFile } from "node:fs/promises";
|
import { writeFile } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Host Server script supports OpenClaw repository automation.
|
||||||
import { spawn, type ChildProcessWithoutNullStreams } from "node:child_process";
|
import { spawn, type ChildProcessWithoutNullStreams } from "node:child_process";
|
||||||
import { createServer } from "node:http";
|
import { createServer } from "node:http";
|
||||||
import { createConnection } from "node:net";
|
import { createConnection } from "node:net";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Lane Runner script supports OpenClaw repository automation.
|
||||||
import { warn } from "./host-command.ts";
|
import { warn } from "./host-command.ts";
|
||||||
|
|
||||||
export type SmokeLane = "fresh" | "upgrade";
|
export type SmokeLane = "fresh" | "upgrade";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env -S pnpm tsx
|
#!/usr/bin/env -S pnpm tsx
|
||||||
|
// Linux Smoke script supports OpenClaw repository automation.
|
||||||
import { mkdir, readFile } from "node:fs/promises";
|
import { mkdir, readFile } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { pathToFileURL } from "node:url";
|
import { pathToFileURL } from "node:url";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Macos Discord script supports OpenClaw repository automation.
|
||||||
import { readFile, writeFile } from "node:fs/promises";
|
import { readFile, writeFile } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type { MacosGuest } from "./guest-transports.ts";
|
import type { MacosGuest } from "./guest-transports.ts";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env -S pnpm tsx
|
#!/usr/bin/env -S pnpm tsx
|
||||||
|
// Macos Smoke script supports OpenClaw repository automation.
|
||||||
import { readFile, rm } from "node:fs/promises";
|
import { readFile, rm } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { pathToFileURL } from "node:url";
|
import { pathToFileURL } from "node:url";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Npm Update Scripts script supports OpenClaw repository automation.
|
||||||
import { posixAgentWorkspaceScript, windowsAgentWorkspaceScript } from "./agent-workspace.ts";
|
import { posixAgentWorkspaceScript, windowsAgentWorkspaceScript } from "./agent-workspace.ts";
|
||||||
import { shellQuote } from "./host-command.ts";
|
import { shellQuote } from "./host-command.ts";
|
||||||
import { posixProviderOnlyPluginIsolationScript } from "./plugin-isolation.ts";
|
import { posixProviderOnlyPluginIsolationScript } from "./plugin-isolation.ts";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env -S pnpm tsx
|
#!/usr/bin/env -S pnpm tsx
|
||||||
|
// Npm Update Smoke script supports OpenClaw repository automation.
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
import { appendFileSync, readFileSync, writeFileSync } from "node:fs";
|
import { appendFileSync, readFileSync, writeFileSync } from "node:fs";
|
||||||
import { readFile, rm } from "node:fs/promises";
|
import { readFile, rm } from "node:fs/promises";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Package Artifact script supports OpenClaw repository automation.
|
||||||
import { randomUUID } from "node:crypto";
|
import { randomUUID } from "node:crypto";
|
||||||
import { copyFile, mkdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
import { copyFile, mkdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
||||||
import { tmpdir } from "node:os";
|
import { tmpdir } from "node:os";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Parallels Vm script supports OpenClaw repository automation.
|
||||||
import { die, run, say, warn } from "./host-command.ts";
|
import { die, run, say, warn } from "./host-command.ts";
|
||||||
|
|
||||||
const PRLCTL_STATUS_TIMEOUT_MS = 30_000;
|
const PRLCTL_STATUS_TIMEOUT_MS = 30_000;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Phase Runner script supports OpenClaw repository automation.
|
||||||
import { appendFileSync } from "node:fs";
|
import { appendFileSync } from "node:fs";
|
||||||
import { writeFile } from "node:fs/promises";
|
import { writeFile } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Plugin Isolation script supports OpenClaw repository automation.
|
||||||
import { shellQuote } from "./host-command.ts";
|
import { shellQuote } from "./host-command.ts";
|
||||||
import { providerIdFromModelId } from "./provider-auth.ts";
|
import { providerIdFromModelId } from "./provider-auth.ts";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Powershell script supports OpenClaw repository automation.
|
||||||
import {
|
import {
|
||||||
configPathMapKey,
|
configPathMapKey,
|
||||||
modelProviderConfigBatchJson,
|
modelProviderConfigBatchJson,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Provider Auth script supports OpenClaw repository automation.
|
||||||
import { mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
import { mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
||||||
import { tmpdir } from "node:os";
|
import { tmpdir } from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Smoke Common helper supports OpenClaw script workflows.
|
||||||
import { readFile, rm } from "node:fs/promises";
|
import { readFile, rm } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { run, say } from "./host-command.ts";
|
import { run, say } from "./host-command.ts";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Snapshots script supports OpenClaw repository automation.
|
||||||
import { die, run } from "./host-command.ts";
|
import { die, run } from "./host-command.ts";
|
||||||
import type { SnapshotInfo } from "./types.ts";
|
import type { SnapshotInfo } from "./types.ts";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Types script supports OpenClaw repository automation.
|
||||||
export type Provider = "openai" | "anthropic" | "minimax";
|
export type Provider = "openai" | "anthropic" | "minimax";
|
||||||
export type Mode = "fresh" | "upgrade" | "both";
|
export type Mode = "fresh" | "upgrade" | "both";
|
||||||
export type Platform = "macos" | "windows" | "linux";
|
export type Platform = "macos" | "windows" | "linux";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Update Job Timeout script supports OpenClaw repository automation.
|
||||||
interface TimedUpdateJobOptions {
|
interface TimedUpdateJobOptions {
|
||||||
append(this: void, chunk: string): void;
|
append(this: void, chunk: string): void;
|
||||||
label: string;
|
label: string;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Windows Git script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type { WindowsGuest } from "./guest-transports.ts";
|
import type { WindowsGuest } from "./guest-transports.ts";
|
||||||
import { die, run, say } from "./host-command.ts";
|
import { die, run, say } from "./host-command.ts";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env -S pnpm tsx
|
#!/usr/bin/env -S pnpm tsx
|
||||||
|
// Windows Smoke script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { pathToFileURL } from "node:url";
|
import { pathToFileURL } from "node:url";
|
||||||
import { windowsAgentWorkspaceScript } from "./agent-workspace.ts";
|
import { windowsAgentWorkspaceScript } from "./agent-workspace.ts";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Telegram Bot Api script supports OpenClaw repository automation.
|
||||||
import { readBoundedResponseText } from "../lib/bounded-response.ts";
|
import { readBoundedResponseText } from "../lib/bounded-response.ts";
|
||||||
import { readPositiveIntEnv } from "./lib/env-limits.mjs";
|
import { readPositiveIntEnv } from "./lib/env-limits.mjs";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env -S node --import tsx
|
#!/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 { type ChildProcess, spawn, type SpawnOptionsWithoutStdio } from "node:child_process";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Telegram User Credential Io script supports OpenClaw repository automation.
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
import { readBoundedResponseText } from "../lib/bounded-response.ts";
|
import { readBoundedResponseText } from "../lib/bounded-response.ts";
|
||||||
|
|
||||||
@@ -36,11 +37,15 @@ function readKillGraceMs() {
|
|||||||
return 5_000;
|
return 5_000;
|
||||||
}
|
}
|
||||||
if (!/^\d+$/u.test(raw)) {
|
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);
|
const parsed = Number(raw);
|
||||||
if (!Number.isSafeInteger(parsed)) {
|
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;
|
return parsed;
|
||||||
}
|
}
|
||||||
@@ -183,7 +188,9 @@ export function runCommand(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (forwardedSignalExitCode !== undefined) {
|
if (forwardedSignalExitCode !== undefined) {
|
||||||
activeChildTree.unregister({ finishForwardedSignal: !childProcessTreeMayStillExist(child) });
|
activeChildTree.unregister({
|
||||||
|
finishForwardedSignal: !childProcessTreeMayStillExist(child),
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (timedOutError && killTimer && childProcessTreeMayStillExist(child)) {
|
if (timedOutError && killTimer && childProcessTreeMayStillExist(child)) {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Telegram User Credential Paths script supports OpenClaw repository automation.
|
||||||
import { chmod, mkdir, writeFile } from "node:fs/promises";
|
import { chmod, mkdir, writeFile } from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env -S node --import tsx
|
#!/usr/bin/env -S node --import tsx
|
||||||
|
// Telegram User Credential script supports OpenClaw repository automation.
|
||||||
|
|
||||||
import { createHash } from "node:crypto";
|
import { createHash } from "node:crypto";
|
||||||
import { copyFile, mkdir, mkdtemp, readFile, rm, unlink, writeFile } from "node:fs/promises";
|
import { copyFile, mkdir, mkdtemp, readFile, rm, unlink, writeFile } from "node:fs/promises";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Firecrawl Compare script supports OpenClaw repository automation.
|
||||||
import { pathToFileURL } from "node:url";
|
import { pathToFileURL } from "node:url";
|
||||||
import { fetchFirecrawlContent } from "../extensions/firecrawl/api.ts";
|
import { fetchFirecrawlContent } from "../extensions/firecrawl/api.ts";
|
||||||
import { extractReadableContent } from "../src/agents/tools/web-tools.js";
|
import { extractReadableContent } from "../src/agents/tools/web-tools.js";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Packed Plugin Sdk Type Smoke script supports OpenClaw repository automation.
|
||||||
type PublicPluginSdkModules = [
|
type PublicPluginSdkModules = [
|
||||||
typeof import("openclaw/plugin-sdk"),
|
typeof import("openclaw/plugin-sdk"),
|
||||||
typeof import("openclaw/plugin-sdk/channel-entry-contract"),
|
typeof import("openclaw/plugin-sdk/channel-entry-contract"),
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// Generate Base Config Schema script supports OpenClaw repository automation.
|
||||||
import { pathToFileURL } from "node:url";
|
import { pathToFileURL } from "node:url";
|
||||||
import { computeBaseConfigSchemaResponse } from "../src/config/schema-base.js";
|
import { computeBaseConfigSchemaResponse } from "../src/config/schema-base.js";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// Generate Bundled Channel Config Metadata script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { loadBundledPluginPublicArtifactModuleSync } from "../src/plugins/public-surface-loader.js";
|
import { loadBundledPluginPublicArtifactModuleSync } from "../src/plugins/public-surface-loader.js";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// Generate Config Doc Baseline script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { writeConfigDocBaselineArtifacts } from "../src/config/doc-baseline.js";
|
import { writeConfigDocBaselineArtifacts } from "../src/config/doc-baseline.js";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// Generate Plugin Sdk Api Baseline script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { writePluginSdkApiBaselineStatefile } from "../src/plugin-sdk/api-baseline.ts";
|
import { writePluginSdkApiBaselineStatefile } from "../src/plugin-sdk/api-baseline.ts";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Generate Prompt Snapshots script supports OpenClaw repository automation.
|
||||||
import { execFile } from "node:child_process";
|
import { execFile } from "node:child_process";
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// Generate Runtime Sidecar Paths Baseline script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { writeBundledRuntimeSidecarPathBaseline } from "../src/plugins/runtime-sidecar-paths-baseline.js";
|
import { writeBundledRuntimeSidecarPathBaseline } from "../src/plugins/runtime-sidecar-paths-baseline.js";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Generate Secretref Credential Matrix script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { buildSecretRefCredentialMatrix } from "../src/secrets/credential-matrix.js";
|
import { buildSecretRefCredentialMatrix } from "../src/secrets/credential-matrix.js";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Gh Read script supports OpenClaw repository automation.
|
||||||
import { execFileSync, spawnSync } from "node:child_process";
|
import { execFileSync, spawnSync } from "node:child_process";
|
||||||
import { createPrivateKey, createSign } from "node:crypto";
|
import { createPrivateKey, createSign } from "node:crypto";
|
||||||
import { readFileSync } from "node:fs";
|
import { readFileSync } from "node:fs";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Ios Pin Version script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import {
|
import {
|
||||||
normalizePinnedIosVersion,
|
normalizePinnedIosVersion,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Ios Sync Versioning script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { syncIosVersioning } from "./lib/ios-version.ts";
|
import { syncIosVersioning } from "./lib/ios-version.ts";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Ios Version script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { resolveIosVersion } from "./lib/ios-version.ts";
|
import { resolveIosVersion } from "./lib/ios-version.ts";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Label Open Issues script supports OpenClaw repository automation.
|
||||||
import { execFileSync } from "node:child_process";
|
import { execFileSync } from "node:child_process";
|
||||||
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
||||||
import { homedir } from "node:os";
|
import { homedir } from "node:os";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Bounded Response script supports OpenClaw repository automation.
|
||||||
type BoundedResponseTextOptions = {
|
type BoundedResponseTextOptions = {
|
||||||
createTooLargeError?: (message: string) => Error;
|
createTooLargeError?: (message: string) => Error;
|
||||||
formatTooLargeMessage?: (label: string, maxBytes: number) => string;
|
formatTooLargeMessage?: (label: string, maxBytes: number) => string;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Bundled Extension Manifest script supports OpenClaw repository automation.
|
||||||
import { validateMinHostVersion } from "../../src/plugins/min-host-version.ts";
|
import { validateMinHostVersion } from "../../src/plugins/min-host-version.ts";
|
||||||
import { isRecord } from "../../src/utils.js";
|
import { isRecord } from "../../src/utils.js";
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Bundled Plugin Build Entries Types.D script supports OpenClaw repository automation.
|
||||||
export type BundledPluginBuildEntry = {
|
export type BundledPluginBuildEntry = {
|
||||||
id: string;
|
id: string;
|
||||||
hasPackageJson: boolean;
|
hasPackageJson: boolean;
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
// Bundled Plugin Build Entries.D script supports OpenClaw repository automation.
|
||||||
export * from "./bundled-plugin-build-entries-types.js";
|
export * from "./bundled-plugin-build-entries-types.js";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Codex App Server Protocol Source script supports OpenClaw repository automation.
|
||||||
import { spawnSync } from "node:child_process";
|
import { spawnSync } from "node:child_process";
|
||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
@@ -82,9 +83,7 @@ export function buildCodexProtocolExportArgs(manifestPath: string, outDir: strin
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resolveCodexProtocolMinFreeBytes(
|
export function resolveCodexProtocolMinFreeBytes(env: NodeJS.ProcessEnv = process.env): number {
|
||||||
env: NodeJS.ProcessEnv = process.env,
|
|
||||||
): number {
|
|
||||||
const raw = env.OPENCLAW_CODEX_PROTOCOL_MIN_FREE_BYTES;
|
const raw = env.OPENCLAW_CODEX_PROTOCOL_MIN_FREE_BYTES;
|
||||||
if (raw === undefined || raw.trim() === "") {
|
if (raw === undefined || raw.trim() === "") {
|
||||||
return DEFAULT_PROTOCOL_GENERATION_MIN_FREE_BYTES;
|
return DEFAULT_PROTOCOL_GENERATION_MIN_FREE_BYTES;
|
||||||
@@ -104,7 +103,9 @@ export function resolveCodexProtocolCargoTargetDir(
|
|||||||
): string {
|
): string {
|
||||||
const targetDir = env.CARGO_TARGET_DIR ?? env.CARGO_BUILD_TARGET_DIR;
|
const targetDir = env.CARGO_TARGET_DIR ?? env.CARGO_BUILD_TARGET_DIR;
|
||||||
if (targetDir !== undefined && targetDir.trim() !== "") {
|
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");
|
return path.join(codexRepo, "codex-rs", "target");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Copy Assets script supports OpenClaw repository automation.
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Dev Tooling Safety script supports OpenClaw repository automation.
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { redactSensitiveText } from "../../src/logging/redact.js";
|
import { redactSensitiveText } from "../../src/logging/redact.js";
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user