@margay/ccl-core 1.4.5-rc.8 → 1.4.5-rc.9
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 +366 -256
- package/docs/error-recovery-usage.md +29 -0
- package/docs/releases/1.4.5-rc.9.md +22 -0
- package/package.json +3 -2
package/dist/cli.js
CHANGED
|
@@ -116,7 +116,7 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
116
116
|
var require_package = __commonJS((exports, module) => {
|
|
117
117
|
module.exports = {
|
|
118
118
|
name: "@margay/ccl-core",
|
|
119
|
-
version: "1.4.5-rc.
|
|
119
|
+
version: "1.4.5-rc.9",
|
|
120
120
|
description: "Core runtime extracted from Claude Code (ccl) for Margay integration",
|
|
121
121
|
license: "SEE LICENSE IN README.md",
|
|
122
122
|
type: "module",
|
|
@@ -152,7 +152,8 @@ var require_package = __commonJS((exports, module) => {
|
|
|
152
152
|
"docs/releases/1.4.5-rc.7.md",
|
|
153
153
|
"docs/features/business-facts.md",
|
|
154
154
|
"docs/releases/1.4.5-rc.8.md",
|
|
155
|
-
"docs/features/copy-on-select.md"
|
|
155
|
+
"docs/features/copy-on-select.md",
|
|
156
|
+
"docs/releases/1.4.5-rc.9.md"
|
|
156
157
|
],
|
|
157
158
|
engines: {
|
|
158
159
|
node: ">=20.0.0"
|
|
@@ -161491,7 +161492,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
161491
161492
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
161492
161493
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
161493
161494
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
161494
|
-
const error5 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
161495
|
+
const error5 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.FEEDBACK_CHANNEL}.`);
|
|
161495
161496
|
logAntError("apiKeyHelper invoked before trust check", error5);
|
|
161496
161497
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
161497
161498
|
return null;
|
|
@@ -161535,7 +161536,7 @@ async function runAwsAuthRefresh() {
|
|
|
161535
161536
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
161536
161537
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
161537
161538
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
161538
|
-
const error5 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
161539
|
+
const error5 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.FEEDBACK_CHANNEL}.`);
|
|
161539
161540
|
logAntError("awsAuthRefresh invoked before trust check", error5);
|
|
161540
161541
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
161541
161542
|
return false;
|
|
@@ -161595,7 +161596,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
161595
161596
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
161596
161597
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
161597
161598
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
161598
|
-
const error5 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
161599
|
+
const error5 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.FEEDBACK_CHANNEL}.`);
|
|
161599
161600
|
logAntError("awsCredentialExport invoked before trust check", error5);
|
|
161600
161601
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
161601
161602
|
return null;
|
|
@@ -161680,7 +161681,7 @@ async function runGcpAuthRefresh() {
|
|
|
161680
161681
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
161681
161682
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
161682
161683
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
161683
|
-
const error5 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
161684
|
+
const error5 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.FEEDBACK_CHANNEL}.`);
|
|
161684
161685
|
logAntError("gcpAuthRefresh invoked before trust check", error5);
|
|
161685
161686
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
161686
161687
|
return false;
|
|
@@ -162390,7 +162391,7 @@ var init_auth2 = __esm(() => {
|
|
|
162390
162391
|
|
|
162391
162392
|
// utils/userAgent.ts
|
|
162392
162393
|
function getClaudeCodeUserAgent() {
|
|
162393
|
-
return `claude-code/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
162394
|
+
return `claude-code/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}`;
|
|
162394
162395
|
}
|
|
162395
162396
|
|
|
162396
162397
|
// utils/workloadContext.ts
|
|
@@ -162412,7 +162413,7 @@ function getUserAgent() {
|
|
|
162412
162413
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
162413
162414
|
const workload = getWorkload();
|
|
162414
162415
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
162415
|
-
return `claude-cli/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
162416
|
+
return `claude-cli/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
162416
162417
|
}
|
|
162417
162418
|
function getMCPUserAgent() {
|
|
162418
162419
|
const parts = [];
|
|
@@ -162426,7 +162427,7 @@ function getMCPUserAgent() {
|
|
|
162426
162427
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
162427
162428
|
}
|
|
162428
162429
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
162429
|
-
return `claude-code/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
162430
|
+
return `claude-code/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}${suffix}`;
|
|
162430
162431
|
}
|
|
162431
162432
|
function getWebFetchUserAgent() {
|
|
162432
162433
|
return `Claude-User (${getClaudeCodeUserAgent()}; +https://support.anthropic.com/)`;
|
|
@@ -162564,7 +162565,7 @@ var init_user = __esm(() => {
|
|
|
162564
162565
|
deviceId,
|
|
162565
162566
|
sessionId: getSessionId(),
|
|
162566
162567
|
email: getEmail(),
|
|
162567
|
-
appVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
162568
|
+
appVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
162568
162569
|
platform: getHostPlatformForAnalytics(),
|
|
162569
162570
|
organizationUuid,
|
|
162570
162571
|
accountUuid,
|
|
@@ -171016,7 +171017,7 @@ var init_metadata = __esm(() => {
|
|
|
171016
171017
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
171017
171018
|
WHITESPACE_REGEX = /\s+/;
|
|
171018
171019
|
getVersionBase = memoize22(() => {
|
|
171019
|
-
const match = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
171020
|
+
const match = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
171020
171021
|
return match ? match[0] : undefined;
|
|
171021
171022
|
});
|
|
171022
171023
|
buildEnvContext = memoize22(async () => {
|
|
@@ -171056,9 +171057,9 @@ var init_metadata = __esm(() => {
|
|
|
171056
171057
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
171057
171058
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
171058
171059
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
171059
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
171060
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
171060
171061
|
versionBase: getVersionBase(),
|
|
171061
|
-
buildTime: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
171062
|
+
buildTime: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.BUILD_TIME,
|
|
171062
171063
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
171063
171064
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
171064
171065
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -171725,7 +171726,7 @@ function initialize1PEventLogging() {
|
|
|
171725
171726
|
const platform2 = getPlatform();
|
|
171726
171727
|
const attributes = {
|
|
171727
171728
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "claude-code",
|
|
171728
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
171729
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
171729
171730
|
};
|
|
171730
171731
|
if (platform2 === "wsl") {
|
|
171731
171732
|
const wslVersion = getWslVersion();
|
|
@@ -171752,7 +171753,7 @@ function initialize1PEventLogging() {
|
|
|
171752
171753
|
})
|
|
171753
171754
|
]
|
|
171754
171755
|
});
|
|
171755
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
171756
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
171756
171757
|
}
|
|
171757
171758
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
171758
171759
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -172353,6 +172354,7 @@ var init_growthbook = __esm(() => {
|
|
|
172353
172354
|
return clientWrapper.client;
|
|
172354
172355
|
});
|
|
172355
172356
|
BOOLEAN_GROWTHBOOK_GATES_KEPT_OFF = new Set([
|
|
172357
|
+
"tengu_otk_slot_v1",
|
|
172356
172358
|
"tengu_cobalt_raccoon",
|
|
172357
172359
|
"tengu_paper_halyard",
|
|
172358
172360
|
"tengu_amber_quartz_disabled",
|
|
@@ -204517,6 +204519,46 @@ var init_PermissionUpdate = __esm(() => {
|
|
|
204517
204519
|
init_permissionsLoader();
|
|
204518
204520
|
});
|
|
204519
204521
|
|
|
204522
|
+
// services/api/gatewayDeadline.ts
|
|
204523
|
+
function resolveGatewayRequestTimeoutMs(env5 = process.env) {
|
|
204524
|
+
const value = env5.CCL_GATEWAY_REQUEST_TIMEOUT_MS;
|
|
204525
|
+
if (value === undefined)
|
|
204526
|
+
return GATEWAY_REQUEST_TIMEOUT_DEFAULT_MS;
|
|
204527
|
+
const parsed = Number(value);
|
|
204528
|
+
if (/^[0-9]+$/.test(value) && Number.isSafeInteger(parsed) && parsed >= 1 && parsed <= 3600000)
|
|
204529
|
+
return parsed;
|
|
204530
|
+
const warning = "CCL_GATEWAY_REQUEST_TIMEOUT_MS must be an integer from 1 to 3600000 milliseconds; using 300000.";
|
|
204531
|
+
logOnceForDebugging("invalid-gateway-request-timeout", warning, { level: "warn" });
|
|
204532
|
+
if (!warnedInvalidTimeout) {
|
|
204533
|
+
warnedInvalidTimeout = true;
|
|
204534
|
+
try {
|
|
204535
|
+
process.stderr.write(`[CCL] ${warning}
|
|
204536
|
+
`);
|
|
204537
|
+
} catch {}
|
|
204538
|
+
}
|
|
204539
|
+
return GATEWAY_REQUEST_TIMEOUT_DEFAULT_MS;
|
|
204540
|
+
}
|
|
204541
|
+
var GATEWAY_REQUEST_TIMEOUT_DEFAULT_MS = 300000, warnedInvalidTimeout = false, GatewayRequestTimeoutError;
|
|
204542
|
+
var init_gatewayDeadline = __esm(() => {
|
|
204543
|
+
init_sdk();
|
|
204544
|
+
init_debug();
|
|
204545
|
+
GatewayRequestTimeoutError = class GatewayRequestTimeoutError extends APIConnectionTimeoutError {
|
|
204546
|
+
timeoutMs;
|
|
204547
|
+
elapsedMs;
|
|
204548
|
+
traceId;
|
|
204549
|
+
spanId;
|
|
204550
|
+
code = "gateway_request_timeout";
|
|
204551
|
+
phase = "gateway_setup";
|
|
204552
|
+
constructor(timeoutMs, elapsedMs, traceId, spanId) {
|
|
204553
|
+
super({ message: `Gateway request setup timed out after ${timeoutMs / 1000}s; the client stopped waiting. ` + "Check service availability or adjust CCL_GATEWAY_REQUEST_TIMEOUT_MS before resuming. " + `Remote completion is unknown. Trace: ${traceId}/${spanId}.` });
|
|
204554
|
+
this.timeoutMs = timeoutMs;
|
|
204555
|
+
this.elapsedMs = elapsedMs;
|
|
204556
|
+
this.traceId = traceId;
|
|
204557
|
+
this.spanId = spanId;
|
|
204558
|
+
}
|
|
204559
|
+
};
|
|
204560
|
+
});
|
|
204561
|
+
|
|
204520
204562
|
// services/gateway/requestObservation.ts
|
|
204521
204563
|
function safeIdentifier(value) {
|
|
204522
204564
|
return typeof value === "string" && /^[a-zA-Z0-9][a-zA-Z0-9._:/+-]{0,159}$/.test(value) && !value.includes("://") ? value : undefined;
|
|
@@ -205274,7 +205316,7 @@ var init_errorRecoveryState = __esm(() => {
|
|
|
205274
205316
|
|
|
205275
205317
|
// services/api/gatewayTransport.ts
|
|
205276
205318
|
function getCclGatewayUA(model) {
|
|
205277
|
-
return model ? `ccl/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
205319
|
+
return model ? `ccl/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} (${model})` : `ccl/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}`;
|
|
205278
205320
|
}
|
|
205279
205321
|
function confirmedGatewayConnectionFailure(error5) {
|
|
205280
205322
|
if (!(error5 instanceof GatewayConnectionError))
|
|
@@ -205737,12 +205779,16 @@ var init_gatewayTransport = __esm(() => {
|
|
|
205737
205779
|
code;
|
|
205738
205780
|
lastEventType;
|
|
205739
205781
|
partialUsage;
|
|
205782
|
+
cause;
|
|
205783
|
+
requestId;
|
|
205740
205784
|
constructor(code, message, details = {}) {
|
|
205741
205785
|
super(message);
|
|
205742
205786
|
this.name = "GatewayStreamProtocolError";
|
|
205743
205787
|
this.code = code;
|
|
205744
205788
|
this.lastEventType = details.lastEventType;
|
|
205745
205789
|
this.partialUsage = details.partialUsage ?? {};
|
|
205790
|
+
this.cause = details.cause;
|
|
205791
|
+
this.requestId = details.requestId;
|
|
205746
205792
|
}
|
|
205747
205793
|
};
|
|
205748
205794
|
GatewayStream = class GatewayStream {
|
|
@@ -205770,9 +205816,11 @@ var init_gatewayTransport = __esm(() => {
|
|
|
205770
205816
|
let terminalComplete = false;
|
|
205771
205817
|
let lastEventType;
|
|
205772
205818
|
const partialUsage = {};
|
|
205773
|
-
const protocolError = (code, message) => new GatewayStreamProtocolError(code, message, {
|
|
205819
|
+
const protocolError = (code, message, cause) => new GatewayStreamProtocolError(code, message, {
|
|
205774
205820
|
lastEventType,
|
|
205775
|
-
partialUsage: { ...partialUsage }
|
|
205821
|
+
partialUsage: { ...partialUsage },
|
|
205822
|
+
cause,
|
|
205823
|
+
requestId: normalizeGatewayRequestId(this.response.headers.get("x-margay-request-id"))
|
|
205776
205824
|
});
|
|
205777
205825
|
const parseLine = (line) => {
|
|
205778
205826
|
const trimmed = line.replace(/\r$/, "");
|
|
@@ -205829,7 +205877,17 @@ var init_gatewayTransport = __esm(() => {
|
|
|
205829
205877
|
if (this.controller.signal.aborted) {
|
|
205830
205878
|
return;
|
|
205831
205879
|
}
|
|
205832
|
-
|
|
205880
|
+
let read;
|
|
205881
|
+
try {
|
|
205882
|
+
read = await reader.read();
|
|
205883
|
+
} catch (cause) {
|
|
205884
|
+
if (this.abortSignal?.aborted)
|
|
205885
|
+
throw new APIUserAbortError;
|
|
205886
|
+
if (this.controller.signal.aborted)
|
|
205887
|
+
return;
|
|
205888
|
+
throw protocolError("incomplete_stream", "Gateway response connection interrupted before message_stop", cause);
|
|
205889
|
+
}
|
|
205890
|
+
const { done, value } = read;
|
|
205833
205891
|
if (this.abortSignal?.aborted)
|
|
205834
205892
|
throw new APIUserAbortError;
|
|
205835
205893
|
if (done) {
|
|
@@ -205853,6 +205911,8 @@ var init_gatewayTransport = __esm(() => {
|
|
|
205853
205911
|
}
|
|
205854
205912
|
if (parsed)
|
|
205855
205913
|
yield parsed;
|
|
205914
|
+
if (terminalComplete)
|
|
205915
|
+
return;
|
|
205856
205916
|
}
|
|
205857
205917
|
}
|
|
205858
205918
|
buffer += decoder.decode();
|
|
@@ -230770,7 +230830,7 @@ function getTelemetryAttributes() {
|
|
|
230770
230830
|
attributes["session.id"] = sessionId;
|
|
230771
230831
|
}
|
|
230772
230832
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
230773
|
-
attributes["app.version"] = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
230833
|
+
attributes["app.version"] = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION;
|
|
230774
230834
|
}
|
|
230775
230835
|
const oauthAccount = getOauthAccountInfo();
|
|
230776
230836
|
if (oauthAccount) {
|
|
@@ -240952,7 +241012,7 @@ function getIncompleteStreamUserMessage(decision, facts) {
|
|
|
240952
241012
|
if (decision.action === "advisor_required") {
|
|
240953
241013
|
return "The response ended before CCL could confirm the result, and no usable Decision Advisor result was available. The response was not accepted automatically.";
|
|
240954
241014
|
}
|
|
240955
|
-
return "The response ended before CCL could confirm a complete result. One safe retry was attempted, but the response was still incomplete.";
|
|
241015
|
+
return "The response ended before CCL could confirm a complete result. " + (facts?.retryCount === 0 ? "The automatic recovery allowance was already exhausted; this response was not retried. " : "One safe retry was attempted, but the response was still incomplete. ") + "Previously completed work is preserved. Resume the task when the connection is available.";
|
|
240956
241016
|
}
|
|
240957
241017
|
|
|
240958
241018
|
// services/api/errors.ts
|
|
@@ -241158,7 +241218,7 @@ function getAssistantMessageFromError(error5, model, options) {
|
|
|
241158
241218
|
typed = typed instanceof Error ? typed.cause : undefined;
|
|
241159
241219
|
}
|
|
241160
241220
|
const status = typed instanceof CapabilityResolutionUnavailableError || typed instanceof APIError || typed instanceof GatewayNonRetryableError || typed instanceof GatewayRetryableError ? typed.status : undefined;
|
|
241161
|
-
const reason = message.error === "billing_error" || status === 402 ? "The provider reports an account billing or credit limit. Check the account balance and billing settings, then resume this task. Reducing output tokens does not replenish account credit." : message.error === "authentication_failed" || status === 401 || status === 403 ? "The provider rejected authentication or access. Check the selected account, credentials and model access, then resume this task. Credentials and permissions were not changed." : typed instanceof APIConnectionError || typed instanceof GatewayConnectionError || typed instanceof CapabilityResolutionUnavailableError && typed.reason === "network" ? "The model service could not be reached or timed out. Check the network, proxy and service availability, then resume this task. No further automatic request will be made for this failure." : undefined;
|
|
241221
|
+
const reason = typed instanceof GatewayRequestTimeoutError ? "The client gateway request deadline was reached. No further automatic request will be made for this failure." : message.error === "billing_error" || status === 402 ? "The provider reports an account billing or credit limit. Check the account balance and billing settings, then resume this task. Reducing output tokens does not replenish account credit." : message.error === "authentication_failed" || status === 401 || status === 403 ? "The provider rejected authentication or access. Check the selected account, credentials and model access, then resume this task. Credentials and permissions were not changed." : typed instanceof APIConnectionError || typed instanceof GatewayConnectionError || typed instanceof CapabilityResolutionUnavailableError && typed.reason === "network" ? "The model service could not be reached or timed out. Check the network, proxy and service availability, then resume this task. No further automatic request will be made for this failure." : undefined;
|
|
241162
241222
|
if (!reason)
|
|
241163
241223
|
return message;
|
|
241164
241224
|
const guidance = `Task blocked: ${reason} Completed work is preserved; check recorded tool outcomes before retrying operations.`;
|
|
@@ -241174,7 +241234,7 @@ function getAssistantMessageFromError(error5, model, options) {
|
|
|
241174
241234
|
function buildAssistantMessageFromError(error5, model, options) {
|
|
241175
241235
|
if (error5 instanceof APIConnectionTimeoutError || error5 instanceof APIConnectionError && error5.message.toLowerCase().includes("timeout")) {
|
|
241176
241236
|
return createAssistantAPIErrorMessage({
|
|
241177
|
-
content: API_TIMEOUT_ERROR_MESSAGE,
|
|
241237
|
+
content: error5 instanceof GatewayRequestTimeoutError ? error5.message : API_TIMEOUT_ERROR_MESSAGE,
|
|
241178
241238
|
error: "unknown"
|
|
241179
241239
|
});
|
|
241180
241240
|
}
|
|
@@ -241314,7 +241374,7 @@ function buildAssistantMessageFromError(error5, model, options) {
|
|
|
241314
241374
|
if (process.env.USER_TYPE === "ant") {
|
|
241315
241375
|
const baseMessage = `API Error: 400 ${error5.message}
|
|
241316
241376
|
|
|
241317
|
-
Run /share and post the JSON file to ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
241377
|
+
Run /share and post the JSON file to ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.FEEDBACK_CHANNEL}.`;
|
|
241318
241378
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
241319
241379
|
return createAssistantAPIErrorMessage({
|
|
241320
241380
|
content: baseMessage + rewindInstruction,
|
|
@@ -241350,7 +241410,7 @@ Run /share and post the JSON file to ${{ USER_TYPE: "external", VERSION: "1.4.5-
|
|
|
241350
241410
|
if (process.env.USER_TYPE === "ant" && !process.env.ANTHROPIC_MODEL && error5 instanceof Error && error5.message.toLowerCase().includes("invalid model name")) {
|
|
241351
241411
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
241352
241412
|
const baseMsg = `[ANT-ONLY] Your org isn't gated into the \`${model}\` model. Either run \`ccl\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
241353
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
241413
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.FEEDBACK_CHANNEL} for help getting access.`;
|
|
241354
241414
|
return createAssistantAPIErrorMessage({
|
|
241355
241415
|
content: msg,
|
|
241356
241416
|
error: "invalid_request"
|
|
@@ -241585,6 +241645,7 @@ var init_errors3 = __esm(() => {
|
|
|
241585
241645
|
init_claudeAiLimits();
|
|
241586
241646
|
init_rateLimitMocking();
|
|
241587
241647
|
init_capabilityResolver();
|
|
241648
|
+
init_gatewayDeadline();
|
|
241588
241649
|
init_gatewayTransport();
|
|
241589
241650
|
init_errorUtils();
|
|
241590
241651
|
});
|
|
@@ -242285,6 +242346,8 @@ var init_errorRecovery = __esm(() => {
|
|
|
242285
242346
|
};
|
|
242286
242347
|
chatStops = { length: "output_truncated", content_filter: "refusal" };
|
|
242287
242348
|
localCodes = {
|
|
242349
|
+
incomplete_stream: "incomplete_response",
|
|
242350
|
+
gateway_request_timeout: "request_timeout",
|
|
242288
242351
|
thinking_history_missing: "thinking_history_missing",
|
|
242289
242352
|
invalid_budget: "invalid_budget",
|
|
242290
242353
|
insufficient_context: "context_exhausted",
|
|
@@ -255063,7 +255126,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
255063
255126
|
}
|
|
255064
255127
|
function getFeedbackGuideline() {
|
|
255065
255128
|
if (isUsing3PServices()) {
|
|
255066
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
255129
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.ISSUES_EXPLAINER}`;
|
|
255067
255130
|
}
|
|
255068
255131
|
return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
|
|
255069
255132
|
}
|
|
@@ -364325,7 +364388,7 @@ function getInstallationEnv() {
|
|
|
364325
364388
|
return;
|
|
364326
364389
|
}
|
|
364327
364390
|
function getClaudeCodeVersion() {
|
|
364328
|
-
return { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
364391
|
+
return { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION;
|
|
364329
364392
|
}
|
|
364330
364393
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
364331
364394
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -399893,7 +399956,7 @@ async function getMcpHeadersFromHelper(serverName, config) {
|
|
|
399893
399956
|
if ("scope" in config && isMcpServerFromProjectOrLocalSettings(config) && !getIsNonInteractiveSession()) {
|
|
399894
399957
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
399895
399958
|
if (!hasTrust) {
|
|
399896
|
-
const error5 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
399959
|
+
const error5 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.FEEDBACK_CHANNEL}.`);
|
|
399897
399960
|
logAntError("MCP headersHelper invoked before trust check", error5);
|
|
399898
399961
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
399899
399962
|
return null;
|
|
@@ -403455,7 +403518,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
403455
403518
|
if (!isAttributionHeaderEnabled()) {
|
|
403456
403519
|
return "";
|
|
403457
403520
|
}
|
|
403458
|
-
const version4 = `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
403521
|
+
const version4 = `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}.${fingerprint}`;
|
|
403459
403522
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
403460
403523
|
const cch = "";
|
|
403461
403524
|
const workload = getWorkload();
|
|
@@ -403507,7 +403570,7 @@ function computeFingerprint(messageText, version4) {
|
|
|
403507
403570
|
}
|
|
403508
403571
|
function computeFingerprintFromMessages(messages) {
|
|
403509
403572
|
const firstMessageText = extractFirstMessageText(messages);
|
|
403510
|
-
return computeFingerprint(firstMessageText, { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
403573
|
+
return computeFingerprint(firstMessageText, { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
403511
403574
|
}
|
|
403512
403575
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
403513
403576
|
var init_fingerprint = () => {};
|
|
@@ -403556,7 +403619,7 @@ async function sideQuery(opts) {
|
|
|
403556
403619
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
403557
403620
|
}
|
|
403558
403621
|
const messageText = extractFirstUserMessageText(messages);
|
|
403559
|
-
const fingerprint = computeFingerprint(messageText, { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
403622
|
+
const fingerprint = computeFingerprint(messageText, { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
403560
403623
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
403561
403624
|
const systemBlocks = [
|
|
403562
403625
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -404707,7 +404770,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
404707
404770
|
const client4 = new Client({
|
|
404708
404771
|
name: "claude-code",
|
|
404709
404772
|
title: "CCL",
|
|
404710
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
404773
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION ?? "unknown",
|
|
404711
404774
|
description: "Anthropic's agentic coding tool",
|
|
404712
404775
|
websiteUrl: PRODUCT_URL
|
|
404713
404776
|
}, {
|
|
@@ -405058,7 +405121,7 @@ var init_client9 = __esm(() => {
|
|
|
405058
405121
|
const client4 = new Client({
|
|
405059
405122
|
name: "claude-code",
|
|
405060
405123
|
title: "CCL",
|
|
405061
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
405124
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION ?? "unknown",
|
|
405062
405125
|
description: "Anthropic's agentic coding tool",
|
|
405063
405126
|
websiteUrl: PRODUCT_URL
|
|
405064
405127
|
}, {
|
|
@@ -409446,16 +409509,22 @@ var init_incompleteStreamRecovery = __esm(() => {
|
|
|
409446
409509
|
facts;
|
|
409447
409510
|
partialUsage;
|
|
409448
409511
|
lastEventType;
|
|
409512
|
+
cause;
|
|
409513
|
+
requestId;
|
|
409449
409514
|
constructor({
|
|
409450
409515
|
facts,
|
|
409451
409516
|
partialUsage = {},
|
|
409452
|
-
lastEventType
|
|
409517
|
+
lastEventType,
|
|
409518
|
+
cause,
|
|
409519
|
+
requestId
|
|
409453
409520
|
}) {
|
|
409454
409521
|
super("Model response ended before transport completion");
|
|
409455
409522
|
this.name = "IncompleteModelTurnError";
|
|
409456
409523
|
this.facts = facts;
|
|
409457
409524
|
this.partialUsage = partialUsage;
|
|
409458
409525
|
this.lastEventType = lastEventType;
|
|
409526
|
+
this.cause = cause;
|
|
409527
|
+
this.requestId = requestId;
|
|
409459
409528
|
}
|
|
409460
409529
|
};
|
|
409461
409530
|
});
|
|
@@ -410679,7 +410748,7 @@ async function* queryLoop(params, consumedCommandUuids) {
|
|
|
410679
410748
|
const budgetNotices = [];
|
|
410680
410749
|
let lastRecoveryDiagnostic;
|
|
410681
410750
|
const emitDiagnostic = async (input, recovery) => {
|
|
410682
|
-
const diagnostic = { ...createRecoveryDiagnostic({ ...input, cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
410751
|
+
const diagnostic = { ...createRecoveryDiagnostic({ ...input, cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION }), recovery };
|
|
410683
410752
|
lastRecoveryDiagnostic = diagnostic;
|
|
410684
410753
|
try {
|
|
410685
410754
|
const result = await appendRecoveryDiagnostic(getClaudeConfigHomeDir(), config.sessionId, diagnostic);
|
|
@@ -411615,7 +411684,7 @@ The response was rejected before any tool ran because the model exceeded its out
|
|
|
411615
411684
|
retryCount: incompleteStreamRetryCount,
|
|
411616
411685
|
toolStates: streamingToolExecutor?.getSafeStateSnapshot() ?? innerError.facts.toolStates
|
|
411617
411686
|
};
|
|
411618
|
-
|
|
411687
|
+
let decision = await resolveIncompleteStreamRecovery({
|
|
411619
411688
|
facts,
|
|
411620
411689
|
evidence: {
|
|
411621
411690
|
facts,
|
|
@@ -411637,6 +411706,25 @@ The response was rejected before any tool ran because the model exceeded its out
|
|
|
411637
411706
|
}
|
|
411638
411707
|
})
|
|
411639
411708
|
});
|
|
411709
|
+
if ((decision.action === "retry_safe" || decision.action === "split_regeneration") && recoveryLedger.active && !claimErrorRecovery(recoveryLedger, "incomplete_stream")) {
|
|
411710
|
+
decision = { action: "fail", reason: "retry_exhausted" };
|
|
411711
|
+
}
|
|
411712
|
+
const retrying = decision.action === "retry_safe" || decision.action === "split_regeneration";
|
|
411713
|
+
const preserving = decision.action === "reconcile" || decision.action === "degraded_complete" || decision.action === "complete";
|
|
411714
|
+
const diagnostic = await emitDiagnostic({
|
|
411715
|
+
origin: "ccl_validation",
|
|
411716
|
+
protocol: "anthropic_messages",
|
|
411717
|
+
model: currentModel,
|
|
411718
|
+
sessionId: config.sessionId,
|
|
411719
|
+
requestId: innerError.requestId,
|
|
411720
|
+
observations: { code: "incomplete_stream", message: (retrying ? "Response interrupted; automatically retrying without replaying tools. " : preserving ? "Response interrupted; preserving recorded results and continuing. " : "Response interrupted; automatic recovery stopped. ") + describeError(innerError.cause ?? innerError) },
|
|
411721
|
+
execution: { toolState: facts.toolStates.some((t3) => t3.status === "unknown") ? "unknown" : facts.toolStates.some((t3) => t3.status === "executing") ? "executing" : facts.toolStates.some((t3) => t3.status === "completed" || t3.status === "yielded") ? "completed" : "not_started" }
|
|
411722
|
+
}, {
|
|
411723
|
+
owner: "cli",
|
|
411724
|
+
phase: retrying || preserving ? "recovering" : "failed",
|
|
411725
|
+
attempts: retrying ? incompleteStreamRetryCount + 1 : incompleteStreamRetryCount
|
|
411726
|
+
});
|
|
411727
|
+
yield createErrorDiagnosticMessage(diagnostic);
|
|
411640
411728
|
logEvent("tengu_incomplete_stream_recovery", {
|
|
411641
411729
|
action: decision.action,
|
|
411642
411730
|
reason: decision.reason,
|
|
@@ -411647,8 +411735,6 @@ The response was rejected before any tool ran because the model exceeded its out
|
|
|
411647
411735
|
partial_cache_creation_input_tokens: innerError.partialUsage.cache_creation_input_tokens ?? undefined
|
|
411648
411736
|
});
|
|
411649
411737
|
if (decision.action === "retry_safe" || decision.action === "split_regeneration") {
|
|
411650
|
-
if (recoveryLedger.active && !claimErrorRecovery(recoveryLedger, "incomplete_stream"))
|
|
411651
|
-
throw innerError;
|
|
411652
411738
|
const tombstones = resetIncompleteStreamAttempt({
|
|
411653
411739
|
assistantMessages,
|
|
411654
411740
|
toolResults,
|
|
@@ -411668,7 +411754,12 @@ The response was rejected before any tool ran because the model exceeded its out
|
|
|
411668
411754
|
break;
|
|
411669
411755
|
}
|
|
411670
411756
|
yield createAssistantAPIErrorMessage({
|
|
411671
|
-
content: getIncompleteStreamUserMessage(decision, facts)
|
|
411757
|
+
content: getIncompleteStreamUserMessage(decision, facts),
|
|
411758
|
+
recovery: {
|
|
411759
|
+
status: decision.action === "ask_user" ? "needs_user" : "blocked_external",
|
|
411760
|
+
attempts: incompleteStreamRetryCount,
|
|
411761
|
+
reason: "Response delivery was incomplete. Preserve completed work and check any uncertain tool outcome before resuming."
|
|
411762
|
+
}
|
|
411672
411763
|
});
|
|
411673
411764
|
streamingToolExecutor?.dispose();
|
|
411674
411765
|
return { reason: "model_error", error: innerError };
|
|
@@ -412581,9 +412672,9 @@ function getAnthropicEnvMetadata() {
|
|
|
412581
412672
|
};
|
|
412582
412673
|
}
|
|
412583
412674
|
function getBuildAgeMinutes() {
|
|
412584
|
-
if (!{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
412675
|
+
if (!{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.BUILD_TIME)
|
|
412585
412676
|
return;
|
|
412586
|
-
const buildTime = new Date({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
412677
|
+
const buildTime = new Date({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.BUILD_TIME).getTime();
|
|
412587
412678
|
if (isNaN(buildTime))
|
|
412588
412679
|
return;
|
|
412589
412680
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -434430,7 +434521,7 @@ function getSearchOrReadInfo(progressMessage, tools, toolUseByID) {
|
|
|
434430
434521
|
return null;
|
|
434431
434522
|
}
|
|
434432
434523
|
function processProgressMessages(messages, tools, isAgentRunning) {
|
|
434433
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
434524
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE !== "ant") {
|
|
434434
434525
|
return messages.filter((m4) => hasProgressMessage(m4.data) && m4.data.message.type !== "user").map((m4) => ({
|
|
434435
434526
|
type: "original",
|
|
434436
434527
|
message: m4
|
|
@@ -434767,7 +434858,7 @@ function renderToolResultMessage12(data, progressMessagesForMessage, {
|
|
|
434767
434858
|
return /* @__PURE__ */ jsx_runtime113.jsxs(ThemedBox_default, {
|
|
434768
434859
|
flexDirection: "column",
|
|
434769
434860
|
children: [
|
|
434770
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
434861
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime113.jsx(MessageResponse, {
|
|
434771
434862
|
children: /* @__PURE__ */ jsx_runtime113.jsxs(ThemedText, {
|
|
434772
434863
|
color: "warning",
|
|
434773
434864
|
children: [
|
|
@@ -435033,7 +435124,7 @@ function renderToolUseRejectedMessage4(_input, {
|
|
|
435033
435124
|
const agentId = firstData && hasProgressMessage(firstData) ? firstData.agentId : undefined;
|
|
435034
435125
|
return /* @__PURE__ */ jsx_runtime113.jsxs(jsx_runtime113.Fragment, {
|
|
435035
435126
|
children: [
|
|
435036
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
435127
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && agentId && /* @__PURE__ */ jsx_runtime113.jsx(MessageResponse, {
|
|
435037
435128
|
children: /* @__PURE__ */ jsx_runtime113.jsxs(ThemedText, {
|
|
435038
435129
|
color: "warning",
|
|
435039
435130
|
children: [
|
|
@@ -435620,7 +435711,7 @@ async function executeForkedSlashCommand(command, args, context2, precedingInput
|
|
|
435620
435711
|
}
|
|
435621
435712
|
let resultText = extractResultText(agentMessages, "Command completed");
|
|
435622
435713
|
logForDebugging(`Forked slash command /${command.name} completed with agent ${agentId}`);
|
|
435623
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
435714
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
435624
435715
|
resultText = `[ANT-ONLY] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}
|
|
435625
435716
|
${resultText}`;
|
|
435626
435717
|
}
|
|
@@ -435763,7 +435854,7 @@ async function processSlashCommand(inputString, precedingInputBlocks, imageConte
|
|
|
435763
435854
|
logEvent("tengu_input_command", {
|
|
435764
435855
|
...eventData2,
|
|
435765
435856
|
invocation_trigger: "user-slash",
|
|
435766
|
-
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
435857
|
+
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && {
|
|
435767
435858
|
skill_name: commandName,
|
|
435768
435859
|
...returnedCommand.type === "prompt" && {
|
|
435769
435860
|
skill_source: returnedCommand.source
|
|
@@ -435824,7 +435915,7 @@ async function processSlashCommand(inputString, precedingInputBlocks, imageConte
|
|
|
435824
435915
|
logEvent("tengu_input_command", {
|
|
435825
435916
|
...eventData,
|
|
435826
435917
|
invocation_trigger: "user-slash",
|
|
435827
|
-
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
435918
|
+
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && {
|
|
435828
435919
|
skill_name: commandName,
|
|
435829
435920
|
...returnedCommand.type === "prompt" && {
|
|
435830
435921
|
skill_source: returnedCommand.source
|
|
@@ -446311,7 +446402,7 @@ function getSimpleDoingTasksSection() {
|
|
|
446311
446402
|
];
|
|
446312
446403
|
const userHelpSubitems = [
|
|
446313
446404
|
`/help: Get help with using CCL`,
|
|
446314
|
-
`To give feedback, users should ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
446405
|
+
`To give feedback, users should ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.ISSUES_EXPLAINER}`
|
|
446315
446406
|
];
|
|
446316
446407
|
const items = [
|
|
446317
446408
|
`The user will primarily request you to perform software engineering tasks. These may include solving bugs, adding new functionality, refactoring code, explaining code, and more. When given an unclear or generic instruction, consider it in the context of these software engineering tasks and the current working directory. For example, if the user asks you to change "methodName" to snake case, do not reply with just "method_name", instead find the method in the code and modify the code.`,
|
|
@@ -449098,7 +449189,7 @@ async function setupTerminal(theme) {
|
|
|
449098
449189
|
return current;
|
|
449099
449190
|
});
|
|
449100
449191
|
maybeMarkProjectOnboardingComplete();
|
|
449101
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
449192
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
449102
449193
|
result += await setupShellCompletion(theme);
|
|
449103
449194
|
}
|
|
449104
449195
|
return result;
|
|
@@ -494293,7 +494384,7 @@ async function initializeBetaTracing(resource) {
|
|
|
494293
494384
|
});
|
|
494294
494385
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
494295
494386
|
setLoggerProvider(loggerProvider);
|
|
494296
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
494387
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
494297
494388
|
setEventLogger(eventLogger);
|
|
494298
494389
|
process.on("beforeExit", async () => {
|
|
494299
494390
|
await loggerProvider?.forceFlush();
|
|
@@ -494333,7 +494424,7 @@ async function initializeTelemetry() {
|
|
|
494333
494424
|
const platform5 = getPlatform();
|
|
494334
494425
|
const baseAttributes = {
|
|
494335
494426
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
|
|
494336
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
494427
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
494337
494428
|
};
|
|
494338
494429
|
if (platform5 === "wsl") {
|
|
494339
494430
|
const wslVersion = getWslVersion();
|
|
@@ -494378,7 +494469,7 @@ async function initializeTelemetry() {
|
|
|
494378
494469
|
} catch {}
|
|
494379
494470
|
};
|
|
494380
494471
|
registerCleanup(shutdownTelemetry2);
|
|
494381
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
494472
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
494382
494473
|
}
|
|
494383
494474
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
494384
494475
|
resource,
|
|
@@ -494398,7 +494489,7 @@ async function initializeTelemetry() {
|
|
|
494398
494489
|
});
|
|
494399
494490
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
494400
494491
|
setLoggerProvider(loggerProvider);
|
|
494401
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
494492
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
494402
494493
|
setEventLogger(eventLogger);
|
|
494403
494494
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
494404
494495
|
process.on("beforeExit", async () => {
|
|
@@ -494460,7 +494551,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
494460
494551
|
}
|
|
494461
494552
|
};
|
|
494462
494553
|
registerCleanup(shutdownTelemetry);
|
|
494463
|
-
return meterProvider.getMeter("com.anthropic.claude_code", { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
494554
|
+
return meterProvider.getMeter("com.anthropic.claude_code", { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
494464
494555
|
}
|
|
494465
494556
|
async function flushTelemetry() {
|
|
494466
494557
|
const meterProvider = getMeterProvider();
|
|
@@ -495003,7 +495094,7 @@ async function installOrUpdateClaudePackage(channel2, specificVersion) {
|
|
|
495003
495094
|
return "install_failed";
|
|
495004
495095
|
}
|
|
495005
495096
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
495006
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495097
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
|
|
495007
495098
|
if (result.code !== 0) {
|
|
495008
495099
|
const error5 = new Error(`Failed to install Claude CLI package: ${result.stderr}`);
|
|
495009
495100
|
logError(error5);
|
|
@@ -495146,14 +495237,14 @@ import { access as access4, writeFile as writeFile34 } from "fs/promises";
|
|
|
495146
495237
|
import { homedir as homedir25 } from "os";
|
|
495147
495238
|
import { join as join117 } from "path";
|
|
495148
495239
|
async function assertMinVersion() {
|
|
495149
|
-
if (process.env.SKIP_VERSION_CHECK === "1" || { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495240
|
+
if (process.env.SKIP_VERSION_CHECK === "1" || { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION.startsWith("0.0.0-dev") || !process.env.ANTHROPIC_VERSION_CHECK) {
|
|
495150
495241
|
return;
|
|
495151
495242
|
}
|
|
495152
495243
|
try {
|
|
495153
495244
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
495154
|
-
if (versionConfig.minVersion && lt2({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495245
|
+
if (versionConfig.minVersion && lt2({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, versionConfig.minVersion)) {
|
|
495155
495246
|
console.error(`
|
|
495156
|
-
It looks like your version of CCL (${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495247
|
+
It looks like your version of CCL (${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}) needs an update.
|
|
495157
495248
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
495158
495249
|
|
|
495159
495250
|
To update, please run:
|
|
@@ -495313,7 +495404,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
495313
495404
|
}
|
|
495314
495405
|
async function getLatestVersion(channel2) {
|
|
495315
495406
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
495316
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495407
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir25() });
|
|
495317
495408
|
if (result.code !== 0) {
|
|
495318
495409
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
495319
495410
|
if (result.stderr) {
|
|
@@ -495329,7 +495420,7 @@ async function getLatestVersion(channel2) {
|
|
|
495329
495420
|
return result.stdout.trim();
|
|
495330
495421
|
}
|
|
495331
495422
|
async function getNpmDistTags() {
|
|
495332
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495423
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir25() });
|
|
495333
495424
|
if (result.code !== 0) {
|
|
495334
495425
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
495335
495426
|
return { latest: null, stable: null };
|
|
@@ -495369,7 +495460,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
495369
495460
|
logError(new AutoUpdaterError("Another process is currently installing an update"));
|
|
495370
495461
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
495371
495462
|
pid: process.pid,
|
|
495372
|
-
currentVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495463
|
+
currentVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
495373
495464
|
});
|
|
495374
495465
|
return "in_progress";
|
|
495375
495466
|
}
|
|
@@ -495378,7 +495469,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
495378
495469
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
495379
495470
|
logError(new Error("Windows NPM detected in WSL environment"));
|
|
495380
495471
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
495381
|
-
currentVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495472
|
+
currentVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
495382
495473
|
});
|
|
495383
495474
|
console.error(`
|
|
495384
495475
|
Error: Windows NPM detected in WSL
|
|
@@ -495397,7 +495488,7 @@ To fix this issue:
|
|
|
495397
495488
|
if (!hasPermissions) {
|
|
495398
495489
|
return "no_permissions";
|
|
495399
495490
|
}
|
|
495400
|
-
const packageSpec = specificVersion ? `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495491
|
+
const packageSpec = specificVersion ? `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}@${specificVersion}` : { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL;
|
|
495401
495492
|
const packageManager = env3.isRunningWithBun() ? "bun" : "npm";
|
|
495402
495493
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir25() });
|
|
495403
495494
|
if (installResult.code !== 0) {
|
|
@@ -495726,8 +495817,8 @@ async function detectMultipleInstallations() {
|
|
|
495726
495817
|
installations.push({ type: "npm-local", path: localPath });
|
|
495727
495818
|
}
|
|
495728
495819
|
const packagesToCheck = ["@anthropic-ai/claude-code"];
|
|
495729
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495730
|
-
packagesToCheck.push({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495820
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL && { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL !== "@anthropic-ai/claude-code") {
|
|
495821
|
+
packagesToCheck.push({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL);
|
|
495731
495822
|
}
|
|
495732
495823
|
const npmResult = await execFileNoThrow("npm", [
|
|
495733
495824
|
"-g",
|
|
@@ -495910,7 +496001,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
495910
496001
|
}
|
|
495911
496002
|
async function getDoctorDiagnostic() {
|
|
495912
496003
|
const installationType = await getCurrentInstallationType();
|
|
495913
|
-
const version4 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496004
|
+
const version4 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION ? { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION : "unknown";
|
|
495914
496005
|
const installationPath = await getInstallationPath();
|
|
495915
496006
|
const invokedBinary = getInvokedBinary();
|
|
495916
496007
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -495922,8 +496013,8 @@ async function getDoctorDiagnostic() {
|
|
|
495922
496013
|
for (const install of npmInstalls) {
|
|
495923
496014
|
if (install.type === "npm-global") {
|
|
495924
496015
|
let uninstallCmd = "npm -g uninstall @anthropic-ai/claude-code";
|
|
495925
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
495926
|
-
uninstallCmd += ` && npm -g uninstall ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496016
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL && { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL !== "@anthropic-ai/claude-code") {
|
|
496017
|
+
uninstallCmd += ` && npm -g uninstall ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}`;
|
|
495927
496018
|
}
|
|
495928
496019
|
warnings.push({
|
|
495929
496020
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -496034,7 +496125,7 @@ async function getLatestVersionFromArtifactory(tag = "latest") {
|
|
|
496034
496125
|
const startTime2 = Date.now();
|
|
496035
496126
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
496036
496127
|
"view",
|
|
496037
|
-
`${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496128
|
+
`${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.NATIVE_PACKAGE_URL}@${tag}`,
|
|
496038
496129
|
"version",
|
|
496039
496130
|
"--prefer-online",
|
|
496040
496131
|
"--registry",
|
|
@@ -496058,7 +496149,7 @@ async function getLatestVersionFromArtifactory(tag = "latest") {
|
|
|
496058
496149
|
latency_ms: latencyMs,
|
|
496059
496150
|
source_npm: true
|
|
496060
496151
|
});
|
|
496061
|
-
logForDebugging(`npm view ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496152
|
+
logForDebugging(`npm view ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.NATIVE_PACKAGE_URL}@${tag} version: ${stdout}`);
|
|
496062
496153
|
const latestVersion = stdout.trim();
|
|
496063
496154
|
return latestVersion;
|
|
496064
496155
|
}
|
|
@@ -496114,7 +496205,7 @@ async function downloadVersionFromArtifactory(version4, stagingPath) {
|
|
|
496114
496205
|
const fs12 = getFsImplementation();
|
|
496115
496206
|
await fs12.rm(stagingPath, { recursive: true, force: true });
|
|
496116
496207
|
const platform5 = getPlatform2();
|
|
496117
|
-
const platformPackageName = `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496208
|
+
const platformPackageName = `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.NATIVE_PACKAGE_URL}-${platform5}`;
|
|
496118
496209
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version4}`);
|
|
496119
496210
|
const {
|
|
496120
496211
|
stdout: integrityOutput,
|
|
@@ -496143,7 +496234,7 @@ async function downloadVersionFromArtifactory(version4, stagingPath) {
|
|
|
496143
496234
|
name: "claude-native-installer",
|
|
496144
496235
|
version: "0.0.1",
|
|
496145
496236
|
dependencies: {
|
|
496146
|
-
[{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496237
|
+
[{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.NATIVE_PACKAGE_URL]: version4
|
|
496147
496238
|
}
|
|
496148
496239
|
};
|
|
496149
496240
|
const packageLock = {
|
|
@@ -496156,10 +496247,10 @@ async function downloadVersionFromArtifactory(version4, stagingPath) {
|
|
|
496156
496247
|
name: "claude-native-installer",
|
|
496157
496248
|
version: "0.0.1",
|
|
496158
496249
|
dependencies: {
|
|
496159
|
-
[{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496250
|
+
[{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.NATIVE_PACKAGE_URL]: version4
|
|
496160
496251
|
}
|
|
496161
496252
|
},
|
|
496162
|
-
[`node_modules/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496253
|
+
[`node_modules/${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.NATIVE_PACKAGE_URL}`]: {
|
|
496163
496254
|
version: version4,
|
|
496164
496255
|
optionalDependencies: {
|
|
496165
496256
|
[platformPackageName]: version4
|
|
@@ -496181,7 +496272,7 @@ async function downloadVersionFromArtifactory(version4, stagingPath) {
|
|
|
496181
496272
|
if (result.code !== 0) {
|
|
496182
496273
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
496183
496274
|
}
|
|
496184
|
-
logForDebugging(`Successfully downloaded and verified ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496275
|
+
logForDebugging(`Successfully downloaded and verified ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.NATIVE_PACKAGE_URL}@${version4}`);
|
|
496185
496276
|
}
|
|
496186
496277
|
function getStallTimeoutMs() {
|
|
496187
496278
|
return Number(process.env.CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -496844,8 +496935,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
496844
496935
|
const maxVersion = await getMaxVersion();
|
|
496845
496936
|
if (maxVersion && gt2(version4, maxVersion)) {
|
|
496846
496937
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version4} to ${maxVersion}`);
|
|
496847
|
-
if (gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496848
|
-
logForDebugging(`Native installer: current version ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496938
|
+
if (gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, maxVersion)) {
|
|
496939
|
+
logForDebugging(`Native installer: current version ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
496849
496940
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
496850
496941
|
latency_ms: Date.now() - startTime2,
|
|
496851
496942
|
max_version: maxVersion,
|
|
@@ -496856,7 +496947,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
496856
496947
|
version4 = maxVersion;
|
|
496857
496948
|
}
|
|
496858
496949
|
}
|
|
496859
|
-
if (!forceReinstall && version4 === { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
496950
|
+
if (!forceReinstall && version4 === { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION && await versionIsAvailable(version4) && await isPossibleClaudeBinary(executablePath)) {
|
|
496860
496951
|
logForDebugging(`Found ${version4} at ${executablePath}, skipping install`);
|
|
496861
496952
|
logEvent("tengu_native_update_complete", {
|
|
496862
496953
|
latency_ms: Date.now() - startTime2,
|
|
@@ -497598,8 +497689,8 @@ async function cleanupNpmInstallations() {
|
|
|
497598
497689
|
} else if (codePackageResult.error) {
|
|
497599
497690
|
errors.push(codePackageResult.error);
|
|
497600
497691
|
}
|
|
497601
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
497602
|
-
const macroPackageResult = await attemptNpmUninstall({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
497692
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL && { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL !== "@anthropic-ai/claude-code") {
|
|
497693
|
+
const macroPackageResult = await attemptNpmUninstall({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL);
|
|
497603
497694
|
if (macroPackageResult.success) {
|
|
497604
497695
|
removed++;
|
|
497605
497696
|
if (macroPackageResult.warning) {
|
|
@@ -497668,7 +497759,7 @@ var init_allErrors = __esm(() => {
|
|
|
497668
497759
|
|
|
497669
497760
|
// utils/status.tsx
|
|
497670
497761
|
function buildSandboxProperties() {
|
|
497671
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
497762
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE !== "ant") {
|
|
497672
497763
|
return [];
|
|
497673
497764
|
}
|
|
497674
497765
|
const isSandboxed = SandboxManager2.isSandboxingEnabled();
|
|
@@ -508588,7 +508679,7 @@ function SpinnerWithVerbInner({
|
|
|
508588
508679
|
const messageColor = overrideColor ?? defaultColor;
|
|
508589
508680
|
const shimmerColor = overrideShimmerColor ?? defaultShimmerColor;
|
|
508590
508681
|
let ttftText = null;
|
|
508591
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
508682
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && apiMetricsRef?.current && apiMetricsRef.current.length > 0) {
|
|
508592
508683
|
ttftText = computeTtftText(apiMetricsRef.current);
|
|
508593
508684
|
}
|
|
508594
508685
|
if (leaderIsIdle && hasRunningTeammates && !foregroundedTeammate) {
|
|
@@ -514949,7 +515040,7 @@ var init_AgentTool = __esm(() => {
|
|
|
514949
515040
|
mode: permissionModeSchema().optional().describe('Permission mode for spawned teammate (e.g., "plan" to require plan approval).')
|
|
514950
515041
|
});
|
|
514951
515042
|
return baseInputSchema().merge(multiAgentInputSchema).extend({
|
|
514952
|
-
isolation: ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
515043
|
+
isolation: ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? z58.enum(["worktree", "remote"]) : z58.enum(["worktree"])).optional().describe({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? 'Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo. "remote" launches the agent in a remote CCR environment (always runs in background).' : 'Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo.'),
|
|
514953
515044
|
cwd: z58.string().optional().describe('Absolute path to run the agent in. Overrides the working directory for all filesystem and shell operations within this agent. Mutually exclusive with isolation: "worktree".')
|
|
514954
515045
|
});
|
|
514955
515046
|
});
|
|
@@ -515229,7 +515320,7 @@ var init_AgentTool = __esm(() => {
|
|
|
515229
515320
|
is_fork: isForkPath
|
|
515230
515321
|
});
|
|
515231
515322
|
const effectiveIsolation = isolation ?? selectedAgent.isolation;
|
|
515232
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
515323
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && effectiveIsolation === "remote") {
|
|
515233
515324
|
const eligibility = await checkRemoteAgentEligibility();
|
|
515234
515325
|
if (!eligibility.eligible) {
|
|
515235
515326
|
const reasons = eligibility.errors.map(formatPreconditionError).join(`
|
|
@@ -515304,7 +515395,7 @@ ${reasons}`);
|
|
|
515304
515395
|
});
|
|
515305
515396
|
if (selectedAgent.memory) {
|
|
515306
515397
|
logEvent("tengu_agent_memory_loaded", {
|
|
515307
|
-
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
515398
|
+
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && {
|
|
515308
515399
|
agent_type: selectedAgent.agentType
|
|
515309
515400
|
},
|
|
515310
515401
|
scope: selectedAgent.memory,
|
|
@@ -515898,7 +515989,7 @@ ${finalMessage}`;
|
|
|
515898
515989
|
},
|
|
515899
515990
|
async checkPermissions(input, context2) {
|
|
515900
515991
|
const appState = context2.getAppState();
|
|
515901
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
515992
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && appState.toolPermissionContext.mode === "auto") {
|
|
515902
515993
|
return {
|
|
515903
515994
|
behavior: "passthrough",
|
|
515904
515995
|
message: "Agent tool requires permission to spawn sub-agents."
|
|
@@ -534095,7 +534186,7 @@ function truncateCommand(command) {
|
|
|
534095
534186
|
function renderToolResultMessage16(output, _progressMessagesForMessage, {
|
|
534096
534187
|
verbose
|
|
534097
534188
|
}) {
|
|
534098
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
534189
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
534099
534190
|
return null;
|
|
534100
534191
|
}
|
|
534101
534192
|
const rawCommand = output.command ?? "";
|
|
@@ -535433,7 +535524,7 @@ var init_TaskOutputTool = __esm(() => {
|
|
|
535433
535524
|
return this.isReadOnly?.(_input) ?? false;
|
|
535434
535525
|
},
|
|
535435
535526
|
isEnabled() {
|
|
535436
|
-
return { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
535527
|
+
return { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE !== "ant";
|
|
535437
535528
|
},
|
|
535438
535529
|
isReadOnly(_input) {
|
|
535439
535530
|
return true;
|
|
@@ -550972,11 +551063,11 @@ function resolveStreamWatchdogEnabled(env5 = process.env) {
|
|
|
550972
551063
|
return false;
|
|
550973
551064
|
return true;
|
|
550974
551065
|
}
|
|
550975
|
-
function resolveStreamIdleTimeoutMs(env5 = process.env) {
|
|
551066
|
+
function resolveStreamIdleTimeoutMs(env5 = process.env, isGatewayRoute) {
|
|
550976
551067
|
const explicit = parseInt(env5.CLAUDE_STREAM_IDLE_TIMEOUT_MS || "", 10);
|
|
550977
551068
|
if (explicit)
|
|
550978
551069
|
return explicit;
|
|
550979
|
-
const isGateway = !!(env5.CCL_GATEWAY_URL && env5.CCL_GATEWAY_KEY);
|
|
551070
|
+
const isGateway = isGatewayRoute ?? !!(env5.CCL_GATEWAY_URL && env5.CCL_GATEWAY_KEY);
|
|
550980
551071
|
return isGateway ? STREAM_IDLE_TIMEOUT_GATEWAY_DEFAULT_MS : STREAM_IDLE_TIMEOUT_DEFAULT_MS;
|
|
550981
551072
|
}
|
|
550982
551073
|
var STREAM_IDLE_TIMEOUT_DEFAULT_MS = 90000, STREAM_IDLE_TIMEOUT_GATEWAY_DEFAULT_MS = 300000;
|
|
@@ -552406,7 +552497,9 @@ ${deferredToolList}
|
|
|
552406
552497
|
};
|
|
552407
552498
|
const createIncompleteModelTurnError = ({
|
|
552408
552499
|
partialUsage = usage,
|
|
552409
|
-
lastEventType
|
|
552500
|
+
lastEventType,
|
|
552501
|
+
cause,
|
|
552502
|
+
requestId
|
|
552410
552503
|
} = {}) => {
|
|
552411
552504
|
const completeToolCalls = newMessages.reduce((count3, message) => count3 + message.message.content.filter((block) => block.type === "tool_use").length, 0);
|
|
552412
552505
|
return new IncompleteModelTurnError({
|
|
@@ -552421,7 +552514,9 @@ ${deferredToolList}
|
|
|
552421
552514
|
retryCount: 0
|
|
552422
552515
|
},
|
|
552423
552516
|
partialUsage,
|
|
552424
|
-
lastEventType
|
|
552517
|
+
lastEventType,
|
|
552518
|
+
cause,
|
|
552519
|
+
requestId
|
|
552425
552520
|
});
|
|
552426
552521
|
};
|
|
552427
552522
|
try {
|
|
@@ -552536,8 +552631,9 @@ ${deferredToolList}
|
|
|
552536
552631
|
throw new Error("Thinking-history recovery request model changed.");
|
|
552537
552632
|
gatewayBody.thinking = { type: "disabled" };
|
|
552538
552633
|
}
|
|
552634
|
+
const gwTimeoutMs = resolveGatewayRequestTimeoutMs();
|
|
552539
552635
|
const gwTimeoutController = new AbortController;
|
|
552540
|
-
const gwTimeout = setTimeout(() => gwTimeoutController.abort(new Error("Gateway request
|
|
552636
|
+
const gwTimeout = setTimeout(() => gwTimeoutController.abort(new Error("Gateway request setup deadline exceeded")), gwTimeoutMs);
|
|
552541
552637
|
const gwSignal = AbortSignal.any([signal, gwTimeoutController.signal]);
|
|
552542
552638
|
const gwSpan = makeSpan("model", { model: String(gatewayModel) });
|
|
552543
552639
|
const gwSpanStart = Date.now();
|
|
@@ -552578,8 +552674,16 @@ ${deferredToolList}
|
|
|
552578
552674
|
} catch (gwErr) {
|
|
552579
552675
|
clearTimeout(gwTimeout);
|
|
552580
552676
|
if (gwTimeoutController.signal.aborted && !signal.aborted) {
|
|
552581
|
-
|
|
552582
|
-
const timeoutError = new
|
|
552677
|
+
const elapsedMs = Date.now() - gwSpanStart;
|
|
552678
|
+
const timeoutError = new GatewayRequestTimeoutError(gwTimeoutMs, elapsedMs, gwSpan.trace_id, gwSpan.span_id);
|
|
552679
|
+
logSpan({
|
|
552680
|
+
...gwSpan,
|
|
552681
|
+
latency_ms: elapsedMs,
|
|
552682
|
+
status: "error",
|
|
552683
|
+
phase: timeoutError.phase,
|
|
552684
|
+
code: timeoutError.code,
|
|
552685
|
+
timeout_ms: gwTimeoutMs
|
|
552686
|
+
});
|
|
552583
552687
|
timeoutError.cause = gwTimeoutController.signal.reason;
|
|
552584
552688
|
throw timeoutError;
|
|
552585
552689
|
}
|
|
@@ -552705,7 +552809,7 @@ ${deferredToolList}
|
|
|
552705
552809
|
stopReason = null;
|
|
552706
552810
|
isAdvisorInProgress = false;
|
|
552707
552811
|
const streamWatchdogEnabled = resolveStreamWatchdogEnabled(process.env);
|
|
552708
|
-
const STREAM_IDLE_TIMEOUT_MS = resolveStreamIdleTimeoutMs(process.env);
|
|
552812
|
+
const STREAM_IDLE_TIMEOUT_MS = resolveStreamIdleTimeoutMs(process.env, isGatewayChannel);
|
|
552709
552813
|
const STREAM_IDLE_WARNING_MS = STREAM_IDLE_TIMEOUT_MS / 2;
|
|
552710
552814
|
let streamIdleAborted = false;
|
|
552711
552815
|
let streamWatchdogFiredAt = null;
|
|
@@ -552996,7 +553100,7 @@ ${deferredToolList}
|
|
|
552996
553100
|
max_tokens: maxOutputTokens
|
|
552997
553101
|
});
|
|
552998
553102
|
yield { ...createAssistantAPIErrorMessage({
|
|
552999
|
-
content: `${API_ERROR_MESSAGE_PREFIX}:
|
|
553103
|
+
content: `${API_ERROR_MESSAGE_PREFIX}: The model response reached the ${latestRequestBudget?.maxTokens ?? maxOutputTokens} output token budget. To configure the requested budget, set CCL_MAX_OUTPUT_TOKENS (CLAUDE_CODE_MAX_OUTPUT_TOKENS is also supported). The effective budget remains subject to model and gateway limits.`,
|
|
553000
553104
|
apiError: "max_output_tokens",
|
|
553001
553105
|
error: "max_output_tokens"
|
|
553002
553106
|
}), recoveryObservations: { stopReason }, recoveryBudget: effectiveRecoveryBudget(), recoveryIdentity: {
|
|
@@ -553310,7 +553414,9 @@ ${deferredToolList}
|
|
|
553310
553414
|
if (errorFromRetry instanceof GatewayStreamProtocolError && errorFromRetry.code === "incomplete_stream") {
|
|
553311
553415
|
throw createIncompleteModelTurnError({
|
|
553312
553416
|
partialUsage: errorFromRetry.partialUsage,
|
|
553313
|
-
lastEventType: errorFromRetry.lastEventType
|
|
553417
|
+
lastEventType: errorFromRetry.lastEventType,
|
|
553418
|
+
cause: errorFromRetry,
|
|
553419
|
+
requestId: errorFromRetry.requestId
|
|
553314
553420
|
});
|
|
553315
553421
|
}
|
|
553316
553422
|
if (errorFromRetry instanceof FallbackTriggeredError) {
|
|
@@ -553443,7 +553549,10 @@ ${deferredToolList}
|
|
|
553443
553549
|
const gatewayFacts = gatewayErrorDetails(error5);
|
|
553444
553550
|
yield {
|
|
553445
553551
|
...getAssistantMessageFromError(error5, errorModel, { messages, messagesForAPI }),
|
|
553446
|
-
...
|
|
553552
|
+
...error5 instanceof GatewayRequestTimeoutError ? {
|
|
553553
|
+
recoveryObservations: { code: error5.code, message: error5.message },
|
|
553554
|
+
recoveryIdentity: { origin: "ccl_validation", requestedModel: options.model, resolvedModel: resolvedRequestModel }
|
|
553555
|
+
} : gatewayFacts ? {
|
|
553447
553556
|
recoveryObservations: { httpStatus: gatewayFacts.status, code: gatewayFacts.code, message: describeError(error5) },
|
|
553448
553557
|
recoveryIdentity: {
|
|
553449
553558
|
requestId: gatewayFacts.requestId,
|
|
@@ -553887,6 +553996,7 @@ function routeGatewayError(err2, signal, url3, reason, api) {
|
|
|
553887
553996
|
}
|
|
553888
553997
|
var autoModeStateModule4, CapabilityModelMismatchError, MAX_NON_STREAMING_TOKENS = 64000;
|
|
553889
553998
|
var init_claude = __esm(() => {
|
|
553999
|
+
init_gatewayDeadline();
|
|
553890
554000
|
init_requestObservation();
|
|
553891
554001
|
init_gatewayTransport();
|
|
553892
554002
|
init_peerReviewModel();
|
|
@@ -556636,7 +556746,7 @@ var init_filesystem = __esm(() => {
|
|
|
556636
556746
|
});
|
|
556637
556747
|
getBundledSkillsRoot = memoize60(function getBundledSkillsRoot2() {
|
|
556638
556748
|
const nonce = randomBytes17(16).toString("hex");
|
|
556639
|
-
return join132(getClaudeTempDir(), "bundled-skills", { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
556749
|
+
return join132(getClaudeTempDir(), "bundled-skills", { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, nonce);
|
|
556640
556750
|
});
|
|
556641
556751
|
getResolvedWorkingDirPaths = memoize60(getPathsForPermissionCheck);
|
|
556642
556752
|
});
|
|
@@ -558399,7 +558509,7 @@ function Feedback({
|
|
|
558399
558509
|
platform: env3.platform,
|
|
558400
558510
|
gitRepo: envInfo.isGit,
|
|
558401
558511
|
terminal: env3.terminal,
|
|
558402
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
558512
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
558403
558513
|
transcript: normalizeMessagesForAPI(messages),
|
|
558404
558514
|
errors: sanitizedErrors,
|
|
558405
558515
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -558591,7 +558701,7 @@ function Feedback({
|
|
|
558591
558701
|
", ",
|
|
558592
558702
|
env3.terminal,
|
|
558593
558703
|
", v",
|
|
558594
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
558704
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
558595
558705
|
]
|
|
558596
558706
|
})
|
|
558597
558707
|
]
|
|
@@ -558697,7 +558807,7 @@ ${sanitizedDescription}
|
|
|
558697
558807
|
` + `**Environment Info**
|
|
558698
558808
|
` + `- Platform: ${env3.platform}
|
|
558699
558809
|
` + `- Terminal: ${env3.terminal}
|
|
558700
|
-
` + `- Version: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
558810
|
+
` + `- Version: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION || "unknown"}
|
|
558701
558811
|
` + `- Feedback ID: ${feedbackId}
|
|
558702
558812
|
` + `
|
|
558703
558813
|
**Errors**
|
|
@@ -558889,7 +558999,7 @@ var init_Feedback = __esm(() => {
|
|
|
558889
558999
|
init_TextInput();
|
|
558890
559000
|
import_react93 = __toESM(require_react(), 1);
|
|
558891
559001
|
jsx_runtime165 = __toESM(require_jsx_runtime(), 1);
|
|
558892
|
-
GITHUB_ISSUES_REPO_URL = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
559002
|
+
GITHUB_ISSUES_REPO_URL = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? "https://github.com/anthropics/claude-cli-internal/issues" : "https://github.com/anthropics/claude-code/issues";
|
|
558893
559003
|
});
|
|
558894
559004
|
|
|
558895
559005
|
// commands/feedback/feedback.tsx
|
|
@@ -561891,7 +562001,7 @@ function buildPrimarySection() {
|
|
|
561891
562001
|
});
|
|
561892
562002
|
return [{
|
|
561893
562003
|
label: "Version",
|
|
561894
|
-
value: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
562004
|
+
value: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
561895
562005
|
}, {
|
|
561896
562006
|
label: "Session name",
|
|
561897
562007
|
value: nameValue
|
|
@@ -564533,7 +564643,7 @@ function Config({
|
|
|
564533
564643
|
});
|
|
564534
564644
|
}
|
|
564535
564645
|
}] : [],
|
|
564536
|
-
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
564646
|
+
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? [{
|
|
564537
564647
|
id: "speculationEnabled",
|
|
564538
564648
|
label: "Speculative execution",
|
|
564539
564649
|
value: globalConfig.speculationEnabled ?? true,
|
|
@@ -565816,7 +565926,7 @@ function Config({
|
|
|
565816
565926
|
}
|
|
565817
565927
|
})
|
|
565818
565928
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime180.jsx(ChannelDowngradeDialog, {
|
|
565819
|
-
currentVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
565929
|
+
currentVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
565820
565930
|
onChoice: (choice) => {
|
|
565821
565931
|
setShowSubmenu(null);
|
|
565822
565932
|
setTabsHidden(false);
|
|
@@ -565828,7 +565938,7 @@ function Config({
|
|
|
565828
565938
|
autoUpdatesChannel: "stable"
|
|
565829
565939
|
};
|
|
565830
565940
|
if (choice === "stay") {
|
|
565831
|
-
newSettings.minimumVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
565941
|
+
newSettings.minimumVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION;
|
|
565832
565942
|
}
|
|
565833
565943
|
updateSettingsForSource("userSettings", newSettings);
|
|
565834
565944
|
setSettingsData((prev_27) => ({
|
|
@@ -574010,7 +574120,7 @@ function HelpV2(t0) {
|
|
|
574010
574120
|
let t6;
|
|
574011
574121
|
if ($3[31] !== tabs) {
|
|
574012
574122
|
t6 = /* @__PURE__ */ jsx_runtime207.jsx(Tabs, {
|
|
574013
|
-
title: `CCL v${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
574123
|
+
title: `CCL v${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}`,
|
|
574014
574124
|
color: "professionalBlue",
|
|
574015
574125
|
defaultTab: "general",
|
|
574016
574126
|
children: tabs
|
|
@@ -593863,7 +593973,7 @@ async function call29(onDone, _context, args) {
|
|
|
593863
593973
|
});
|
|
593864
593974
|
}
|
|
593865
593975
|
}
|
|
593866
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
593976
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
593867
593977
|
return /* @__PURE__ */ jsx_runtime248.jsx(PluginSettings, {
|
|
593868
593978
|
onComplete: onDone,
|
|
593869
593979
|
args: ["manage"],
|
|
@@ -598710,9 +598820,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
598710
598820
|
return [];
|
|
598711
598821
|
}
|
|
598712
598822
|
}
|
|
598713
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
598823
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION) {
|
|
598714
598824
|
if (process.env.USER_TYPE === "ant") {
|
|
598715
|
-
const changelog = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
598825
|
+
const changelog = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION_CHANGELOG;
|
|
598716
598826
|
if (changelog) {
|
|
598717
598827
|
const commits = changelog.trim().split(`
|
|
598718
598828
|
`).filter(Boolean);
|
|
@@ -598737,9 +598847,9 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { USER_TYP
|
|
|
598737
598847
|
releaseNotes
|
|
598738
598848
|
};
|
|
598739
598849
|
}
|
|
598740
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
598850
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION) {
|
|
598741
598851
|
if (process.env.USER_TYPE === "ant") {
|
|
598742
|
-
const changelog = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
598852
|
+
const changelog = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION_CHANGELOG;
|
|
598743
598853
|
if (changelog) {
|
|
598744
598854
|
const commits = changelog.trim().split(`
|
|
598745
598855
|
`).filter(Boolean);
|
|
@@ -599921,7 +600031,7 @@ function getRecentActivitySync() {
|
|
|
599921
600031
|
return cachedActivity;
|
|
599922
600032
|
}
|
|
599923
600033
|
function getLogoDisplayData() {
|
|
599924
|
-
const version4 = process.env.DEMO_VERSION ?? { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
600034
|
+
const version4 = process.env.DEMO_VERSION ?? { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION;
|
|
599925
600035
|
const serverUrl = getDirectConnectServerUrl();
|
|
599926
600036
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
599927
600037
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -599953,7 +600063,7 @@ function formatModelAndBilling(modelName, billingType, availableWidth) {
|
|
|
599953
600063
|
}
|
|
599954
600064
|
function getRecentReleaseNotesSync(maxItems) {
|
|
599955
600065
|
if (process.env.USER_TYPE === "ant") {
|
|
599956
|
-
const changelog2 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
600066
|
+
const changelog2 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION_CHANGELOG;
|
|
599957
600067
|
if (changelog2) {
|
|
599958
600068
|
const commits = changelog2.trim().split(`
|
|
599959
600069
|
`).filter(Boolean);
|
|
@@ -600699,7 +600809,7 @@ function createRecentActivityFeed(activities) {
|
|
|
600699
600809
|
}
|
|
600700
600810
|
function createWhatsNewFeed(releaseNotes2) {
|
|
600701
600811
|
const lines = releaseNotes2.map((note) => {
|
|
600702
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
600812
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
600703
600813
|
const match = note.match(/^(\d+\s+\w+\s+ago)\s+(.+)$/);
|
|
600704
600814
|
if (match) {
|
|
600705
600815
|
return {
|
|
@@ -600712,9 +600822,9 @@ function createWhatsNewFeed(releaseNotes2) {
|
|
|
600712
600822
|
text: note
|
|
600713
600823
|
};
|
|
600714
600824
|
});
|
|
600715
|
-
const emptyMessage = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
600825
|
+
const emptyMessage = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? "Unable to fetch latest claude-cli-internal commits" : "Check the CCL changelog for updates";
|
|
600716
600826
|
return {
|
|
600717
|
-
title: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
600827
|
+
title: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? "What's new [ANT-ONLY: Latest CC commits]" : "What's new",
|
|
600718
600828
|
lines,
|
|
600719
600829
|
footer: lines.length > 0 ? "/release-notes for more" : undefined,
|
|
600720
600830
|
emptyMessage
|
|
@@ -601527,7 +601637,7 @@ function LogoV2() {
|
|
|
601527
601637
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
601528
601638
|
t22 = () => {
|
|
601529
601639
|
const currentConfig = getGlobalConfig();
|
|
601530
|
-
if (currentConfig.lastReleaseNotesSeen === { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
601640
|
+
if (currentConfig.lastReleaseNotesSeen === { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION) {
|
|
601531
601641
|
return;
|
|
601532
601642
|
}
|
|
601533
601643
|
saveGlobalConfig(_temp329);
|
|
@@ -602203,12 +602313,12 @@ function LogoV2() {
|
|
|
602203
602313
|
return t41;
|
|
602204
602314
|
}
|
|
602205
602315
|
function _temp329(current) {
|
|
602206
|
-
if (current.lastReleaseNotesSeen === { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
602316
|
+
if (current.lastReleaseNotesSeen === { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION) {
|
|
602207
602317
|
return current;
|
|
602208
602318
|
}
|
|
602209
602319
|
return {
|
|
602210
602320
|
...current,
|
|
602211
|
-
lastReleaseNotesSeen: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
602321
|
+
lastReleaseNotesSeen: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
602212
602322
|
};
|
|
602213
602323
|
}
|
|
602214
602324
|
function _temp248(s_0) {
|
|
@@ -610107,13 +610217,13 @@ var init_ultraplan = __esm(() => {
|
|
|
610107
610217
|
ULTRAPLAN_TIMEOUT_MS = 30 * 60 * 1000;
|
|
610108
610218
|
_rawPrompt = require_prompt();
|
|
610109
610219
|
DEFAULT_INSTRUCTIONS = (typeof _rawPrompt === "string" ? _rawPrompt : _rawPrompt.default).trimEnd();
|
|
610110
|
-
ULTRAPLAN_INSTRUCTIONS = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
610220
|
+
ULTRAPLAN_INSTRUCTIONS = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && process.env.ULTRAPLAN_PROMPT_FILE ? readFileSync19(process.env.ULTRAPLAN_PROMPT_FILE, "utf8").trimEnd() : DEFAULT_INSTRUCTIONS;
|
|
610111
610221
|
ultraplan_default = {
|
|
610112
610222
|
type: "local-jsx",
|
|
610113
610223
|
name: "ultraplan",
|
|
610114
610224
|
description: `~10–30 min · CCL on the web drafts an advanced plan you can edit and approve. See ${CCR_TERMS_URL2}`,
|
|
610115
610225
|
argumentHint: "<prompt>",
|
|
610116
|
-
isEnabled: () => ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
610226
|
+
isEnabled: () => ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }).USER_TYPE === "ant",
|
|
610117
610227
|
load: () => Promise.resolve({
|
|
610118
610228
|
call: call38
|
|
610119
610229
|
})
|
|
@@ -610224,7 +610334,7 @@ function shouldHideTasksFooter(tasks, showSpinnerTree) {
|
|
|
610224
610334
|
return false;
|
|
610225
610335
|
let hasVisibleTask = false;
|
|
610226
610336
|
for (const t3 of Object.values(tasks)) {
|
|
610227
|
-
if (!isBackgroundTask(t3) || { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
610337
|
+
if (!isBackgroundTask(t3) || { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && isPanelAgentTask(t3)) {
|
|
610228
610338
|
continue;
|
|
610229
610339
|
}
|
|
610230
610340
|
hasVisibleTask = true;
|
|
@@ -616759,8 +616869,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
616759
616869
|
}
|
|
616760
616870
|
async function checkEnvLessBridgeMinVersion() {
|
|
616761
616871
|
const cfg = await getEnvLessBridgeConfig();
|
|
616762
|
-
if (cfg.min_version && lt2({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
616763
|
-
return `Your version of CCL (${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
616872
|
+
if (cfg.min_version && lt2({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, cfg.min_version)) {
|
|
616873
|
+
return `Your version of CCL (${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}) is too old for Remote Control.
|
|
616764
616874
|
Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
|
|
616765
616875
|
}
|
|
616766
616876
|
return null;
|
|
@@ -619135,10 +619245,10 @@ import { execa as execa14 } from "execa";
|
|
|
619135
619245
|
import { readFile as readFile54 } from "fs/promises";
|
|
619136
619246
|
import { join as join152 } from "path";
|
|
619137
619247
|
function getMarketplaceName() {
|
|
619138
|
-
return { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
619248
|
+
return { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? INTERNAL_MARKETPLACE_NAME : OFFICIAL_MARKETPLACE_NAME;
|
|
619139
619249
|
}
|
|
619140
619250
|
function getMarketplaceRepo() {
|
|
619141
|
-
return { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
619251
|
+
return { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? INTERNAL_MARKETPLACE_REPO : OFFICIAL_MARKETPLACE_REPO;
|
|
619142
619252
|
}
|
|
619143
619253
|
function getPluginId() {
|
|
619144
619254
|
return `thinkback@${getMarketplaceName()}`;
|
|
@@ -626893,7 +627003,7 @@ function getToolBuckets() {
|
|
|
626893
627003
|
},
|
|
626894
627004
|
EXECUTION: {
|
|
626895
627005
|
name: "Execution tools",
|
|
626896
|
-
toolNames: new Set([BashTool.name, { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
627006
|
+
toolNames: new Set([BashTool.name, { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? TungstenTool.name : undefined].filter((n2) => n2 !== undefined))
|
|
626897
627007
|
},
|
|
626898
627008
|
MCP: {
|
|
626899
627009
|
name: "MCP tools",
|
|
@@ -632543,7 +632653,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
632543
632653
|
smapsRollup,
|
|
632544
632654
|
platform: process.platform,
|
|
632545
632655
|
nodeVersion: process.version,
|
|
632546
|
-
ccVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
632656
|
+
ccVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
632547
632657
|
};
|
|
632548
632658
|
}
|
|
632549
632659
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -633130,7 +633240,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
633130
633240
|
var call63 = async () => {
|
|
633131
633241
|
return {
|
|
633132
633242
|
type: "text",
|
|
633133
|
-
value: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
633243
|
+
value: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.BUILD_TIME ? `${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} (built ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.BUILD_TIME})` : { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
633134
633244
|
};
|
|
633135
633245
|
}, version4, version_default;
|
|
633136
633246
|
var init_version = __esm(() => {
|
|
@@ -640379,7 +640489,7 @@ function OverviewTab({
|
|
|
640379
640489
|
})
|
|
640380
640490
|
]
|
|
640381
640491
|
}),
|
|
640382
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
640492
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && stats.totalSpeculationTimeSavedMs > 0 && /* @__PURE__ */ jsx_runtime366.jsx(ThemedBox_default, {
|
|
640383
640493
|
flexDirection: "row",
|
|
640384
640494
|
gap: 4,
|
|
640385
640495
|
children: /* @__PURE__ */ jsx_runtime366.jsx(ThemedBox_default, {
|
|
@@ -641053,7 +641163,7 @@ function renderOverviewToAnsi(stats) {
|
|
|
641053
641163
|
const activeDaysVal = `${stats.activeDays}/${stats.totalDays}`;
|
|
641054
641164
|
const peakHourVal = stats.peakActivityHour !== null ? `${stats.peakActivityHour}:00-${stats.peakActivityHour + 1}:00` : "N/A";
|
|
641055
641165
|
lines.push(row("Active days", activeDaysVal, "Peak hour", peakHourVal));
|
|
641056
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
641166
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && stats.totalSpeculationTimeSavedMs > 0) {
|
|
641057
641167
|
const label = "Speculation saved:".padEnd(COL1_LABEL_WIDTH);
|
|
641058
641168
|
lines.push(label + h3(formatDuration(stats.totalSpeculationTimeSavedMs)));
|
|
641059
641169
|
}
|
|
@@ -642837,7 +642947,7 @@ function generateHtmlReport(data, insights) {
|
|
|
642837
642947
|
</html>`;
|
|
642838
642948
|
}
|
|
642839
642949
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
642840
|
-
const version5 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
642950
|
+
const version5 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION;
|
|
642841
642951
|
const remote_hosts_collected = remoteStats?.hosts.filter((h3) => h3.sessionCount > 0).map((h3) => h3.name);
|
|
642842
642952
|
const facets_summary = {
|
|
642843
642953
|
total: facets.size,
|
|
@@ -647140,7 +647250,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
647140
647250
|
init_settings2();
|
|
647141
647251
|
init_slowOperations();
|
|
647142
647252
|
init_uuid();
|
|
647143
|
-
VERSION7 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
647253
|
+
VERSION7 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION;
|
|
647144
647254
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
647145
647255
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
647146
647256
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -647262,7 +647372,7 @@ async function getBusinessCollector(agentId) {
|
|
|
647262
647372
|
const store = parent?.store ?? new BusinessStore(getClaudeConfigHomeDir(), context3.project);
|
|
647263
647373
|
if (!agentId && requested && requestedSession === getSessionId())
|
|
647264
647374
|
await store.bind(getSessionId(), context3);
|
|
647265
|
-
const collector = new BusinessCollector(store, context3, getSessionId(), { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
647375
|
+
const collector = new BusinessCollector(store, context3, getSessionId(), { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, parent?.runId, warning);
|
|
647266
647376
|
if (!agentId)
|
|
647267
647377
|
await collector.observe({ event_id: randomUUID51(), kind: "binding", summary: "Business context supplied explicitly by the host or operator.", actor: "caller_declared", declaration: { actor: "host_or_operator", scope: "project/task/employee", source_ref: context3.source ?? "unknown", confirmation_ref: "unknown" }, related: context3.hostRunId ? [context3.hostRunId] : [] });
|
|
647268
647378
|
const ancestor = resumedFrom.get(getSessionId());
|
|
@@ -647431,7 +647541,7 @@ async function businessCommand(args, currentSession) {
|
|
|
647431
647541
|
if (action2 === "export") {
|
|
647432
647542
|
if (!v6.output)
|
|
647433
647543
|
throw new Error("--output NEW_DIRECTORY is required");
|
|
647434
|
-
return exportBusinessFacts({ store, scope, cursor: v6.cursor, limit, output: v6.output, producerVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
647544
|
+
return exportBusinessFacts({ store, scope, cursor: v6.cursor, limit, output: v6.output, producerVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, includeSourceText: v6["include-source-text"] });
|
|
647435
647545
|
}
|
|
647436
647546
|
if (action2 === "note") {
|
|
647437
647547
|
const { persistenceDisabled: persistenceDisabled2 } = await Promise.resolve().then(() => (init_runtime2(), exports_runtime2));
|
|
@@ -647444,7 +647554,7 @@ async function businessCommand(args, currentSession) {
|
|
|
647444
647554
|
throw new Error("note.summary is required");
|
|
647445
647555
|
if (raw.verified_outcome)
|
|
647446
647556
|
throw new Error("Caller declarations cannot establish a verified human outcome");
|
|
647447
|
-
const collector = new BusinessCollector(store, context3, session2 ?? "unknown", { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
647557
|
+
const collector = new BusinessCollector(store, context3, session2 ?? "unknown", { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
647448
647558
|
const receipt = await collector.observe({
|
|
647449
647559
|
event_id: raw.event_id ?? randomUUID52(),
|
|
647450
647560
|
revision: raw.revision ?? "1",
|
|
@@ -648250,7 +648360,7 @@ Controls apply to this CLI configuration across accounts. analytics.query shares
|
|
|
648250
648360
|
return;
|
|
648251
648361
|
}
|
|
648252
648362
|
try {
|
|
648253
|
-
const client4 = new ClientFeatureClient({ cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
648363
|
+
const client4 = new ClientFeatureClient({ cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION }), dir = getClaudeConfigHomeDir();
|
|
648254
648364
|
if (command9 === "list") {
|
|
648255
648365
|
console.log(JSON.stringify({ features: client4.list().map((def) => {
|
|
648256
648366
|
let localMode;
|
|
@@ -648934,7 +649044,7 @@ async function runAnalyticsCommand(args) {
|
|
|
648934
649044
|
if (command9 === "gate" && args.length === 2 && ["status", "auto", "off"].includes(args[1])) {
|
|
648935
649045
|
try {
|
|
648936
649046
|
if (args[1] === "status")
|
|
648937
|
-
console.log(JSON.stringify(await new ClientAnalysis({ cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
649047
|
+
console.log(JSON.stringify(await new ClientAnalysis({ cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION }).gateStatus()));
|
|
648938
649048
|
else {
|
|
648939
649049
|
const local = configureLocalAnalysisGate(getClaudeConfigHomeDir(), args[1]);
|
|
648940
649050
|
console.log(JSON.stringify({ feature: "analytics.query", localMode: local.mode, remotePermission: "not_checked" }));
|
|
@@ -648967,11 +649077,11 @@ async function runAnalyticsCommand(args) {
|
|
|
648967
649077
|
throw new OperationsClientError("invalid_query");
|
|
648968
649078
|
}
|
|
648969
649079
|
if (command9 === "report") {
|
|
648970
|
-
await new ClientAnalyticsReport({ cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
649080
|
+
await new ClientAnalyticsReport({ cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION }).run(input, (text3) => new Promise((resolve46, reject3) => {
|
|
648971
649081
|
process.stdout.write(text3, (error5) => error5 ? reject3(error5) : resolve46());
|
|
648972
649082
|
}));
|
|
648973
649083
|
} else
|
|
648974
|
-
console.log(JSON.stringify(await new ClientAnalysis({ cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
649084
|
+
console.log(JSON.stringify(await new ClientAnalysis({ cliVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION }).query(input)));
|
|
648975
649085
|
} catch (error5) {
|
|
648976
649086
|
console.error(JSON.stringify({ error: error5 instanceof OperationsClientError ? error5.code : "invalid_query" }));
|
|
648977
649087
|
process.exitCode = 1;
|
|
@@ -652068,7 +652178,7 @@ function createBridgeLogger(options) {
|
|
|
652068
652178
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
652069
652179
|
regenerateQr(connectUrl);
|
|
652070
652180
|
if (verbose) {
|
|
652071
|
-
write(source_default.dim(`Remote Control`) + ` v${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
652181
|
+
write(source_default.dim(`Remote Control`) + ` v${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}
|
|
652072
652182
|
`);
|
|
652073
652183
|
}
|
|
652074
652184
|
if (verbose) {
|
|
@@ -653041,7 +653151,7 @@ function appendToLog(path21, message) {
|
|
|
653041
653151
|
cwd: getFsImplementation().cwd(),
|
|
653042
653152
|
userType: process.env.USER_TYPE,
|
|
653043
653153
|
sessionId: getSessionId(),
|
|
653044
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
653154
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
653045
653155
|
};
|
|
653046
653156
|
getLogWriter(path21).write(messageWithTimestamp);
|
|
653047
653157
|
}
|
|
@@ -654311,7 +654421,7 @@ Spawn mode for this project:
|
|
|
654311
654421
|
const api = createBridgeApiClient({
|
|
654312
654422
|
baseUrl,
|
|
654313
654423
|
getAccessToken: getBridgeAccessToken2,
|
|
654314
|
-
runnerVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
654424
|
+
runnerVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
654315
654425
|
onDebug: logForDebugging,
|
|
654316
654426
|
onAuth401: handleOAuth401Error2,
|
|
654317
654427
|
getTrustedDeviceToken
|
|
@@ -654549,7 +654659,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
654549
654659
|
const api = createBridgeApiClient({
|
|
654550
654660
|
baseUrl,
|
|
654551
654661
|
getAccessToken: opts.getAccessToken,
|
|
654552
|
-
runnerVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
654662
|
+
runnerVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
654553
654663
|
onDebug: log2,
|
|
654554
654664
|
onAuth401: opts.onAuth401,
|
|
654555
654665
|
getTrustedDeviceToken
|
|
@@ -656866,7 +656976,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
656866
656976
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
656867
656977
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
656868
656978
|
betas: getSdkBetas(),
|
|
656869
|
-
claude_code_version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
656979
|
+
claude_code_version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
656870
656980
|
output_style: outputStyle2,
|
|
656871
656981
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
656872
656982
|
skills: inputs.skills.filter((s3) => s3.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -659160,7 +659270,7 @@ async function initBridgeCore(params) {
|
|
|
659160
659270
|
const rawApi = createBridgeApiClient({
|
|
659161
659271
|
baseUrl,
|
|
659162
659272
|
getAccessToken,
|
|
659163
|
-
runnerVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
659273
|
+
runnerVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
659164
659274
|
onDebug: logForDebugging,
|
|
659165
659275
|
onAuth401,
|
|
659166
659276
|
getTrustedDeviceToken
|
|
@@ -661842,7 +661952,7 @@ function MessageSelector({
|
|
|
661842
661952
|
...summarizeInputProps,
|
|
661843
661953
|
onChange: setSummarizeFromFeedback
|
|
661844
661954
|
});
|
|
661845
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
661955
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
661846
661956
|
baseOptions.push({
|
|
661847
661957
|
value: "summarize_up_to",
|
|
661848
661958
|
label: "Summarize up to here",
|
|
@@ -669377,7 +669487,7 @@ function bashToolUseOptions({
|
|
|
669377
669487
|
}
|
|
669378
669488
|
}
|
|
669379
669489
|
const editablePrefixShown = options.some((o2) => o2.value === "yes-prefix-edited");
|
|
669380
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
669490
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && !editablePrefixShown && isClassifierPermissionsEnabled() && onClassifierDescriptionChange && !initialClassifierDescriptionEmpty && !descriptionAlreadyExists(classifierDescription ?? "", existingAllowDescriptions) && decisionReason?.type !== "classifier") {
|
|
669381
669491
|
options.push({
|
|
669382
669492
|
type: "input",
|
|
669383
669493
|
label: "Yes, and don’t ask again for",
|
|
@@ -676984,7 +677094,7 @@ var init_CompanionSprite = __esm(() => {
|
|
|
676984
677094
|
|
|
676985
677095
|
// buddy/useBuddyNotification.tsx
|
|
676986
677096
|
function isBuddyTeaserWindow() {
|
|
676987
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677097
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant")
|
|
676988
677098
|
return true;
|
|
676989
677099
|
const d2 = new Date;
|
|
676990
677100
|
return d2.getFullYear() === 2026 && d2.getMonth() === 3 && d2.getDate() <= 7;
|
|
@@ -677120,7 +677230,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
677120
677230
|
function getSemverPart(version5) {
|
|
677121
677231
|
return `${import_semver14.major(version5, { loose: true })}.${import_semver14.minor(version5, { loose: true })}.${import_semver14.patch(version5, { loose: true })}`;
|
|
677122
677232
|
}
|
|
677123
|
-
function useUpdateNotification(updatedVersion, initialVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677233
|
+
function useUpdateNotification(updatedVersion, initialVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION) {
|
|
677124
677234
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react232.useState(() => getSemverPart(initialVersion));
|
|
677125
677235
|
if (!updatedVersion) {
|
|
677126
677236
|
return null;
|
|
@@ -677160,7 +677270,7 @@ function AutoUpdater({
|
|
|
677160
677270
|
return;
|
|
677161
677271
|
}
|
|
677162
677272
|
if (false) {}
|
|
677163
|
-
const currentVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677273
|
+
const currentVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION;
|
|
677164
677274
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
677165
677275
|
let latestVersion = await getLatestVersion(channel2);
|
|
677166
677276
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -677296,7 +677406,7 @@ function AutoUpdater({
|
|
|
677296
677406
|
" ",
|
|
677297
677407
|
/* @__PURE__ */ jsx_runtime412.jsx(ThemedText, {
|
|
677298
677408
|
bold: true,
|
|
677299
|
-
children: hasLocalInstall ? `cd ~/.ccl/local && npm update ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677409
|
+
children: hasLocalInstall ? `cd ~/.ccl/local && npm update ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}` : `npm i -g ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}`
|
|
677300
677410
|
})
|
|
677301
677411
|
]
|
|
677302
677412
|
})
|
|
@@ -677373,12 +677483,12 @@ function NativeAutoUpdater({
|
|
|
677373
677483
|
logEvent("tengu_native_auto_updater_start", {});
|
|
677374
677484
|
try {
|
|
677375
677485
|
const maxVersion = await getMaxVersion();
|
|
677376
|
-
if (maxVersion && gt2({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677486
|
+
if (maxVersion && gt2({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, maxVersion)) {
|
|
677377
677487
|
const msg = await getMaxVersionMessage();
|
|
677378
677488
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
677379
677489
|
}
|
|
677380
677490
|
const result = await installLatest(channel2);
|
|
677381
|
-
const currentVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677491
|
+
const currentVersion = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION;
|
|
677382
677492
|
const latencyMs = Date.now() - startTime2;
|
|
677383
677493
|
if (result.lockFailed) {
|
|
677384
677494
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -677474,7 +677584,7 @@ function NativeAutoUpdater({
|
|
|
677474
677584
|
})
|
|
677475
677585
|
]
|
|
677476
677586
|
}),
|
|
677477
|
-
maxVersionIssue && { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677587
|
+
maxVersionIssue && { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime413.jsxs(ThemedText, {
|
|
677478
677588
|
color: "warning",
|
|
677479
677589
|
children: [
|
|
677480
677590
|
"⚠ Known issue: ",
|
|
@@ -677528,17 +677638,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
677528
677638
|
const maxVersion = await getMaxVersion();
|
|
677529
677639
|
if (maxVersion && latest && gt2(latest, maxVersion)) {
|
|
677530
677640
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
677531
|
-
if (gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677532
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677641
|
+
if (gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, maxVersion)) {
|
|
677642
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
677533
677643
|
setUpdateAvailable(false);
|
|
677534
677644
|
return;
|
|
677535
677645
|
}
|
|
677536
677646
|
latest = maxVersion;
|
|
677537
677647
|
}
|
|
677538
|
-
const hasUpdate = latest && !gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677648
|
+
const hasUpdate = latest && !gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, latest) && !shouldSkipVersion(latest);
|
|
677539
677649
|
setUpdateAvailable(!!hasUpdate);
|
|
677540
677650
|
if (hasUpdate) {
|
|
677541
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677651
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} -> ${latest}`);
|
|
677542
677652
|
}
|
|
677543
677653
|
};
|
|
677544
677654
|
$3[0] = t1;
|
|
@@ -677572,7 +677682,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
677572
677682
|
wrap: "truncate",
|
|
677573
677683
|
children: [
|
|
677574
677684
|
"currentVersion: ",
|
|
677575
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677685
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
677576
677686
|
]
|
|
677577
677687
|
});
|
|
677578
677688
|
$3[3] = verbose;
|
|
@@ -677823,7 +677933,7 @@ var init_useMemoryUsage = __esm(() => {
|
|
|
677823
677933
|
|
|
677824
677934
|
// components/MemoryUsageIndicator.tsx
|
|
677825
677935
|
function MemoryUsageIndicator() {
|
|
677826
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
677936
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE !== "ant") {
|
|
677827
677937
|
return null;
|
|
677828
677938
|
}
|
|
677829
677939
|
const memoryUsage = useMemoryUsage();
|
|
@@ -687631,7 +687741,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
687631
687741
|
project_dir: getOriginalCwd(),
|
|
687632
687742
|
added_dirs: addedDirs
|
|
687633
687743
|
},
|
|
687634
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
687744
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
687635
687745
|
output_style: {
|
|
687636
687746
|
name: outputStyleName
|
|
687637
687747
|
},
|
|
@@ -688991,7 +689101,7 @@ function ModeIndicator({
|
|
|
688991
689101
|
const expandedView = useAppState((s_3) => s_3.expandedView);
|
|
688992
689102
|
const showSpinnerTree = expandedView === "teammates";
|
|
688993
689103
|
const prStatus = usePrStatus(isLoading, isPrStatusEnabled());
|
|
688994
|
-
const hasTmuxSession = useAppState((s_4) => ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
689104
|
+
const hasTmuxSession = useAppState((s_4) => ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }).USER_TYPE === "ant" && s_4.tungstenActiveSession !== undefined);
|
|
688995
689105
|
const nextTickAt = import_react260.useSyncExternalStore(proactiveModule6?.subscribeToProactiveChanges ?? NO_OP_SUBSCRIBE, proactiveModule6?.getNextTickAt ?? NULL, NULL);
|
|
688996
689106
|
const voiceEnabled = runtimeVoiceFeature() ? useVoiceEnabled() : false;
|
|
688997
689107
|
const voiceState = runtimeVoiceFeature() ? useVoiceState((s_5) => s_5.voiceState) : "idle";
|
|
@@ -689000,7 +689110,7 @@ function ModeIndicator({
|
|
|
689000
689110
|
const selGetState = useSelection().getState;
|
|
689001
689111
|
const hasNextTick = nextTickAt !== null;
|
|
689002
689112
|
const isCoordinator = feature("COORDINATOR_MODE") ? coordinatorModule?.isCoordinatorMode() === true : false;
|
|
689003
|
-
const runningTaskCount = import_react260.useMemo(() => count(Object.values(tasks2), (t3) => isBackgroundTask(t3) && !({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
689113
|
+
const runningTaskCount = import_react260.useMemo(() => count(Object.values(tasks2), (t3) => isBackgroundTask(t3) && !({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && isPanelAgentTask(t3))), [tasks2]);
|
|
689004
689114
|
const tasksV2 = useTasksV2();
|
|
689005
689115
|
const hasTaskItems = tasksV2 !== undefined && tasksV2.length > 0;
|
|
689006
689116
|
const escShortcut = useShortcutDisplay("chat:cancel", "Chat", "esc").toLowerCase();
|
|
@@ -689078,7 +689188,7 @@ function ModeIndicator({
|
|
|
689078
689188
|
]
|
|
689079
689189
|
})
|
|
689080
689190
|
}, "remote")] : [],
|
|
689081
|
-
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
689191
|
+
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && hasTmuxSession ? [/* @__PURE__ */ jsx_runtime440.jsx(TungstenPill, {
|
|
689082
689192
|
selected: tmuxSelected
|
|
689083
689193
|
}, "tmux")] : [],
|
|
689084
689194
|
...isAgentSwarmsEnabled() && hasTeams ? [/* @__PURE__ */ jsx_runtime440.jsx(TeamStatus, {
|
|
@@ -689129,7 +689239,7 @@ function ModeIndicator({
|
|
|
689129
689239
|
]
|
|
689130
689240
|
});
|
|
689131
689241
|
}
|
|
689132
|
-
const hasCoordinatorTasks = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
689242
|
+
const hasCoordinatorTasks = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && getVisibleAgentTasks(tasks2).length > 0;
|
|
689133
689243
|
const tasksPart = hasBackgroundTasks && !hasTeammatePills && !shouldHideTasksFooter(tasks2, showSpinnerTree) ? /* @__PURE__ */ jsx_runtime440.jsx(BackgroundTaskStatus, {
|
|
689134
689244
|
tasksSelected,
|
|
689135
689245
|
isViewingTeammate,
|
|
@@ -689442,7 +689552,7 @@ function PromptInputFooter({
|
|
|
689442
689552
|
isInputWrapped,
|
|
689443
689553
|
isNarrow: stackFooter
|
|
689444
689554
|
}),
|
|
689445
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
689555
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && isUndercover() && /* @__PURE__ */ jsx_runtime441.jsx(ThemedText, {
|
|
689446
689556
|
dimColor: true,
|
|
689447
689557
|
children: "undercover"
|
|
689448
689558
|
}),
|
|
@@ -689453,7 +689563,7 @@ function PromptInputFooter({
|
|
|
689453
689563
|
})
|
|
689454
689564
|
]
|
|
689455
689565
|
}),
|
|
689456
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
689566
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime441.jsx(CoordinatorTaskPanel, {})
|
|
689457
689567
|
]
|
|
689458
689568
|
});
|
|
689459
689569
|
}
|
|
@@ -690215,8 +690325,8 @@ function PromptInput({
|
|
|
690215
690325
|
const replBridgeExplicit = useAppState((s3) => s3.replBridgeExplicit);
|
|
690216
690326
|
const replBridgeReconnecting = useAppState((s3) => s3.replBridgeReconnecting);
|
|
690217
690327
|
const bridgeFooterVisible = replBridgeConnected && (replBridgeExplicit || replBridgeReconnecting);
|
|
690218
|
-
const hasTungstenSession = useAppState((s3) => ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
690219
|
-
const tmuxFooterVisible = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
690328
|
+
const hasTungstenSession = useAppState((s3) => ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }).USER_TYPE === "ant" && s3.tungstenActiveSession !== undefined);
|
|
690329
|
+
const tmuxFooterVisible = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && hasTungstenSession;
|
|
690220
690330
|
const bagelFooterVisible = useAppState((s3) => false);
|
|
690221
690331
|
const teamContext = useAppState((s3) => s3.teamContext);
|
|
690222
690332
|
const queuedCommands = useCommandQueue();
|
|
@@ -690282,7 +690392,7 @@ function PromptInput({
|
|
|
690282
690392
|
};
|
|
690283
690393
|
}), [setAppState]);
|
|
690284
690394
|
const coordinatorTaskCount = useCoordinatorTaskCount();
|
|
690285
|
-
const hasBgTaskPill = import_react266.useMemo(() => Object.values(tasks2).some((t3) => isBackgroundTask(t3) && !({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
690395
|
+
const hasBgTaskPill = import_react266.useMemo(() => Object.values(tasks2).some((t3) => isBackgroundTask(t3) && !({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && isPanelAgentTask(t3))), [tasks2]);
|
|
690286
690396
|
const minCoordinatorIndex = hasBgTaskPill ? -1 : 0;
|
|
690287
690397
|
import_react266.useEffect(() => {
|
|
690288
690398
|
if (coordinatorTaskIndex >= coordinatorTaskCount) {
|
|
@@ -690335,7 +690445,7 @@ function PromptInput({
|
|
|
690335
690445
|
}];
|
|
690336
690446
|
}, [teamContext]);
|
|
690337
690447
|
const runningTaskCount = import_react266.useMemo(() => count(Object.values(tasks2), (t3) => t3.status === "running"), [tasks2]);
|
|
690338
|
-
const tasksFooterVisible = (runningTaskCount > 0 || { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
690448
|
+
const tasksFooterVisible = (runningTaskCount > 0 || { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && coordinatorTaskCount > 0) && !shouldHideTasksFooter(tasks2, showSpinnerTree);
|
|
690339
690449
|
const teamsFooterVisible = cachedTeams.length > 0;
|
|
690340
690450
|
const footerItems = import_react266.useMemo(() => [tasksFooterVisible && "tasks", tmuxFooterVisible && "tmux", bagelFooterVisible && "bagel", teamsFooterVisible && "teams", bridgeFooterVisible && "bridge", companionFooterVisible && "companion"].filter(Boolean), [tasksFooterVisible, tmuxFooterVisible, bagelFooterVisible, teamsFooterVisible, bridgeFooterVisible, companionFooterVisible]);
|
|
690341
690451
|
const rawFooterSelection = useAppState((s3) => s3.footerSelection);
|
|
@@ -691341,14 +691451,14 @@ function PromptInput({
|
|
|
691341
691451
|
});
|
|
691342
691452
|
useKeybindings({
|
|
691343
691453
|
"footer:up": () => {
|
|
691344
|
-
if (tasksSelected && { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
691454
|
+
if (tasksSelected && { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && coordinatorTaskCount > 0 && coordinatorTaskIndex > minCoordinatorIndex) {
|
|
691345
691455
|
setCoordinatorTaskIndex((prev) => prev - 1);
|
|
691346
691456
|
return;
|
|
691347
691457
|
}
|
|
691348
691458
|
navigateFooter(-1, true);
|
|
691349
691459
|
},
|
|
691350
691460
|
"footer:down": () => {
|
|
691351
|
-
if (tasksSelected && { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
691461
|
+
if (tasksSelected && { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && coordinatorTaskCount > 0) {
|
|
691352
691462
|
if (coordinatorTaskIndex < coordinatorTaskCount - 1) {
|
|
691353
691463
|
setCoordinatorTaskIndex((prev) => prev + 1);
|
|
691354
691464
|
}
|
|
@@ -691410,7 +691520,7 @@ function PromptInput({
|
|
|
691410
691520
|
}
|
|
691411
691521
|
break;
|
|
691412
691522
|
case "tmux":
|
|
691413
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
691523
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
691414
691524
|
setAppState((prev) => prev.tungstenPanelAutoHidden ? {
|
|
691415
691525
|
...prev,
|
|
691416
691526
|
tungstenPanelAutoHidden: false
|
|
@@ -709552,7 +709662,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
709552
709662
|
} catch {}
|
|
709553
709663
|
const data = {
|
|
709554
709664
|
trigger,
|
|
709555
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
709665
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
709556
709666
|
platform: process.platform,
|
|
709557
709667
|
transcript,
|
|
709558
709668
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -709988,7 +710098,7 @@ function useMemorySurvey(messages, isLoading, hasActivePrompt = false, {
|
|
|
709988
710098
|
});
|
|
709989
710099
|
}, []);
|
|
709990
710100
|
const shouldShowTranscriptPrompt = import_react300.useCallback((selected_0) => {
|
|
709991
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
710101
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE !== "ant") {
|
|
709992
710102
|
return false;
|
|
709993
710103
|
}
|
|
709994
710104
|
if (selected_0 !== "bad" && selected_0 !== "good") {
|
|
@@ -715663,7 +715773,7 @@ var init_useDeprecationWarningNotification = __esm(() => {
|
|
|
715663
715773
|
function useNpmDeprecationNotification() {
|
|
715664
715774
|
useStartupNotification(_temp306);
|
|
715665
715775
|
}
|
|
715666
|
-
async function _temp306(packageUrl = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
715776
|
+
async function _temp306(packageUrl = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL) {
|
|
715667
715777
|
if (packageUrl !== "@anthropic-ai/claude-code")
|
|
715668
715778
|
return null;
|
|
715669
715779
|
if (isInBundledMode() || isEnvTruthy(process.env.DISABLE_INSTALLATION_CHECKS)) {
|
|
@@ -716318,7 +716428,7 @@ function AutoRunIssueNotification(t0) {
|
|
|
716318
716428
|
return t6;
|
|
716319
716429
|
}
|
|
716320
716430
|
function shouldAutoRunIssue(reason) {
|
|
716321
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
716431
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE !== "ant") {
|
|
716322
716432
|
return false;
|
|
716323
716433
|
}
|
|
716324
716434
|
switch (reason) {
|
|
@@ -716331,7 +716441,7 @@ function shouldAutoRunIssue(reason) {
|
|
|
716331
716441
|
}
|
|
716332
716442
|
}
|
|
716333
716443
|
function getAutoRunCommand(reason) {
|
|
716334
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
716444
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && reason === "feedback_survey_good") {
|
|
716335
716445
|
return "/good-claude";
|
|
716336
716446
|
}
|
|
716337
716447
|
return "/issue";
|
|
@@ -716472,7 +716582,7 @@ var init_useIssueFlagBanner = __esm(() => {
|
|
|
716472
716582
|
|
|
716473
716583
|
// components/DevBar.tsx
|
|
716474
716584
|
function shouldShowDevBar() {
|
|
716475
|
-
return { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
716585
|
+
return { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant";
|
|
716476
716586
|
}
|
|
716477
716587
|
function DevBar() {
|
|
716478
716588
|
const $3 = import_compiler_runtime367.c(5);
|
|
@@ -718384,7 +718494,7 @@ function REPL({
|
|
|
718384
718494
|
}) {
|
|
718385
718495
|
const isRemoteSession = !!remoteSessionConfig;
|
|
718386
718496
|
const titleDisabled = import_react327.useMemo(() => isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE), []);
|
|
718387
|
-
const moreRightEnabled = import_react327.useMemo(() => ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
718497
|
+
const moreRightEnabled = import_react327.useMemo(() => ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }).USER_TYPE === "ant" && isEnvTruthy(process.env.CLAUDE_MORERIGHT), []);
|
|
718388
718498
|
const disableVirtualScroll = import_react327.useMemo(() => isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL), []);
|
|
718389
718499
|
const disableMessageActions = runtimeFeature11("MESSAGE_ACTIONS") ? import_react327.useMemo(() => isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_MESSAGE_ACTIONS), []) : false;
|
|
718390
718500
|
import_react327.useEffect(() => {
|
|
@@ -718473,7 +718583,7 @@ function REPL({
|
|
|
718473
718583
|
const [ideInstallationStatus, setIDEInstallationStatus] = import_react327.useState(null);
|
|
718474
718584
|
const [showIdeOnboarding, setShowIdeOnboarding] = import_react327.useState(false);
|
|
718475
718585
|
const [showModelSwitchCallout, setShowModelSwitchCallout] = import_react327.useState(() => {
|
|
718476
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
718586
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
718477
718587
|
return shouldShowAntModelSwitch();
|
|
718478
718588
|
}
|
|
718479
718589
|
return false;
|
|
@@ -718636,7 +718746,7 @@ function REPL({
|
|
|
718636
718746
|
}, []);
|
|
718637
718747
|
const [showUndercoverCallout, setShowUndercoverCallout] = import_react327.useState(false);
|
|
718638
718748
|
import_react327.useEffect(() => {
|
|
718639
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
718749
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
718640
718750
|
(async () => {
|
|
718641
718751
|
const {
|
|
718642
718752
|
isInternalModelRepo: isInternalModelRepo2
|
|
@@ -719258,9 +719368,9 @@ function REPL({
|
|
|
719258
719368
|
return "ultraplan-launch";
|
|
719259
719369
|
if (allowDialogsWithAnimation && showIdeOnboarding)
|
|
719260
719370
|
return "ide-onboarding";
|
|
719261
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
719371
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && allowDialogsWithAnimation && showModelSwitchCallout)
|
|
719262
719372
|
return "model-switch";
|
|
719263
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
719373
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && allowDialogsWithAnimation && showUndercoverCallout)
|
|
719264
719374
|
return "undercover-callout";
|
|
719265
719375
|
if (allowDialogsWithAnimation && showEffortCallout)
|
|
719266
719376
|
return "effort-callout";
|
|
@@ -719601,7 +719711,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
719601
719711
|
dynamicSkillDirTriggers: new Set,
|
|
719602
719712
|
discoveredSkillNames: discoveredSkillNamesRef.current,
|
|
719603
719713
|
setResponseLength,
|
|
719604
|
-
pushApiMetricsEntry: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
719714
|
+
pushApiMetricsEntry: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? (ttftMs) => {
|
|
719605
719715
|
const now = Date.now();
|
|
719606
719716
|
const baseline = responseLengthRef.current;
|
|
719607
719717
|
apiMetricsRef2.current.push({
|
|
@@ -719880,7 +719990,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
719880
719990
|
}));
|
|
719881
719991
|
}
|
|
719882
719992
|
queryCheckpoint("query_end");
|
|
719883
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
719993
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && apiMetricsRef2.current.length > 0) {
|
|
719884
719994
|
const entries = apiMetricsRef2.current;
|
|
719885
719995
|
const ttfts = entries.map((e3) => e3.ttftMs);
|
|
719886
719996
|
const otpsValues = entries.map((e3) => {
|
|
@@ -719994,7 +720104,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
719994
720104
|
resetLoadingState();
|
|
719995
720105
|
await mrOnTurnComplete(messagesRef.current, abortController2.signal.aborted);
|
|
719996
720106
|
sendBridgeResultRef.current();
|
|
719997
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
720107
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && !abortController2.signal.aborted) {
|
|
719998
720108
|
setAppState((prev) => {
|
|
719999
720109
|
if (prev.tungstenActiveSession === undefined)
|
|
720000
720110
|
return prev;
|
|
@@ -720075,7 +720185,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
720075
720185
|
setPlanSlug(getSessionId(), oldPlanSlug);
|
|
720076
720186
|
}
|
|
720077
720187
|
}
|
|
720078
|
-
const shouldStorePlanForVerification = initialMsg.message.planContent && { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
720188
|
+
const shouldStorePlanForVerification = initialMsg.message.planContent && { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && isEnvTruthy(undefined);
|
|
720079
720189
|
setAppState((prev) => {
|
|
720080
720190
|
let updatedToolPermissionContext = initialMsg.mode ? applyPermissionUpdates(prev.toolPermissionContext, buildPermissionUpdates(initialMsg.mode, initialMsg.allowedPrompts)) : prev.toolPermissionContext;
|
|
720081
720191
|
if (feature("TRANSCRIPT_CLASSIFIER") && initialMsg.mode === "auto") {
|
|
@@ -720516,7 +720626,7 @@ Discuss this with the reviewer. If it changes requirements, submit and review th
|
|
|
720516
720626
|
setAutoRunIssueReason(null);
|
|
720517
720627
|
}, []);
|
|
720518
720628
|
const handleSurveyRequestFeedback = import_react327.useCallback(() => {
|
|
720519
|
-
const command9 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
720629
|
+
const command9 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? "/issue" : "/feedback";
|
|
720520
720630
|
onSubmit(command9, {
|
|
720521
720631
|
setCursorOffset: () => {},
|
|
720522
720632
|
clearBuffer: () => {},
|
|
@@ -720886,7 +720996,7 @@ ${fileList}`);
|
|
|
720886
720996
|
assistantMode: scheduledTasksAssistantMode,
|
|
720887
720997
|
setMessages
|
|
720888
720998
|
});
|
|
720889
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
720999
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
720890
721000
|
useTaskListWatcher({
|
|
720891
721001
|
taskListId,
|
|
720892
721002
|
isLoading,
|
|
@@ -720964,7 +721074,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
720964
721074
|
return total === 1 ? `${customMessage}…` : `${customMessage}… ${completedCount}/${total}`;
|
|
720965
721075
|
}
|
|
720966
721076
|
const hookType = currentHooks[0]?.data.hookEvent === "SubagentStop" ? "subagent stop" : "stop";
|
|
720967
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
721077
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
720968
721078
|
const cmd = currentHooks[completedCount]?.data.command;
|
|
720969
721079
|
const label2 = cmd ? ` '${truncateToWidth(cmd, 40)}'` : "";
|
|
720970
721080
|
return total === 1 ? `running ${hookType} hook${label2}` : `running ${hookType} hook${label2}… ${completedCount}/${total}`;
|
|
@@ -721346,7 +721456,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
721346
721456
|
width: "100%",
|
|
721347
721457
|
children: toolJSX.jsx
|
|
721348
721458
|
}),
|
|
721349
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
721459
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime475.jsx(TungstenLiveMonitor, {}),
|
|
721350
721460
|
feature("WEB_BROWSER_TOOL") ? WebBrowserPanelModule && /* @__PURE__ */ jsx_runtime475.jsx(WebBrowserPanelModule.WebBrowserPanel, {}) : null,
|
|
721351
721461
|
/* @__PURE__ */ jsx_runtime475.jsx(ThemedBox_default, {
|
|
721352
721462
|
flexGrow: 1
|
|
@@ -721605,7 +721715,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
721605
721715
|
onDone: () => setShowIdeOnboarding(false),
|
|
721606
721716
|
installationStatus: ideInstallationStatus
|
|
721607
721717
|
}),
|
|
721608
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
721718
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && focusedInputDialog === "model-switch" && AntModelSwitchCallout25 && /* @__PURE__ */ jsx_runtime475.jsx(AntModelSwitchCallout25, {
|
|
721609
721719
|
onDone: (selection, modelAlias) => {
|
|
721610
721720
|
setShowModelSwitchCallout(false);
|
|
721611
721721
|
if (selection === "switch" && modelAlias) {
|
|
@@ -721618,7 +721728,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
721618
721728
|
}
|
|
721619
721729
|
}
|
|
721620
721730
|
}),
|
|
721621
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
721731
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && focusedInputDialog === "undercover-callout" && UndercoverAutoCallout25 && /* @__PURE__ */ jsx_runtime475.jsx(UndercoverAutoCallout25, {
|
|
721622
721732
|
onDone: () => setShowUndercoverCallout(false)
|
|
721623
721733
|
}),
|
|
721624
721734
|
focusedInputDialog === "effort-callout" && /* @__PURE__ */ jsx_runtime475.jsx(EffortCallout, {
|
|
@@ -721752,7 +721862,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
721752
721862
|
inputValue,
|
|
721753
721863
|
setInputValue
|
|
721754
721864
|
}),
|
|
721755
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
721865
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && skillImprovementSurvey.suggestion && /* @__PURE__ */ jsx_runtime475.jsx(SkillImprovementSurvey, {
|
|
721756
721866
|
isOpen: skillImprovementSurvey.isOpen,
|
|
721757
721867
|
skillName: skillImprovementSurvey.suggestion.skillName,
|
|
721758
721868
|
updates: skillImprovementSurvey.suggestion.updates,
|
|
@@ -721887,7 +721997,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
721887
721997
|
setMessageSelectorPreselect(undefined);
|
|
721888
721998
|
}
|
|
721889
721999
|
}),
|
|
721890
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
722000
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime475.jsx(DevBar, {})
|
|
721891
722001
|
]
|
|
721892
722002
|
}),
|
|
721893
722003
|
feature("BUDDY") && !(companionNarrow && isFullscreenEnvEnabled()) && companionVisible ? /* @__PURE__ */ jsx_runtime475.jsx(CompanionSprite, {}) : null
|
|
@@ -722124,17 +722234,17 @@ var init_REPL = __esm(() => {
|
|
|
722124
722234
|
resetAnchor: () => {}
|
|
722125
722235
|
});
|
|
722126
722236
|
VoiceKeybindingHandler26 = runtimeVoiceFeature() ? (init_useVoiceIntegration(), __toCommonJS(exports_useVoiceIntegration)).VoiceKeybindingHandler : () => null;
|
|
722127
|
-
useFrustrationDetection26 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
722237
|
+
useFrustrationDetection26 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? __toCommonJS(exports_useFrustrationDetection).useFrustrationDetection : () => ({
|
|
722128
722238
|
state: "closed",
|
|
722129
722239
|
handleTranscriptSelect: () => {}
|
|
722130
722240
|
});
|
|
722131
|
-
useAntOrgWarningNotification26 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
722241
|
+
useAntOrgWarningNotification26 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? __toCommonJS(exports_useAntOrgWarningNotification).useAntOrgWarningNotification : () => {};
|
|
722132
722242
|
getCoordinatorUserContext26 = feature("COORDINATOR_MODE") ? (init_coordinatorMode(), __toCommonJS(exports_coordinatorMode)).getCoordinatorUserContext : () => ({});
|
|
722133
722243
|
proactiveModule8 = feature("PROACTIVE") || feature("KAIROS") ? __toCommonJS(exports_proactive) : null;
|
|
722134
722244
|
useProactive25 = feature("PROACTIVE") || feature("KAIROS") ? (init_useProactive(), __toCommonJS(exports_useProactive)).useProactive : null;
|
|
722135
|
-
AntModelSwitchCallout25 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
722136
|
-
shouldShowAntModelSwitch = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
722137
|
-
UndercoverAutoCallout25 = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
722245
|
+
AntModelSwitchCallout25 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? (init_AntModelSwitchCallout(), __toCommonJS(exports_AntModelSwitchCallout)).AntModelSwitchCallout : null;
|
|
722246
|
+
shouldShowAntModelSwitch = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? (init_AntModelSwitchCallout(), __toCommonJS(exports_AntModelSwitchCallout)).shouldShowModelSwitchCallout : () => false;
|
|
722247
|
+
UndercoverAutoCallout25 = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? (init_UndercoverAutoCallout(), __toCommonJS(exports_UndercoverAutoCallout)).UndercoverAutoCallout : null;
|
|
722138
722248
|
WebBrowserPanelModule = feature("WEB_BROWSER_TOOL") ? __toCommonJS(exports_WebBrowserPanel) : null;
|
|
722139
722249
|
EMPTY_MCP_CLIENTS2 = [];
|
|
722140
722250
|
HISTORY_STUB = {
|
|
@@ -724928,7 +725038,7 @@ function WelcomeV2() {
|
|
|
724928
725038
|
dimColor: true,
|
|
724929
725039
|
children: [
|
|
724930
725040
|
"v",
|
|
724931
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
725041
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
724932
725042
|
" "
|
|
724933
725043
|
]
|
|
724934
725044
|
})
|
|
@@ -725127,7 +725237,7 @@ function WelcomeV2() {
|
|
|
725127
725237
|
dimColor: true,
|
|
725128
725238
|
children: [
|
|
725129
725239
|
"v",
|
|
725130
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
725240
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
725131
725241
|
" "
|
|
725132
725242
|
]
|
|
725133
725243
|
})
|
|
@@ -725353,7 +725463,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
725353
725463
|
dimColor: true,
|
|
725354
725464
|
children: [
|
|
725355
725465
|
"v",
|
|
725356
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
725466
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
725357
725467
|
" "
|
|
725358
725468
|
]
|
|
725359
725469
|
});
|
|
@@ -725571,7 +725681,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
725571
725681
|
dimColor: true,
|
|
725572
725682
|
children: [
|
|
725573
725683
|
"v",
|
|
725574
|
-
{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
725684
|
+
{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
725575
725685
|
" "
|
|
725576
725686
|
]
|
|
725577
725687
|
});
|
|
@@ -727161,7 +727271,7 @@ function completeOnboarding() {
|
|
|
727161
727271
|
saveGlobalConfig((current) => ({
|
|
727162
727272
|
...current,
|
|
727163
727273
|
hasCompletedOnboarding: true,
|
|
727164
|
-
lastOnboardingVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
727274
|
+
lastOnboardingVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
727165
727275
|
}));
|
|
727166
727276
|
}
|
|
727167
727277
|
function showDialog(root, renderer) {
|
|
@@ -741010,7 +741120,7 @@ async function startMCPServer(cwd3, debug5, verbose) {
|
|
|
741010
741120
|
setCwd(cwd3);
|
|
741011
741121
|
const server = new Server({
|
|
741012
741122
|
name: "claude/tengu",
|
|
741013
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
741123
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION
|
|
741014
741124
|
}, {
|
|
741015
741125
|
capabilities: {
|
|
741016
741126
|
tools: {}
|
|
@@ -742815,7 +742925,7 @@ __export(exports_update, {
|
|
|
742815
742925
|
});
|
|
742816
742926
|
async function update() {
|
|
742817
742927
|
logEvent("tengu_update_check", {});
|
|
742818
|
-
writeToStdout(`Current version: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
742928
|
+
writeToStdout(`Current version: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION}
|
|
742819
742929
|
`);
|
|
742820
742930
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
742821
742931
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -742890,8 +743000,8 @@ async function update() {
|
|
|
742890
743000
|
writeToStdout(`CCL is managed by Homebrew.
|
|
742891
743001
|
`);
|
|
742892
743002
|
const latest = await getLatestVersion(channel2);
|
|
742893
|
-
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
742894
|
-
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743003
|
+
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, latest)) {
|
|
743004
|
+
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} → ${latest}
|
|
742895
743005
|
`);
|
|
742896
743006
|
writeToStdout(`
|
|
742897
743007
|
`);
|
|
@@ -742907,8 +743017,8 @@ async function update() {
|
|
|
742907
743017
|
writeToStdout(`CCL is managed by winget.
|
|
742908
743018
|
`);
|
|
742909
743019
|
const latest = await getLatestVersion(channel2);
|
|
742910
|
-
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
742911
|
-
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743020
|
+
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, latest)) {
|
|
743021
|
+
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} → ${latest}
|
|
742912
743022
|
`);
|
|
742913
743023
|
writeToStdout(`
|
|
742914
743024
|
`);
|
|
@@ -742924,8 +743034,8 @@ async function update() {
|
|
|
742924
743034
|
writeToStdout(`CCL is managed by apk.
|
|
742925
743035
|
`);
|
|
742926
743036
|
const latest = await getLatestVersion(channel2);
|
|
742927
|
-
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
742928
|
-
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743037
|
+
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION, latest)) {
|
|
743038
|
+
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} → ${latest}
|
|
742929
743039
|
`);
|
|
742930
743040
|
writeToStdout(`
|
|
742931
743041
|
`);
|
|
@@ -742990,11 +743100,11 @@ async function update() {
|
|
|
742990
743100
|
`);
|
|
742991
743101
|
await gracefulShutdown(1);
|
|
742992
743102
|
}
|
|
742993
|
-
if (result.latestVersion === { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
742994
|
-
writeToStdout(source_default.green(`CCL is up to date (${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743103
|
+
if (result.latestVersion === { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION) {
|
|
743104
|
+
writeToStdout(source_default.green(`CCL is up to date (${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION})`) + `
|
|
742995
743105
|
`);
|
|
742996
743106
|
} else {
|
|
742997
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743107
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} to version ${result.latestVersion}`) + `
|
|
742998
743108
|
`);
|
|
742999
743109
|
await regenerateCompletionCache();
|
|
743000
743110
|
}
|
|
@@ -743013,9 +743123,9 @@ async function update() {
|
|
|
743013
743123
|
await removeInstalledSymlink();
|
|
743014
743124
|
}
|
|
743015
743125
|
logForDebugging("update: Checking npm registry for latest version");
|
|
743016
|
-
logForDebugging(`update: Package URL: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743126
|
+
logForDebugging(`update: Package URL: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}`);
|
|
743017
743127
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
743018
|
-
const npmCommand = `npm view ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743128
|
+
const npmCommand = `npm view ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}@${npmTag} version`;
|
|
743019
743129
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
743020
743130
|
const latestVersion = await getLatestVersion(channel2);
|
|
743021
743131
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -743035,7 +743145,7 @@ async function update() {
|
|
|
743035
743145
|
`);
|
|
743036
743146
|
process.stderr.write(` • Corporate proxy/firewall blocking npm
|
|
743037
743147
|
`);
|
|
743038
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743148
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL && !{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL.startsWith("@anthropic")) {
|
|
743039
743149
|
process.stderr.write(` • Internal/development build not published to npm
|
|
743040
743150
|
`);
|
|
743041
743151
|
}
|
|
@@ -743047,19 +743157,19 @@ async function update() {
|
|
|
743047
743157
|
`);
|
|
743048
743158
|
process.stderr.write(` • Run with --debug flag for more details
|
|
743049
743159
|
`);
|
|
743050
|
-
const packageName = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743160
|
+
const packageName = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@anthropic-ai/claude-cli" : "@anthropic-ai/claude-code");
|
|
743051
743161
|
process.stderr.write(` • Manually check: npm view ${packageName} version
|
|
743052
743162
|
`);
|
|
743053
743163
|
process.stderr.write(` • Check if you need to login: npm whoami
|
|
743054
743164
|
`);
|
|
743055
743165
|
await gracefulShutdown(1);
|
|
743056
743166
|
}
|
|
743057
|
-
if (latestVersion === { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743058
|
-
writeToStdout(source_default.green(`CCL is up to date (${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743167
|
+
if (latestVersion === { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION) {
|
|
743168
|
+
writeToStdout(source_default.green(`CCL is up to date (${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION})`) + `
|
|
743059
743169
|
`);
|
|
743060
743170
|
await gracefulShutdown(0);
|
|
743061
743171
|
}
|
|
743062
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743172
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION})
|
|
743063
743173
|
`);
|
|
743064
743174
|
writeToStdout(`Installing update...
|
|
743065
743175
|
`);
|
|
@@ -743104,7 +743214,7 @@ async function update() {
|
|
|
743104
743214
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
743105
743215
|
switch (status2) {
|
|
743106
743216
|
case "success":
|
|
743107
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743217
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} to version ${latestVersion}`) + `
|
|
743108
743218
|
`);
|
|
743109
743219
|
await regenerateCompletionCache();
|
|
743110
743220
|
break;
|
|
@@ -743114,7 +743224,7 @@ async function update() {
|
|
|
743114
743224
|
if (useLocalUpdate) {
|
|
743115
743225
|
process.stderr.write(`Try manually updating with:
|
|
743116
743226
|
`);
|
|
743117
|
-
process.stderr.write(` cd ~/.claude/local && npm update ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743227
|
+
process.stderr.write(` cd ~/.claude/local && npm update ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}
|
|
743118
743228
|
`);
|
|
743119
743229
|
} else {
|
|
743120
743230
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -743130,7 +743240,7 @@ async function update() {
|
|
|
743130
743240
|
if (useLocalUpdate) {
|
|
743131
743241
|
process.stderr.write(`Try manually updating with:
|
|
743132
743242
|
`);
|
|
743133
|
-
process.stderr.write(` cd ~/.claude/local && npm update ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743243
|
+
process.stderr.write(` cd ~/.claude/local && npm update ${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.PACKAGE_URL}
|
|
743134
743244
|
`);
|
|
743135
743245
|
} else {
|
|
743136
743246
|
process.stderr.write(`Or consider using native installation with: margay install
|
|
@@ -743423,7 +743533,7 @@ function runMigrations() {
|
|
|
743423
743533
|
if (feature("TRANSCRIPT_CLASSIFIER")) {
|
|
743424
743534
|
resetAutoModeOptInForDefaultOffer();
|
|
743425
743535
|
}
|
|
743426
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743536
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
743427
743537
|
migrateFennecToOpus();
|
|
743428
743538
|
}
|
|
743429
743539
|
saveGlobalConfig((prev) => prev.migrationVersion === CURRENT_MIGRATION_VERSION ? prev : {
|
|
@@ -743470,7 +743580,7 @@ function startDeferredPrefetches() {
|
|
|
743470
743580
|
if (!isBareMode()) {
|
|
743471
743581
|
skillChangeDetector.initialize();
|
|
743472
743582
|
}
|
|
743473
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
743583
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
743474
743584
|
Promise.resolve().then(() => exports_eventLoopStallDetector).then((m4) => m4.startEventLoopStallDetector());
|
|
743475
743585
|
}
|
|
743476
743586
|
}
|
|
@@ -743962,9 +744072,9 @@ async function run() {
|
|
|
743962
744072
|
const initOnly = options.initOnly ?? false;
|
|
743963
744073
|
const maintenance = options.maintenance ?? false;
|
|
743964
744074
|
const disableSlashCommands = options.disableSlashCommands || false;
|
|
743965
|
-
const tasksOption = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
744075
|
+
const tasksOption = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && options.tasks;
|
|
743966
744076
|
const taskListId = tasksOption ? typeof tasksOption === "string" ? tasksOption : DEFAULT_TASKS_MODE_TASK_LIST_ID : undefined;
|
|
743967
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
744077
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && taskListId) {
|
|
743968
744078
|
process.env.CLAUDE_CODE_TASK_LIST_ID = taskListId;
|
|
743969
744079
|
}
|
|
743970
744080
|
const worktreeOption = isWorktreeModeEnabled() ? options.worktree : undefined;
|
|
@@ -744250,7 +744360,7 @@ ${formattedErrors}
|
|
|
744250
744360
|
}
|
|
744251
744361
|
const chromeOpts = options;
|
|
744252
744362
|
setChromeFlagOverride(chromeOpts.chrome);
|
|
744253
|
-
const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome) && ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
744363
|
+
const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome) && ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" || isClaudeAISubscriber());
|
|
744254
744364
|
const autoEnableClaudeInChrome = !enableClaudeInChrome && shouldAutoEnableClaudeInChrome();
|
|
744255
744365
|
if (enableClaudeInChrome) {
|
|
744256
744366
|
const platform6 = getPlatform();
|
|
@@ -744423,7 +744533,7 @@ ${hint}` : hint;
|
|
|
744423
744533
|
dangerousPermissions,
|
|
744424
744534
|
overlyBroadBashPermissions
|
|
744425
744535
|
} = initResult;
|
|
744426
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
744536
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && overlyBroadBashPermissions.length > 0) {
|
|
744427
744537
|
for (const permission of overlyBroadBashPermissions) {
|
|
744428
744538
|
logForDebugging(`Ignoring overly broad shell permission ${permission.ruleDisplay} from ${permission.sourceDisplay}`);
|
|
744429
744539
|
}
|
|
@@ -744563,7 +744673,7 @@ ${hint}` : hint;
|
|
|
744563
744673
|
cacheSessionTitle(sessionNameArg);
|
|
744564
744674
|
}
|
|
744565
744675
|
const explicitModel = options.model || process.env.ANTHROPIC_MODEL;
|
|
744566
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
744676
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && explicitModel && explicitModel !== "default" && !hasGrowthBookEnvOverride("tengu_ant_model_override") && getGlobalConfig().cachedGrowthBookFeatures?.["tengu_ant_model_override"] == null) {
|
|
744567
744677
|
await initializeGrowthBook();
|
|
744568
744678
|
}
|
|
744569
744679
|
const userSpecifiedModel = options.model;
|
|
@@ -744686,7 +744796,7 @@ ${inputPrompt}` : mainThreadAgentDefinition.initialPrompt;
|
|
|
744686
744796
|
}
|
|
744687
744797
|
if (customAgent.memory) {
|
|
744688
744798
|
logEvent("tengu_agent_memory_loaded", {
|
|
744689
|
-
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
744799
|
+
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" && {
|
|
744690
744800
|
agent_type: customAgent.agentType
|
|
744691
744801
|
},
|
|
744692
744802
|
scope: customAgent.memory,
|
|
@@ -744742,7 +744852,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
744742
744852
|
const ctx = getRenderContext(false);
|
|
744743
744853
|
getFpsMetrics = ctx.getFpsMetrics;
|
|
744744
744854
|
stats2 = ctx.stats;
|
|
744745
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
744855
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
744746
744856
|
installAsciicastRecorder();
|
|
744747
744857
|
}
|
|
744748
744858
|
const {
|
|
@@ -744930,7 +745040,7 @@ ${inputPrompt}` : mergePrompt;
|
|
|
744930
745040
|
}
|
|
744931
745041
|
}
|
|
744932
745042
|
logForDiagnosticsNoPII("info", "started", {
|
|
744933
|
-
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
745043
|
+
version: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
744934
745044
|
is_native_binary: isInBundledMode()
|
|
744935
745045
|
});
|
|
744936
745046
|
registerCleanup(async () => {
|
|
@@ -745163,7 +745273,7 @@ ${inputPrompt}` : mergePrompt;
|
|
|
745163
745273
|
if (!isBareMode()) {
|
|
745164
745274
|
startDeferredPrefetches();
|
|
745165
745275
|
Promise.resolve().then(() => (init_backgroundHousekeeping(), exports_backgroundHousekeeping)).then((m4) => m4.startBackgroundHousekeeping());
|
|
745166
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
745276
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
745167
745277
|
Promise.resolve().then(() => exports_sdkHeapDumpMonitor).then((m4) => m4.startSdkMemoryMonitor());
|
|
745168
745278
|
}
|
|
745169
745279
|
}
|
|
@@ -745377,7 +745487,7 @@ ${inputPrompt}` : mergePrompt;
|
|
|
745377
745487
|
logStartupTelemetry();
|
|
745378
745488
|
logSessionTelemetry();
|
|
745379
745489
|
});
|
|
745380
|
-
const sessionUploaderPromise = { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
745490
|
+
const sessionUploaderPromise = { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? Promise.resolve().then(() => exports_sessionDataUploader) : null;
|
|
745381
745491
|
const uploaderReady = sessionUploaderPromise ? sessionUploaderPromise.then((mod4) => mod4.createSessionTurnUploader()).catch(() => null) : null;
|
|
745382
745492
|
const sessionConfig = {
|
|
745383
745493
|
debug: debug5 || debugToStderr,
|
|
@@ -745521,7 +745631,7 @@ Session: ${directConnectConfig.sessionId}`, "info");
|
|
|
745521
745631
|
sshSession = await createSSHSession2({
|
|
745522
745632
|
host: _pendingSSH.host,
|
|
745523
745633
|
cwd: _pendingSSH.cwd,
|
|
745524
|
-
localVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
745634
|
+
localVersion: { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION,
|
|
745525
745635
|
permissionMode: _pendingSSH.permissionMode,
|
|
745526
745636
|
dangerouslySkipPermissions: _pendingSSH.dangerouslySkipPermissions,
|
|
745527
745637
|
extraCliArgs: _pendingSSH.extraCliArgs
|
|
@@ -745823,7 +745933,7 @@ Usage: margay --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
745823
745933
|
}
|
|
745824
745934
|
}
|
|
745825
745935
|
}
|
|
745826
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
745936
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
745827
745937
|
if (options.resume && typeof options.resume === "string" && !maybeSessionId) {
|
|
745828
745938
|
const {
|
|
745829
745939
|
parseCcshareId: parseCcshareId2,
|
|
@@ -746026,13 +746136,13 @@ Usage: margay --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
746026
746136
|
pendingHookMessages
|
|
746027
746137
|
}, renderAndRun);
|
|
746028
746138
|
}
|
|
746029
|
-
}).version(`${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746139
|
+
}).version(`${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} (CCL)`, "-v, --version", "Output the version number");
|
|
746030
746140
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
746031
746141
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
746032
746142
|
if (canUserConfigureAdvisor()) {
|
|
746033
746143
|
program2.addOption(new Option("--advisor <model>", "Enable the server-side advisor tool with the specified model (alias or full ID).").hideHelp());
|
|
746034
746144
|
}
|
|
746035
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746145
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
746036
746146
|
program2.addOption(new Option("--delegate-permissions", "[ANT-ONLY] Alias for --permission-mode auto.").implies({
|
|
746037
746147
|
permissionMode: "auto"
|
|
746038
746148
|
}));
|
|
@@ -746410,7 +746520,7 @@ Omit sessionId to discover and pick from available sessions.
|
|
|
746410
746520
|
} = await Promise.resolve().then(() => (init_update(), exports_update));
|
|
746411
746521
|
await update2();
|
|
746412
746522
|
});
|
|
746413
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746523
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
746414
746524
|
program2.command("up").description('[ANT-ONLY] Initialize or upgrade the local dev environment using the "# claude up" section of the nearest CCL.md').action(async () => {
|
|
746415
746525
|
const {
|
|
746416
746526
|
up: up2
|
|
@@ -746418,7 +746528,7 @@ Omit sessionId to discover and pick from available sessions.
|
|
|
746418
746528
|
await up2();
|
|
746419
746529
|
});
|
|
746420
746530
|
}
|
|
746421
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746531
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
746422
746532
|
program2.command("rollback [target]").description(`[ANT-ONLY] Roll back to a previous release
|
|
746423
746533
|
|
|
746424
746534
|
Examples:
|
|
@@ -746437,7 +746547,7 @@ Examples:
|
|
|
746437
746547
|
} = await Promise.resolve().then(() => (init_util(), exports_util));
|
|
746438
746548
|
await installHandler2(target, options);
|
|
746439
746549
|
});
|
|
746440
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746550
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
746441
746551
|
const validateLogId = (value2) => {
|
|
746442
746552
|
const maybeSessionId = validateUuid2(value2);
|
|
746443
746553
|
if (maybeSessionId)
|
|
@@ -746467,7 +746577,7 @@ Examples:
|
|
|
746467
746577
|
} = await Promise.resolve().then(() => exports_ant);
|
|
746468
746578
|
await exportHandler2(source, outputFile);
|
|
746469
746579
|
});
|
|
746470
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746580
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant") {
|
|
746471
746581
|
const taskCmd = program2.command("task").description("[ANT-ONLY] Manage task list tasks");
|
|
746472
746582
|
taskCmd.command("create <subject>").description("Create a new task").option("-d, --description <text>", "Task description").option("-l, --list <id>", 'Task list ID (defaults to "tasklist")').action(async (subject, opts) => {
|
|
746473
746583
|
const {
|
|
@@ -746542,7 +746652,7 @@ async function logTenguInit({
|
|
|
746542
746652
|
}) {
|
|
746543
746653
|
try {
|
|
746544
746654
|
const { startClientEventSession: startClientEventSession2 } = await Promise.resolve().then(() => (init_clientEventRuntime(), exports_clientEventRuntime));
|
|
746545
|
-
startClientEventSession2(getSessionId(), { USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746655
|
+
startClientEventSession2(getSessionId(), { USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION);
|
|
746546
746656
|
logEvent("tengu_init", {
|
|
746547
746657
|
entrypoint: "claude",
|
|
746548
746658
|
hasInitialPrompt,
|
|
@@ -746579,7 +746689,7 @@ async function logTenguInit({
|
|
|
746579
746689
|
assistantActivationPath
|
|
746580
746690
|
},
|
|
746581
746691
|
autoUpdatesChannel: getInitialSettings().autoUpdatesChannel ?? "latest",
|
|
746582
|
-
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746692
|
+
...{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE === "ant" ? (() => {
|
|
746583
746693
|
const cwd5 = getCwd();
|
|
746584
746694
|
const gitRoot = findGitRoot(cwd5);
|
|
746585
746695
|
const rp = gitRoot ? relative42(gitRoot, cwd5) || "." : undefined;
|
|
@@ -746802,7 +746912,7 @@ var init_main2 = __esm(() => {
|
|
|
746802
746912
|
kairosGate = feature("KAIROS") ? __toCommonJS(exports_gate) : null;
|
|
746803
746913
|
autoModeStateModule7 = feature("TRANSCRIPT_CLASSIFIER") ? __toCommonJS(exports_autoModeState) : null;
|
|
746804
746914
|
profileCheckpoint("main_tsx_imports_loaded");
|
|
746805
|
-
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
746915
|
+
if ({ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.USER_TYPE !== "ant" && isBeingDebugged()) {
|
|
746806
746916
|
process.exit(1);
|
|
746807
746917
|
}
|
|
746808
746918
|
_pendingConnect = feature("DIRECT_CONNECT") ? {
|
|
@@ -746909,7 +747019,7 @@ if (feature("ABLATION_BASELINE") && process.env.CLAUDE_CODE_ABLATION_BASELINE) {
|
|
|
746909
747019
|
async function main2() {
|
|
746910
747020
|
const args = process.argv.slice(2);
|
|
746911
747021
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
746912
|
-
console.log(`${{ USER_TYPE: "external", VERSION: "1.4.5-rc.
|
|
747022
|
+
console.log(`${{ USER_TYPE: "external", VERSION: "1.4.5-rc.9", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-10-14T11:17:23.554Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.4.5-rc.9" }.VERSION} (Margay)`);
|
|
746913
747023
|
return;
|
|
746914
747024
|
}
|
|
746915
747025
|
if (args[0] === "business") {
|