ur-agent 1.27.0 → 1.27.2
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 +284 -179
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -54413,45 +54413,72 @@ var init_providerRegistry = __esm(() => {
|
|
|
54413
54413
|
]));
|
|
54414
54414
|
PROVIDER_MODELS = {
|
|
54415
54415
|
"codex-cli": [
|
|
54416
|
-
{ id: "gpt-
|
|
54417
|
-
{ id: "gpt-
|
|
54418
|
-
{ id: "
|
|
54416
|
+
{ id: "gpt-5.5", displayName: "GPT-5.5", description: "Latest OpenAI model", isDefault: true },
|
|
54417
|
+
{ id: "gpt-5.4", displayName: "GPT-5.4", description: "Advanced reasoning and coding" },
|
|
54418
|
+
{ id: "gpt-5.4-mini", displayName: "GPT-5.4 Mini", description: "Fast, efficient variant" },
|
|
54419
|
+
{ id: "gpt-4o", displayName: "GPT-4o", description: "Previous generation flagship" },
|
|
54420
|
+
{ id: "gpt-4o-mini", displayName: "GPT-4o Mini", description: "Fast GPT-4o variant" },
|
|
54421
|
+
{ id: "o1", displayName: "o1", description: "Deep reasoning model" },
|
|
54419
54422
|
{ id: "o3-mini", displayName: "o3-mini", description: "Fast reasoning model" }
|
|
54420
54423
|
],
|
|
54421
54424
|
"claude-code-cli": [
|
|
54422
|
-
{ id: "claude-sonnet-
|
|
54423
|
-
{ id: "claude-opus-4-
|
|
54424
|
-
{ id: "claude-
|
|
54425
|
+
{ id: "claude-sonnet-5", displayName: "Claude Sonnet 5", description: "Balanced performance and speed", isDefault: true },
|
|
54426
|
+
{ id: "claude-opus-4-8", displayName: "Claude Opus 4.8", description: "Most powerful Claude model" },
|
|
54427
|
+
{ id: "claude-opus-4-7", displayName: "Claude Opus 4.7", description: "High-end reasoning" },
|
|
54428
|
+
{ id: "claude-opus-4-6", displayName: "Claude Opus 4.6", description: "Advanced problem solving" },
|
|
54429
|
+
{ id: "claude-opus-4-5", displayName: "Claude Opus 4.5", description: "Previous Opus generation" },
|
|
54430
|
+
{ id: "claude-sonnet-4-6", displayName: "Claude Sonnet 4.6", description: "Fast Sonnet variant" },
|
|
54431
|
+
{ id: "claude-sonnet-4-5", displayName: "Claude Sonnet 4.5", description: "Previous Sonnet generation" },
|
|
54432
|
+
{ id: "claude-haiku-4-5", displayName: "Claude Haiku 4.5", description: "Fastest Claude model" }
|
|
54425
54433
|
],
|
|
54426
54434
|
"gemini-cli": [
|
|
54427
|
-
{ id: "gemini-
|
|
54428
|
-
{ id: "gemini-
|
|
54435
|
+
{ id: "gemini-3.5-flash", displayName: "Gemini 3.5 Flash", description: "Most intelligent for agentic tasks", isDefault: true },
|
|
54436
|
+
{ id: "gemini-3.1-pro", displayName: "Gemini 3.1 Pro", description: "Advanced problem solving (preview)" },
|
|
54437
|
+
{ id: "gemini-3.1-flash-lite", displayName: "Gemini 3.1 Flash Lite", description: "Budget-friendly performance" },
|
|
54438
|
+
{ id: "gemini-2.5-pro", displayName: "Gemini 2.5 Pro", description: "Complex reasoning and coding" },
|
|
54439
|
+
{ id: "gemini-2.5-flash", displayName: "Gemini 2.5 Flash", description: "Low-latency tasks" },
|
|
54440
|
+
{ id: "gemini-2.5-flash-lite", displayName: "Gemini 2.5 Flash Lite", description: "Fastest Gemini model" }
|
|
54429
54441
|
],
|
|
54430
54442
|
"antigravity-cli": [
|
|
54431
|
-
{ id: "gemini-
|
|
54443
|
+
{ id: "gemini-3.5-flash", displayName: "Gemini 3.5 Flash", description: "Most intelligent for agentic tasks", isDefault: true },
|
|
54444
|
+
{ id: "gemini-2.5-pro", displayName: "Gemini 2.5 Pro", description: "Complex reasoning and coding" },
|
|
54445
|
+
{ id: "gemini-2.5-flash", displayName: "Gemini 2.5 Flash", description: "Low-latency tasks" }
|
|
54432
54446
|
],
|
|
54433
54447
|
"openai-api": [
|
|
54434
|
-
{ id: "gpt-
|
|
54435
|
-
{ id: "gpt-
|
|
54436
|
-
{ id: "
|
|
54437
|
-
{ id: "
|
|
54438
|
-
{ id: "gpt-
|
|
54448
|
+
{ id: "gpt-5.5", displayName: "GPT-5.5", description: "Latest OpenAI model", isDefault: true },
|
|
54449
|
+
{ id: "gpt-5.4", displayName: "GPT-5.4", description: "Advanced reasoning and coding" },
|
|
54450
|
+
{ id: "gpt-5.4-mini", displayName: "GPT-5.4 Mini", description: "Fast, efficient variant" },
|
|
54451
|
+
{ id: "gpt-4o", displayName: "GPT-4o", description: "Previous generation flagship" },
|
|
54452
|
+
{ id: "gpt-4o-mini", displayName: "GPT-4o Mini", description: "Fast GPT-4o variant" },
|
|
54453
|
+
{ id: "o1", displayName: "o1", description: "Deep reasoning model" },
|
|
54454
|
+
{ id: "o3-mini", displayName: "o3-mini", description: "Fast reasoning model" }
|
|
54439
54455
|
],
|
|
54440
54456
|
"anthropic-api": [
|
|
54441
|
-
{ id: "claude-sonnet-
|
|
54442
|
-
{ id: "claude-opus-4-
|
|
54443
|
-
{ id: "claude-
|
|
54444
|
-
{ id: "claude-
|
|
54457
|
+
{ id: "claude-sonnet-5", displayName: "Claude Sonnet 5", description: "Balanced performance and speed", isDefault: true },
|
|
54458
|
+
{ id: "claude-opus-4-8", displayName: "Claude Opus 4.8", description: "Most powerful Claude model" },
|
|
54459
|
+
{ id: "claude-opus-4-7", displayName: "Claude Opus 4.7", description: "High-end reasoning" },
|
|
54460
|
+
{ id: "claude-opus-4-6", displayName: "Claude Opus 4.6", description: "Advanced problem solving" },
|
|
54461
|
+
{ id: "claude-opus-4-5", displayName: "Claude Opus 4.5", description: "Previous Opus generation" },
|
|
54462
|
+
{ id: "claude-sonnet-4-6", displayName: "Claude Sonnet 4.6", description: "Fast Sonnet variant" },
|
|
54463
|
+
{ id: "claude-sonnet-4-5", displayName: "Claude Sonnet 4.5", description: "Previous Sonnet generation" },
|
|
54464
|
+
{ id: "claude-haiku-4-5", displayName: "Claude Haiku 4.5", description: "Fastest Claude model" }
|
|
54445
54465
|
],
|
|
54446
54466
|
"gemini-api": [
|
|
54447
|
-
{ id: "gemini-
|
|
54448
|
-
{ id: "gemini-
|
|
54449
|
-
{ id: "gemini-1
|
|
54467
|
+
{ id: "gemini-3.5-flash", displayName: "Gemini 3.5 Flash", description: "Most intelligent for agentic tasks", isDefault: true },
|
|
54468
|
+
{ id: "gemini-3.1-pro", displayName: "Gemini 3.1 Pro", description: "Advanced problem solving (preview)" },
|
|
54469
|
+
{ id: "gemini-3.1-flash-lite", displayName: "Gemini 3.1 Flash Lite", description: "Budget-friendly performance" },
|
|
54470
|
+
{ id: "gemini-2.5-pro", displayName: "Gemini 2.5 Pro", description: "Complex reasoning and coding" },
|
|
54471
|
+
{ id: "gemini-2.5-flash", displayName: "Gemini 2.5 Flash", description: "Low-latency tasks" },
|
|
54472
|
+
{ id: "gemini-2.5-flash-lite", displayName: "Gemini 2.5 Flash Lite", description: "Fastest Gemini model" }
|
|
54450
54473
|
],
|
|
54451
54474
|
openrouter: [
|
|
54475
|
+
{ id: "openai/gpt-5.5", displayName: "GPT-5.5", description: "OpenAI GPT-5.5 via OpenRouter", isDefault: true },
|
|
54476
|
+
{ id: "openai/gpt-5.4", displayName: "GPT-5.4", description: "OpenAI GPT-5.4 via OpenRouter" },
|
|
54452
54477
|
{ id: "openai/gpt-4o", displayName: "GPT-4o", description: "OpenAI GPT-4o via OpenRouter" },
|
|
54453
|
-
{ id: "anthropic/claude-
|
|
54454
|
-
{ id: "
|
|
54478
|
+
{ id: "anthropic/claude-sonnet-5", displayName: "Claude Sonnet 5", description: "Anthropic Claude via OpenRouter" },
|
|
54479
|
+
{ id: "anthropic/claude-opus-4-8", displayName: "Claude Opus 4.8", description: "Anthropic Claude via OpenRouter" },
|
|
54480
|
+
{ id: "google/gemini-3.5-flash", displayName: "Gemini 3.5 Flash", description: "Google Gemini via OpenRouter" },
|
|
54481
|
+
{ id: "google/gemini-2.5-pro", displayName: "Gemini 2.5 Pro", description: "Google Gemini via OpenRouter" }
|
|
54455
54482
|
],
|
|
54456
54483
|
"openai-compatible": [
|
|
54457
54484
|
{ id: "custom", displayName: "Custom Model", description: "Model name from provider endpoint", isDynamic: true }
|
|
@@ -56115,32 +56142,44 @@ __export(exports_urhqSubscription, {
|
|
|
56115
56142
|
});
|
|
56116
56143
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
56117
56144
|
async function createURHQSubscriptionClient(providerId, options) {
|
|
56145
|
+
const messagesAPI = {
|
|
56146
|
+
async create(params) {
|
|
56147
|
+
return {
|
|
56148
|
+
id: `${providerId}-${randomUUID3()}`,
|
|
56149
|
+
type: "message",
|
|
56150
|
+
role: "assistant",
|
|
56151
|
+
model: params.model,
|
|
56152
|
+
content: [{ type: "text", text: "Subscription CLI response" }],
|
|
56153
|
+
stop_reason: "end_turn",
|
|
56154
|
+
stop_sequence: null,
|
|
56155
|
+
usage: {
|
|
56156
|
+
input_tokens: 0,
|
|
56157
|
+
output_tokens: 0,
|
|
56158
|
+
cache_creation_input_tokens: 0,
|
|
56159
|
+
cache_read_input_tokens: 0
|
|
56160
|
+
}
|
|
56161
|
+
};
|
|
56162
|
+
},
|
|
56163
|
+
async countTokens(params) {
|
|
56164
|
+
return {
|
|
56165
|
+
input_tokens: estimateTokenCount(params)
|
|
56166
|
+
};
|
|
56167
|
+
},
|
|
56168
|
+
async withResponse(params) {
|
|
56169
|
+
const clientRequestId = params?.headers?.["x-client-request-id"];
|
|
56170
|
+
const data = await messagesAPI.create(params);
|
|
56171
|
+
return {
|
|
56172
|
+
data,
|
|
56173
|
+
request_id: data.id,
|
|
56174
|
+
response: {
|
|
56175
|
+
headers: clientRequestId ? { "x-client-request-id": clientRequestId } : {}
|
|
56176
|
+
}
|
|
56177
|
+
};
|
|
56178
|
+
}
|
|
56179
|
+
};
|
|
56118
56180
|
return {
|
|
56119
56181
|
beta: {
|
|
56120
|
-
messages:
|
|
56121
|
-
async create(params) {
|
|
56122
|
-
return {
|
|
56123
|
-
id: `${providerId}-${randomUUID3()}`,
|
|
56124
|
-
type: "message",
|
|
56125
|
-
role: "assistant",
|
|
56126
|
-
model: params.model,
|
|
56127
|
-
content: [{ type: "text", text: "Subscription CLI response" }],
|
|
56128
|
-
stop_reason: "end_turn",
|
|
56129
|
-
stop_sequence: null,
|
|
56130
|
-
usage: {
|
|
56131
|
-
input_tokens: 0,
|
|
56132
|
-
output_tokens: 0,
|
|
56133
|
-
cache_creation_input_tokens: 0,
|
|
56134
|
-
cache_read_input_tokens: 0
|
|
56135
|
-
}
|
|
56136
|
-
};
|
|
56137
|
-
},
|
|
56138
|
-
async countTokens(params) {
|
|
56139
|
-
return {
|
|
56140
|
-
input_tokens: estimateTokenCount(params)
|
|
56141
|
-
};
|
|
56142
|
-
}
|
|
56143
|
-
}
|
|
56182
|
+
messages: messagesAPI
|
|
56144
56183
|
}
|
|
56145
56184
|
};
|
|
56146
56185
|
}
|
|
@@ -56159,53 +56198,96 @@ import { randomUUID as randomUUID4 } from "crypto";
|
|
|
56159
56198
|
async function createOpenRouterClient(options) {
|
|
56160
56199
|
const { apiKey, maxRetries } = options;
|
|
56161
56200
|
const OPENROUTER_BASE = "https://openrouter.ai/api/v1";
|
|
56162
|
-
|
|
56163
|
-
|
|
56164
|
-
|
|
56165
|
-
|
|
56166
|
-
|
|
56167
|
-
|
|
56168
|
-
|
|
56169
|
-
|
|
56170
|
-
|
|
56171
|
-
|
|
56172
|
-
|
|
56173
|
-
|
|
56174
|
-
|
|
56175
|
-
|
|
56176
|
-
|
|
56177
|
-
|
|
56178
|
-
|
|
56179
|
-
|
|
56180
|
-
|
|
56181
|
-
|
|
56182
|
-
|
|
56183
|
-
|
|
56184
|
-
|
|
56185
|
-
|
|
56186
|
-
|
|
56187
|
-
|
|
56188
|
-
|
|
56189
|
-
|
|
56190
|
-
|
|
56191
|
-
|
|
56192
|
-
|
|
56193
|
-
cache_creation_input_tokens: 0,
|
|
56194
|
-
cache_read_input_tokens: 0
|
|
56195
|
-
}
|
|
56196
|
-
};
|
|
56197
|
-
} catch (error40) {
|
|
56198
|
-
throw new Error(`OpenRouter API call failed: ${error40 instanceof Error ? error40.message : "unknown error"}`);
|
|
56201
|
+
const messagesAPI = {
|
|
56202
|
+
async create(params) {
|
|
56203
|
+
try {
|
|
56204
|
+
const response = await axios_default.post(`${OPENROUTER_BASE}/chat/completions`, {
|
|
56205
|
+
model: params.model,
|
|
56206
|
+
messages: params.messages,
|
|
56207
|
+
max_tokens: params.max_tokens,
|
|
56208
|
+
stream: false
|
|
56209
|
+
}, {
|
|
56210
|
+
headers: {
|
|
56211
|
+
"Content-Type": "application/json",
|
|
56212
|
+
Authorization: `Bearer ${apiKey}`,
|
|
56213
|
+
"HTTP-Referer": "https://ur-agent.local",
|
|
56214
|
+
"X-Title": "UR-AGENT"
|
|
56215
|
+
},
|
|
56216
|
+
timeout: 60000
|
|
56217
|
+
});
|
|
56218
|
+
const data = response.data;
|
|
56219
|
+
return {
|
|
56220
|
+
id: `openrouter-${randomUUID4()}`,
|
|
56221
|
+
type: "message",
|
|
56222
|
+
role: "assistant",
|
|
56223
|
+
model: data.model,
|
|
56224
|
+
content: [{ type: "text", text: data.choices?.[0]?.message?.content ?? "" }],
|
|
56225
|
+
stop_reason: data.choices?.[0]?.finish_reason ?? "end_turn",
|
|
56226
|
+
stop_sequence: null,
|
|
56227
|
+
usage: {
|
|
56228
|
+
input_tokens: data.usage?.prompt_tokens ?? 0,
|
|
56229
|
+
output_tokens: data.usage?.completion_tokens ?? 0,
|
|
56230
|
+
cache_creation_input_tokens: 0,
|
|
56231
|
+
cache_read_input_tokens: 0
|
|
56199
56232
|
}
|
|
56200
|
-
}
|
|
56201
|
-
|
|
56202
|
-
|
|
56203
|
-
|
|
56204
|
-
|
|
56205
|
-
|
|
56233
|
+
};
|
|
56234
|
+
} catch (error40) {
|
|
56235
|
+
throw new Error(`OpenRouter API call failed: ${error40 instanceof Error ? error40.message : "unknown error"}`);
|
|
56236
|
+
}
|
|
56237
|
+
},
|
|
56238
|
+
async countTokens(params) {
|
|
56239
|
+
return {
|
|
56240
|
+
input_tokens: estimateTokenCount2(params)
|
|
56241
|
+
};
|
|
56242
|
+
},
|
|
56243
|
+
async withResponse(params) {
|
|
56244
|
+
const clientRequestId = params?.headers?.["x-client-request-id"];
|
|
56245
|
+
try {
|
|
56246
|
+
const response = await axios_default.post(`${OPENROUTER_BASE}/chat/completions`, {
|
|
56247
|
+
model: params.model,
|
|
56248
|
+
messages: params.messages,
|
|
56249
|
+
max_tokens: params.max_tokens,
|
|
56250
|
+
stream: false
|
|
56251
|
+
}, {
|
|
56252
|
+
headers: {
|
|
56253
|
+
"Content-Type": "application/json",
|
|
56254
|
+
Authorization: `Bearer ${apiKey}`,
|
|
56255
|
+
"HTTP-Referer": "https://ur-agent.local",
|
|
56256
|
+
"X-Title": "UR-AGENT",
|
|
56257
|
+
...clientRequestId && { "x-client-request-id": clientRequestId }
|
|
56258
|
+
},
|
|
56259
|
+
timeout: 60000
|
|
56260
|
+
});
|
|
56261
|
+
const data = response.data;
|
|
56262
|
+
return {
|
|
56263
|
+
data: {
|
|
56264
|
+
id: `openrouter-${randomUUID4()}`,
|
|
56265
|
+
type: "message",
|
|
56266
|
+
role: "assistant",
|
|
56267
|
+
model: data.model,
|
|
56268
|
+
content: [{ type: "text", text: data.choices?.[0]?.message?.content ?? "" }],
|
|
56269
|
+
stop_reason: data.choices?.[0]?.finish_reason ?? "end_turn",
|
|
56270
|
+
stop_sequence: null,
|
|
56271
|
+
usage: {
|
|
56272
|
+
input_tokens: data.usage?.prompt_tokens ?? 0,
|
|
56273
|
+
output_tokens: data.usage?.completion_tokens ?? 0,
|
|
56274
|
+
cache_creation_input_tokens: 0,
|
|
56275
|
+
cache_read_input_tokens: 0
|
|
56276
|
+
}
|
|
56277
|
+
},
|
|
56278
|
+
response,
|
|
56279
|
+
request_id: data.id ?? response.headers?.["x-request-id"] ?? randomUUID4()
|
|
56280
|
+
};
|
|
56281
|
+
} catch (error40) {
|
|
56282
|
+
throw new Error(`OpenRouter API call failed: ${error40 instanceof Error ? error40.message : "unknown error"}`);
|
|
56206
56283
|
}
|
|
56207
56284
|
}
|
|
56208
56285
|
};
|
|
56286
|
+
return {
|
|
56287
|
+
beta: {
|
|
56288
|
+
messages: messagesAPI
|
|
56289
|
+
}
|
|
56290
|
+
};
|
|
56209
56291
|
}
|
|
56210
56292
|
function estimateTokenCount2(params) {
|
|
56211
56293
|
const text = JSON.stringify(params.messages ?? []);
|
|
@@ -56223,30 +56305,53 @@ __export(exports_standardAPI, {
|
|
|
56223
56305
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
56224
56306
|
async function createStandardAPIClient(options) {
|
|
56225
56307
|
const { providerId, apiKey, baseUrl, maxRetries } = options;
|
|
56308
|
+
const messagesAPI = {
|
|
56309
|
+
async create(params) {
|
|
56310
|
+
const endpoint = getAPIEndpoint(providerId, baseUrl);
|
|
56311
|
+
try {
|
|
56312
|
+
const response = await axios_default.post(endpoint, buildAPIRequest(providerId, params), {
|
|
56313
|
+
headers: {
|
|
56314
|
+
"Content-Type": "application/json",
|
|
56315
|
+
Authorization: `Bearer ${apiKey}`
|
|
56316
|
+
},
|
|
56317
|
+
timeout: 60000
|
|
56318
|
+
});
|
|
56319
|
+
return parseAPIResponse(providerId, response.data);
|
|
56320
|
+
} catch (error40) {
|
|
56321
|
+
throw new Error(`Provider ${providerId} API call failed: ${error40 instanceof Error ? error40.message : "unknown error"}`);
|
|
56322
|
+
}
|
|
56323
|
+
},
|
|
56324
|
+
async countTokens(params) {
|
|
56325
|
+
return {
|
|
56326
|
+
input_tokens: estimateTokenCount3(params)
|
|
56327
|
+
};
|
|
56328
|
+
},
|
|
56329
|
+
async withResponse(params) {
|
|
56330
|
+
const endpoint = getAPIEndpoint(providerId, baseUrl);
|
|
56331
|
+
const clientRequestId = params?.headers?.["x-client-request-id"];
|
|
56332
|
+
try {
|
|
56333
|
+
const response = await axios_default.post(endpoint, buildAPIRequest(providerId, params), {
|
|
56334
|
+
headers: {
|
|
56335
|
+
"Content-Type": "application/json",
|
|
56336
|
+
Authorization: `Bearer ${apiKey}`,
|
|
56337
|
+
...clientRequestId && { "x-client-request-id": clientRequestId }
|
|
56338
|
+
},
|
|
56339
|
+
timeout: 60000
|
|
56340
|
+
});
|
|
56341
|
+
const data = parseAPIResponse(providerId, response.data);
|
|
56342
|
+
return {
|
|
56343
|
+
data,
|
|
56344
|
+
response,
|
|
56345
|
+
request_id: response.data?.id ?? response.headers?.["x-request-id"] ?? randomUUID5()
|
|
56346
|
+
};
|
|
56347
|
+
} catch (error40) {
|
|
56348
|
+
throw new Error(`Provider ${providerId} API call failed: ${error40 instanceof Error ? error40.message : "unknown error"}`);
|
|
56349
|
+
}
|
|
56350
|
+
}
|
|
56351
|
+
};
|
|
56226
56352
|
return {
|
|
56227
56353
|
beta: {
|
|
56228
|
-
messages:
|
|
56229
|
-
async create(params) {
|
|
56230
|
-
const endpoint = getAPIEndpoint(providerId, baseUrl);
|
|
56231
|
-
try {
|
|
56232
|
-
const response = await axios_default.post(endpoint, buildAPIRequest(providerId, params), {
|
|
56233
|
-
headers: {
|
|
56234
|
-
"Content-Type": "application/json",
|
|
56235
|
-
Authorization: `Bearer ${apiKey}`
|
|
56236
|
-
},
|
|
56237
|
-
timeout: 60000
|
|
56238
|
-
});
|
|
56239
|
-
return parseAPIResponse(providerId, response.data);
|
|
56240
|
-
} catch (error40) {
|
|
56241
|
-
throw new Error(`Provider ${providerId} API call failed: ${error40 instanceof Error ? error40.message : "unknown error"}`);
|
|
56242
|
-
}
|
|
56243
|
-
},
|
|
56244
|
-
async countTokens(params) {
|
|
56245
|
-
return {
|
|
56246
|
-
input_tokens: estimateTokenCount3(params)
|
|
56247
|
-
};
|
|
56248
|
-
}
|
|
56249
|
-
}
|
|
56354
|
+
messages: messagesAPI
|
|
56250
56355
|
}
|
|
56251
56356
|
};
|
|
56252
56357
|
}
|
|
@@ -68170,7 +68275,7 @@ var init_auth = __esm(() => {
|
|
|
68170
68275
|
|
|
68171
68276
|
// src/utils/userAgent.ts
|
|
68172
68277
|
function getURCodeUserAgent() {
|
|
68173
|
-
return `ur/${"1.27.
|
|
68278
|
+
return `ur/${"1.27.2"}`;
|
|
68174
68279
|
}
|
|
68175
68280
|
|
|
68176
68281
|
// src/utils/workloadContext.ts
|
|
@@ -68192,7 +68297,7 @@ function getUserAgent() {
|
|
|
68192
68297
|
const clientApp = process.env.UR_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}` : "";
|
|
68193
68298
|
const workload = getWorkload();
|
|
68194
68299
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
68195
|
-
return `ur-cli/${"1.27.
|
|
68300
|
+
return `ur-cli/${"1.27.2"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
68196
68301
|
}
|
|
68197
68302
|
function getMCPUserAgent() {
|
|
68198
68303
|
const parts = [];
|
|
@@ -68206,7 +68311,7 @@ function getMCPUserAgent() {
|
|
|
68206
68311
|
parts.push(`client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}`);
|
|
68207
68312
|
}
|
|
68208
68313
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
68209
|
-
return `ur/${"1.27.
|
|
68314
|
+
return `ur/${"1.27.2"}${suffix}`;
|
|
68210
68315
|
}
|
|
68211
68316
|
function getWebFetchUserAgent() {
|
|
68212
68317
|
return `UR-User (${getURCodeUserAgent()})`;
|
|
@@ -68344,7 +68449,7 @@ var init_user = __esm(() => {
|
|
|
68344
68449
|
deviceId,
|
|
68345
68450
|
sessionId: getSessionId(),
|
|
68346
68451
|
email: getEmail(),
|
|
68347
|
-
appVersion: "1.27.
|
|
68452
|
+
appVersion: "1.27.2",
|
|
68348
68453
|
platform: getHostPlatformForAnalytics(),
|
|
68349
68454
|
organizationUuid,
|
|
68350
68455
|
accountUuid,
|
|
@@ -74861,7 +74966,7 @@ var init_metadata = __esm(() => {
|
|
|
74861
74966
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
74862
74967
|
WHITESPACE_REGEX = /\s+/;
|
|
74863
74968
|
getVersionBase = memoize_default(() => {
|
|
74864
|
-
const match = "1.27.
|
|
74969
|
+
const match = "1.27.2".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
74865
74970
|
return match ? match[0] : undefined;
|
|
74866
74971
|
});
|
|
74867
74972
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -74901,7 +75006,7 @@ var init_metadata = __esm(() => {
|
|
|
74901
75006
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
74902
75007
|
isURCodeAction: isEnvTruthy(process.env.UR_CODE_ACTION),
|
|
74903
75008
|
isURAiAuth: isURAISubscriber2(),
|
|
74904
|
-
version: "1.27.
|
|
75009
|
+
version: "1.27.2",
|
|
74905
75010
|
versionBase: getVersionBase(),
|
|
74906
75011
|
buildTime: "",
|
|
74907
75012
|
deploymentEnvironment: env2.detectDeploymentEnvironment(),
|
|
@@ -75571,7 +75676,7 @@ function initialize1PEventLogging() {
|
|
|
75571
75676
|
const platform2 = getPlatform();
|
|
75572
75677
|
const attributes = {
|
|
75573
75678
|
[import_semantic_conventions4.ATTR_SERVICE_NAME]: "ur",
|
|
75574
|
-
[import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.27.
|
|
75679
|
+
[import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.27.2"
|
|
75575
75680
|
};
|
|
75576
75681
|
if (platform2 === "wsl") {
|
|
75577
75682
|
const wslVersion = getWslVersion();
|
|
@@ -75598,7 +75703,7 @@ function initialize1PEventLogging() {
|
|
|
75598
75703
|
})
|
|
75599
75704
|
]
|
|
75600
75705
|
});
|
|
75601
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.27.
|
|
75706
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.27.2");
|
|
75602
75707
|
}
|
|
75603
75708
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
75604
75709
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -80895,7 +81000,7 @@ function formatAgentTrendReport(report = buildAgentTrendReport()) {
|
|
|
80895
81000
|
function formatA2AAgentCard(options = {}, pretty = true) {
|
|
80896
81001
|
return JSON.stringify(buildA2AAgentCard(options), null, pretty ? 2 : 0);
|
|
80897
81002
|
}
|
|
80898
|
-
var urVersion = "1.27.
|
|
81003
|
+
var urVersion = "1.27.2", coverage, priorityRoadmap;
|
|
80899
81004
|
var init_trends = __esm(() => {
|
|
80900
81005
|
coverage = [
|
|
80901
81006
|
{
|
|
@@ -82887,7 +82992,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
82887
82992
|
if (!isAttributionHeaderEnabled()) {
|
|
82888
82993
|
return "";
|
|
82889
82994
|
}
|
|
82890
|
-
const version2 = `${"1.27.
|
|
82995
|
+
const version2 = `${"1.27.2"}.${fingerprint}`;
|
|
82891
82996
|
const entrypoint = process.env.UR_CODE_ENTRYPOINT ?? "unknown";
|
|
82892
82997
|
const cch = "";
|
|
82893
82998
|
const workload = getWorkload();
|
|
@@ -190556,7 +190661,7 @@ function getTelemetryAttributes() {
|
|
|
190556
190661
|
attributes["session.id"] = sessionId;
|
|
190557
190662
|
}
|
|
190558
190663
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
190559
|
-
attributes["app.version"] = "1.27.
|
|
190664
|
+
attributes["app.version"] = "1.27.2";
|
|
190560
190665
|
}
|
|
190561
190666
|
const oauthAccount = getOauthAccountInfo();
|
|
190562
190667
|
if (oauthAccount) {
|
|
@@ -225958,7 +226063,7 @@ function getInstallationEnv() {
|
|
|
225958
226063
|
return;
|
|
225959
226064
|
}
|
|
225960
226065
|
function getURCodeVersion() {
|
|
225961
|
-
return "1.27.
|
|
226066
|
+
return "1.27.2";
|
|
225962
226067
|
}
|
|
225963
226068
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
225964
226069
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -228797,7 +228902,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
228797
228902
|
const client2 = new Client({
|
|
228798
228903
|
name: "ur",
|
|
228799
228904
|
title: "UR",
|
|
228800
|
-
version: "1.27.
|
|
228905
|
+
version: "1.27.2",
|
|
228801
228906
|
description: "UR-AGENT autonomous engineering workflow engine",
|
|
228802
228907
|
websiteUrl: PRODUCT_URL
|
|
228803
228908
|
}, {
|
|
@@ -229151,7 +229256,7 @@ var init_client5 = __esm(() => {
|
|
|
229151
229256
|
const client2 = new Client({
|
|
229152
229257
|
name: "ur",
|
|
229153
229258
|
title: "UR",
|
|
229154
|
-
version: "1.27.
|
|
229259
|
+
version: "1.27.2",
|
|
229155
229260
|
description: "UR-AGENT autonomous engineering workflow engine",
|
|
229156
229261
|
websiteUrl: PRODUCT_URL
|
|
229157
229262
|
}, {
|
|
@@ -238964,9 +239069,9 @@ async function assertMinVersion() {
|
|
|
238964
239069
|
if (false) {}
|
|
238965
239070
|
try {
|
|
238966
239071
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
238967
|
-
if (versionConfig.minVersion && lt("1.27.
|
|
239072
|
+
if (versionConfig.minVersion && lt("1.27.2", versionConfig.minVersion)) {
|
|
238968
239073
|
console.error(`
|
|
238969
|
-
It looks like your version of UR (${"1.27.
|
|
239074
|
+
It looks like your version of UR (${"1.27.2"}) needs an update.
|
|
238970
239075
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
238971
239076
|
|
|
238972
239077
|
To update, please run:
|
|
@@ -239182,7 +239287,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
239182
239287
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
239183
239288
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
239184
239289
|
pid: process.pid,
|
|
239185
|
-
currentVersion: "1.27.
|
|
239290
|
+
currentVersion: "1.27.2"
|
|
239186
239291
|
});
|
|
239187
239292
|
return "in_progress";
|
|
239188
239293
|
}
|
|
@@ -239191,7 +239296,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
239191
239296
|
if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
|
|
239192
239297
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
239193
239298
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
239194
|
-
currentVersion: "1.27.
|
|
239299
|
+
currentVersion: "1.27.2"
|
|
239195
239300
|
});
|
|
239196
239301
|
console.error(`
|
|
239197
239302
|
Error: Windows NPM detected in WSL
|
|
@@ -239726,7 +239831,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
239726
239831
|
}
|
|
239727
239832
|
async function getDoctorDiagnostic() {
|
|
239728
239833
|
const installationType = await getCurrentInstallationType();
|
|
239729
|
-
const version2 = typeof MACRO !== "undefined" ? "1.27.
|
|
239834
|
+
const version2 = typeof MACRO !== "undefined" ? "1.27.2" : "unknown";
|
|
239730
239835
|
const installationPath = await getInstallationPath();
|
|
239731
239836
|
const invokedBinary = getInvokedBinary();
|
|
239732
239837
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -240661,8 +240766,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
240661
240766
|
const maxVersion = await getMaxVersion();
|
|
240662
240767
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
240663
240768
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
240664
|
-
if (gte("1.27.
|
|
240665
|
-
logForDebugging(`Native installer: current version ${"1.27.
|
|
240769
|
+
if (gte("1.27.2", maxVersion)) {
|
|
240770
|
+
logForDebugging(`Native installer: current version ${"1.27.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
240666
240771
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
240667
240772
|
latency_ms: Date.now() - startTime,
|
|
240668
240773
|
max_version: maxVersion,
|
|
@@ -240673,7 +240778,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
240673
240778
|
version2 = maxVersion;
|
|
240674
240779
|
}
|
|
240675
240780
|
}
|
|
240676
|
-
if (!forceReinstall && version2 === "1.27.
|
|
240781
|
+
if (!forceReinstall && version2 === "1.27.2" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
|
|
240677
240782
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
240678
240783
|
logEvent("tengu_native_update_complete", {
|
|
240679
240784
|
latency_ms: Date.now() - startTime,
|
|
@@ -337585,7 +337690,7 @@ function Feedback({
|
|
|
337585
337690
|
platform: env2.platform,
|
|
337586
337691
|
gitRepo: envInfo.isGit,
|
|
337587
337692
|
terminal: env2.terminal,
|
|
337588
|
-
version: "1.27.
|
|
337693
|
+
version: "1.27.2",
|
|
337589
337694
|
transcript: normalizeMessagesForAPI(messages),
|
|
337590
337695
|
errors: sanitizedErrors,
|
|
337591
337696
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -337777,7 +337882,7 @@ function Feedback({
|
|
|
337777
337882
|
", ",
|
|
337778
337883
|
env2.terminal,
|
|
337779
337884
|
", v",
|
|
337780
|
-
"1.27.
|
|
337885
|
+
"1.27.2"
|
|
337781
337886
|
]
|
|
337782
337887
|
}, undefined, true, undefined, this)
|
|
337783
337888
|
]
|
|
@@ -337883,7 +337988,7 @@ ${sanitizedDescription}
|
|
|
337883
337988
|
` + `**Environment Info**
|
|
337884
337989
|
` + `- Platform: ${env2.platform}
|
|
337885
337990
|
` + `- Terminal: ${env2.terminal}
|
|
337886
|
-
` + `- Version: ${"1.27.
|
|
337991
|
+
` + `- Version: ${"1.27.2"}
|
|
337887
337992
|
` + `- Feedback ID: ${feedbackId}
|
|
337888
337993
|
` + `
|
|
337889
337994
|
**Errors**
|
|
@@ -340994,7 +341099,7 @@ function buildPrimarySection() {
|
|
|
340994
341099
|
}, undefined, false, undefined, this);
|
|
340995
341100
|
return [{
|
|
340996
341101
|
label: "Version",
|
|
340997
|
-
value: "1.27.
|
|
341102
|
+
value: "1.27.2"
|
|
340998
341103
|
}, {
|
|
340999
341104
|
label: "Session name",
|
|
341000
341105
|
value: nameValue
|
|
@@ -344300,7 +344405,7 @@ function Config({
|
|
|
344300
344405
|
}
|
|
344301
344406
|
}, undefined, false, undefined, this)
|
|
344302
344407
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime177.jsxDEV(ChannelDowngradeDialog, {
|
|
344303
|
-
currentVersion: "1.27.
|
|
344408
|
+
currentVersion: "1.27.2",
|
|
344304
344409
|
onChoice: (choice) => {
|
|
344305
344410
|
setShowSubmenu(null);
|
|
344306
344411
|
setTabsHidden(false);
|
|
@@ -344312,7 +344417,7 @@ function Config({
|
|
|
344312
344417
|
autoUpdatesChannel: "stable"
|
|
344313
344418
|
};
|
|
344314
344419
|
if (choice === "stay") {
|
|
344315
|
-
newSettings.minimumVersion = "1.27.
|
|
344420
|
+
newSettings.minimumVersion = "1.27.2";
|
|
344316
344421
|
}
|
|
344317
344422
|
updateSettingsForSource("userSettings", newSettings);
|
|
344318
344423
|
setSettingsData((prev_27) => ({
|
|
@@ -352382,7 +352487,7 @@ function HelpV2(t0) {
|
|
|
352382
352487
|
let t6;
|
|
352383
352488
|
if ($3[31] !== tabs) {
|
|
352384
352489
|
t6 = /* @__PURE__ */ jsx_dev_runtime204.jsxDEV(Tabs, {
|
|
352385
|
-
title: `UR v${"1.27.
|
|
352490
|
+
title: `UR v${"1.27.2"}`,
|
|
352386
352491
|
color: "professionalBlue",
|
|
352387
352492
|
defaultTab: "general",
|
|
352388
352493
|
children: tabs
|
|
@@ -372484,7 +372589,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
372484
372589
|
return [];
|
|
372485
372590
|
}
|
|
372486
372591
|
}
|
|
372487
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.27.
|
|
372592
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.27.2") {
|
|
372488
372593
|
if (process.env.USER_TYPE === "ant") {
|
|
372489
372594
|
const changelog = "";
|
|
372490
372595
|
if (changelog) {
|
|
@@ -372511,7 +372616,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.27.0")
|
|
|
372511
372616
|
releaseNotes
|
|
372512
372617
|
};
|
|
372513
372618
|
}
|
|
372514
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.27.
|
|
372619
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.27.2") {
|
|
372515
372620
|
if (process.env.USER_TYPE === "ant") {
|
|
372516
372621
|
const changelog = "";
|
|
372517
372622
|
if (changelog) {
|
|
@@ -373681,7 +373786,7 @@ function getRecentActivitySync() {
|
|
|
373681
373786
|
return cachedActivity;
|
|
373682
373787
|
}
|
|
373683
373788
|
function getLogoDisplayData() {
|
|
373684
|
-
const version2 = process.env.DEMO_VERSION ?? "1.27.
|
|
373789
|
+
const version2 = process.env.DEMO_VERSION ?? "1.27.2";
|
|
373685
373790
|
const serverUrl = getDirectConnectServerUrl();
|
|
373686
373791
|
const displayPath = process.env.DEMO_VERSION ? "/code/ur" : getDisplayPath(getCwd2());
|
|
373687
373792
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -374470,7 +374575,7 @@ function LogoV2() {
|
|
|
374470
374575
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
374471
374576
|
t2 = () => {
|
|
374472
374577
|
const currentConfig = getGlobalConfig();
|
|
374473
|
-
if (currentConfig.lastReleaseNotesSeen === "1.27.
|
|
374578
|
+
if (currentConfig.lastReleaseNotesSeen === "1.27.2") {
|
|
374474
374579
|
return;
|
|
374475
374580
|
}
|
|
374476
374581
|
saveGlobalConfig(_temp326);
|
|
@@ -375155,12 +375260,12 @@ function LogoV2() {
|
|
|
375155
375260
|
return t41;
|
|
375156
375261
|
}
|
|
375157
375262
|
function _temp326(current) {
|
|
375158
|
-
if (current.lastReleaseNotesSeen === "1.27.
|
|
375263
|
+
if (current.lastReleaseNotesSeen === "1.27.2") {
|
|
375159
375264
|
return current;
|
|
375160
375265
|
}
|
|
375161
375266
|
return {
|
|
375162
375267
|
...current,
|
|
375163
|
-
lastReleaseNotesSeen: "1.27.
|
|
375268
|
+
lastReleaseNotesSeen: "1.27.2"
|
|
375164
375269
|
};
|
|
375165
375270
|
}
|
|
375166
375271
|
function _temp243(s_0) {
|
|
@@ -392149,7 +392254,7 @@ function buildToolUseContext(tools, readFileStateCache) {
|
|
|
392149
392254
|
async function handleInitialize() {
|
|
392150
392255
|
return {
|
|
392151
392256
|
name: "ur-agent",
|
|
392152
|
-
version: "1.27.
|
|
392257
|
+
version: "1.27.2",
|
|
392153
392258
|
protocolVersion: "0.1.0"
|
|
392154
392259
|
};
|
|
392155
392260
|
}
|
|
@@ -591143,7 +591248,7 @@ async function captureMemoryDiagnostics(trigger2, dumpNumber = 0) {
|
|
|
591143
591248
|
smapsRollup,
|
|
591144
591249
|
platform: process.platform,
|
|
591145
591250
|
nodeVersion: process.version,
|
|
591146
|
-
ccVersion: "1.27.
|
|
591251
|
+
ccVersion: "1.27.2"
|
|
591147
591252
|
};
|
|
591148
591253
|
}
|
|
591149
591254
|
async function performHeapDump(trigger2 = "manual", dumpNumber = 0) {
|
|
@@ -591729,7 +591834,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
591729
591834
|
var call136 = async () => {
|
|
591730
591835
|
return {
|
|
591731
591836
|
type: "text",
|
|
591732
|
-
value: "1.27.
|
|
591837
|
+
value: "1.27.2"
|
|
591733
591838
|
};
|
|
591734
591839
|
}, version2, version_default;
|
|
591735
591840
|
var init_version = __esm(() => {
|
|
@@ -601648,7 +601753,7 @@ function generateHtmlReport(data, insights) {
|
|
|
601648
601753
|
</html>`;
|
|
601649
601754
|
}
|
|
601650
601755
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
601651
|
-
const version3 = typeof MACRO !== "undefined" ? "1.27.
|
|
601756
|
+
const version3 = typeof MACRO !== "undefined" ? "1.27.2" : "unknown";
|
|
601652
601757
|
const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
|
|
601653
601758
|
const facets_summary = {
|
|
601654
601759
|
total: facets.size,
|
|
@@ -605925,7 +606030,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
605925
606030
|
init_settings2();
|
|
605926
606031
|
init_slowOperations();
|
|
605927
606032
|
init_uuid();
|
|
605928
|
-
VERSION5 = typeof MACRO !== "undefined" ? "1.27.
|
|
606033
|
+
VERSION5 = typeof MACRO !== "undefined" ? "1.27.2" : "unknown";
|
|
605929
606034
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
605930
606035
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
605931
606036
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -607130,7 +607235,7 @@ var init_filesystem = __esm(() => {
|
|
|
607130
607235
|
});
|
|
607131
607236
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
607132
607237
|
const nonce = randomBytes18(16).toString("hex");
|
|
607133
|
-
return join200(getURTempDir(), "bundled-skills", "1.27.
|
|
607238
|
+
return join200(getURTempDir(), "bundled-skills", "1.27.2", nonce);
|
|
607134
607239
|
});
|
|
607135
607240
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
607136
607241
|
});
|
|
@@ -613420,7 +613525,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
613420
613525
|
}
|
|
613421
613526
|
function computeFingerprintFromMessages(messages) {
|
|
613422
613527
|
const firstMessageText = extractFirstMessageText(messages);
|
|
613423
|
-
return computeFingerprint(firstMessageText, "1.27.
|
|
613528
|
+
return computeFingerprint(firstMessageText, "1.27.2");
|
|
613424
613529
|
}
|
|
613425
613530
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
613426
613531
|
var init_fingerprint = () => {};
|
|
@@ -615286,7 +615391,7 @@ async function sideQuery(opts) {
|
|
|
615286
615391
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
615287
615392
|
}
|
|
615288
615393
|
const messageText = extractFirstUserMessageText(messages);
|
|
615289
|
-
const fingerprint = computeFingerprint(messageText, "1.27.
|
|
615394
|
+
const fingerprint = computeFingerprint(messageText, "1.27.2");
|
|
615290
615395
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
615291
615396
|
const systemBlocks = [
|
|
615292
615397
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -620023,7 +620128,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
620023
620128
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
620024
620129
|
apiKeySource: getURHQApiKeyWithSource().source,
|
|
620025
620130
|
betas: getSdkBetas(),
|
|
620026
|
-
ur_version: "1.27.
|
|
620131
|
+
ur_version: "1.27.2",
|
|
620027
620132
|
output_style: outputStyle2,
|
|
620028
620133
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
620029
620134
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill2) => skill2.name),
|
|
@@ -634651,7 +634756,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
634651
634756
|
function getSemverPart(version3) {
|
|
634652
634757
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
634653
634758
|
}
|
|
634654
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.27.
|
|
634759
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.27.2") {
|
|
634655
634760
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
634656
634761
|
if (!updatedVersion) {
|
|
634657
634762
|
return null;
|
|
@@ -634700,7 +634805,7 @@ function AutoUpdater({
|
|
|
634700
634805
|
return;
|
|
634701
634806
|
}
|
|
634702
634807
|
if (false) {}
|
|
634703
|
-
const currentVersion = "1.27.
|
|
634808
|
+
const currentVersion = "1.27.2";
|
|
634704
634809
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
634705
634810
|
let latestVersion = await getLatestVersion(channel);
|
|
634706
634811
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -634929,12 +635034,12 @@ function NativeAutoUpdater({
|
|
|
634929
635034
|
logEvent("tengu_native_auto_updater_start", {});
|
|
634930
635035
|
try {
|
|
634931
635036
|
const maxVersion = await getMaxVersion();
|
|
634932
|
-
if (maxVersion && gt("1.27.
|
|
635037
|
+
if (maxVersion && gt("1.27.2", maxVersion)) {
|
|
634933
635038
|
const msg = await getMaxVersionMessage();
|
|
634934
635039
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
634935
635040
|
}
|
|
634936
635041
|
const result = await installLatest(channel);
|
|
634937
|
-
const currentVersion = "1.27.
|
|
635042
|
+
const currentVersion = "1.27.2";
|
|
634938
635043
|
const latencyMs = Date.now() - startTime;
|
|
634939
635044
|
if (result.lockFailed) {
|
|
634940
635045
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -635071,17 +635176,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
635071
635176
|
const maxVersion = await getMaxVersion();
|
|
635072
635177
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
635073
635178
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
635074
|
-
if (gte("1.27.
|
|
635075
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.27.
|
|
635179
|
+
if (gte("1.27.2", maxVersion)) {
|
|
635180
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.27.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
635076
635181
|
setUpdateAvailable(false);
|
|
635077
635182
|
return;
|
|
635078
635183
|
}
|
|
635079
635184
|
latest = maxVersion;
|
|
635080
635185
|
}
|
|
635081
|
-
const hasUpdate = latest && !gte("1.27.
|
|
635186
|
+
const hasUpdate = latest && !gte("1.27.2", latest) && !shouldSkipVersion(latest);
|
|
635082
635187
|
setUpdateAvailable(!!hasUpdate);
|
|
635083
635188
|
if (hasUpdate) {
|
|
635084
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.27.
|
|
635189
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.27.2"} -> ${latest}`);
|
|
635085
635190
|
}
|
|
635086
635191
|
};
|
|
635087
635192
|
$3[0] = t1;
|
|
@@ -635115,7 +635220,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
635115
635220
|
wrap: "truncate",
|
|
635116
635221
|
children: [
|
|
635117
635222
|
"currentVersion: ",
|
|
635118
|
-
"1.27.
|
|
635223
|
+
"1.27.2"
|
|
635119
635224
|
]
|
|
635120
635225
|
}, undefined, true, undefined, this);
|
|
635121
635226
|
$3[3] = verbose;
|
|
@@ -647561,7 +647666,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
647561
647666
|
project_dir: getOriginalCwd(),
|
|
647562
647667
|
added_dirs: addedDirs
|
|
647563
647668
|
},
|
|
647564
|
-
version: "1.27.
|
|
647669
|
+
version: "1.27.2",
|
|
647565
647670
|
output_style: {
|
|
647566
647671
|
name: outputStyleName
|
|
647567
647672
|
},
|
|
@@ -647636,7 +647741,7 @@ function StatusLineInner({
|
|
|
647636
647741
|
const taskValues = Object.values(tasks2);
|
|
647637
647742
|
const taskRunningCount = taskValues.filter((task2) => task2.status === "running" || task2.status === "pending").length;
|
|
647638
647743
|
const defaultStatusLineText = buildDefaultStatusBar({
|
|
647639
|
-
version: "1.27.
|
|
647744
|
+
version: "1.27.2",
|
|
647640
647745
|
providerLabel: providerRuntime.providerLabel,
|
|
647641
647746
|
authMode: providerRuntime.authLabel,
|
|
647642
647747
|
model: providerRuntime.model ?? renderModelName(mainLoopModel),
|
|
@@ -659122,7 +659227,7 @@ async function submitTranscriptShare(messages, trigger2, appearanceId) {
|
|
|
659122
659227
|
} catch {}
|
|
659123
659228
|
const data = {
|
|
659124
659229
|
trigger: trigger2,
|
|
659125
|
-
version: "1.27.
|
|
659230
|
+
version: "1.27.2",
|
|
659126
659231
|
platform: process.platform,
|
|
659127
659232
|
transcript,
|
|
659128
659233
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -671004,7 +671109,7 @@ function WelcomeV2() {
|
|
|
671004
671109
|
dimColor: true,
|
|
671005
671110
|
children: [
|
|
671006
671111
|
"v",
|
|
671007
|
-
"1.27.
|
|
671112
|
+
"1.27.2"
|
|
671008
671113
|
]
|
|
671009
671114
|
}, undefined, true, undefined, this)
|
|
671010
671115
|
]
|
|
@@ -672264,7 +672369,7 @@ function completeOnboarding() {
|
|
|
672264
672369
|
saveGlobalConfig((current) => ({
|
|
672265
672370
|
...current,
|
|
672266
672371
|
hasCompletedOnboarding: true,
|
|
672267
|
-
lastOnboardingVersion: "1.27.
|
|
672372
|
+
lastOnboardingVersion: "1.27.2"
|
|
672268
672373
|
}));
|
|
672269
672374
|
}
|
|
672270
672375
|
function showDialog(root2, renderer) {
|
|
@@ -677365,7 +677470,7 @@ function appendToLog(path24, message) {
|
|
|
677365
677470
|
cwd: getFsImplementation().cwd(),
|
|
677366
677471
|
userType: process.env.USER_TYPE,
|
|
677367
677472
|
sessionId: getSessionId(),
|
|
677368
|
-
version: "1.27.
|
|
677473
|
+
version: "1.27.2"
|
|
677369
677474
|
};
|
|
677370
677475
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
677371
677476
|
}
|
|
@@ -681459,8 +681564,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
681459
681564
|
}
|
|
681460
681565
|
async function checkEnvLessBridgeMinVersion() {
|
|
681461
681566
|
const cfg = await getEnvLessBridgeConfig();
|
|
681462
|
-
if (cfg.min_version && lt("1.27.
|
|
681463
|
-
return `Your version of UR (${"1.27.
|
|
681567
|
+
if (cfg.min_version && lt("1.27.2", cfg.min_version)) {
|
|
681568
|
+
return `Your version of UR (${"1.27.2"}) is too old for Remote Control.
|
|
681464
681569
|
Version ${cfg.min_version} or higher is required. Run \`ur update\` to update.`;
|
|
681465
681570
|
}
|
|
681466
681571
|
return null;
|
|
@@ -681934,7 +682039,7 @@ async function initBridgeCore(params) {
|
|
|
681934
682039
|
const rawApi = createBridgeApiClient({
|
|
681935
682040
|
baseUrl,
|
|
681936
682041
|
getAccessToken,
|
|
681937
|
-
runnerVersion: "1.27.
|
|
682042
|
+
runnerVersion: "1.27.2",
|
|
681938
682043
|
onDebug: logForDebugging,
|
|
681939
682044
|
onAuth401,
|
|
681940
682045
|
getTrustedDeviceToken
|
|
@@ -687615,7 +687720,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
687615
687720
|
setCwd(cwd3);
|
|
687616
687721
|
const server2 = new Server({
|
|
687617
687722
|
name: "ur/tengu",
|
|
687618
|
-
version: "1.27.
|
|
687723
|
+
version: "1.27.2"
|
|
687619
687724
|
}, {
|
|
687620
687725
|
capabilities: {
|
|
687621
687726
|
tools: {}
|
|
@@ -689428,7 +689533,7 @@ async function update() {
|
|
|
689428
689533
|
logEvent("tengu_update_check", {});
|
|
689429
689534
|
const diagnostic = await getDoctorDiagnostic();
|
|
689430
689535
|
const result = await checkUpgradeStatus({
|
|
689431
|
-
currentVersion: "1.27.
|
|
689536
|
+
currentVersion: "1.27.2",
|
|
689432
689537
|
packageName: UR_AGENT_PACKAGE_NAME,
|
|
689433
689538
|
installationType: diagnostic.installationType,
|
|
689434
689539
|
latestVersion: () => getLatestNpmPackageVersion(UR_AGENT_PACKAGE_NAME)
|
|
@@ -690674,7 +690779,7 @@ ${customInstructions}` : customInstructions;
|
|
|
690674
690779
|
}
|
|
690675
690780
|
}
|
|
690676
690781
|
logForDiagnosticsNoPII("info", "started", {
|
|
690677
|
-
version: "1.27.
|
|
690782
|
+
version: "1.27.2",
|
|
690678
690783
|
is_native_binary: isInBundledMode()
|
|
690679
690784
|
});
|
|
690680
690785
|
registerCleanup(async () => {
|
|
@@ -691458,7 +691563,7 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
691458
691563
|
pendingHookMessages
|
|
691459
691564
|
}, renderAndRun);
|
|
691460
691565
|
}
|
|
691461
|
-
}).version("1.27.
|
|
691566
|
+
}).version("1.27.2 (UR-AGENT)", "-v, --version", "Output the version number");
|
|
691462
691567
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
691463
691568
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
691464
691569
|
if (canUserConfigureAdvisor()) {
|
|
@@ -692335,7 +692440,7 @@ if (false) {}
|
|
|
692335
692440
|
async function main2() {
|
|
692336
692441
|
const args = process.argv.slice(2);
|
|
692337
692442
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
692338
|
-
console.log(`${"1.27.
|
|
692443
|
+
console.log(`${"1.27.2"} (UR-AGENT)`);
|
|
692339
692444
|
return;
|
|
692340
692445
|
}
|
|
692341
692446
|
if (args[0] === "a2a" && args[1] === "serve" && !args.includes("--help") && !args.includes("-h")) {
|
package/package.json
CHANGED