localclawd 2.0.5 → 2.0.6
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/dist/cli.mjs +82 -114
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -87608,7 +87608,7 @@ var init_isEqual = __esm(() => {
|
|
|
87608
87608
|
|
|
87609
87609
|
// src/utils/userAgent.ts
|
|
87610
87610
|
function getClaudeCodeUserAgent() {
|
|
87611
|
-
return `claude-code/${"2.0.
|
|
87611
|
+
return `claude-code/${"2.0.6"}`;
|
|
87612
87612
|
}
|
|
87613
87613
|
|
|
87614
87614
|
// src/utils/workloadContext.ts
|
|
@@ -87630,7 +87630,7 @@ function getUserAgent() {
|
|
|
87630
87630
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
87631
87631
|
const workload = getWorkload();
|
|
87632
87632
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
87633
|
-
return `claude-cli/${"2.0.
|
|
87633
|
+
return `claude-cli/${"2.0.6"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
87634
87634
|
}
|
|
87635
87635
|
function getMCPUserAgent() {
|
|
87636
87636
|
const parts = [];
|
|
@@ -87644,7 +87644,7 @@ function getMCPUserAgent() {
|
|
|
87644
87644
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
87645
87645
|
}
|
|
87646
87646
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
87647
|
-
return `claude-code/${"2.0.
|
|
87647
|
+
return `claude-code/${"2.0.6"}${suffix}`;
|
|
87648
87648
|
}
|
|
87649
87649
|
function getWebFetchUserAgent() {
|
|
87650
87650
|
return `Claude-User (${getClaudeCodeUserAgent()}; +https://support.anthropic.com/)`;
|
|
@@ -95724,7 +95724,7 @@ function getModelMaxOutputTokens(model) {
|
|
|
95724
95724
|
function getMaxThinkingTokensForModel(model) {
|
|
95725
95725
|
return getModelMaxOutputTokens(model).upperLimit - 1;
|
|
95726
95726
|
}
|
|
95727
|
-
var MODEL_CONTEXT_WINDOW_DEFAULT =
|
|
95727
|
+
var MODEL_CONTEXT_WINDOW_DEFAULT = 131072, COMPACT_CONTEXT_WINDOW_CHOICES, COMPACT_MAX_OUTPUT_TOKENS = 20000, MAX_OUTPUT_TOKENS_DEFAULT = 32000, MAX_OUTPUT_TOKENS_UPPER_LIMIT = 64000, CAPPED_DEFAULT_MAX_TOKENS = 8000, ESCALATED_MAX_TOKENS = 64000, _localProviderContextWindow = null;
|
|
95728
95728
|
var init_context = __esm(() => {
|
|
95729
95729
|
init_betas();
|
|
95730
95730
|
init_config();
|
|
@@ -130844,7 +130844,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
130844
130844
|
if (!isAttributionHeaderEnabled()) {
|
|
130845
130845
|
return "";
|
|
130846
130846
|
}
|
|
130847
|
-
const version = `${"2.0.
|
|
130847
|
+
const version = `${"2.0.6"}.${fingerprint}`;
|
|
130848
130848
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
130849
130849
|
const cch = "";
|
|
130850
130850
|
const workload = getWorkload();
|
|
@@ -147033,7 +147033,7 @@ var init_metadata = __esm(() => {
|
|
|
147033
147033
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
147034
147034
|
WHITESPACE_REGEX = /\s+/;
|
|
147035
147035
|
getVersionBase = memoize_default(() => {
|
|
147036
|
-
const match = "2.0.
|
|
147036
|
+
const match = "2.0.6".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
147037
147037
|
return match ? match[0] : undefined;
|
|
147038
147038
|
});
|
|
147039
147039
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -147073,9 +147073,9 @@ var init_metadata = __esm(() => {
|
|
|
147073
147073
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
147074
147074
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
147075
147075
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
147076
|
-
version: "2.0.
|
|
147076
|
+
version: "2.0.6",
|
|
147077
147077
|
versionBase: getVersionBase(),
|
|
147078
|
-
buildTime: "2026-05-07T21:
|
|
147078
|
+
buildTime: "2026-05-07T21:16:24.554Z",
|
|
147079
147079
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
147080
147080
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
147081
147081
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -179651,7 +179651,7 @@ function getTelemetryAttributes() {
|
|
|
179651
179651
|
attributes["session.id"] = sessionId;
|
|
179652
179652
|
}
|
|
179653
179653
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
179654
|
-
attributes["app.version"] = "2.0.
|
|
179654
|
+
attributes["app.version"] = "2.0.6";
|
|
179655
179655
|
}
|
|
179656
179656
|
const oauthAccount = getOauthAccountInfo();
|
|
179657
179657
|
if (oauthAccount) {
|
|
@@ -242455,7 +242455,7 @@ function getInstallationEnv() {
|
|
|
242455
242455
|
return;
|
|
242456
242456
|
}
|
|
242457
242457
|
function getClaudeCodeVersion() {
|
|
242458
|
-
return "2.0.
|
|
242458
|
+
return "2.0.6";
|
|
242459
242459
|
}
|
|
242460
242460
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
242461
242461
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -247729,7 +247729,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
247729
247729
|
const client4 = new Client({
|
|
247730
247730
|
name: "localclawd",
|
|
247731
247731
|
title: "localclawd",
|
|
247732
|
-
version: "2.0.
|
|
247732
|
+
version: "2.0.6",
|
|
247733
247733
|
description: "local-first AI coding tool",
|
|
247734
247734
|
websiteUrl: PRODUCT_URL
|
|
247735
247735
|
}, {
|
|
@@ -248071,7 +248071,7 @@ var init_client9 = __esm(() => {
|
|
|
248071
248071
|
const client4 = new Client({
|
|
248072
248072
|
name: "localclawd",
|
|
248073
248073
|
title: "localclawd",
|
|
248074
|
-
version: "2.0.
|
|
248074
|
+
version: "2.0.6",
|
|
248075
248075
|
description: "local-first AI coding tool",
|
|
248076
248076
|
websiteUrl: PRODUCT_URL
|
|
248077
248077
|
}, {
|
|
@@ -262473,7 +262473,7 @@ function computeFingerprint(messageText, version) {
|
|
|
262473
262473
|
}
|
|
262474
262474
|
function computeFingerprintFromMessages(messages) {
|
|
262475
262475
|
const firstMessageText = extractFirstMessageText(messages);
|
|
262476
|
-
return computeFingerprint(firstMessageText, "2.0.
|
|
262476
|
+
return computeFingerprint(firstMessageText, "2.0.6");
|
|
262477
262477
|
}
|
|
262478
262478
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
262479
262479
|
var init_fingerprint = () => {};
|
|
@@ -262515,7 +262515,7 @@ async function sideQuery(opts) {
|
|
|
262515
262515
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
262516
262516
|
}
|
|
262517
262517
|
const messageText = extractFirstUserMessageText(messages);
|
|
262518
|
-
const fingerprint = computeFingerprint(messageText, "2.0.
|
|
262518
|
+
const fingerprint = computeFingerprint(messageText, "2.0.6");
|
|
262519
262519
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
262520
262520
|
const systemBlocks = [
|
|
262521
262521
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -283263,7 +283263,7 @@ var init_user = __esm(() => {
|
|
|
283263
283263
|
deviceId,
|
|
283264
283264
|
sessionId: getSessionId(),
|
|
283265
283265
|
email: getEmail(),
|
|
283266
|
-
appVersion: "2.0.
|
|
283266
|
+
appVersion: "2.0.6",
|
|
283267
283267
|
platform: getHostPlatformForAnalytics(),
|
|
283268
283268
|
organizationUuid,
|
|
283269
283269
|
accountUuid,
|
|
@@ -284328,7 +284328,7 @@ async function initializeBetaTracing(resource) {
|
|
|
284328
284328
|
});
|
|
284329
284329
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
284330
284330
|
setLoggerProvider(loggerProvider);
|
|
284331
|
-
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "2.0.
|
|
284331
|
+
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "2.0.6");
|
|
284332
284332
|
setEventLogger(eventLogger);
|
|
284333
284333
|
process.on("beforeExit", async () => {
|
|
284334
284334
|
await loggerProvider?.forceFlush();
|
|
@@ -284368,7 +284368,7 @@ async function initializeTelemetry() {
|
|
|
284368
284368
|
const platform2 = getPlatform();
|
|
284369
284369
|
const baseAttributes = {
|
|
284370
284370
|
[ATTR_SERVICE_NAME4]: "claude-code",
|
|
284371
|
-
[ATTR_SERVICE_VERSION4]: "2.0.
|
|
284371
|
+
[ATTR_SERVICE_VERSION4]: "2.0.6"
|
|
284372
284372
|
};
|
|
284373
284373
|
if (platform2 === "wsl") {
|
|
284374
284374
|
const wslVersion = getWslVersion();
|
|
@@ -284413,7 +284413,7 @@ async function initializeTelemetry() {
|
|
|
284413
284413
|
} catch {}
|
|
284414
284414
|
};
|
|
284415
284415
|
registerCleanup(shutdownTelemetry2);
|
|
284416
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "2.0.
|
|
284416
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "2.0.6");
|
|
284417
284417
|
}
|
|
284418
284418
|
const meterProvider = new MeterProvider4({
|
|
284419
284419
|
resource,
|
|
@@ -284433,7 +284433,7 @@ async function initializeTelemetry() {
|
|
|
284433
284433
|
});
|
|
284434
284434
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
284435
284435
|
setLoggerProvider(loggerProvider);
|
|
284436
|
-
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "2.0.
|
|
284436
|
+
const eventLogger = logs.getLogger("com.anthropic.claude_code.events", "2.0.6");
|
|
284437
284437
|
setEventLogger(eventLogger);
|
|
284438
284438
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
284439
284439
|
process.on("beforeExit", async () => {
|
|
@@ -284495,7 +284495,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
284495
284495
|
}
|
|
284496
284496
|
};
|
|
284497
284497
|
registerCleanup(shutdownTelemetry);
|
|
284498
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "2.0.
|
|
284498
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "2.0.6");
|
|
284499
284499
|
}
|
|
284500
284500
|
async function flushTelemetry() {
|
|
284501
284501
|
const meterProvider = getMeterProvider();
|
|
@@ -285685,7 +285685,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
285685
285685
|
}
|
|
285686
285686
|
async function getDoctorDiagnostic() {
|
|
285687
285687
|
const installationType = await getCurrentInstallationType();
|
|
285688
|
-
const version = typeof MACRO !== "undefined" ? "2.0.
|
|
285688
|
+
const version = typeof MACRO !== "undefined" ? "2.0.6" : "unknown";
|
|
285689
285689
|
const installationPath = await getInstallationPath();
|
|
285690
285690
|
const invokedBinary = getInvokedBinary();
|
|
285691
285691
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -286626,8 +286626,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
286626
286626
|
const maxVersion = await getMaxVersion();
|
|
286627
286627
|
if (maxVersion && gt(version, maxVersion)) {
|
|
286628
286628
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version} to ${maxVersion}`);
|
|
286629
|
-
if (gte("2.0.
|
|
286630
|
-
logForDebugging(`Native installer: current version ${"2.0.
|
|
286629
|
+
if (gte("2.0.6", maxVersion)) {
|
|
286630
|
+
logForDebugging(`Native installer: current version ${"2.0.6"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
286631
286631
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
286632
286632
|
latency_ms: Date.now() - startTime,
|
|
286633
286633
|
max_version: maxVersion,
|
|
@@ -286638,7 +286638,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
286638
286638
|
version = maxVersion;
|
|
286639
286639
|
}
|
|
286640
286640
|
}
|
|
286641
|
-
if (!forceReinstall && version === "2.0.
|
|
286641
|
+
if (!forceReinstall && version === "2.0.6" && await versionIsAvailable(version) && await isPossibleLocalClawdBinary(executablePath)) {
|
|
286642
286642
|
logForDebugging(`Found ${version} at ${executablePath}, skipping install`);
|
|
286643
286643
|
logEvent("tengu_native_update_complete", {
|
|
286644
286644
|
latency_ms: Date.now() - startTime,
|
|
@@ -331881,7 +331881,7 @@ function getAnthropicEnvMetadata() {
|
|
|
331881
331881
|
function getBuildAgeMinutes() {
|
|
331882
331882
|
if (false)
|
|
331883
331883
|
;
|
|
331884
|
-
const buildTime = new Date("2026-05-07T21:
|
|
331884
|
+
const buildTime = new Date("2026-05-07T21:16:24.554Z").getTime();
|
|
331885
331885
|
if (isNaN(buildTime))
|
|
331886
331886
|
return;
|
|
331887
331887
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -360713,7 +360713,7 @@ function Feedback({
|
|
|
360713
360713
|
platform: env3.platform,
|
|
360714
360714
|
gitRepo: envInfo.isGit,
|
|
360715
360715
|
terminal: env3.terminal,
|
|
360716
|
-
version: "2.0.
|
|
360716
|
+
version: "2.0.6",
|
|
360717
360717
|
transcript: normalizeMessagesForAPI(messages),
|
|
360718
360718
|
errors: sanitizedErrors,
|
|
360719
360719
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -360905,7 +360905,7 @@ function Feedback({
|
|
|
360905
360905
|
", ",
|
|
360906
360906
|
env3.terminal,
|
|
360907
360907
|
", v",
|
|
360908
|
-
"2.0.
|
|
360908
|
+
"2.0.6"
|
|
360909
360909
|
]
|
|
360910
360910
|
}, undefined, true, undefined, this)
|
|
360911
360911
|
]
|
|
@@ -361011,7 +361011,7 @@ ${sanitizedDescription}
|
|
|
361011
361011
|
` + `**Environment Info**
|
|
361012
361012
|
` + `- Platform: ${env3.platform}
|
|
361013
361013
|
` + `- Terminal: ${env3.terminal}
|
|
361014
|
-
` + `- Version: ${"2.0.
|
|
361014
|
+
` + `- Version: ${"2.0.6"}
|
|
361015
361015
|
` + `- Feedback ID: ${feedbackId}
|
|
361016
361016
|
` + `
|
|
361017
361017
|
**Errors**
|
|
@@ -363639,7 +363639,7 @@ function buildPrimarySection() {
|
|
|
363639
363639
|
}, undefined, false, undefined, this);
|
|
363640
363640
|
return [{
|
|
363641
363641
|
label: "Version",
|
|
363642
|
-
value: "2.0.
|
|
363642
|
+
value: "2.0.6"
|
|
363643
363643
|
}, {
|
|
363644
363644
|
label: "Session name",
|
|
363645
363645
|
value: nameValue
|
|
@@ -368320,7 +368320,7 @@ function Config({
|
|
|
368320
368320
|
}
|
|
368321
368321
|
}, undefined, false, undefined, this)
|
|
368322
368322
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime176.jsxDEV(ChannelDowngradeDialog, {
|
|
368323
|
-
currentVersion: "2.0.
|
|
368323
|
+
currentVersion: "2.0.6",
|
|
368324
368324
|
onChoice: (choice) => {
|
|
368325
368325
|
setShowSubmenu(null);
|
|
368326
368326
|
setTabsHidden(false);
|
|
@@ -368332,7 +368332,7 @@ function Config({
|
|
|
368332
368332
|
autoUpdatesChannel: "stable"
|
|
368333
368333
|
};
|
|
368334
368334
|
if (choice === "stay") {
|
|
368335
|
-
newSettings.minimumVersion = "2.0.
|
|
368335
|
+
newSettings.minimumVersion = "2.0.6";
|
|
368336
368336
|
}
|
|
368337
368337
|
updateSettingsForSource("userSettings", newSettings);
|
|
368338
368338
|
setSettingsData((prev_27) => ({
|
|
@@ -384170,38 +384170,21 @@ var call54 = async (onDone, context7, args) => {
|
|
|
384170
384170
|
const { call: ctxCall } = await Promise.resolve().then(() => (init_ctx(), exports_ctx));
|
|
384171
384171
|
return ctxCall(onDone, context7, "");
|
|
384172
384172
|
}
|
|
384173
|
-
const model = context7.options.mainLoopModel;
|
|
384174
|
-
if (value === "auto") {
|
|
384175
|
-
const provider = getLocalLLMProvider();
|
|
384176
|
-
const baseUrl = getLocalLLMBaseUrl(provider);
|
|
384177
|
-
const modelName = getLocalLLMModel(provider) ?? "";
|
|
384178
|
-
const apiKey = getLocalLLMApiKey(provider);
|
|
384179
|
-
const detected = await queryLocalProviderContextLength(baseUrl, modelName, apiKey, provider);
|
|
384180
|
-
if (detected && detected > 0) {
|
|
384181
|
-
setLocalProviderContextWindow(detected);
|
|
384182
|
-
saveGlobalConfig((c5) => ({ ...c5, compactContextWindowTokens: detected }));
|
|
384183
|
-
onDone(`Context size changed to ${fmtTokens2(detected)} (auto-detected). Auto-compact at ${fmtTokens2(getAutoCompactThreshold(model))}.`, { display: "system" });
|
|
384184
|
-
return null;
|
|
384185
|
-
}
|
|
384186
|
-
onDone("Could not detect context window from local provider. Set manually: /contextsize 200k", { display: "system" });
|
|
384187
|
-
return null;
|
|
384188
|
-
}
|
|
384189
384173
|
const parsed = parseContextWindowString(value);
|
|
384190
384174
|
if (!parsed) {
|
|
384191
|
-
onDone(`Invalid size "${value}". Use: 200k | 1m | 131072
|
|
384175
|
+
onDone(`Invalid size "${value}". Use: 128k | 200k | 1m | 131072`, { display: "system" });
|
|
384192
384176
|
return null;
|
|
384193
384177
|
}
|
|
384194
384178
|
saveGlobalConfig((c5) => ({ ...c5, compactContextWindowTokens: parsed }));
|
|
384195
384179
|
setLocalProviderContextWindow(parsed);
|
|
384196
|
-
|
|
384180
|
+
const model = context7.options.mainLoopModel;
|
|
384181
|
+
onDone(`Context size set to ${fmtTokens2(parsed)}. Auto-compact triggers at ${fmtTokens2(getAutoCompactThreshold(model))}.`, { display: "system" });
|
|
384197
384182
|
return null;
|
|
384198
384183
|
};
|
|
384199
384184
|
var init_contextsize = __esm(() => {
|
|
384200
384185
|
init_config();
|
|
384201
384186
|
init_context();
|
|
384202
384187
|
init_autoCompact();
|
|
384203
|
-
init_localBackend();
|
|
384204
|
-
init_providers();
|
|
384205
384188
|
});
|
|
384206
384189
|
|
|
384207
384190
|
// src/commands/ctx/contextsize-index.ts
|
|
@@ -386072,7 +386055,7 @@ function Help(t0) {
|
|
|
386072
386055
|
let t6;
|
|
386073
386056
|
if ($2[31] !== tabs) {
|
|
386074
386057
|
t6 = /* @__PURE__ */ jsx_dev_runtime221.jsxDEV(Tabs, {
|
|
386075
|
-
title: `localclawd v${"2.0.
|
|
386058
|
+
title: `localclawd v${"2.0.6"}`,
|
|
386076
386059
|
color: "professionalBlue",
|
|
386077
386060
|
defaultTab: "general",
|
|
386078
386061
|
children: tabs
|
|
@@ -403334,7 +403317,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
403334
403317
|
}
|
|
403335
403318
|
return [];
|
|
403336
403319
|
}
|
|
403337
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "2.0.
|
|
403320
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "2.0.6") {
|
|
403338
403321
|
if (process.env.USER_TYPE === "ant") {
|
|
403339
403322
|
const changelog = MACRO.VERSION_CHANGELOG;
|
|
403340
403323
|
if (changelog) {
|
|
@@ -403361,7 +403344,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "2.0.5") {
|
|
|
403361
403344
|
releaseNotes
|
|
403362
403345
|
};
|
|
403363
403346
|
}
|
|
403364
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "2.0.
|
|
403347
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "2.0.6") {
|
|
403365
403348
|
if (process.env.USER_TYPE === "ant") {
|
|
403366
403349
|
const changelog = MACRO.VERSION_CHANGELOG;
|
|
403367
403350
|
if (changelog) {
|
|
@@ -403518,7 +403501,7 @@ function getRecentActivitySync() {
|
|
|
403518
403501
|
return cachedActivity;
|
|
403519
403502
|
}
|
|
403520
403503
|
function getLogoDisplayData() {
|
|
403521
|
-
const version = process.env.DEMO_VERSION ?? "2.0.
|
|
403504
|
+
const version = process.env.DEMO_VERSION ?? "2.0.6";
|
|
403522
403505
|
const serverUrl = getDirectConnectServerUrl();
|
|
403523
403506
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
403524
403507
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -404618,7 +404601,7 @@ function Logo() {
|
|
|
404618
404601
|
if ($2[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
404619
404602
|
t2 = () => {
|
|
404620
404603
|
const currentConfig = getGlobalConfig();
|
|
404621
|
-
if (currentConfig.lastReleaseNotesSeen === "2.0.
|
|
404604
|
+
if (currentConfig.lastReleaseNotesSeen === "2.0.6") {
|
|
404622
404605
|
return;
|
|
404623
404606
|
}
|
|
404624
404607
|
saveGlobalConfig(_temp326);
|
|
@@ -405277,12 +405260,12 @@ function Logo() {
|
|
|
405277
405260
|
return t41;
|
|
405278
405261
|
}
|
|
405279
405262
|
function _temp326(current) {
|
|
405280
|
-
if (current.lastReleaseNotesSeen === "2.0.
|
|
405263
|
+
if (current.lastReleaseNotesSeen === "2.0.6") {
|
|
405281
405264
|
return current;
|
|
405282
405265
|
}
|
|
405283
405266
|
return {
|
|
405284
405267
|
...current,
|
|
405285
|
-
lastReleaseNotesSeen: "2.0.
|
|
405268
|
+
lastReleaseNotesSeen: "2.0.6"
|
|
405286
405269
|
};
|
|
405287
405270
|
}
|
|
405288
405271
|
function _temp241(s_0) {
|
|
@@ -435761,7 +435744,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
435761
435744
|
smapsRollup,
|
|
435762
435745
|
platform: process.platform,
|
|
435763
435746
|
nodeVersion: process.version,
|
|
435764
|
-
ccVersion: "2.0.
|
|
435747
|
+
ccVersion: "2.0.6"
|
|
435765
435748
|
};
|
|
435766
435749
|
}
|
|
435767
435750
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -436346,7 +436329,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
436346
436329
|
var call88 = async () => {
|
|
436347
436330
|
return {
|
|
436348
436331
|
type: "text",
|
|
436349
|
-
value: `${"2.0.
|
|
436332
|
+
value: `${"2.0.6"} (built ${"2026-05-07T21:16:24.554Z"})`
|
|
436350
436333
|
};
|
|
436351
436334
|
}, version, version_default;
|
|
436352
436335
|
var init_version = __esm(() => {
|
|
@@ -444290,7 +444273,7 @@ function generateHtmlReport(data, insights) {
|
|
|
444290
444273
|
</html>`;
|
|
444291
444274
|
}
|
|
444292
444275
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
444293
|
-
const version2 = typeof MACRO !== "undefined" ? "2.0.
|
|
444276
|
+
const version2 = typeof MACRO !== "undefined" ? "2.0.6" : "unknown";
|
|
444294
444277
|
const remote_hosts_collected = remoteStats?.hosts.filter((h) => h.sessionCount > 0).map((h) => h.name);
|
|
444295
444278
|
const facets_summary = {
|
|
444296
444279
|
total: facets.size,
|
|
@@ -448493,7 +448476,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
448493
448476
|
init_settings2();
|
|
448494
448477
|
init_slowOperations();
|
|
448495
448478
|
init_uuid();
|
|
448496
|
-
VERSION6 = typeof MACRO !== "undefined" ? "2.0.
|
|
448479
|
+
VERSION6 = typeof MACRO !== "undefined" ? "2.0.6" : "unknown";
|
|
448497
448480
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
448498
448481
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
448499
448482
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -449694,7 +449677,7 @@ var init_filesystem = __esm(() => {
|
|
|
449694
449677
|
});
|
|
449695
449678
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
449696
449679
|
const nonce = randomBytes20(16).toString("hex");
|
|
449697
|
-
return join151(getClaudeTempDir(), "bundled-skills", "2.0.
|
|
449680
|
+
return join151(getClaudeTempDir(), "bundled-skills", "2.0.6", nonce);
|
|
449698
449681
|
});
|
|
449699
449682
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
449700
449683
|
});
|
|
@@ -458931,7 +458914,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
458931
458914
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
458932
458915
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
458933
458916
|
betas: getSdkBetas(),
|
|
458934
|
-
claude_code_version: "2.0.
|
|
458917
|
+
claude_code_version: "2.0.6",
|
|
458935
458918
|
output_style: outputStyle2,
|
|
458936
458919
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
458937
458920
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -473088,7 +473071,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
473088
473071
|
function getSemverPart(version2) {
|
|
473089
473072
|
return `${import_semver10.major(version2, { loose: true })}.${import_semver10.minor(version2, { loose: true })}.${import_semver10.patch(version2, { loose: true })}`;
|
|
473090
473073
|
}
|
|
473091
|
-
function useUpdateNotification(updatedVersion, initialVersion = "2.0.
|
|
473074
|
+
function useUpdateNotification(updatedVersion, initialVersion = "2.0.6") {
|
|
473092
473075
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react214.useState(() => getSemverPart(initialVersion));
|
|
473093
473076
|
if (!updatedVersion) {
|
|
473094
473077
|
return null;
|
|
@@ -473128,7 +473111,7 @@ function AutoUpdater({
|
|
|
473128
473111
|
return;
|
|
473129
473112
|
}
|
|
473130
473113
|
if (false) {}
|
|
473131
|
-
const currentVersion = "2.0.
|
|
473114
|
+
const currentVersion = "2.0.6";
|
|
473132
473115
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
473133
473116
|
let latestVersion = await getLatestVersion(channel);
|
|
473134
473117
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -473339,12 +473322,12 @@ function NativeAutoUpdater({
|
|
|
473339
473322
|
logEvent("tengu_native_auto_updater_start", {});
|
|
473340
473323
|
try {
|
|
473341
473324
|
const maxVersion = await getMaxVersion();
|
|
473342
|
-
if (maxVersion && gt("2.0.
|
|
473325
|
+
if (maxVersion && gt("2.0.6", maxVersion)) {
|
|
473343
473326
|
const msg = await getMaxVersionMessage();
|
|
473344
473327
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
473345
473328
|
}
|
|
473346
473329
|
const result = await installLatest(channel);
|
|
473347
|
-
const currentVersion = "2.0.
|
|
473330
|
+
const currentVersion = "2.0.6";
|
|
473348
473331
|
const latencyMs = Date.now() - startTime;
|
|
473349
473332
|
if (result.lockFailed) {
|
|
473350
473333
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -473479,17 +473462,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
473479
473462
|
const maxVersion = await getMaxVersion();
|
|
473480
473463
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
473481
473464
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
473482
|
-
if (gte("2.0.
|
|
473483
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"2.0.
|
|
473465
|
+
if (gte("2.0.6", maxVersion)) {
|
|
473466
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"2.0.6"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
473484
473467
|
setUpdateAvailable(false);
|
|
473485
473468
|
return;
|
|
473486
473469
|
}
|
|
473487
473470
|
latest = maxVersion;
|
|
473488
473471
|
}
|
|
473489
|
-
const hasUpdate = latest && !gte("2.0.
|
|
473472
|
+
const hasUpdate = latest && !gte("2.0.6", latest) && !shouldSkipVersion(latest);
|
|
473490
473473
|
setUpdateAvailable(!!hasUpdate);
|
|
473491
473474
|
if (hasUpdate) {
|
|
473492
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"2.0.
|
|
473475
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"2.0.6"} -> ${latest}`);
|
|
473493
473476
|
}
|
|
473494
473477
|
};
|
|
473495
473478
|
$2[0] = t1;
|
|
@@ -473523,7 +473506,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
473523
473506
|
wrap: "truncate",
|
|
473524
473507
|
children: [
|
|
473525
473508
|
"currentVersion: ",
|
|
473526
|
-
"2.0.
|
|
473509
|
+
"2.0.6"
|
|
473527
473510
|
]
|
|
473528
473511
|
}, undefined, true, undefined, this);
|
|
473529
473512
|
$2[3] = verbose;
|
|
@@ -481083,7 +481066,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
481083
481066
|
project_dir: getOriginalCwd(),
|
|
481084
481067
|
added_dirs: addedDirs
|
|
481085
481068
|
},
|
|
481086
|
-
version: "2.0.
|
|
481069
|
+
version: "2.0.6",
|
|
481087
481070
|
output_style: {
|
|
481088
481071
|
name: outputStyleName
|
|
481089
481072
|
},
|
|
@@ -492655,7 +492638,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
492655
492638
|
} catch {}
|
|
492656
492639
|
const data = {
|
|
492657
492640
|
trigger,
|
|
492658
|
-
version: "2.0.
|
|
492641
|
+
version: "2.0.6",
|
|
492659
492642
|
platform: process.platform,
|
|
492660
492643
|
transcript,
|
|
492661
492644
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -509564,7 +509547,7 @@ function appendToLog(path17, message) {
|
|
|
509564
509547
|
cwd: getFsImplementation().cwd(),
|
|
509565
509548
|
userType: process.env.USER_TYPE,
|
|
509566
509549
|
sessionId: getSessionId(),
|
|
509567
|
-
version: "2.0.
|
|
509550
|
+
version: "2.0.6"
|
|
509568
509551
|
};
|
|
509569
509552
|
getLogWriter(path17).write(messageWithTimestamp);
|
|
509570
509553
|
}
|
|
@@ -510037,19 +510020,6 @@ To attach: ${source_default.bold(`tmux attach -t ${tmuxSessionName}`)}`));
|
|
|
510037
510020
|
setLocalProviderContextWindow(persistedCtx);
|
|
510038
510021
|
logForDebugging(`[context] Restored context window from config: ${persistedCtx} tokens`);
|
|
510039
510022
|
}
|
|
510040
|
-
(async () => {
|
|
510041
|
-
try {
|
|
510042
|
-
const provider = getLocalLLMProvider();
|
|
510043
|
-
const baseUrl = getLocalLLMBaseUrl(provider);
|
|
510044
|
-
const model = getLocalLLMModel(provider) ?? "";
|
|
510045
|
-
const apiKey = getLocalLLMApiKey(provider);
|
|
510046
|
-
const contextLen = await queryLocalProviderContextLength(baseUrl, model, apiKey, provider);
|
|
510047
|
-
if (contextLen && contextLen > 0) {
|
|
510048
|
-
setLocalProviderContextWindow(contextLen);
|
|
510049
|
-
logForDebugging(`[context] Local provider context window: ${contextLen} tokens`);
|
|
510050
|
-
}
|
|
510051
|
-
} catch {}
|
|
510052
|
-
})();
|
|
510053
510023
|
initSessionMemory();
|
|
510054
510024
|
if (false) {}
|
|
510055
510025
|
}
|
|
@@ -510170,9 +510140,7 @@ var init_setup = __esm(() => {
|
|
|
510170
510140
|
init_scheduler();
|
|
510171
510141
|
init_projectMemory();
|
|
510172
510142
|
init_secretStore();
|
|
510173
|
-
init_localBackend();
|
|
510174
510143
|
init_context();
|
|
510175
|
-
init_providers();
|
|
510176
510144
|
init_worktree();
|
|
510177
510145
|
});
|
|
510178
510146
|
|
|
@@ -513593,8 +513561,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
513593
513561
|
}
|
|
513594
513562
|
async function checkEnvLessBridgeMinVersion() {
|
|
513595
513563
|
const cfg = await getEnvLessBridgeConfig();
|
|
513596
|
-
if (cfg.min_version && lt("2.0.
|
|
513597
|
-
return `Your version of localclawd (${"2.0.
|
|
513564
|
+
if (cfg.min_version && lt("2.0.6", cfg.min_version)) {
|
|
513565
|
+
return `Your version of localclawd (${"2.0.6"}) is too old for Remote Control.
|
|
513598
513566
|
Version ${cfg.min_version} or higher is required. Run \`localclawd update\` to update.`;
|
|
513599
513567
|
}
|
|
513600
513568
|
return null;
|
|
@@ -514066,7 +514034,7 @@ async function initBridgeCore(params) {
|
|
|
514066
514034
|
const rawApi = createBridgeApiClient({
|
|
514067
514035
|
baseUrl,
|
|
514068
514036
|
getAccessToken,
|
|
514069
|
-
runnerVersion: "2.0.
|
|
514037
|
+
runnerVersion: "2.0.6",
|
|
514070
514038
|
onDebug: logForDebugging,
|
|
514071
514039
|
onAuth401,
|
|
514072
514040
|
getTrustedDeviceToken
|
|
@@ -519785,7 +519753,7 @@ async function startMCPServer(cwd3, debug4, verbose) {
|
|
|
519785
519753
|
setCwd(cwd3);
|
|
519786
519754
|
const server = new Server({
|
|
519787
519755
|
name: "claude/tengu",
|
|
519788
|
-
version: "2.0.
|
|
519756
|
+
version: "2.0.6"
|
|
519789
519757
|
}, {
|
|
519790
519758
|
capabilities: {
|
|
519791
519759
|
tools: {}
|
|
@@ -520866,7 +520834,7 @@ function WelcomeLogo() {
|
|
|
520866
520834
|
dimColor: true,
|
|
520867
520835
|
children: [
|
|
520868
520836
|
"v",
|
|
520869
|
-
"2.0.
|
|
520837
|
+
"2.0.6"
|
|
520870
520838
|
]
|
|
520871
520839
|
}, undefined, true, undefined, this)
|
|
520872
520840
|
]
|
|
@@ -521057,7 +521025,7 @@ __export(exports_update, {
|
|
|
521057
521025
|
});
|
|
521058
521026
|
async function update() {
|
|
521059
521027
|
logEvent("tengu_update_check", {});
|
|
521060
|
-
writeToStdout(`Current version: ${"2.0.
|
|
521028
|
+
writeToStdout(`Current version: ${"2.0.6"}
|
|
521061
521029
|
`);
|
|
521062
521030
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
521063
521031
|
writeToStdout(`Checking for updates to ${channel} version...
|
|
@@ -521132,8 +521100,8 @@ async function update() {
|
|
|
521132
521100
|
writeToStdout(`localclawd is managed by Homebrew.
|
|
521133
521101
|
`);
|
|
521134
521102
|
const latest = await getLatestVersion(channel);
|
|
521135
|
-
if (latest && !gte("2.0.
|
|
521136
|
-
writeToStdout(`Update available: ${"2.0.
|
|
521103
|
+
if (latest && !gte("2.0.6", latest)) {
|
|
521104
|
+
writeToStdout(`Update available: ${"2.0.6"} → ${latest}
|
|
521137
521105
|
`);
|
|
521138
521106
|
writeToStdout(`
|
|
521139
521107
|
`);
|
|
@@ -521149,8 +521117,8 @@ async function update() {
|
|
|
521149
521117
|
writeToStdout(`localclawd is managed by winget.
|
|
521150
521118
|
`);
|
|
521151
521119
|
const latest = await getLatestVersion(channel);
|
|
521152
|
-
if (latest && !gte("2.0.
|
|
521153
|
-
writeToStdout(`Update available: ${"2.0.
|
|
521120
|
+
if (latest && !gte("2.0.6", latest)) {
|
|
521121
|
+
writeToStdout(`Update available: ${"2.0.6"} → ${latest}
|
|
521154
521122
|
`);
|
|
521155
521123
|
writeToStdout(`
|
|
521156
521124
|
`);
|
|
@@ -521164,8 +521132,8 @@ async function update() {
|
|
|
521164
521132
|
writeToStdout(`localclawd is managed by apk.
|
|
521165
521133
|
`);
|
|
521166
521134
|
const latest = await getLatestVersion(channel);
|
|
521167
|
-
if (latest && !gte("2.0.
|
|
521168
|
-
writeToStdout(`Update available: ${"2.0.
|
|
521135
|
+
if (latest && !gte("2.0.6", latest)) {
|
|
521136
|
+
writeToStdout(`Update available: ${"2.0.6"} → ${latest}
|
|
521169
521137
|
`);
|
|
521170
521138
|
writeToStdout(`
|
|
521171
521139
|
`);
|
|
@@ -521230,11 +521198,11 @@ async function update() {
|
|
|
521230
521198
|
`);
|
|
521231
521199
|
await gracefulShutdown(1);
|
|
521232
521200
|
}
|
|
521233
|
-
if (result.latestVersion === "2.0.
|
|
521234
|
-
writeToStdout(source_default.green(`localclawd is up to date (${"2.0.
|
|
521201
|
+
if (result.latestVersion === "2.0.6") {
|
|
521202
|
+
writeToStdout(source_default.green(`localclawd is up to date (${"2.0.6"})`) + `
|
|
521235
521203
|
`);
|
|
521236
521204
|
} else {
|
|
521237
|
-
writeToStdout(source_default.green(`Successfully updated from ${"2.0.
|
|
521205
|
+
writeToStdout(source_default.green(`Successfully updated from ${"2.0.6"} to version ${result.latestVersion}`) + `
|
|
521238
521206
|
`);
|
|
521239
521207
|
await regenerateCompletionCache();
|
|
521240
521208
|
}
|
|
@@ -521294,12 +521262,12 @@ async function update() {
|
|
|
521294
521262
|
`);
|
|
521295
521263
|
await gracefulShutdown(1);
|
|
521296
521264
|
}
|
|
521297
|
-
if (latestVersion === "2.0.
|
|
521298
|
-
writeToStdout(source_default.green(`localclawd is up to date (${"2.0.
|
|
521265
|
+
if (latestVersion === "2.0.6") {
|
|
521266
|
+
writeToStdout(source_default.green(`localclawd is up to date (${"2.0.6"})`) + `
|
|
521299
521267
|
`);
|
|
521300
521268
|
await gracefulShutdown(0);
|
|
521301
521269
|
}
|
|
521302
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"2.0.
|
|
521270
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"2.0.6"})
|
|
521303
521271
|
`);
|
|
521304
521272
|
writeToStdout(`Installing update...
|
|
521305
521273
|
`);
|
|
@@ -521344,7 +521312,7 @@ async function update() {
|
|
|
521344
521312
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
521345
521313
|
switch (status2) {
|
|
521346
521314
|
case "success":
|
|
521347
|
-
writeToStdout(source_default.green(`Successfully updated from ${"2.0.
|
|
521315
|
+
writeToStdout(source_default.green(`Successfully updated from ${"2.0.6"} to version ${latestVersion}`) + `
|
|
521348
521316
|
`);
|
|
521349
521317
|
await regenerateCompletionCache();
|
|
521350
521318
|
break;
|
|
@@ -522586,7 +522554,7 @@ Run with --debug for more details.
|
|
|
522586
522554
|
}
|
|
522587
522555
|
}
|
|
522588
522556
|
logForDiagnosticsNoPII("info", "started", {
|
|
522589
|
-
version: "2.0.
|
|
522557
|
+
version: "2.0.6",
|
|
522590
522558
|
is_native_binary: isInBundledMode()
|
|
522591
522559
|
});
|
|
522592
522560
|
registerCleanup(async () => {
|
|
@@ -523370,7 +523338,7 @@ Usage: localclawd --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
523370
523338
|
pendingHookMessages
|
|
523371
523339
|
}, renderAndRun);
|
|
523372
523340
|
}
|
|
523373
|
-
}).version("2.0.
|
|
523341
|
+
}).version("2.0.6 (localclawd)", "-v, --version", "Output the version number");
|
|
523374
523342
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
523375
523343
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
523376
523344
|
if (canUserConfigureAdvisor()) {
|
|
@@ -523884,7 +523852,7 @@ if (false) {}
|
|
|
523884
523852
|
async function main2() {
|
|
523885
523853
|
const args = process.argv.slice(2);
|
|
523886
523854
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
523887
|
-
console.log(`${"2.0.
|
|
523855
|
+
console.log(`${"2.0.6"} (localclawd)`);
|
|
523888
523856
|
return;
|
|
523889
523857
|
}
|
|
523890
523858
|
const {
|
|
@@ -523975,4 +523943,4 @@ localclawd crashed: ${msg}
|
|
|
523975
523943
|
process.exit(1);
|
|
523976
523944
|
});
|
|
523977
523945
|
|
|
523978
|
-
//# debugId=
|
|
523946
|
+
//# debugId=2B04A0CC79E560C064756E2164756E21
|