@ainative/cody-cli 0.7.45 → 0.7.46
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.js +158 -187
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -185594,7 +185594,7 @@ var init_auth2 = __esm(() => {
|
|
|
185594
185594
|
|
|
185595
185595
|
// src/utils/userAgent.ts
|
|
185596
185596
|
function getCodyUserAgent() {
|
|
185597
|
-
return `cody-cli/${"0.7.
|
|
185597
|
+
return `cody-cli/${"0.7.46"}`;
|
|
185598
185598
|
}
|
|
185599
185599
|
|
|
185600
185600
|
// src/utils/workloadContext.ts
|
|
@@ -185616,7 +185616,7 @@ function getUserAgent() {
|
|
|
185616
185616
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
185617
185617
|
const workload = getWorkload();
|
|
185618
185618
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
185619
|
-
return `claude-cli/${"0.7.
|
|
185619
|
+
return `claude-cli/${"0.7.46"} (${"external"}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
185620
185620
|
}
|
|
185621
185621
|
function getMCPUserAgent() {
|
|
185622
185622
|
const parts = [];
|
|
@@ -185630,7 +185630,7 @@ function getMCPUserAgent() {
|
|
|
185630
185630
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
185631
185631
|
}
|
|
185632
185632
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
185633
|
-
return `cody-cli/${"0.7.
|
|
185633
|
+
return `cody-cli/${"0.7.46"}${suffix}`;
|
|
185634
185634
|
}
|
|
185635
185635
|
function getWebFetchUserAgent() {
|
|
185636
185636
|
return `Cody-User (${getCodyUserAgent()}; +https://ainative.studio)`;
|
|
@@ -185768,7 +185768,7 @@ var init_user = __esm(() => {
|
|
|
185768
185768
|
deviceId,
|
|
185769
185769
|
sessionId: getSessionId(),
|
|
185770
185770
|
email: getEmail(),
|
|
185771
|
-
appVersion: "0.7.
|
|
185771
|
+
appVersion: "0.7.46",
|
|
185772
185772
|
platform: getHostPlatformForAnalytics(),
|
|
185773
185773
|
organizationUuid,
|
|
185774
185774
|
accountUuid,
|
|
@@ -193460,7 +193460,7 @@ var init_metadata = __esm(() => {
|
|
|
193460
193460
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
193461
193461
|
WHITESPACE_REGEX = /\s+/;
|
|
193462
193462
|
getVersionBase = memoize_default(() => {
|
|
193463
|
-
const match = "0.7.
|
|
193463
|
+
const match = "0.7.46".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
193464
193464
|
return match ? match[0] : undefined;
|
|
193465
193465
|
});
|
|
193466
193466
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -193500,9 +193500,9 @@ var init_metadata = __esm(() => {
|
|
|
193500
193500
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
193501
193501
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
193502
193502
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
193503
|
-
version: "0.7.
|
|
193503
|
+
version: "0.7.46",
|
|
193504
193504
|
versionBase: getVersionBase(),
|
|
193505
|
-
buildTime: "
|
|
193505
|
+
buildTime: "1779078498",
|
|
193506
193506
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
193507
193507
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
193508
193508
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -194120,7 +194120,7 @@ function initialize1PEventLogging() {
|
|
|
194120
194120
|
const platform3 = getPlatform();
|
|
194121
194121
|
const attributes = {
|
|
194122
194122
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "cody-cli",
|
|
194123
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.7.
|
|
194123
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.7.46"
|
|
194124
194124
|
};
|
|
194125
194125
|
if (platform3 === "wsl") {
|
|
194126
194126
|
const wslVersion = getWslVersion();
|
|
@@ -194147,7 +194147,7 @@ function initialize1PEventLogging() {
|
|
|
194147
194147
|
})
|
|
194148
194148
|
]
|
|
194149
194149
|
});
|
|
194150
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.ainative.cody_cli.events", "0.7.
|
|
194150
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.ainative.cody_cli.events", "0.7.46");
|
|
194151
194151
|
}
|
|
194152
194152
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
194153
194153
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -195840,7 +195840,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
195840
195840
|
if (!isAttributionHeaderEnabled()) {
|
|
195841
195841
|
return "";
|
|
195842
195842
|
}
|
|
195843
|
-
const version7 = `${"0.7.
|
|
195843
|
+
const version7 = `${"0.7.46"}.${fingerprint}`;
|
|
195844
195844
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
195845
195845
|
const cch = "";
|
|
195846
195846
|
const workload = getWorkload();
|
|
@@ -259985,7 +259985,7 @@ function getTelemetryAttributes() {
|
|
|
259985
259985
|
attributes["session.id"] = sessionId;
|
|
259986
259986
|
}
|
|
259987
259987
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
259988
|
-
attributes["app.version"] = "0.7.
|
|
259988
|
+
attributes["app.version"] = "0.7.46";
|
|
259989
259989
|
}
|
|
259990
259990
|
const oauthAccount = getOauthAccountInfo();
|
|
259991
259991
|
if (oauthAccount) {
|
|
@@ -291175,7 +291175,7 @@ function getInstallationEnv() {
|
|
|
291175
291175
|
return;
|
|
291176
291176
|
}
|
|
291177
291177
|
function getClaudeCodeVersion() {
|
|
291178
|
-
return "0.7.
|
|
291178
|
+
return "0.7.46";
|
|
291179
291179
|
}
|
|
291180
291180
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
291181
291181
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -296711,7 +296711,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
296711
296711
|
const client4 = new Client({
|
|
296712
296712
|
name: "claude-code",
|
|
296713
296713
|
title: "Cody CLI",
|
|
296714
|
-
version: "0.7.
|
|
296714
|
+
version: "0.7.46",
|
|
296715
296715
|
description: "Anthropic's agentic coding tool",
|
|
296716
296716
|
websiteUrl: PRODUCT_URL
|
|
296717
296717
|
}, {
|
|
@@ -297065,7 +297065,7 @@ var init_client8 = __esm(() => {
|
|
|
297065
297065
|
const client4 = new Client({
|
|
297066
297066
|
name: "claude-code",
|
|
297067
297067
|
title: "Cody CLI",
|
|
297068
|
-
version: "0.7.
|
|
297068
|
+
version: "0.7.46",
|
|
297069
297069
|
description: "Anthropic's agentic coding tool",
|
|
297070
297070
|
websiteUrl: PRODUCT_URL
|
|
297071
297071
|
}, {
|
|
@@ -345197,7 +345197,7 @@ async function initializeBetaTracing(resource) {
|
|
|
345197
345197
|
});
|
|
345198
345198
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
345199
345199
|
setLoggerProvider(loggerProvider);
|
|
345200
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.
|
|
345200
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.46");
|
|
345201
345201
|
setEventLogger(eventLogger);
|
|
345202
345202
|
process.on("beforeExit", async () => {
|
|
345203
345203
|
await loggerProvider?.forceFlush();
|
|
@@ -345237,7 +345237,7 @@ async function initializeTelemetry() {
|
|
|
345237
345237
|
const platform5 = getPlatform();
|
|
345238
345238
|
const baseAttributes = {
|
|
345239
345239
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
|
|
345240
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "0.7.
|
|
345240
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "0.7.46"
|
|
345241
345241
|
};
|
|
345242
345242
|
if (platform5 === "wsl") {
|
|
345243
345243
|
const wslVersion = getWslVersion();
|
|
@@ -345282,7 +345282,7 @@ async function initializeTelemetry() {
|
|
|
345282
345282
|
} catch {}
|
|
345283
345283
|
};
|
|
345284
345284
|
registerCleanup(shutdownTelemetry2);
|
|
345285
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "0.7.
|
|
345285
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "0.7.46");
|
|
345286
345286
|
}
|
|
345287
345287
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
345288
345288
|
resource,
|
|
@@ -345302,7 +345302,7 @@ async function initializeTelemetry() {
|
|
|
345302
345302
|
});
|
|
345303
345303
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
345304
345304
|
setLoggerProvider(loggerProvider);
|
|
345305
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.
|
|
345305
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.46");
|
|
345306
345306
|
setEventLogger(eventLogger);
|
|
345307
345307
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
345308
345308
|
process.on("beforeExit", async () => {
|
|
@@ -345364,7 +345364,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
345364
345364
|
}
|
|
345365
345365
|
};
|
|
345366
345366
|
registerCleanup(shutdownTelemetry);
|
|
345367
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "0.7.
|
|
345367
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "0.7.46");
|
|
345368
345368
|
}
|
|
345369
345369
|
async function flushTelemetry() {
|
|
345370
345370
|
const meterProvider = getMeterProvider();
|
|
@@ -346053,9 +346053,9 @@ async function assertMinVersion() {
|
|
|
346053
346053
|
}
|
|
346054
346054
|
try {
|
|
346055
346055
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
346056
|
-
if (versionConfig.minVersion && lt("0.7.
|
|
346056
|
+
if (versionConfig.minVersion && lt("0.7.46", versionConfig.minVersion)) {
|
|
346057
346057
|
console.error(`
|
|
346058
|
-
It looks like your version of Cody CLI (${"0.7.
|
|
346058
|
+
It looks like your version of Cody CLI (${"0.7.46"}) needs an update.
|
|
346059
346059
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
346060
346060
|
|
|
346061
346061
|
To update, please run:
|
|
@@ -346292,7 +346292,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
346292
346292
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
346293
346293
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
346294
346294
|
pid: process.pid,
|
|
346295
|
-
currentVersion: "0.7.
|
|
346295
|
+
currentVersion: "0.7.46"
|
|
346296
346296
|
});
|
|
346297
346297
|
return "in_progress";
|
|
346298
346298
|
}
|
|
@@ -346301,7 +346301,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
346301
346301
|
if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
|
|
346302
346302
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
346303
346303
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
346304
|
-
currentVersion: "0.7.
|
|
346304
|
+
currentVersion: "0.7.46"
|
|
346305
346305
|
});
|
|
346306
346306
|
console.error(`
|
|
346307
346307
|
Error: Windows NPM detected in WSL
|
|
@@ -346836,7 +346836,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
346836
346836
|
}
|
|
346837
346837
|
async function getDoctorDiagnostic() {
|
|
346838
346838
|
const installationType = await getCurrentInstallationType();
|
|
346839
|
-
const version7 = typeof MACRO !== "undefined" ? "0.7.
|
|
346839
|
+
const version7 = typeof MACRO !== "undefined" ? "0.7.46" : "unknown";
|
|
346840
346840
|
const installationPath = await getInstallationPath();
|
|
346841
346841
|
const invokedBinary = getInvokedBinary();
|
|
346842
346842
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -347671,8 +347671,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
347671
347671
|
const maxVersion = await getMaxVersion();
|
|
347672
347672
|
if (maxVersion && gt(version7, maxVersion)) {
|
|
347673
347673
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version7} to ${maxVersion}`);
|
|
347674
|
-
if (gte("0.7.
|
|
347675
|
-
logForDebugging(`Native installer: current version ${"0.7.
|
|
347674
|
+
if (gte("0.7.46", maxVersion)) {
|
|
347675
|
+
logForDebugging(`Native installer: current version ${"0.7.46"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
347676
347676
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
347677
347677
|
latency_ms: Date.now() - startTime,
|
|
347678
347678
|
max_version: maxVersion,
|
|
@@ -347683,7 +347683,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
347683
347683
|
version7 = maxVersion;
|
|
347684
347684
|
}
|
|
347685
347685
|
}
|
|
347686
|
-
if (!forceReinstall && version7 === "0.7.
|
|
347686
|
+
if (!forceReinstall && version7 === "0.7.46" && await versionIsAvailable(version7) && await isPossibleClaudeBinary(executablePath)) {
|
|
347687
347687
|
logForDebugging(`Found ${version7} at ${executablePath}, skipping install`);
|
|
347688
347688
|
logEvent("tengu_native_update_complete", {
|
|
347689
347689
|
latency_ms: Date.now() - startTime,
|
|
@@ -431532,7 +431532,7 @@ function getAnthropicEnvMetadata() {
|
|
|
431532
431532
|
function getBuildAgeMinutes() {
|
|
431533
431533
|
if (false)
|
|
431534
431534
|
;
|
|
431535
|
-
const buildTime = new Date("
|
|
431535
|
+
const buildTime = new Date("1779078498").getTime();
|
|
431536
431536
|
if (isNaN(buildTime))
|
|
431537
431537
|
return;
|
|
431538
431538
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -455047,7 +455047,7 @@ function Feedback({
|
|
|
455047
455047
|
platform: env4.platform,
|
|
455048
455048
|
gitRepo: envInfo.isGit,
|
|
455049
455049
|
terminal: env4.terminal,
|
|
455050
|
-
version: "0.7.
|
|
455050
|
+
version: "0.7.46",
|
|
455051
455051
|
transcript: normalizeMessagesForAPI(messages),
|
|
455052
455052
|
errors: sanitizedErrors,
|
|
455053
455053
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -455239,7 +455239,7 @@ function Feedback({
|
|
|
455239
455239
|
", ",
|
|
455240
455240
|
env4.terminal,
|
|
455241
455241
|
", v",
|
|
455242
|
-
"0.7.
|
|
455242
|
+
"0.7.46"
|
|
455243
455243
|
]
|
|
455244
455244
|
}, undefined, true, undefined, this)
|
|
455245
455245
|
]
|
|
@@ -455345,7 +455345,7 @@ ${sanitizedDescription}
|
|
|
455345
455345
|
` + `**Environment Info**
|
|
455346
455346
|
` + `- Platform: ${env4.platform}
|
|
455347
455347
|
` + `- Terminal: ${env4.terminal}
|
|
455348
|
-
` + `- Version: ${"0.7.
|
|
455348
|
+
` + `- Version: ${"0.7.46"}
|
|
455349
455349
|
` + `- Feedback ID: ${feedbackId}
|
|
455350
455350
|
` + `
|
|
455351
455351
|
**Errors**
|
|
@@ -458445,7 +458445,7 @@ function buildPrimarySection() {
|
|
|
458445
458445
|
}, undefined, false, undefined, this);
|
|
458446
458446
|
return [{
|
|
458447
458447
|
label: "Version",
|
|
458448
|
-
value: "0.7.
|
|
458448
|
+
value: "0.7.46"
|
|
458449
458449
|
}, {
|
|
458450
458450
|
label: "Session name",
|
|
458451
458451
|
value: nameValue
|
|
@@ -462196,7 +462196,7 @@ function Config({
|
|
|
462196
462196
|
}
|
|
462197
462197
|
}, undefined, false, undefined, this)
|
|
462198
462198
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime178.jsxDEV(ChannelDowngradeDialog, {
|
|
462199
|
-
currentVersion: "0.7.
|
|
462199
|
+
currentVersion: "0.7.46",
|
|
462200
462200
|
onChoice: (choice) => {
|
|
462201
462201
|
setShowSubmenu(null);
|
|
462202
462202
|
setTabsHidden(false);
|
|
@@ -462208,7 +462208,7 @@ function Config({
|
|
|
462208
462208
|
autoUpdatesChannel: "stable"
|
|
462209
462209
|
};
|
|
462210
462210
|
if (choice === "stay") {
|
|
462211
|
-
newSettings.minimumVersion = "0.7.
|
|
462211
|
+
newSettings.minimumVersion = "0.7.46";
|
|
462212
462212
|
}
|
|
462213
462213
|
updateSettingsForSource("userSettings", newSettings);
|
|
462214
462214
|
setSettingsData((prev_27) => ({
|
|
@@ -470250,7 +470250,7 @@ function HelpV2(t0) {
|
|
|
470250
470250
|
let t6;
|
|
470251
470251
|
if ($3[31] !== tabs) {
|
|
470252
470252
|
t6 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tabs, {
|
|
470253
|
-
title: `Cody CLI v${"0.7.
|
|
470253
|
+
title: `Cody CLI v${"0.7.46"}`,
|
|
470254
470254
|
color: "professionalBlue",
|
|
470255
470255
|
defaultTab: "general",
|
|
470256
470256
|
children: tabs
|
|
@@ -494440,7 +494440,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
494440
494440
|
return [];
|
|
494441
494441
|
}
|
|
494442
494442
|
}
|
|
494443
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.
|
|
494443
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.46") {
|
|
494444
494444
|
if (false) {}
|
|
494445
494445
|
const cachedChangelog = await getStoredChangelog();
|
|
494446
494446
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -494453,7 +494453,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.45")
|
|
|
494453
494453
|
releaseNotes
|
|
494454
494454
|
};
|
|
494455
494455
|
}
|
|
494456
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.7.
|
|
494456
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.7.46") {
|
|
494457
494457
|
if (false) {}
|
|
494458
494458
|
const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
|
|
494459
494459
|
return {
|
|
@@ -495609,7 +495609,7 @@ function getRecentActivitySync() {
|
|
|
495609
495609
|
return cachedActivity;
|
|
495610
495610
|
}
|
|
495611
495611
|
function getLogoDisplayData() {
|
|
495612
|
-
const version7 = process.env.DEMO_VERSION ?? "0.7.
|
|
495612
|
+
const version7 = process.env.DEMO_VERSION ?? "0.7.46";
|
|
495613
495613
|
const serverUrl = getDirectConnectServerUrl();
|
|
495614
495614
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
495615
495615
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -497029,7 +497029,7 @@ function LogoV2() {
|
|
|
497029
497029
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
497030
497030
|
t2 = () => {
|
|
497031
497031
|
const currentConfig = getGlobalConfig();
|
|
497032
|
-
if (currentConfig.lastReleaseNotesSeen === "0.7.
|
|
497032
|
+
if (currentConfig.lastReleaseNotesSeen === "0.7.46") {
|
|
497033
497033
|
return;
|
|
497034
497034
|
}
|
|
497035
497035
|
saveGlobalConfig(_temp329);
|
|
@@ -497705,12 +497705,12 @@ function LogoV2() {
|
|
|
497705
497705
|
return t41;
|
|
497706
497706
|
}
|
|
497707
497707
|
function _temp329(current) {
|
|
497708
|
-
if (current.lastReleaseNotesSeen === "0.7.
|
|
497708
|
+
if (current.lastReleaseNotesSeen === "0.7.46") {
|
|
497709
497709
|
return current;
|
|
497710
497710
|
}
|
|
497711
497711
|
return {
|
|
497712
497712
|
...current,
|
|
497713
|
-
lastReleaseNotesSeen: "0.7.
|
|
497713
|
+
lastReleaseNotesSeen: "0.7.46"
|
|
497714
497714
|
};
|
|
497715
497715
|
}
|
|
497716
497716
|
function _temp245(s_0) {
|
|
@@ -524065,7 +524065,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
524065
524065
|
smapsRollup,
|
|
524066
524066
|
platform: process.platform,
|
|
524067
524067
|
nodeVersion: process.version,
|
|
524068
|
-
ccVersion: "0.7.
|
|
524068
|
+
ccVersion: "0.7.46"
|
|
524069
524069
|
};
|
|
524070
524070
|
}
|
|
524071
524071
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -524593,7 +524593,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
524593
524593
|
var call56 = async () => {
|
|
524594
524594
|
return {
|
|
524595
524595
|
type: "text",
|
|
524596
|
-
value: `${"0.7.
|
|
524596
|
+
value: `${"0.7.46"} (built ${"1779078498"})`
|
|
524597
524597
|
};
|
|
524598
524598
|
}, version7, version_default;
|
|
524599
524599
|
var init_version = __esm(() => {
|
|
@@ -533541,7 +533541,7 @@ function generateHtmlReport(data, insights) {
|
|
|
533541
533541
|
</html>`;
|
|
533542
533542
|
}
|
|
533543
533543
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
533544
|
-
const version8 = typeof MACRO !== "undefined" ? "0.7.
|
|
533544
|
+
const version8 = typeof MACRO !== "undefined" ? "0.7.46" : "unknown";
|
|
533545
533545
|
const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
|
|
533546
533546
|
const facets_summary = {
|
|
533547
533547
|
total: facets.size,
|
|
@@ -537488,7 +537488,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
537488
537488
|
init_settings2();
|
|
537489
537489
|
init_slowOperations();
|
|
537490
537490
|
init_uuid();
|
|
537491
|
-
VERSION5 = typeof MACRO !== "undefined" ? "0.7.
|
|
537491
|
+
VERSION5 = typeof MACRO !== "undefined" ? "0.7.46" : "unknown";
|
|
537492
537492
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
537493
537493
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
537494
537494
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -538693,7 +538693,7 @@ var init_filesystem = __esm(() => {
|
|
|
538693
538693
|
});
|
|
538694
538694
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
538695
538695
|
const nonce = randomBytes19(16).toString("hex");
|
|
538696
|
-
return join132(getClaudeTempDir(), "bundled-skills", "0.7.
|
|
538696
|
+
return join132(getClaudeTempDir(), "bundled-skills", "0.7.46", nonce);
|
|
538697
538697
|
});
|
|
538698
538698
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
538699
538699
|
});
|
|
@@ -544665,7 +544665,7 @@ function computeFingerprint(messageText, version8) {
|
|
|
544665
544665
|
}
|
|
544666
544666
|
function computeFingerprintFromMessages(messages) {
|
|
544667
544667
|
const firstMessageText = extractFirstMessageText(messages);
|
|
544668
|
-
return computeFingerprint(firstMessageText, "0.7.
|
|
544668
|
+
return computeFingerprint(firstMessageText, "0.7.46");
|
|
544669
544669
|
}
|
|
544670
544670
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
544671
544671
|
var init_fingerprint = () => {};
|
|
@@ -545257,7 +545257,7 @@ async function* ainativeBypass(messages, systemPrompt, model, toolSchemas, signa
|
|
|
545257
545257
|
] : m2.content
|
|
545258
545258
|
})),
|
|
545259
545259
|
system: chatMessages.find((m2) => m2.role === "system")?.content || undefined,
|
|
545260
|
-
stream:
|
|
545260
|
+
stream: false
|
|
545261
545261
|
};
|
|
545262
545262
|
if (simplifiedTools && simplifiedTools.length > 0) {
|
|
545263
545263
|
anthropicBody.tools = simplifiedTools;
|
|
@@ -545280,125 +545280,96 @@ async function* ainativeBypass(messages, systemPrompt, model, toolSchemas, signa
|
|
|
545280
545280
|
}
|
|
545281
545281
|
throw new Error(`AINative API error: ${resp.status} ${errText}`);
|
|
545282
545282
|
}
|
|
545283
|
-
|
|
545284
|
-
throw new Error("AINative API error: response body is null (streaming not supported?)");
|
|
545285
|
-
}
|
|
545286
|
-
const msgId = `msg_${randomUUID32().slice(0, 24)}`;
|
|
545287
|
-
const startTime = Date.now();
|
|
545288
|
-
let accMsgId = msgId;
|
|
545289
|
-
let accModel = model;
|
|
545290
|
-
let accStopReason = null;
|
|
545291
|
-
let accStopSequence = null;
|
|
545292
|
-
let accInputTokens = 0;
|
|
545293
|
-
let accOutputTokens = 0;
|
|
545294
|
-
const accContentBlocks = [];
|
|
545295
|
-
const pendingToolUse = new Map;
|
|
545296
|
-
let ttftEmitted = false;
|
|
545297
|
-
const decoder = new TextDecoder;
|
|
545298
|
-
const reader = resp.body.getReader();
|
|
545299
|
-
let buf = "";
|
|
545283
|
+
let data;
|
|
545300
545284
|
try {
|
|
545301
|
-
|
|
545302
|
-
|
|
545303
|
-
|
|
545304
|
-
|
|
545305
|
-
buf += decoder.decode(value, { stream: true });
|
|
545306
|
-
let newlineIdx;
|
|
545307
|
-
while ((newlineIdx = buf.indexOf(`
|
|
545308
|
-
`)) !== -1) {
|
|
545309
|
-
const line = buf.slice(0, newlineIdx).trimEnd();
|
|
545310
|
-
buf = buf.slice(newlineIdx + 1);
|
|
545311
|
-
if (!line.startsWith("data: "))
|
|
545312
|
-
continue;
|
|
545313
|
-
const payload = line.slice(6).trim();
|
|
545314
|
-
if (payload === "[DONE]")
|
|
545315
|
-
continue;
|
|
545316
|
-
let event;
|
|
545317
|
-
try {
|
|
545318
|
-
event = JSON.parse(payload);
|
|
545319
|
-
} catch {
|
|
545320
|
-
continue;
|
|
545321
|
-
}
|
|
545322
|
-
if (event.type === "message_start" && event.message) {
|
|
545323
|
-
const m2 = event.message;
|
|
545324
|
-
accMsgId = m2.id || accMsgId;
|
|
545325
|
-
accModel = m2.model || accModel;
|
|
545326
|
-
accInputTokens = m2.usage?.input_tokens ?? 0;
|
|
545327
|
-
accOutputTokens = m2.usage?.output_tokens ?? 0;
|
|
545328
|
-
} else if (event.type === "content_block_start" && event.content_block) {
|
|
545329
|
-
const idx = event.index ?? accContentBlocks.length;
|
|
545330
|
-
const cb = event.content_block;
|
|
545331
|
-
if (cb.type === "tool_use") {
|
|
545332
|
-
pendingToolUse.set(idx, { id: cb.id ?? "", name: cb.name ?? "", input_json: "" });
|
|
545333
|
-
} else {
|
|
545334
|
-
accContentBlocks[idx] = { ...cb };
|
|
545335
|
-
}
|
|
545336
|
-
} else if (event.type === "content_block_delta" && event.delta) {
|
|
545337
|
-
const idx = event.index ?? 0;
|
|
545338
|
-
const d = event.delta;
|
|
545339
|
-
if (d.type === "text_delta") {
|
|
545340
|
-
if (!accContentBlocks[idx])
|
|
545341
|
-
accContentBlocks[idx] = { type: "text", text: "" };
|
|
545342
|
-
accContentBlocks[idx].text = (accContentBlocks[idx].text ?? "") + (d.text ?? "");
|
|
545343
|
-
} else if (d.type === "input_json_delta") {
|
|
545344
|
-
const tu = pendingToolUse.get(idx);
|
|
545345
|
-
if (tu)
|
|
545346
|
-
tu.input_json += d.partial_json ?? "";
|
|
545347
|
-
}
|
|
545348
|
-
} else if (event.type === "content_block_stop") {
|
|
545349
|
-
const idx = event.index ?? 0;
|
|
545350
|
-
const tu = pendingToolUse.get(idx);
|
|
545351
|
-
if (tu) {
|
|
545352
|
-
let input = {};
|
|
545353
|
-
try {
|
|
545354
|
-
input = JSON.parse(tu.input_json);
|
|
545355
|
-
} catch {
|
|
545356
|
-
input = {};
|
|
545357
|
-
}
|
|
545358
|
-
accContentBlocks[idx] = { type: "tool_use", id: tu.id, name: tu.name, input };
|
|
545359
|
-
pendingToolUse.delete(idx);
|
|
545360
|
-
}
|
|
545361
|
-
} else if (event.type === "message_delta" && event.delta) {
|
|
545362
|
-
accStopReason = event.delta.stop_reason ?? accStopReason;
|
|
545363
|
-
accStopSequence = event.delta.stop_sequence ?? accStopSequence;
|
|
545364
|
-
accOutputTokens = event.usage?.output_tokens ?? accOutputTokens;
|
|
545365
|
-
}
|
|
545366
|
-
const ttftMs = !ttftEmitted ? (ttftEmitted = true, Date.now() - startTime) : undefined;
|
|
545367
|
-
const streamEvent = { type: "stream_event", event };
|
|
545368
|
-
if (ttftMs !== undefined)
|
|
545369
|
-
streamEvent.ttftMs = ttftMs;
|
|
545370
|
-
yield streamEvent;
|
|
545371
|
-
}
|
|
545372
|
-
}
|
|
545373
|
-
} finally {
|
|
545374
|
-
reader.releaseLock();
|
|
545285
|
+
data = await resp.json();
|
|
545286
|
+
} catch {
|
|
545287
|
+
const raw = await resp.text().catch(() => "");
|
|
545288
|
+
throw new Error(`AINative API error: malformed JSON response (${raw.slice(0, 200)})`);
|
|
545375
545289
|
}
|
|
545376
|
-
|
|
545377
|
-
const cleanedContent = (accContentBlocks.filter(Boolean).length > 0 ? accContentBlocks.filter(Boolean) : [{ type: "text", text: "" }]).map((block) => {
|
|
545290
|
+
const cleanedContent = (data.content || [{ type: "text", text: "" }]).map((block) => {
|
|
545378
545291
|
if (block.type === "text" && typeof block.text === "string") {
|
|
545379
545292
|
const text2 = block.text.replace(/<tool_call>[\s\S]*?<\/tool_call>/g, "").replace(/<\/?tool_call>/g, "").trimEnd();
|
|
545380
545293
|
return { ...block, text: text2 };
|
|
545381
545294
|
}
|
|
545382
545295
|
return block;
|
|
545383
545296
|
});
|
|
545297
|
+
const msgId = data.id || `msg_${randomUUID32().slice(0, 24)}`;
|
|
545298
|
+
yield {
|
|
545299
|
+
type: "stream_event",
|
|
545300
|
+
ttftMs: 0,
|
|
545301
|
+
event: {
|
|
545302
|
+
type: "message_start",
|
|
545303
|
+
message: {
|
|
545304
|
+
id: msgId,
|
|
545305
|
+
type: "message",
|
|
545306
|
+
role: "assistant",
|
|
545307
|
+
content: [],
|
|
545308
|
+
model,
|
|
545309
|
+
stop_reason: null,
|
|
545310
|
+
stop_sequence: null,
|
|
545311
|
+
usage: { input_tokens: data.usage?.input_tokens ?? 0, output_tokens: 0 }
|
|
545312
|
+
}
|
|
545313
|
+
}
|
|
545314
|
+
};
|
|
545315
|
+
for (let blockIdx = 0;blockIdx < cleanedContent.length; blockIdx++) {
|
|
545316
|
+
const block = cleanedContent[blockIdx];
|
|
545317
|
+
yield {
|
|
545318
|
+
type: "stream_event",
|
|
545319
|
+
event: { type: "content_block_start", index: blockIdx, content_block: block.type === "tool_use" ? { type: "tool_use", id: block.id, name: block.name, input: {} } : { type: "text", text: "" } }
|
|
545320
|
+
};
|
|
545321
|
+
if (block.type === "text" && block.text) {
|
|
545322
|
+
const words = block.text.split(" ");
|
|
545323
|
+
const CHUNK = 5;
|
|
545324
|
+
for (let i3 = 0;i3 < words.length; i3 += CHUNK) {
|
|
545325
|
+
const chunk2 = words.slice(i3, i3 + CHUNK).join(" ") + (i3 + CHUNK < words.length ? " " : "");
|
|
545326
|
+
yield {
|
|
545327
|
+
type: "stream_event",
|
|
545328
|
+
event: { type: "content_block_delta", index: blockIdx, delta: { type: "text_delta", text: chunk2 } }
|
|
545329
|
+
};
|
|
545330
|
+
}
|
|
545331
|
+
} else if (block.type === "tool_use") {
|
|
545332
|
+
const inputJson = JSON.stringify(block.input ?? {});
|
|
545333
|
+
yield {
|
|
545334
|
+
type: "stream_event",
|
|
545335
|
+
event: { type: "content_block_delta", index: blockIdx, delta: { type: "input_json_delta", partial_json: inputJson } }
|
|
545336
|
+
};
|
|
545337
|
+
}
|
|
545338
|
+
yield {
|
|
545339
|
+
type: "stream_event",
|
|
545340
|
+
event: { type: "content_block_stop", index: blockIdx }
|
|
545341
|
+
};
|
|
545342
|
+
}
|
|
545343
|
+
yield {
|
|
545344
|
+
type: "stream_event",
|
|
545345
|
+
event: {
|
|
545346
|
+
type: "message_delta",
|
|
545347
|
+
delta: { stop_reason: data.stop_reason || "end_turn", stop_sequence: data.stop_sequence || null },
|
|
545348
|
+
usage: { output_tokens: data.usage?.output_tokens ?? 0 }
|
|
545349
|
+
}
|
|
545350
|
+
};
|
|
545351
|
+
yield {
|
|
545352
|
+
type: "stream_event",
|
|
545353
|
+
event: { type: "message_stop" }
|
|
545354
|
+
};
|
|
545384
545355
|
yield {
|
|
545385
545356
|
type: "assistant",
|
|
545386
545357
|
message: {
|
|
545387
|
-
id:
|
|
545358
|
+
id: msgId,
|
|
545388
545359
|
type: "message",
|
|
545389
545360
|
role: "assistant",
|
|
545390
545361
|
content: cleanedContent,
|
|
545391
|
-
model
|
|
545392
|
-
stop_reason:
|
|
545393
|
-
stop_sequence:
|
|
545362
|
+
model,
|
|
545363
|
+
stop_reason: data.stop_reason || "end_turn",
|
|
545364
|
+
stop_sequence: data.stop_sequence || null,
|
|
545394
545365
|
usage: {
|
|
545395
|
-
input_tokens:
|
|
545396
|
-
output_tokens:
|
|
545366
|
+
input_tokens: data.usage?.input_tokens ?? 0,
|
|
545367
|
+
output_tokens: data.usage?.output_tokens ?? 0,
|
|
545397
545368
|
cache_creation_input_tokens: 0,
|
|
545398
545369
|
cache_read_input_tokens: 0
|
|
545399
545370
|
}
|
|
545400
545371
|
},
|
|
545401
|
-
requestId:
|
|
545372
|
+
requestId: msgId,
|
|
545402
545373
|
uuid: randomUUID32(),
|
|
545403
545374
|
timestamp: new Date().toISOString()
|
|
545404
545375
|
};
|
|
@@ -546815,7 +546786,7 @@ async function sideQuery(opts) {
|
|
|
546815
546786
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
546816
546787
|
}
|
|
546817
546788
|
const messageText = extractFirstUserMessageText(messages);
|
|
546818
|
-
const fingerprint = computeFingerprint(messageText, "0.7.
|
|
546789
|
+
const fingerprint = computeFingerprint(messageText, "0.7.46");
|
|
546819
546790
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
546820
546791
|
const systemBlocks = [
|
|
546821
546792
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -551397,7 +551368,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
551397
551368
|
slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
|
|
551398
551369
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
551399
551370
|
betas: getSdkBetas(),
|
|
551400
|
-
claude_code_version: "0.7.
|
|
551371
|
+
claude_code_version: "0.7.46",
|
|
551401
551372
|
output_style: outputStyle2,
|
|
551402
551373
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
551403
551374
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -565949,7 +565920,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
565949
565920
|
function getSemverPart(version8) {
|
|
565950
565921
|
return `${import_semver13.major(version8, { loose: true })}.${import_semver13.minor(version8, { loose: true })}.${import_semver13.patch(version8, { loose: true })}`;
|
|
565951
565922
|
}
|
|
565952
|
-
function useUpdateNotification(updatedVersion, initialVersion = "0.7.
|
|
565923
|
+
function useUpdateNotification(updatedVersion, initialVersion = "0.7.46") {
|
|
565953
565924
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
565954
565925
|
if (!updatedVersion) {
|
|
565955
565926
|
return null;
|
|
@@ -565989,7 +565960,7 @@ function AutoUpdater({
|
|
|
565989
565960
|
return;
|
|
565990
565961
|
}
|
|
565991
565962
|
if (false) {}
|
|
565992
|
-
const currentVersion = "0.7.
|
|
565963
|
+
const currentVersion = "0.7.46";
|
|
565993
565964
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
565994
565965
|
let latestVersion = await getLatestVersion(channel);
|
|
565995
565966
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -566202,12 +566173,12 @@ function NativeAutoUpdater({
|
|
|
566202
566173
|
logEvent("tengu_native_auto_updater_start", {});
|
|
566203
566174
|
try {
|
|
566204
566175
|
const maxVersion = await getMaxVersion();
|
|
566205
|
-
if (maxVersion && gt("0.7.
|
|
566176
|
+
if (maxVersion && gt("0.7.46", maxVersion)) {
|
|
566206
566177
|
const msg = await getMaxVersionMessage();
|
|
566207
566178
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
566208
566179
|
}
|
|
566209
566180
|
const result = await installLatest(channel);
|
|
566210
|
-
const currentVersion = "0.7.
|
|
566181
|
+
const currentVersion = "0.7.46";
|
|
566211
566182
|
const latencyMs = Date.now() - startTime;
|
|
566212
566183
|
if (result.lockFailed) {
|
|
566213
566184
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -566344,17 +566315,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
566344
566315
|
const maxVersion = await getMaxVersion();
|
|
566345
566316
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
566346
566317
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
566347
|
-
if (gte("0.7.
|
|
566348
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"0.7.
|
|
566318
|
+
if (gte("0.7.46", maxVersion)) {
|
|
566319
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"0.7.46"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
566349
566320
|
setUpdateAvailable(false);
|
|
566350
566321
|
return;
|
|
566351
566322
|
}
|
|
566352
566323
|
latest = maxVersion;
|
|
566353
566324
|
}
|
|
566354
|
-
const hasUpdate = latest && !gte("0.7.
|
|
566325
|
+
const hasUpdate = latest && !gte("0.7.46", latest) && !shouldSkipVersion(latest);
|
|
566355
566326
|
setUpdateAvailable(!!hasUpdate);
|
|
566356
566327
|
if (hasUpdate) {
|
|
566357
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.7.
|
|
566328
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.7.46"} -> ${latest}`);
|
|
566358
566329
|
}
|
|
566359
566330
|
};
|
|
566360
566331
|
$3[0] = t1;
|
|
@@ -566388,7 +566359,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
566388
566359
|
wrap: "truncate",
|
|
566389
566360
|
children: [
|
|
566390
566361
|
"currentVersion: ",
|
|
566391
|
-
"0.7.
|
|
566362
|
+
"0.7.46"
|
|
566392
566363
|
]
|
|
566393
566364
|
}, undefined, true, undefined, this);
|
|
566394
566365
|
$3[3] = verbose;
|
|
@@ -574498,7 +574469,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
574498
574469
|
project_dir: getOriginalCwd(),
|
|
574499
574470
|
added_dirs: addedDirs
|
|
574500
574471
|
},
|
|
574501
|
-
version: "0.7.
|
|
574472
|
+
version: "0.7.46",
|
|
574502
574473
|
output_style: {
|
|
574503
574474
|
name: outputStyleName
|
|
574504
574475
|
},
|
|
@@ -585886,7 +585857,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
585886
585857
|
} catch {}
|
|
585887
585858
|
const data = {
|
|
585888
585859
|
trigger,
|
|
585889
|
-
version: "0.7.
|
|
585860
|
+
version: "0.7.46",
|
|
585890
585861
|
platform: process.platform,
|
|
585891
585862
|
transcript,
|
|
585892
585863
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -597903,7 +597874,7 @@ function WelcomeV2() {
|
|
|
597903
597874
|
dimColor: true,
|
|
597904
597875
|
children: [
|
|
597905
597876
|
"v",
|
|
597906
|
-
"0.7.
|
|
597877
|
+
"0.7.46",
|
|
597907
597878
|
" "
|
|
597908
597879
|
]
|
|
597909
597880
|
}, undefined, true, undefined, this)
|
|
@@ -599204,7 +599175,7 @@ function completeOnboarding() {
|
|
|
599204
599175
|
saveGlobalConfig((current) => ({
|
|
599205
599176
|
...current,
|
|
599206
599177
|
hasCompletedOnboarding: true,
|
|
599207
|
-
lastOnboardingVersion: "0.7.
|
|
599178
|
+
lastOnboardingVersion: "0.7.46"
|
|
599208
599179
|
}));
|
|
599209
599180
|
}
|
|
599210
599181
|
function showDialog(root2, renderer) {
|
|
@@ -603683,7 +603654,7 @@ function appendToLog(path28, message) {
|
|
|
603683
603654
|
cwd: getFsImplementation().cwd(),
|
|
603684
603655
|
userType: "external",
|
|
603685
603656
|
sessionId: getSessionId(),
|
|
603686
|
-
version: "0.7.
|
|
603657
|
+
version: "0.7.46"
|
|
603687
603658
|
};
|
|
603688
603659
|
getLogWriter(path28).write(messageWithTimestamp);
|
|
603689
603660
|
}
|
|
@@ -607642,8 +607613,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
607642
607613
|
}
|
|
607643
607614
|
async function checkEnvLessBridgeMinVersion() {
|
|
607644
607615
|
const cfg = await getEnvLessBridgeConfig();
|
|
607645
|
-
if (cfg.min_version && lt("0.7.
|
|
607646
|
-
return `Your version of Cody CLI (${"0.7.
|
|
607616
|
+
if (cfg.min_version && lt("0.7.46", cfg.min_version)) {
|
|
607617
|
+
return `Your version of Cody CLI (${"0.7.46"}) is too old for Remote Control.
|
|
607647
607618
|
Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
|
|
607648
607619
|
}
|
|
607649
607620
|
return null;
|
|
@@ -608117,7 +608088,7 @@ async function initBridgeCore(params) {
|
|
|
608117
608088
|
const rawApi = createBridgeApiClient({
|
|
608118
608089
|
baseUrl,
|
|
608119
608090
|
getAccessToken,
|
|
608120
|
-
runnerVersion: "0.7.
|
|
608091
|
+
runnerVersion: "0.7.46",
|
|
608121
608092
|
onDebug: logForDebugging,
|
|
608122
608093
|
onAuth401,
|
|
608123
608094
|
getTrustedDeviceToken
|
|
@@ -613754,7 +613725,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
613754
613725
|
setCwd(cwd3);
|
|
613755
613726
|
const server = new Server2({
|
|
613756
613727
|
name: "claude/tengu",
|
|
613757
|
-
version: "0.7.
|
|
613728
|
+
version: "0.7.46"
|
|
613758
613729
|
}, {
|
|
613759
613730
|
capabilities: {
|
|
613760
613731
|
tools: {}
|
|
@@ -615365,7 +615336,7 @@ __export(exports_update, {
|
|
|
615365
615336
|
});
|
|
615366
615337
|
async function update() {
|
|
615367
615338
|
logEvent("tengu_update_check", {});
|
|
615368
|
-
writeToStdout(`Current version: ${"0.7.
|
|
615339
|
+
writeToStdout(`Current version: ${"0.7.46"}
|
|
615369
615340
|
`);
|
|
615370
615341
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
615371
615342
|
writeToStdout(`Checking for updates to ${channel} version...
|
|
@@ -615440,8 +615411,8 @@ async function update() {
|
|
|
615440
615411
|
writeToStdout(`Cody CLI is managed by Homebrew.
|
|
615441
615412
|
`);
|
|
615442
615413
|
const latest = await getLatestVersion(channel);
|
|
615443
|
-
if (latest && !gte("0.7.
|
|
615444
|
-
writeToStdout(`Update available: ${"0.7.
|
|
615414
|
+
if (latest && !gte("0.7.46", latest)) {
|
|
615415
|
+
writeToStdout(`Update available: ${"0.7.46"} → ${latest}
|
|
615445
615416
|
`);
|
|
615446
615417
|
writeToStdout(`
|
|
615447
615418
|
`);
|
|
@@ -615457,8 +615428,8 @@ async function update() {
|
|
|
615457
615428
|
writeToStdout(`Cody CLI is managed by winget.
|
|
615458
615429
|
`);
|
|
615459
615430
|
const latest = await getLatestVersion(channel);
|
|
615460
|
-
if (latest && !gte("0.7.
|
|
615461
|
-
writeToStdout(`Update available: ${"0.7.
|
|
615431
|
+
if (latest && !gte("0.7.46", latest)) {
|
|
615432
|
+
writeToStdout(`Update available: ${"0.7.46"} → ${latest}
|
|
615462
615433
|
`);
|
|
615463
615434
|
writeToStdout(`
|
|
615464
615435
|
`);
|
|
@@ -615474,8 +615445,8 @@ async function update() {
|
|
|
615474
615445
|
writeToStdout(`Cody CLI is managed by apk.
|
|
615475
615446
|
`);
|
|
615476
615447
|
const latest = await getLatestVersion(channel);
|
|
615477
|
-
if (latest && !gte("0.7.
|
|
615478
|
-
writeToStdout(`Update available: ${"0.7.
|
|
615448
|
+
if (latest && !gte("0.7.46", latest)) {
|
|
615449
|
+
writeToStdout(`Update available: ${"0.7.46"} → ${latest}
|
|
615479
615450
|
`);
|
|
615480
615451
|
writeToStdout(`
|
|
615481
615452
|
`);
|
|
@@ -615540,11 +615511,11 @@ async function update() {
|
|
|
615540
615511
|
`);
|
|
615541
615512
|
await gracefulShutdown(1);
|
|
615542
615513
|
}
|
|
615543
|
-
if (result.latestVersion === "0.7.
|
|
615544
|
-
writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.
|
|
615514
|
+
if (result.latestVersion === "0.7.46") {
|
|
615515
|
+
writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.46"})`) + `
|
|
615545
615516
|
`);
|
|
615546
615517
|
} else {
|
|
615547
|
-
writeToStdout(source_default.green(`Successfully updated from ${"0.7.
|
|
615518
|
+
writeToStdout(source_default.green(`Successfully updated from ${"0.7.46"} to version ${result.latestVersion}`) + `
|
|
615548
615519
|
`);
|
|
615549
615520
|
await regenerateCompletionCache();
|
|
615550
615521
|
}
|
|
@@ -615604,12 +615575,12 @@ async function update() {
|
|
|
615604
615575
|
`);
|
|
615605
615576
|
await gracefulShutdown(1);
|
|
615606
615577
|
}
|
|
615607
|
-
if (latestVersion === "0.7.
|
|
615608
|
-
writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.
|
|
615578
|
+
if (latestVersion === "0.7.46") {
|
|
615579
|
+
writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.46"})`) + `
|
|
615609
615580
|
`);
|
|
615610
615581
|
await gracefulShutdown(0);
|
|
615611
615582
|
}
|
|
615612
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.
|
|
615583
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.46"})
|
|
615613
615584
|
`);
|
|
615614
615585
|
writeToStdout(`Installing update...
|
|
615615
615586
|
`);
|
|
@@ -615654,7 +615625,7 @@ async function update() {
|
|
|
615654
615625
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
615655
615626
|
switch (status2) {
|
|
615656
615627
|
case "success":
|
|
615657
|
-
writeToStdout(source_default.green(`Successfully updated from ${"0.7.
|
|
615628
|
+
writeToStdout(source_default.green(`Successfully updated from ${"0.7.46"} to version ${latestVersion}`) + `
|
|
615658
615629
|
`);
|
|
615659
615630
|
await regenerateCompletionCache();
|
|
615660
615631
|
break;
|
|
@@ -616899,7 +616870,7 @@ ${customInstructions}` : customInstructions;
|
|
|
616899
616870
|
}
|
|
616900
616871
|
}
|
|
616901
616872
|
logForDiagnosticsNoPII("info", "started", {
|
|
616902
|
-
version: "0.7.
|
|
616873
|
+
version: "0.7.46",
|
|
616903
616874
|
is_native_binary: isInBundledMode()
|
|
616904
616875
|
});
|
|
616905
616876
|
registerCleanup(async () => {
|
|
@@ -617676,7 +617647,7 @@ Usage: cody --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
617676
617647
|
} else {
|
|
617677
617648
|
const pendingHookMessages = hooksPromise && hookMessages.length === 0 ? hooksPromise : undefined;
|
|
617678
617649
|
profileCheckpoint("action_after_hooks");
|
|
617679
|
-
console.log(getWelcomeMessage("0.7.
|
|
617650
|
+
console.log(getWelcomeMessage("0.7.46"));
|
|
617680
617651
|
maybeActivateProactive(options);
|
|
617681
617652
|
maybeActivateBrief(options);
|
|
617682
617653
|
if (false) {}
|
|
@@ -617693,10 +617664,10 @@ Usage: cody --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
617693
617664
|
pendingHookMessages
|
|
617694
617665
|
}, renderAndRun);
|
|
617695
617666
|
}
|
|
617696
|
-
}).version("0.7.
|
|
617667
|
+
}).version("0.7.46 (Cody CLI)", "-v, --version", "Output the version number");
|
|
617697
617668
|
program2.configureOutput({
|
|
617698
617669
|
writeOut: (str2) => {
|
|
617699
|
-
if (str2.includes("0.7.
|
|
617670
|
+
if (str2.includes("0.7.46")) {
|
|
617700
617671
|
process.stdout.write(getCodyLogo() + `
|
|
617701
617672
|
` + str2);
|
|
617702
617673
|
} else {
|
|
@@ -618271,7 +618242,7 @@ async function main2() {
|
|
|
618271
618242
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
618272
618243
|
const { getCodyLogo: getCodyLogo2 } = await Promise.resolve().then(() => (init_branding(), exports_branding));
|
|
618273
618244
|
console.log(getCodyLogo2() + `
|
|
618274
|
-
0.7.
|
|
618245
|
+
0.7.46 (Cody CLI)`);
|
|
618275
618246
|
return;
|
|
618276
618247
|
}
|
|
618277
618248
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
|
|
6
6
|
"main": "dist/cli.js",
|