langcli-com 0.1.2 → 0.1.4
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 +135 -137
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -134818,6 +134818,9 @@ function getPublicModelDisplayName(model) {
|
|
|
134818
134818
|
if (model === "glm-5.1") {
|
|
134819
134819
|
return "GLM 5.1";
|
|
134820
134820
|
}
|
|
134821
|
+
if (model === "gpt-5.3-codex") {
|
|
134822
|
+
return "GPT 5.3 codex";
|
|
134823
|
+
}
|
|
134821
134824
|
return null;
|
|
134822
134825
|
}
|
|
134823
134826
|
function renderModelName(model) {
|
|
@@ -189422,7 +189425,7 @@ var init_auth2 = __esm(() => {
|
|
|
189422
189425
|
|
|
189423
189426
|
// src/utils/userAgent.ts
|
|
189424
189427
|
function getClaudeCodeUserAgent() {
|
|
189425
|
-
return `claude-code/${"0.1.
|
|
189428
|
+
return `claude-code/${"0.1.4"}`;
|
|
189426
189429
|
}
|
|
189427
189430
|
|
|
189428
189431
|
// src/utils/workloadContext.ts
|
|
@@ -189444,7 +189447,7 @@ function getUserAgent() {
|
|
|
189444
189447
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
189445
189448
|
const workload = getWorkload();
|
|
189446
189449
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
189447
|
-
return `langcli/${"0.1.
|
|
189450
|
+
return `langcli/${"0.1.4"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
189448
189451
|
}
|
|
189449
189452
|
function getMCPUserAgent() {
|
|
189450
189453
|
const parts = [];
|
|
@@ -189458,7 +189461,7 @@ function getMCPUserAgent() {
|
|
|
189458
189461
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
189459
189462
|
}
|
|
189460
189463
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
189461
|
-
return `claude-code/${"0.1.
|
|
189464
|
+
return `claude-code/${"0.1.4"}${suffix}`;
|
|
189462
189465
|
}
|
|
189463
189466
|
function getWebFetchUserAgent() {
|
|
189464
189467
|
return `Claude-User (${getClaudeCodeUserAgent()}; +https://support.anthropic.com/)`;
|
|
@@ -189596,7 +189599,7 @@ var init_user = __esm(() => {
|
|
|
189596
189599
|
deviceId,
|
|
189597
189600
|
sessionId: getSessionId(),
|
|
189598
189601
|
email: getEmail(),
|
|
189599
|
-
appVersion: "0.1.
|
|
189602
|
+
appVersion: "0.1.4",
|
|
189600
189603
|
platform: getHostPlatformForAnalytics(),
|
|
189601
189604
|
organizationUuid,
|
|
189602
189605
|
accountUuid,
|
|
@@ -197290,7 +197293,7 @@ var init_metadata = __esm(() => {
|
|
|
197290
197293
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
197291
197294
|
WHITESPACE_REGEX = /\s+/;
|
|
197292
197295
|
getVersionBase = memoize_default(() => {
|
|
197293
|
-
const match = "0.1.
|
|
197296
|
+
const match = "0.1.4".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
197294
197297
|
return match ? match[0] : undefined;
|
|
197295
197298
|
});
|
|
197296
197299
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -197330,9 +197333,9 @@ var init_metadata = __esm(() => {
|
|
|
197330
197333
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
197331
197334
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
197332
197335
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
197333
|
-
version: "0.1.
|
|
197336
|
+
version: "0.1.4",
|
|
197334
197337
|
versionBase: getVersionBase(),
|
|
197335
|
-
buildTime: "2026-04-
|
|
197338
|
+
buildTime: "2026-04-12T04:01:36.949Z",
|
|
197336
197339
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
197337
197340
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
197338
197341
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -198000,7 +198003,7 @@ function initialize1PEventLogging() {
|
|
|
198000
198003
|
const platform4 = getPlatform();
|
|
198001
198004
|
const attributes = {
|
|
198002
198005
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "claude-code",
|
|
198003
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.1.
|
|
198006
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "0.1.4"
|
|
198004
198007
|
};
|
|
198005
198008
|
if (platform4 === "wsl") {
|
|
198006
198009
|
const wslVersion = getWslVersion();
|
|
@@ -198027,7 +198030,7 @@ function initialize1PEventLogging() {
|
|
|
198027
198030
|
})
|
|
198028
198031
|
]
|
|
198029
198032
|
});
|
|
198030
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", "0.1.
|
|
198033
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", "0.1.4");
|
|
198031
198034
|
}
|
|
198032
198035
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
198033
198036
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -199446,9 +199449,6 @@ function getAutoUpdaterDisabledReason() {
|
|
|
199446
199449
|
if (true) {
|
|
199447
199450
|
return { type: "development" };
|
|
199448
199451
|
}
|
|
199449
|
-
if (!isEnvTruthy(process.env.ENABLE_AUTOUPDATER)) {
|
|
199450
|
-
return { type: "config" };
|
|
199451
|
-
}
|
|
199452
199452
|
if (isEnvTruthy(process.env.DISABLE_AUTOUPDATER)) {
|
|
199453
199453
|
return { type: "env", envVar: "DISABLE_AUTOUPDATER" };
|
|
199454
199454
|
}
|
|
@@ -199970,7 +199970,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
199970
199970
|
if (!isAttributionHeaderEnabled()) {
|
|
199971
199971
|
return "";
|
|
199972
199972
|
}
|
|
199973
|
-
const version6 = `${"0.1.
|
|
199973
|
+
const version6 = `${"0.1.4"}.${fingerprint}`;
|
|
199974
199974
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
199975
199975
|
const cch = "";
|
|
199976
199976
|
const workload = getWorkload();
|
|
@@ -383171,7 +383171,7 @@ function getTelemetryAttributes() {
|
|
|
383171
383171
|
attributes["session.id"] = sessionId;
|
|
383172
383172
|
}
|
|
383173
383173
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
383174
|
-
attributes["app.version"] = "0.1.
|
|
383174
|
+
attributes["app.version"] = "0.1.4";
|
|
383175
383175
|
}
|
|
383176
383176
|
const oauthAccount = getOauthAccountInfo();
|
|
383177
383177
|
if (oauthAccount) {
|
|
@@ -406669,7 +406669,7 @@ function getInstallationEnv() {
|
|
|
406669
406669
|
return;
|
|
406670
406670
|
}
|
|
406671
406671
|
function getClaudeCodeVersion() {
|
|
406672
|
-
return "0.1.
|
|
406672
|
+
return "0.1.4";
|
|
406673
406673
|
}
|
|
406674
406674
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
406675
406675
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -409392,7 +409392,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
409392
409392
|
const client5 = new Client({
|
|
409393
409393
|
name: "claude-code",
|
|
409394
409394
|
title: "Claude Code",
|
|
409395
|
-
version: "0.1.
|
|
409395
|
+
version: "0.1.4",
|
|
409396
409396
|
description: "Anthropic's agentic coding tool",
|
|
409397
409397
|
websiteUrl: PRODUCT_URL
|
|
409398
409398
|
}, {
|
|
@@ -409747,7 +409747,7 @@ var init_client9 = __esm(() => {
|
|
|
409747
409747
|
const client5 = new Client({
|
|
409748
409748
|
name: "claude-code",
|
|
409749
409749
|
title: "Claude Code",
|
|
409750
|
-
version: "0.1.
|
|
409750
|
+
version: "0.1.4",
|
|
409751
409751
|
description: "Anthropic's agentic coding tool",
|
|
409752
409752
|
websiteUrl: PRODUCT_URL
|
|
409753
409753
|
}, {
|
|
@@ -448207,7 +448207,7 @@ function initSentry() {
|
|
|
448207
448207
|
}
|
|
448208
448208
|
init3({
|
|
448209
448209
|
dsn,
|
|
448210
|
-
release: typeof MACRO !== "undefined" ? "0.1.
|
|
448210
|
+
release: typeof MACRO !== "undefined" ? "0.1.4" : undefined,
|
|
448211
448211
|
environment: typeof BUILD_ENV !== "undefined" ? BUILD_ENV : "development",
|
|
448212
448212
|
maxBreadcrumbs: 20,
|
|
448213
448213
|
sampleRate: 1,
|
|
@@ -487131,7 +487131,7 @@ async function initializeBetaTracing(resource) {
|
|
|
487131
487131
|
});
|
|
487132
487132
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
487133
487133
|
setLoggerProvider(loggerProvider);
|
|
487134
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.1.
|
|
487134
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.1.4");
|
|
487135
487135
|
setEventLogger(eventLogger);
|
|
487136
487136
|
process.on("beforeExit", async () => {
|
|
487137
487137
|
await loggerProvider?.forceFlush();
|
|
@@ -487171,7 +487171,7 @@ async function initializeTelemetry() {
|
|
|
487171
487171
|
const platform7 = getPlatform();
|
|
487172
487172
|
const baseAttributes = {
|
|
487173
487173
|
[import_semantic_conventions11.ATTR_SERVICE_NAME]: "claude-code",
|
|
487174
|
-
[import_semantic_conventions11.ATTR_SERVICE_VERSION]: "0.1.
|
|
487174
|
+
[import_semantic_conventions11.ATTR_SERVICE_VERSION]: "0.1.4"
|
|
487175
487175
|
};
|
|
487176
487176
|
if (platform7 === "wsl") {
|
|
487177
487177
|
const wslVersion = getWslVersion();
|
|
@@ -487216,7 +487216,7 @@ async function initializeTelemetry() {
|
|
|
487216
487216
|
} catch {}
|
|
487217
487217
|
};
|
|
487218
487218
|
registerCleanup(shutdownTelemetry2);
|
|
487219
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "0.1.
|
|
487219
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "0.1.4");
|
|
487220
487220
|
}
|
|
487221
487221
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
487222
487222
|
resource,
|
|
@@ -487236,7 +487236,7 @@ async function initializeTelemetry() {
|
|
|
487236
487236
|
});
|
|
487237
487237
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
487238
487238
|
setLoggerProvider(loggerProvider);
|
|
487239
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.1.
|
|
487239
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "0.1.4");
|
|
487240
487240
|
setEventLogger(eventLogger);
|
|
487241
487241
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
487242
487242
|
process.on("beforeExit", async () => {
|
|
@@ -487298,7 +487298,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
487298
487298
|
}
|
|
487299
487299
|
};
|
|
487300
487300
|
registerCleanup(shutdownTelemetry);
|
|
487301
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "0.1.
|
|
487301
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "0.1.4");
|
|
487302
487302
|
}
|
|
487303
487303
|
async function flushTelemetry() {
|
|
487304
487304
|
const meterProvider = getMeterProvider();
|
|
@@ -487777,11 +487777,11 @@ function getLocalInstallDir() {
|
|
|
487777
487777
|
return join65(getClaudeConfigHomeDir(), "local");
|
|
487778
487778
|
}
|
|
487779
487779
|
function getLocalClaudePath() {
|
|
487780
|
-
return join65(getLocalInstallDir(), "
|
|
487780
|
+
return join65(getLocalInstallDir(), "langcli");
|
|
487781
487781
|
}
|
|
487782
487782
|
function isRunningFromLocalInstallation() {
|
|
487783
487783
|
const execPath2 = process.argv[1] || "";
|
|
487784
|
-
return execPath2.includes("/.
|
|
487784
|
+
return execPath2.includes("/.langcli/local/node_modules/");
|
|
487785
487785
|
}
|
|
487786
487786
|
async function writeIfMissing(path17, content, mode) {
|
|
487787
487787
|
try {
|
|
@@ -487797,10 +487797,10 @@ async function ensureLocalPackageEnvironment() {
|
|
|
487797
487797
|
try {
|
|
487798
487798
|
const localInstallDir = getLocalInstallDir();
|
|
487799
487799
|
await getFsImplementation().mkdir(localInstallDir);
|
|
487800
|
-
await writeIfMissing(join65(localInstallDir, "package.json"), jsonStringify({ name: "
|
|
487801
|
-
const wrapperPath = join65(localInstallDir, "
|
|
487800
|
+
await writeIfMissing(join65(localInstallDir, "package.json"), jsonStringify({ name: "langcli-local", version: "0.0.1", private: true }, null, 2));
|
|
487801
|
+
const wrapperPath = join65(localInstallDir, "langcli");
|
|
487802
487802
|
const created = await writeIfMissing(wrapperPath, `#!/bin/sh
|
|
487803
|
-
exec "${localInstallDir}/node_modules/.bin/
|
|
487803
|
+
exec "${localInstallDir}/node_modules/.bin/langcli" "$@"`, 493);
|
|
487804
487804
|
if (created) {
|
|
487805
487805
|
await chmod3(wrapperPath, 493);
|
|
487806
487806
|
}
|
|
@@ -487816,9 +487816,9 @@ async function installOrUpdateClaudePackage(channel3, specificVersion) {
|
|
|
487816
487816
|
return "install_failed";
|
|
487817
487817
|
}
|
|
487818
487818
|
const versionSpec = specificVersion ? specificVersion : channel3 === "stable" ? "stable" : "latest";
|
|
487819
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${""}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
|
|
487819
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${"langcli-com"}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
|
|
487820
487820
|
if (result.code !== 0) {
|
|
487821
|
-
const error53 = new Error(`Failed to install
|
|
487821
|
+
const error53 = new Error(`Failed to install langcli package: ${result.stderr}`);
|
|
487822
487822
|
logError2(error53);
|
|
487823
487823
|
return result.code === 190 ? "in_progress" : "install_failed";
|
|
487824
487824
|
}
|
|
@@ -487834,7 +487834,7 @@ async function installOrUpdateClaudePackage(channel3, specificVersion) {
|
|
|
487834
487834
|
}
|
|
487835
487835
|
async function localInstallationExists() {
|
|
487836
487836
|
try {
|
|
487837
|
-
await access(join65(getLocalInstallDir(), "node_modules", ".bin", "
|
|
487837
|
+
await access(join65(getLocalInstallDir(), "node_modules", ".bin", "langcli"));
|
|
487838
487838
|
return true;
|
|
487839
487839
|
} catch {
|
|
487840
487840
|
return false;
|
|
@@ -487962,13 +487962,13 @@ async function assertMinVersion() {
|
|
|
487962
487962
|
if (false) {}
|
|
487963
487963
|
try {
|
|
487964
487964
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
487965
|
-
if (versionConfig.minVersion && lt("0.1.
|
|
487965
|
+
if (versionConfig.minVersion && lt("0.1.4", versionConfig.minVersion)) {
|
|
487966
487966
|
console.error(`
|
|
487967
|
-
It looks like your version of
|
|
487967
|
+
It looks like your version of langcli(${"0.1.4"}) needs an update.
|
|
487968
487968
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
487969
487969
|
|
|
487970
487970
|
To update, please run:
|
|
487971
|
-
|
|
487971
|
+
langcli update
|
|
487972
487972
|
|
|
487973
487973
|
This will ensure you have access to the latest features and improvements.
|
|
487974
487974
|
`);
|
|
@@ -488124,7 +488124,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
488124
488124
|
}
|
|
488125
488125
|
async function getLatestVersion(channel3) {
|
|
488126
488126
|
const npmTag = channel3 === "stable" ? "stable" : "latest";
|
|
488127
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${""}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir20() });
|
|
488127
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${"langcli-com"}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir20() });
|
|
488128
488128
|
if (result.code !== 0) {
|
|
488129
488129
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
488130
488130
|
if (result.stderr) {
|
|
@@ -488140,7 +488140,7 @@ async function getLatestVersion(channel3) {
|
|
|
488140
488140
|
return result.stdout.trim();
|
|
488141
488141
|
}
|
|
488142
488142
|
async function getNpmDistTags() {
|
|
488143
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", "", "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir20() });
|
|
488143
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", "langcli-com", "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir20() });
|
|
488144
488144
|
if (result.code !== 0) {
|
|
488145
488145
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
488146
488146
|
return { latest: null, stable: null };
|
|
@@ -488180,7 +488180,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
488180
488180
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
488181
488181
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
488182
488182
|
pid: process.pid,
|
|
488183
|
-
currentVersion: "0.1.
|
|
488183
|
+
currentVersion: "0.1.4"
|
|
488184
488184
|
});
|
|
488185
488185
|
return "in_progress";
|
|
488186
488186
|
}
|
|
@@ -488189,18 +488189,18 @@ async function installGlobalPackage(specificVersion) {
|
|
|
488189
488189
|
if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
|
|
488190
488190
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
488191
488191
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
488192
|
-
currentVersion: "0.1.
|
|
488192
|
+
currentVersion: "0.1.4"
|
|
488193
488193
|
});
|
|
488194
488194
|
console.error(`
|
|
488195
488195
|
Error: Windows NPM detected in WSL
|
|
488196
488196
|
|
|
488197
|
-
You're running
|
|
488197
|
+
You're running langcli in WSL but using the Windows NPM installation from /mnt/c/.
|
|
488198
488198
|
This configuration is not supported for updates.
|
|
488199
488199
|
|
|
488200
488200
|
To fix this issue:
|
|
488201
488201
|
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
488202
488202
|
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
488203
|
-
3. Try updating again with '
|
|
488203
|
+
3. Try updating again with 'langcli update'
|
|
488204
488204
|
`);
|
|
488205
488205
|
return "install_failed";
|
|
488206
488206
|
}
|
|
@@ -488208,11 +488208,11 @@ To fix this issue:
|
|
|
488208
488208
|
if (!hasPermissions) {
|
|
488209
488209
|
return "no_permissions";
|
|
488210
488210
|
}
|
|
488211
|
-
const packageSpec = specificVersion ? `${""}@${specificVersion}` : "";
|
|
488211
|
+
const packageSpec = specificVersion ? `${"langcli-com"}@${specificVersion}` : "langcli-com";
|
|
488212
488212
|
const packageManager = env4.isRunningWithBun() ? "bun" : "npm";
|
|
488213
488213
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir20() });
|
|
488214
488214
|
if (installResult.code !== 0) {
|
|
488215
|
-
const error53 = new AutoUpdaterError(`Failed to install new version of
|
|
488215
|
+
const error53 = new AutoUpdaterError(`Failed to install new version of langcli: ${installResult.stdout} ${installResult.stderr}`);
|
|
488216
488216
|
logError2(error53);
|
|
488217
488217
|
return "install_failed";
|
|
488218
488218
|
}
|
|
@@ -488235,7 +488235,7 @@ async function removeClaudeAliasesFromShellConfigs() {
|
|
|
488235
488235
|
const { filtered, hadAlias } = filterClaudeAliases(lines2);
|
|
488236
488236
|
if (hadAlias) {
|
|
488237
488237
|
await writeFileLines(configFile, filtered);
|
|
488238
|
-
logForDebugging(`Removed
|
|
488238
|
+
logForDebugging(`Removed langcli alias from ${configFile}`);
|
|
488239
488239
|
}
|
|
488240
488240
|
} catch (error53) {
|
|
488241
488241
|
logForDebugging(`Failed to remove alias from ${configFile}: ${error53}`, {
|
|
@@ -488539,8 +488539,8 @@ async function detectMultipleInstallations() {
|
|
|
488539
488539
|
if (await localInstallationExists()) {
|
|
488540
488540
|
installations.push({ type: "npm-local", path: localPath });
|
|
488541
488541
|
}
|
|
488542
|
-
const packagesToCheck = ["
|
|
488543
|
-
if (
|
|
488542
|
+
const packagesToCheck = ["langcli-com"];
|
|
488543
|
+
if (false) {}
|
|
488544
488544
|
const npmResult = await execFileNoThrow("npm", [
|
|
488545
488545
|
"-g",
|
|
488546
488546
|
"config",
|
|
@@ -488722,7 +488722,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
488722
488722
|
}
|
|
488723
488723
|
async function getDoctorDiagnostic() {
|
|
488724
488724
|
const installationType = await getCurrentInstallationType();
|
|
488725
|
-
const version6 = typeof MACRO !== "undefined" ? "0.1.
|
|
488725
|
+
const version6 = typeof MACRO !== "undefined" ? "0.1.4" : "unknown";
|
|
488726
488726
|
const installationPath = await getInstallationPath();
|
|
488727
488727
|
const invokedBinary = getInvokedBinary();
|
|
488728
488728
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -488733,8 +488733,8 @@ async function getDoctorDiagnostic() {
|
|
|
488733
488733
|
const isWindows3 = getPlatform() === "windows";
|
|
488734
488734
|
for (const install of npmInstalls) {
|
|
488735
488735
|
if (install.type === "npm-global") {
|
|
488736
|
-
let uninstallCmd = "npm -g uninstall
|
|
488737
|
-
if (
|
|
488736
|
+
let uninstallCmd = "npm -g uninstall langcli-com";
|
|
488737
|
+
if (false) {}
|
|
488738
488738
|
warnings.push({
|
|
488739
488739
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
488740
488740
|
fix: `Run: ${uninstallCmd}`
|
|
@@ -489655,8 +489655,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
489655
489655
|
const maxVersion = await getMaxVersion();
|
|
489656
489656
|
if (maxVersion && gt(version6, maxVersion)) {
|
|
489657
489657
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version6} to ${maxVersion}`);
|
|
489658
|
-
if (gte("0.1.
|
|
489659
|
-
logForDebugging(`Native installer: current version ${"0.1.
|
|
489658
|
+
if (gte("0.1.4", maxVersion)) {
|
|
489659
|
+
logForDebugging(`Native installer: current version ${"0.1.4"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
489660
489660
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
489661
489661
|
latency_ms: Date.now() - startTime,
|
|
489662
489662
|
max_version: maxVersion,
|
|
@@ -489667,7 +489667,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
489667
489667
|
version6 = maxVersion;
|
|
489668
489668
|
}
|
|
489669
489669
|
}
|
|
489670
|
-
if (!forceReinstall && version6 === "0.1.
|
|
489670
|
+
if (!forceReinstall && version6 === "0.1.4" && await versionIsAvailable(version6) && await isPossibleClaudeBinary(executablePath)) {
|
|
489671
489671
|
logForDebugging(`Found ${version6} at ${executablePath}, skipping install`);
|
|
489672
489672
|
logEvent("tengu_native_update_complete", {
|
|
489673
489673
|
latency_ms: Date.now() - startTime,
|
|
@@ -490400,7 +490400,7 @@ async function cleanupNpmInstallations() {
|
|
|
490400
490400
|
const errors5 = [];
|
|
490401
490401
|
const warnings = [];
|
|
490402
490402
|
let removed = 0;
|
|
490403
|
-
const codePackageResult = await attemptNpmUninstall("
|
|
490403
|
+
const codePackageResult = await attemptNpmUninstall("langcli-com");
|
|
490404
490404
|
if (codePackageResult.success) {
|
|
490405
490405
|
removed++;
|
|
490406
490406
|
if (codePackageResult.warning) {
|
|
@@ -490409,7 +490409,7 @@ async function cleanupNpmInstallations() {
|
|
|
490409
490409
|
} else if (codePackageResult.error) {
|
|
490410
490410
|
errors5.push(codePackageResult.error);
|
|
490411
490411
|
}
|
|
490412
|
-
if (
|
|
490412
|
+
if (false) {}
|
|
490413
490413
|
const localInstallDir = join72(homedir22(), ".claude", "local");
|
|
490414
490414
|
try {
|
|
490415
490415
|
await rm5(localInstallDir, { recursive: true });
|
|
@@ -579523,7 +579523,7 @@ function getAnthropicEnvMetadata() {
|
|
|
579523
579523
|
function getBuildAgeMinutes() {
|
|
579524
579524
|
if (false)
|
|
579525
579525
|
;
|
|
579526
|
-
const buildTime = new Date("2026-04-
|
|
579526
|
+
const buildTime = new Date("2026-04-12T04:01:36.949Z").getTime();
|
|
579527
579527
|
if (isNaN(buildTime))
|
|
579528
579528
|
return;
|
|
579529
579529
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -602617,7 +602617,7 @@ function Feedback({
|
|
|
602617
602617
|
platform: env4.platform,
|
|
602618
602618
|
gitRepo: envInfo.isGit,
|
|
602619
602619
|
terminal: env4.terminal,
|
|
602620
|
-
version: "0.1.
|
|
602620
|
+
version: "0.1.4",
|
|
602621
602621
|
transcript: normalizeMessagesForAPI(messages),
|
|
602622
602622
|
errors: sanitizedErrors,
|
|
602623
602623
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -602802,7 +602802,7 @@ function Feedback({
|
|
|
602802
602802
|
", ",
|
|
602803
602803
|
env4.terminal,
|
|
602804
602804
|
", v",
|
|
602805
|
-
"0.1.
|
|
602805
|
+
"0.1.4"
|
|
602806
602806
|
]
|
|
602807
602807
|
}, undefined, true, undefined, this)
|
|
602808
602808
|
]
|
|
@@ -602908,7 +602908,7 @@ ${sanitizedDescription}
|
|
|
602908
602908
|
` + `**Environment Info**
|
|
602909
602909
|
` + `- Platform: ${env4.platform}
|
|
602910
602910
|
` + `- Terminal: ${env4.terminal}
|
|
602911
|
-
` + `- Version: ${"0.1.
|
|
602911
|
+
` + `- Version: ${"0.1.4"}
|
|
602912
602912
|
` + `- Feedback ID: ${feedbackId}
|
|
602913
602913
|
` + `
|
|
602914
602914
|
**Errors**
|
|
@@ -605642,7 +605642,7 @@ function buildPrimarySection() {
|
|
|
605642
605642
|
children: "/rename to add a name"
|
|
605643
605643
|
}, undefined, false, undefined, this);
|
|
605644
605644
|
return [
|
|
605645
|
-
{ label: "Version", value: "0.1.
|
|
605645
|
+
{ label: "Version", value: "0.1.4" },
|
|
605646
605646
|
{ label: "Session name", value: nameValue },
|
|
605647
605647
|
{ label: "Session ID", value: sessionId },
|
|
605648
605648
|
{ label: "cwd", value: getCwd() },
|
|
@@ -608400,7 +608400,7 @@ function Config({
|
|
|
608400
608400
|
}
|
|
608401
608401
|
}, undefined, false, undefined, this)
|
|
608402
608402
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime175.jsxDEV(ChannelDowngradeDialog, {
|
|
608403
|
-
currentVersion: "0.1.
|
|
608403
|
+
currentVersion: "0.1.4",
|
|
608404
608404
|
onChoice: (choice) => {
|
|
608405
608405
|
setShowSubmenu(null);
|
|
608406
608406
|
setTabsHidden(false);
|
|
@@ -608412,7 +608412,7 @@ function Config({
|
|
|
608412
608412
|
autoUpdatesChannel: "stable"
|
|
608413
608413
|
};
|
|
608414
608414
|
if (choice === "stay") {
|
|
608415
|
-
newSettings.minimumVersion = "0.1.
|
|
608415
|
+
newSettings.minimumVersion = "0.1.4";
|
|
608416
608416
|
}
|
|
608417
608417
|
updateSettingsForSource("userSettings", newSettings);
|
|
608418
608418
|
setSettingsData((prev) => ({
|
|
@@ -613840,7 +613840,7 @@ function HelpV2({ onClose, commands }) {
|
|
|
613840
613840
|
color: "professionalBlue",
|
|
613841
613841
|
children: [
|
|
613842
613842
|
/* @__PURE__ */ jsx_dev_runtime202.jsxDEV(Tabs, {
|
|
613843
|
-
title: process.env.USER_TYPE === "ant" ? "/help" : `Langcli v${"0.1.
|
|
613843
|
+
title: process.env.USER_TYPE === "ant" ? "/help" : `Langcli v${"0.1.4"}`,
|
|
613844
613844
|
color: "professionalBlue",
|
|
613845
613845
|
defaultTab: "general",
|
|
613846
613846
|
children: tabs
|
|
@@ -633898,7 +633898,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
633898
633898
|
return [];
|
|
633899
633899
|
}
|
|
633900
633900
|
}
|
|
633901
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.1.
|
|
633901
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.1.4") {
|
|
633902
633902
|
if (process.env.USER_TYPE === "ant") {
|
|
633903
633903
|
const changelog = "";
|
|
633904
633904
|
if (changelog) {
|
|
@@ -633925,7 +633925,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "0.1.2") {
|
|
|
633925
633925
|
releaseNotes
|
|
633926
633926
|
};
|
|
633927
633927
|
}
|
|
633928
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.1.
|
|
633928
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "0.1.4") {
|
|
633929
633929
|
if (process.env.USER_TYPE === "ant") {
|
|
633930
633930
|
const changelog = "";
|
|
633931
633931
|
if (changelog) {
|
|
@@ -637008,7 +637008,7 @@ function getRecentActivitySync() {
|
|
|
637008
637008
|
return cachedActivity;
|
|
637009
637009
|
}
|
|
637010
637010
|
function getLogoDisplayData() {
|
|
637011
|
-
const version6 = process.env.DEMO_VERSION ?? "0.1.
|
|
637011
|
+
const version6 = process.env.DEMO_VERSION ?? "0.1.4";
|
|
637012
637012
|
const serverUrl = getDirectConnectServerUrl();
|
|
637013
637013
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
637014
637014
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -638016,13 +638016,13 @@ function LogoV2() {
|
|
|
638016
638016
|
const { hasReleaseNotes } = checkForReleaseNotesSync(config7.lastReleaseNotesSeen);
|
|
638017
638017
|
import_react161.useEffect(() => {
|
|
638018
638018
|
const currentConfig = getGlobalConfig();
|
|
638019
|
-
if (currentConfig.lastReleaseNotesSeen === "0.1.
|
|
638019
|
+
if (currentConfig.lastReleaseNotesSeen === "0.1.4") {
|
|
638020
638020
|
return;
|
|
638021
638021
|
}
|
|
638022
638022
|
saveGlobalConfig((current) => {
|
|
638023
|
-
if (current.lastReleaseNotesSeen === "0.1.
|
|
638023
|
+
if (current.lastReleaseNotesSeen === "0.1.4")
|
|
638024
638024
|
return current;
|
|
638025
|
-
return { ...current, lastReleaseNotesSeen: "0.1.
|
|
638025
|
+
return { ...current, lastReleaseNotesSeen: "0.1.4" };
|
|
638026
638026
|
});
|
|
638027
638027
|
if (showOnboarding) {
|
|
638028
638028
|
incrementProjectOnboardingSeenCount();
|
|
@@ -655052,7 +655052,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
655052
655052
|
smapsRollup,
|
|
655053
655053
|
platform: process.platform,
|
|
655054
655054
|
nodeVersion: process.version,
|
|
655055
|
-
ccVersion: "0.1.
|
|
655055
|
+
ccVersion: "0.1.4"
|
|
655056
655056
|
};
|
|
655057
655057
|
}
|
|
655058
655058
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -655638,7 +655638,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
655638
655638
|
var call53 = async () => {
|
|
655639
655639
|
return {
|
|
655640
655640
|
type: "text",
|
|
655641
|
-
value: `${"0.1.
|
|
655641
|
+
value: `${"0.1.4"} (built ${"2026-04-12T04:01:36.949Z"})`
|
|
655642
655642
|
};
|
|
655643
655643
|
}, version6, version_default;
|
|
655644
655644
|
var init_version2 = __esm(() => {
|
|
@@ -662986,7 +662986,7 @@ function generateHtmlReport(data, insights) {
|
|
|
662986
662986
|
</html>`;
|
|
662987
662987
|
}
|
|
662988
662988
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
662989
|
-
const version7 = typeof MACRO !== "undefined" ? "0.1.
|
|
662989
|
+
const version7 = typeof MACRO !== "undefined" ? "0.1.4" : "unknown";
|
|
662990
662990
|
const remote_hosts_collected = remoteStats?.hosts.filter((h3) => h3.sessionCount > 0).map((h3) => h3.name);
|
|
662991
662991
|
const facets_summary = {
|
|
662992
662992
|
total: facets.size,
|
|
@@ -667089,7 +667089,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
667089
667089
|
init_settings2();
|
|
667090
667090
|
init_slowOperations();
|
|
667091
667091
|
init_uuid();
|
|
667092
|
-
VERSION6 = typeof MACRO !== "undefined" ? "0.1.
|
|
667092
|
+
VERSION6 = typeof MACRO !== "undefined" ? "0.1.4" : "unknown";
|
|
667093
667093
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
667094
667094
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
667095
667095
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -668295,7 +668295,7 @@ var init_filesystem = __esm(() => {
|
|
|
668295
668295
|
});
|
|
668296
668296
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
668297
668297
|
const nonce = randomBytes19(16).toString("hex");
|
|
668298
|
-
return join142(getClaudeTempDir(), "bundled-skills", "0.1.
|
|
668298
|
+
return join142(getClaudeTempDir(), "bundled-skills", "0.1.4", nonce);
|
|
668299
668299
|
});
|
|
668300
668300
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
668301
668301
|
});
|
|
@@ -674325,7 +674325,7 @@ function computeFingerprint(messageText, version7) {
|
|
|
674325
674325
|
}
|
|
674326
674326
|
function computeFingerprintFromMessages(messages) {
|
|
674327
674327
|
const firstMessageText = extractFirstMessageText(messages);
|
|
674328
|
-
return computeFingerprint(firstMessageText, "0.1.
|
|
674328
|
+
return computeFingerprint(firstMessageText, "0.1.4");
|
|
674329
674329
|
}
|
|
674330
674330
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
674331
674331
|
var init_fingerprint = () => {};
|
|
@@ -683251,7 +683251,7 @@ async function sideQuery(opts) {
|
|
|
683251
683251
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
683252
683252
|
}
|
|
683253
683253
|
const messageText = extractFirstUserMessageText(messages);
|
|
683254
|
-
const fingerprint = computeFingerprint(messageText, "0.1.
|
|
683254
|
+
const fingerprint = computeFingerprint(messageText, "0.1.4");
|
|
683255
683255
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
683256
683256
|
const systemBlocks = [
|
|
683257
683257
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -687824,7 +687824,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
687824
687824
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
687825
687825
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
687826
687826
|
betas: getSdkBetas(),
|
|
687827
|
-
claude_code_version: "0.1.
|
|
687827
|
+
claude_code_version: "0.1.4",
|
|
687828
687828
|
output_style: outputStyle2,
|
|
687829
687829
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
687830
687830
|
skills: inputs.skills.filter((s2) => s2.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -698992,7 +698992,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
698992
698992
|
function getSemverPart(version7) {
|
|
698993
698993
|
return `${import_semver13.major(version7, { loose: true })}.${import_semver13.minor(version7, { loose: true })}.${import_semver13.patch(version7, { loose: true })}`;
|
|
698994
698994
|
}
|
|
698995
|
-
function useUpdateNotification(updatedVersion, initialVersion = "0.1.
|
|
698995
|
+
function useUpdateNotification(updatedVersion, initialVersion = "0.1.4") {
|
|
698996
698996
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react250.useState(() => getSemverPart(initialVersion));
|
|
698997
698997
|
if (!updatedVersion) {
|
|
698998
698998
|
return null;
|
|
@@ -699032,7 +699032,7 @@ function AutoUpdater({
|
|
|
699032
699032
|
return;
|
|
699033
699033
|
}
|
|
699034
699034
|
if (false) {}
|
|
699035
|
-
const currentVersion = "0.1.
|
|
699035
|
+
const currentVersion = "0.1.4";
|
|
699036
699036
|
const channel3 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
699037
699037
|
let latestVersion = await getLatestVersion(channel3);
|
|
699038
699038
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -699156,13 +699156,13 @@ function AutoUpdater({
|
|
|
699156
699156
|
"✗ Auto-update failed · Try ",
|
|
699157
699157
|
/* @__PURE__ */ jsx_dev_runtime403.jsxDEV(ThemedText, {
|
|
699158
699158
|
bold: true,
|
|
699159
|
-
children: "
|
|
699159
|
+
children: "langcli doctor"
|
|
699160
699160
|
}, undefined, false, undefined, this),
|
|
699161
699161
|
" or",
|
|
699162
699162
|
" ",
|
|
699163
699163
|
/* @__PURE__ */ jsx_dev_runtime403.jsxDEV(ThemedText, {
|
|
699164
699164
|
bold: true,
|
|
699165
|
-
children: hasLocalInstall ? `cd ~/.
|
|
699165
|
+
children: hasLocalInstall ? `cd ~/.langcli/local && npm update ${"langcli-com"}` : `npm i -g ${"langcli-com"}`
|
|
699166
699166
|
}, undefined, false, undefined, this)
|
|
699167
699167
|
]
|
|
699168
699168
|
}, undefined, true, undefined, this)
|
|
@@ -699239,12 +699239,12 @@ function NativeAutoUpdater({
|
|
|
699239
699239
|
logEvent("tengu_native_auto_updater_start", {});
|
|
699240
699240
|
try {
|
|
699241
699241
|
const maxVersion = await getMaxVersion();
|
|
699242
|
-
if (maxVersion && gt("0.1.
|
|
699242
|
+
if (maxVersion && gt("0.1.4", maxVersion)) {
|
|
699243
699243
|
const msg = await getMaxVersionMessage();
|
|
699244
699244
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
699245
699245
|
}
|
|
699246
699246
|
const result = await installLatest(channel3);
|
|
699247
|
-
const currentVersion = "0.1.
|
|
699247
|
+
const currentVersion = "0.1.4";
|
|
699248
699248
|
const latencyMs = Date.now() - startTime;
|
|
699249
699249
|
if (result.lockFailed) {
|
|
699250
699250
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -699389,17 +699389,17 @@ function PackageManagerAutoUpdater({ verbose }) {
|
|
|
699389
699389
|
const maxVersion = await getMaxVersion();
|
|
699390
699390
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
699391
699391
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
699392
|
-
if (gte("0.1.
|
|
699393
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"0.1.
|
|
699392
|
+
if (gte("0.1.4", maxVersion)) {
|
|
699393
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"0.1.4"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
699394
699394
|
setUpdateAvailable(false);
|
|
699395
699395
|
return;
|
|
699396
699396
|
}
|
|
699397
699397
|
latest = maxVersion;
|
|
699398
699398
|
}
|
|
699399
|
-
const hasUpdate = latest && !gte("0.1.
|
|
699399
|
+
const hasUpdate = latest && !gte("0.1.4", latest) && !shouldSkipVersion(latest);
|
|
699400
699400
|
setUpdateAvailable(!!hasUpdate);
|
|
699401
699401
|
if (hasUpdate) {
|
|
699402
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.1.
|
|
699402
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.1.4"} -> ${latest}`);
|
|
699403
699403
|
}
|
|
699404
699404
|
}, []);
|
|
699405
699405
|
React152.useEffect(() => {
|
|
@@ -699417,7 +699417,7 @@ function PackageManagerAutoUpdater({ verbose }) {
|
|
|
699417
699417
|
wrap: "truncate",
|
|
699418
699418
|
children: [
|
|
699419
699419
|
"currentVersion: ",
|
|
699420
|
-
"0.1.
|
|
699420
|
+
"0.1.4"
|
|
699421
699421
|
]
|
|
699422
699422
|
}, undefined, true, undefined, this),
|
|
699423
699423
|
/* @__PURE__ */ jsx_dev_runtime405.jsxDEV(ThemedText, {
|
|
@@ -704778,7 +704778,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
704778
704778
|
project_dir: getOriginalCwd(),
|
|
704779
704779
|
added_dirs: addedDirs
|
|
704780
704780
|
},
|
|
704781
|
-
version: "0.1.
|
|
704781
|
+
version: "0.1.4",
|
|
704782
704782
|
output_style: {
|
|
704783
704783
|
name: outputStyleName
|
|
704784
704784
|
},
|
|
@@ -723691,7 +723691,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
723691
723691
|
} catch {}
|
|
723692
723692
|
const data = {
|
|
723693
723693
|
trigger,
|
|
723694
|
-
version: "0.1.
|
|
723694
|
+
version: "0.1.4",
|
|
723695
723695
|
platform: process.platform,
|
|
723696
723696
|
transcript,
|
|
723697
723697
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -734213,7 +734213,7 @@ function WelcomeV2() {
|
|
|
734213
734213
|
dimColor: true,
|
|
734214
734214
|
children: [
|
|
734215
734215
|
"v",
|
|
734216
|
-
"0.1.
|
|
734216
|
+
"0.1.4",
|
|
734217
734217
|
" "
|
|
734218
734218
|
]
|
|
734219
734219
|
}, undefined, true, undefined, this)
|
|
@@ -734330,7 +734330,7 @@ function WelcomeV2() {
|
|
|
734330
734330
|
dimColor: true,
|
|
734331
734331
|
children: [
|
|
734332
734332
|
"v",
|
|
734333
|
-
"0.1.
|
|
734333
|
+
"0.1.4",
|
|
734334
734334
|
" "
|
|
734335
734335
|
]
|
|
734336
734336
|
}, undefined, true, undefined, this)
|
|
@@ -734466,7 +734466,7 @@ function AppleTerminalWelcomeV2({
|
|
|
734466
734466
|
dimColor: true,
|
|
734467
734467
|
children: [
|
|
734468
734468
|
"v",
|
|
734469
|
-
"0.1.
|
|
734469
|
+
"0.1.4",
|
|
734470
734470
|
" "
|
|
734471
734471
|
]
|
|
734472
734472
|
}, undefined, true, undefined, this)
|
|
@@ -734611,7 +734611,7 @@ function AppleTerminalWelcomeV2({
|
|
|
734611
734611
|
dimColor: true,
|
|
734612
734612
|
children: [
|
|
734613
734613
|
"v",
|
|
734614
|
-
"0.1.
|
|
734614
|
+
"0.1.4",
|
|
734615
734615
|
" "
|
|
734616
734616
|
]
|
|
734617
734617
|
}, undefined, true, undefined, this)
|
|
@@ -735583,7 +735583,7 @@ function completeOnboarding() {
|
|
|
735583
735583
|
saveGlobalConfig((current) => ({
|
|
735584
735584
|
...current,
|
|
735585
735585
|
hasCompletedOnboarding: true,
|
|
735586
|
-
lastOnboardingVersion: "0.1.
|
|
735586
|
+
lastOnboardingVersion: "0.1.4"
|
|
735587
735587
|
}));
|
|
735588
735588
|
}
|
|
735589
735589
|
function showDialog(root2, renderer) {
|
|
@@ -739861,7 +739861,7 @@ function appendToLog(path29, message) {
|
|
|
739861
739861
|
cwd: getFsImplementation().cwd(),
|
|
739862
739862
|
userType: process.env.USER_TYPE,
|
|
739863
739863
|
sessionId: getSessionId(),
|
|
739864
|
-
version: "0.1.
|
|
739864
|
+
version: "0.1.4"
|
|
739865
739865
|
};
|
|
739866
739866
|
getLogWriter(path29).write(messageWithTimestamp);
|
|
739867
739867
|
}
|
|
@@ -744307,8 +744307,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
744307
744307
|
}
|
|
744308
744308
|
async function checkEnvLessBridgeMinVersion() {
|
|
744309
744309
|
const cfg = await getEnvLessBridgeConfig();
|
|
744310
|
-
if (cfg.min_version && lt("0.1.
|
|
744311
|
-
return `Your version of Claude Code (${"0.1.
|
|
744310
|
+
if (cfg.min_version && lt("0.1.4", cfg.min_version)) {
|
|
744311
|
+
return `Your version of Claude Code (${"0.1.4"}) is too old for Remote Control.
|
|
744312
744312
|
Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
|
|
744313
744313
|
}
|
|
744314
744314
|
return null;
|
|
@@ -744782,7 +744782,7 @@ async function initBridgeCore(params) {
|
|
|
744782
744782
|
const rawApi = createBridgeApiClient({
|
|
744783
744783
|
baseUrl,
|
|
744784
744784
|
getAccessToken,
|
|
744785
|
-
runnerVersion: "0.1.
|
|
744785
|
+
runnerVersion: "0.1.4",
|
|
744786
744786
|
onDebug: logForDebugging,
|
|
744787
744787
|
onAuth401,
|
|
744788
744788
|
getTrustedDeviceToken
|
|
@@ -749871,7 +749871,7 @@ async function startMCPServer(cwd3, debug5, verbose) {
|
|
|
749871
749871
|
setCwd(cwd3);
|
|
749872
749872
|
const server = new Server({
|
|
749873
749873
|
name: "claude/tengu",
|
|
749874
|
-
version: "0.1.
|
|
749874
|
+
version: "0.1.4"
|
|
749875
749875
|
}, {
|
|
749876
749876
|
capabilities: {
|
|
749877
749877
|
tools: {}
|
|
@@ -751392,7 +751392,7 @@ __export(exports_update, {
|
|
|
751392
751392
|
});
|
|
751393
751393
|
async function update() {
|
|
751394
751394
|
logEvent("tengu_update_check", {});
|
|
751395
|
-
writeToStdout(`Current version: ${"0.1.
|
|
751395
|
+
writeToStdout(`Current version: ${"0.1.4"}
|
|
751396
751396
|
`);
|
|
751397
751397
|
const channel3 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
751398
751398
|
writeToStdout(`Checking for updates to ${channel3} version...
|
|
@@ -751464,11 +751464,11 @@ async function update() {
|
|
|
751464
751464
|
writeToStdout(`
|
|
751465
751465
|
`);
|
|
751466
751466
|
if (packageManager === "homebrew") {
|
|
751467
|
-
writeToStdout(`
|
|
751467
|
+
writeToStdout(`langcli is managed by Homebrew.
|
|
751468
751468
|
`);
|
|
751469
751469
|
const latest = await getLatestVersion(channel3);
|
|
751470
|
-
if (latest && !gte("0.1.
|
|
751471
|
-
writeToStdout(`Update available: ${"0.1.
|
|
751470
|
+
if (latest && !gte("0.1.4", latest)) {
|
|
751471
|
+
writeToStdout(`Update available: ${"0.1.4"} → ${latest}
|
|
751472
751472
|
`);
|
|
751473
751473
|
writeToStdout(`
|
|
751474
751474
|
`);
|
|
@@ -751477,45 +751477,45 @@ async function update() {
|
|
|
751477
751477
|
writeToStdout(source_default.bold(" brew upgrade claude-code") + `
|
|
751478
751478
|
`);
|
|
751479
751479
|
} else {
|
|
751480
|
-
writeToStdout(`
|
|
751480
|
+
writeToStdout(`langcli is up to date!
|
|
751481
751481
|
`);
|
|
751482
751482
|
}
|
|
751483
751483
|
} else if (packageManager === "winget") {
|
|
751484
|
-
writeToStdout(`
|
|
751484
|
+
writeToStdout(`langcli is managed by winget.
|
|
751485
751485
|
`);
|
|
751486
751486
|
const latest = await getLatestVersion(channel3);
|
|
751487
|
-
if (latest && !gte("0.1.
|
|
751488
|
-
writeToStdout(`Update available: ${"0.1.
|
|
751487
|
+
if (latest && !gte("0.1.4", latest)) {
|
|
751488
|
+
writeToStdout(`Update available: ${"0.1.4"} → ${latest}
|
|
751489
751489
|
`);
|
|
751490
751490
|
writeToStdout(`
|
|
751491
751491
|
`);
|
|
751492
751492
|
writeToStdout(`To update, run:
|
|
751493
751493
|
`);
|
|
751494
|
-
writeToStdout(source_default.bold(" winget upgrade
|
|
751494
|
+
writeToStdout(source_default.bold(" winget upgrade langcli") + `
|
|
751495
751495
|
`);
|
|
751496
751496
|
} else {
|
|
751497
|
-
writeToStdout(`
|
|
751497
|
+
writeToStdout(`langcli is up to date!
|
|
751498
751498
|
`);
|
|
751499
751499
|
}
|
|
751500
751500
|
} else if (packageManager === "apk") {
|
|
751501
|
-
writeToStdout(`
|
|
751501
|
+
writeToStdout(`langcli is managed by apk.
|
|
751502
751502
|
`);
|
|
751503
751503
|
const latest = await getLatestVersion(channel3);
|
|
751504
|
-
if (latest && !gte("0.1.
|
|
751505
|
-
writeToStdout(`Update available: ${"0.1.
|
|
751504
|
+
if (latest && !gte("0.1.4", latest)) {
|
|
751505
|
+
writeToStdout(`Update available: ${"0.1.4"} → ${latest}
|
|
751506
751506
|
`);
|
|
751507
751507
|
writeToStdout(`
|
|
751508
751508
|
`);
|
|
751509
751509
|
writeToStdout(`To update, run:
|
|
751510
751510
|
`);
|
|
751511
|
-
writeToStdout(source_default.bold(" apk upgrade
|
|
751511
|
+
writeToStdout(source_default.bold(" apk upgrade langcli") + `
|
|
751512
751512
|
`);
|
|
751513
751513
|
} else {
|
|
751514
|
-
writeToStdout(`
|
|
751514
|
+
writeToStdout(`langcli is up to date!
|
|
751515
751515
|
`);
|
|
751516
751516
|
}
|
|
751517
751517
|
} else {
|
|
751518
|
-
writeToStdout(`
|
|
751518
|
+
writeToStdout(`langcli is managed by a package manager.
|
|
751519
751519
|
`);
|
|
751520
751520
|
writeToStdout(`Please use your package manager to update.
|
|
751521
751521
|
`);
|
|
@@ -751558,7 +751558,7 @@ async function update() {
|
|
|
751558
751558
|
const result = await installLatest(channel3, true);
|
|
751559
751559
|
if (result.lockFailed) {
|
|
751560
751560
|
const pidInfo = result.lockHolderPid ? ` (PID ${result.lockHolderPid})` : "";
|
|
751561
|
-
writeToStdout(source_default.yellow(`Another
|
|
751561
|
+
writeToStdout(source_default.yellow(`Another langcli process${pidInfo} is currently running. Please try again in a moment.`) + `
|
|
751562
751562
|
`);
|
|
751563
751563
|
await gracefulShutdown(0);
|
|
751564
751564
|
}
|
|
@@ -751567,11 +751567,11 @@ async function update() {
|
|
|
751567
751567
|
`);
|
|
751568
751568
|
await gracefulShutdown(1);
|
|
751569
751569
|
}
|
|
751570
|
-
if (result.latestVersion === "0.1.
|
|
751571
|
-
writeToStdout(source_default.green(`
|
|
751570
|
+
if (result.latestVersion === "0.1.4") {
|
|
751571
|
+
writeToStdout(source_default.green(`langcli is up to date (${"0.1.4"})`) + `
|
|
751572
751572
|
`);
|
|
751573
751573
|
} else {
|
|
751574
|
-
writeToStdout(source_default.green(`Successfully updated from ${"0.1.
|
|
751574
|
+
writeToStdout(source_default.green(`Successfully updated from ${"0.1.4"} to version ${result.latestVersion}`) + `
|
|
751575
751575
|
`);
|
|
751576
751576
|
await regenerateCompletionCache();
|
|
751577
751577
|
}
|
|
@@ -751581,7 +751581,7 @@ async function update() {
|
|
|
751581
751581
|
`);
|
|
751582
751582
|
process.stderr.write(String(error54) + `
|
|
751583
751583
|
`);
|
|
751584
|
-
process.stderr.write(`Try running "
|
|
751584
|
+
process.stderr.write(`Try running "langcli doctor" for diagnostics
|
|
751585
751585
|
`);
|
|
751586
751586
|
await gracefulShutdown(1);
|
|
751587
751587
|
}
|
|
@@ -751590,9 +751590,9 @@ async function update() {
|
|
|
751590
751590
|
await removeInstalledSymlink();
|
|
751591
751591
|
}
|
|
751592
751592
|
logForDebugging("update: Checking npm registry for latest version");
|
|
751593
|
-
logForDebugging(`update: Package URL: ${""}`);
|
|
751593
|
+
logForDebugging(`update: Package URL: ${"langcli-com"}`);
|
|
751594
751594
|
const npmTag = channel3 === "stable" ? "stable" : "latest";
|
|
751595
|
-
const npmCommand = `npm view ${""}@${npmTag} version`;
|
|
751595
|
+
const npmCommand = `npm view ${"langcli-com"}@${npmTag} version`;
|
|
751596
751596
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
751597
751597
|
const latestVersion = await getLatestVersion(channel3);
|
|
751598
751598
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -751612,7 +751612,10 @@ async function update() {
|
|
|
751612
751612
|
`);
|
|
751613
751613
|
process.stderr.write(` • Corporate proxy/firewall blocking npm
|
|
751614
751614
|
`);
|
|
751615
|
-
if ("") {
|
|
751615
|
+
if (!"langcli-com".startsWith("@anthropic")) {
|
|
751616
|
+
process.stderr.write(` • Internal/development build not published to npm
|
|
751617
|
+
`);
|
|
751618
|
+
}
|
|
751616
751619
|
process.stderr.write(`
|
|
751617
751620
|
`);
|
|
751618
751621
|
process.stderr.write(`Try:
|
|
@@ -751621,19 +751624,19 @@ async function update() {
|
|
|
751621
751624
|
`);
|
|
751622
751625
|
process.stderr.write(` • Run with --debug flag for more details
|
|
751623
751626
|
`);
|
|
751624
|
-
const packageName =
|
|
751627
|
+
const packageName = "langcli-com";
|
|
751625
751628
|
process.stderr.write(` • Manually check: npm view ${packageName} version
|
|
751626
751629
|
`);
|
|
751627
751630
|
process.stderr.write(` • Check if you need to login: npm whoami
|
|
751628
751631
|
`);
|
|
751629
751632
|
await gracefulShutdown(1);
|
|
751630
751633
|
}
|
|
751631
|
-
if (latestVersion === "0.1.
|
|
751632
|
-
writeToStdout(source_default.green(`
|
|
751634
|
+
if (latestVersion === "0.1.4") {
|
|
751635
|
+
writeToStdout(source_default.green(`langcli is up to date (${"0.1.4"})`) + `
|
|
751633
751636
|
`);
|
|
751634
751637
|
await gracefulShutdown(0);
|
|
751635
751638
|
}
|
|
751636
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"0.1.
|
|
751639
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"0.1.4"})
|
|
751637
751640
|
`);
|
|
751638
751641
|
writeToStdout(`Installing update...
|
|
751639
751642
|
`);
|
|
@@ -751678,7 +751681,7 @@ async function update() {
|
|
|
751678
751681
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
751679
751682
|
switch (status2) {
|
|
751680
751683
|
case "success":
|
|
751681
|
-
writeToStdout(source_default.green(`Successfully updated from ${"0.1.
|
|
751684
|
+
writeToStdout(source_default.green(`Successfully updated from ${"0.1.4"} to version ${latestVersion}`) + `
|
|
751682
751685
|
`);
|
|
751683
751686
|
await regenerateCompletionCache();
|
|
751684
751687
|
break;
|
|
@@ -751688,12 +751691,10 @@ async function update() {
|
|
|
751688
751691
|
if (useLocalUpdate) {
|
|
751689
751692
|
process.stderr.write(`Try manually updating with:
|
|
751690
751693
|
`);
|
|
751691
|
-
process.stderr.write(` cd ~/.claude/local && npm update ${""}
|
|
751694
|
+
process.stderr.write(` cd ~/.claude/local && npm update ${"langcli-com"}
|
|
751692
751695
|
`);
|
|
751693
751696
|
} else {
|
|
751694
751697
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
751695
|
-
`);
|
|
751696
|
-
process.stderr.write(`Or consider using native installation with: claude install
|
|
751697
751698
|
`);
|
|
751698
751699
|
}
|
|
751699
751700
|
await gracefulShutdown(1);
|
|
@@ -751704,10 +751705,7 @@ async function update() {
|
|
|
751704
751705
|
if (useLocalUpdate) {
|
|
751705
751706
|
process.stderr.write(`Try manually updating with:
|
|
751706
751707
|
`);
|
|
751707
|
-
process.stderr.write(` cd ~/.claude/local && npm update ${""}
|
|
751708
|
-
`);
|
|
751709
|
-
} else {
|
|
751710
|
-
process.stderr.write(`Or consider using native installation with: claude install
|
|
751708
|
+
process.stderr.write(` cd ~/.claude/local && npm update ${"langcli-com"}
|
|
751711
751709
|
`);
|
|
751712
751710
|
}
|
|
751713
751711
|
await gracefulShutdown(1);
|
|
@@ -752903,7 +752901,7 @@ ${customInstructions}` : customInstructions;
|
|
|
752903
752901
|
}
|
|
752904
752902
|
}
|
|
752905
752903
|
logForDiagnosticsNoPII("info", "started", {
|
|
752906
|
-
version: "0.1.
|
|
752904
|
+
version: "0.1.4",
|
|
752907
752905
|
is_native_binary: isInBundledMode()
|
|
752908
752906
|
});
|
|
752909
752907
|
registerCleanup(async () => {
|
|
@@ -753705,7 +753703,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
753705
753703
|
pendingHookMessages
|
|
753706
753704
|
}, renderAndRun);
|
|
753707
753705
|
}
|
|
753708
|
-
}).version("0.1.
|
|
753706
|
+
}).version("0.1.4 (Claude Code)", "-v, --version", "Output the version number");
|
|
753709
753707
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
753710
753708
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
753711
753709
|
if (canUserConfigureAdvisor()) {
|
|
@@ -754234,7 +754232,7 @@ if (false) {}
|
|
|
754234
754232
|
async function main2() {
|
|
754235
754233
|
const args = process.argv.slice(2);
|
|
754236
754234
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
754237
|
-
console.log(`${"0.1.
|
|
754235
|
+
console.log(`${"0.1.4"} (langcli)`);
|
|
754238
754236
|
return;
|
|
754239
754237
|
}
|
|
754240
754238
|
const { profileCheckpoint: profileCheckpoint2 } = await Promise.resolve().then(() => (init_startupProfiler(), exports_startupProfiler));
|