@rayu-dev/rayu-cli 1.2.15 → 1.2.16
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/rayu.js +206 -156
- package/package.json +1 -1
package/dist/rayu.js
CHANGED
|
@@ -147971,7 +147971,7 @@ var init_auth = __esm(() => {
|
|
|
147971
147971
|
|
|
147972
147972
|
// src/utils/userAgent.ts
|
|
147973
147973
|
function getRayuUserAgent() {
|
|
147974
|
-
return `rayu/${"1.2.
|
|
147974
|
+
return `rayu/${"1.2.16"}`;
|
|
147975
147975
|
}
|
|
147976
147976
|
var getClaudeCodeUserAgent;
|
|
147977
147977
|
var init_userAgent = __esm(() => {
|
|
@@ -147997,7 +147997,7 @@ function getUserAgent() {
|
|
|
147997
147997
|
const clientApp = process.env.RAYU_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}` : "";
|
|
147998
147998
|
const workload = getWorkload();
|
|
147999
147999
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
148000
|
-
return `rayu/${"1.2.
|
|
148000
|
+
return `rayu/${"1.2.16"} (${"external"}, ${process.env.RAYU_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
148001
148001
|
}
|
|
148002
148002
|
function getMCPUserAgent() {
|
|
148003
148003
|
const parts = [];
|
|
@@ -148011,7 +148011,7 @@ function getMCPUserAgent() {
|
|
|
148011
148011
|
parts.push(`client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}`);
|
|
148012
148012
|
}
|
|
148013
148013
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
148014
|
-
return `rayu/${"1.2.
|
|
148014
|
+
return `rayu/${"1.2.16"}${suffix}`;
|
|
148015
148015
|
}
|
|
148016
148016
|
function getWebFetchUserAgent() {
|
|
148017
148017
|
return `Rayu-User (${getRayuUserAgent()})`;
|
|
@@ -148134,7 +148134,7 @@ var init_user = __esm(() => {
|
|
|
148134
148134
|
deviceId,
|
|
148135
148135
|
sessionId: getSessionId(),
|
|
148136
148136
|
email: getEmail(),
|
|
148137
|
-
appVersion: "1.2.
|
|
148137
|
+
appVersion: "1.2.16",
|
|
148138
148138
|
platform: getHostPlatformForAnalytics(),
|
|
148139
148139
|
organizationUuid,
|
|
148140
148140
|
accountUuid,
|
|
@@ -178794,77 +178794,6 @@ var init_bedrock_sdk = __esm(() => {
|
|
|
178794
178794
|
init_client3();
|
|
178795
178795
|
});
|
|
178796
178796
|
|
|
178797
|
-
// src/services/api/gemini/vertexChatClient.ts
|
|
178798
|
-
var exports_vertexChatClient = {};
|
|
178799
|
-
__export(exports_vertexChatClient, {
|
|
178800
|
-
toVertexModelId: () => toVertexModelId,
|
|
178801
|
-
createVertexGeminiClient: () => createVertexGeminiClient,
|
|
178802
|
-
buildVertexFetch: () => buildVertexFetch
|
|
178803
|
-
});
|
|
178804
|
-
function toVertexModelId(model) {
|
|
178805
|
-
if (!model)
|
|
178806
|
-
return model;
|
|
178807
|
-
if (model.includes("/"))
|
|
178808
|
-
return model;
|
|
178809
|
-
return `google/${model}`;
|
|
178810
|
-
}
|
|
178811
|
-
function buildVertexFetch(getToken = getVertexAccessToken) {
|
|
178812
|
-
return async (input, init) => {
|
|
178813
|
-
const token = await getToken();
|
|
178814
|
-
const headers = new Headers(init?.headers);
|
|
178815
|
-
headers.set("Authorization", `Bearer ${token}`);
|
|
178816
|
-
let body = init?.body;
|
|
178817
|
-
if (typeof body === "string" && body.length > 0) {
|
|
178818
|
-
try {
|
|
178819
|
-
const parsed = JSON.parse(body);
|
|
178820
|
-
if (typeof parsed.model === "string") {
|
|
178821
|
-
parsed.model = toVertexModelId(parsed.model);
|
|
178822
|
-
body = JSON.stringify(parsed);
|
|
178823
|
-
}
|
|
178824
|
-
} catch {}
|
|
178825
|
-
}
|
|
178826
|
-
const res = await globalThis.fetch(input, { ...init, headers, body });
|
|
178827
|
-
if (res.status === 403) {
|
|
178828
|
-
const raw = await res.clone().text().catch(() => "");
|
|
178829
|
-
if (/PERMISSION_DENIED|aiplatform|has not been used|disabled/i.test(raw)) {
|
|
178830
|
-
const hint = 'Vertex AI access denied. On your GCP project: enable the "Vertex AI API" ' + "(console.cloud.google.com/apis/library/aiplatform.googleapis.com), ensure " + 'billing is active, and grant your account the "Vertex AI User" role ' + "(roles/aiplatform.user). Original: " + raw.slice(0, 300);
|
|
178831
|
-
return new Response(JSON.stringify({ error: { code: 403, status: "PERMISSION_DENIED", message: hint } }), {
|
|
178832
|
-
status: 403,
|
|
178833
|
-
headers: { "Content-Type": "application/json" }
|
|
178834
|
-
});
|
|
178835
|
-
}
|
|
178836
|
-
}
|
|
178837
|
-
if (res.status === 404) {
|
|
178838
|
-
const raw = await res.clone().text().catch(() => "");
|
|
178839
|
-
if (/Publisher Model|not found|was not found/i.test(raw)) {
|
|
178840
|
-
const hint = "Model not available on Vertex in this region. Gemini 3.x is only served " + "in `global` / `us-central1` — reconnect (/connect → Vertex) and pick the " + "`global` region, or choose a model your region serves (e.g. gemini-2.5-pro, " + "gemini-2.5-flash). Original: " + raw.slice(0, 240);
|
|
178841
|
-
return new Response(JSON.stringify({ error: { code: 404, status: "NOT_FOUND", message: hint } }), {
|
|
178842
|
-
status: 404,
|
|
178843
|
-
headers: { "Content-Type": "application/json" }
|
|
178844
|
-
});
|
|
178845
|
-
}
|
|
178846
|
-
}
|
|
178847
|
-
return res;
|
|
178848
|
-
};
|
|
178849
|
-
}
|
|
178850
|
-
function createVertexGeminiClient(provider, maxRetries) {
|
|
178851
|
-
const project = provider.gcpProject ?? "";
|
|
178852
|
-
const region = provider.gcpRegion || DEFAULT_VERTEX_REGION;
|
|
178853
|
-
const baseURL = vertexBaseURL(project, region);
|
|
178854
|
-
return createOpenAICompatibleClient({
|
|
178855
|
-
apiKey: "",
|
|
178856
|
-
baseURL,
|
|
178857
|
-
maxRetries,
|
|
178858
|
-
providerId: provider.id,
|
|
178859
|
-
fetch: buildVertexFetch()
|
|
178860
|
-
});
|
|
178861
|
-
}
|
|
178862
|
-
var init_vertexChatClient = __esm(() => {
|
|
178863
|
-
init_rayuProviders();
|
|
178864
|
-
init_openaiAdapter();
|
|
178865
|
-
init_vertexAuth();
|
|
178866
|
-
});
|
|
178867
|
-
|
|
178868
178797
|
// src/utils/browser.ts
|
|
178869
178798
|
function validateUrl(url3) {
|
|
178870
178799
|
let parsedUrl;
|
|
@@ -179776,6 +179705,127 @@ var init_codeAssistClient = __esm(() => {
|
|
|
179776
179705
|
SESSION_ID = randomUUID4();
|
|
179777
179706
|
});
|
|
179778
179707
|
|
|
179708
|
+
// src/services/api/gemini/vertexGenaiClient.ts
|
|
179709
|
+
var exports_vertexGenaiClient = {};
|
|
179710
|
+
__export(exports_vertexGenaiClient, {
|
|
179711
|
+
createVertexGenaiClient: () => createVertexGenaiClient,
|
|
179712
|
+
buildVertexGenaiBody: () => buildVertexGenaiBody,
|
|
179713
|
+
bareVertexModel: () => bareVertexModel
|
|
179714
|
+
});
|
|
179715
|
+
function bareVertexModel(model) {
|
|
179716
|
+
return model.replace(/^models\//, "").replace(/^google\//, "");
|
|
179717
|
+
}
|
|
179718
|
+
function buildVertexGenaiBody(params) {
|
|
179719
|
+
const b = buildGenAIBody(params);
|
|
179720
|
+
const body = { contents: b.contents };
|
|
179721
|
+
if (b.systemInstruction)
|
|
179722
|
+
body.systemInstruction = { parts: [{ text: b.systemInstruction }] };
|
|
179723
|
+
if (b.tools)
|
|
179724
|
+
body.tools = b.tools;
|
|
179725
|
+
if (Object.keys(b.config).length)
|
|
179726
|
+
body.generationConfig = b.config;
|
|
179727
|
+
return body;
|
|
179728
|
+
}
|
|
179729
|
+
function normalizeError3(e2, model) {
|
|
179730
|
+
reportIssue("vertex_genai.request_failed", "Vertex genai request failed", {
|
|
179731
|
+
model,
|
|
179732
|
+
error: e2 instanceof Error ? e2.message : String(e2)
|
|
179733
|
+
});
|
|
179734
|
+
const raw = e2 instanceof Error ? e2.message : String(e2);
|
|
179735
|
+
if (/\b403\b|PERMISSION_DENIED|has not been used|aiplatform.*disabled/i.test(raw)) {
|
|
179736
|
+
return new Error('Vertex AI access denied. On your GCP project: enable the "Vertex AI API" ' + "(console.cloud.google.com/apis/library/aiplatform.googleapis.com), ensure " + 'billing is active, and grant your account the "Vertex AI User" role ' + `(roles/aiplatform.user). (Original: ${raw.slice(0, 240)})`);
|
|
179737
|
+
}
|
|
179738
|
+
if (/\b404\b|Publisher Model|was not found|NOT_FOUND/i.test(raw)) {
|
|
179739
|
+
return new Error(`Model "${model}" isn't available on Vertex in this region. Gemini 3.x is ` + "served in `global` / `us-central1` — reconnect (/connect → Vertex) and pick " + "the `global` region, or choose a model your region serves (e.g. gemini-2.5-pro, " + `gemini-2.5-flash). (Original: ${raw.slice(0, 200)})`);
|
|
179740
|
+
}
|
|
179741
|
+
return e2 instanceof Error ? e2 : new Error(String(e2));
|
|
179742
|
+
}
|
|
179743
|
+
function modelUrl(cfg, model, method, query3) {
|
|
179744
|
+
const region = cfg.region || DEFAULT_VERTEX_REGION;
|
|
179745
|
+
const m2 = bareVertexModel(model);
|
|
179746
|
+
return `https://${vertexHost(region)}/v1beta1/projects/${cfg.project}` + `/locations/${region}/publishers/google/models/${m2}:${method}${query3 ? `?${query3}` : ""}`;
|
|
179747
|
+
}
|
|
179748
|
+
async function callVertex(cfg, model, method, body, signal, query3) {
|
|
179749
|
+
const getToken = cfg.getToken ?? getVertexAccessToken;
|
|
179750
|
+
const token = await getToken();
|
|
179751
|
+
return globalThis.fetch(modelUrl(cfg, model, method, query3), {
|
|
179752
|
+
method: "POST",
|
|
179753
|
+
headers: {
|
|
179754
|
+
Authorization: `Bearer ${token}`,
|
|
179755
|
+
"Content-Type": "application/json",
|
|
179756
|
+
"x-goog-user-project": cfg.project
|
|
179757
|
+
},
|
|
179758
|
+
body: JSON.stringify(body),
|
|
179759
|
+
signal
|
|
179760
|
+
});
|
|
179761
|
+
}
|
|
179762
|
+
function createVertexGenaiClient(provider, maxRetries) {
|
|
179763
|
+
const project = provider.gcpProject || process.env.GOOGLE_CLOUD_PROJECT || "";
|
|
179764
|
+
const cfg = {
|
|
179765
|
+
project,
|
|
179766
|
+
region: provider.gcpRegion || DEFAULT_VERTEX_REGION,
|
|
179767
|
+
maxRetries,
|
|
179768
|
+
providerId: provider.id
|
|
179769
|
+
};
|
|
179770
|
+
function ensureProject() {
|
|
179771
|
+
if (!cfg.project) {
|
|
179772
|
+
throw new Error("No GCP project configured for Vertex AI. Run /connect → Google Gemini — " + "Vertex AI, or set GOOGLE_CLOUD_PROJECT.");
|
|
179773
|
+
}
|
|
179774
|
+
}
|
|
179775
|
+
async function runNonStreaming(params) {
|
|
179776
|
+
try {
|
|
179777
|
+
ensureProject();
|
|
179778
|
+
const res = await callVertex(cfg, params.model, "generateContent", buildVertexGenaiBody(params));
|
|
179779
|
+
if (!res.ok) {
|
|
179780
|
+
const text = await res.text().catch(() => "");
|
|
179781
|
+
throw new Error(`Vertex generateContent ${res.status}: ${text.slice(0, 300)}`);
|
|
179782
|
+
}
|
|
179783
|
+
const json2 = await res.json();
|
|
179784
|
+
return toBetaMessageFromGenAI(json2, params.model);
|
|
179785
|
+
} catch (e2) {
|
|
179786
|
+
throw normalizeError3(e2, params.model);
|
|
179787
|
+
}
|
|
179788
|
+
}
|
|
179789
|
+
async function runStreaming(params) {
|
|
179790
|
+
try {
|
|
179791
|
+
ensureProject();
|
|
179792
|
+
const res = await callVertex(cfg, params.model, "streamGenerateContent", buildVertexGenaiBody(params), undefined, "alt=sse");
|
|
179793
|
+
if (!res.ok || !res.body) {
|
|
179794
|
+
const text = await res.text().catch(() => "");
|
|
179795
|
+
throw new Error(`Vertex streamGenerateContent ${res.status}: ${text.slice(0, 300)}`);
|
|
179796
|
+
}
|
|
179797
|
+
const chunks = parseSSEResponses(res.body);
|
|
179798
|
+
return {
|
|
179799
|
+
data: translateGenAIStream(chunks, params.model),
|
|
179800
|
+
request_id: null,
|
|
179801
|
+
response: new Response(null, { status: 200 })
|
|
179802
|
+
};
|
|
179803
|
+
} catch (e2) {
|
|
179804
|
+
throw normalizeError3(e2, params.model);
|
|
179805
|
+
}
|
|
179806
|
+
}
|
|
179807
|
+
return {
|
|
179808
|
+
beta: {
|
|
179809
|
+
messages: {
|
|
179810
|
+
create(params) {
|
|
179811
|
+
if (params.stream) {
|
|
179812
|
+
const p = Promise.resolve();
|
|
179813
|
+
return Object.assign(p, { withResponse: () => runStreaming(params) });
|
|
179814
|
+
}
|
|
179815
|
+
return runNonStreaming(params);
|
|
179816
|
+
}
|
|
179817
|
+
}
|
|
179818
|
+
}
|
|
179819
|
+
};
|
|
179820
|
+
}
|
|
179821
|
+
var init_vertexGenaiClient = __esm(() => {
|
|
179822
|
+
init_rayuDiagnostics();
|
|
179823
|
+
init_rayuProviders();
|
|
179824
|
+
init_vertexAuth();
|
|
179825
|
+
init_codeAssistClient();
|
|
179826
|
+
init_genaiTranslate();
|
|
179827
|
+
});
|
|
179828
|
+
|
|
179779
179829
|
// src/services/api/client.ts
|
|
179780
179830
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
179781
179831
|
function createStderrLogger() {
|
|
@@ -179824,8 +179874,8 @@ async function getRayuVertexClient(maxRetries) {
|
|
|
179824
179874
|
if (active?.kind !== "vertex") {
|
|
179825
179875
|
return null;
|
|
179826
179876
|
}
|
|
179827
|
-
const {
|
|
179828
|
-
return
|
|
179877
|
+
const { createVertexGenaiClient: createVertexGenaiClient2 } = await Promise.resolve().then(() => (init_vertexGenaiClient(), exports_vertexGenaiClient));
|
|
179878
|
+
return createVertexGenaiClient2(active, maxRetries);
|
|
179829
179879
|
}
|
|
179830
179880
|
async function buildGenAIClientFor(provider, maxRetries) {
|
|
179831
179881
|
const { createCodeAssistClient: createCodeAssistClient2 } = await Promise.resolve().then(() => (init_codeAssistClient(), exports_codeAssistClient));
|
|
@@ -179859,8 +179909,8 @@ async function buildClientForProvider(provider, maxRetries) {
|
|
|
179859
179909
|
});
|
|
179860
179910
|
}
|
|
179861
179911
|
if (provider.kind === "vertex") {
|
|
179862
|
-
const {
|
|
179863
|
-
return
|
|
179912
|
+
const { createVertexGenaiClient: createVertexGenaiClient2 } = await Promise.resolve().then(() => (init_vertexGenaiClient(), exports_vertexGenaiClient));
|
|
179913
|
+
return createVertexGenaiClient2(provider, maxRetries);
|
|
179864
179914
|
}
|
|
179865
179915
|
if (provider.kind === "genai") {
|
|
179866
179916
|
return buildGenAIClientFor(provider, maxRetries);
|
|
@@ -181154,7 +181204,7 @@ var init_metadata = __esm(() => {
|
|
|
181154
181204
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
181155
181205
|
WHITESPACE_REGEX = /\s+/;
|
|
181156
181206
|
getVersionBase = memoize_default(() => {
|
|
181157
|
-
const match = "1.2.
|
|
181207
|
+
const match = "1.2.16".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
181158
181208
|
return match ? match[0] : undefined;
|
|
181159
181209
|
});
|
|
181160
181210
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -181193,7 +181243,7 @@ var init_metadata = __esm(() => {
|
|
|
181193
181243
|
},
|
|
181194
181244
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
181195
181245
|
isRayuAction: isEnvTruthy(process.env.RAYU_ACTION),
|
|
181196
|
-
version: "1.2.
|
|
181246
|
+
version: "1.2.16",
|
|
181197
181247
|
versionBase: getVersionBase(),
|
|
181198
181248
|
buildTime: "",
|
|
181199
181249
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
@@ -181807,7 +181857,7 @@ function initialize1PEventLogging() {
|
|
|
181807
181857
|
const platform2 = getPlatform();
|
|
181808
181858
|
const attributes = {
|
|
181809
181859
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "rayu",
|
|
181810
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.2.
|
|
181860
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.2.16"
|
|
181811
181861
|
};
|
|
181812
181862
|
if (platform2 === "wsl") {
|
|
181813
181863
|
const wslVersion = getWslVersion();
|
|
@@ -181834,7 +181884,7 @@ function initialize1PEventLogging() {
|
|
|
181834
181884
|
})
|
|
181835
181885
|
]
|
|
181836
181886
|
});
|
|
181837
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("io.rayu.events", "1.2.
|
|
181887
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("io.rayu.events", "1.2.16");
|
|
181838
181888
|
}
|
|
181839
181889
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
181840
181890
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -217750,7 +217800,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
217750
217800
|
if (!isAttributionHeaderEnabled()) {
|
|
217751
217801
|
return "";
|
|
217752
217802
|
}
|
|
217753
|
-
const version2 = `${"1.2.
|
|
217803
|
+
const version2 = `${"1.2.16"}.${fingerprint}`;
|
|
217754
217804
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
217755
217805
|
const cch = "";
|
|
217756
217806
|
const workload = getWorkload();
|
|
@@ -301838,7 +301888,7 @@ function getTelemetryAttributes() {
|
|
|
301838
301888
|
attributes["session.id"] = sessionId;
|
|
301839
301889
|
}
|
|
301840
301890
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
301841
|
-
attributes["app.version"] = "1.2.
|
|
301891
|
+
attributes["app.version"] = "1.2.16";
|
|
301842
301892
|
}
|
|
301843
301893
|
const oauthAccount = getOauthAccountInfo();
|
|
301844
301894
|
if (oauthAccount) {
|
|
@@ -412224,7 +412274,7 @@ function getInstallationEnv() {
|
|
|
412224
412274
|
return;
|
|
412225
412275
|
}
|
|
412226
412276
|
function getClaudeCodeVersion() {
|
|
412227
|
-
return "1.2.
|
|
412277
|
+
return "1.2.16";
|
|
412228
412278
|
}
|
|
412229
412279
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
412230
412280
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -417462,7 +417512,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
417462
417512
|
const client4 = new Client({
|
|
417463
417513
|
name: "claude-code",
|
|
417464
417514
|
title: "RAYU",
|
|
417465
|
-
version: "1.2.
|
|
417515
|
+
version: "1.2.16",
|
|
417466
417516
|
description: "Anthropic's agentic coding tool",
|
|
417467
417517
|
websiteUrl: PRODUCT_URL
|
|
417468
417518
|
}, {
|
|
@@ -417779,7 +417829,7 @@ var init_client7 = __esm(() => {
|
|
|
417779
417829
|
const client4 = new Client({
|
|
417780
417830
|
name: "claude-code",
|
|
417781
417831
|
title: "RAYU",
|
|
417782
|
-
version: "1.2.
|
|
417832
|
+
version: "1.2.16",
|
|
417783
417833
|
description: "Anthropic's agentic coding tool",
|
|
417784
417834
|
websiteUrl: PRODUCT_URL
|
|
417785
417835
|
}, {
|
|
@@ -432565,7 +432615,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
432565
432615
|
}
|
|
432566
432616
|
function computeFingerprintFromMessages(messages) {
|
|
432567
432617
|
const firstMessageText = extractFirstMessageText(messages);
|
|
432568
|
-
return computeFingerprint(firstMessageText, "1.2.
|
|
432618
|
+
return computeFingerprint(firstMessageText, "1.2.16");
|
|
432569
432619
|
}
|
|
432570
432620
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
432571
432621
|
var init_fingerprint = () => {};
|
|
@@ -432607,7 +432657,7 @@ async function sideQuery(opts) {
|
|
|
432607
432657
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
432608
432658
|
}
|
|
432609
432659
|
const messageText = extractFirstUserMessageText(messages);
|
|
432610
|
-
const fingerprint = computeFingerprint(messageText, "1.2.
|
|
432660
|
+
const fingerprint = computeFingerprint(messageText, "1.2.16");
|
|
432611
432661
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
432612
432662
|
const systemBlocks = [
|
|
432613
432663
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -527367,7 +527417,7 @@ function Feedback({
|
|
|
527367
527417
|
platform: env4.platform,
|
|
527368
527418
|
gitRepo: envInfo.isGit,
|
|
527369
527419
|
terminal: env4.terminal,
|
|
527370
|
-
version: "1.2.
|
|
527420
|
+
version: "1.2.16",
|
|
527371
527421
|
transcript: normalizeMessagesForAPI(messages),
|
|
527372
527422
|
errors: sanitizedErrors,
|
|
527373
527423
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -527559,7 +527609,7 @@ function Feedback({
|
|
|
527559
527609
|
", ",
|
|
527560
527610
|
env4.terminal,
|
|
527561
527611
|
", v",
|
|
527562
|
-
"1.2.
|
|
527612
|
+
"1.2.16"
|
|
527563
527613
|
]
|
|
527564
527614
|
}, undefined, true, undefined, this)
|
|
527565
527615
|
]
|
|
@@ -527665,7 +527715,7 @@ ${sanitizedDescription}
|
|
|
527665
527715
|
` + `**Environment Info**
|
|
527666
527716
|
` + `- Platform: ${env4.platform}
|
|
527667
527717
|
` + `- Terminal: ${env4.terminal}
|
|
527668
|
-
` + `- Version: ${"1.2.
|
|
527718
|
+
` + `- Version: ${"1.2.16"}
|
|
527669
527719
|
` + `- Feedback ID: ${feedbackId}
|
|
527670
527720
|
` + `
|
|
527671
527721
|
**Errors**
|
|
@@ -530504,9 +530554,9 @@ async function assertMinVersion() {
|
|
|
530504
530554
|
if (false) {}
|
|
530505
530555
|
try {
|
|
530506
530556
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
530507
|
-
if (versionConfig.minVersion && lt("1.2.
|
|
530557
|
+
if (versionConfig.minVersion && lt("1.2.16", versionConfig.minVersion)) {
|
|
530508
530558
|
console.error(`
|
|
530509
|
-
It looks like your version of RAYU (${"1.2.
|
|
530559
|
+
It looks like your version of RAYU (${"1.2.16"}) needs an update.
|
|
530510
530560
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
530511
530561
|
|
|
530512
530562
|
To update, please run:
|
|
@@ -530705,7 +530755,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
530705
530755
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
530706
530756
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
530707
530757
|
pid: process.pid,
|
|
530708
|
-
currentVersion: "1.2.
|
|
530758
|
+
currentVersion: "1.2.16"
|
|
530709
530759
|
});
|
|
530710
530760
|
return "in_progress";
|
|
530711
530761
|
}
|
|
@@ -530714,7 +530764,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
530714
530764
|
if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
|
|
530715
530765
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
530716
530766
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
530717
|
-
currentVersion: "1.2.
|
|
530767
|
+
currentVersion: "1.2.16"
|
|
530718
530768
|
});
|
|
530719
530769
|
console.error(`
|
|
530720
530770
|
Error: Windows NPM detected in WSL
|
|
@@ -531249,7 +531299,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
531249
531299
|
}
|
|
531250
531300
|
async function getDoctorDiagnostic() {
|
|
531251
531301
|
const installationType = await getCurrentInstallationType();
|
|
531252
|
-
const version2 = typeof MACRO !== "undefined" ? "1.2.
|
|
531302
|
+
const version2 = typeof MACRO !== "undefined" ? "1.2.16" : "unknown";
|
|
531253
531303
|
const installationPath = await getInstallationPath();
|
|
531254
531304
|
const invokedBinary = getInvokedBinary();
|
|
531255
531305
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -532044,8 +532094,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
532044
532094
|
const maxVersion = await getMaxVersion();
|
|
532045
532095
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
532046
532096
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
532047
|
-
if (gte("1.2.
|
|
532048
|
-
logForDebugging(`Native installer: current version ${"1.2.
|
|
532097
|
+
if (gte("1.2.16", maxVersion)) {
|
|
532098
|
+
logForDebugging(`Native installer: current version ${"1.2.16"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
532049
532099
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
532050
532100
|
latency_ms: Date.now() - startTime,
|
|
532051
532101
|
max_version: maxVersion,
|
|
@@ -532056,7 +532106,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
532056
532106
|
version2 = maxVersion;
|
|
532057
532107
|
}
|
|
532058
532108
|
}
|
|
532059
|
-
if (!forceReinstall && version2 === "1.2.
|
|
532109
|
+
if (!forceReinstall && version2 === "1.2.16" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
|
|
532060
532110
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
532061
532111
|
logEvent("tengu_native_update_complete", {
|
|
532062
532112
|
latency_ms: Date.now() - startTime,
|
|
@@ -533252,7 +533302,7 @@ function buildPrimarySection() {
|
|
|
533252
533302
|
}, undefined, false, undefined, this);
|
|
533253
533303
|
return [{
|
|
533254
533304
|
label: "Version",
|
|
533255
|
-
value: "1.2.
|
|
533305
|
+
value: "1.2.16"
|
|
533256
533306
|
}, {
|
|
533257
533307
|
label: "Session name",
|
|
533258
533308
|
value: nameValue
|
|
@@ -536943,7 +536993,7 @@ function Config({
|
|
|
536943
536993
|
}
|
|
536944
536994
|
}, undefined, false, undefined, this)
|
|
536945
536995
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime170.jsxDEV(ChannelDowngradeDialog, {
|
|
536946
|
-
currentVersion: "1.2.
|
|
536996
|
+
currentVersion: "1.2.16",
|
|
536947
536997
|
onChoice: (choice) => {
|
|
536948
536998
|
setShowSubmenu(null);
|
|
536949
536999
|
setTabsHidden(false);
|
|
@@ -536955,7 +537005,7 @@ function Config({
|
|
|
536955
537005
|
autoUpdatesChannel: "stable"
|
|
536956
537006
|
};
|
|
536957
537007
|
if (choice === "stay") {
|
|
536958
|
-
newSettings.minimumVersion = "1.2.
|
|
537008
|
+
newSettings.minimumVersion = "1.2.16";
|
|
536959
537009
|
}
|
|
536960
537010
|
updateSettingsForSource("userSettings", newSettings);
|
|
536961
537011
|
setSettingsData((prev_27) => ({
|
|
@@ -545015,7 +545065,7 @@ function HelpV2(t0) {
|
|
|
545015
545065
|
let t6;
|
|
545016
545066
|
if ($3[31] !== tabs) {
|
|
545017
545067
|
t6 = /* @__PURE__ */ jsx_dev_runtime197.jsxDEV(Tabs, {
|
|
545018
|
-
title: `Rayu-CLI v${"1.2.
|
|
545068
|
+
title: `Rayu-CLI v${"1.2.16"}`,
|
|
545019
545069
|
color: "professionalBlue",
|
|
545020
545070
|
defaultTab: "general",
|
|
545021
545071
|
children: tabs
|
|
@@ -563737,7 +563787,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
563737
563787
|
return [];
|
|
563738
563788
|
}
|
|
563739
563789
|
}
|
|
563740
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.2.
|
|
563790
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.2.16") {
|
|
563741
563791
|
if (false) {}
|
|
563742
563792
|
const cachedChangelog = await getStoredChangelog();
|
|
563743
563793
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -563750,7 +563800,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.2.15")
|
|
|
563750
563800
|
releaseNotes
|
|
563751
563801
|
};
|
|
563752
563802
|
}
|
|
563753
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.2.
|
|
563803
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.2.16") {
|
|
563754
563804
|
if (false) {}
|
|
563755
563805
|
const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
|
|
563756
563806
|
return {
|
|
@@ -565013,7 +565063,7 @@ function getRecentActivitySync() {
|
|
|
565013
565063
|
return cachedActivity;
|
|
565014
565064
|
}
|
|
565015
565065
|
function getLogoDisplayData() {
|
|
565016
|
-
const version2 = process.env.DEMO_VERSION ?? "1.2.
|
|
565066
|
+
const version2 = process.env.DEMO_VERSION ?? "1.2.16";
|
|
565017
565067
|
const serverUrl = getDirectConnectServerUrl();
|
|
565018
565068
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
565019
565069
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -566294,7 +566344,7 @@ function LogoV2() {
|
|
|
566294
566344
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
566295
566345
|
t2 = () => {
|
|
566296
566346
|
const currentConfig = getGlobalConfig();
|
|
566297
|
-
if (currentConfig.lastReleaseNotesSeen === "1.2.
|
|
566347
|
+
if (currentConfig.lastReleaseNotesSeen === "1.2.16") {
|
|
566298
566348
|
return;
|
|
566299
566349
|
}
|
|
566300
566350
|
saveGlobalConfig(_temp327);
|
|
@@ -566970,12 +567020,12 @@ function LogoV2() {
|
|
|
566970
567020
|
return t41;
|
|
566971
567021
|
}
|
|
566972
567022
|
function _temp327(current) {
|
|
566973
|
-
if (current.lastReleaseNotesSeen === "1.2.
|
|
567023
|
+
if (current.lastReleaseNotesSeen === "1.2.16") {
|
|
566974
567024
|
return current;
|
|
566975
567025
|
}
|
|
566976
567026
|
return {
|
|
566977
567027
|
...current,
|
|
566978
|
-
lastReleaseNotesSeen: "1.2.
|
|
567028
|
+
lastReleaseNotesSeen: "1.2.16"
|
|
566979
567029
|
};
|
|
566980
567030
|
}
|
|
566981
567031
|
function _temp241(s_0) {
|
|
@@ -591643,7 +591693,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
591643
591693
|
smapsRollup,
|
|
591644
591694
|
platform: process.platform,
|
|
591645
591695
|
nodeVersion: process.version,
|
|
591646
|
-
ccVersion: "1.2.
|
|
591696
|
+
ccVersion: "1.2.16"
|
|
591647
591697
|
};
|
|
591648
591698
|
}
|
|
591649
591699
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -592171,7 +592221,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
592171
592221
|
var call48 = async () => {
|
|
592172
592222
|
return {
|
|
592173
592223
|
type: "text",
|
|
592174
|
-
value: "1.2.
|
|
592224
|
+
value: "1.2.16"
|
|
592175
592225
|
};
|
|
592176
592226
|
}, version2, version_default;
|
|
592177
592227
|
var init_version = __esm(() => {
|
|
@@ -600991,7 +601041,7 @@ function generateHtmlReport(data, insights) {
|
|
|
600991
601041
|
</html>`;
|
|
600992
601042
|
}
|
|
600993
601043
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
600994
|
-
const version3 = typeof MACRO !== "undefined" ? "1.2.
|
|
601044
|
+
const version3 = typeof MACRO !== "undefined" ? "1.2.16" : "unknown";
|
|
600995
601045
|
const remote_hosts_collected = remoteStats?.hosts.filter((h3) => h3.sessionCount > 0).map((h3) => h3.name);
|
|
600996
601046
|
const facets_summary = {
|
|
600997
601047
|
total: facets.size,
|
|
@@ -604923,7 +604973,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
604923
604973
|
init_settings2();
|
|
604924
604974
|
init_slowOperations();
|
|
604925
604975
|
init_uuid();
|
|
604926
|
-
VERSION6 = typeof MACRO !== "undefined" ? "1.2.
|
|
604976
|
+
VERSION6 = typeof MACRO !== "undefined" ? "1.2.16" : "unknown";
|
|
604927
604977
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
604928
604978
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
604929
604979
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -606142,7 +606192,7 @@ var init_filesystem = __esm(() => {
|
|
|
606142
606192
|
});
|
|
606143
606193
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
606144
606194
|
const nonce = randomBytes18(16).toString("hex");
|
|
606145
|
-
return join149(getClaudeTempDir(), "bundled-skills", "1.2.
|
|
606195
|
+
return join149(getClaudeTempDir(), "bundled-skills", "1.2.16", nonce);
|
|
606146
606196
|
});
|
|
606147
606197
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
606148
606198
|
});
|
|
@@ -611257,7 +611307,7 @@ __export(exports_update, {
|
|
|
611257
611307
|
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
611258
611308
|
import { homedir as homedir32 } from "os";
|
|
611259
611309
|
async function update() {
|
|
611260
|
-
writeToStdout(`Current version: ${"1.2.
|
|
611310
|
+
writeToStdout(`Current version: ${"1.2.16"}
|
|
611261
611311
|
`);
|
|
611262
611312
|
const isBundled = isInBundledMode();
|
|
611263
611313
|
if (isBundled) {
|
|
@@ -611283,13 +611333,13 @@ Manual check: npm view ${"@rayu-dev/rayu-cli"} version
|
|
|
611283
611333
|
process.exit(1);
|
|
611284
611334
|
return;
|
|
611285
611335
|
}
|
|
611286
|
-
if (latestVersion === "1.2.
|
|
611336
|
+
if (latestVersion === "1.2.16") {
|
|
611287
611337
|
writeToStdout(source_default.green(`
|
|
611288
|
-
Rayu CLI is up to date (${"1.2.
|
|
611338
|
+
Rayu CLI is up to date (${"1.2.16"})
|
|
611289
611339
|
`));
|
|
611290
611340
|
process.exit(0);
|
|
611291
611341
|
}
|
|
611292
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.2.
|
|
611342
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.2.16"})
|
|
611293
611343
|
`);
|
|
611294
611344
|
writeToStdout(`Installing update...
|
|
611295
611345
|
|
|
@@ -611313,7 +611363,7 @@ Try manually:
|
|
|
611313
611363
|
return;
|
|
611314
611364
|
}
|
|
611315
611365
|
writeToStdout(source_default.green(`
|
|
611316
|
-
Successfully updated from ${"1.2.
|
|
611366
|
+
Successfully updated from ${"1.2.16"} to ${latestVersion}
|
|
611317
611367
|
`));
|
|
611318
611368
|
process.exit(0);
|
|
611319
611369
|
}
|
|
@@ -611327,14 +611377,14 @@ async function updateNativeBinary() {
|
|
|
611327
611377
|
} catch {
|
|
611328
611378
|
latestVersion = "";
|
|
611329
611379
|
}
|
|
611330
|
-
if (latestVersion && latestVersion === "1.2.
|
|
611380
|
+
if (latestVersion && latestVersion === "1.2.16") {
|
|
611331
611381
|
writeToStdout(source_default.green(`
|
|
611332
|
-
Rayu CLI is up to date (1.2.
|
|
611382
|
+
Rayu CLI is up to date (1.2.16)
|
|
611333
611383
|
`));
|
|
611334
611384
|
process.exit(0);
|
|
611335
611385
|
}
|
|
611336
611386
|
if (latestVersion) {
|
|
611337
|
-
writeToStdout(`New version available: ${latestVersion} (current: 1.2.
|
|
611387
|
+
writeToStdout(`New version available: ${latestVersion} (current: 1.2.16)
|
|
611338
611388
|
`);
|
|
611339
611389
|
}
|
|
611340
611390
|
writeToStdout(`Downloading and installing update...
|
|
@@ -611349,13 +611399,13 @@ Rayu CLI is up to date (1.2.15)
|
|
|
611349
611399
|
return;
|
|
611350
611400
|
}
|
|
611351
611401
|
writeToStdout(source_default.green(`
|
|
611352
|
-
Rayu CLI is up to date (1.2.
|
|
611402
|
+
Rayu CLI is up to date (1.2.16)
|
|
611353
611403
|
`));
|
|
611354
611404
|
process.exit(0);
|
|
611355
611405
|
}
|
|
611356
611406
|
const updatedTo = result.latestVersion ?? latestVersion ?? "latest";
|
|
611357
611407
|
writeToStdout(source_default.green(`
|
|
611358
|
-
Successfully updated from 1.2.
|
|
611408
|
+
Successfully updated from 1.2.16 to ${updatedTo}
|
|
611359
611409
|
`));
|
|
611360
611410
|
writeToStdout(`Restart your terminal to use the new version.
|
|
611361
611411
|
`);
|
|
@@ -611386,7 +611436,7 @@ __export(exports_uninstall, {
|
|
|
611386
611436
|
import { execFileSync as execFileSync4 } from "node:child_process";
|
|
611387
611437
|
import { homedir as homedir33 } from "os";
|
|
611388
611438
|
async function uninstall() {
|
|
611389
|
-
writeToStdout(`Uninstalling Rayu CLI (${"1.2.
|
|
611439
|
+
writeToStdout(`Uninstalling Rayu CLI (${"1.2.16"})...
|
|
611390
611440
|
`);
|
|
611391
611441
|
writeToStdout(`Running: npm uninstall -g ${"@rayu-dev/rayu-cli"}
|
|
611392
611442
|
|
|
@@ -611409,7 +611459,7 @@ Try running manually:
|
|
|
611409
611459
|
process.exit(1);
|
|
611410
611460
|
}
|
|
611411
611461
|
writeToStdout(source_default.green(`
|
|
611412
|
-
Successfully uninstalled ${"@rayu-dev/rayu-cli"} ${"1.2.
|
|
611462
|
+
Successfully uninstalled ${"@rayu-dev/rayu-cli"} ${"1.2.16"}
|
|
611413
611463
|
`));
|
|
611414
611464
|
writeToStdout(`Thanks for using Rayu CLI!
|
|
611415
611465
|
`);
|
|
@@ -611461,7 +611511,7 @@ function showFirstRunWelcome() {
|
|
|
611461
611511
|
`);
|
|
611462
611512
|
try {
|
|
611463
611513
|
mkdirSync13(getRayuConfigHomeDir(), { recursive: true });
|
|
611464
|
-
writeFileSync15(markerPath(), "1.2.
|
|
611514
|
+
writeFileSync15(markerPath(), "1.2.16", "utf8");
|
|
611465
611515
|
} catch {}
|
|
611466
611516
|
}
|
|
611467
611517
|
var init_firstRun = __esm(() => {
|
|
@@ -623304,7 +623354,7 @@ async function initializeBetaTracing(resource) {
|
|
|
623304
623354
|
});
|
|
623305
623355
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
623306
623356
|
setLoggerProvider(loggerProvider);
|
|
623307
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.2.
|
|
623357
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.2.16");
|
|
623308
623358
|
setEventLogger(eventLogger);
|
|
623309
623359
|
process.on("beforeExit", async () => {
|
|
623310
623360
|
await loggerProvider?.forceFlush();
|
|
@@ -623344,7 +623394,7 @@ async function initializeTelemetry() {
|
|
|
623344
623394
|
const platform4 = getPlatform();
|
|
623345
623395
|
const baseAttributes = {
|
|
623346
623396
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
|
|
623347
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.2.
|
|
623397
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.2.16"
|
|
623348
623398
|
};
|
|
623349
623399
|
if (platform4 === "wsl") {
|
|
623350
623400
|
const wslVersion = getWslVersion();
|
|
@@ -623389,7 +623439,7 @@ async function initializeTelemetry() {
|
|
|
623389
623439
|
} catch {}
|
|
623390
623440
|
};
|
|
623391
623441
|
registerCleanup(shutdownTelemetry2);
|
|
623392
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "1.2.
|
|
623442
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "1.2.16");
|
|
623393
623443
|
}
|
|
623394
623444
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
623395
623445
|
resource,
|
|
@@ -623409,7 +623459,7 @@ async function initializeTelemetry() {
|
|
|
623409
623459
|
});
|
|
623410
623460
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
623411
623461
|
setLoggerProvider(loggerProvider);
|
|
623412
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.2.
|
|
623462
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.2.16");
|
|
623413
623463
|
setEventLogger(eventLogger);
|
|
623414
623464
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
623415
623465
|
process.on("beforeExit", async () => {
|
|
@@ -623471,7 +623521,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
623471
623521
|
}
|
|
623472
623522
|
};
|
|
623473
623523
|
registerCleanup(shutdownTelemetry);
|
|
623474
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "1.2.
|
|
623524
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "1.2.16");
|
|
623475
623525
|
}
|
|
623476
623526
|
async function flushTelemetry() {
|
|
623477
623527
|
const meterProvider = getMeterProvider();
|
|
@@ -624984,7 +625034,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
624984
625034
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
624985
625035
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
624986
625036
|
betas: getSdkBetas(),
|
|
624987
|
-
claude_code_version: "1.2.
|
|
625037
|
+
claude_code_version: "1.2.16",
|
|
624988
625038
|
output_style: outputStyle2,
|
|
624989
625039
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
624990
625040
|
skills: inputs.skills.filter((s2) => s2.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -641193,7 +641243,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
641193
641243
|
function getSemverPart(version3) {
|
|
641194
641244
|
return `${import_semver11.major(version3, { loose: true })}.${import_semver11.minor(version3, { loose: true })}.${import_semver11.patch(version3, { loose: true })}`;
|
|
641195
641245
|
}
|
|
641196
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.2.
|
|
641246
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.2.16") {
|
|
641197
641247
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react217.useState(() => getSemverPart(initialVersion));
|
|
641198
641248
|
if (!updatedVersion) {
|
|
641199
641249
|
return null;
|
|
@@ -641233,7 +641283,7 @@ function AutoUpdater({
|
|
|
641233
641283
|
return;
|
|
641234
641284
|
}
|
|
641235
641285
|
if (false) {}
|
|
641236
|
-
const currentVersion = "1.2.
|
|
641286
|
+
const currentVersion = "1.2.16";
|
|
641237
641287
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
641238
641288
|
let latestVersion = await getLatestVersion(channel);
|
|
641239
641289
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -641446,12 +641496,12 @@ function NativeAutoUpdater({
|
|
|
641446
641496
|
logEvent("tengu_native_auto_updater_start", {});
|
|
641447
641497
|
try {
|
|
641448
641498
|
const maxVersion = await getMaxVersion();
|
|
641449
|
-
if (maxVersion && gt("1.2.
|
|
641499
|
+
if (maxVersion && gt("1.2.16", maxVersion)) {
|
|
641450
641500
|
const msg = await getMaxVersionMessage();
|
|
641451
641501
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
641452
641502
|
}
|
|
641453
641503
|
const result = await installLatest(channel);
|
|
641454
|
-
const currentVersion = "1.2.
|
|
641504
|
+
const currentVersion = "1.2.16";
|
|
641455
641505
|
const latencyMs = Date.now() - startTime;
|
|
641456
641506
|
if (result.lockFailed) {
|
|
641457
641507
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -641588,17 +641638,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
641588
641638
|
const maxVersion = await getMaxVersion();
|
|
641589
641639
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
641590
641640
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
641591
|
-
if (gte("1.2.
|
|
641592
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.2.
|
|
641641
|
+
if (gte("1.2.16", maxVersion)) {
|
|
641642
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.2.16"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
641593
641643
|
setUpdateAvailable(false);
|
|
641594
641644
|
return;
|
|
641595
641645
|
}
|
|
641596
641646
|
latest = maxVersion;
|
|
641597
641647
|
}
|
|
641598
|
-
const hasUpdate = latest && !gte("1.2.
|
|
641648
|
+
const hasUpdate = latest && !gte("1.2.16", latest) && !shouldSkipVersion(latest);
|
|
641599
641649
|
setUpdateAvailable(!!hasUpdate);
|
|
641600
641650
|
if (hasUpdate) {
|
|
641601
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.2.
|
|
641651
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.2.16"} -> ${latest}`);
|
|
641602
641652
|
}
|
|
641603
641653
|
};
|
|
641604
641654
|
$3[0] = t1;
|
|
@@ -641632,7 +641682,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
641632
641682
|
wrap: "truncate",
|
|
641633
641683
|
children: [
|
|
641634
641684
|
"currentVersion: ",
|
|
641635
|
-
"1.2.
|
|
641685
|
+
"1.2.16"
|
|
641636
641686
|
]
|
|
641637
641687
|
}, undefined, true, undefined, this);
|
|
641638
641688
|
$3[3] = verbose;
|
|
@@ -649798,7 +649848,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
649798
649848
|
project_dir: getOriginalCwd(),
|
|
649799
649849
|
added_dirs: addedDirs
|
|
649800
649850
|
},
|
|
649801
|
-
version: "1.2.
|
|
649851
|
+
version: "1.2.16",
|
|
649802
649852
|
output_style: {
|
|
649803
649853
|
name: outputStyleName
|
|
649804
649854
|
},
|
|
@@ -661167,7 +661217,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
661167
661217
|
} catch {}
|
|
661168
661218
|
const data = {
|
|
661169
661219
|
trigger,
|
|
661170
|
-
version: "1.2.
|
|
661220
|
+
version: "1.2.16",
|
|
661171
661221
|
platform: process.platform,
|
|
661172
661222
|
transcript,
|
|
661173
661223
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -673218,7 +673268,7 @@ function WelcomeV2() {
|
|
|
673218
673268
|
dimColor: true,
|
|
673219
673269
|
children: [
|
|
673220
673270
|
"v",
|
|
673221
|
-
"1.2.
|
|
673271
|
+
"1.2.16"
|
|
673222
673272
|
]
|
|
673223
673273
|
}, undefined, true, undefined, this)
|
|
673224
673274
|
]
|
|
@@ -674935,7 +674985,7 @@ function completeOnboarding() {
|
|
|
674935
674985
|
saveGlobalConfig((current) => ({
|
|
674936
674986
|
...current,
|
|
674937
674987
|
hasCompletedOnboarding: true,
|
|
674938
|
-
lastOnboardingVersion: "1.2.
|
|
674988
|
+
lastOnboardingVersion: "1.2.16"
|
|
674939
674989
|
}));
|
|
674940
674990
|
}
|
|
674941
674991
|
function showDialog(root2, renderer) {
|
|
@@ -679235,7 +679285,7 @@ function appendToLog(path30, message) {
|
|
|
679235
679285
|
cwd: getFsImplementation().cwd(),
|
|
679236
679286
|
userType: "external",
|
|
679237
679287
|
sessionId: getSessionId(),
|
|
679238
|
-
version: "1.2.
|
|
679288
|
+
version: "1.2.16"
|
|
679239
679289
|
};
|
|
679240
679290
|
getLogWriter(path30).write(messageWithTimestamp);
|
|
679241
679291
|
}
|
|
@@ -683339,8 +683389,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
683339
683389
|
}
|
|
683340
683390
|
async function checkEnvLessBridgeMinVersion() {
|
|
683341
683391
|
const cfg = await getEnvLessBridgeConfig();
|
|
683342
|
-
if (cfg.min_version && lt("1.2.
|
|
683343
|
-
return `Your version of RAYU (${"1.2.
|
|
683392
|
+
if (cfg.min_version && lt("1.2.16", cfg.min_version)) {
|
|
683393
|
+
return `Your version of RAYU (${"1.2.16"}) is too old for Remote Control.
|
|
683344
683394
|
Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
|
|
683345
683395
|
}
|
|
683346
683396
|
return null;
|
|
@@ -683814,7 +683864,7 @@ async function initBridgeCore(params) {
|
|
|
683814
683864
|
const rawApi = createBridgeApiClient({
|
|
683815
683865
|
baseUrl,
|
|
683816
683866
|
getAccessToken,
|
|
683817
|
-
runnerVersion: "1.2.
|
|
683867
|
+
runnerVersion: "1.2.16",
|
|
683818
683868
|
onDebug: logForDebugging,
|
|
683819
683869
|
onAuth401,
|
|
683820
683870
|
getTrustedDeviceToken
|
|
@@ -689176,7 +689226,7 @@ async function startMCPServer(cwd3, debug4, verbose) {
|
|
|
689176
689226
|
setCwd(cwd3);
|
|
689177
689227
|
const server = new Server({
|
|
689178
689228
|
name: "claude/tengu",
|
|
689179
|
-
version: "1.2.
|
|
689229
|
+
version: "1.2.16"
|
|
689180
689230
|
}, {
|
|
689181
689231
|
capabilities: {
|
|
689182
689232
|
tools: {}
|
|
@@ -691702,7 +691752,7 @@ ${customInstructions}` : customInstructions;
|
|
|
691702
691752
|
}
|
|
691703
691753
|
}
|
|
691704
691754
|
logForDiagnosticsNoPII("info", "started", {
|
|
691705
|
-
version: "1.2.
|
|
691755
|
+
version: "1.2.16",
|
|
691706
691756
|
is_native_binary: isInBundledMode()
|
|
691707
691757
|
});
|
|
691708
691758
|
registerCleanup(async () => {
|
|
@@ -692420,7 +692470,7 @@ Usage: rayu --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
692420
692470
|
pendingHookMessages
|
|
692421
692471
|
}, renderAndRun);
|
|
692422
692472
|
}
|
|
692423
|
-
}).version("1.2.
|
|
692473
|
+
}).version("1.2.16 (Rayu-CLI)", "-v, --version", "Output the version number");
|
|
692424
692474
|
program.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
692425
692475
|
program.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
692426
692476
|
if (canUserConfigureAdvisor()) {
|
|
@@ -692886,7 +692936,7 @@ if (false) {}
|
|
|
692886
692936
|
async function main2() {
|
|
692887
692937
|
const args = process.argv.slice(2);
|
|
692888
692938
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
692889
|
-
console.log(`${"1.2.
|
|
692939
|
+
console.log(`${"1.2.16"} (Rayu-CLI)`);
|
|
692890
692940
|
return;
|
|
692891
692941
|
}
|
|
692892
692942
|
const {
|