@ainative/cody-cli 0.7.2 → 0.7.3
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/bin/cody.cjs +94 -0
- package/bin/postinstall.cjs +81 -0
- package/dist/cli.js +89 -89
- package/package.json +3 -3
package/bin/cody.cjs
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cody CLI launcher
|
|
5
|
+
*
|
|
6
|
+
* Ensures Bun runtime is available (required for the bundled CLI),
|
|
7
|
+
* then execs the real CLI. Auto-installs Bun if missing.
|
|
8
|
+
*
|
|
9
|
+
* npm i -g @ainative/cody-cli && cody
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const { execSync, spawn } = require('child_process')
|
|
13
|
+
const { existsSync } = require('fs')
|
|
14
|
+
const path = require('path')
|
|
15
|
+
|
|
16
|
+
const CLI_BUNDLE = path.join(__dirname, '..', 'dist', 'cli.js')
|
|
17
|
+
const MIN_BUN_VERSION = '1.2.0'
|
|
18
|
+
|
|
19
|
+
function findBun() {
|
|
20
|
+
const candidates = [
|
|
21
|
+
path.join(process.env.HOME || '', '.bun', 'bin', 'bun'),
|
|
22
|
+
'/usr/local/bin/bun',
|
|
23
|
+
'/opt/homebrew/bin/bun',
|
|
24
|
+
]
|
|
25
|
+
// Also check PATH
|
|
26
|
+
try {
|
|
27
|
+
const p = execSync('which bun 2>/dev/null', { encoding: 'utf8' }).trim()
|
|
28
|
+
if (p) candidates.unshift(p)
|
|
29
|
+
} catch {}
|
|
30
|
+
|
|
31
|
+
for (const c of candidates) {
|
|
32
|
+
if (existsSync(c)) return c
|
|
33
|
+
}
|
|
34
|
+
return null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function getBunVersion(bunPath) {
|
|
38
|
+
try {
|
|
39
|
+
return execSync(`${bunPath} --version`, { encoding: 'utf8' }).trim()
|
|
40
|
+
} catch {
|
|
41
|
+
return '0.0.0'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function versionGte(a, b) {
|
|
46
|
+
const pa = a.split('.').map(Number)
|
|
47
|
+
const pb = b.split('.').map(Number)
|
|
48
|
+
for (let i = 0; i < 3; i++) {
|
|
49
|
+
if ((pa[i] || 0) > (pb[i] || 0)) return true
|
|
50
|
+
if ((pa[i] || 0) < (pb[i] || 0)) return false
|
|
51
|
+
}
|
|
52
|
+
return true
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function installBun() {
|
|
56
|
+
console.error('Cody CLI requires Bun >= ' + MIN_BUN_VERSION + '. Installing...')
|
|
57
|
+
try {
|
|
58
|
+
execSync('curl -fsSL https://bun.sh/install | bash', { stdio: 'inherit' })
|
|
59
|
+
const bun = findBun()
|
|
60
|
+
if (bun) return bun
|
|
61
|
+
} catch {}
|
|
62
|
+
console.error('\nFailed to install Bun. Install manually: curl -fsSL https://bun.sh/install | bash')
|
|
63
|
+
process.exit(1)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Find Bun
|
|
67
|
+
let bun = findBun()
|
|
68
|
+
|
|
69
|
+
// Check version — upgrade if too old
|
|
70
|
+
if (bun) {
|
|
71
|
+
const version = getBunVersion(bun)
|
|
72
|
+
if (!versionGte(version, MIN_BUN_VERSION)) {
|
|
73
|
+
console.error(`Bun ${version} is too old (need >= ${MIN_BUN_VERSION}). Upgrading...`)
|
|
74
|
+
try {
|
|
75
|
+
execSync(`${bun} upgrade`, { stdio: 'inherit' })
|
|
76
|
+
} catch {
|
|
77
|
+
bun = installBun()
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
bun = installBun()
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Run the CLI
|
|
85
|
+
const child = spawn(bun, ['run', CLI_BUNDLE, ...process.argv.slice(2)], {
|
|
86
|
+
stdio: 'inherit',
|
|
87
|
+
env: process.env,
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
child.on('exit', (code) => process.exit(code ?? 0))
|
|
91
|
+
child.on('error', (err) => {
|
|
92
|
+
console.error(`Failed to start Cody CLI: ${err.message}`)
|
|
93
|
+
process.exit(1)
|
|
94
|
+
})
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cody CLI postinstall cleanup
|
|
5
|
+
*
|
|
6
|
+
* Removes stale cached data from older builds that may cause:
|
|
7
|
+
* - Wrong OAuth URLs (pointing to upstream instead of ainative.studio)
|
|
8
|
+
* - Stale theme/settings that reference old branding
|
|
9
|
+
* - Cached tokens with wrong scopes
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const fs = require('fs')
|
|
13
|
+
const path = require('path')
|
|
14
|
+
const os = require('os')
|
|
15
|
+
|
|
16
|
+
const HOME = os.homedir()
|
|
17
|
+
const STALE_MARKERS = ['anthropic.com/api', 'claude.ai/api', 'console.anthropic.com']
|
|
18
|
+
|
|
19
|
+
function cleanDir(dirPath, description) {
|
|
20
|
+
if (!fs.existsSync(dirPath)) return
|
|
21
|
+
|
|
22
|
+
try {
|
|
23
|
+
// Check for stale OAuth tokens with wrong URLs
|
|
24
|
+
const credFiles = ['credentials.json', 'oauth.json', 'tokens.json', '.credentials']
|
|
25
|
+
for (const f of credFiles) {
|
|
26
|
+
const fp = path.join(dirPath, f)
|
|
27
|
+
if (fs.existsSync(fp)) {
|
|
28
|
+
try {
|
|
29
|
+
const content = fs.readFileSync(fp, 'utf8')
|
|
30
|
+
if (STALE_MARKERS.some(m => content.includes(m))) {
|
|
31
|
+
fs.unlinkSync(fp)
|
|
32
|
+
console.log(` Cleaned stale credentials: ${f}`)
|
|
33
|
+
}
|
|
34
|
+
} catch {}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Clean stale settings that reference old branding
|
|
39
|
+
const settingsFile = path.join(dirPath, 'settings.json')
|
|
40
|
+
if (fs.existsSync(settingsFile)) {
|
|
41
|
+
try {
|
|
42
|
+
const content = fs.readFileSync(settingsFile, 'utf8')
|
|
43
|
+
if (STALE_MARKERS.some(m => content.includes(m))) {
|
|
44
|
+
fs.unlinkSync(settingsFile)
|
|
45
|
+
console.log(` Cleaned stale settings`)
|
|
46
|
+
}
|
|
47
|
+
} catch {}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Clean old cached responses
|
|
51
|
+
const cacheDir = path.join(dirPath, 'cache')
|
|
52
|
+
if (fs.existsSync(cacheDir)) {
|
|
53
|
+
try {
|
|
54
|
+
fs.rmSync(cacheDir, { recursive: true, force: true })
|
|
55
|
+
console.log(` Cleared cache`)
|
|
56
|
+
} catch {}
|
|
57
|
+
}
|
|
58
|
+
} catch {}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Only run cleanup, never fail the install
|
|
62
|
+
try {
|
|
63
|
+
const configDirs = [
|
|
64
|
+
path.join(HOME, '.cody'),
|
|
65
|
+
path.join(HOME, '.config', 'cody-cli'),
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
let cleaned = false
|
|
69
|
+
for (const dir of configDirs) {
|
|
70
|
+
if (fs.existsSync(dir)) {
|
|
71
|
+
cleanDir(dir, dir)
|
|
72
|
+
cleaned = true
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (cleaned) {
|
|
77
|
+
console.log('Cody CLI: cleaned stale data from previous versions.')
|
|
78
|
+
}
|
|
79
|
+
} catch {
|
|
80
|
+
// Never fail install due to cleanup
|
|
81
|
+
}
|
package/dist/cli.js
CHANGED
|
@@ -172167,7 +172167,7 @@ var init_auth2 = __esm(() => {
|
|
|
172167
172167
|
|
|
172168
172168
|
// src/utils/userAgent.ts
|
|
172169
172169
|
function getCodyUserAgent() {
|
|
172170
|
-
return `cody-cli/${"0.7.
|
|
172170
|
+
return `cody-cli/${"0.7.3"}`;
|
|
172171
172171
|
}
|
|
172172
172172
|
|
|
172173
172173
|
// src/utils/workloadContext.ts
|
|
@@ -172189,7 +172189,7 @@ function getUserAgent() {
|
|
|
172189
172189
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
172190
172190
|
const workload = getWorkload();
|
|
172191
172191
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
172192
|
-
return `claude-cli/${"0.7.
|
|
172192
|
+
return `claude-cli/${"0.7.3"} (${"external"}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
172193
172193
|
}
|
|
172194
172194
|
function getMCPUserAgent() {
|
|
172195
172195
|
const parts = [];
|
|
@@ -172203,7 +172203,7 @@ function getMCPUserAgent() {
|
|
|
172203
172203
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
172204
172204
|
}
|
|
172205
172205
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
172206
|
-
return `claude-code/${"0.7.
|
|
172206
|
+
return `claude-code/${"0.7.3"}${suffix}`;
|
|
172207
172207
|
}
|
|
172208
172208
|
function getWebFetchUserAgent() {
|
|
172209
172209
|
return `Claude-User (${getCodyUserAgent()}; +https://support.anthropic.com/)`;
|
|
@@ -172341,7 +172341,7 @@ var init_user = __esm(() => {
|
|
|
172341
172341
|
deviceId,
|
|
172342
172342
|
sessionId: getSessionId(),
|
|
172343
172343
|
email: getEmail(),
|
|
172344
|
-
appVersion: "0.7.
|
|
172344
|
+
appVersion: "0.7.3",
|
|
172345
172345
|
platform: getHostPlatformForAnalytics(),
|
|
172346
172346
|
organizationUuid,
|
|
172347
172347
|
accountUuid,
|
|
@@ -180033,7 +180033,7 @@ var init_metadata = __esm(() => {
|
|
|
180033
180033
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
180034
180034
|
WHITESPACE_REGEX = /\s+/;
|
|
180035
180035
|
getVersionBase = memoize_default(() => {
|
|
180036
|
-
const match = "0.7.
|
|
180036
|
+
const match = "0.7.3".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
180037
180037
|
return match ? match[0] : undefined;
|
|
180038
180038
|
});
|
|
180039
180039
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -180073,9 +180073,9 @@ var init_metadata = __esm(() => {
|
|
|
180073
180073
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
180074
180074
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
180075
180075
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
180076
|
-
version: "0.7.
|
|
180076
|
+
version: "0.7.3",
|
|
180077
180077
|
versionBase: getVersionBase(),
|
|
180078
|
-
buildTime: "
|
|
180078
|
+
buildTime: "1775361778",
|
|
180079
180079
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
180080
180080
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
180081
180081
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -180693,7 +180693,7 @@ function initialize1PEventLogging() {
|
|
|
180693
180693
|
const platform3 = getPlatform();
|
|
180694
180694
|
const attributes = {
|
|
180695
180695
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "cody-cli",
|
|
180696
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.7.
|
|
180696
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.7.3"
|
|
180697
180697
|
};
|
|
180698
180698
|
if (platform3 === "wsl") {
|
|
180699
180699
|
const wslVersion = getWslVersion();
|
|
@@ -180720,7 +180720,7 @@ function initialize1PEventLogging() {
|
|
|
180720
180720
|
})
|
|
180721
180721
|
]
|
|
180722
180722
|
});
|
|
180723
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.ainative.cody_cli.events", "0.7.
|
|
180723
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.ainative.cody_cli.events", "0.7.3");
|
|
180724
180724
|
}
|
|
180725
180725
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
180726
180726
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -182545,7 +182545,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
182545
182545
|
if (!isAttributionHeaderEnabled()) {
|
|
182546
182546
|
return "";
|
|
182547
182547
|
}
|
|
182548
|
-
const version6 = `${"0.7.
|
|
182548
|
+
const version6 = `${"0.7.3"}.${fingerprint}`;
|
|
182549
182549
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
182550
182550
|
const cch = "";
|
|
182551
182551
|
const workload = getWorkload();
|
|
@@ -240079,7 +240079,7 @@ function getTelemetryAttributes() {
|
|
|
240079
240079
|
attributes["session.id"] = sessionId;
|
|
240080
240080
|
}
|
|
240081
240081
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
240082
|
-
attributes["app.version"] = "0.7.
|
|
240082
|
+
attributes["app.version"] = "0.7.3";
|
|
240083
240083
|
}
|
|
240084
240084
|
const oauthAccount = getOauthAccountInfo();
|
|
240085
240085
|
if (oauthAccount) {
|
|
@@ -275436,7 +275436,7 @@ function getInstallationEnv() {
|
|
|
275436
275436
|
return;
|
|
275437
275437
|
}
|
|
275438
275438
|
function getClaudeCodeVersion() {
|
|
275439
|
-
return "0.7.
|
|
275439
|
+
return "0.7.3";
|
|
275440
275440
|
}
|
|
275441
275441
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
275442
275442
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -280970,7 +280970,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
280970
280970
|
const client4 = new Client({
|
|
280971
280971
|
name: "claude-code",
|
|
280972
280972
|
title: "Claude Code",
|
|
280973
|
-
version: "0.7.
|
|
280973
|
+
version: "0.7.3",
|
|
280974
280974
|
description: "Anthropic's agentic coding tool",
|
|
280975
280975
|
websiteUrl: PRODUCT_URL
|
|
280976
280976
|
}, {
|
|
@@ -281324,7 +281324,7 @@ var init_client8 = __esm(() => {
|
|
|
281324
281324
|
const client4 = new Client({
|
|
281325
281325
|
name: "claude-code",
|
|
281326
281326
|
title: "Claude Code",
|
|
281327
|
-
version: "0.7.
|
|
281327
|
+
version: "0.7.3",
|
|
281328
281328
|
description: "Anthropic's agentic coding tool",
|
|
281329
281329
|
websiteUrl: PRODUCT_URL
|
|
281330
281330
|
}, {
|
|
@@ -329456,7 +329456,7 @@ async function initializeBetaTracing(resource) {
|
|
|
329456
329456
|
});
|
|
329457
329457
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
329458
329458
|
setLoggerProvider(loggerProvider);
|
|
329459
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.
|
|
329459
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.3");
|
|
329460
329460
|
setEventLogger(eventLogger);
|
|
329461
329461
|
process.on("beforeExit", async () => {
|
|
329462
329462
|
await loggerProvider?.forceFlush();
|
|
@@ -329496,7 +329496,7 @@ async function initializeTelemetry() {
|
|
|
329496
329496
|
const platform5 = getPlatform();
|
|
329497
329497
|
const baseAttributes = {
|
|
329498
329498
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
|
|
329499
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "0.7.
|
|
329499
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "0.7.3"
|
|
329500
329500
|
};
|
|
329501
329501
|
if (platform5 === "wsl") {
|
|
329502
329502
|
const wslVersion = getWslVersion();
|
|
@@ -329541,7 +329541,7 @@ async function initializeTelemetry() {
|
|
|
329541
329541
|
} catch {}
|
|
329542
329542
|
};
|
|
329543
329543
|
registerCleanup(shutdownTelemetry2);
|
|
329544
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "0.7.
|
|
329544
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "0.7.3");
|
|
329545
329545
|
}
|
|
329546
329546
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
329547
329547
|
resource,
|
|
@@ -329561,7 +329561,7 @@ async function initializeTelemetry() {
|
|
|
329561
329561
|
});
|
|
329562
329562
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
329563
329563
|
setLoggerProvider(loggerProvider);
|
|
329564
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.
|
|
329564
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.7.3");
|
|
329565
329565
|
setEventLogger(eventLogger);
|
|
329566
329566
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
329567
329567
|
process.on("beforeExit", async () => {
|
|
@@ -329623,7 +329623,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
329623
329623
|
}
|
|
329624
329624
|
};
|
|
329625
329625
|
registerCleanup(shutdownTelemetry);
|
|
329626
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "0.7.
|
|
329626
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "0.7.3");
|
|
329627
329627
|
}
|
|
329628
329628
|
async function flushTelemetry() {
|
|
329629
329629
|
const meterProvider = getMeterProvider();
|
|
@@ -330312,9 +330312,9 @@ async function assertMinVersion() {
|
|
|
330312
330312
|
}
|
|
330313
330313
|
try {
|
|
330314
330314
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
330315
|
-
if (versionConfig.minVersion && lt("0.7.
|
|
330315
|
+
if (versionConfig.minVersion && lt("0.7.3", versionConfig.minVersion)) {
|
|
330316
330316
|
console.error(`
|
|
330317
|
-
It looks like your version of Cody CLI (${"0.7.
|
|
330317
|
+
It looks like your version of Cody CLI (${"0.7.3"}) needs an update.
|
|
330318
330318
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
330319
330319
|
|
|
330320
330320
|
To update, please run:
|
|
@@ -330551,7 +330551,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
330551
330551
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
330552
330552
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
330553
330553
|
pid: process.pid,
|
|
330554
|
-
currentVersion: "0.7.
|
|
330554
|
+
currentVersion: "0.7.3"
|
|
330555
330555
|
});
|
|
330556
330556
|
return "in_progress";
|
|
330557
330557
|
}
|
|
@@ -330560,7 +330560,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
330560
330560
|
if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
|
|
330561
330561
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
330562
330562
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
330563
|
-
currentVersion: "0.7.
|
|
330563
|
+
currentVersion: "0.7.3"
|
|
330564
330564
|
});
|
|
330565
330565
|
console.error(`
|
|
330566
330566
|
Error: Windows NPM detected in WSL
|
|
@@ -331095,7 +331095,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
331095
331095
|
}
|
|
331096
331096
|
async function getDoctorDiagnostic() {
|
|
331097
331097
|
const installationType = await getCurrentInstallationType();
|
|
331098
|
-
const version6 = typeof MACRO !== "undefined" ? "0.7.
|
|
331098
|
+
const version6 = typeof MACRO !== "undefined" ? "0.7.3" : "unknown";
|
|
331099
331099
|
const installationPath = await getInstallationPath();
|
|
331100
331100
|
const invokedBinary = getInvokedBinary();
|
|
331101
331101
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -331930,8 +331930,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
331930
331930
|
const maxVersion = await getMaxVersion();
|
|
331931
331931
|
if (maxVersion && gt(version6, maxVersion)) {
|
|
331932
331932
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version6} to ${maxVersion}`);
|
|
331933
|
-
if (gte("0.7.
|
|
331934
|
-
logForDebugging(`Native installer: current version ${"0.7.
|
|
331933
|
+
if (gte("0.7.3", maxVersion)) {
|
|
331934
|
+
logForDebugging(`Native installer: current version ${"0.7.3"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
331935
331935
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
331936
331936
|
latency_ms: Date.now() - startTime,
|
|
331937
331937
|
max_version: maxVersion,
|
|
@@ -331942,7 +331942,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
331942
331942
|
version6 = maxVersion;
|
|
331943
331943
|
}
|
|
331944
331944
|
}
|
|
331945
|
-
if (!forceReinstall && version6 === "0.7.
|
|
331945
|
+
if (!forceReinstall && version6 === "0.7.3" && await versionIsAvailable(version6) && await isPossibleClaudeBinary(executablePath)) {
|
|
331946
331946
|
logForDebugging(`Found ${version6} at ${executablePath}, skipping install`);
|
|
331947
331947
|
logEvent("tengu_native_update_complete", {
|
|
331948
331948
|
latency_ms: Date.now() - startTime,
|
|
@@ -415531,7 +415531,7 @@ function getAnthropicEnvMetadata() {
|
|
|
415531
415531
|
function getBuildAgeMinutes() {
|
|
415532
415532
|
if (false)
|
|
415533
415533
|
;
|
|
415534
|
-
const buildTime = new Date("
|
|
415534
|
+
const buildTime = new Date("1775361778").getTime();
|
|
415535
415535
|
if (isNaN(buildTime))
|
|
415536
415536
|
return;
|
|
415537
415537
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -439043,7 +439043,7 @@ function Feedback({
|
|
|
439043
439043
|
platform: env4.platform,
|
|
439044
439044
|
gitRepo: envInfo.isGit,
|
|
439045
439045
|
terminal: env4.terminal,
|
|
439046
|
-
version: "0.7.
|
|
439046
|
+
version: "0.7.3",
|
|
439047
439047
|
transcript: normalizeMessagesForAPI(messages),
|
|
439048
439048
|
errors: sanitizedErrors,
|
|
439049
439049
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -439235,7 +439235,7 @@ function Feedback({
|
|
|
439235
439235
|
", ",
|
|
439236
439236
|
env4.terminal,
|
|
439237
439237
|
", v",
|
|
439238
|
-
"0.7.
|
|
439238
|
+
"0.7.3"
|
|
439239
439239
|
]
|
|
439240
439240
|
}, undefined, true, undefined, this)
|
|
439241
439241
|
]
|
|
@@ -439341,7 +439341,7 @@ ${sanitizedDescription}
|
|
|
439341
439341
|
` + `**Environment Info**
|
|
439342
439342
|
` + `- Platform: ${env4.platform}
|
|
439343
439343
|
` + `- Terminal: ${env4.terminal}
|
|
439344
|
-
` + `- Version: ${"0.7.
|
|
439344
|
+
` + `- Version: ${"0.7.3"}
|
|
439345
439345
|
` + `- Feedback ID: ${feedbackId}
|
|
439346
439346
|
` + `
|
|
439347
439347
|
**Errors**
|
|
@@ -442441,7 +442441,7 @@ function buildPrimarySection() {
|
|
|
442441
442441
|
}, undefined, false, undefined, this);
|
|
442442
442442
|
return [{
|
|
442443
442443
|
label: "Version",
|
|
442444
|
-
value: "0.7.
|
|
442444
|
+
value: "0.7.3"
|
|
442445
442445
|
}, {
|
|
442446
442446
|
label: "Session name",
|
|
442447
442447
|
value: nameValue
|
|
@@ -446192,7 +446192,7 @@ function Config({
|
|
|
446192
446192
|
}
|
|
446193
446193
|
}, undefined, false, undefined, this)
|
|
446194
446194
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime178.jsxDEV(ChannelDowngradeDialog, {
|
|
446195
|
-
currentVersion: "0.7.
|
|
446195
|
+
currentVersion: "0.7.3",
|
|
446196
446196
|
onChoice: (choice) => {
|
|
446197
446197
|
setShowSubmenu(null);
|
|
446198
446198
|
setTabsHidden(false);
|
|
@@ -446204,7 +446204,7 @@ function Config({
|
|
|
446204
446204
|
autoUpdatesChannel: "stable"
|
|
446205
446205
|
};
|
|
446206
446206
|
if (choice === "stay") {
|
|
446207
|
-
newSettings.minimumVersion = "0.7.
|
|
446207
|
+
newSettings.minimumVersion = "0.7.3";
|
|
446208
446208
|
}
|
|
446209
446209
|
updateSettingsForSource("userSettings", newSettings);
|
|
446210
446210
|
setSettingsData((prev_27) => ({
|
|
@@ -454205,7 +454205,7 @@ function HelpV2(t0) {
|
|
|
454205
454205
|
let t6;
|
|
454206
454206
|
if ($3[31] !== tabs) {
|
|
454207
454207
|
t6 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tabs, {
|
|
454208
|
-
title: `Claude Code v${"0.7.
|
|
454208
|
+
title: `Claude Code v${"0.7.3"}`,
|
|
454209
454209
|
color: "professionalBlue",
|
|
454210
454210
|
defaultTab: "general",
|
|
454211
454211
|
children: tabs
|
|
@@ -478395,7 +478395,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
478395
478395
|
return [];
|
|
478396
478396
|
}
|
|
478397
478397
|
}
|
|
478398
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.
|
|
478398
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.3") {
|
|
478399
478399
|
if (false) {}
|
|
478400
478400
|
const cachedChangelog = await getStoredChangelog();
|
|
478401
478401
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -478408,7 +478408,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.7.2") {
|
|
|
478408
478408
|
releaseNotes
|
|
478409
478409
|
};
|
|
478410
478410
|
}
|
|
478411
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.7.
|
|
478411
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.7.3") {
|
|
478412
478412
|
if (false) {}
|
|
478413
478413
|
const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
|
|
478414
478414
|
return {
|
|
@@ -479564,7 +479564,7 @@ function getRecentActivitySync() {
|
|
|
479564
479564
|
return cachedActivity;
|
|
479565
479565
|
}
|
|
479566
479566
|
function getLogoDisplayData() {
|
|
479567
|
-
const version6 = process.env.DEMO_VERSION ?? "0.7.
|
|
479567
|
+
const version6 = process.env.DEMO_VERSION ?? "0.7.3";
|
|
479568
479568
|
const serverUrl = getDirectConnectServerUrl();
|
|
479569
479569
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
479570
479570
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -481083,7 +481083,7 @@ function LogoV2() {
|
|
|
481083
481083
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481084
481084
|
t2 = () => {
|
|
481085
481085
|
const currentConfig = getGlobalConfig();
|
|
481086
|
-
if (currentConfig.lastReleaseNotesSeen === "0.7.
|
|
481086
|
+
if (currentConfig.lastReleaseNotesSeen === "0.7.3") {
|
|
481087
481087
|
return;
|
|
481088
481088
|
}
|
|
481089
481089
|
saveGlobalConfig(_temp329);
|
|
@@ -481759,12 +481759,12 @@ function LogoV2() {
|
|
|
481759
481759
|
return t41;
|
|
481760
481760
|
}
|
|
481761
481761
|
function _temp329(current) {
|
|
481762
|
-
if (current.lastReleaseNotesSeen === "0.7.
|
|
481762
|
+
if (current.lastReleaseNotesSeen === "0.7.3") {
|
|
481763
481763
|
return current;
|
|
481764
481764
|
}
|
|
481765
481765
|
return {
|
|
481766
481766
|
...current,
|
|
481767
|
-
lastReleaseNotesSeen: "0.7.
|
|
481767
|
+
lastReleaseNotesSeen: "0.7.3"
|
|
481768
481768
|
};
|
|
481769
481769
|
}
|
|
481770
481770
|
function _temp245(s_0) {
|
|
@@ -508047,7 +508047,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
508047
508047
|
smapsRollup,
|
|
508048
508048
|
platform: process.platform,
|
|
508049
508049
|
nodeVersion: process.version,
|
|
508050
|
-
ccVersion: "0.7.
|
|
508050
|
+
ccVersion: "0.7.3"
|
|
508051
508051
|
};
|
|
508052
508052
|
}
|
|
508053
508053
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -508575,7 +508575,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
508575
508575
|
var call56 = async () => {
|
|
508576
508576
|
return {
|
|
508577
508577
|
type: "text",
|
|
508578
|
-
value: `${"0.7.
|
|
508578
|
+
value: `${"0.7.3"} (built ${"1775361778"})`
|
|
508579
508579
|
};
|
|
508580
508580
|
}, version6, version_default;
|
|
508581
508581
|
var init_version = __esm(() => {
|
|
@@ -517522,7 +517522,7 @@ function generateHtmlReport(data, insights) {
|
|
|
517522
517522
|
</html>`;
|
|
517523
517523
|
}
|
|
517524
517524
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
517525
|
-
const version7 = typeof MACRO !== "undefined" ? "0.7.
|
|
517525
|
+
const version7 = typeof MACRO !== "undefined" ? "0.7.3" : "unknown";
|
|
517526
517526
|
const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
|
|
517527
517527
|
const facets_summary = {
|
|
517528
517528
|
total: facets.size,
|
|
@@ -521468,7 +521468,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
521468
521468
|
init_settings2();
|
|
521469
521469
|
init_slowOperations();
|
|
521470
521470
|
init_uuid();
|
|
521471
|
-
VERSION5 = typeof MACRO !== "undefined" ? "0.7.
|
|
521471
|
+
VERSION5 = typeof MACRO !== "undefined" ? "0.7.3" : "unknown";
|
|
521472
521472
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
521473
521473
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
521474
521474
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -522673,7 +522673,7 @@ var init_filesystem = __esm(() => {
|
|
|
522673
522673
|
});
|
|
522674
522674
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
522675
522675
|
const nonce = randomBytes18(16).toString("hex");
|
|
522676
|
-
return join129(getClaudeTempDir(), "bundled-skills", "0.7.
|
|
522676
|
+
return join129(getClaudeTempDir(), "bundled-skills", "0.7.3", nonce);
|
|
522677
522677
|
});
|
|
522678
522678
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
522679
522679
|
});
|
|
@@ -528645,7 +528645,7 @@ function computeFingerprint(messageText, version7) {
|
|
|
528645
528645
|
}
|
|
528646
528646
|
function computeFingerprintFromMessages(messages) {
|
|
528647
528647
|
const firstMessageText = extractFirstMessageText(messages);
|
|
528648
|
-
return computeFingerprint(firstMessageText, "0.7.
|
|
528648
|
+
return computeFingerprint(firstMessageText, "0.7.3");
|
|
528649
528649
|
}
|
|
528650
528650
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
528651
528651
|
var init_fingerprint = () => {};
|
|
@@ -530559,7 +530559,7 @@ async function sideQuery(opts) {
|
|
|
530559
530559
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
530560
530560
|
}
|
|
530561
530561
|
const messageText = extractFirstUserMessageText(messages);
|
|
530562
|
-
const fingerprint = computeFingerprint(messageText, "0.7.
|
|
530562
|
+
const fingerprint = computeFingerprint(messageText, "0.7.3");
|
|
530563
530563
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
530564
530564
|
const systemBlocks = [
|
|
530565
530565
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -535089,7 +535089,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
535089
535089
|
slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
|
|
535090
535090
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
535091
535091
|
betas: getSdkBetas(),
|
|
535092
|
-
claude_code_version: "0.7.
|
|
535092
|
+
claude_code_version: "0.7.3",
|
|
535093
535093
|
output_style: outputStyle2,
|
|
535094
535094
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
535095
535095
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -549641,7 +549641,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
549641
549641
|
function getSemverPart(version7) {
|
|
549642
549642
|
return `${import_semver13.major(version7, { loose: true })}.${import_semver13.minor(version7, { loose: true })}.${import_semver13.patch(version7, { loose: true })}`;
|
|
549643
549643
|
}
|
|
549644
|
-
function useUpdateNotification(updatedVersion, initialVersion = "0.7.
|
|
549644
|
+
function useUpdateNotification(updatedVersion, initialVersion = "0.7.3") {
|
|
549645
549645
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react227.useState(() => getSemverPart(initialVersion));
|
|
549646
549646
|
if (!updatedVersion) {
|
|
549647
549647
|
return null;
|
|
@@ -549681,7 +549681,7 @@ function AutoUpdater({
|
|
|
549681
549681
|
return;
|
|
549682
549682
|
}
|
|
549683
549683
|
if (false) {}
|
|
549684
|
-
const currentVersion = "0.7.
|
|
549684
|
+
const currentVersion = "0.7.3";
|
|
549685
549685
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
549686
549686
|
let latestVersion = await getLatestVersion(channel);
|
|
549687
549687
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -549894,12 +549894,12 @@ function NativeAutoUpdater({
|
|
|
549894
549894
|
logEvent("tengu_native_auto_updater_start", {});
|
|
549895
549895
|
try {
|
|
549896
549896
|
const maxVersion = await getMaxVersion();
|
|
549897
|
-
if (maxVersion && gt("0.7.
|
|
549897
|
+
if (maxVersion && gt("0.7.3", maxVersion)) {
|
|
549898
549898
|
const msg = await getMaxVersionMessage();
|
|
549899
549899
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
549900
549900
|
}
|
|
549901
549901
|
const result = await installLatest(channel);
|
|
549902
|
-
const currentVersion = "0.7.
|
|
549902
|
+
const currentVersion = "0.7.3";
|
|
549903
549903
|
const latencyMs = Date.now() - startTime;
|
|
549904
549904
|
if (result.lockFailed) {
|
|
549905
549905
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -550036,17 +550036,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
550036
550036
|
const maxVersion = await getMaxVersion();
|
|
550037
550037
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
550038
550038
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
550039
|
-
if (gte("0.7.
|
|
550040
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"0.7.
|
|
550039
|
+
if (gte("0.7.3", maxVersion)) {
|
|
550040
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"0.7.3"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
550041
550041
|
setUpdateAvailable(false);
|
|
550042
550042
|
return;
|
|
550043
550043
|
}
|
|
550044
550044
|
latest = maxVersion;
|
|
550045
550045
|
}
|
|
550046
|
-
const hasUpdate = latest && !gte("0.7.
|
|
550046
|
+
const hasUpdate = latest && !gte("0.7.3", latest) && !shouldSkipVersion(latest);
|
|
550047
550047
|
setUpdateAvailable(!!hasUpdate);
|
|
550048
550048
|
if (hasUpdate) {
|
|
550049
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.7.
|
|
550049
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.7.3"} -> ${latest}`);
|
|
550050
550050
|
}
|
|
550051
550051
|
};
|
|
550052
550052
|
$3[0] = t1;
|
|
@@ -550080,7 +550080,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
550080
550080
|
wrap: "truncate",
|
|
550081
550081
|
children: [
|
|
550082
550082
|
"currentVersion: ",
|
|
550083
|
-
"0.7.
|
|
550083
|
+
"0.7.3"
|
|
550084
550084
|
]
|
|
550085
550085
|
}, undefined, true, undefined, this);
|
|
550086
550086
|
$3[3] = verbose;
|
|
@@ -558190,7 +558190,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
558190
558190
|
project_dir: getOriginalCwd(),
|
|
558191
558191
|
added_dirs: addedDirs
|
|
558192
558192
|
},
|
|
558193
|
-
version: "0.7.
|
|
558193
|
+
version: "0.7.3",
|
|
558194
558194
|
output_style: {
|
|
558195
558195
|
name: outputStyleName
|
|
558196
558196
|
},
|
|
@@ -569564,7 +569564,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
569564
569564
|
} catch {}
|
|
569565
569565
|
const data = {
|
|
569566
569566
|
trigger,
|
|
569567
|
-
version: "0.7.
|
|
569567
|
+
version: "0.7.3",
|
|
569568
569568
|
platform: process.platform,
|
|
569569
569569
|
transcript,
|
|
569570
569570
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -581528,7 +581528,7 @@ function WelcomeV2() {
|
|
|
581528
581528
|
dimColor: true,
|
|
581529
581529
|
children: [
|
|
581530
581530
|
"v",
|
|
581531
|
-
"0.7.
|
|
581531
|
+
"0.7.3",
|
|
581532
581532
|
" "
|
|
581533
581533
|
]
|
|
581534
581534
|
}, undefined, true, undefined, this)
|
|
@@ -581728,7 +581728,7 @@ function WelcomeV2() {
|
|
|
581728
581728
|
dimColor: true,
|
|
581729
581729
|
children: [
|
|
581730
581730
|
"v",
|
|
581731
|
-
"0.7.
|
|
581731
|
+
"0.7.3",
|
|
581732
581732
|
" "
|
|
581733
581733
|
]
|
|
581734
581734
|
}, undefined, true, undefined, this)
|
|
@@ -581954,7 +581954,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
581954
581954
|
dimColor: true,
|
|
581955
581955
|
children: [
|
|
581956
581956
|
"v",
|
|
581957
|
-
"0.7.
|
|
581957
|
+
"0.7.3",
|
|
581958
581958
|
" "
|
|
581959
581959
|
]
|
|
581960
581960
|
}, undefined, true, undefined, this);
|
|
@@ -582208,7 +582208,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
582208
582208
|
dimColor: true,
|
|
582209
582209
|
children: [
|
|
582210
582210
|
"v",
|
|
582211
|
-
"0.7.
|
|
582211
|
+
"0.7.3",
|
|
582212
582212
|
" "
|
|
582213
582213
|
]
|
|
582214
582214
|
}, undefined, true, undefined, this);
|
|
@@ -583712,7 +583712,7 @@ function completeOnboarding() {
|
|
|
583712
583712
|
saveGlobalConfig((current) => ({
|
|
583713
583713
|
...current,
|
|
583714
583714
|
hasCompletedOnboarding: true,
|
|
583715
|
-
lastOnboardingVersion: "0.7.
|
|
583715
|
+
lastOnboardingVersion: "0.7.3"
|
|
583716
583716
|
}));
|
|
583717
583717
|
}
|
|
583718
583718
|
function showDialog(root2, renderer) {
|
|
@@ -588190,7 +588190,7 @@ function appendToLog(path25, message) {
|
|
|
588190
588190
|
cwd: getFsImplementation().cwd(),
|
|
588191
588191
|
userType: "external",
|
|
588192
588192
|
sessionId: getSessionId(),
|
|
588193
|
-
version: "0.7.
|
|
588193
|
+
version: "0.7.3"
|
|
588194
588194
|
};
|
|
588195
588195
|
getLogWriter(path25).write(messageWithTimestamp);
|
|
588196
588196
|
}
|
|
@@ -592149,8 +592149,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
592149
592149
|
}
|
|
592150
592150
|
async function checkEnvLessBridgeMinVersion() {
|
|
592151
592151
|
const cfg = await getEnvLessBridgeConfig();
|
|
592152
|
-
if (cfg.min_version && lt("0.7.
|
|
592153
|
-
return `Your version of Cody CLI (${"0.7.
|
|
592152
|
+
if (cfg.min_version && lt("0.7.3", cfg.min_version)) {
|
|
592153
|
+
return `Your version of Cody CLI (${"0.7.3"}) is too old for Remote Control.
|
|
592154
592154
|
Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
|
|
592155
592155
|
}
|
|
592156
592156
|
return null;
|
|
@@ -592624,7 +592624,7 @@ async function initBridgeCore(params) {
|
|
|
592624
592624
|
const rawApi = createBridgeApiClient({
|
|
592625
592625
|
baseUrl,
|
|
592626
592626
|
getAccessToken,
|
|
592627
|
-
runnerVersion: "0.7.
|
|
592627
|
+
runnerVersion: "0.7.3",
|
|
592628
592628
|
onDebug: logForDebugging,
|
|
592629
592629
|
onAuth401,
|
|
592630
592630
|
getTrustedDeviceToken
|
|
@@ -598261,7 +598261,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
598261
598261
|
setCwd(cwd3);
|
|
598262
598262
|
const server = new Server({
|
|
598263
598263
|
name: "claude/tengu",
|
|
598264
|
-
version: "0.7.
|
|
598264
|
+
version: "0.7.3"
|
|
598265
598265
|
}, {
|
|
598266
598266
|
capabilities: {
|
|
598267
598267
|
tools: {}
|
|
@@ -599872,7 +599872,7 @@ __export(exports_update, {
|
|
|
599872
599872
|
});
|
|
599873
599873
|
async function update() {
|
|
599874
599874
|
logEvent("tengu_update_check", {});
|
|
599875
|
-
writeToStdout(`Current version: ${"0.7.
|
|
599875
|
+
writeToStdout(`Current version: ${"0.7.3"}
|
|
599876
599876
|
`);
|
|
599877
599877
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
599878
599878
|
writeToStdout(`Checking for updates to ${channel} version...
|
|
@@ -599947,8 +599947,8 @@ async function update() {
|
|
|
599947
599947
|
writeToStdout(`Cody CLI is managed by Homebrew.
|
|
599948
599948
|
`);
|
|
599949
599949
|
const latest = await getLatestVersion(channel);
|
|
599950
|
-
if (latest && !gte("0.7.
|
|
599951
|
-
writeToStdout(`Update available: ${"0.7.
|
|
599950
|
+
if (latest && !gte("0.7.3", latest)) {
|
|
599951
|
+
writeToStdout(`Update available: ${"0.7.3"} → ${latest}
|
|
599952
599952
|
`);
|
|
599953
599953
|
writeToStdout(`
|
|
599954
599954
|
`);
|
|
@@ -599964,8 +599964,8 @@ async function update() {
|
|
|
599964
599964
|
writeToStdout(`Cody CLI is managed by winget.
|
|
599965
599965
|
`);
|
|
599966
599966
|
const latest = await getLatestVersion(channel);
|
|
599967
|
-
if (latest && !gte("0.7.
|
|
599968
|
-
writeToStdout(`Update available: ${"0.7.
|
|
599967
|
+
if (latest && !gte("0.7.3", latest)) {
|
|
599968
|
+
writeToStdout(`Update available: ${"0.7.3"} → ${latest}
|
|
599969
599969
|
`);
|
|
599970
599970
|
writeToStdout(`
|
|
599971
599971
|
`);
|
|
@@ -599981,8 +599981,8 @@ async function update() {
|
|
|
599981
599981
|
writeToStdout(`Cody CLI is managed by apk.
|
|
599982
599982
|
`);
|
|
599983
599983
|
const latest = await getLatestVersion(channel);
|
|
599984
|
-
if (latest && !gte("0.7.
|
|
599985
|
-
writeToStdout(`Update available: ${"0.7.
|
|
599984
|
+
if (latest && !gte("0.7.3", latest)) {
|
|
599985
|
+
writeToStdout(`Update available: ${"0.7.3"} → ${latest}
|
|
599986
599986
|
`);
|
|
599987
599987
|
writeToStdout(`
|
|
599988
599988
|
`);
|
|
@@ -600047,11 +600047,11 @@ async function update() {
|
|
|
600047
600047
|
`);
|
|
600048
600048
|
await gracefulShutdown(1);
|
|
600049
600049
|
}
|
|
600050
|
-
if (result.latestVersion === "0.7.
|
|
600051
|
-
writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.
|
|
600050
|
+
if (result.latestVersion === "0.7.3") {
|
|
600051
|
+
writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.3"})`) + `
|
|
600052
600052
|
`);
|
|
600053
600053
|
} else {
|
|
600054
|
-
writeToStdout(source_default.green(`Successfully updated from ${"0.7.
|
|
600054
|
+
writeToStdout(source_default.green(`Successfully updated from ${"0.7.3"} to version ${result.latestVersion}`) + `
|
|
600055
600055
|
`);
|
|
600056
600056
|
await regenerateCompletionCache();
|
|
600057
600057
|
}
|
|
@@ -600111,12 +600111,12 @@ async function update() {
|
|
|
600111
600111
|
`);
|
|
600112
600112
|
await gracefulShutdown(1);
|
|
600113
600113
|
}
|
|
600114
|
-
if (latestVersion === "0.7.
|
|
600115
|
-
writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.
|
|
600114
|
+
if (latestVersion === "0.7.3") {
|
|
600115
|
+
writeToStdout(source_default.green(`Cody CLI is up to date (${"0.7.3"})`) + `
|
|
600116
600116
|
`);
|
|
600117
600117
|
await gracefulShutdown(0);
|
|
600118
600118
|
}
|
|
600119
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.
|
|
600119
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.3"})
|
|
600120
600120
|
`);
|
|
600121
600121
|
writeToStdout(`Installing update...
|
|
600122
600122
|
`);
|
|
@@ -600161,7 +600161,7 @@ async function update() {
|
|
|
600161
600161
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
600162
600162
|
switch (status2) {
|
|
600163
600163
|
case "success":
|
|
600164
|
-
writeToStdout(source_default.green(`Successfully updated from ${"0.7.
|
|
600164
|
+
writeToStdout(source_default.green(`Successfully updated from ${"0.7.3"} to version ${latestVersion}`) + `
|
|
600165
600165
|
`);
|
|
600166
600166
|
await regenerateCompletionCache();
|
|
600167
600167
|
break;
|
|
@@ -601405,7 +601405,7 @@ ${customInstructions}` : customInstructions;
|
|
|
601405
601405
|
}
|
|
601406
601406
|
}
|
|
601407
601407
|
logForDiagnosticsNoPII("info", "started", {
|
|
601408
|
-
version: "0.7.
|
|
601408
|
+
version: "0.7.3",
|
|
601409
601409
|
is_native_binary: isInBundledMode()
|
|
601410
601410
|
});
|
|
601411
601411
|
registerCleanup(async () => {
|
|
@@ -602173,7 +602173,7 @@ Usage: cody --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
602173
602173
|
} else {
|
|
602174
602174
|
const pendingHookMessages = hooksPromise && hookMessages.length === 0 ? hooksPromise : undefined;
|
|
602175
602175
|
profileCheckpoint("action_after_hooks");
|
|
602176
|
-
console.log(getWelcomeMessage("0.7.
|
|
602176
|
+
console.log(getWelcomeMessage("0.7.3"));
|
|
602177
602177
|
maybeActivateProactive(options);
|
|
602178
602178
|
maybeActivateBrief(options);
|
|
602179
602179
|
if (false) {}
|
|
@@ -602190,10 +602190,10 @@ Usage: cody --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
602190
602190
|
pendingHookMessages
|
|
602191
602191
|
}, renderAndRun);
|
|
602192
602192
|
}
|
|
602193
|
-
}).version("0.7.
|
|
602193
|
+
}).version("0.7.3 (Cody CLI)", "-v, --version", "Output the version number");
|
|
602194
602194
|
program2.configureOutput({
|
|
602195
602195
|
writeOut: (str2) => {
|
|
602196
|
-
if (str2.includes("0.7.
|
|
602196
|
+
if (str2.includes("0.7.3")) {
|
|
602197
602197
|
process.stdout.write(getCodyLogo() + `
|
|
602198
602198
|
` + str2);
|
|
602199
602199
|
} else {
|
|
@@ -602716,7 +602716,7 @@ async function main2() {
|
|
|
602716
602716
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
602717
602717
|
const { getCodyLogo: getCodyLogo2 } = await Promise.resolve().then(() => (init_branding(), exports_branding));
|
|
602718
602718
|
console.log(getCodyLogo2() + `
|
|
602719
|
-
0.7.
|
|
602719
|
+
0.7.3 (Cody CLI)`);
|
|
602720
602720
|
return;
|
|
602721
602721
|
}
|
|
602722
602722
|
const {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
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",
|
|
7
7
|
"bin": {
|
|
8
|
-
"cody": "bin/cody.
|
|
8
|
+
"cody": "bin/cody.cjs"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"bin/",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"postinstall": "node bin/postinstall.
|
|
20
|
+
"postinstall": "node bin/postinstall.cjs",
|
|
21
21
|
"build": "bash build.sh",
|
|
22
22
|
"start": "node dist/cli.js",
|
|
23
23
|
"postbuild": "bash postbuild.sh",
|