denchclaw 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/apps/web/.next/standalone/apps/web/.next/BUILD_ID +1 -1
- package/apps/web/.next/standalone/apps/web/.next/app-build-manifest.json +95 -95
- package/apps/web/.next/standalone/apps/web/.next/app-path-routes-manifest.json +27 -27
- package/apps/web/.next/standalone/apps/web/.next/build-manifest.json +2 -2
- package/apps/web/.next/standalone/apps/web/.next/server/app/_not-found.html +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/_not-found.rsc +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/init/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/index.html +2 -2
- package/apps/web/.next/standalone/apps/web/.next/server/app/index.rsc +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/workspace/page.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/workspace/page_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/workspace.html +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/workspace.rsc +2 -2
- package/apps/web/.next/standalone/apps/web/.next/server/app-paths-manifest.json +27 -27
- package/apps/web/.next/standalone/apps/web/.next/server/functions-config-manifest.json +20 -20
- package/apps/web/.next/standalone/apps/web/.next/server/pages/404.html +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
- package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/workspace/page-a9c68aaa3f71a7fe.js +1 -0
- package/apps/web/.next/standalone/package.json +2 -2
- package/apps/web/.next/static/chunks/app/workspace/page-a9c68aaa3f71a7fe.js +1 -0
- package/dist/{cli-name-DUQ-cavN.js → cli-name-8WJ6gVD5.js} +36 -3
- package/dist/entry.js +2 -21
- package/dist/program-DSR-Zphq.js +2412 -0
- package/dist/{run-main-buUOQk0k.js → run-main-B-QwRglo.js} +9 -7
- package/package.json +2 -2
- package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/workspace/page-d499296a443bbbf0.js +0 -1
- package/apps/web/.next/static/chunks/app/workspace/page-d499296a443bbbf0.js +0 -1
- package/dist/links-BTx7dmFj.js +0 -57
- package/dist/program-DahL9wBm.js +0 -195
- package/dist/register.bootstrap-D9YhQgaK.js +0 -1330
- package/dist/theme-uCBEEejb.js +0 -36
- /package/apps/web/.next/standalone/apps/web/.next/static/{oOwR1DKioMELtFQgLgScE → rfl8V4U-KWtyivUflJxQF}/_buildManifest.js +0 -0
- /package/apps/web/.next/standalone/apps/web/.next/static/{oOwR1DKioMELtFQgLgScE → rfl8V4U-KWtyivUflJxQF}/_ssgManifest.js +0 -0
- /package/apps/web/.next/static/{oOwR1DKioMELtFQgLgScE → rfl8V4U-KWtyivUflJxQF}/_buildManifest.js +0 -0
- /package/apps/web/.next/static/{oOwR1DKioMELtFQgLgScE → rfl8V4U-KWtyivUflJxQF}/_ssgManifest.js +0 -0
|
@@ -1,10 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as theme, t as isRich } from "./theme-uCBEEejb.js";
|
|
1
|
+
import { r as visibleWidth, u as hasRootVersionAlias } from "./entry.js";
|
|
3
2
|
import { createRequire } from "node:module";
|
|
4
3
|
import path from "node:path";
|
|
5
4
|
import fs from "node:fs";
|
|
5
|
+
import chalk, { Chalk } from "chalk";
|
|
6
6
|
import gradient from "gradient-string";
|
|
7
7
|
|
|
8
|
+
//#region src/terminal/palette.ts
|
|
9
|
+
const IRON_PALETTE = {
|
|
10
|
+
accent: "#9CA3AF",
|
|
11
|
+
accentBright: "#D1D5DB",
|
|
12
|
+
accentDim: "#6B7280",
|
|
13
|
+
info: "#93C5FD",
|
|
14
|
+
success: "#34D399",
|
|
15
|
+
warn: "#FBBF24",
|
|
16
|
+
error: "#F87171",
|
|
17
|
+
muted: "#6B7280"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/terminal/theme.ts
|
|
22
|
+
const hasForceColor = typeof process.env.FORCE_COLOR === "string" && process.env.FORCE_COLOR.trim().length > 0 && process.env.FORCE_COLOR.trim() !== "0";
|
|
23
|
+
const baseChalk = process.env.NO_COLOR && !hasForceColor ? new Chalk({ level: 0 }) : chalk;
|
|
24
|
+
const hex = (value) => baseChalk.hex(value);
|
|
25
|
+
const theme = {
|
|
26
|
+
accent: hex(IRON_PALETTE.accent),
|
|
27
|
+
accentBright: hex(IRON_PALETTE.accentBright),
|
|
28
|
+
accentDim: hex(IRON_PALETTE.accentDim),
|
|
29
|
+
info: hex(IRON_PALETTE.info),
|
|
30
|
+
success: hex(IRON_PALETTE.success),
|
|
31
|
+
warn: hex(IRON_PALETTE.warn),
|
|
32
|
+
error: hex(IRON_PALETTE.error),
|
|
33
|
+
muted: hex(IRON_PALETTE.muted),
|
|
34
|
+
heading: baseChalk.bold.hex(IRON_PALETTE.accent),
|
|
35
|
+
command: hex(IRON_PALETTE.accentBright),
|
|
36
|
+
option: hex(IRON_PALETTE.warn)
|
|
37
|
+
};
|
|
38
|
+
const isRich = () => Boolean(baseChalk.level > 0);
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
8
41
|
//#region src/version.ts
|
|
9
42
|
const CORE_PACKAGE_NAME = "denchclaw";
|
|
10
43
|
const PACKAGE_JSON_CANDIDATES = [
|
|
@@ -500,4 +533,4 @@ function replaceCliName(command, cliName = resolveCliName()) {
|
|
|
500
533
|
}
|
|
501
534
|
|
|
502
535
|
//#endregion
|
|
503
|
-
export { hasEmittedCliBanner as a, formatCliBannerLine as i, resolveCliName as n, VERSION as o, emitCliBanner as r, replaceCliName as t };
|
|
536
|
+
export { hasEmittedCliBanner as a, theme as c, formatCliBannerLine as i, resolveCliName as n, VERSION as o, emitCliBanner as r, isRich as s, replaceCliName as t };
|
package/dist/entry.js
CHANGED
|
@@ -209,25 +209,6 @@ function getPrimaryCommand(argv) {
|
|
|
209
209
|
const [primary] = getCommandPath(argv, 1);
|
|
210
210
|
return primary ?? null;
|
|
211
211
|
}
|
|
212
|
-
function buildParseArgv(params) {
|
|
213
|
-
const baseArgv = params.rawArgs && params.rawArgs.length > 0 ? params.rawArgs : params.fallbackArgv && params.fallbackArgv.length > 0 ? params.fallbackArgv : process.argv;
|
|
214
|
-
const programName = params.programName ?? "";
|
|
215
|
-
const normalizedArgv = programName && baseArgv[0] === programName ? baseArgv.slice(1) : baseArgv[0]?.endsWith("openclaw") || baseArgv[0]?.endsWith("denchclaw") ? baseArgv.slice(1) : baseArgv;
|
|
216
|
-
const executable = (normalizedArgv[0]?.split(/[/\\]/).pop() ?? "").toLowerCase();
|
|
217
|
-
if (normalizedArgv.length >= 2 && (isNodeExecutable(executable) || isBunExecutable(executable))) return normalizedArgv;
|
|
218
|
-
return [
|
|
219
|
-
"node",
|
|
220
|
-
programName || "denchclaw",
|
|
221
|
-
...normalizedArgv
|
|
222
|
-
];
|
|
223
|
-
}
|
|
224
|
-
const nodeExecutablePattern = /^node-\d+(?:\.\d+)*(?:\.exe)?$/;
|
|
225
|
-
function isNodeExecutable(executable) {
|
|
226
|
-
return executable === "node" || executable === "node.exe" || executable === "nodejs" || executable === "nodejs.exe" || nodeExecutablePattern.test(executable);
|
|
227
|
-
}
|
|
228
|
-
function isBunExecutable(executable) {
|
|
229
|
-
return executable === "bun" || executable === "bun.exe";
|
|
230
|
-
}
|
|
231
212
|
|
|
232
213
|
//#endregion
|
|
233
214
|
//#region src/cli/respawn-policy.ts
|
|
@@ -1162,11 +1143,11 @@ if (!ensureExperimentalWarningSuppressed()) {
|
|
|
1162
1143
|
const appliedProfile = applyCliProfileEnv({ profile: parsed.profile ?? void 0 });
|
|
1163
1144
|
if (appliedProfile.warning) console.warn(`[denchclaw] ${appliedProfile.warning}`);
|
|
1164
1145
|
process$1.argv = parsed.argv;
|
|
1165
|
-
import("./run-main-
|
|
1146
|
+
import("./run-main-B-QwRglo.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
1166
1147
|
console.error("[denchclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
1167
1148
|
process$1.exitCode = 1;
|
|
1168
1149
|
});
|
|
1169
1150
|
}
|
|
1170
1151
|
|
|
1171
1152
|
//#endregion
|
|
1172
|
-
export { normalizeWindowsArgv as a,
|
|
1153
|
+
export { normalizeWindowsArgv as a, hasFlag as c, applyCliProfileEnv as d, expandHomePrefix as f, defaultRuntime as i, hasHelpOrVersion as l, normalizeEnv as n, getCommandPath as o, resolveRequiredHomeDir as p, visibleWidth as r, getPrimaryCommand as s, isTruthyEnvValue as t, hasRootVersionAlias as u };
|