@margay/ccl-core 1.3.6-alpha.2 → 1.3.6-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +655 -384
- package/package.json +1 -1
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.3.6-alpha.
|
|
119
|
+
version: "1.3.6-alpha.3",
|
|
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",
|
|
@@ -162503,7 +162503,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
162503
162503
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
162504
162504
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
162505
162505
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
162506
|
-
const error5 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
162506
|
+
const error5 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.FEEDBACK_CHANNEL}.`);
|
|
162507
162507
|
logAntError("apiKeyHelper invoked before trust check", error5);
|
|
162508
162508
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
162509
162509
|
return null;
|
|
@@ -162547,7 +162547,7 @@ async function runAwsAuthRefresh() {
|
|
|
162547
162547
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
162548
162548
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
162549
162549
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
162550
|
-
const error5 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
162550
|
+
const error5 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.FEEDBACK_CHANNEL}.`);
|
|
162551
162551
|
logAntError("awsAuthRefresh invoked before trust check", error5);
|
|
162552
162552
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
162553
162553
|
return false;
|
|
@@ -162607,7 +162607,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
162607
162607
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
162608
162608
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
162609
162609
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
162610
|
-
const error5 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
162610
|
+
const error5 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.FEEDBACK_CHANNEL}.`);
|
|
162611
162611
|
logAntError("awsCredentialExport invoked before trust check", error5);
|
|
162612
162612
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
162613
162613
|
return null;
|
|
@@ -162692,7 +162692,7 @@ async function runGcpAuthRefresh() {
|
|
|
162692
162692
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
162693
162693
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
162694
162694
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
162695
|
-
const error5 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
162695
|
+
const error5 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.FEEDBACK_CHANNEL}.`);
|
|
162696
162696
|
logAntError("gcpAuthRefresh invoked before trust check", error5);
|
|
162697
162697
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
162698
162698
|
return false;
|
|
@@ -163402,7 +163402,7 @@ var init_auth2 = __esm(() => {
|
|
|
163402
163402
|
|
|
163403
163403
|
// utils/userAgent.ts
|
|
163404
163404
|
function getClaudeCodeUserAgent() {
|
|
163405
|
-
return `claude-code/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
163405
|
+
return `claude-code/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}`;
|
|
163406
163406
|
}
|
|
163407
163407
|
|
|
163408
163408
|
// utils/workloadContext.ts
|
|
@@ -163424,7 +163424,7 @@ function getUserAgent() {
|
|
|
163424
163424
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
163425
163425
|
const workload = getWorkload();
|
|
163426
163426
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
163427
|
-
return `claude-cli/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
163427
|
+
return `claude-cli/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
163428
163428
|
}
|
|
163429
163429
|
function getMCPUserAgent() {
|
|
163430
163430
|
const parts = [];
|
|
@@ -163438,7 +163438,7 @@ function getMCPUserAgent() {
|
|
|
163438
163438
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
163439
163439
|
}
|
|
163440
163440
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
163441
|
-
return `claude-code/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
163441
|
+
return `claude-code/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}${suffix}`;
|
|
163442
163442
|
}
|
|
163443
163443
|
function getWebFetchUserAgent() {
|
|
163444
163444
|
return `Claude-User (${getClaudeCodeUserAgent()}; +https://support.anthropic.com/)`;
|
|
@@ -163576,7 +163576,7 @@ var init_user = __esm(() => {
|
|
|
163576
163576
|
deviceId,
|
|
163577
163577
|
sessionId: getSessionId(),
|
|
163578
163578
|
email: getEmail(),
|
|
163579
|
-
appVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
163579
|
+
appVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
163580
163580
|
platform: getHostPlatformForAnalytics(),
|
|
163581
163581
|
organizationUuid,
|
|
163582
163582
|
accountUuid,
|
|
@@ -171273,7 +171273,7 @@ var init_metadata = __esm(() => {
|
|
|
171273
171273
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
171274
171274
|
WHITESPACE_REGEX = /\s+/;
|
|
171275
171275
|
getVersionBase = memoize20(() => {
|
|
171276
|
-
const match = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
171276
|
+
const match = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
171277
171277
|
return match ? match[0] : undefined;
|
|
171278
171278
|
});
|
|
171279
171279
|
buildEnvContext = memoize20(async () => {
|
|
@@ -171313,9 +171313,9 @@ var init_metadata = __esm(() => {
|
|
|
171313
171313
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
171314
171314
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
171315
171315
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
171316
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
171316
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
171317
171317
|
versionBase: getVersionBase(),
|
|
171318
|
-
buildTime: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
171318
|
+
buildTime: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.BUILD_TIME,
|
|
171319
171319
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
171320
171320
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
171321
171321
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -171982,7 +171982,7 @@ function initialize1PEventLogging() {
|
|
|
171982
171982
|
const platform2 = getPlatform();
|
|
171983
171983
|
const attributes = {
|
|
171984
171984
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "claude-code",
|
|
171985
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
171985
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
171986
171986
|
};
|
|
171987
171987
|
if (platform2 === "wsl") {
|
|
171988
171988
|
const wslVersion = getWslVersion();
|
|
@@ -172009,7 +172009,7 @@ function initialize1PEventLogging() {
|
|
|
172009
172009
|
})
|
|
172010
172010
|
]
|
|
172011
172011
|
});
|
|
172012
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
172012
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION);
|
|
172013
172013
|
}
|
|
172014
172014
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
172015
172015
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -200929,7 +200929,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
200929
200929
|
if (!isAttributionHeaderEnabled()) {
|
|
200930
200930
|
return "";
|
|
200931
200931
|
}
|
|
200932
|
-
const version4 = `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
200932
|
+
const version4 = `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}.${fingerprint}`;
|
|
200933
200933
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
200934
200934
|
const cch = "";
|
|
200935
200935
|
const workload = getWorkload();
|
|
@@ -233150,7 +233150,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
233150
233150
|
}
|
|
233151
233151
|
function getFeedbackGuideline() {
|
|
233152
233152
|
if (isUsing3PServices()) {
|
|
233153
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
233153
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.ISSUES_EXPLAINER}`;
|
|
233154
233154
|
}
|
|
233155
233155
|
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";
|
|
233156
233156
|
}
|
|
@@ -233945,7 +233945,7 @@ Use the literal string \`VERDICT: \` followed by exactly one of \`PASS\`, \`FAIL
|
|
|
233945
233945
|
|
|
233946
233946
|
// services/api/gatewayTransport.ts
|
|
233947
233947
|
function getCclGatewayUA(model) {
|
|
233948
|
-
return model ? `ccl/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
233948
|
+
return model ? `ccl/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} (${model})` : `ccl/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}`;
|
|
233949
233949
|
}
|
|
233950
233950
|
function normalizeGatewayRequestId(value) {
|
|
233951
233951
|
if (typeof value !== "string" || value.length === 0 || value.length > 128) {
|
|
@@ -234470,6 +234470,160 @@ var init_gatewayTransport = __esm(() => {
|
|
|
234470
234470
|
};
|
|
234471
234471
|
});
|
|
234472
234472
|
|
|
234473
|
+
// services/api/boundedOperation.ts
|
|
234474
|
+
function boundedOperationPolicy(totalMs) {
|
|
234475
|
+
return {
|
|
234476
|
+
deadlineAtMs: Date.now() + totalMs,
|
|
234477
|
+
firstEventTimeoutMs: 300000,
|
|
234478
|
+
idleDataTimeoutMs: 300000,
|
|
234479
|
+
waitingIntervalMs: 30000
|
|
234480
|
+
};
|
|
234481
|
+
}
|
|
234482
|
+
|
|
234483
|
+
class BoundedOperation {
|
|
234484
|
+
caller;
|
|
234485
|
+
policy;
|
|
234486
|
+
onActivity;
|
|
234487
|
+
controller = new AbortController;
|
|
234488
|
+
signal = this.controller.signal;
|
|
234489
|
+
startedAt = Date.now();
|
|
234490
|
+
dataAt;
|
|
234491
|
+
timer;
|
|
234492
|
+
waiting;
|
|
234493
|
+
disposed = false;
|
|
234494
|
+
onAbort = () => this.controller.abort(new DOMException("Operation cancelled", "AbortError"));
|
|
234495
|
+
constructor(caller, policy, onActivity) {
|
|
234496
|
+
this.caller = caller;
|
|
234497
|
+
this.policy = policy;
|
|
234498
|
+
this.onActivity = onActivity;
|
|
234499
|
+
if (caller.aborted)
|
|
234500
|
+
this.onAbort();
|
|
234501
|
+
else
|
|
234502
|
+
caller.addEventListener("abort", this.onAbort, { once: true });
|
|
234503
|
+
this.arm();
|
|
234504
|
+
if (!this.signal.aborted && onActivity) {
|
|
234505
|
+
this.waiting = setInterval(() => {
|
|
234506
|
+
if (!this.disposed && !this.signal.aborted)
|
|
234507
|
+
onActivity({ kind: "waiting", elapsedMs: Date.now() - this.startedAt });
|
|
234508
|
+
}, policy.waitingIntervalMs);
|
|
234509
|
+
}
|
|
234510
|
+
}
|
|
234511
|
+
check() {
|
|
234512
|
+
if (this.caller.aborted)
|
|
234513
|
+
throw new DOMException("Operation cancelled", "AbortError");
|
|
234514
|
+
if (Date.now() >= this.policy.deadlineAtMs)
|
|
234515
|
+
this.controller.abort(new BoundedOperationTimeoutError("total"));
|
|
234516
|
+
const dataDeadline = this.dataAt === undefined ? this.startedAt + this.policy.firstEventTimeoutMs : this.dataAt + this.policy.idleDataTimeoutMs;
|
|
234517
|
+
if (!this.signal.aborted && Date.now() >= dataDeadline) {
|
|
234518
|
+
this.controller.abort(new BoundedOperationTimeoutError(this.dataAt === undefined ? "first_event" : "idle_data"));
|
|
234519
|
+
}
|
|
234520
|
+
if (this.signal.aborted)
|
|
234521
|
+
throw this.signal.reason;
|
|
234522
|
+
}
|
|
234523
|
+
data() {
|
|
234524
|
+
if (this.disposed)
|
|
234525
|
+
return;
|
|
234526
|
+
this.check();
|
|
234527
|
+
this.dataAt = Date.now();
|
|
234528
|
+
this.arm();
|
|
234529
|
+
this.onActivity?.({ kind: "data", elapsedMs: Date.now() - this.startedAt });
|
|
234530
|
+
}
|
|
234531
|
+
arm() {
|
|
234532
|
+
if (this.timer)
|
|
234533
|
+
clearTimeout(this.timer);
|
|
234534
|
+
if (this.disposed || this.signal.aborted)
|
|
234535
|
+
return;
|
|
234536
|
+
const idleAt = this.dataAt === undefined ? this.startedAt + this.policy.firstEventTimeoutMs : this.dataAt + this.policy.idleDataTimeoutMs;
|
|
234537
|
+
const total = this.policy.deadlineAtMs <= idleAt;
|
|
234538
|
+
const remaining = Math.min(this.policy.deadlineAtMs, idleAt) - Date.now();
|
|
234539
|
+
const expire = () => this.controller.abort(new BoundedOperationTimeoutError(total ? "total" : this.dataAt === undefined ? "first_event" : "idle_data"));
|
|
234540
|
+
if (remaining <= 0)
|
|
234541
|
+
expire();
|
|
234542
|
+
else
|
|
234543
|
+
this.timer = setTimeout(expire, remaining);
|
|
234544
|
+
}
|
|
234545
|
+
async wait(start) {
|
|
234546
|
+
this.check();
|
|
234547
|
+
let abort;
|
|
234548
|
+
const interrupted = new Promise((_3, reject) => {
|
|
234549
|
+
abort = () => reject(this.caller.aborted ? new DOMException("Operation cancelled", "AbortError") : this.signal.reason);
|
|
234550
|
+
this.signal.addEventListener("abort", abort, { once: true });
|
|
234551
|
+
});
|
|
234552
|
+
try {
|
|
234553
|
+
const value = await Promise.race([start(), interrupted]);
|
|
234554
|
+
this.check();
|
|
234555
|
+
return value;
|
|
234556
|
+
} finally {
|
|
234557
|
+
this.signal.removeEventListener("abort", abort);
|
|
234558
|
+
}
|
|
234559
|
+
}
|
|
234560
|
+
dispose() {
|
|
234561
|
+
this.disposed = true;
|
|
234562
|
+
clearTimeout(this.timer);
|
|
234563
|
+
clearInterval(this.waiting);
|
|
234564
|
+
this.caller.removeEventListener("abort", this.onAbort);
|
|
234565
|
+
}
|
|
234566
|
+
}
|
|
234567
|
+
function cancelReader(reader) {
|
|
234568
|
+
try {
|
|
234569
|
+
reader.cancel().catch(() => {});
|
|
234570
|
+
} catch {}
|
|
234571
|
+
}
|
|
234572
|
+
async function boundedResponseText(response, operation) {
|
|
234573
|
+
if (!response.body)
|
|
234574
|
+
return "";
|
|
234575
|
+
const reader = response.body.getReader();
|
|
234576
|
+
const decoder = new TextDecoder;
|
|
234577
|
+
let text = "";
|
|
234578
|
+
try {
|
|
234579
|
+
for (;; ) {
|
|
234580
|
+
const { done, value } = await operation.wait(() => reader.read());
|
|
234581
|
+
if (done)
|
|
234582
|
+
return text + decoder.decode();
|
|
234583
|
+
text += decoder.decode(value, { stream: true });
|
|
234584
|
+
}
|
|
234585
|
+
} finally {
|
|
234586
|
+
cancelReader(reader);
|
|
234587
|
+
reader.releaseLock();
|
|
234588
|
+
}
|
|
234589
|
+
}
|
|
234590
|
+
function isAnthropicData(event) {
|
|
234591
|
+
if (!event || typeof event !== "object")
|
|
234592
|
+
return false;
|
|
234593
|
+
switch (event.type) {
|
|
234594
|
+
case "message_start":
|
|
234595
|
+
return event.message?.role === "assistant" || typeof event.message?.model === "string";
|
|
234596
|
+
case "content_block_start":
|
|
234597
|
+
return ["text", "thinking", "redacted_thinking"].includes(event.content_block?.type);
|
|
234598
|
+
case "content_block_delta":
|
|
234599
|
+
return event.delta?.type === "text_delta" && typeof event.delta.text === "string" && event.delta.text.length > 0 || event.delta?.type === "thinking_delta" && typeof event.delta.thinking === "string" && event.delta.thinking.length > 0 || event.delta?.type === "signature_delta" && typeof event.delta.signature === "string" && event.delta.signature.length > 0;
|
|
234600
|
+
case "content_block_stop":
|
|
234601
|
+
return Number.isInteger(event.index) && event.index >= 0;
|
|
234602
|
+
case "message_delta":
|
|
234603
|
+
return typeof event.delta?.stop_reason === "string" || isUsage(event.usage);
|
|
234604
|
+
default:
|
|
234605
|
+
return false;
|
|
234606
|
+
}
|
|
234607
|
+
}
|
|
234608
|
+
function isUsage(value) {
|
|
234609
|
+
return value && typeof value === "object" && ["input_tokens", "output_tokens", "prompt_tokens", "completion_tokens"].some((key) => typeof value[key] === "number" && Number.isFinite(value[key]) && value[key] >= 0);
|
|
234610
|
+
}
|
|
234611
|
+
function isOpenAIData(event) {
|
|
234612
|
+
return isUsage(event?.usage) || Array.isArray(event?.choices) && event.choices.some((choice) => typeof choice?.finish_reason === "string" || ["content", "reasoning", "reasoning_content"].some((key) => typeof choice?.delta?.[key] === "string" && choice.delta[key].length > 0));
|
|
234613
|
+
}
|
|
234614
|
+
var BoundedOperationTimeoutError;
|
|
234615
|
+
var init_boundedOperation = __esm(() => {
|
|
234616
|
+
BoundedOperationTimeoutError = class BoundedOperationTimeoutError extends Error {
|
|
234617
|
+
phase;
|
|
234618
|
+
code = "bounded_operation_timeout";
|
|
234619
|
+
constructor(phase) {
|
|
234620
|
+
super(`Bounded operation timed out (${phase}); no complete result was accepted. Continue with other available evidence or report what remains unavailable.`);
|
|
234621
|
+
this.phase = phase;
|
|
234622
|
+
this.name = "BoundedOperationTimeoutError";
|
|
234623
|
+
}
|
|
234624
|
+
};
|
|
234625
|
+
});
|
|
234626
|
+
|
|
234473
234627
|
// services/visual/visualSpecialist.ts
|
|
234474
234628
|
function assertVisualImagePaths(agentType, imagePaths) {
|
|
234475
234629
|
if (agentType !== "visual-ui-analysis") {
|
|
@@ -234491,35 +234645,46 @@ async function runVisualSpecialist(input, deps) {
|
|
|
234491
234645
|
const images = [];
|
|
234492
234646
|
for (const path11 of imagePaths)
|
|
234493
234647
|
images.push(await deps.loadImage(path11));
|
|
234494
|
-
const
|
|
234495
|
-
|
|
234496
|
-
|
|
234497
|
-
|
|
234498
|
-
|
|
234499
|
-
|
|
234500
|
-
|
|
234501
|
-
|
|
234502
|
-
|
|
234503
|
-
|
|
234504
|
-
|
|
234505
|
-
|
|
234506
|
-
|
|
234507
|
-
|
|
234508
|
-
|
|
234509
|
-
|
|
234510
|
-
|
|
234511
|
-
|
|
234512
|
-
|
|
234513
|
-
|
|
234514
|
-
|
|
234515
|
-
|
|
234516
|
-
|
|
234517
|
-
|
|
234518
|
-
|
|
234648
|
+
const operation = boundedOperationPolicy(900000);
|
|
234649
|
+
const lifetime = new BoundedOperation(input.signal ?? new AbortController().signal, operation, input.onActivity);
|
|
234650
|
+
try {
|
|
234651
|
+
const request = {
|
|
234652
|
+
role: "visual.experimental",
|
|
234653
|
+
mode: input.mode ?? "quality",
|
|
234654
|
+
requirements: { vision: true }
|
|
234655
|
+
};
|
|
234656
|
+
for (let attempt = 0;attempt < 2; attempt += 1) {
|
|
234657
|
+
const selection = await lifetime.wait(() => deps.resolve(request));
|
|
234658
|
+
if (!selection) {
|
|
234659
|
+
throw new Error("Specialist capability unavailable: visual.experimental");
|
|
234660
|
+
}
|
|
234661
|
+
try {
|
|
234662
|
+
return await lifetime.wait(() => deps.infer({
|
|
234663
|
+
model: selection.resolved_model,
|
|
234664
|
+
...selection.canonical_model ? { canonicalModel: selection.canonical_model } : {},
|
|
234665
|
+
clientProtocol: selection.client_protocol,
|
|
234666
|
+
...selection.capability_context ? { capabilityContext: selection.capability_context } : {},
|
|
234667
|
+
systemPrompt: VISUAL_SPECIALIST_SYSTEM_PROMPT,
|
|
234668
|
+
prompt: input.prompt,
|
|
234669
|
+
images,
|
|
234670
|
+
maxOutputTokens: 2048,
|
|
234671
|
+
signal: lifetime.signal,
|
|
234672
|
+
operation,
|
|
234673
|
+
onActivity: (event) => {
|
|
234674
|
+
if (event.kind === "data")
|
|
234675
|
+
lifetime.data();
|
|
234676
|
+
}
|
|
234677
|
+
}));
|
|
234678
|
+
} catch (error5) {
|
|
234679
|
+
if (!(error5 instanceof GatewayInvalidCapabilityContextError) || attempt > 0) {
|
|
234680
|
+
throw error5;
|
|
234681
|
+
}
|
|
234519
234682
|
}
|
|
234520
234683
|
}
|
|
234684
|
+
throw new Error("Specialist capability unavailable: visual.experimental");
|
|
234685
|
+
} finally {
|
|
234686
|
+
lifetime.dispose();
|
|
234521
234687
|
}
|
|
234522
|
-
throw new Error("Specialist capability unavailable: visual.experimental");
|
|
234523
234688
|
}
|
|
234524
234689
|
var VISUAL_SPECIALIST_SYSTEM_PROMPT = `You are CCL's bounded visual analysis specialist.
|
|
234525
234690
|
|
|
@@ -234529,6 +234694,7 @@ separated inferences and uncertainty. Do not claim to inspect source code, call
|
|
|
234529
234694
|
tools, plan edits, or gather additional evidence. Return one concise conclusion.`;
|
|
234530
234695
|
var init_visualSpecialist = __esm(() => {
|
|
234531
234696
|
init_gatewayTransport();
|
|
234697
|
+
init_boundedOperation();
|
|
234532
234698
|
});
|
|
234533
234699
|
|
|
234534
234700
|
// tools/AgentTool/built-in/visualUiAnalysisAgent.ts
|
|
@@ -239750,7 +239916,7 @@ function getAssistantMessageFromError(error5, model, options) {
|
|
|
239750
239916
|
if (process.env.USER_TYPE === "ant") {
|
|
239751
239917
|
const baseMessage = `API Error: 400 ${error5.message}
|
|
239752
239918
|
|
|
239753
|
-
Run /share and post the JSON file to ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
239919
|
+
Run /share and post the JSON file to ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.FEEDBACK_CHANNEL}.`;
|
|
239754
239920
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
239755
239921
|
return createAssistantAPIErrorMessage({
|
|
239756
239922
|
content: baseMessage + rewindInstruction,
|
|
@@ -239786,7 +239952,7 @@ Run /share and post the JSON file to ${{ USER_TYPE: "external", VERSION: "1.3.6-
|
|
|
239786
239952
|
if (process.env.USER_TYPE === "ant" && !process.env.ANTHROPIC_MODEL && error5 instanceof Error && error5.message.toLowerCase().includes("invalid model name")) {
|
|
239787
239953
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
239788
239954
|
const baseMsg = `[ANT-ONLY] Your org isn't gated into the \`${model}\` model. Either run \`ccl\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
239789
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
239955
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.FEEDBACK_CHANNEL} for help getting access.`;
|
|
239790
239956
|
return createAssistantAPIErrorMessage({
|
|
239791
239957
|
content: msg,
|
|
239792
239958
|
error: "invalid_request"
|
|
@@ -241272,6 +241438,14 @@ var DEFAULT_MAX_LISTENERS = 50;
|
|
|
241272
241438
|
var init_abortController = () => {};
|
|
241273
241439
|
|
|
241274
241440
|
// utils/stuckQueryWatchdog.ts
|
|
241441
|
+
function bindQueryOwnedProgress(guard, signal, consume) {
|
|
241442
|
+
const generation = guard.generation;
|
|
241443
|
+
return (event) => {
|
|
241444
|
+
if (signal.aborted || !guard.isActive || guard.generation !== generation)
|
|
241445
|
+
return;
|
|
241446
|
+
consume(event);
|
|
241447
|
+
};
|
|
241448
|
+
}
|
|
241275
241449
|
function hasLiveForegroundInteraction(queue) {
|
|
241276
241450
|
return queue.some((request) => !request.workerBadge && !request.toolUseContext.agentId && request.toolUseContext.abortController?.signal.aborted === false);
|
|
241277
241451
|
}
|
|
@@ -331799,7 +331973,7 @@ function getTelemetryAttributes() {
|
|
|
331799
331973
|
attributes["session.id"] = sessionId;
|
|
331800
331974
|
}
|
|
331801
331975
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
331802
|
-
attributes["app.version"] = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
331976
|
+
attributes["app.version"] = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION;
|
|
331803
331977
|
}
|
|
331804
331978
|
const oauthAccount = getOauthAccountInfo();
|
|
331805
331979
|
if (oauthAccount) {
|
|
@@ -348824,7 +348998,7 @@ function computeFingerprint(messageText, version4) {
|
|
|
348824
348998
|
}
|
|
348825
348999
|
function computeFingerprintFromMessages(messages) {
|
|
348826
349000
|
const firstMessageText = extractFirstMessageText(messages);
|
|
348827
|
-
return computeFingerprint(firstMessageText, { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
349001
|
+
return computeFingerprint(firstMessageText, { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION);
|
|
348828
349002
|
}
|
|
348829
349003
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
348830
349004
|
var init_fingerprint = () => {};
|
|
@@ -348873,7 +349047,7 @@ async function sideQuery(opts) {
|
|
|
348873
349047
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
348874
349048
|
}
|
|
348875
349049
|
const messageText = extractFirstUserMessageText(messages);
|
|
348876
|
-
const fingerprint = computeFingerprint(messageText, { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
349050
|
+
const fingerprint = computeFingerprint(messageText, { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION);
|
|
348877
349051
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
348878
349052
|
const systemBlocks = [
|
|
348879
349053
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -397065,7 +397239,7 @@ async function initializeBetaTracing(resource) {
|
|
|
397065
397239
|
});
|
|
397066
397240
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
397067
397241
|
setLoggerProvider(loggerProvider);
|
|
397068
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
397242
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION);
|
|
397069
397243
|
setEventLogger(eventLogger);
|
|
397070
397244
|
process.on("beforeExit", async () => {
|
|
397071
397245
|
await loggerProvider?.forceFlush();
|
|
@@ -397105,7 +397279,7 @@ async function initializeTelemetry() {
|
|
|
397105
397279
|
const platform3 = getPlatform();
|
|
397106
397280
|
const baseAttributes = {
|
|
397107
397281
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
|
|
397108
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
397282
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
397109
397283
|
};
|
|
397110
397284
|
if (platform3 === "wsl") {
|
|
397111
397285
|
const wslVersion = getWslVersion();
|
|
@@ -397150,7 +397324,7 @@ async function initializeTelemetry() {
|
|
|
397150
397324
|
} catch {}
|
|
397151
397325
|
};
|
|
397152
397326
|
registerCleanup(shutdownTelemetry2);
|
|
397153
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
397327
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION);
|
|
397154
397328
|
}
|
|
397155
397329
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
397156
397330
|
resource,
|
|
@@ -397170,7 +397344,7 @@ async function initializeTelemetry() {
|
|
|
397170
397344
|
});
|
|
397171
397345
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
397172
397346
|
setLoggerProvider(loggerProvider);
|
|
397173
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
397347
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION);
|
|
397174
397348
|
setEventLogger(eventLogger);
|
|
397175
397349
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
397176
397350
|
process.on("beforeExit", async () => {
|
|
@@ -397232,7 +397406,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
397232
397406
|
}
|
|
397233
397407
|
};
|
|
397234
397408
|
registerCleanup(shutdownTelemetry);
|
|
397235
|
-
return meterProvider.getMeter("com.anthropic.claude_code", { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
397409
|
+
return meterProvider.getMeter("com.anthropic.claude_code", { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION);
|
|
397236
397410
|
}
|
|
397237
397411
|
async function flushTelemetry() {
|
|
397238
397412
|
const meterProvider = getMeterProvider();
|
|
@@ -397823,7 +397997,7 @@ async function installOrUpdateClaudePackage(channel2, specificVersion) {
|
|
|
397823
397997
|
return "install_failed";
|
|
397824
397998
|
}
|
|
397825
397999
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
397826
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398000
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
|
|
397827
398001
|
if (result.code !== 0) {
|
|
397828
398002
|
const error5 = new Error(`Failed to install Claude CLI package: ${result.stderr}`);
|
|
397829
398003
|
logError(error5);
|
|
@@ -397966,14 +398140,14 @@ import { access as access2, writeFile as writeFile12 } from "fs/promises";
|
|
|
397966
398140
|
import { homedir as homedir18 } from "os";
|
|
397967
398141
|
import { join as join61 } from "path";
|
|
397968
398142
|
async function assertMinVersion() {
|
|
397969
|
-
if (process.env.SKIP_VERSION_CHECK === "1" || { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398143
|
+
if (process.env.SKIP_VERSION_CHECK === "1" || { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION.startsWith("0.0.0-dev") || !process.env.ANTHROPIC_VERSION_CHECK) {
|
|
397970
398144
|
return;
|
|
397971
398145
|
}
|
|
397972
398146
|
try {
|
|
397973
398147
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
397974
|
-
if (versionConfig.minVersion && lt2({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398148
|
+
if (versionConfig.minVersion && lt2({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, versionConfig.minVersion)) {
|
|
397975
398149
|
console.error(`
|
|
397976
|
-
It looks like your version of CCL (${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398150
|
+
It looks like your version of CCL (${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}) needs an update.
|
|
397977
398151
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
397978
398152
|
|
|
397979
398153
|
To update, please run:
|
|
@@ -398133,7 +398307,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
398133
398307
|
}
|
|
398134
398308
|
async function getLatestVersion(channel2) {
|
|
398135
398309
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
398136
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398310
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
|
|
398137
398311
|
if (result.code !== 0) {
|
|
398138
398312
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
398139
398313
|
if (result.stderr) {
|
|
@@ -398149,7 +398323,7 @@ async function getLatestVersion(channel2) {
|
|
|
398149
398323
|
return result.stdout.trim();
|
|
398150
398324
|
}
|
|
398151
398325
|
async function getNpmDistTags() {
|
|
398152
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398326
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
|
|
398153
398327
|
if (result.code !== 0) {
|
|
398154
398328
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
398155
398329
|
return { latest: null, stable: null };
|
|
@@ -398189,7 +398363,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
398189
398363
|
logError(new AutoUpdaterError("Another process is currently installing an update"));
|
|
398190
398364
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
398191
398365
|
pid: process.pid,
|
|
398192
|
-
currentVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398366
|
+
currentVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
398193
398367
|
});
|
|
398194
398368
|
return "in_progress";
|
|
398195
398369
|
}
|
|
@@ -398198,7 +398372,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
398198
398372
|
if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
|
|
398199
398373
|
logError(new Error("Windows NPM detected in WSL environment"));
|
|
398200
398374
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
398201
|
-
currentVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398375
|
+
currentVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
398202
398376
|
});
|
|
398203
398377
|
console.error(`
|
|
398204
398378
|
Error: Windows NPM detected in WSL
|
|
@@ -398217,7 +398391,7 @@ To fix this issue:
|
|
|
398217
398391
|
if (!hasPermissions) {
|
|
398218
398392
|
return "no_permissions";
|
|
398219
398393
|
}
|
|
398220
|
-
const packageSpec = specificVersion ? `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398394
|
+
const packageSpec = specificVersion ? `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}@${specificVersion}` : { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL;
|
|
398221
398395
|
const packageManager = env4.isRunningWithBun() ? "bun" : "npm";
|
|
398222
398396
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
398223
398397
|
if (installResult.code !== 0) {
|
|
@@ -398546,8 +398720,8 @@ async function detectMultipleInstallations() {
|
|
|
398546
398720
|
installations.push({ type: "npm-local", path: localPath });
|
|
398547
398721
|
}
|
|
398548
398722
|
const packagesToCheck = ["@anthropic-ai/claude-code"];
|
|
398549
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398550
|
-
packagesToCheck.push({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398723
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL && { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL !== "@anthropic-ai/claude-code") {
|
|
398724
|
+
packagesToCheck.push({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL);
|
|
398551
398725
|
}
|
|
398552
398726
|
const npmResult = await execFileNoThrow("npm", [
|
|
398553
398727
|
"-g",
|
|
@@ -398730,7 +398904,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
398730
398904
|
}
|
|
398731
398905
|
async function getDoctorDiagnostic() {
|
|
398732
398906
|
const installationType = await getCurrentInstallationType();
|
|
398733
|
-
const version4 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398907
|
+
const version4 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION ? { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION : "unknown";
|
|
398734
398908
|
const installationPath = await getInstallationPath();
|
|
398735
398909
|
const invokedBinary = getInvokedBinary();
|
|
398736
398910
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -398742,8 +398916,8 @@ async function getDoctorDiagnostic() {
|
|
|
398742
398916
|
for (const install of npmInstalls) {
|
|
398743
398917
|
if (install.type === "npm-global") {
|
|
398744
398918
|
let uninstallCmd = "npm -g uninstall @anthropic-ai/claude-code";
|
|
398745
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398746
|
-
uninstallCmd += ` && npm -g uninstall ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
398919
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL && { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL !== "@anthropic-ai/claude-code") {
|
|
398920
|
+
uninstallCmd += ` && npm -g uninstall ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}`;
|
|
398747
398921
|
}
|
|
398748
398922
|
warnings.push({
|
|
398749
398923
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -400069,7 +400243,7 @@ function getInstallationEnv() {
|
|
|
400069
400243
|
return;
|
|
400070
400244
|
}
|
|
400071
400245
|
function getClaudeCodeVersion() {
|
|
400072
|
-
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
400246
|
+
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION;
|
|
400073
400247
|
}
|
|
400074
400248
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
400075
400249
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -400626,7 +400800,7 @@ async function getLatestVersionFromArtifactory(tag = "latest") {
|
|
|
400626
400800
|
const startTime2 = Date.now();
|
|
400627
400801
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
400628
400802
|
"view",
|
|
400629
|
-
`${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
400803
|
+
`${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.NATIVE_PACKAGE_URL}@${tag}`,
|
|
400630
400804
|
"version",
|
|
400631
400805
|
"--prefer-online",
|
|
400632
400806
|
"--registry",
|
|
@@ -400650,7 +400824,7 @@ async function getLatestVersionFromArtifactory(tag = "latest") {
|
|
|
400650
400824
|
latency_ms: latencyMs,
|
|
400651
400825
|
source_npm: true
|
|
400652
400826
|
});
|
|
400653
|
-
logForDebugging(`npm view ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
400827
|
+
logForDebugging(`npm view ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.NATIVE_PACKAGE_URL}@${tag} version: ${stdout}`);
|
|
400654
400828
|
const latestVersion = stdout.trim();
|
|
400655
400829
|
return latestVersion;
|
|
400656
400830
|
}
|
|
@@ -400706,7 +400880,7 @@ async function downloadVersionFromArtifactory(version4, stagingPath) {
|
|
|
400706
400880
|
const fs11 = getFsImplementation();
|
|
400707
400881
|
await fs11.rm(stagingPath, { recursive: true, force: true });
|
|
400708
400882
|
const platform4 = getPlatform2();
|
|
400709
|
-
const platformPackageName = `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
400883
|
+
const platformPackageName = `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.NATIVE_PACKAGE_URL}-${platform4}`;
|
|
400710
400884
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version4}`);
|
|
400711
400885
|
const {
|
|
400712
400886
|
stdout: integrityOutput,
|
|
@@ -400735,7 +400909,7 @@ async function downloadVersionFromArtifactory(version4, stagingPath) {
|
|
|
400735
400909
|
name: "claude-native-installer",
|
|
400736
400910
|
version: "0.0.1",
|
|
400737
400911
|
dependencies: {
|
|
400738
|
-
[{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
400912
|
+
[{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.NATIVE_PACKAGE_URL]: version4
|
|
400739
400913
|
}
|
|
400740
400914
|
};
|
|
400741
400915
|
const packageLock = {
|
|
@@ -400748,10 +400922,10 @@ async function downloadVersionFromArtifactory(version4, stagingPath) {
|
|
|
400748
400922
|
name: "claude-native-installer",
|
|
400749
400923
|
version: "0.0.1",
|
|
400750
400924
|
dependencies: {
|
|
400751
|
-
[{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
400925
|
+
[{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.NATIVE_PACKAGE_URL]: version4
|
|
400752
400926
|
}
|
|
400753
400927
|
},
|
|
400754
|
-
[`node_modules/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
400928
|
+
[`node_modules/${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.NATIVE_PACKAGE_URL}`]: {
|
|
400755
400929
|
version: version4,
|
|
400756
400930
|
optionalDependencies: {
|
|
400757
400931
|
[platformPackageName]: version4
|
|
@@ -400773,7 +400947,7 @@ async function downloadVersionFromArtifactory(version4, stagingPath) {
|
|
|
400773
400947
|
if (result.code !== 0) {
|
|
400774
400948
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
400775
400949
|
}
|
|
400776
|
-
logForDebugging(`Successfully downloaded and verified ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
400950
|
+
logForDebugging(`Successfully downloaded and verified ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.NATIVE_PACKAGE_URL}@${version4}`);
|
|
400777
400951
|
}
|
|
400778
400952
|
function getStallTimeoutMs() {
|
|
400779
400953
|
return Number(process.env.CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -401436,8 +401610,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
401436
401610
|
const maxVersion = await getMaxVersion();
|
|
401437
401611
|
if (maxVersion && gt2(version4, maxVersion)) {
|
|
401438
401612
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version4} to ${maxVersion}`);
|
|
401439
|
-
if (gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
401440
|
-
logForDebugging(`Native installer: current version ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
401613
|
+
if (gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, maxVersion)) {
|
|
401614
|
+
logForDebugging(`Native installer: current version ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
401441
401615
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
401442
401616
|
latency_ms: Date.now() - startTime2,
|
|
401443
401617
|
max_version: maxVersion,
|
|
@@ -401448,7 +401622,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
401448
401622
|
version4 = maxVersion;
|
|
401449
401623
|
}
|
|
401450
401624
|
}
|
|
401451
|
-
if (!forceReinstall && version4 === { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
401625
|
+
if (!forceReinstall && version4 === { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION && await versionIsAvailable(version4) && await isPossibleClaudeBinary(executablePath)) {
|
|
401452
401626
|
logForDebugging(`Found ${version4} at ${executablePath}, skipping install`);
|
|
401453
401627
|
logEvent("tengu_native_update_complete", {
|
|
401454
401628
|
latency_ms: Date.now() - startTime2,
|
|
@@ -402190,8 +402364,8 @@ async function cleanupNpmInstallations() {
|
|
|
402190
402364
|
} else if (codePackageResult.error) {
|
|
402191
402365
|
errors.push(codePackageResult.error);
|
|
402192
402366
|
}
|
|
402193
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
402194
|
-
const macroPackageResult = await attemptNpmUninstall({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
402367
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL && { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL !== "@anthropic-ai/claude-code") {
|
|
402368
|
+
const macroPackageResult = await attemptNpmUninstall({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL);
|
|
402195
402369
|
if (macroPackageResult.success) {
|
|
402196
402370
|
removed++;
|
|
402197
402371
|
if (macroPackageResult.warning) {
|
|
@@ -402260,7 +402434,7 @@ var init_allErrors = __esm(() => {
|
|
|
402260
402434
|
|
|
402261
402435
|
// utils/status.tsx
|
|
402262
402436
|
function buildSandboxProperties() {
|
|
402263
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
402437
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE !== "ant") {
|
|
402264
402438
|
return [];
|
|
402265
402439
|
}
|
|
402266
402440
|
const isSandboxed = SandboxManager2.isSandboxingEnabled();
|
|
@@ -419600,7 +419774,7 @@ function SpinnerWithVerbInner({
|
|
|
419600
419774
|
const messageColor = overrideColor ?? defaultColor;
|
|
419601
419775
|
const shimmerColor = overrideShimmerColor ?? defaultShimmerColor;
|
|
419602
419776
|
let ttftText = null;
|
|
419603
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
419777
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && apiMetricsRef?.current && apiMetricsRef.current.length > 0) {
|
|
419604
419778
|
ttftText = computeTtftText(apiMetricsRef.current);
|
|
419605
419779
|
}
|
|
419606
419780
|
if (leaderIsIdle && hasRunningTeammates && !foregroundedTeammate) {
|
|
@@ -430624,7 +430798,7 @@ function getSearchOrReadInfo(progressMessage, tools, toolUseByID) {
|
|
|
430624
430798
|
return null;
|
|
430625
430799
|
}
|
|
430626
430800
|
function processProgressMessages(messages, tools, isAgentRunning) {
|
|
430627
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
430801
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE !== "ant") {
|
|
430628
430802
|
return messages.filter((m4) => hasProgressMessage(m4.data) && m4.data.message.type !== "user").map((m4) => ({
|
|
430629
430803
|
type: "original",
|
|
430630
430804
|
message: m4
|
|
@@ -430961,7 +431135,7 @@ function renderToolResultMessage(data, progressMessagesForMessage, {
|
|
|
430961
431135
|
return /* @__PURE__ */ jsx_runtime109.jsxs(ThemedBox_default, {
|
|
430962
431136
|
flexDirection: "column",
|
|
430963
431137
|
children: [
|
|
430964
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
431138
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime109.jsx(MessageResponse, {
|
|
430965
431139
|
children: /* @__PURE__ */ jsx_runtime109.jsxs(ThemedText, {
|
|
430966
431140
|
color: "warning",
|
|
430967
431141
|
children: [
|
|
@@ -431062,6 +431236,22 @@ function renderToolUseProgressMessage2(progressMessages, {
|
|
|
431062
431236
|
})
|
|
431063
431237
|
});
|
|
431064
431238
|
}
|
|
431239
|
+
const latestProgress = progressMessages.at(-1)?.data;
|
|
431240
|
+
if (latestProgress?.type === "agent_progress" && latestProgress.boundedStatus) {
|
|
431241
|
+
const status = latestProgress.boundedStatus;
|
|
431242
|
+
return /* @__PURE__ */ jsx_runtime109.jsx(MessageResponse, {
|
|
431243
|
+
height: 1,
|
|
431244
|
+
children: /* @__PURE__ */ jsx_runtime109.jsxs(ThemedText, {
|
|
431245
|
+
dimColor: true,
|
|
431246
|
+
children: [
|
|
431247
|
+
status.kind === "waiting" ? "Waiting for visual analysis" : "Receiving visual analysis",
|
|
431248
|
+
" · ",
|
|
431249
|
+
Math.floor(status.elapsedMs / 1000),
|
|
431250
|
+
"s"
|
|
431251
|
+
]
|
|
431252
|
+
})
|
|
431253
|
+
});
|
|
431254
|
+
}
|
|
431065
431255
|
const toolToolRenderLinesEstimate = (inProgressToolCallCount ?? 1) * ESTIMATED_LINES_PER_TOOL + TERMINAL_BUFFER_LINES;
|
|
431066
431256
|
const shouldUseCondensedMode = !isTranscriptMode && terminalSize && terminalSize.rows && terminalSize.rows < toolToolRenderLinesEstimate;
|
|
431067
431257
|
const getProgressStats = () => {
|
|
@@ -431211,7 +431401,7 @@ function renderToolUseRejectedMessage(_input, {
|
|
|
431211
431401
|
const agentId = firstData && hasProgressMessage(firstData) ? firstData.agentId : undefined;
|
|
431212
431402
|
return /* @__PURE__ */ jsx_runtime109.jsxs(jsx_runtime109.Fragment, {
|
|
431213
431403
|
children: [
|
|
431214
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
431404
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && agentId && /* @__PURE__ */ jsx_runtime109.jsx(MessageResponse, {
|
|
431215
431405
|
children: /* @__PURE__ */ jsx_runtime109.jsxs(ThemedText, {
|
|
431216
431406
|
color: "warning",
|
|
431217
431407
|
children: [
|
|
@@ -431894,7 +432084,7 @@ async function executeForkedSlashCommand(command, args, context2, precedingInput
|
|
|
431894
432084
|
}
|
|
431895
432085
|
let resultText = extractResultText(agentMessages, "Command completed");
|
|
431896
432086
|
logForDebugging(`Forked slash command /${command.name} completed with agent ${agentId}`);
|
|
431897
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
432087
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
431898
432088
|
resultText = `[ANT-ONLY] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}
|
|
431899
432089
|
${resultText}`;
|
|
431900
432090
|
}
|
|
@@ -432037,7 +432227,7 @@ async function processSlashCommand(inputString, precedingInputBlocks, imageConte
|
|
|
432037
432227
|
logEvent("tengu_input_command", {
|
|
432038
432228
|
...eventData2,
|
|
432039
432229
|
invocation_trigger: "user-slash",
|
|
432040
|
-
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
432230
|
+
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && {
|
|
432041
432231
|
skill_name: commandName,
|
|
432042
432232
|
...returnedCommand.type === "prompt" && {
|
|
432043
432233
|
skill_source: returnedCommand.source
|
|
@@ -432098,7 +432288,7 @@ async function processSlashCommand(inputString, precedingInputBlocks, imageConte
|
|
|
432098
432288
|
logEvent("tengu_input_command", {
|
|
432099
432289
|
...eventData,
|
|
432100
432290
|
invocation_trigger: "user-slash",
|
|
432101
|
-
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
432291
|
+
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && {
|
|
432102
432292
|
skill_name: commandName,
|
|
432103
432293
|
...returnedCommand.type === "prompt" && {
|
|
432104
432294
|
skill_source: returnedCommand.source
|
|
@@ -477316,7 +477506,7 @@ function truncateCommand(command) {
|
|
|
477316
477506
|
function renderToolResultMessage11(output, _progressMessagesForMessage, {
|
|
477317
477507
|
verbose
|
|
477318
477508
|
}) {
|
|
477319
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
477509
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
477320
477510
|
return null;
|
|
477321
477511
|
}
|
|
477322
477512
|
const rawCommand = output.command ?? "";
|
|
@@ -478985,7 +479175,7 @@ var init_TaskOutputTool = __esm(() => {
|
|
|
478985
479175
|
return this.isReadOnly?.(_input) ?? false;
|
|
478986
479176
|
},
|
|
478987
479177
|
isEnabled() {
|
|
478988
|
-
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
479178
|
+
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE !== "ant";
|
|
478989
479179
|
},
|
|
478990
479180
|
isReadOnly(_input) {
|
|
478991
479181
|
return true;
|
|
@@ -495521,11 +495711,19 @@ var init_prompt21 = __esm(() => {
|
|
|
495521
495711
|
|
|
495522
495712
|
// services/api/boundedInferenceTransport.ts
|
|
495523
495713
|
async function runBoundedInference(request) {
|
|
495714
|
+
const operation = new BoundedOperation(request.signal, request.operation ?? boundedOperationPolicy(900000), request.onActivity);
|
|
495715
|
+
try {
|
|
495716
|
+
return await runBoundedRequest(request, operation);
|
|
495717
|
+
} finally {
|
|
495718
|
+
operation.dispose();
|
|
495719
|
+
}
|
|
495720
|
+
}
|
|
495721
|
+
async function runBoundedRequest(request, operation) {
|
|
495524
495722
|
const fetchFn = request.fetchFn ?? fetch;
|
|
495525
495723
|
const path16 = request.clientProtocol === "anthropic_messages" ? "/messages" : "/chat/completions";
|
|
495526
495724
|
const base = request.gateway.url.replace(/\/+$/, "");
|
|
495527
495725
|
const url3 = base.endsWith("/v1") ? `${base}${path16}` : `${base}/v1${path16}`;
|
|
495528
|
-
const response = await fetchFn(url3, {
|
|
495726
|
+
const response = await operation.wait(() => fetchFn(url3, {
|
|
495529
495727
|
method: "POST",
|
|
495530
495728
|
headers: {
|
|
495531
495729
|
"Content-Type": "application/json",
|
|
@@ -495534,15 +495732,19 @@ async function runBoundedInference(request) {
|
|
|
495534
495732
|
...request.capabilityContext ? { "X-Margay-Capability-Context": request.capabilityContext } : {}
|
|
495535
495733
|
},
|
|
495536
495734
|
body: JSON.stringify(request.clientProtocol === "anthropic_messages" ? anthropicBody(request) : openAIBody(request)),
|
|
495537
|
-
signal:
|
|
495538
|
-
})
|
|
495735
|
+
signal: operation.signal
|
|
495736
|
+
}).then((response2) => {
|
|
495737
|
+
if (operation.signal.aborted)
|
|
495738
|
+
response2.body?.cancel().catch(() => {});
|
|
495739
|
+
return response2;
|
|
495740
|
+
}));
|
|
495539
495741
|
if (!response.ok) {
|
|
495742
|
+
const body = await boundedResponseText(response, operation);
|
|
495540
495743
|
if (response.status === 503) {
|
|
495541
|
-
const poolError = await parseGatewayCapabilityPoolExhausted(response.
|
|
495744
|
+
const poolError = await parseGatewayCapabilityPoolExhausted(new Response(body, { status: response.status, headers: response.headers }));
|
|
495542
495745
|
if (poolError)
|
|
495543
495746
|
throw poolError;
|
|
495544
495747
|
}
|
|
495545
|
-
const body = await response.text().catch(() => "(no body)");
|
|
495546
495748
|
const invalidContext = parseGatewayInvalidCapabilityContext(response.status, body);
|
|
495547
495749
|
if (invalidContext)
|
|
495548
495750
|
throw invalidContext;
|
|
@@ -495558,7 +495760,7 @@ async function runBoundedInference(request) {
|
|
|
495558
495760
|
throw new BoundedInferenceProtocolError("incomplete_stream", "Bounded inference response has no stream body");
|
|
495559
495761
|
}
|
|
495560
495762
|
observeGatewayContextResponse(request.model, response.headers);
|
|
495561
|
-
const parsed = request.clientProtocol === "anthropic_messages" ? await parseAnthropicStream(response.body) : await parseOpenAIStream(response.body);
|
|
495763
|
+
const parsed = request.clientProtocol === "anthropic_messages" ? await parseAnthropicStream(response.body, operation) : await parseOpenAIStream(response.body, operation);
|
|
495562
495764
|
if (!parsed.text) {
|
|
495563
495765
|
throw new BoundedInferenceProtocolError("empty_response", "Bounded inference returned no text");
|
|
495564
495766
|
}
|
|
@@ -495629,7 +495831,7 @@ function openAITextContent(content) {
|
|
|
495629
495831
|
}).join(`
|
|
495630
495832
|
`);
|
|
495631
495833
|
}
|
|
495632
|
-
async function parseAnthropicStream(body) {
|
|
495834
|
+
async function parseAnthropicStream(body, operation) {
|
|
495633
495835
|
const state = {
|
|
495634
495836
|
text: [],
|
|
495635
495837
|
model: undefined,
|
|
@@ -495642,12 +495844,15 @@ async function parseAnthropicStream(body) {
|
|
|
495642
495844
|
if (data === "[DONE]")
|
|
495643
495845
|
return;
|
|
495644
495846
|
const event = parseEvent(data);
|
|
495847
|
+
if (isAnthropicData(event))
|
|
495848
|
+
operation.data();
|
|
495645
495849
|
if (event.type === "message_start") {
|
|
495646
495850
|
state.model = stringOrUndefined(event.message?.model);
|
|
495647
495851
|
readAnthropicUsage(state.usage, event.message?.usage);
|
|
495648
495852
|
} else if (event.type === "content_block_start") {
|
|
495649
|
-
if (event.content_block?.type === "tool_use")
|
|
495650
|
-
|
|
495853
|
+
if (event.content_block?.type === "tool_use") {
|
|
495854
|
+
throw new BoundedInferenceProtocolError("tool_call_returned", "Bounded Anthropic response returned tool_use");
|
|
495855
|
+
}
|
|
495651
495856
|
if (event.content_block?.type === "text" && typeof event.content_block.text === "string") {
|
|
495652
495857
|
state.text.push(event.content_block.text);
|
|
495653
495858
|
}
|
|
@@ -495660,8 +495865,9 @@ async function parseAnthropicStream(body) {
|
|
|
495660
495865
|
readAnthropicUsage(state.usage, event.usage);
|
|
495661
495866
|
} else if (event.type === "message_stop") {
|
|
495662
495867
|
state.terminal = true;
|
|
495868
|
+
return true;
|
|
495663
495869
|
}
|
|
495664
|
-
});
|
|
495870
|
+
}, operation);
|
|
495665
495871
|
if (state.toolCall) {
|
|
495666
495872
|
throw new BoundedInferenceProtocolError("tool_call_returned", "Bounded Anthropic response returned tool_use");
|
|
495667
495873
|
}
|
|
@@ -495675,7 +495881,7 @@ async function parseAnthropicStream(body) {
|
|
|
495675
495881
|
usage: state.usage
|
|
495676
495882
|
};
|
|
495677
495883
|
}
|
|
495678
|
-
async function parseOpenAIStream(body) {
|
|
495884
|
+
async function parseOpenAIStream(body, operation) {
|
|
495679
495885
|
const state = {
|
|
495680
495886
|
text: [],
|
|
495681
495887
|
model: undefined,
|
|
@@ -495687,9 +495893,11 @@ async function parseOpenAIStream(body) {
|
|
|
495687
495893
|
await forEachSseData(body, (data) => {
|
|
495688
495894
|
if (data === "[DONE]") {
|
|
495689
495895
|
state.done = true;
|
|
495690
|
-
return;
|
|
495896
|
+
return true;
|
|
495691
495897
|
}
|
|
495692
495898
|
const event = parseEvent(data);
|
|
495899
|
+
if (isOpenAIData(event))
|
|
495900
|
+
operation.data();
|
|
495693
495901
|
state.model = stringOrUndefined(event.model) ?? state.model;
|
|
495694
495902
|
if (event.usage && typeof event.usage === "object") {
|
|
495695
495903
|
state.usage.inputTokens = numberOrZero(event.usage.prompt_tokens);
|
|
@@ -495699,14 +495907,14 @@ async function parseOpenAIStream(body) {
|
|
|
495699
495907
|
const choices = Array.isArray(event.choices) ? event.choices : [];
|
|
495700
495908
|
for (const choice of choices) {
|
|
495701
495909
|
if (Array.isArray(choice?.delta?.tool_calls) && choice.delta.tool_calls.length > 0) {
|
|
495702
|
-
|
|
495910
|
+
throw new BoundedInferenceProtocolError("tool_call_returned", "Bounded OpenAI response returned tool_calls");
|
|
495703
495911
|
}
|
|
495704
495912
|
if (typeof choice?.delta?.content === "string")
|
|
495705
495913
|
state.text.push(choice.delta.content);
|
|
495706
495914
|
if (typeof choice?.finish_reason === "string")
|
|
495707
495915
|
state.stopReason = choice.finish_reason;
|
|
495708
495916
|
}
|
|
495709
|
-
});
|
|
495917
|
+
}, operation);
|
|
495710
495918
|
if (state.toolCall) {
|
|
495711
495919
|
throw new BoundedInferenceProtocolError("tool_call_returned", "Bounded OpenAI response returned tool_calls");
|
|
495712
495920
|
}
|
|
@@ -495720,37 +495928,32 @@ async function parseOpenAIStream(body) {
|
|
|
495720
495928
|
usage: state.usage
|
|
495721
495929
|
};
|
|
495722
495930
|
}
|
|
495723
|
-
async function forEachSseData(body, visit2) {
|
|
495931
|
+
async function forEachSseData(body, visit2, operation) {
|
|
495724
495932
|
const reader = body.getReader();
|
|
495725
495933
|
const decoder = new TextDecoder;
|
|
495726
495934
|
let buffer = "";
|
|
495935
|
+
const line = (value) => {
|
|
495936
|
+
operation.check();
|
|
495937
|
+
return value.startsWith("data:") && visit2(value.slice(5).trim()) === true;
|
|
495938
|
+
};
|
|
495727
495939
|
try {
|
|
495728
|
-
|
|
495729
|
-
const { done, value } = await reader.read();
|
|
495940
|
+
for (;; ) {
|
|
495941
|
+
const { done, value } = await operation.wait(() => reader.read());
|
|
495730
495942
|
if (done)
|
|
495731
495943
|
break;
|
|
495732
495944
|
buffer += decoder.decode(value, { stream: true });
|
|
495733
|
-
const
|
|
495734
|
-
|
|
495945
|
+
const lines = buffer.split(`
|
|
495735
495946
|
`);
|
|
495736
|
-
buffer =
|
|
495737
|
-
for (const
|
|
495738
|
-
|
|
495739
|
-
|
|
495740
|
-
if (line.startsWith("data:"))
|
|
495741
|
-
visit2(line.slice(5).trim());
|
|
495742
|
-
}
|
|
495743
|
-
}
|
|
495947
|
+
buffer = lines.pop() ?? "";
|
|
495948
|
+
for (const value2 of lines)
|
|
495949
|
+
if (line(value2.replace(/\r$/, "")))
|
|
495950
|
+
return;
|
|
495744
495951
|
}
|
|
495745
495952
|
buffer += decoder.decode();
|
|
495746
|
-
if (buffer.trim())
|
|
495747
|
-
|
|
495748
|
-
`)) {
|
|
495749
|
-
if (line.startsWith("data:"))
|
|
495750
|
-
visit2(line.slice(5).trim());
|
|
495751
|
-
}
|
|
495752
|
-
}
|
|
495953
|
+
if (buffer.trim())
|
|
495954
|
+
line(buffer.trim());
|
|
495753
495955
|
} finally {
|
|
495956
|
+
cancelReader(reader);
|
|
495754
495957
|
reader.releaseLock();
|
|
495755
495958
|
}
|
|
495756
495959
|
}
|
|
@@ -495791,6 +495994,7 @@ function stringOrUndefined(value) {
|
|
|
495791
495994
|
}
|
|
495792
495995
|
var BoundedInferenceProtocolError;
|
|
495793
495996
|
var init_boundedInferenceTransport = __esm(() => {
|
|
495997
|
+
init_boundedOperation();
|
|
495794
495998
|
init_dynamicContextWindow();
|
|
495795
495999
|
init_gatewayTransport();
|
|
495796
496000
|
BoundedInferenceProtocolError = class BoundedInferenceProtocolError extends Error {
|
|
@@ -495938,7 +496142,7 @@ var init_AgentTool = __esm(() => {
|
|
|
495938
496142
|
mode: permissionModeSchema().optional().describe('Permission mode for spawned teammate (e.g., "plan" to require plan approval).')
|
|
495939
496143
|
});
|
|
495940
496144
|
return baseInputSchema().merge(multiAgentInputSchema).extend({
|
|
495941
|
-
isolation: ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
496145
|
+
isolation: ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? z77.enum(["worktree", "remote"]) : z77.enum(["worktree"])).optional().describe({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.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.'),
|
|
495942
496146
|
cwd: z77.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".')
|
|
495943
496147
|
});
|
|
495944
496148
|
});
|
|
@@ -496058,16 +496262,29 @@ var init_AgentTool = __esm(() => {
|
|
|
496058
496262
|
if (run_in_background || name2 || team_name || isolation || cwd2) {
|
|
496059
496263
|
throw new Error("visual-ui-analysis is a synchronous one-shot specialist and cannot be backgrounded, named, teamed, or isolated");
|
|
496060
496264
|
}
|
|
496265
|
+
const visualAgentId = createAgentId();
|
|
496061
496266
|
const result = await runVisualSpecialistForAgentTool({
|
|
496062
496267
|
prompt,
|
|
496063
496268
|
imagePaths: image_paths,
|
|
496064
496269
|
mode: visualRoutingMode(),
|
|
496065
|
-
signal: toolUseContext.abortController.signal
|
|
496270
|
+
signal: toolUseContext.abortController.signal,
|
|
496271
|
+
onActivity: (event) => {
|
|
496272
|
+
if (toolUseContext.abortController.signal.aborted)
|
|
496273
|
+
return;
|
|
496274
|
+
onProgress?.({
|
|
496275
|
+
toolUseID: `agent_${assistantMessage.message.id}`,
|
|
496276
|
+
data: {
|
|
496277
|
+
type: "agent_progress",
|
|
496278
|
+
agentId: visualAgentId,
|
|
496279
|
+
boundedStatus: event
|
|
496280
|
+
}
|
|
496281
|
+
});
|
|
496282
|
+
}
|
|
496066
496283
|
}, toolUseContext, canUseTool, assistantMessage);
|
|
496067
496284
|
const completed = {
|
|
496068
496285
|
status: "completed",
|
|
496069
496286
|
prompt,
|
|
496070
|
-
agentId:
|
|
496287
|
+
agentId: visualAgentId,
|
|
496071
496288
|
agentType: subagent_type,
|
|
496072
496289
|
content: [{ type: "text", text: result.text }],
|
|
496073
496290
|
totalToolUseCount: 0,
|
|
@@ -496203,7 +496420,7 @@ var init_AgentTool = __esm(() => {
|
|
|
496203
496420
|
is_fork: isForkPath
|
|
496204
496421
|
});
|
|
496205
496422
|
const effectiveIsolation = isolation ?? selectedAgent.isolation;
|
|
496206
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
496423
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && effectiveIsolation === "remote") {
|
|
496207
496424
|
const eligibility = await checkRemoteAgentEligibility();
|
|
496208
496425
|
if (!eligibility.eligible) {
|
|
496209
496426
|
const reasons = eligibility.errors.map(formatPreconditionError).join(`
|
|
@@ -496278,7 +496495,7 @@ ${reasons}`);
|
|
|
496278
496495
|
});
|
|
496279
496496
|
if (selectedAgent.memory) {
|
|
496280
496497
|
logEvent("tengu_agent_memory_loaded", {
|
|
496281
|
-
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
496498
|
+
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && {
|
|
496282
496499
|
agent_type: selectedAgent.agentType
|
|
496283
496500
|
},
|
|
496284
496501
|
scope: selectedAgent.memory,
|
|
@@ -496869,7 +497086,7 @@ ${finalMessage}`;
|
|
|
496869
497086
|
},
|
|
496870
497087
|
async checkPermissions(input, context2) {
|
|
496871
497088
|
const appState = context2.getAppState();
|
|
496872
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
497089
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && appState.toolPermissionContext.mode === "auto") {
|
|
496873
497090
|
return {
|
|
496874
497091
|
behavior: "passthrough",
|
|
496875
497092
|
message: "Agent tool requires permission to spawn sub-agents."
|
|
@@ -508461,9 +508678,9 @@ function getAnthropicEnvMetadata() {
|
|
|
508461
508678
|
};
|
|
508462
508679
|
}
|
|
508463
508680
|
function getBuildAgeMinutes() {
|
|
508464
|
-
if (!{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
508681
|
+
if (!{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.BUILD_TIME)
|
|
508465
508682
|
return;
|
|
508466
|
-
const buildTime = new Date({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
508683
|
+
const buildTime = new Date({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.BUILD_TIME).getTime();
|
|
508467
508684
|
if (isNaN(buildTime))
|
|
508468
508685
|
return;
|
|
508469
508686
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -509206,7 +509423,15 @@ async function stream3PCompactDirect(options) {
|
|
|
509206
509423
|
if (options.clientProtocol === "openai_chat_completions") {
|
|
509207
509424
|
return streamOpenAICompactDirect(options);
|
|
509208
509425
|
}
|
|
509209
|
-
const
|
|
509426
|
+
const operation = new BoundedOperation(options.signal, options.operation ?? boundedOperationPolicy(1800000), options.onActivity);
|
|
509427
|
+
try {
|
|
509428
|
+
return await streamAnthropicCompactDirect(options, operation);
|
|
509429
|
+
} finally {
|
|
509430
|
+
operation.dispose();
|
|
509431
|
+
}
|
|
509432
|
+
}
|
|
509433
|
+
async function streamAnthropicCompactDirect(options, operation) {
|
|
509434
|
+
const { credentials, model, messages, systemPrompt, maxOutputTokens } = options;
|
|
509210
509435
|
const apiMessages = messages.map((m4) => ({
|
|
509211
509436
|
role: m4.message?.role ?? (m4.type === "user" ? "user" : "assistant"),
|
|
509212
509437
|
content: m4.message?.content
|
|
@@ -509221,7 +509446,7 @@ async function stream3PCompactDirect(options) {
|
|
|
509221
509446
|
const url3 = `${credentials.baseUrl.replace(/\/+$/, "")}/v1/messages`;
|
|
509222
509447
|
logForDebugging(`[3P-compact-direct] POST ${url3} model=${model} max_tokens=${maxOutputTokens}`);
|
|
509223
509448
|
const fetchOptions = getProxyFetchOptions({ forAnthropicAPI: false });
|
|
509224
|
-
const response = await fetch(url3, {
|
|
509449
|
+
const response = await operation.wait(() => fetch(url3, {
|
|
509225
509450
|
method: "POST",
|
|
509226
509451
|
headers: {
|
|
509227
509452
|
"Content-Type": "application/json",
|
|
@@ -509233,19 +509458,23 @@ async function stream3PCompactDirect(options) {
|
|
|
509233
509458
|
...options.capabilityContext ? { "X-Margay-Capability-Context": options.capabilityContext } : {}
|
|
509234
509459
|
},
|
|
509235
509460
|
body: JSON.stringify(body),
|
|
509236
|
-
|
|
509237
|
-
|
|
509238
|
-
})
|
|
509461
|
+
...fetchOptions,
|
|
509462
|
+
signal: operation.signal
|
|
509463
|
+
}).then((response2) => {
|
|
509464
|
+
if (operation.signal.aborted)
|
|
509465
|
+
response2.body?.cancel().catch(() => {});
|
|
509466
|
+
return response2;
|
|
509467
|
+
}));
|
|
509239
509468
|
if (!response.ok) {
|
|
509469
|
+
const errorText = await boundedResponseText(response, operation);
|
|
509240
509470
|
if (response.status === 503) {
|
|
509241
|
-
const poolError = await parseGatewayCapabilityPoolExhausted(response.
|
|
509471
|
+
const poolError = await parseGatewayCapabilityPoolExhausted(new Response(errorText, { status: response.status, headers: response.headers }));
|
|
509242
509472
|
if (poolError)
|
|
509243
509473
|
throw poolError;
|
|
509244
|
-
const providerUnavailableError = await parseGatewayModelProviderUnavailable(response.
|
|
509474
|
+
const providerUnavailableError = await parseGatewayModelProviderUnavailable(new Response(errorText, { status: response.status, headers: response.headers }));
|
|
509245
509475
|
if (providerUnavailableError)
|
|
509246
509476
|
throw providerUnavailableError;
|
|
509247
509477
|
}
|
|
509248
|
-
const errorText = await response.text().catch(() => "(no body)");
|
|
509249
509478
|
logForDebugging(`[3P-compact-direct] HTTP ${response.status}: ${errorText}`, { level: "error" });
|
|
509250
509479
|
const contextCapabilityError = parseGatewayContextCapabilityUnavailable(response.status, errorText);
|
|
509251
509480
|
if (contextCapabilityError)
|
|
@@ -509281,96 +509510,101 @@ async function stream3PCompactDirect(options) {
|
|
|
509281
509510
|
const decoder = new TextDecoder;
|
|
509282
509511
|
let buffer = "";
|
|
509283
509512
|
try {
|
|
509284
|
-
|
|
509285
|
-
|
|
509286
|
-
|
|
509287
|
-
|
|
509288
|
-
|
|
509289
|
-
|
|
509513
|
+
streamLoop:
|
|
509514
|
+
while (true) {
|
|
509515
|
+
const { done, value } = await operation.wait(() => reader.read());
|
|
509516
|
+
if (done)
|
|
509517
|
+
break;
|
|
509518
|
+
buffer += decoder.decode(value, { stream: true });
|
|
509519
|
+
const lines = buffer.split(`
|
|
509290
509520
|
`);
|
|
509291
|
-
|
|
509292
|
-
|
|
509293
|
-
|
|
509294
|
-
|
|
509295
|
-
|
|
509296
|
-
|
|
509297
|
-
|
|
509298
|
-
|
|
509299
|
-
|
|
509300
|
-
|
|
509301
|
-
|
|
509302
|
-
|
|
509303
|
-
}
|
|
509304
|
-
if (typeof event.type === "string")
|
|
509305
|
-
lastEventType = event.type;
|
|
509306
|
-
switch (event.type) {
|
|
509307
|
-
case "message_start": {
|
|
509308
|
-
responseModel = event.message?.model;
|
|
509309
|
-
if (event.message?.usage) {
|
|
509310
|
-
inputTokens = event.message.usage.input_tokens ?? 0;
|
|
509311
|
-
cacheReadInputTokens = event.message.usage.cache_read_input_tokens ?? 0;
|
|
509312
|
-
cacheCreationInputTokens = event.message.usage.cache_creation_input_tokens ?? 0;
|
|
509313
|
-
}
|
|
509314
|
-
break;
|
|
509521
|
+
buffer = lines.pop() ?? "";
|
|
509522
|
+
for (const line of lines) {
|
|
509523
|
+
if (!line.startsWith("data:"))
|
|
509524
|
+
continue;
|
|
509525
|
+
const data = line.slice(5).trim();
|
|
509526
|
+
if (data === "[DONE]")
|
|
509527
|
+
continue;
|
|
509528
|
+
let event;
|
|
509529
|
+
try {
|
|
509530
|
+
event = JSON.parse(data);
|
|
509531
|
+
} catch {
|
|
509532
|
+
continue;
|
|
509315
509533
|
}
|
|
509316
|
-
|
|
509317
|
-
|
|
509318
|
-
|
|
509319
|
-
|
|
509320
|
-
|
|
509534
|
+
operation.check();
|
|
509535
|
+
if (isAnthropicData(event))
|
|
509536
|
+
operation.data();
|
|
509537
|
+
if (typeof event.type === "string")
|
|
509538
|
+
lastEventType = event.type;
|
|
509539
|
+
switch (event.type) {
|
|
509540
|
+
case "message_start": {
|
|
509541
|
+
responseModel = event.message?.model;
|
|
509542
|
+
if (event.message?.usage) {
|
|
509543
|
+
inputTokens = event.message.usage.input_tokens ?? 0;
|
|
509544
|
+
cacheReadInputTokens = event.message.usage.cache_read_input_tokens ?? 0;
|
|
509545
|
+
cacheCreationInputTokens = event.message.usage.cache_creation_input_tokens ?? 0;
|
|
509546
|
+
}
|
|
509547
|
+
break;
|
|
509321
509548
|
}
|
|
509322
|
-
|
|
509323
|
-
|
|
509324
|
-
|
|
509325
|
-
|
|
509326
|
-
|
|
509327
|
-
hasStartedStreaming = true;
|
|
509328
|
-
options.setStreamMode?.("responding");
|
|
509549
|
+
case "content_block_start": {
|
|
509550
|
+
openContentBlocks++;
|
|
509551
|
+
currentBlockType = event.content_block?.type ?? null;
|
|
509552
|
+
if (event.content_block?.type === "redacted_thinking") {
|
|
509553
|
+
contentBlocks.push(event.content_block);
|
|
509329
509554
|
}
|
|
509330
|
-
|
|
509331
|
-
const len = event.delta.text.length;
|
|
509332
|
-
options.setResponseLength?.((l2) => l2 + len);
|
|
509555
|
+
break;
|
|
509333
509556
|
}
|
|
509334
|
-
|
|
509335
|
-
|
|
509336
|
-
|
|
509337
|
-
|
|
509338
|
-
|
|
509339
|
-
|
|
509340
|
-
|
|
509341
|
-
|
|
509557
|
+
case "content_block_delta": {
|
|
509558
|
+
if (event.delta?.type === "text_delta" && event.delta.text) {
|
|
509559
|
+
if (!hasStartedStreaming) {
|
|
509560
|
+
hasStartedStreaming = true;
|
|
509561
|
+
options.setStreamMode?.("responding");
|
|
509562
|
+
}
|
|
509563
|
+
textParts.push(event.delta.text);
|
|
509564
|
+
const len = event.delta.text.length;
|
|
509565
|
+
options.setResponseLength?.((l2) => l2 + len);
|
|
509566
|
+
}
|
|
509567
|
+
break;
|
|
509342
509568
|
}
|
|
509343
|
-
|
|
509344
|
-
|
|
509345
|
-
|
|
509346
|
-
|
|
509347
|
-
|
|
509348
|
-
|
|
509349
|
-
|
|
509350
|
-
openContentBlocks = Math.max(0, openContentBlocks - 1);
|
|
509351
|
-
closedContentBlocks++;
|
|
509352
|
-
currentBlockType = null;
|
|
509353
|
-
break;
|
|
509354
|
-
}
|
|
509355
|
-
case "error": {
|
|
509356
|
-
if (event.margay?.code === "incomplete_upstream_stream") {
|
|
509357
|
-
upstreamIncomplete = true;
|
|
509569
|
+
case "message_delta": {
|
|
509570
|
+
stopReason = event.delta?.stop_reason ?? null;
|
|
509571
|
+
if (event.usage) {
|
|
509572
|
+
outputTokens = event.usage.output_tokens ?? outputTokens;
|
|
509573
|
+
cacheReadInputTokens = event.usage.cache_read_input_tokens ?? cacheReadInputTokens;
|
|
509574
|
+
cacheCreationInputTokens = event.usage.cache_creation_input_tokens ?? cacheCreationInputTokens;
|
|
509575
|
+
}
|
|
509358
509576
|
break;
|
|
509359
509577
|
}
|
|
509360
|
-
|
|
509361
|
-
|
|
509362
|
-
|
|
509363
|
-
|
|
509364
|
-
|
|
509365
|
-
|
|
509366
|
-
|
|
509578
|
+
case "message_stop": {
|
|
509579
|
+
terminalComplete = true;
|
|
509580
|
+
break streamLoop;
|
|
509581
|
+
}
|
|
509582
|
+
case "content_block_stop": {
|
|
509583
|
+
openContentBlocks = Math.max(0, openContentBlocks - 1);
|
|
509584
|
+
closedContentBlocks++;
|
|
509585
|
+
currentBlockType = null;
|
|
509586
|
+
break;
|
|
509587
|
+
}
|
|
509588
|
+
case "error": {
|
|
509589
|
+
if (event.margay?.code === "incomplete_upstream_stream") {
|
|
509590
|
+
upstreamIncomplete = true;
|
|
509591
|
+
break;
|
|
509367
509592
|
}
|
|
509368
|
-
|
|
509593
|
+
throw new GatewayStreamProtocolError("upstream_stream_error", "3P compact: gateway stream error", {
|
|
509594
|
+
lastEventType,
|
|
509595
|
+
partialUsage: {
|
|
509596
|
+
input_tokens: inputTokens,
|
|
509597
|
+
output_tokens: outputTokens,
|
|
509598
|
+
cache_read_input_tokens: cacheReadInputTokens,
|
|
509599
|
+
cache_creation_input_tokens: cacheCreationInputTokens
|
|
509600
|
+
}
|
|
509601
|
+
});
|
|
509602
|
+
}
|
|
509369
509603
|
}
|
|
509370
509604
|
}
|
|
509371
509605
|
}
|
|
509372
|
-
}
|
|
509373
509606
|
} finally {
|
|
509607
|
+
cancelReader(reader);
|
|
509374
509608
|
reader.releaseLock();
|
|
509375
509609
|
}
|
|
509376
509610
|
if (!terminalComplete) {
|
|
@@ -509449,7 +509683,9 @@ async function streamOpenAICompactDirect(options) {
|
|
|
509449
509683
|
maxOutputTokens: options.maxOutputTokens,
|
|
509450
509684
|
...options.minimumContextTokens !== undefined ? { minimumContextTokens: options.minimumContextTokens } : {},
|
|
509451
509685
|
...options.capabilityContext ? { capabilityContext: options.capabilityContext } : {},
|
|
509452
|
-
signal: options.signal
|
|
509686
|
+
signal: options.signal,
|
|
509687
|
+
operation: options.operation ?? boundedOperationPolicy(1800000),
|
|
509688
|
+
onActivity: options.onActivity
|
|
509453
509689
|
});
|
|
509454
509690
|
options.setStreamMode?.("responding");
|
|
509455
509691
|
options.setResponseLength?.(() => result.text.length);
|
|
@@ -509473,6 +509709,7 @@ async function streamOpenAICompactDirect(options) {
|
|
|
509473
509709
|
};
|
|
509474
509710
|
}
|
|
509475
509711
|
var init_thirdPartyCompactTransport = __esm(() => {
|
|
509712
|
+
init_boundedOperation();
|
|
509476
509713
|
init_auth2();
|
|
509477
509714
|
init_auth2();
|
|
509478
509715
|
init_debug();
|
|
@@ -510291,8 +510528,10 @@ async function compactConversation(messages, context2, cacheSafeParams, suppress
|
|
|
510291
510528
|
let summaryResponse;
|
|
510292
510529
|
let summary;
|
|
510293
510530
|
let ptlAttempts = 0;
|
|
510531
|
+
const operation = boundedOperationPolicy(1800000);
|
|
510294
510532
|
for (;; ) {
|
|
510295
510533
|
summaryResponse = await streamCompactSummary({
|
|
510534
|
+
operation,
|
|
510296
510535
|
messages: messagesToSummarize,
|
|
510297
510536
|
summaryRequest,
|
|
510298
510537
|
appState,
|
|
@@ -510542,8 +510781,10 @@ User context: ${userFeedback}`;
|
|
|
510542
510781
|
let summaryResponse;
|
|
510543
510782
|
let summary;
|
|
510544
510783
|
let ptlAttempts = 0;
|
|
510784
|
+
const operation = boundedOperationPolicy(1800000);
|
|
510545
510785
|
for (;; ) {
|
|
510546
510786
|
summaryResponse = await streamCompactSummary({
|
|
510787
|
+
operation,
|
|
510547
510788
|
messages: apiMessages,
|
|
510548
510789
|
summaryRequest,
|
|
510549
510790
|
appState: context2.getAppState(),
|
|
@@ -510736,14 +510977,31 @@ function createCompactCanUseTool() {
|
|
|
510736
510977
|
}
|
|
510737
510978
|
});
|
|
510738
510979
|
}
|
|
510739
|
-
async function streamCompactSummary({
|
|
510980
|
+
async function streamCompactSummary(args) {
|
|
510981
|
+
const provider = getCompactProviderConfig();
|
|
510982
|
+
const { getGatewayConfig: getGatewayConfig2 } = await Promise.resolve().then(() => (init_providers(), exports_providers));
|
|
510983
|
+
if (provider?.isFirstParty || !provider && !getGatewayConfig2() && isFirstPartyAnthropicBaseUrl()) {
|
|
510984
|
+
return streamCompactSummaryInternal(args);
|
|
510985
|
+
}
|
|
510986
|
+
const lifetime = new BoundedOperation(args.context.abortController.signal, args.operation, (event) => args.context.onCompactProgress?.({ type: "compact_activity", ...event }));
|
|
510987
|
+
try {
|
|
510988
|
+
return await lifetime.wait(() => streamCompactSummaryInternal({
|
|
510989
|
+
...args,
|
|
510990
|
+
context: { ...args.context, abortController: lifetime.controller }
|
|
510991
|
+
}, lifetime));
|
|
510992
|
+
} finally {
|
|
510993
|
+
lifetime.dispose();
|
|
510994
|
+
}
|
|
510995
|
+
}
|
|
510996
|
+
async function streamCompactSummaryInternal({
|
|
510740
510997
|
messages,
|
|
510741
510998
|
summaryRequest,
|
|
510742
510999
|
appState,
|
|
510743
511000
|
context: context2,
|
|
510744
511001
|
preCompactTokenCount,
|
|
510745
|
-
cacheSafeParams
|
|
510746
|
-
|
|
511002
|
+
cacheSafeParams,
|
|
511003
|
+
operation
|
|
511004
|
+
}, lifetime) {
|
|
510747
511005
|
const compactProvider = getCompactProviderConfig();
|
|
510748
511006
|
let compactModel = compactProvider?.model ?? context2.options.mainLoopModel;
|
|
510749
511007
|
let compactApiKey = compactProvider?.apiKey;
|
|
@@ -510838,6 +511096,7 @@ async function streamCompactSummary({
|
|
|
510838
511096
|
let gatewayCandidateIndex = 0;
|
|
510839
511097
|
let gatewayContextRefreshCount = 0;
|
|
510840
511098
|
for (let attempt = 1;attempt <= maxAttempts; attempt++) {
|
|
511099
|
+
lifetime?.check();
|
|
510841
511100
|
const activeCompactCandidate = gatewayCompactorCandidates ? candidateForCompactorAttempt(gatewayCompactorCandidates, gatewayCandidateIndex) : undefined;
|
|
510842
511101
|
const activeCompactModel = activeCompactCandidate?.model ?? compactModel;
|
|
510843
511102
|
if (!activeCompactModel)
|
|
@@ -510868,7 +511127,13 @@ async function streamCompactSummary({
|
|
|
510868
511127
|
const creds = await resolve3PCompactCredentials(compactApiKey, compactBaseUrl, context2.options.isNonInteractiveSession);
|
|
510869
511128
|
let compactResponse;
|
|
510870
511129
|
try {
|
|
511130
|
+
lifetime?.check();
|
|
510871
511131
|
compactResponse = await stream3PCompactDirect({
|
|
511132
|
+
operation,
|
|
511133
|
+
onActivity: (event) => {
|
|
511134
|
+
if (event.kind === "data")
|
|
511135
|
+
lifetime?.data();
|
|
511136
|
+
},
|
|
510872
511137
|
credentials: creds,
|
|
510873
511138
|
model: activeCompactModel,
|
|
510874
511139
|
clientProtocol: activeCompactCandidate?.clientProtocol ?? compactProvider?.clientProtocol ?? "anthropic_messages",
|
|
@@ -510976,6 +511241,7 @@ async function streamCompactSummary({
|
|
|
510976
511241
|
const streamIter = streamingGen[Symbol.asyncIterator]();
|
|
510977
511242
|
let next = await streamIter.next();
|
|
510978
511243
|
while (!next.done) {
|
|
511244
|
+
lifetime?.check();
|
|
510979
511245
|
const event = next.value;
|
|
510980
511246
|
if (!hasStartedStreaming && event.type === "stream_event" && event.event.type === "content_block_start" && event.event.content_block.type === "text") {
|
|
510981
511247
|
hasStartedStreaming = true;
|
|
@@ -511174,6 +511440,7 @@ var sessionTranscriptModule, POST_COMPACT_MAX_FILES_TO_RESTORE = 5, POST_COMPACT
|
|
|
511174
511440
|
|
|
511175
511441
|
[... skill content truncated for compaction; use Read on the skill path if you need the full text]`;
|
|
511176
511442
|
var init_compact = __esm(() => {
|
|
511443
|
+
init_boundedOperation();
|
|
511177
511444
|
init_sdk();
|
|
511178
511445
|
init_state();
|
|
511179
511446
|
init_state();
|
|
@@ -511661,9 +511928,9 @@ function shouldUseSessionMemoryCompaction() {
|
|
|
511661
511928
|
}
|
|
511662
511929
|
return shouldUse;
|
|
511663
511930
|
}
|
|
511664
|
-
function createCompactionResultFromSessionMemory(messages, sessionMemory, messagesToKeep, hookResults, transcriptPath, agentId) {
|
|
511931
|
+
function createCompactionResultFromSessionMemory(messages, sessionMemory, messagesToKeep, hookResults, transcriptPath, agentId, trigger = "auto") {
|
|
511665
511932
|
const preCompactTokenCount = tokenCountFromLastAPIResponse(messages);
|
|
511666
|
-
const boundaryMarker = createCompactBoundaryMessage(
|
|
511933
|
+
const boundaryMarker = createCompactBoundaryMessage(trigger, preCompactTokenCount ?? 0, messages[messages.length - 1]?.uuid);
|
|
511667
511934
|
const preCompactDiscovered = extractDiscoveredToolNames(messages);
|
|
511668
511935
|
if (preCompactDiscovered.size > 0) {
|
|
511669
511936
|
boundaryMarker.compactMetadata.preCompactDiscoveredTools = [
|
|
@@ -511698,7 +511965,7 @@ Some session memory sections were truncated for length. The full session memory
|
|
|
511698
511965
|
truePostCompactTokenCount: estimateMessageTokens(summaryMessages)
|
|
511699
511966
|
};
|
|
511700
511967
|
}
|
|
511701
|
-
async function trySessionMemoryCompaction(messages, agentId, autoCompactThreshold) {
|
|
511968
|
+
async function trySessionMemoryCompaction(messages, agentId, autoCompactThreshold, trigger = "auto") {
|
|
511702
511969
|
if (!shouldUseSessionMemoryCompaction()) {
|
|
511703
511970
|
return null;
|
|
511704
511971
|
}
|
|
@@ -511723,8 +511990,8 @@ async function trySessionMemoryCompaction(messages, agentId, autoCompactThreshol
|
|
|
511723
511990
|
return null;
|
|
511724
511991
|
}
|
|
511725
511992
|
} else {
|
|
511726
|
-
|
|
511727
|
-
|
|
511993
|
+
logEvent("tengu_sm_compact_unknown_coverage", {});
|
|
511994
|
+
return null;
|
|
511728
511995
|
}
|
|
511729
511996
|
const startIndex = calculateMessagesToKeepIndex(messages, lastSummarizedIndex);
|
|
511730
511997
|
const messagesToKeep = messages.slice(startIndex).filter((m4) => !isCompactBoundaryMessage(m4));
|
|
@@ -511732,7 +511999,7 @@ async function trySessionMemoryCompaction(messages, agentId, autoCompactThreshol
|
|
|
511732
511999
|
model: getMainLoopModel()
|
|
511733
512000
|
});
|
|
511734
512001
|
const transcriptPath = getTranscriptPath();
|
|
511735
|
-
const compactionResult = createCompactionResultFromSessionMemory(messages, sessionMemory, messagesToKeep, hookResults, transcriptPath, agentId);
|
|
512002
|
+
const compactionResult = createCompactionResultFromSessionMemory(messages, sessionMemory, messagesToKeep, hookResults, transcriptPath, agentId, trigger);
|
|
511736
512003
|
const postCompactMessages = buildPostCompactMessages(compactionResult);
|
|
511737
512004
|
const postCompactTokenCount = roughTokenCountEstimationForMessages(postCompactMessages);
|
|
511738
512005
|
if (autoCompactThreshold !== undefined && postCompactTokenCount >= autoCompactThreshold) {
|
|
@@ -531382,7 +531649,7 @@ async function getMcpHeadersFromHelper(serverName, config) {
|
|
|
531382
531649
|
if ("scope" in config && isMcpServerFromProjectOrLocalSettings(config) && !getIsNonInteractiveSession()) {
|
|
531383
531650
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
531384
531651
|
if (!hasTrust) {
|
|
531385
|
-
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.3.6-alpha.
|
|
531652
|
+
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.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.FEEDBACK_CHANNEL}.`);
|
|
531386
531653
|
logAntError("MCP headersHelper invoked before trust check", error5);
|
|
531387
531654
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
531388
531655
|
return null;
|
|
@@ -532907,7 +533174,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
532907
533174
|
const client4 = new Client({
|
|
532908
533175
|
name: "claude-code",
|
|
532909
533176
|
title: "CCL",
|
|
532910
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
533177
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION ?? "unknown",
|
|
532911
533178
|
description: "Anthropic's agentic coding tool",
|
|
532912
533179
|
websiteUrl: PRODUCT_URL
|
|
532913
533180
|
}, {
|
|
@@ -533258,7 +533525,7 @@ var init_client9 = __esm(() => {
|
|
|
533258
533525
|
const client4 = new Client({
|
|
533259
533526
|
name: "claude-code",
|
|
533260
533527
|
title: "CCL",
|
|
533261
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
533528
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION ?? "unknown",
|
|
533262
533529
|
description: "Anthropic's agentic coding tool",
|
|
533263
533530
|
websiteUrl: PRODUCT_URL
|
|
533264
533531
|
}, {
|
|
@@ -540497,7 +540764,7 @@ async function setupTerminal(theme) {
|
|
|
540497
540764
|
return current;
|
|
540498
540765
|
});
|
|
540499
540766
|
maybeMarkProjectOnboardingComplete();
|
|
540500
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
540767
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
540501
540768
|
result += await setupShellCompletion(theme);
|
|
540502
540769
|
}
|
|
540503
540770
|
return result;
|
|
@@ -544990,7 +545257,7 @@ function Feedback({
|
|
|
544990
545257
|
platform: env4.platform,
|
|
544991
545258
|
gitRepo: envInfo.isGit,
|
|
544992
545259
|
terminal: env4.terminal,
|
|
544993
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
545260
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
544994
545261
|
transcript: normalizeMessagesForAPI(messages),
|
|
544995
545262
|
errors: sanitizedErrors,
|
|
544996
545263
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -545182,7 +545449,7 @@ function Feedback({
|
|
|
545182
545449
|
", ",
|
|
545183
545450
|
env4.terminal,
|
|
545184
545451
|
", v",
|
|
545185
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
545452
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
545186
545453
|
]
|
|
545187
545454
|
})
|
|
545188
545455
|
]
|
|
@@ -545288,7 +545555,7 @@ ${sanitizedDescription}
|
|
|
545288
545555
|
` + `**Environment Info**
|
|
545289
545556
|
` + `- Platform: ${env4.platform}
|
|
545290
545557
|
` + `- Terminal: ${env4.terminal}
|
|
545291
|
-
` + `- Version: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
545558
|
+
` + `- Version: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION || "unknown"}
|
|
545292
545559
|
` + `- Feedback ID: ${feedbackId}
|
|
545293
545560
|
` + `
|
|
545294
545561
|
**Errors**
|
|
@@ -545480,7 +545747,7 @@ var init_Feedback = __esm(() => {
|
|
|
545480
545747
|
init_TextInput();
|
|
545481
545748
|
import_react95 = __toESM(require_react(), 1);
|
|
545482
545749
|
jsx_runtime168 = __toESM(require_jsx_runtime(), 1);
|
|
545483
|
-
GITHUB_ISSUES_REPO_URL = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
545750
|
+
GITHUB_ISSUES_REPO_URL = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? "https://github.com/anthropics/claude-cli-internal/issues" : "https://github.com/anthropics/claude-code/issues";
|
|
545484
545751
|
});
|
|
545485
545752
|
|
|
545486
545753
|
// commands/feedback/feedback.tsx
|
|
@@ -548053,7 +548320,7 @@ var call14 = async (args, context2) => {
|
|
|
548053
548320
|
const customInstructions = args.trim();
|
|
548054
548321
|
try {
|
|
548055
548322
|
if (!customInstructions) {
|
|
548056
|
-
const sessionMemoryResult = await trySessionMemoryCompaction(messages, context2.agentId);
|
|
548323
|
+
const sessionMemoryResult = await trySessionMemoryCompaction(messages, context2.agentId, undefined, "manual");
|
|
548057
548324
|
if (sessionMemoryResult) {
|
|
548058
548325
|
getUserContext.cache.clear?.();
|
|
548059
548326
|
runPostCompactCleanup();
|
|
@@ -548065,7 +548332,7 @@ var call14 = async (args, context2) => {
|
|
|
548065
548332
|
return {
|
|
548066
548333
|
type: "compact",
|
|
548067
548334
|
compactionResult: sessionMemoryResult,
|
|
548068
|
-
displayText: buildDisplayText(context2)
|
|
548335
|
+
displayText: buildDisplayText(context2, "Reused session memory with a known coverage boundary; retained subsequent messages. No new model summary was generated.")
|
|
548069
548336
|
};
|
|
548070
548337
|
}
|
|
548071
548338
|
}
|
|
@@ -548483,7 +548750,7 @@ function buildPrimarySection() {
|
|
|
548483
548750
|
});
|
|
548484
548751
|
return [{
|
|
548485
548752
|
label: "Version",
|
|
548486
|
-
value: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
548753
|
+
value: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
548487
548754
|
}, {
|
|
548488
548755
|
label: "Session name",
|
|
548489
548756
|
value: nameValue
|
|
@@ -551123,7 +551390,7 @@ function Config({
|
|
|
551123
551390
|
});
|
|
551124
551391
|
}
|
|
551125
551392
|
}] : [],
|
|
551126
|
-
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
551393
|
+
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? [{
|
|
551127
551394
|
id: "speculationEnabled",
|
|
551128
551395
|
label: "Speculative execution",
|
|
551129
551396
|
value: globalConfig.speculationEnabled ?? true,
|
|
@@ -552404,7 +552671,7 @@ function Config({
|
|
|
552404
552671
|
}
|
|
552405
552672
|
})
|
|
552406
552673
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime183.jsx(ChannelDowngradeDialog, {
|
|
552407
|
-
currentVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
552674
|
+
currentVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
552408
552675
|
onChoice: (choice) => {
|
|
552409
552676
|
setShowSubmenu(null);
|
|
552410
552677
|
setTabsHidden(false);
|
|
@@ -552416,7 +552683,7 @@ function Config({
|
|
|
552416
552683
|
autoUpdatesChannel: "stable"
|
|
552417
552684
|
};
|
|
552418
552685
|
if (choice === "stay") {
|
|
552419
|
-
newSettings.minimumVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
552686
|
+
newSettings.minimumVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION;
|
|
552420
552687
|
}
|
|
552421
552688
|
updateSettingsForSource("userSettings", newSettings);
|
|
552422
552689
|
setSettingsData((prev_27) => ({
|
|
@@ -560490,7 +560757,7 @@ function HelpV2(t0) {
|
|
|
560490
560757
|
let t6;
|
|
560491
560758
|
if ($3[31] !== tabs) {
|
|
560492
560759
|
t6 = /* @__PURE__ */ jsx_runtime210.jsx(Tabs, {
|
|
560493
|
-
title: `CCL v${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
560760
|
+
title: `CCL v${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}`,
|
|
560494
560761
|
color: "professionalBlue",
|
|
560495
560762
|
defaultTab: "general",
|
|
560496
560763
|
children: tabs
|
|
@@ -580161,7 +580428,7 @@ async function call28(onDone, _context, args) {
|
|
|
580161
580428
|
});
|
|
580162
580429
|
}
|
|
580163
580430
|
}
|
|
580164
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
580431
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
580165
580432
|
return /* @__PURE__ */ jsx_runtime249.jsx(PluginSettings, {
|
|
580166
580433
|
onComplete: onDone,
|
|
580167
580434
|
args: ["manage"],
|
|
@@ -585008,9 +585275,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
585008
585275
|
return [];
|
|
585009
585276
|
}
|
|
585010
585277
|
}
|
|
585011
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
585278
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION) {
|
|
585012
585279
|
if (process.env.USER_TYPE === "ant") {
|
|
585013
|
-
const changelog = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
585280
|
+
const changelog = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION_CHANGELOG;
|
|
585014
585281
|
if (changelog) {
|
|
585015
585282
|
const commits = changelog.trim().split(`
|
|
585016
585283
|
`).filter(Boolean);
|
|
@@ -585035,9 +585302,9 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { USER_TYP
|
|
|
585035
585302
|
releaseNotes
|
|
585036
585303
|
};
|
|
585037
585304
|
}
|
|
585038
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
585305
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION) {
|
|
585039
585306
|
if (process.env.USER_TYPE === "ant") {
|
|
585040
|
-
const changelog = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
585307
|
+
const changelog = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION_CHANGELOG;
|
|
585041
585308
|
if (changelog) {
|
|
585042
585309
|
const commits = changelog.trim().split(`
|
|
585043
585310
|
`).filter(Boolean);
|
|
@@ -586219,7 +586486,7 @@ function getRecentActivitySync() {
|
|
|
586219
586486
|
return cachedActivity;
|
|
586220
586487
|
}
|
|
586221
586488
|
function getLogoDisplayData() {
|
|
586222
|
-
const version4 = process.env.DEMO_VERSION ?? { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
586489
|
+
const version4 = process.env.DEMO_VERSION ?? { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION;
|
|
586223
586490
|
const serverUrl = getDirectConnectServerUrl();
|
|
586224
586491
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
586225
586492
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -586251,7 +586518,7 @@ function formatModelAndBilling(modelName, billingType, availableWidth) {
|
|
|
586251
586518
|
}
|
|
586252
586519
|
function getRecentReleaseNotesSync(maxItems) {
|
|
586253
586520
|
if (process.env.USER_TYPE === "ant") {
|
|
586254
|
-
const changelog2 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
586521
|
+
const changelog2 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION_CHANGELOG;
|
|
586255
586522
|
if (changelog2) {
|
|
586256
586523
|
const commits = changelog2.trim().split(`
|
|
586257
586524
|
`).filter(Boolean);
|
|
@@ -586997,7 +587264,7 @@ function createRecentActivityFeed(activities) {
|
|
|
586997
587264
|
}
|
|
586998
587265
|
function createWhatsNewFeed(releaseNotes2) {
|
|
586999
587266
|
const lines = releaseNotes2.map((note) => {
|
|
587000
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
587267
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
587001
587268
|
const match = note.match(/^(\d+\s+\w+\s+ago)\s+(.+)$/);
|
|
587002
587269
|
if (match) {
|
|
587003
587270
|
return {
|
|
@@ -587010,9 +587277,9 @@ function createWhatsNewFeed(releaseNotes2) {
|
|
|
587010
587277
|
text: note
|
|
587011
587278
|
};
|
|
587012
587279
|
});
|
|
587013
|
-
const emptyMessage = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
587280
|
+
const emptyMessage = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? "Unable to fetch latest claude-cli-internal commits" : "Check the CCL changelog for updates";
|
|
587014
587281
|
return {
|
|
587015
|
-
title: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
587282
|
+
title: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? "What's new [ANT-ONLY: Latest CC commits]" : "What's new",
|
|
587016
587283
|
lines,
|
|
587017
587284
|
footer: lines.length > 0 ? "/release-notes for more" : undefined,
|
|
587018
587285
|
emptyMessage
|
|
@@ -587807,7 +588074,7 @@ function LogoV2() {
|
|
|
587807
588074
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
587808
588075
|
t22 = () => {
|
|
587809
588076
|
const currentConfig = getGlobalConfig();
|
|
587810
|
-
if (currentConfig.lastReleaseNotesSeen === { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
588077
|
+
if (currentConfig.lastReleaseNotesSeen === { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION) {
|
|
587811
588078
|
return;
|
|
587812
588079
|
}
|
|
587813
588080
|
saveGlobalConfig(_temp329);
|
|
@@ -588483,12 +588750,12 @@ function LogoV2() {
|
|
|
588483
588750
|
return t41;
|
|
588484
588751
|
}
|
|
588485
588752
|
function _temp329(current) {
|
|
588486
|
-
if (current.lastReleaseNotesSeen === { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
588753
|
+
if (current.lastReleaseNotesSeen === { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION) {
|
|
588487
588754
|
return current;
|
|
588488
588755
|
}
|
|
588489
588756
|
return {
|
|
588490
588757
|
...current,
|
|
588491
|
-
lastReleaseNotesSeen: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
588758
|
+
lastReleaseNotesSeen: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
588492
588759
|
};
|
|
588493
588760
|
}
|
|
588494
588761
|
function _temp246(s_0) {
|
|
@@ -596389,13 +596656,13 @@ var init_ultraplan = __esm(() => {
|
|
|
596389
596656
|
ULTRAPLAN_TIMEOUT_MS = 30 * 60 * 1000;
|
|
596390
596657
|
_rawPrompt = require_prompt();
|
|
596391
596658
|
DEFAULT_INSTRUCTIONS = (typeof _rawPrompt === "string" ? _rawPrompt : _rawPrompt.default).trimEnd();
|
|
596392
|
-
ULTRAPLAN_INSTRUCTIONS = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
596659
|
+
ULTRAPLAN_INSTRUCTIONS = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && process.env.ULTRAPLAN_PROMPT_FILE ? readFileSync19(process.env.ULTRAPLAN_PROMPT_FILE, "utf8").trimEnd() : DEFAULT_INSTRUCTIONS;
|
|
596393
596660
|
ultraplan_default = {
|
|
596394
596661
|
type: "local-jsx",
|
|
596395
596662
|
name: "ultraplan",
|
|
596396
596663
|
description: `~10–30 min · CCL on the web drafts an advanced plan you can edit and approve. See ${CCR_TERMS_URL2}`,
|
|
596397
596664
|
argumentHint: "<prompt>",
|
|
596398
|
-
isEnabled: () => ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
596665
|
+
isEnabled: () => ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }).USER_TYPE === "ant",
|
|
596399
596666
|
load: () => Promise.resolve({
|
|
596400
596667
|
call: call37
|
|
596401
596668
|
})
|
|
@@ -596506,7 +596773,7 @@ function shouldHideTasksFooter(tasks, showSpinnerTree) {
|
|
|
596506
596773
|
return false;
|
|
596507
596774
|
let hasVisibleTask = false;
|
|
596508
596775
|
for (const t3 of Object.values(tasks)) {
|
|
596509
|
-
if (!isBackgroundTask(t3) || { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
596776
|
+
if (!isBackgroundTask(t3) || { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && isPanelAgentTask(t3)) {
|
|
596510
596777
|
continue;
|
|
596511
596778
|
}
|
|
596512
596779
|
hasVisibleTask = true;
|
|
@@ -602592,8 +602859,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
602592
602859
|
}
|
|
602593
602860
|
async function checkEnvLessBridgeMinVersion() {
|
|
602594
602861
|
const cfg = await getEnvLessBridgeConfig();
|
|
602595
|
-
if (cfg.min_version && lt2({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
602596
|
-
return `Your version of CCL (${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
602862
|
+
if (cfg.min_version && lt2({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, cfg.min_version)) {
|
|
602863
|
+
return `Your version of CCL (${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}) is too old for Remote Control.
|
|
602597
602864
|
Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
|
|
602598
602865
|
}
|
|
602599
602866
|
return null;
|
|
@@ -604968,10 +605235,10 @@ import { execa as execa14 } from "execa";
|
|
|
604968
605235
|
import { readFile as readFile51 } from "fs/promises";
|
|
604969
605236
|
import { join as join139 } from "path";
|
|
604970
605237
|
function getMarketplaceName() {
|
|
604971
|
-
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
605238
|
+
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? INTERNAL_MARKETPLACE_NAME : OFFICIAL_MARKETPLACE_NAME;
|
|
604972
605239
|
}
|
|
604973
605240
|
function getMarketplaceRepo() {
|
|
604974
|
-
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
605241
|
+
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? INTERNAL_MARKETPLACE_REPO : OFFICIAL_MARKETPLACE_REPO;
|
|
604975
605242
|
}
|
|
604976
605243
|
function getPluginId() {
|
|
604977
605244
|
return `thinkback@${getMarketplaceName()}`;
|
|
@@ -612724,7 +612991,7 @@ function getToolBuckets() {
|
|
|
612724
612991
|
},
|
|
612725
612992
|
EXECUTION: {
|
|
612726
612993
|
name: "Execution tools",
|
|
612727
|
-
toolNames: new Set([BashTool.name, { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
612994
|
+
toolNames: new Set([BashTool.name, { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? TungstenTool.name : undefined].filter((n2) => n2 !== undefined))
|
|
612728
612995
|
},
|
|
612729
612996
|
MCP: {
|
|
612730
612997
|
name: "MCP tools",
|
|
@@ -618374,7 +618641,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
618374
618641
|
smapsRollup,
|
|
618375
618642
|
platform: process.platform,
|
|
618376
618643
|
nodeVersion: process.version,
|
|
618377
|
-
ccVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
618644
|
+
ccVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
618378
618645
|
};
|
|
618379
618646
|
}
|
|
618380
618647
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -618961,7 +619228,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
618961
619228
|
var call61 = async () => {
|
|
618962
619229
|
return {
|
|
618963
619230
|
type: "text",
|
|
618964
|
-
value: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
619231
|
+
value: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.BUILD_TIME ? `${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} (built ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.BUILD_TIME})` : { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
618965
619232
|
};
|
|
618966
619233
|
}, version4, version_default;
|
|
618967
619234
|
var init_version = __esm(() => {
|
|
@@ -626024,7 +626291,7 @@ function OverviewTab({
|
|
|
626024
626291
|
})
|
|
626025
626292
|
]
|
|
626026
626293
|
}),
|
|
626027
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
626294
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && stats.totalSpeculationTimeSavedMs > 0 && /* @__PURE__ */ jsx_runtime367.jsx(ThemedBox_default, {
|
|
626028
626295
|
flexDirection: "row",
|
|
626029
626296
|
gap: 4,
|
|
626030
626297
|
children: /* @__PURE__ */ jsx_runtime367.jsx(ThemedBox_default, {
|
|
@@ -626698,7 +626965,7 @@ function renderOverviewToAnsi(stats) {
|
|
|
626698
626965
|
const activeDaysVal = `${stats.activeDays}/${stats.totalDays}`;
|
|
626699
626966
|
const peakHourVal = stats.peakActivityHour !== null ? `${stats.peakActivityHour}:00-${stats.peakActivityHour + 1}:00` : "N/A";
|
|
626700
626967
|
lines.push(row("Active days", activeDaysVal, "Peak hour", peakHourVal));
|
|
626701
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
626968
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && stats.totalSpeculationTimeSavedMs > 0) {
|
|
626702
626969
|
const label = "Speculation saved:".padEnd(COL1_LABEL_WIDTH);
|
|
626703
626970
|
lines.push(label + h3(formatDuration(stats.totalSpeculationTimeSavedMs)));
|
|
626704
626971
|
}
|
|
@@ -628482,7 +628749,7 @@ function generateHtmlReport(data, insights) {
|
|
|
628482
628749
|
</html>`;
|
|
628483
628750
|
}
|
|
628484
628751
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
628485
|
-
const version5 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
628752
|
+
const version5 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION;
|
|
628486
628753
|
const remote_hosts_collected = remoteStats?.hosts.filter((h3) => h3.sessionCount > 0).map((h3) => h3.name);
|
|
628487
628754
|
const facets_summary = {
|
|
628488
628755
|
total: facets.size,
|
|
@@ -632747,7 +633014,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
632747
633014
|
init_settings2();
|
|
632748
633015
|
init_slowOperations();
|
|
632749
633016
|
init_uuid();
|
|
632750
|
-
VERSION7 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
633017
|
+
VERSION7 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION;
|
|
632751
633018
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
632752
633019
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
632753
633020
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -633965,7 +634232,7 @@ var init_filesystem = __esm(() => {
|
|
|
633965
634232
|
});
|
|
633966
634233
|
getBundledSkillsRoot = memoize64(function getBundledSkillsRoot2() {
|
|
633967
634234
|
const nonce = randomBytes19(16).toString("hex");
|
|
633968
|
-
return join155(getClaudeTempDir(), "bundled-skills", { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
634235
|
+
return join155(getClaudeTempDir(), "bundled-skills", { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, nonce);
|
|
633969
634236
|
});
|
|
633970
634237
|
getResolvedWorkingDirPaths = memoize64(getPathsForPermissionCheck);
|
|
633971
634238
|
});
|
|
@@ -639280,7 +639547,7 @@ function getSimpleDoingTasksSection() {
|
|
|
639280
639547
|
];
|
|
639281
639548
|
const userHelpSubitems = [
|
|
639282
639549
|
`/help: Get help with using CCL`,
|
|
639283
|
-
`To give feedback, users should ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
639550
|
+
`To give feedback, users should ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.ISSUES_EXPLAINER}`
|
|
639284
639551
|
];
|
|
639285
639552
|
const items = [
|
|
639286
639553
|
`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.`,
|
|
@@ -640594,7 +640861,7 @@ function createBridgeLogger(options) {
|
|
|
640594
640861
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
640595
640862
|
regenerateQr(connectUrl);
|
|
640596
640863
|
if (verbose) {
|
|
640597
|
-
write(source_default.dim(`Remote Control`) + ` v${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
640864
|
+
write(source_default.dim(`Remote Control`) + ` v${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}
|
|
640598
640865
|
`);
|
|
640599
640866
|
}
|
|
640600
640867
|
if (verbose) {
|
|
@@ -641567,7 +641834,7 @@ function appendToLog(path21, message) {
|
|
|
641567
641834
|
cwd: getFsImplementation().cwd(),
|
|
641568
641835
|
userType: process.env.USER_TYPE,
|
|
641569
641836
|
sessionId: getSessionId(),
|
|
641570
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
641837
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
641571
641838
|
};
|
|
641572
641839
|
getLogWriter(path21).write(messageWithTimestamp);
|
|
641573
641840
|
}
|
|
@@ -642837,7 +643104,7 @@ Spawn mode for this project:
|
|
|
642837
643104
|
const api = createBridgeApiClient({
|
|
642838
643105
|
baseUrl,
|
|
642839
643106
|
getAccessToken: getBridgeAccessToken2,
|
|
642840
|
-
runnerVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
643107
|
+
runnerVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
642841
643108
|
onDebug: logForDebugging,
|
|
642842
643109
|
onAuth401: handleOAuth401Error2,
|
|
642843
643110
|
getTrustedDeviceToken
|
|
@@ -643075,7 +643342,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
643075
643342
|
const api = createBridgeApiClient({
|
|
643076
643343
|
baseUrl,
|
|
643077
643344
|
getAccessToken: opts.getAccessToken,
|
|
643078
|
-
runnerVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
643345
|
+
runnerVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
643079
643346
|
onDebug: log2,
|
|
643080
643347
|
onAuth401: opts.onAuth401,
|
|
643081
643348
|
getTrustedDeviceToken
|
|
@@ -647516,7 +647783,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
647516
647783
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
647517
647784
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
647518
647785
|
betas: getSdkBetas(),
|
|
647519
|
-
claude_code_version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
647786
|
+
claude_code_version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
647520
647787
|
output_style: outputStyle2,
|
|
647521
647788
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
647522
647789
|
skills: inputs.skills.filter((s3) => s3.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -649810,7 +650077,7 @@ async function initBridgeCore(params) {
|
|
|
649810
650077
|
const rawApi = createBridgeApiClient({
|
|
649811
650078
|
baseUrl,
|
|
649812
650079
|
getAccessToken,
|
|
649813
|
-
runnerVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
650080
|
+
runnerVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
649814
650081
|
onDebug: logForDebugging,
|
|
649815
650082
|
onAuth401,
|
|
649816
650083
|
getTrustedDeviceToken
|
|
@@ -652492,7 +652759,7 @@ function MessageSelector({
|
|
|
652492
652759
|
...summarizeInputProps,
|
|
652493
652760
|
onChange: setSummarizeFromFeedback
|
|
652494
652761
|
});
|
|
652495
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
652762
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
652496
652763
|
baseOptions.push({
|
|
652497
652764
|
value: "summarize_up_to",
|
|
652498
652765
|
label: "Summarize up to here",
|
|
@@ -660027,7 +660294,7 @@ function bashToolUseOptions({
|
|
|
660027
660294
|
}
|
|
660028
660295
|
}
|
|
660029
660296
|
const editablePrefixShown = options.some((o2) => o2.value === "yes-prefix-edited");
|
|
660030
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
660297
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && !editablePrefixShown && isClassifierPermissionsEnabled() && onClassifierDescriptionChange && !initialClassifierDescriptionEmpty && !descriptionAlreadyExists(classifierDescription ?? "", existingAllowDescriptions) && decisionReason?.type !== "classifier") {
|
|
660031
660298
|
options.push({
|
|
660032
660299
|
type: "input",
|
|
660033
660300
|
label: "Yes, and don’t ask again for",
|
|
@@ -667634,7 +667901,7 @@ var init_CompanionSprite = __esm(() => {
|
|
|
667634
667901
|
|
|
667635
667902
|
// buddy/useBuddyNotification.tsx
|
|
667636
667903
|
function isBuddyTeaserWindow() {
|
|
667637
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
667904
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant")
|
|
667638
667905
|
return true;
|
|
667639
667906
|
const d2 = new Date;
|
|
667640
667907
|
return d2.getFullYear() === 2026 && d2.getMonth() === 3 && d2.getDate() <= 7;
|
|
@@ -667770,7 +668037,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
667770
668037
|
function getSemverPart(version5) {
|
|
667771
668038
|
return `${import_semver14.major(version5, { loose: true })}.${import_semver14.minor(version5, { loose: true })}.${import_semver14.patch(version5, { loose: true })}`;
|
|
667772
668039
|
}
|
|
667773
|
-
function useUpdateNotification(updatedVersion, initialVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668040
|
+
function useUpdateNotification(updatedVersion, initialVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION) {
|
|
667774
668041
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react232.useState(() => getSemverPart(initialVersion));
|
|
667775
668042
|
if (!updatedVersion) {
|
|
667776
668043
|
return null;
|
|
@@ -667810,7 +668077,7 @@ function AutoUpdater({
|
|
|
667810
668077
|
return;
|
|
667811
668078
|
}
|
|
667812
668079
|
if (false) {}
|
|
667813
|
-
const currentVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668080
|
+
const currentVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION;
|
|
667814
668081
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
667815
668082
|
let latestVersion = await getLatestVersion(channel2);
|
|
667816
668083
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -667946,7 +668213,7 @@ function AutoUpdater({
|
|
|
667946
668213
|
" ",
|
|
667947
668214
|
/* @__PURE__ */ jsx_runtime413.jsx(ThemedText, {
|
|
667948
668215
|
bold: true,
|
|
667949
|
-
children: hasLocalInstall ? `cd ~/.ccl/local && npm update ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668216
|
+
children: hasLocalInstall ? `cd ~/.ccl/local && npm update ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}` : `npm i -g ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}`
|
|
667950
668217
|
})
|
|
667951
668218
|
]
|
|
667952
668219
|
})
|
|
@@ -668023,12 +668290,12 @@ function NativeAutoUpdater({
|
|
|
668023
668290
|
logEvent("tengu_native_auto_updater_start", {});
|
|
668024
668291
|
try {
|
|
668025
668292
|
const maxVersion = await getMaxVersion();
|
|
668026
|
-
if (maxVersion && gt2({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668293
|
+
if (maxVersion && gt2({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, maxVersion)) {
|
|
668027
668294
|
const msg = await getMaxVersionMessage();
|
|
668028
668295
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
668029
668296
|
}
|
|
668030
668297
|
const result = await installLatest(channel2);
|
|
668031
|
-
const currentVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668298
|
+
const currentVersion = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION;
|
|
668032
668299
|
const latencyMs = Date.now() - startTime2;
|
|
668033
668300
|
if (result.lockFailed) {
|
|
668034
668301
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -668124,7 +668391,7 @@ function NativeAutoUpdater({
|
|
|
668124
668391
|
})
|
|
668125
668392
|
]
|
|
668126
668393
|
}),
|
|
668127
|
-
maxVersionIssue && { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668394
|
+
maxVersionIssue && { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime414.jsxs(ThemedText, {
|
|
668128
668395
|
color: "warning",
|
|
668129
668396
|
children: [
|
|
668130
668397
|
"⚠ Known issue: ",
|
|
@@ -668178,17 +668445,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
668178
668445
|
const maxVersion = await getMaxVersion();
|
|
668179
668446
|
if (maxVersion && latest && gt2(latest, maxVersion)) {
|
|
668180
668447
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
668181
|
-
if (gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668182
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668448
|
+
if (gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, maxVersion)) {
|
|
668449
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
668183
668450
|
setUpdateAvailable(false);
|
|
668184
668451
|
return;
|
|
668185
668452
|
}
|
|
668186
668453
|
latest = maxVersion;
|
|
668187
668454
|
}
|
|
668188
|
-
const hasUpdate = latest && !gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668455
|
+
const hasUpdate = latest && !gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, latest) && !shouldSkipVersion(latest);
|
|
668189
668456
|
setUpdateAvailable(!!hasUpdate);
|
|
668190
668457
|
if (hasUpdate) {
|
|
668191
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668458
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} -> ${latest}`);
|
|
668192
668459
|
}
|
|
668193
668460
|
};
|
|
668194
668461
|
$3[0] = t1;
|
|
@@ -668222,7 +668489,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
668222
668489
|
wrap: "truncate",
|
|
668223
668490
|
children: [
|
|
668224
668491
|
"currentVersion: ",
|
|
668225
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668492
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
668226
668493
|
]
|
|
668227
668494
|
});
|
|
668228
668495
|
$3[3] = verbose;
|
|
@@ -668473,7 +668740,7 @@ var init_useMemoryUsage = __esm(() => {
|
|
|
668473
668740
|
|
|
668474
668741
|
// components/MemoryUsageIndicator.tsx
|
|
668475
668742
|
function MemoryUsageIndicator() {
|
|
668476
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
668743
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE !== "ant") {
|
|
668477
668744
|
return null;
|
|
668478
668745
|
}
|
|
668479
668746
|
const memoryUsage = useMemoryUsage();
|
|
@@ -678167,7 +678434,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
678167
678434
|
project_dir: getOriginalCwd(),
|
|
678168
678435
|
added_dirs: addedDirs
|
|
678169
678436
|
},
|
|
678170
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
678437
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
678171
678438
|
output_style: {
|
|
678172
678439
|
name: outputStyleName
|
|
678173
678440
|
},
|
|
@@ -679524,7 +679791,7 @@ function ModeIndicator({
|
|
|
679524
679791
|
const expandedView = useAppState((s_3) => s_3.expandedView);
|
|
679525
679792
|
const showSpinnerTree = expandedView === "teammates";
|
|
679526
679793
|
const prStatus = usePrStatus(isLoading, isPrStatusEnabled());
|
|
679527
|
-
const hasTmuxSession = useAppState((s_4) => ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
679794
|
+
const hasTmuxSession = useAppState((s_4) => ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }).USER_TYPE === "ant" && s_4.tungstenActiveSession !== undefined);
|
|
679528
679795
|
const nextTickAt = import_react259.useSyncExternalStore(proactiveModule6?.subscribeToProactiveChanges ?? NO_OP_SUBSCRIBE, proactiveModule6?.getNextTickAt ?? NULL, NULL);
|
|
679529
679796
|
const voiceEnabled = runtimeVoiceFeature() ? useVoiceEnabled() : false;
|
|
679530
679797
|
const voiceState = runtimeVoiceFeature() ? useVoiceState((s_5) => s_5.voiceState) : "idle";
|
|
@@ -679533,7 +679800,7 @@ function ModeIndicator({
|
|
|
679533
679800
|
const selGetState = useSelection().getState;
|
|
679534
679801
|
const hasNextTick = nextTickAt !== null;
|
|
679535
679802
|
const isCoordinator = feature("COORDINATOR_MODE") ? coordinatorModule?.isCoordinatorMode() === true : false;
|
|
679536
|
-
const runningTaskCount = import_react259.useMemo(() => count(Object.values(tasks2), (t3) => isBackgroundTask(t3) && !({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
679803
|
+
const runningTaskCount = import_react259.useMemo(() => count(Object.values(tasks2), (t3) => isBackgroundTask(t3) && !({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && isPanelAgentTask(t3))), [tasks2]);
|
|
679537
679804
|
const tasksV2 = useTasksV2();
|
|
679538
679805
|
const hasTaskItems = tasksV2 !== undefined && tasksV2.length > 0;
|
|
679539
679806
|
const escShortcut = useShortcutDisplay("chat:cancel", "Chat", "esc").toLowerCase();
|
|
@@ -679611,7 +679878,7 @@ function ModeIndicator({
|
|
|
679611
679878
|
]
|
|
679612
679879
|
})
|
|
679613
679880
|
}, "remote")] : [],
|
|
679614
|
-
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
679881
|
+
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && hasTmuxSession ? [/* @__PURE__ */ jsx_runtime440.jsx(TungstenPill, {
|
|
679615
679882
|
selected: tmuxSelected
|
|
679616
679883
|
}, "tmux")] : [],
|
|
679617
679884
|
...isAgentSwarmsEnabled() && hasTeams ? [/* @__PURE__ */ jsx_runtime440.jsx(TeamStatus, {
|
|
@@ -679662,7 +679929,7 @@ function ModeIndicator({
|
|
|
679662
679929
|
]
|
|
679663
679930
|
});
|
|
679664
679931
|
}
|
|
679665
|
-
const hasCoordinatorTasks = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
679932
|
+
const hasCoordinatorTasks = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && getVisibleAgentTasks(tasks2).length > 0;
|
|
679666
679933
|
const tasksPart = hasBackgroundTasks && !hasTeammatePills && !shouldHideTasksFooter(tasks2, showSpinnerTree) ? /* @__PURE__ */ jsx_runtime440.jsx(BackgroundTaskStatus, {
|
|
679667
679934
|
tasksSelected,
|
|
679668
679935
|
isViewingTeammate,
|
|
@@ -679970,7 +680237,7 @@ function PromptInputFooter({
|
|
|
679970
680237
|
isInputWrapped,
|
|
679971
680238
|
isNarrow
|
|
679972
680239
|
}),
|
|
679973
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
680240
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && isUndercover() && /* @__PURE__ */ jsx_runtime441.jsx(ThemedText, {
|
|
679974
680241
|
dimColor: true,
|
|
679975
680242
|
children: "undercover"
|
|
679976
680243
|
}),
|
|
@@ -679981,7 +680248,7 @@ function PromptInputFooter({
|
|
|
679981
680248
|
})
|
|
679982
680249
|
]
|
|
679983
680250
|
}),
|
|
679984
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
680251
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime441.jsx(CoordinatorTaskPanel, {})
|
|
679985
680252
|
]
|
|
679986
680253
|
});
|
|
679987
680254
|
}
|
|
@@ -680742,8 +681009,8 @@ function PromptInput({
|
|
|
680742
681009
|
const replBridgeExplicit = useAppState((s3) => s3.replBridgeExplicit);
|
|
680743
681010
|
const replBridgeReconnecting = useAppState((s3) => s3.replBridgeReconnecting);
|
|
680744
681011
|
const bridgeFooterVisible = replBridgeConnected && (replBridgeExplicit || replBridgeReconnecting);
|
|
680745
|
-
const hasTungstenSession = useAppState((s3) => ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
680746
|
-
const tmuxFooterVisible = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
681012
|
+
const hasTungstenSession = useAppState((s3) => ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }).USER_TYPE === "ant" && s3.tungstenActiveSession !== undefined);
|
|
681013
|
+
const tmuxFooterVisible = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && hasTungstenSession;
|
|
680747
681014
|
const bagelFooterVisible = useAppState((s3) => false);
|
|
680748
681015
|
const teamContext = useAppState((s3) => s3.teamContext);
|
|
680749
681016
|
const queuedCommands = useCommandQueue();
|
|
@@ -680809,7 +681076,7 @@ function PromptInput({
|
|
|
680809
681076
|
};
|
|
680810
681077
|
}), [setAppState]);
|
|
680811
681078
|
const coordinatorTaskCount = useCoordinatorTaskCount();
|
|
680812
|
-
const hasBgTaskPill = import_react265.useMemo(() => Object.values(tasks2).some((t3) => isBackgroundTask(t3) && !({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
681079
|
+
const hasBgTaskPill = import_react265.useMemo(() => Object.values(tasks2).some((t3) => isBackgroundTask(t3) && !({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && isPanelAgentTask(t3))), [tasks2]);
|
|
680813
681080
|
const minCoordinatorIndex = hasBgTaskPill ? -1 : 0;
|
|
680814
681081
|
import_react265.useEffect(() => {
|
|
680815
681082
|
if (coordinatorTaskIndex >= coordinatorTaskCount) {
|
|
@@ -680862,7 +681129,7 @@ function PromptInput({
|
|
|
680862
681129
|
}];
|
|
680863
681130
|
}, [teamContext]);
|
|
680864
681131
|
const runningTaskCount = import_react265.useMemo(() => count(Object.values(tasks2), (t3) => t3.status === "running"), [tasks2]);
|
|
680865
|
-
const tasksFooterVisible = (runningTaskCount > 0 || { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
681132
|
+
const tasksFooterVisible = (runningTaskCount > 0 || { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && coordinatorTaskCount > 0) && !shouldHideTasksFooter(tasks2, showSpinnerTree);
|
|
680866
681133
|
const teamsFooterVisible = cachedTeams.length > 0;
|
|
680867
681134
|
const footerItems = import_react265.useMemo(() => [tasksFooterVisible && "tasks", tmuxFooterVisible && "tmux", bagelFooterVisible && "bagel", teamsFooterVisible && "teams", bridgeFooterVisible && "bridge", companionFooterVisible && "companion"].filter(Boolean), [tasksFooterVisible, tmuxFooterVisible, bagelFooterVisible, teamsFooterVisible, bridgeFooterVisible, companionFooterVisible]);
|
|
680868
681135
|
const rawFooterSelection = useAppState((s3) => s3.footerSelection);
|
|
@@ -681868,14 +682135,14 @@ function PromptInput({
|
|
|
681868
682135
|
});
|
|
681869
682136
|
useKeybindings({
|
|
681870
682137
|
"footer:up": () => {
|
|
681871
|
-
if (tasksSelected && { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
682138
|
+
if (tasksSelected && { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && coordinatorTaskCount > 0 && coordinatorTaskIndex > minCoordinatorIndex) {
|
|
681872
682139
|
setCoordinatorTaskIndex((prev) => prev - 1);
|
|
681873
682140
|
return;
|
|
681874
682141
|
}
|
|
681875
682142
|
navigateFooter(-1, true);
|
|
681876
682143
|
},
|
|
681877
682144
|
"footer:down": () => {
|
|
681878
|
-
if (tasksSelected && { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
682145
|
+
if (tasksSelected && { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && coordinatorTaskCount > 0) {
|
|
681879
682146
|
if (coordinatorTaskIndex < coordinatorTaskCount - 1) {
|
|
681880
682147
|
setCoordinatorTaskIndex((prev) => prev + 1);
|
|
681881
682148
|
}
|
|
@@ -681937,7 +682204,7 @@ function PromptInput({
|
|
|
681937
682204
|
}
|
|
681938
682205
|
break;
|
|
681939
682206
|
case "tmux":
|
|
681940
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
682207
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
681941
682208
|
setAppState((prev) => prev.tungstenPanelAutoHidden ? {
|
|
681942
682209
|
...prev,
|
|
681943
682210
|
tungstenPanelAutoHidden: false
|
|
@@ -699978,7 +700245,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
699978
700245
|
} catch {}
|
|
699979
700246
|
const data = {
|
|
699980
700247
|
trigger,
|
|
699981
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
700248
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
699982
700249
|
platform: process.platform,
|
|
699983
700250
|
transcript,
|
|
699984
700251
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -700414,7 +700681,7 @@ function useMemorySurvey(messages, isLoading, hasActivePrompt = false, {
|
|
|
700414
700681
|
});
|
|
700415
700682
|
}, []);
|
|
700416
700683
|
const shouldShowTranscriptPrompt = import_react299.useCallback((selected_0) => {
|
|
700417
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
700684
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE !== "ant") {
|
|
700418
700685
|
return false;
|
|
700419
700686
|
}
|
|
700420
700687
|
if (selected_0 !== "bad" && selected_0 !== "good") {
|
|
@@ -706652,7 +706919,7 @@ function AutoRunIssueNotification(t0) {
|
|
|
706652
706919
|
return t6;
|
|
706653
706920
|
}
|
|
706654
706921
|
function shouldAutoRunIssue(reason) {
|
|
706655
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
706922
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE !== "ant") {
|
|
706656
706923
|
return false;
|
|
706657
706924
|
}
|
|
706658
706925
|
switch (reason) {
|
|
@@ -706665,7 +706932,7 @@ function shouldAutoRunIssue(reason) {
|
|
|
706665
706932
|
}
|
|
706666
706933
|
}
|
|
706667
706934
|
function getAutoRunCommand(reason) {
|
|
706668
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
706935
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && reason === "feedback_survey_good") {
|
|
706669
706936
|
return "/good-claude";
|
|
706670
706937
|
}
|
|
706671
706938
|
return "/issue";
|
|
@@ -706806,7 +707073,7 @@ var init_useIssueFlagBanner = __esm(() => {
|
|
|
706806
707073
|
|
|
706807
707074
|
// components/DevBar.tsx
|
|
706808
707075
|
function shouldShowDevBar() {
|
|
706809
|
-
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
707076
|
+
return { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant";
|
|
706810
707077
|
}
|
|
706811
707078
|
function DevBar() {
|
|
706812
707079
|
const $3 = import_compiler_runtime368.c(5);
|
|
@@ -708671,7 +708938,7 @@ function REPL({
|
|
|
708671
708938
|
}) {
|
|
708672
708939
|
const isRemoteSession = !!remoteSessionConfig;
|
|
708673
708940
|
const titleDisabled = import_react324.useMemo(() => isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE), []);
|
|
708674
|
-
const moreRightEnabled = import_react324.useMemo(() => ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
708941
|
+
const moreRightEnabled = import_react324.useMemo(() => ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }).USER_TYPE === "ant" && isEnvTruthy(process.env.CLAUDE_MORERIGHT), []);
|
|
708675
708942
|
const disableVirtualScroll = import_react324.useMemo(() => isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL), []);
|
|
708676
708943
|
const disableMessageActions = runtimeFeature11("MESSAGE_ACTIONS") ? import_react324.useMemo(() => isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_MESSAGE_ACTIONS), []) : false;
|
|
708677
708944
|
import_react324.useEffect(() => {
|
|
@@ -708759,7 +709026,7 @@ function REPL({
|
|
|
708759
709026
|
const [ideInstallationStatus, setIDEInstallationStatus] = import_react324.useState(null);
|
|
708760
709027
|
const [showIdeOnboarding, setShowIdeOnboarding] = import_react324.useState(false);
|
|
708761
709028
|
const [showModelSwitchCallout, setShowModelSwitchCallout] = import_react324.useState(() => {
|
|
708762
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
709029
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
708763
709030
|
return shouldShowAntModelSwitch();
|
|
708764
709031
|
}
|
|
708765
709032
|
return false;
|
|
@@ -708921,7 +709188,7 @@ function REPL({
|
|
|
708921
709188
|
}, []);
|
|
708922
709189
|
const [showUndercoverCallout, setShowUndercoverCallout] = import_react324.useState(false);
|
|
708923
709190
|
import_react324.useEffect(() => {
|
|
708924
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
709191
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
708925
709192
|
(async () => {
|
|
708926
709193
|
const {
|
|
708927
709194
|
isInternalModelRepo: isInternalModelRepo2
|
|
@@ -709543,9 +709810,9 @@ function REPL({
|
|
|
709543
709810
|
return "ultraplan-launch";
|
|
709544
709811
|
if (allowDialogsWithAnimation && showIdeOnboarding)
|
|
709545
709812
|
return "ide-onboarding";
|
|
709546
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
709813
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && allowDialogsWithAnimation && showModelSwitchCallout)
|
|
709547
709814
|
return "model-switch";
|
|
709548
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
709815
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && allowDialogsWithAnimation && showUndercoverCallout)
|
|
709549
709816
|
return "undercover-callout";
|
|
709550
709817
|
if (allowDialogsWithAnimation && showEffortCallout)
|
|
709551
709818
|
return "effort-callout";
|
|
@@ -709886,7 +710153,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
709886
710153
|
dynamicSkillDirTriggers: new Set,
|
|
709887
710154
|
discoveredSkillNames: discoveredSkillNamesRef.current,
|
|
709888
710155
|
setResponseLength,
|
|
709889
|
-
pushApiMetricsEntry: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
710156
|
+
pushApiMetricsEntry: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? (ttftMs) => {
|
|
709890
710157
|
const now = Date.now();
|
|
709891
710158
|
const baseline = responseLengthRef.current;
|
|
709892
710159
|
apiMetricsRef2.current.push({
|
|
@@ -709898,8 +710165,12 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
709898
710165
|
});
|
|
709899
710166
|
} : undefined,
|
|
709900
710167
|
setStreamMode,
|
|
709901
|
-
onCompactProgress: (event) => {
|
|
710168
|
+
onCompactProgress: bindQueryOwnedProgress(queryGuard, abortController2.signal, (event) => {
|
|
709902
710169
|
switch (event.type) {
|
|
710170
|
+
case "compact_activity":
|
|
710171
|
+
lastQueryActivityAtRef.current = Date.now();
|
|
710172
|
+
setSpinnerMessage(event.kind === "waiting" ? "Waiting for compaction" : "Receiving compaction summary");
|
|
710173
|
+
break;
|
|
709903
710174
|
case "hooks_start":
|
|
709904
710175
|
setSpinnerColor("claudeBlue_FOR_SYSTEM_SPINNER");
|
|
709905
710176
|
setSpinnerShimmerColor("claudeBlueShimmer_FOR_SYSTEM_SPINNER");
|
|
@@ -709914,7 +710185,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
709914
710185
|
setSpinnerShimmerColor(null);
|
|
709915
710186
|
break;
|
|
709916
710187
|
}
|
|
709917
|
-
},
|
|
710188
|
+
}),
|
|
709918
710189
|
setInProgressToolUseIDs,
|
|
709919
710190
|
setHasInterruptibleToolInProgress: (v6) => {
|
|
709920
710191
|
hasInterruptibleToolInProgressRef.current = v6;
|
|
@@ -710158,7 +710429,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
710158
710429
|
}));
|
|
710159
710430
|
}
|
|
710160
710431
|
queryCheckpoint("query_end");
|
|
710161
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
710432
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && apiMetricsRef2.current.length > 0) {
|
|
710162
710433
|
const entries = apiMetricsRef2.current;
|
|
710163
710434
|
const ttfts = entries.map((e3) => e3.ttftMs);
|
|
710164
710435
|
const otpsValues = entries.map((e3) => {
|
|
@@ -710244,7 +710515,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
710244
710515
|
resetLoadingState();
|
|
710245
710516
|
await mrOnTurnComplete(messagesRef.current, abortController2.signal.aborted);
|
|
710246
710517
|
sendBridgeResultRef.current();
|
|
710247
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
710518
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && !abortController2.signal.aborted) {
|
|
710248
710519
|
setAppState((prev) => {
|
|
710249
710520
|
if (prev.tungstenActiveSession === undefined)
|
|
710250
710521
|
return prev;
|
|
@@ -710325,7 +710596,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
710325
710596
|
setPlanSlug(getSessionId(), oldPlanSlug);
|
|
710326
710597
|
}
|
|
710327
710598
|
}
|
|
710328
|
-
const shouldStorePlanForVerification = initialMsg.message.planContent && { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
710599
|
+
const shouldStorePlanForVerification = initialMsg.message.planContent && { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && isEnvTruthy(undefined);
|
|
710329
710600
|
setAppState((prev) => {
|
|
710330
710601
|
let updatedToolPermissionContext = initialMsg.mode ? applyPermissionUpdates(prev.toolPermissionContext, buildPermissionUpdates(initialMsg.mode, initialMsg.allowedPrompts)) : prev.toolPermissionContext;
|
|
710331
710602
|
if (feature("TRANSCRIPT_CLASSIFIER") && initialMsg.mode === "auto") {
|
|
@@ -710724,7 +710995,7 @@ Error: sandbox required but unavailable: ${reason}
|
|
|
710724
710995
|
setAutoRunIssueReason(null);
|
|
710725
710996
|
}, []);
|
|
710726
710997
|
const handleSurveyRequestFeedback = import_react324.useCallback(() => {
|
|
710727
|
-
const command9 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
710998
|
+
const command9 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? "/issue" : "/feedback";
|
|
710728
710999
|
onSubmit(command9, {
|
|
710729
711000
|
setCursorOffset: () => {},
|
|
710730
711001
|
clearBuffer: () => {},
|
|
@@ -711093,7 +711364,7 @@ ${fileList}`);
|
|
|
711093
711364
|
assistantMode: scheduledTasksAssistantMode,
|
|
711094
711365
|
setMessages
|
|
711095
711366
|
});
|
|
711096
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
711367
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
711097
711368
|
useTaskListWatcher({
|
|
711098
711369
|
taskListId,
|
|
711099
711370
|
isLoading,
|
|
@@ -711171,7 +711442,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
711171
711442
|
return total === 1 ? `${customMessage}…` : `${customMessage}… ${completedCount}/${total}`;
|
|
711172
711443
|
}
|
|
711173
711444
|
const hookType = currentHooks[0]?.data.hookEvent === "SubagentStop" ? "subagent stop" : "stop";
|
|
711174
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
711445
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
711175
711446
|
const cmd = currentHooks[completedCount]?.data.command;
|
|
711176
711447
|
const label = cmd ? ` '${truncateToWidth(cmd, 40)}'` : "";
|
|
711177
711448
|
return total === 1 ? `running ${hookType} hook${label}` : `running ${hookType} hook${label}… ${completedCount}/${total}`;
|
|
@@ -711553,7 +711824,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
711553
711824
|
width: "100%",
|
|
711554
711825
|
children: toolJSX.jsx
|
|
711555
711826
|
}),
|
|
711556
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
711827
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime475.jsx(TungstenLiveMonitor, {}),
|
|
711557
711828
|
feature("WEB_BROWSER_TOOL") ? WebBrowserPanelModule && /* @__PURE__ */ jsx_runtime475.jsx(WebBrowserPanelModule.WebBrowserPanel, {}) : null,
|
|
711558
711829
|
/* @__PURE__ */ jsx_runtime475.jsx(ThemedBox_default, {
|
|
711559
711830
|
flexGrow: 1
|
|
@@ -711812,7 +712083,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
711812
712083
|
onDone: () => setShowIdeOnboarding(false),
|
|
711813
712084
|
installationStatus: ideInstallationStatus
|
|
711814
712085
|
}),
|
|
711815
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712086
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && focusedInputDialog === "model-switch" && AntModelSwitchCallout26 && /* @__PURE__ */ jsx_runtime475.jsx(AntModelSwitchCallout26, {
|
|
711816
712087
|
onDone: (selection, modelAlias) => {
|
|
711817
712088
|
setShowModelSwitchCallout(false);
|
|
711818
712089
|
if (selection === "switch" && modelAlias) {
|
|
@@ -711824,7 +712095,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
711824
712095
|
}
|
|
711825
712096
|
}
|
|
711826
712097
|
}),
|
|
711827
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712098
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && focusedInputDialog === "undercover-callout" && UndercoverAutoCallout26 && /* @__PURE__ */ jsx_runtime475.jsx(UndercoverAutoCallout26, {
|
|
711828
712099
|
onDone: () => setShowUndercoverCallout(false)
|
|
711829
712100
|
}),
|
|
711830
712101
|
focusedInputDialog === "effort-callout" && /* @__PURE__ */ jsx_runtime475.jsx(EffortCallout, {
|
|
@@ -711958,7 +712229,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
711958
712229
|
inputValue,
|
|
711959
712230
|
setInputValue
|
|
711960
712231
|
}),
|
|
711961
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712232
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && skillImprovementSurvey.suggestion && /* @__PURE__ */ jsx_runtime475.jsx(SkillImprovementSurvey, {
|
|
711962
712233
|
isOpen: skillImprovementSurvey.isOpen,
|
|
711963
712234
|
skillName: skillImprovementSurvey.suggestion.skillName,
|
|
711964
712235
|
updates: skillImprovementSurvey.suggestion.updates,
|
|
@@ -712093,7 +712364,7 @@ Note: ctrl + z now suspends CCL, ctrl + _ undoes input.
|
|
|
712093
712364
|
setMessageSelectorPreselect(undefined);
|
|
712094
712365
|
}
|
|
712095
712366
|
}),
|
|
712096
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712367
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && /* @__PURE__ */ jsx_runtime475.jsx(DevBar, {})
|
|
712097
712368
|
]
|
|
712098
712369
|
}),
|
|
712099
712370
|
feature("BUDDY") && !(companionNarrow && isFullscreenEnvEnabled()) && companionVisible ? /* @__PURE__ */ jsx_runtime475.jsx(CompanionSprite, {}) : null
|
|
@@ -712327,17 +712598,17 @@ var init_REPL = __esm(() => {
|
|
|
712327
712598
|
resetAnchor: () => {}
|
|
712328
712599
|
});
|
|
712329
712600
|
VoiceKeybindingHandler27 = runtimeVoiceFeature() ? (init_useVoiceIntegration(), __toCommonJS(exports_useVoiceIntegration)).VoiceKeybindingHandler : () => null;
|
|
712330
|
-
useFrustrationDetection27 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712601
|
+
useFrustrationDetection27 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? __toCommonJS(exports_useFrustrationDetection).useFrustrationDetection : () => ({
|
|
712331
712602
|
state: "closed",
|
|
712332
712603
|
handleTranscriptSelect: () => {}
|
|
712333
712604
|
});
|
|
712334
|
-
useAntOrgWarningNotification27 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712605
|
+
useAntOrgWarningNotification27 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? __toCommonJS(exports_useAntOrgWarningNotification).useAntOrgWarningNotification : () => {};
|
|
712335
712606
|
getCoordinatorUserContext27 = feature("COORDINATOR_MODE") ? (init_coordinatorMode(), __toCommonJS(exports_coordinatorMode)).getCoordinatorUserContext : () => ({});
|
|
712336
712607
|
proactiveModule8 = feature("PROACTIVE") || feature("KAIROS") ? __toCommonJS(exports_proactive) : null;
|
|
712337
712608
|
useProactive26 = feature("PROACTIVE") || feature("KAIROS") ? (init_useProactive(), __toCommonJS(exports_useProactive)).useProactive : null;
|
|
712338
|
-
AntModelSwitchCallout26 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712339
|
-
shouldShowAntModelSwitch = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712340
|
-
UndercoverAutoCallout26 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
712609
|
+
AntModelSwitchCallout26 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? (init_AntModelSwitchCallout(), __toCommonJS(exports_AntModelSwitchCallout)).AntModelSwitchCallout : null;
|
|
712610
|
+
shouldShowAntModelSwitch = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? (init_AntModelSwitchCallout(), __toCommonJS(exports_AntModelSwitchCallout)).shouldShowModelSwitchCallout : () => false;
|
|
712611
|
+
UndercoverAutoCallout26 = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? (init_UndercoverAutoCallout(), __toCommonJS(exports_UndercoverAutoCallout)).UndercoverAutoCallout : null;
|
|
712341
712612
|
WebBrowserPanelModule = feature("WEB_BROWSER_TOOL") ? __toCommonJS(exports_WebBrowserPanel) : null;
|
|
712342
712613
|
EMPTY_MCP_CLIENTS2 = [];
|
|
712343
712614
|
HISTORY_STUB = {
|
|
@@ -715339,7 +715610,7 @@ function WelcomeV2() {
|
|
|
715339
715610
|
dimColor: true,
|
|
715340
715611
|
children: [
|
|
715341
715612
|
"v",
|
|
715342
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
715613
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
715343
715614
|
" "
|
|
715344
715615
|
]
|
|
715345
715616
|
})
|
|
@@ -715538,7 +715809,7 @@ function WelcomeV2() {
|
|
|
715538
715809
|
dimColor: true,
|
|
715539
715810
|
children: [
|
|
715540
715811
|
"v",
|
|
715541
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
715812
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
715542
715813
|
" "
|
|
715543
715814
|
]
|
|
715544
715815
|
})
|
|
@@ -715764,7 +716035,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
715764
716035
|
dimColor: true,
|
|
715765
716036
|
children: [
|
|
715766
716037
|
"v",
|
|
715767
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
716038
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
715768
716039
|
" "
|
|
715769
716040
|
]
|
|
715770
716041
|
});
|
|
@@ -715982,7 +716253,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
715982
716253
|
dimColor: true,
|
|
715983
716254
|
children: [
|
|
715984
716255
|
"v",
|
|
715985
|
-
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
716256
|
+
{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
715986
716257
|
" "
|
|
715987
716258
|
]
|
|
715988
716259
|
});
|
|
@@ -717649,7 +717920,7 @@ function completeOnboarding() {
|
|
|
717649
717920
|
saveGlobalConfig((current) => ({
|
|
717650
717921
|
...current,
|
|
717651
717922
|
hasCompletedOnboarding: true,
|
|
717652
|
-
lastOnboardingVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
717923
|
+
lastOnboardingVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
717653
717924
|
}));
|
|
717654
717925
|
}
|
|
717655
717926
|
function showDialog(root, renderer) {
|
|
@@ -731367,7 +731638,7 @@ async function startMCPServer(cwd3, debug5, verbose) {
|
|
|
731367
731638
|
setCwd(cwd3);
|
|
731368
731639
|
const server = new Server({
|
|
731369
731640
|
name: "claude/tengu",
|
|
731370
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
731641
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION
|
|
731371
731642
|
}, {
|
|
731372
731643
|
capabilities: {
|
|
731373
731644
|
tools: {}
|
|
@@ -733172,7 +733443,7 @@ __export(exports_update, {
|
|
|
733172
733443
|
});
|
|
733173
733444
|
async function update() {
|
|
733174
733445
|
logEvent("tengu_update_check", {});
|
|
733175
|
-
writeToStdout(`Current version: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733446
|
+
writeToStdout(`Current version: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION}
|
|
733176
733447
|
`);
|
|
733177
733448
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
733178
733449
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -733247,8 +733518,8 @@ async function update() {
|
|
|
733247
733518
|
writeToStdout(`CCL is managed by Homebrew.
|
|
733248
733519
|
`);
|
|
733249
733520
|
const latest = await getLatestVersion(channel2);
|
|
733250
|
-
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733251
|
-
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733521
|
+
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, latest)) {
|
|
733522
|
+
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} → ${latest}
|
|
733252
733523
|
`);
|
|
733253
733524
|
writeToStdout(`
|
|
733254
733525
|
`);
|
|
@@ -733264,8 +733535,8 @@ async function update() {
|
|
|
733264
733535
|
writeToStdout(`CCL is managed by winget.
|
|
733265
733536
|
`);
|
|
733266
733537
|
const latest = await getLatestVersion(channel2);
|
|
733267
|
-
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733268
|
-
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733538
|
+
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, latest)) {
|
|
733539
|
+
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} → ${latest}
|
|
733269
733540
|
`);
|
|
733270
733541
|
writeToStdout(`
|
|
733271
733542
|
`);
|
|
@@ -733281,8 +733552,8 @@ async function update() {
|
|
|
733281
733552
|
writeToStdout(`CCL is managed by apk.
|
|
733282
733553
|
`);
|
|
733283
733554
|
const latest = await getLatestVersion(channel2);
|
|
733284
|
-
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733285
|
-
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733555
|
+
if (latest && !gte({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION, latest)) {
|
|
733556
|
+
writeToStdout(`Update available: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} → ${latest}
|
|
733286
733557
|
`);
|
|
733287
733558
|
writeToStdout(`
|
|
733288
733559
|
`);
|
|
@@ -733347,11 +733618,11 @@ async function update() {
|
|
|
733347
733618
|
`);
|
|
733348
733619
|
await gracefulShutdown(1);
|
|
733349
733620
|
}
|
|
733350
|
-
if (result.latestVersion === { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733351
|
-
writeToStdout(source_default.green(`CCL is up to date (${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733621
|
+
if (result.latestVersion === { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION) {
|
|
733622
|
+
writeToStdout(source_default.green(`CCL is up to date (${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION})`) + `
|
|
733352
733623
|
`);
|
|
733353
733624
|
} else {
|
|
733354
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733625
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} to version ${result.latestVersion}`) + `
|
|
733355
733626
|
`);
|
|
733356
733627
|
await regenerateCompletionCache();
|
|
733357
733628
|
}
|
|
@@ -733370,9 +733641,9 @@ async function update() {
|
|
|
733370
733641
|
await removeInstalledSymlink();
|
|
733371
733642
|
}
|
|
733372
733643
|
logForDebugging("update: Checking npm registry for latest version");
|
|
733373
|
-
logForDebugging(`update: Package URL: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733644
|
+
logForDebugging(`update: Package URL: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}`);
|
|
733374
733645
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
733375
|
-
const npmCommand = `npm view ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733646
|
+
const npmCommand = `npm view ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}@${npmTag} version`;
|
|
733376
733647
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
733377
733648
|
const latestVersion = await getLatestVersion(channel2);
|
|
733378
733649
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -733392,7 +733663,7 @@ async function update() {
|
|
|
733392
733663
|
`);
|
|
733393
733664
|
process.stderr.write(` • Corporate proxy/firewall blocking npm
|
|
733394
733665
|
`);
|
|
733395
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733666
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL && !{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL.startsWith("@anthropic")) {
|
|
733396
733667
|
process.stderr.write(` • Internal/development build not published to npm
|
|
733397
733668
|
`);
|
|
733398
733669
|
}
|
|
@@ -733404,19 +733675,19 @@ async function update() {
|
|
|
733404
733675
|
`);
|
|
733405
733676
|
process.stderr.write(` • Run with --debug flag for more details
|
|
733406
733677
|
`);
|
|
733407
|
-
const packageName = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733678
|
+
const packageName = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@anthropic-ai/claude-cli" : "@anthropic-ai/claude-code");
|
|
733408
733679
|
process.stderr.write(` • Manually check: npm view ${packageName} version
|
|
733409
733680
|
`);
|
|
733410
733681
|
process.stderr.write(` • Check if you need to login: npm whoami
|
|
733411
733682
|
`);
|
|
733412
733683
|
await gracefulShutdown(1);
|
|
733413
733684
|
}
|
|
733414
|
-
if (latestVersion === { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733415
|
-
writeToStdout(source_default.green(`CCL is up to date (${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733685
|
+
if (latestVersion === { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION) {
|
|
733686
|
+
writeToStdout(source_default.green(`CCL is up to date (${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION})`) + `
|
|
733416
733687
|
`);
|
|
733417
733688
|
await gracefulShutdown(0);
|
|
733418
733689
|
}
|
|
733419
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733690
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION})
|
|
733420
733691
|
`);
|
|
733421
733692
|
writeToStdout(`Installing update...
|
|
733422
733693
|
`);
|
|
@@ -733461,7 +733732,7 @@ async function update() {
|
|
|
733461
733732
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
733462
733733
|
switch (status2) {
|
|
733463
733734
|
case "success":
|
|
733464
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733735
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} to version ${latestVersion}`) + `
|
|
733465
733736
|
`);
|
|
733466
733737
|
await regenerateCompletionCache();
|
|
733467
733738
|
break;
|
|
@@ -733471,7 +733742,7 @@ async function update() {
|
|
|
733471
733742
|
if (useLocalUpdate) {
|
|
733472
733743
|
process.stderr.write(`Try manually updating with:
|
|
733473
733744
|
`);
|
|
733474
|
-
process.stderr.write(` cd ~/.claude/local && npm update ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733745
|
+
process.stderr.write(` cd ~/.claude/local && npm update ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}
|
|
733475
733746
|
`);
|
|
733476
733747
|
} else {
|
|
733477
733748
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -733487,7 +733758,7 @@ async function update() {
|
|
|
733487
733758
|
if (useLocalUpdate) {
|
|
733488
733759
|
process.stderr.write(`Try manually updating with:
|
|
733489
733760
|
`);
|
|
733490
|
-
process.stderr.write(` cd ~/.claude/local && npm update ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733761
|
+
process.stderr.write(` cd ~/.claude/local && npm update ${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.PACKAGE_URL}
|
|
733491
733762
|
`);
|
|
733492
733763
|
} else {
|
|
733493
733764
|
process.stderr.write(`Or consider using native installation with: margay install
|
|
@@ -733674,7 +733945,7 @@ function runMigrations() {
|
|
|
733674
733945
|
if (feature("TRANSCRIPT_CLASSIFIER")) {
|
|
733675
733946
|
resetAutoModeOptInForDefaultOffer();
|
|
733676
733947
|
}
|
|
733677
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733948
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
733678
733949
|
migrateFennecToOpus();
|
|
733679
733950
|
}
|
|
733680
733951
|
saveGlobalConfig((prev) => prev.migrationVersion === CURRENT_MIGRATION_VERSION ? prev : {
|
|
@@ -733721,7 +733992,7 @@ function startDeferredPrefetches() {
|
|
|
733721
733992
|
if (!isBareMode()) {
|
|
733722
733993
|
skillChangeDetector.initialize();
|
|
733723
733994
|
}
|
|
733724
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
733995
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
733725
733996
|
Promise.resolve().then(() => exports_eventLoopStallDetector).then((m4) => m4.startEventLoopStallDetector());
|
|
733726
733997
|
}
|
|
733727
733998
|
}
|
|
@@ -734217,9 +734488,9 @@ async function run() {
|
|
|
734217
734488
|
const initOnly = options.initOnly ?? false;
|
|
734218
734489
|
const maintenance = options.maintenance ?? false;
|
|
734219
734490
|
const disableSlashCommands = options.disableSlashCommands || false;
|
|
734220
|
-
const tasksOption = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
734491
|
+
const tasksOption = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && options.tasks;
|
|
734221
734492
|
const taskListId = tasksOption ? typeof tasksOption === "string" ? tasksOption : DEFAULT_TASKS_MODE_TASK_LIST_ID : undefined;
|
|
734222
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
734493
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && taskListId) {
|
|
734223
734494
|
process.env.CLAUDE_CODE_TASK_LIST_ID = taskListId;
|
|
734224
734495
|
}
|
|
734225
734496
|
const worktreeOption = isWorktreeModeEnabled() ? options.worktree : undefined;
|
|
@@ -734505,7 +734776,7 @@ ${formattedErrors}
|
|
|
734505
734776
|
}
|
|
734506
734777
|
const chromeOpts = options;
|
|
734507
734778
|
setChromeFlagOverride(chromeOpts.chrome);
|
|
734508
|
-
const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome) && ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
734779
|
+
const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome) && ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" || isClaudeAISubscriber());
|
|
734509
734780
|
const autoEnableClaudeInChrome = !enableClaudeInChrome && shouldAutoEnableClaudeInChrome();
|
|
734510
734781
|
if (enableClaudeInChrome) {
|
|
734511
734782
|
const platform6 = getPlatform();
|
|
@@ -734678,7 +734949,7 @@ ${hint}` : hint;
|
|
|
734678
734949
|
dangerousPermissions,
|
|
734679
734950
|
overlyBroadBashPermissions
|
|
734680
734951
|
} = initResult;
|
|
734681
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
734952
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && overlyBroadBashPermissions.length > 0) {
|
|
734682
734953
|
for (const permission of overlyBroadBashPermissions) {
|
|
734683
734954
|
logForDebugging(`Ignoring overly broad shell permission ${permission.ruleDisplay} from ${permission.sourceDisplay}`);
|
|
734684
734955
|
}
|
|
@@ -734810,7 +735081,7 @@ ${hint}` : hint;
|
|
|
734810
735081
|
cacheSessionTitle(sessionNameArg);
|
|
734811
735082
|
}
|
|
734812
735083
|
const explicitModel = options.model || process.env.ANTHROPIC_MODEL;
|
|
734813
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
735084
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && explicitModel && explicitModel !== "default" && !hasGrowthBookEnvOverride("tengu_ant_model_override") && getGlobalConfig().cachedGrowthBookFeatures?.["tengu_ant_model_override"] == null) {
|
|
734814
735085
|
await initializeGrowthBook();
|
|
734815
735086
|
}
|
|
734816
735087
|
const userSpecifiedModel = options.model === "default" ? getDefaultMainLoopModel() : options.model;
|
|
@@ -734931,7 +735202,7 @@ ${inputPrompt}` : mainThreadAgentDefinition.initialPrompt;
|
|
|
734931
735202
|
}
|
|
734932
735203
|
if (customAgent.memory) {
|
|
734933
735204
|
logEvent("tengu_agent_memory_loaded", {
|
|
734934
|
-
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
735205
|
+
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" && {
|
|
734935
735206
|
agent_type: customAgent.agentType
|
|
734936
735207
|
},
|
|
734937
735208
|
scope: customAgent.memory,
|
|
@@ -734987,7 +735258,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
734987
735258
|
const ctx = getRenderContext(false);
|
|
734988
735259
|
getFpsMetrics = ctx.getFpsMetrics;
|
|
734989
735260
|
stats2 = ctx.stats;
|
|
734990
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
735261
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
734991
735262
|
installAsciicastRecorder();
|
|
734992
735263
|
}
|
|
734993
735264
|
const {
|
|
@@ -735175,7 +735446,7 @@ ${inputPrompt}` : mergePrompt;
|
|
|
735175
735446
|
}
|
|
735176
735447
|
}
|
|
735177
735448
|
logForDiagnosticsNoPII("info", "started", {
|
|
735178
|
-
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
735449
|
+
version: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
735179
735450
|
is_native_binary: isInBundledMode()
|
|
735180
735451
|
});
|
|
735181
735452
|
registerCleanup(async () => {
|
|
@@ -735408,7 +735679,7 @@ ${inputPrompt}` : mergePrompt;
|
|
|
735408
735679
|
if (!isBareMode()) {
|
|
735409
735680
|
startDeferredPrefetches();
|
|
735410
735681
|
Promise.resolve().then(() => (init_backgroundHousekeeping(), exports_backgroundHousekeeping)).then((m4) => m4.startBackgroundHousekeeping());
|
|
735411
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
735682
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
735412
735683
|
Promise.resolve().then(() => exports_sdkHeapDumpMonitor).then((m4) => m4.startSdkMemoryMonitor());
|
|
735413
735684
|
}
|
|
735414
735685
|
}
|
|
@@ -735621,7 +735892,7 @@ ${inputPrompt}` : mergePrompt;
|
|
|
735621
735892
|
logStartupTelemetry();
|
|
735622
735893
|
logSessionTelemetry();
|
|
735623
735894
|
});
|
|
735624
|
-
const sessionUploaderPromise = { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
735895
|
+
const sessionUploaderPromise = { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? Promise.resolve().then(() => exports_sessionDataUploader) : null;
|
|
735625
735896
|
const uploaderReady = sessionUploaderPromise ? sessionUploaderPromise.then((mod4) => mod4.createSessionTurnUploader()).catch(() => null) : null;
|
|
735626
735897
|
const sessionConfig = {
|
|
735627
735898
|
debug: debug5 || debugToStderr,
|
|
@@ -735765,7 +736036,7 @@ Session: ${directConnectConfig.sessionId}`, "info");
|
|
|
735765
736036
|
sshSession = await createSSHSession2({
|
|
735766
736037
|
host: _pendingSSH.host,
|
|
735767
736038
|
cwd: _pendingSSH.cwd,
|
|
735768
|
-
localVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
736039
|
+
localVersion: { USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION,
|
|
735769
736040
|
permissionMode: _pendingSSH.permissionMode,
|
|
735770
736041
|
dangerouslySkipPermissions: _pendingSSH.dangerouslySkipPermissions,
|
|
735771
736042
|
extraCliArgs: _pendingSSH.extraCliArgs
|
|
@@ -736067,7 +736338,7 @@ Usage: margay --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
736067
736338
|
}
|
|
736068
736339
|
}
|
|
736069
736340
|
}
|
|
736070
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
736341
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
736071
736342
|
if (options.resume && typeof options.resume === "string" && !maybeSessionId) {
|
|
736072
736343
|
const {
|
|
736073
736344
|
parseCcshareId: parseCcshareId2,
|
|
@@ -736270,13 +736541,13 @@ Usage: margay --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
736270
736541
|
pendingHookMessages
|
|
736271
736542
|
}, renderAndRun);
|
|
736272
736543
|
}
|
|
736273
|
-
}).version(`${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
736544
|
+
}).version(`${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} (CCL)`, "-v, --version", "Output the version number");
|
|
736274
736545
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
736275
736546
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
736276
736547
|
if (canUserConfigureAdvisor()) {
|
|
736277
736548
|
program2.addOption(new Option("--advisor <model>", "Enable the server-side advisor tool with the specified model (alias or full ID).").hideHelp());
|
|
736278
736549
|
}
|
|
736279
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
736550
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
736280
736551
|
program2.addOption(new Option("--delegate-permissions", "[ANT-ONLY] Alias for --permission-mode auto.").implies({
|
|
736281
736552
|
permissionMode: "auto"
|
|
736282
736553
|
}));
|
|
@@ -736680,7 +736951,7 @@ Omit sessionId to discover and pick from available sessions.
|
|
|
736680
736951
|
} = await Promise.resolve().then(() => (init_update(), exports_update));
|
|
736681
736952
|
await update2();
|
|
736682
736953
|
});
|
|
736683
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
736954
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
736684
736955
|
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 () => {
|
|
736685
736956
|
const {
|
|
736686
736957
|
up: up2
|
|
@@ -736688,7 +736959,7 @@ Omit sessionId to discover and pick from available sessions.
|
|
|
736688
736959
|
await up2();
|
|
736689
736960
|
});
|
|
736690
736961
|
}
|
|
736691
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
736962
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
736692
736963
|
program2.command("rollback [target]").description(`[ANT-ONLY] Roll back to a previous release
|
|
736693
736964
|
|
|
736694
736965
|
Examples:
|
|
@@ -736707,7 +736978,7 @@ Examples:
|
|
|
736707
736978
|
} = await Promise.resolve().then(() => (init_util(), exports_util));
|
|
736708
736979
|
await installHandler2(target, options);
|
|
736709
736980
|
});
|
|
736710
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
736981
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
736711
736982
|
const validateLogId = (value) => {
|
|
736712
736983
|
const maybeSessionId = validateUuid2(value);
|
|
736713
736984
|
if (maybeSessionId)
|
|
@@ -736737,7 +737008,7 @@ Examples:
|
|
|
736737
737008
|
} = await Promise.resolve().then(() => exports_ant);
|
|
736738
737009
|
await exportHandler2(source, outputFile);
|
|
736739
737010
|
});
|
|
736740
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
737011
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant") {
|
|
736741
737012
|
const taskCmd = program2.command("task").description("[ANT-ONLY] Manage task list tasks");
|
|
736742
737013
|
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) => {
|
|
736743
737014
|
const {
|
|
@@ -736847,7 +737118,7 @@ async function logTenguInit({
|
|
|
736847
737118
|
assistantActivationPath
|
|
736848
737119
|
},
|
|
736849
737120
|
autoUpdatesChannel: getInitialSettings().autoUpdatesChannel ?? "latest",
|
|
736850
|
-
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
737121
|
+
...{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE === "ant" ? (() => {
|
|
736851
737122
|
const cwd5 = getCwd();
|
|
736852
737123
|
const gitRoot = findGitRoot(cwd5);
|
|
736853
737124
|
const rp = gitRoot ? relative39(gitRoot, cwd5) || "." : undefined;
|
|
@@ -737070,7 +737341,7 @@ var init_main2 = __esm(() => {
|
|
|
737070
737341
|
kairosGate = feature("KAIROS") ? __toCommonJS(exports_gate) : null;
|
|
737071
737342
|
autoModeStateModule7 = feature("TRANSCRIPT_CLASSIFIER") ? __toCommonJS(exports_autoModeState) : null;
|
|
737072
737343
|
profileCheckpoint("main_tsx_imports_loaded");
|
|
737073
|
-
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
737344
|
+
if ({ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.USER_TYPE !== "ant" && isBeingDebugged()) {
|
|
737074
737345
|
process.exit(1);
|
|
737075
737346
|
}
|
|
737076
737347
|
_pendingConnect = feature("DIRECT_CONNECT") ? {
|
|
@@ -737177,7 +737448,7 @@ if (feature("ABLATION_BASELINE") && process.env.CLAUDE_CODE_ABLATION_BASELINE) {
|
|
|
737177
737448
|
async function main2() {
|
|
737178
737449
|
const args = process.argv.slice(2);
|
|
737179
737450
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
737180
|
-
console.log(`${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.
|
|
737451
|
+
console.log(`${{ USER_TYPE: "external", VERSION: "1.3.6-alpha.3", PACKAGE_URL: "@margay/ccl-core", BUILD_TIMESTAMP: "2026-09-09T21:34:54.044Z", ISSUES_EXPLAINER: "", VERSION_CHANGELOG: "", NATIVE_PACKAGE_URL: "", CLAUDE_VERSION: "1.3.6-alpha.3" }.VERSION} (Margay)`);
|
|
737181
737452
|
return;
|
|
737182
737453
|
}
|
|
737183
737454
|
const {
|