vivus-agent 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +243 -275
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Vivus CLI — local AI coding agent
|
|
3
|
-
// Built from source at 2026-06-05T22:
|
|
3
|
+
// Built from source at 2026-06-05T22:48:08.614Z
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -10111,7 +10111,7 @@ function getOauthConfig() {
|
|
|
10111
10111
|
}
|
|
10112
10112
|
return config;
|
|
10113
10113
|
}
|
|
10114
|
-
var VIVUS_AI_INFERENCE_SCOPE = "user:inference", VIVUS_AI_PROFILE_SCOPE = "user:profile", CONSOLE_SCOPE = "org:create_api_key", OAUTH_BETA_HEADER = "oauth-2025-04-20", CONSOLE_OAUTH_SCOPES, VIVUS_AI_OAUTH_SCOPES, ALL_OAUTH_SCOPES, PROD_OAUTH_CONFIG, MCP_CLIENT_METADATA_URL = "
|
|
10114
|
+
var VIVUS_AI_INFERENCE_SCOPE = "user:inference", VIVUS_AI_PROFILE_SCOPE = "user:profile", CONSOLE_SCOPE = "org:create_api_key", OAUTH_BETA_HEADER = "oauth-2025-04-20", CONSOLE_OAUTH_SCOPES, VIVUS_AI_OAUTH_SCOPES, ALL_OAUTH_SCOPES, PROD_OAUTH_CONFIG, MCP_CLIENT_METADATA_URL = "", STAGING_OAUTH_CONFIG = undefined, ALLOWED_OAUTH_BASE_URLS;
|
|
10115
10115
|
var init_oauth = __esm(() => {
|
|
10116
10116
|
init_envUtils();
|
|
10117
10117
|
CONSOLE_OAUTH_SCOPES = [
|
|
@@ -10128,41 +10128,21 @@ var init_oauth = __esm(() => {
|
|
|
10128
10128
|
ALL_OAUTH_SCOPES = Array.from(new Set([...CONSOLE_OAUTH_SCOPES, ...VIVUS_AI_OAUTH_SCOPES]));
|
|
10129
10129
|
PROD_OAUTH_CONFIG = {
|
|
10130
10130
|
BASE_API_URL: "https://api.anthropic.com",
|
|
10131
|
-
CONSOLE_AUTHORIZE_URL: "
|
|
10132
|
-
VIVUS_AI_AUTHORIZE_URL: "
|
|
10133
|
-
VIVUS_AI_ORIGIN: "
|
|
10134
|
-
TOKEN_URL: "
|
|
10135
|
-
API_KEY_URL: "
|
|
10136
|
-
ROLES_URL: "
|
|
10137
|
-
CONSOLE_SUCCESS_URL: "
|
|
10138
|
-
VIVUSAI_SUCCESS_URL: "
|
|
10139
|
-
MANUAL_REDIRECT_URL: "
|
|
10140
|
-
CLIENT_ID: "
|
|
10131
|
+
CONSOLE_AUTHORIZE_URL: "",
|
|
10132
|
+
VIVUS_AI_AUTHORIZE_URL: "",
|
|
10133
|
+
VIVUS_AI_ORIGIN: "",
|
|
10134
|
+
TOKEN_URL: "",
|
|
10135
|
+
API_KEY_URL: "",
|
|
10136
|
+
ROLES_URL: "",
|
|
10137
|
+
CONSOLE_SUCCESS_URL: "",
|
|
10138
|
+
VIVUSAI_SUCCESS_URL: "",
|
|
10139
|
+
MANUAL_REDIRECT_URL: "",
|
|
10140
|
+
CLIENT_ID: "",
|
|
10141
10141
|
OAUTH_FILE_SUFFIX: "",
|
|
10142
|
-
MCP_PROXY_URL: "
|
|
10142
|
+
MCP_PROXY_URL: "",
|
|
10143
10143
|
MCP_PROXY_PATH: "/v1/mcp/{server_id}"
|
|
10144
10144
|
};
|
|
10145
|
-
|
|
10146
|
-
BASE_API_URL: "https://api-staging.anthropic.com",
|
|
10147
|
-
CONSOLE_AUTHORIZE_URL: "https://platform.staging.ant.dev/oauth/authorize",
|
|
10148
|
-
VIVUS_AI_AUTHORIZE_URL: "https://vivus-ai.staging.ant.dev/oauth/authorize",
|
|
10149
|
-
VIVUS_AI_ORIGIN: "https://vivus-ai.staging.ant.dev",
|
|
10150
|
-
TOKEN_URL: "https://platform.staging.ant.dev/v1/oauth/token",
|
|
10151
|
-
API_KEY_URL: "https://api-staging.anthropic.com/api/oauth/vivus_cli/create_api_key",
|
|
10152
|
-
ROLES_URL: "https://api-staging.anthropic.com/api/oauth/vivus_cli/roles",
|
|
10153
|
-
CONSOLE_SUCCESS_URL: "https://platform.staging.ant.dev/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dvivus",
|
|
10154
|
-
VIVUSAI_SUCCESS_URL: "https://platform.staging.ant.dev/oauth/code/success?app=vivus",
|
|
10155
|
-
MANUAL_REDIRECT_URL: "https://platform.staging.ant.dev/oauth/code/callback",
|
|
10156
|
-
CLIENT_ID: "22422756-60c9-4084-8eb7-27705fd5cf9a",
|
|
10157
|
-
OAUTH_FILE_SUFFIX: "-staging-oauth",
|
|
10158
|
-
MCP_PROXY_URL: "https://mcp-proxy-staging.anthropic.com",
|
|
10159
|
-
MCP_PROXY_PATH: "/v1/mcp/{server_id}"
|
|
10160
|
-
} : undefined;
|
|
10161
|
-
ALLOWED_OAUTH_BASE_URLS = [
|
|
10162
|
-
"https://beacon.vivus-ai.staging.ant.dev",
|
|
10163
|
-
"https://vivus.fedstart.com",
|
|
10164
|
-
"https://vivus-staging.fedstart.com"
|
|
10165
|
-
];
|
|
10145
|
+
ALLOWED_OAUTH_BASE_URLS = [];
|
|
10166
10146
|
});
|
|
10167
10147
|
|
|
10168
10148
|
// src/utils/secureStorage/macOsKeychainHelpers.ts
|
|
@@ -13130,7 +13110,7 @@ function getRemoteSessionUrl(sessionId, ingressUrl) {
|
|
|
13130
13110
|
const baseUrl = getVivusAiBaseUrl(compatId, ingressUrl);
|
|
13131
13111
|
return `${baseUrl}/code/${compatId}`;
|
|
13132
13112
|
}
|
|
13133
|
-
var PRODUCT_URL = "https://
|
|
13113
|
+
var PRODUCT_URL = "https://github.com/wittyphantom333/vivus-code", VIVUS_AI_BASE_URL = "https://github.com/wittyphantom333/vivus-code", VIVUS_AI_STAGING_BASE_URL = "", VIVUS_AI_LOCAL_BASE_URL = "http://localhost:4000";
|
|
13134
13114
|
|
|
13135
13115
|
// src/constants/common.ts
|
|
13136
13116
|
function getLocalISODate() {
|
|
@@ -64329,7 +64309,7 @@ function normalizeNameForMCP(name) {
|
|
|
64329
64309
|
}
|
|
64330
64310
|
return normalized;
|
|
64331
64311
|
}
|
|
64332
|
-
var VIVUSAI_SERVER_PREFIX = "vivus
|
|
64312
|
+
var VIVUSAI_SERVER_PREFIX = "vivus ";
|
|
64333
64313
|
|
|
64334
64314
|
// src/services/mcp/mcpStringUtils.ts
|
|
64335
64315
|
function mcpInfoFromString(toolString) {
|
|
@@ -65071,7 +65051,7 @@ function getValidationTip(context) {
|
|
|
65071
65051
|
}
|
|
65072
65052
|
return tip;
|
|
65073
65053
|
}
|
|
65074
|
-
var DOCUMENTATION_BASE = "https://
|
|
65054
|
+
var DOCUMENTATION_BASE = "https://github.com/wittyphantom333/vivus-code", TIP_MATCHERS, PATH_DOC_LINKS;
|
|
65075
65055
|
var init_validationTips = __esm(() => {
|
|
65076
65056
|
TIP_MATCHERS = [
|
|
65077
65057
|
{
|
|
@@ -112894,7 +112874,7 @@ function getFastModeUnavailableReason() {
|
|
|
112894
112874
|
return statigReason;
|
|
112895
112875
|
}
|
|
112896
112876
|
if (!isInBundledMode() && getFeatureValue_CACHED_MAY_BE_STALE("tengu_marble_sandcastle", false)) {
|
|
112897
|
-
return "Fast mode requires the native binary ·
|
|
112877
|
+
return "Fast mode requires the native binary · See: https://github.com/wittyphantom333/vivus-code";
|
|
112898
112878
|
}
|
|
112899
112879
|
if (getIsNonInteractiveSession() && preferThirdPartyAuthentication() && !getKairosActive()) {
|
|
112900
112880
|
const flagFastMode = getSettingsForSource("flagSettings")?.fastMode;
|
|
@@ -114885,7 +114865,7 @@ function getAuthTokenSource() {
|
|
|
114885
114865
|
}
|
|
114886
114866
|
const oauthTokens = getVivusAIOAuthTokens();
|
|
114887
114867
|
if (shouldUseVivusAIAuth(oauthTokens?.scopes) && oauthTokens?.accessToken) {
|
|
114888
|
-
return { source: "vivus
|
|
114868
|
+
return { source: "vivus", hasToken: true };
|
|
114889
114869
|
}
|
|
114890
114870
|
return { source: "none", hasToken: false };
|
|
114891
114871
|
}
|
|
@@ -115094,7 +115074,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
115094
115074
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
115095
115075
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
115096
115076
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
115097
|
-
const error41 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${"https://github.com/vivus-
|
|
115077
|
+
const error41 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${"https://github.com/wittyphantom333/vivus-code/issues"}.`);
|
|
115098
115078
|
logAntError("apiKeyHelper invoked before trust check", error41);
|
|
115099
115079
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
115100
115080
|
return null;
|
|
@@ -115138,7 +115118,7 @@ async function runAwsAuthRefresh() {
|
|
|
115138
115118
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
115139
115119
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
115140
115120
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
115141
|
-
const error41 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${"https://github.com/vivus-
|
|
115121
|
+
const error41 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${"https://github.com/wittyphantom333/vivus-code/issues"}.`);
|
|
115142
115122
|
logAntError("awsAuthRefresh invoked before trust check", error41);
|
|
115143
115123
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
115144
115124
|
return false;
|
|
@@ -115198,7 +115178,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
115198
115178
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
115199
115179
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
115200
115180
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
115201
|
-
const error41 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${"https://github.com/vivus-
|
|
115181
|
+
const error41 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${"https://github.com/wittyphantom333/vivus-code/issues"}.`);
|
|
115202
115182
|
logAntError("awsCredentialExport invoked before trust check", error41);
|
|
115203
115183
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
115204
115184
|
return null;
|
|
@@ -115283,7 +115263,7 @@ async function runGcpAuthRefresh() {
|
|
|
115283
115263
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
115284
115264
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
115285
115265
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
115286
|
-
const error41 = new Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/vivus-
|
|
115266
|
+
const error41 = new Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/wittyphantom333/vivus-code/issues.");
|
|
115287
115267
|
logAntError("gcpAuthRefresh invoked before trust check", error41);
|
|
115288
115268
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
115289
115269
|
return false;
|
|
@@ -115795,14 +115775,14 @@ function getAccountInformation() {
|
|
|
115795
115775
|
if (apiKey) {
|
|
115796
115776
|
accountInfo.apiKeySource = apiKeySource;
|
|
115797
115777
|
}
|
|
115798
|
-
if (authTokenSource === "vivus
|
|
115778
|
+
if (authTokenSource === "vivus" || apiKeySource === "/login managed key") {
|
|
115799
115779
|
const orgName = getOauthAccountInfo()?.organizationName;
|
|
115800
115780
|
if (orgName) {
|
|
115801
115781
|
accountInfo.organization = orgName;
|
|
115802
115782
|
}
|
|
115803
115783
|
}
|
|
115804
115784
|
const email3 = getOauthAccountInfo()?.emailAddress;
|
|
115805
|
-
if ((authTokenSource === "vivus
|
|
115785
|
+
if ((authTokenSource === "vivus" || apiKeySource === "/login managed key") && email3) {
|
|
115806
115786
|
accountInfo.email = email3;
|
|
115807
115787
|
}
|
|
115808
115788
|
return accountInfo;
|
|
@@ -115978,7 +115958,7 @@ var init_auth = __esm(() => {
|
|
|
115978
115958
|
|
|
115979
115959
|
// src/utils/userAgent.ts
|
|
115980
115960
|
function getVivusCodeUserAgent() {
|
|
115981
|
-
return `vivus/${"1.0.
|
|
115961
|
+
return `vivus/${"1.0.3+aa285c3"}`;
|
|
115982
115962
|
}
|
|
115983
115963
|
|
|
115984
115964
|
// src/utils/workloadContext.ts
|
|
@@ -116000,7 +115980,7 @@ function getUserAgent() {
|
|
|
116000
115980
|
const clientApp = process.env.VIVUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.VIVUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
116001
115981
|
const workload = getWorkload();
|
|
116002
115982
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
116003
|
-
return `vivus-cli/${"1.0.
|
|
115983
|
+
return `vivus-cli/${"1.0.3+aa285c3"} (${process.env.USER_TYPE}, ${process.env.VIVUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
116004
115984
|
}
|
|
116005
115985
|
function getMCPUserAgent() {
|
|
116006
115986
|
const parts = [];
|
|
@@ -116014,7 +115994,7 @@ function getMCPUserAgent() {
|
|
|
116014
115994
|
parts.push(`client-app/${process.env.VIVUS_AGENT_SDK_CLIENT_APP}`);
|
|
116015
115995
|
}
|
|
116016
115996
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
116017
|
-
return `vivus/${"1.0.
|
|
115997
|
+
return `vivus/${"1.0.3+aa285c3"}${suffix}`;
|
|
116018
115998
|
}
|
|
116019
115999
|
function getWebFetchUserAgent() {
|
|
116020
116000
|
return `Vivus-User (${getVivusCodeUserAgent()}; +https://support.anthropic.com/)`;
|
|
@@ -116152,7 +116132,7 @@ var init_user = __esm(() => {
|
|
|
116152
116132
|
deviceId,
|
|
116153
116133
|
sessionId: getSessionId(),
|
|
116154
116134
|
email: getEmail(),
|
|
116155
|
-
appVersion: "1.0.
|
|
116135
|
+
appVersion: "1.0.3+aa285c3",
|
|
116156
116136
|
platform: getHostPlatformForAnalytics(),
|
|
116157
116137
|
organizationUuid,
|
|
116158
116138
|
accountUuid,
|
|
@@ -127818,7 +127798,7 @@ var init_metadata = __esm(() => {
|
|
|
127818
127798
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
127819
127799
|
WHITESPACE_REGEX = /\s+/;
|
|
127820
127800
|
getVersionBase = memoize_default(() => {
|
|
127821
|
-
const match = "1.0.
|
|
127801
|
+
const match = "1.0.3+aa285c3".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
127822
127802
|
return match ? match[0] : undefined;
|
|
127823
127803
|
});
|
|
127824
127804
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -127858,9 +127838,9 @@ var init_metadata = __esm(() => {
|
|
|
127858
127838
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
127859
127839
|
isVivusCodeAction: isEnvTruthy(process.env.VIVUS_CODE_ACTION),
|
|
127860
127840
|
isVivusAiAuth: isVivusAISubscriber(),
|
|
127861
|
-
version: "1.0.
|
|
127841
|
+
version: "1.0.3+aa285c3",
|
|
127862
127842
|
versionBase: getVersionBase(),
|
|
127863
|
-
buildTime: "2026-06-05T22:
|
|
127843
|
+
buildTime: "2026-06-05T22:48:08.076Z",
|
|
127864
127844
|
deploymentEnvironment: env2.detectDeploymentEnvironment(),
|
|
127865
127845
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
127866
127846
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -128528,7 +128508,7 @@ function initialize1PEventLogging() {
|
|
|
128528
128508
|
const platform2 = getPlatform();
|
|
128529
128509
|
const attributes = {
|
|
128530
128510
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "vivus",
|
|
128531
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.0.
|
|
128511
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.0.3+aa285c3"
|
|
128532
128512
|
};
|
|
128533
128513
|
if (platform2 === "wsl") {
|
|
128534
128514
|
const wslVersion = getWslVersion();
|
|
@@ -128555,7 +128535,7 @@ function initialize1PEventLogging() {
|
|
|
128555
128535
|
})
|
|
128556
128536
|
]
|
|
128557
128537
|
});
|
|
128558
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.vivus_code.events", "1.0.
|
|
128538
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.vivus_code.events", "1.0.3+aa285c3");
|
|
128559
128539
|
}
|
|
128560
128540
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
128561
128541
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -162644,7 +162624,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
162644
162624
|
if (!isAttributionHeaderEnabled()) {
|
|
162645
162625
|
return "";
|
|
162646
162626
|
}
|
|
162647
|
-
const version2 = `${"1.0.
|
|
162627
|
+
const version2 = `${"1.0.3+aa285c3"}.${fingerprint}`;
|
|
162648
162628
|
const entrypoint = process.env.VIVUS_CODE_ENTRYPOINT ?? "unknown";
|
|
162649
162629
|
const cch = "";
|
|
162650
162630
|
const workload = getWorkload();
|
|
@@ -175801,7 +175781,7 @@ function getTelemetryAttributes() {
|
|
|
175801
175781
|
attributes["session.id"] = sessionId;
|
|
175802
175782
|
}
|
|
175803
175783
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
175804
|
-
attributes["app.version"] = "1.0.
|
|
175784
|
+
attributes["app.version"] = "1.0.3+aa285c3";
|
|
175805
175785
|
}
|
|
175806
175786
|
const oauthAccount = getOauthAccountInfo();
|
|
175807
175787
|
if (oauthAccount) {
|
|
@@ -193369,7 +193349,7 @@ function getAssistantMessageFromError(error41, model, options2) {
|
|
|
193369
193349
|
});
|
|
193370
193350
|
}
|
|
193371
193351
|
if (error41.message.includes("Extra usage is required for long context")) {
|
|
193372
|
-
const hint = getIsNonInteractiveSession() ? "enable extra usage at
|
|
193352
|
+
const hint = getIsNonInteractiveSession() ? "enable extra usage at github.com/wittyphantom333/vivus-code, or use --model to switch to standard context" : "run /extra-usage to enable, or /model to switch to standard context";
|
|
193373
193353
|
return createAssistantAPIErrorMessage({
|
|
193374
193354
|
content: `${API_ERROR_MESSAGE_PREFIX}: Extra usage is required for 1M context · ${hint}`,
|
|
193375
193355
|
error: "rate_limit"
|
|
@@ -193445,7 +193425,7 @@ function getAssistantMessageFromError(error41, model, options2) {
|
|
|
193445
193425
|
if (process.env.USER_TYPE === "ant") {
|
|
193446
193426
|
const baseMessage = `API Error: 400 ${error41.message}
|
|
193447
193427
|
|
|
193448
|
-
Run /share and post the JSON file to ${"https://github.com/vivus-
|
|
193428
|
+
Run /share and post the JSON file to ${"https://github.com/wittyphantom333/vivus-code/issues"}.`;
|
|
193449
193429
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
193450
193430
|
return createAssistantAPIErrorMessage({
|
|
193451
193431
|
content: baseMessage + rewindInstruction,
|
|
@@ -193481,7 +193461,7 @@ Run /share and post the JSON file to ${"https://github.com/vivus-ai/vivus/issues
|
|
|
193481
193461
|
if (process.env.USER_TYPE === "ant" && !process.env.ANTHROPIC_MODEL && error41 instanceof Error && error41.message.toLowerCase().includes("invalid model name")) {
|
|
193482
193462
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
193483
193463
|
const baseMsg = `[ANT-ONLY] Your org isn't gated into the \`${model}\` model. Either run \`vivus\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
193484
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${"https://github.com/vivus-
|
|
193464
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${"https://github.com/wittyphantom333/vivus-code/issues"} for help getting access.` : `${baseMsg} or reach out in ${"https://github.com/wittyphantom333/vivus-code/issues"} for help getting access.`;
|
|
193485
193465
|
return createAssistantAPIErrorMessage({
|
|
193486
193466
|
content: msg,
|
|
193487
193467
|
error: "invalid_request"
|
|
@@ -201906,11 +201886,11 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
201906
201886
|
}
|
|
201907
201887
|
function getFeedbackGuideline() {
|
|
201908
201888
|
if (isUsing3PServices()) {
|
|
201909
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${"file an issue at https://github.com/vivus-
|
|
201889
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${"file an issue at https://github.com/wittyphantom333/vivus-code/issues"}`;
|
|
201910
201890
|
}
|
|
201911
201891
|
return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
|
|
201912
201892
|
}
|
|
201913
|
-
var VIVUS_CODE_DOCS_MAP_URL = "https://
|
|
201893
|
+
var VIVUS_CODE_DOCS_MAP_URL = "https://github.com/wittyphantom333/vivus-code", CDP_DOCS_MAP_URL = "https://github.com/wittyphantom333/vivus-code", VIVUS_CODE_GUIDE_AGENT_TYPE = "vivus-guide", VIVUS_CODE_GUIDE_AGENT;
|
|
201914
201894
|
var init_vivusCodeGuideAgent = __esm(() => {
|
|
201915
201895
|
init_prompt2();
|
|
201916
201896
|
init_prompt();
|
|
@@ -227939,7 +227919,7 @@ var init_vivusai = __esm(() => {
|
|
|
227939
227919
|
const configs = {};
|
|
227940
227920
|
const usedNormalizedNames = new Set;
|
|
227941
227921
|
for (const server of response.data.data) {
|
|
227942
|
-
const baseName = `vivus
|
|
227922
|
+
const baseName = `vivus ${server.display_name}`;
|
|
227943
227923
|
let finalName = baseName;
|
|
227944
227924
|
let finalNormalized = normalizeNameForMCP(finalName);
|
|
227945
227925
|
let count3 = 1;
|
|
@@ -228105,7 +228085,7 @@ function dedupVivusAiMcpServers(vivusAiServers, manualServers) {
|
|
|
228105
228085
|
const sig = getMcpServerSignature(config3);
|
|
228106
228086
|
const manualDup = sig !== null ? manualSigs.get(sig) : undefined;
|
|
228107
228087
|
if (manualDup !== undefined) {
|
|
228108
|
-
logForDebugging(`Suppressing vivus
|
|
228088
|
+
logForDebugging(`Suppressing vivus connector "${name}": duplicates manually-configured "${manualDup}"`);
|
|
228109
228089
|
suppressed.push({ name, duplicateOf: manualDup });
|
|
228110
228090
|
continue;
|
|
228111
228091
|
}
|
|
@@ -228726,7 +228706,7 @@ function parseMcpConfig(params) {
|
|
|
228726
228706
|
...filePath && { file: filePath },
|
|
228727
228707
|
path: `mcpServers.${name}`,
|
|
228728
228708
|
message: `Windows requires 'cmd /c' wrapper to execute npx`,
|
|
228729
|
-
suggestion: `Change command to "cmd" with args ["/c", "npx", ...]. See: https://
|
|
228709
|
+
suggestion: `Change command to "cmd" with args ["/c", "npx", ...]. See: https://github.com/wittyphantom333/vivus-code`,
|
|
228730
228710
|
mcpErrorMetadata: {
|
|
228731
228711
|
scope,
|
|
228732
228712
|
serverName: name,
|
|
@@ -228983,7 +228963,7 @@ function describeMcpConfigFilePath(scope) {
|
|
|
228983
228963
|
case "enterprise":
|
|
228984
228964
|
return getEnterpriseMcpFilePath();
|
|
228985
228965
|
case "vivus":
|
|
228986
|
-
return "vivus
|
|
228966
|
+
return "vivus";
|
|
228987
228967
|
default:
|
|
228988
228968
|
return scope;
|
|
228989
228969
|
}
|
|
@@ -229001,7 +228981,7 @@ function getScopeLabel(scope) {
|
|
|
229001
228981
|
case "enterprise":
|
|
229002
228982
|
return "Enterprise config (managed by your organization)";
|
|
229003
228983
|
case "vivus":
|
|
229004
|
-
return "vivus
|
|
228984
|
+
return "vivus config";
|
|
229005
228985
|
default:
|
|
229006
228986
|
return scope;
|
|
229007
228987
|
}
|
|
@@ -231119,7 +231099,7 @@ function createMcpAuthTool(serverName, config3) {
|
|
|
231119
231099
|
return {
|
|
231120
231100
|
data: {
|
|
231121
231101
|
status: "unsupported",
|
|
231122
|
-
message: `This is a vivus
|
|
231102
|
+
message: `This is a vivus MCP connector. Ask the user to run /mcp and select "${serverName}" to authenticate.`
|
|
231123
231103
|
}
|
|
231124
231104
|
};
|
|
231125
231105
|
}
|
|
@@ -232464,7 +232444,7 @@ async function getMcpHeadersFromHelper(serverName, config3) {
|
|
|
232464
232444
|
if ("scope" in config3 && isMcpServerFromProjectOrLocalSettings(config3) && !getIsNonInteractiveSession()) {
|
|
232465
232445
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
232466
232446
|
if (!hasTrust) {
|
|
232467
|
-
const error41 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${"https://github.com/vivus-
|
|
232447
|
+
const error41 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${"https://github.com/wittyphantom333/vivus-code/issues"}.`);
|
|
232468
232448
|
logAntError("MCP headersHelper invoked before trust check", error41);
|
|
232469
232449
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
232470
232450
|
return null;
|
|
@@ -235935,7 +235915,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
235935
235915
|
}
|
|
235936
235916
|
function computeFingerprintFromMessages(messages) {
|
|
235937
235917
|
const firstMessageText = extractFirstMessageText(messages);
|
|
235938
|
-
return computeFingerprint(firstMessageText, "1.0.
|
|
235918
|
+
return computeFingerprint(firstMessageText, "1.0.3+aa285c3");
|
|
235939
235919
|
}
|
|
235940
235920
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
235941
235921
|
var init_fingerprint = () => {};
|
|
@@ -235977,7 +235957,7 @@ async function sideQuery(opts) {
|
|
|
235977
235957
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
235978
235958
|
}
|
|
235979
235959
|
const messageText = extractFirstUserMessageText(messages);
|
|
235980
|
-
const fingerprint = computeFingerprint(messageText, "1.0.
|
|
235960
|
+
const fingerprint = computeFingerprint(messageText, "1.0.3+aa285c3");
|
|
235981
235961
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
235982
235962
|
const systemBlocks = [
|
|
235983
235963
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -236092,10 +236072,10 @@ function createChromeContext(env4) {
|
|
|
236092
236072
|
getSocketPaths: getAllSocketPaths,
|
|
236093
236073
|
clientTypeId: "vivus",
|
|
236094
236074
|
onAuthenticationError: () => {
|
|
236095
|
-
logger.warn("Authentication error occurred. Please ensure you are logged into the Vivus browser extension with the same
|
|
236075
|
+
logger.warn("Authentication error occurred. Please ensure you are logged into the Vivus browser extension with the same account as Vivus.");
|
|
236096
236076
|
},
|
|
236097
236077
|
onToolCallDisconnected: () => {
|
|
236098
|
-
return `Browser extension is not connected. Please ensure the Vivus browser extension is installed and running (${EXTENSION_DOWNLOAD_URL}), and that you are logged
|
|
236078
|
+
return `Browser extension is not connected. Please ensure the Vivus browser extension is installed and running (${EXTENSION_DOWNLOAD_URL}), and that you are logged in with the same account as Vivus. If this is your first time connecting to Chrome, you may need to restart Chrome for the installation to take effect. If you continue to experience issues, please report a bug: ${BUG_REPORT_URL}`;
|
|
236099
236079
|
},
|
|
236100
236080
|
onExtensionPaired: (deviceId, name) => {
|
|
236101
236081
|
saveGlobalConfig((config3) => {
|
|
@@ -236213,7 +236193,7 @@ class DebugLogger {
|
|
|
236213
236193
|
logForDebugging(format4(message, ...args), { level: "error" });
|
|
236214
236194
|
}
|
|
236215
236195
|
}
|
|
236216
|
-
var EXTENSION_DOWNLOAD_URL = "https://
|
|
236196
|
+
var EXTENSION_DOWNLOAD_URL = "https://github.com/wittyphantom333/vivus-code", BUG_REPORT_URL = "https://github.com/anthropics/vivus/issues/new?labels=bug,vivus-in-chrome", SAFE_BRIDGE_STRING_KEYS, PERMISSION_MODES3;
|
|
236217
236197
|
var init_mcpServer = __esm(() => {
|
|
236218
236198
|
init_vivus_for_chrome_mcp();
|
|
236219
236199
|
init_stdio4();
|
|
@@ -236342,7 +236322,7 @@ function handleRemoteAuthFailure(name, serverRef, transportType) {
|
|
|
236342
236322
|
const label = {
|
|
236343
236323
|
sse: "SSE",
|
|
236344
236324
|
http: "HTTP",
|
|
236345
|
-
"vivus-proxy": "vivus
|
|
236325
|
+
"vivus-proxy": "vivus proxy"
|
|
236346
236326
|
};
|
|
236347
236327
|
logMCPDebug(name, `Authentication required for ${label[transportType]} server`);
|
|
236348
236328
|
setMcpAuthCacheEntry(name);
|
|
@@ -236354,7 +236334,7 @@ function createVivusAiProxyFetch(innerFetch) {
|
|
|
236354
236334
|
await checkAndRefreshOAuthTokenIfNeeded();
|
|
236355
236335
|
const currentTokens = getVivusAIOAuthTokens();
|
|
236356
236336
|
if (!currentTokens) {
|
|
236357
|
-
throw new Error("No vivus
|
|
236337
|
+
throw new Error("No vivus OAuth token available");
|
|
236358
236338
|
}
|
|
236359
236339
|
const headers = new Headers(init?.headers);
|
|
236360
236340
|
headers.set("Authorization", `Bearer ${currentTokens.accessToken}`);
|
|
@@ -237129,7 +237109,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
237129
237109
|
const client2 = new Client({
|
|
237130
237110
|
name: "vivus",
|
|
237131
237111
|
title: "Vivus",
|
|
237132
|
-
version: "1.0.
|
|
237112
|
+
version: "1.0.3+aa285c3",
|
|
237133
237113
|
description: "Anthropic's agentic coding tool",
|
|
237134
237114
|
websiteUrl: PRODUCT_URL
|
|
237135
237115
|
}, {
|
|
@@ -237418,14 +237398,14 @@ var init_client6 = __esm(() => {
|
|
|
237418
237398
|
} else if (serverRef.type === "sdk") {
|
|
237419
237399
|
throw new Error("SDK servers should be handled in print.ts");
|
|
237420
237400
|
} else if (serverRef.type === "vivus-proxy") {
|
|
237421
|
-
logMCPDebug(name, `Initializing vivus
|
|
237401
|
+
logMCPDebug(name, `Initializing vivus proxy transport for server ${serverRef.id}`);
|
|
237422
237402
|
const tokens = getVivusAIOAuthTokens();
|
|
237423
237403
|
if (!tokens) {
|
|
237424
|
-
throw new Error("No vivus
|
|
237404
|
+
throw new Error("No vivus OAuth token found");
|
|
237425
237405
|
}
|
|
237426
237406
|
const oauthConfig = getOauthConfig();
|
|
237427
237407
|
const proxyUrl = `${oauthConfig.MCP_PROXY_URL}${oauthConfig.MCP_PROXY_PATH.replace("{server_id}", serverRef.id)}`;
|
|
237428
|
-
logMCPDebug(name, `Using vivus
|
|
237408
|
+
logMCPDebug(name, `Using vivus proxy at ${proxyUrl}`);
|
|
237429
237409
|
const fetchWithAuth = createVivusAiProxyFetch(globalThis.fetch);
|
|
237430
237410
|
const proxyOptions = getProxyFetchOptions();
|
|
237431
237411
|
const transportOptions = {
|
|
@@ -237439,7 +237419,7 @@ var init_client6 = __esm(() => {
|
|
|
237439
237419
|
}
|
|
237440
237420
|
};
|
|
237441
237421
|
transport = new StreamableHTTPClientTransport(new URL(proxyUrl), transportOptions);
|
|
237442
|
-
logMCPDebug(name, `vivus
|
|
237422
|
+
logMCPDebug(name, `vivus proxy transport created successfully`);
|
|
237443
237423
|
} else if ((serverRef.type === "stdio" || !serverRef.type) && isVivusInChromeMCPServer(name)) {
|
|
237444
237424
|
const { createChromeContext: createChromeContext2 } = await Promise.resolve().then(() => (init_mcpServer(), exports_mcpServer));
|
|
237445
237425
|
const { createVivusForChromeMcpServer: createVivusForChromeMcpServer2 } = await Promise.resolve().then(() => (init_vivus_for_chrome_mcp(), exports_vivus_for_chrome_mcp));
|
|
@@ -237483,7 +237463,7 @@ var init_client6 = __esm(() => {
|
|
|
237483
237463
|
const client2 = new Client({
|
|
237484
237464
|
name: "vivus",
|
|
237485
237465
|
title: "Vivus",
|
|
237486
|
-
version: "1.0.
|
|
237466
|
+
version: "1.0.3+aa285c3",
|
|
237487
237467
|
description: "Anthropic's agentic coding tool",
|
|
237488
237468
|
websiteUrl: PRODUCT_URL
|
|
237489
237469
|
}, {
|
|
@@ -237564,7 +237544,7 @@ var init_client6 = __esm(() => {
|
|
|
237564
237544
|
return handleRemoteAuthFailure(name, serverRef, "http");
|
|
237565
237545
|
}
|
|
237566
237546
|
} else if (serverRef.type === "vivus-proxy" && error41 instanceof Error) {
|
|
237567
|
-
logMCPDebug(name, `vivus
|
|
237547
|
+
logMCPDebug(name, `vivus proxy connection failed after ${elapsed}ms: ${error41.message}`);
|
|
237568
237548
|
logMCPError(name, error41);
|
|
237569
237549
|
const errorCode = error41.code;
|
|
237570
237550
|
if (errorCode === 401) {
|
|
@@ -239541,7 +239521,7 @@ function getInstallationEnv() {
|
|
|
239541
239521
|
return;
|
|
239542
239522
|
}
|
|
239543
239523
|
function getVivusCodeVersion() {
|
|
239544
|
-
return "1.0.
|
|
239524
|
+
return "1.0.3+aa285c3";
|
|
239545
239525
|
}
|
|
239546
239526
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
239547
239527
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -242633,7 +242613,7 @@ var init_coreSchemas = __esm(() => {
|
|
|
242633
242613
|
]).optional(),
|
|
242634
242614
|
isUsingOverage: exports_external.boolean().optional(),
|
|
242635
242615
|
surpassedThreshold: exports_external.number().optional()
|
|
242636
|
-
}).describe("Rate limit information for vivus
|
|
242616
|
+
}).describe("Rate limit information for vivus subscription users."));
|
|
242637
242617
|
SDKAssistantMessageSchema = lazySchema(() => exports_external.object({
|
|
242638
242618
|
type: exports_external.literal("assistant"),
|
|
242639
242619
|
message: APIAssistantMessagePlaceholder(),
|
|
@@ -272031,7 +272011,7 @@ async function initializeBetaTracing(resource) {
|
|
|
272031
272011
|
});
|
|
272032
272012
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
272033
272013
|
setLoggerProvider(loggerProvider);
|
|
272034
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.0.
|
|
272014
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.0.3+aa285c3");
|
|
272035
272015
|
setEventLogger(eventLogger);
|
|
272036
272016
|
process.on("beforeExit", async () => {
|
|
272037
272017
|
await loggerProvider?.forceFlush();
|
|
@@ -272071,7 +272051,7 @@ async function initializeTelemetry() {
|
|
|
272071
272051
|
const platform5 = getPlatform();
|
|
272072
272052
|
const baseAttributes = {
|
|
272073
272053
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "vivus",
|
|
272074
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.0.
|
|
272054
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.0.3+aa285c3"
|
|
272075
272055
|
};
|
|
272076
272056
|
if (platform5 === "wsl") {
|
|
272077
272057
|
const wslVersion = getWslVersion();
|
|
@@ -272116,7 +272096,7 @@ async function initializeTelemetry() {
|
|
|
272116
272096
|
} catch {}
|
|
272117
272097
|
};
|
|
272118
272098
|
registerCleanup(shutdownTelemetry2);
|
|
272119
|
-
return meterProvider2.getMeter("com.anthropic.vivus_code", "1.0.
|
|
272099
|
+
return meterProvider2.getMeter("com.anthropic.vivus_code", "1.0.3+aa285c3");
|
|
272120
272100
|
}
|
|
272121
272101
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
272122
272102
|
resource,
|
|
@@ -272136,7 +272116,7 @@ async function initializeTelemetry() {
|
|
|
272136
272116
|
});
|
|
272137
272117
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
272138
272118
|
setLoggerProvider(loggerProvider);
|
|
272139
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.0.
|
|
272119
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.vivus_code.events", "1.0.3+aa285c3");
|
|
272140
272120
|
setEventLogger(eventLogger);
|
|
272141
272121
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
272142
272122
|
process.on("beforeExit", async () => {
|
|
@@ -272198,7 +272178,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
272198
272178
|
}
|
|
272199
272179
|
};
|
|
272200
272180
|
registerCleanup(shutdownTelemetry);
|
|
272201
|
-
return meterProvider.getMeter("com.anthropic.vivus_code", "1.0.
|
|
272181
|
+
return meterProvider.getMeter("com.anthropic.vivus_code", "1.0.3+aa285c3");
|
|
272202
272182
|
}
|
|
272203
272183
|
async function flushTelemetry() {
|
|
272204
272184
|
const meterProvider = getMeterProvider();
|
|
@@ -272884,9 +272864,9 @@ async function assertMinVersion() {
|
|
|
272884
272864
|
if (false) {}
|
|
272885
272865
|
try {
|
|
272886
272866
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
272887
|
-
if (versionConfig.minVersion && lt("1.0.
|
|
272867
|
+
if (versionConfig.minVersion && lt("1.0.3+aa285c3", versionConfig.minVersion)) {
|
|
272888
272868
|
console.error(`
|
|
272889
|
-
It looks like your version of Vivus (${"1.0.
|
|
272869
|
+
It looks like your version of Vivus (${"1.0.3+aa285c3"}) needs an update.
|
|
272890
272870
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
272891
272871
|
|
|
272892
272872
|
To update, please run:
|
|
@@ -273102,7 +273082,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
273102
273082
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
273103
273083
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
273104
273084
|
pid: process.pid,
|
|
273105
|
-
currentVersion: "1.0.
|
|
273085
|
+
currentVersion: "1.0.3+aa285c3"
|
|
273106
273086
|
});
|
|
273107
273087
|
return "in_progress";
|
|
273108
273088
|
}
|
|
@@ -273111,7 +273091,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
273111
273091
|
if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
|
|
273112
273092
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
273113
273093
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
273114
|
-
currentVersion: "1.0.
|
|
273094
|
+
currentVersion: "1.0.3+aa285c3"
|
|
273115
273095
|
});
|
|
273116
273096
|
console.error(`
|
|
273117
273097
|
Error: Windows NPM detected in WSL
|
|
@@ -273644,7 +273624,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
273644
273624
|
}
|
|
273645
273625
|
async function getDoctorDiagnostic() {
|
|
273646
273626
|
const installationType = await getCurrentInstallationType();
|
|
273647
|
-
const version2 = typeof MACRO !== "undefined" ? "1.0.
|
|
273627
|
+
const version2 = typeof MACRO !== "undefined" ? "1.0.3+aa285c3" : "unknown";
|
|
273648
273628
|
const installationPath = await getInstallationPath();
|
|
273649
273629
|
const invokedBinary = getInvokedBinary();
|
|
273650
273630
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -274577,8 +274557,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
274577
274557
|
const maxVersion = await getMaxVersion();
|
|
274578
274558
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
274579
274559
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
274580
|
-
if (gte("1.0.
|
|
274581
|
-
logForDebugging(`Native installer: current version ${"1.0.
|
|
274560
|
+
if (gte("1.0.3+aa285c3", maxVersion)) {
|
|
274561
|
+
logForDebugging(`Native installer: current version ${"1.0.3+aa285c3"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
274582
274562
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
274583
274563
|
latency_ms: Date.now() - startTime,
|
|
274584
274564
|
max_version: maxVersion,
|
|
@@ -274589,7 +274569,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
274589
274569
|
version2 = maxVersion;
|
|
274590
274570
|
}
|
|
274591
274571
|
}
|
|
274592
|
-
if (!forceReinstall && version2 === "1.0.
|
|
274572
|
+
if (!forceReinstall && version2 === "1.0.3+aa285c3" && await versionIsAvailable(version2) && await isPossibleVivusBinary(executablePath)) {
|
|
274593
274573
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
274594
274574
|
logEvent("tengu_native_update_complete", {
|
|
274595
274575
|
latency_ms: Date.now() - startTime,
|
|
@@ -275905,8 +275885,8 @@ async function authStatus(opts) {
|
|
|
275905
275885
|
let authMethod = "none";
|
|
275906
275886
|
if (using3P) {
|
|
275907
275887
|
authMethod = "third_party";
|
|
275908
|
-
} else if (authTokenSource === "vivus
|
|
275909
|
-
authMethod = "vivus
|
|
275888
|
+
} else if (authTokenSource === "vivus") {
|
|
275889
|
+
authMethod = "vivus";
|
|
275910
275890
|
} else if (authTokenSource === "apiKeyHelper") {
|
|
275911
275891
|
authMethod = "api_key_helper";
|
|
275912
275892
|
} else if (authTokenSource !== "none") {
|
|
@@ -275914,7 +275894,7 @@ async function authStatus(opts) {
|
|
|
275914
275894
|
} else if (apiKeySource === "ANTHROPIC_API_KEY" || hasApiKeyEnvVar) {
|
|
275915
275895
|
authMethod = "api_key";
|
|
275916
275896
|
} else if (apiKeySource === "/login managed key") {
|
|
275917
|
-
authMethod = "vivus
|
|
275897
|
+
authMethod = "vivus";
|
|
275918
275898
|
}
|
|
275919
275899
|
if (opts.text) {
|
|
275920
275900
|
const properties = [
|
|
@@ -275955,7 +275935,7 @@ async function authStatus(opts) {
|
|
|
275955
275935
|
if (resolvedApiKeySource) {
|
|
275956
275936
|
output.apiKeySource = resolvedApiKeySource;
|
|
275957
275937
|
}
|
|
275958
|
-
if (authMethod === "vivus
|
|
275938
|
+
if (authMethod === "vivus") {
|
|
275959
275939
|
output.email = oauthAccount?.emailAddress ?? null;
|
|
275960
275940
|
output.orgId = oauthAccount?.organizationUuid ?? null;
|
|
275961
275941
|
output.orgName = oauthAccount?.organizationName ?? null;
|
|
@@ -289539,8 +289519,8 @@ function OAuthStatusMessage(t0) {
|
|
|
289539
289519
|
"· Amazon Bedrock:",
|
|
289540
289520
|
" ",
|
|
289541
289521
|
/* @__PURE__ */ jsx_dev_runtime90.jsxDEV(Link, {
|
|
289542
|
-
url: "https://
|
|
289543
|
-
children: "https://
|
|
289522
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
289523
|
+
children: "https://github.com/wittyphantom333/vivus-code"
|
|
289544
289524
|
}, undefined, false, undefined, this)
|
|
289545
289525
|
]
|
|
289546
289526
|
}, undefined, true, undefined, this);
|
|
@@ -289555,8 +289535,8 @@ function OAuthStatusMessage(t0) {
|
|
|
289555
289535
|
"· Microsoft Foundry:",
|
|
289556
289536
|
" ",
|
|
289557
289537
|
/* @__PURE__ */ jsx_dev_runtime90.jsxDEV(Link, {
|
|
289558
|
-
url: "https://
|
|
289559
|
-
children: "https://
|
|
289538
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
289539
|
+
children: "https://github.com/wittyphantom333/vivus-code"
|
|
289560
289540
|
}, undefined, false, undefined, this)
|
|
289561
289541
|
]
|
|
289562
289542
|
}, undefined, true, undefined, this);
|
|
@@ -289578,8 +289558,8 @@ function OAuthStatusMessage(t0) {
|
|
|
289578
289558
|
"· Vertex AI:",
|
|
289579
289559
|
" ",
|
|
289580
289560
|
/* @__PURE__ */ jsx_dev_runtime90.jsxDEV(Link, {
|
|
289581
|
-
url: "https://
|
|
289582
|
-
children: "https://
|
|
289561
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
289562
|
+
children: "https://github.com/wittyphantom333/vivus-code"
|
|
289583
289563
|
}, undefined, false, undefined, this)
|
|
289584
289564
|
]
|
|
289585
289565
|
}, undefined, true, undefined, this)
|
|
@@ -290549,7 +290529,7 @@ async function runExtraUsage() {
|
|
|
290549
290529
|
value: "Please contact your admin to manage extra usage settings."
|
|
290550
290530
|
};
|
|
290551
290531
|
}
|
|
290552
|
-
const url3 = isTeamOrEnterprise ? "https://
|
|
290532
|
+
const url3 = isTeamOrEnterprise ? "https://github.com/wittyphantom333/vivus-code" : "https://github.com/wittyphantom333/vivus-code";
|
|
290553
290533
|
try {
|
|
290554
290534
|
const opened = await openBrowser(url3);
|
|
290555
290535
|
return { type: "browser-opened", url: url3, opened };
|
|
@@ -290942,7 +290922,7 @@ function AssistantTextMessage(t0) {
|
|
|
290942
290922
|
height: 1,
|
|
290943
290923
|
children: /* @__PURE__ */ jsx_dev_runtime94.jsxDEV(ThemedText, {
|
|
290944
290924
|
color: "error",
|
|
290945
|
-
children: "Credit balance too low · Add funds: https://
|
|
290925
|
+
children: "Credit balance too low · Add funds: https://github.com/wittyphantom333/vivus-code"
|
|
290946
290926
|
}, undefined, false, undefined, this)
|
|
290947
290927
|
}, undefined, false, undefined, this);
|
|
290948
290928
|
$2[5] = t2;
|
|
@@ -310741,7 +310721,7 @@ async function fetchOfficialMarketplaceFromGcs(installLocation, marketplacesCach
|
|
|
310741
310721
|
} finally {
|
|
310742
310722
|
logEvent("tengu_plugin_remote_fetch", {
|
|
310743
310723
|
source: "marketplace_gcs",
|
|
310744
|
-
host: "
|
|
310724
|
+
host: "",
|
|
310745
310725
|
is_official: true,
|
|
310746
310726
|
outcome,
|
|
310747
310727
|
duration_ms: Math.round(performance.now() - start),
|
|
@@ -310772,7 +310752,7 @@ function classifyGcsError(e) {
|
|
|
310772
310752
|
return "empty_latest";
|
|
310773
310753
|
return "other";
|
|
310774
310754
|
}
|
|
310775
|
-
var GCS_BASE = "
|
|
310755
|
+
var GCS_BASE = "", ARC_PREFIX = "marketplaces/vivus-plugins-official/", KNOWN_FS_CODES;
|
|
310776
310756
|
var init_officialMarketplaceGcs = __esm(() => {
|
|
310777
310757
|
init_axios2();
|
|
310778
310758
|
init_state();
|
|
@@ -330502,7 +330482,7 @@ function getAnthropicEnvMetadata() {
|
|
|
330502
330482
|
function getBuildAgeMinutes() {
|
|
330503
330483
|
if (false)
|
|
330504
330484
|
;
|
|
330505
|
-
const buildTime = new Date("2026-06-05T22:
|
|
330485
|
+
const buildTime = new Date("2026-06-05T22:48:08.076Z").getTime();
|
|
330506
330486
|
if (isNaN(buildTime))
|
|
330507
330487
|
return;
|
|
330508
330488
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -334535,7 +334515,7 @@ async function _bundleWithFallback(gitRoot, bundlePath, maxBytes, hasStash, sign
|
|
|
334535
334515
|
}
|
|
334536
334516
|
return {
|
|
334537
334517
|
ok: false,
|
|
334538
|
-
error: "Repo is too large to bundle.
|
|
334518
|
+
error: "Repo is too large to bundle. See https://github.com/wittyphantom333/vivus-code for setup.",
|
|
334539
334519
|
failReason: "too_large"
|
|
334540
334520
|
};
|
|
334541
334521
|
}
|
|
@@ -335271,7 +335251,7 @@ async function teleportToRemote(options2) {
|
|
|
335271
335251
|
});
|
|
335272
335252
|
if (!bundle.success) {
|
|
335273
335253
|
logError2(new Error(`Bundle upload failed: ${bundle.error}`));
|
|
335274
|
-
const setup = repoInfo ? ".
|
|
335254
|
+
const setup = repoInfo ? ". See https://github.com/wittyphantom333/vivus-code for setup." : "";
|
|
335275
335255
|
let msg;
|
|
335276
335256
|
switch (bundle.failReason) {
|
|
335277
335257
|
case "empty_repo":
|
|
@@ -335546,7 +335526,7 @@ function formatPreconditionError(error41) {
|
|
|
335546
335526
|
case "not_logged_in":
|
|
335547
335527
|
return "Please run /login and sign in with your Vivus.ai account (not Console).";
|
|
335548
335528
|
case "no_remote_environment":
|
|
335549
|
-
return "No cloud environment available.
|
|
335529
|
+
return "No cloud environment available. See https://github.com/wittyphantom333/vivus-code for setup.";
|
|
335550
335530
|
case "not_in_git_repo":
|
|
335551
335531
|
return "Background tasks require a git repository. Initialize git or run from a git repository.";
|
|
335552
335532
|
case "no_git_remote":
|
|
@@ -338778,8 +338758,7 @@ function isPreapprovedHost(hostname3, pathname) {
|
|
|
338778
338758
|
var PREAPPROVED_HOSTS, HOSTNAME_ONLY, PATH_PREFIXES;
|
|
338779
338759
|
var init_preapproved = __esm(() => {
|
|
338780
338760
|
PREAPPROVED_HOSTS = new Set([
|
|
338781
|
-
"
|
|
338782
|
-
"code.vivus.ai",
|
|
338761
|
+
"github.com/wittyphantom333/vivus-code",
|
|
338783
338762
|
"modelcontextprotocol.io",
|
|
338784
338763
|
"github.com/anthropics",
|
|
338785
338764
|
"agentskills.io",
|
|
@@ -355776,7 +355755,7 @@ var init_utils9 = __esm(() => {
|
|
|
355776
355755
|
};
|
|
355777
355756
|
DomainCheckFailedError = class DomainCheckFailedError extends Error {
|
|
355778
355757
|
constructor(domain2) {
|
|
355779
|
-
super(`Unable to verify if domain ${domain2} is safe to fetch. This may be due to network restrictions or enterprise security policies blocking vivus
|
|
355758
|
+
super(`Unable to verify if domain ${domain2} is safe to fetch. This may be due to network restrictions or enterprise security policies blocking vivus.`);
|
|
355780
355759
|
this.name = "DomainCheckFailedError";
|
|
355781
355760
|
}
|
|
355782
355761
|
};
|
|
@@ -372789,7 +372768,7 @@ function getSimpleDoingTasksSection() {
|
|
|
372789
372768
|
];
|
|
372790
372769
|
const userHelpSubitems = [
|
|
372791
372770
|
`/help: Get help with using Vivus`,
|
|
372792
|
-
`To give feedback, users should ${"file an issue at https://github.com/vivus-
|
|
372771
|
+
`To give feedback, users should ${"file an issue at https://github.com/wittyphantom333/vivus-code/issues"}`
|
|
372793
372772
|
];
|
|
372794
372773
|
const items = [
|
|
372795
372774
|
`The user will primarily request you to perform software engineering tasks. These may include solving bugs, adding new functionality, refactoring code, explaining code, and more. When given an unclear or generic instruction, consider it in the context of these software engineering tasks and the current working directory. For example, if the user asks you to change "methodName" to snake case, do not reply with just "method_name", instead find the method in the code and modify the code.`,
|
|
@@ -373038,7 +373017,7 @@ async function computeSimpleEnvInfo(modelId, additionalWorkingDirectories) {
|
|
|
373038
373017
|
modelDescription,
|
|
373039
373018
|
knowledgeCutoffMessage,
|
|
373040
373019
|
process.env.USER_TYPE === "ant" && isUndercover() ? null : `The most recent Vivus model family is Vivus 4.5/4.6. Model IDs — Opus 4.6: '${VIVUS_4_5_OR_4_6_MODEL_IDS.opus}', Sonnet 4.6: '${VIVUS_4_5_OR_4_6_MODEL_IDS.sonnet}', Haiku 4.5: '${VIVUS_4_5_OR_4_6_MODEL_IDS.haiku}'. When building AI applications, default to the latest and most capable Vivus models.`,
|
|
373041
|
-
process.env.USER_TYPE === "ant" && isUndercover() ? null : `Vivus is available as a CLI in the terminal
|
|
373020
|
+
process.env.USER_TYPE === "ant" && isUndercover() ? null : `Vivus is available as a CLI in the terminal.`,
|
|
373042
373021
|
process.env.USER_TYPE === "ant" && isUndercover() ? null : `Fast mode for Vivus uses the same ${FRONTIER_MODEL_NAME} model with faster output. It does NOT switch to a different model. It can be toggled with /fast.`
|
|
373043
373022
|
].filter((item) => item !== null);
|
|
373044
373023
|
return [
|
|
@@ -377718,7 +377697,7 @@ var init_filesystem = __esm(() => {
|
|
|
377718
377697
|
});
|
|
377719
377698
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
377720
377699
|
const nonce = randomBytes17(16).toString("hex");
|
|
377721
|
-
return join106(getVivusTempDir(), "bundled-skills", "1.0.
|
|
377700
|
+
return join106(getVivusTempDir(), "bundled-skills", "1.0.3+aa285c3", nonce);
|
|
377722
377701
|
});
|
|
377723
377702
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
377724
377703
|
});
|
|
@@ -379478,7 +379457,7 @@ function Feedback({
|
|
|
379478
379457
|
platform: env2.platform,
|
|
379479
379458
|
gitRepo: envInfo.isGit,
|
|
379480
379459
|
terminal: env2.terminal,
|
|
379481
|
-
version: "1.0.
|
|
379460
|
+
version: "1.0.3+aa285c3",
|
|
379482
379461
|
transcript: normalizeMessagesForAPI(messages),
|
|
379483
379462
|
errors: sanitizedErrors,
|
|
379484
379463
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -379670,7 +379649,7 @@ function Feedback({
|
|
|
379670
379649
|
", ",
|
|
379671
379650
|
env2.terminal,
|
|
379672
379651
|
", v",
|
|
379673
|
-
"1.0.
|
|
379652
|
+
"1.0.3+aa285c3"
|
|
379674
379653
|
]
|
|
379675
379654
|
}, undefined, true, undefined, this)
|
|
379676
379655
|
]
|
|
@@ -379776,7 +379755,7 @@ ${sanitizedDescription}
|
|
|
379776
379755
|
` + `**Environment Info**
|
|
379777
379756
|
` + `- Platform: ${env2.platform}
|
|
379778
379757
|
` + `- Terminal: ${env2.terminal}
|
|
379779
|
-
` + `- Version: ${"1.0.
|
|
379758
|
+
` + `- Version: ${"1.0.3+aa285c3"}
|
|
379780
379759
|
` + `- Feedback ID: ${feedbackId}
|
|
379781
379760
|
` + `
|
|
379782
379761
|
**Errors**
|
|
@@ -381873,7 +381852,7 @@ async function openCurrentSessionInDesktop() {
|
|
|
381873
381852
|
if (!installed) {
|
|
381874
381853
|
return {
|
|
381875
381854
|
success: false,
|
|
381876
|
-
error: "Vivus Desktop is not installed.
|
|
381855
|
+
error: "Vivus Desktop is not installed. See https://github.com/wittyphantom333/vivus-code for setup."
|
|
381877
381856
|
};
|
|
381878
381857
|
}
|
|
381879
381858
|
const deepLinkUrl = buildDesktopDeepLink(sessionId);
|
|
@@ -381978,9 +381957,9 @@ var init_LoadingState = __esm(() => {
|
|
|
381978
381957
|
function getDownloadUrl() {
|
|
381979
381958
|
switch (process.platform) {
|
|
381980
381959
|
case "win32":
|
|
381981
|
-
return "https://
|
|
381960
|
+
return "https://github.com/wittyphantom333/vivus-code";
|
|
381982
381961
|
default:
|
|
381983
|
-
return "https://
|
|
381962
|
+
return "https://github.com/wittyphantom333/vivus-code";
|
|
381984
381963
|
}
|
|
381985
381964
|
}
|
|
381986
381965
|
function DesktopHandoff(t0) {
|
|
@@ -382907,7 +382886,7 @@ function buildPrimarySection() {
|
|
|
382907
382886
|
}, undefined, false, undefined, this);
|
|
382908
382887
|
return [{
|
|
382909
382888
|
label: "Version",
|
|
382910
|
-
value: "1.0.
|
|
382889
|
+
value: "1.0.3+aa285c3"
|
|
382911
382890
|
}, {
|
|
382912
382891
|
label: "Session name",
|
|
382913
382892
|
value: nameValue
|
|
@@ -384390,7 +384369,7 @@ function VivusMdExternalIncludesDialog(t0) {
|
|
|
384390
384369
|
"Important: Only use Vivus with files you trust. Accessing untrusted files may pose security risks",
|
|
384391
384370
|
" ",
|
|
384392
384371
|
/* @__PURE__ */ jsx_dev_runtime173.jsxDEV(Link, {
|
|
384393
|
-
url: "https://
|
|
384372
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
384394
384373
|
}, undefined, false, undefined, this),
|
|
384395
384374
|
" "
|
|
384396
384375
|
]
|
|
@@ -386658,7 +386637,7 @@ function Config({
|
|
|
386658
386637
|
}
|
|
386659
386638
|
}, undefined, false, undefined, this)
|
|
386660
386639
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime178.jsxDEV(ChannelDowngradeDialog, {
|
|
386661
|
-
currentVersion: "1.0.
|
|
386640
|
+
currentVersion: "1.0.3+aa285c3",
|
|
386662
386641
|
onChoice: (choice) => {
|
|
386663
386642
|
setShowSubmenu(null);
|
|
386664
386643
|
setTabsHidden(false);
|
|
@@ -386670,7 +386649,7 @@ function Config({
|
|
|
386670
386649
|
autoUpdatesChannel: "stable"
|
|
386671
386650
|
};
|
|
386672
386651
|
if (choice === "stay") {
|
|
386673
|
-
newSettings.minimumVersion = "1.0.
|
|
386652
|
+
newSettings.minimumVersion = "1.0.3+aa285c3";
|
|
386674
386653
|
}
|
|
386675
386654
|
updateSettingsForSource("userSettings", newSettings);
|
|
386676
386655
|
setSettingsData((prev_27) => ({
|
|
@@ -391316,8 +391295,8 @@ function McpParsingWarnings() {
|
|
|
391316
391295
|
"For help configuring MCP servers, see:",
|
|
391317
391296
|
" ",
|
|
391318
391297
|
/* @__PURE__ */ jsx_dev_runtime193.jsxDEV(Link, {
|
|
391319
|
-
url: "https://
|
|
391320
|
-
children: "https://
|
|
391298
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
391299
|
+
children: "https://github.com/wittyphantom333/vivus-code"
|
|
391321
391300
|
}, undefined, false, undefined, this)
|
|
391322
391301
|
]
|
|
391323
391302
|
}, undefined, true, undefined, this)
|
|
@@ -393887,7 +393866,7 @@ ${editorHint}`, {
|
|
|
393887
393866
|
children: [
|
|
393888
393867
|
"Learn more: ",
|
|
393889
393868
|
/* @__PURE__ */ jsx_dev_runtime201.jsxDEV(Link, {
|
|
393890
|
-
url: "https://
|
|
393869
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
393891
393870
|
}, undefined, false, undefined, this)
|
|
393892
393871
|
]
|
|
393893
393872
|
}, undefined, true, undefined, this)
|
|
@@ -394756,7 +394735,7 @@ function HelpV2(t0) {
|
|
|
394756
394735
|
let t6;
|
|
394757
394736
|
if ($2[31] !== tabs) {
|
|
394758
394737
|
t6 = /* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Tabs, {
|
|
394759
|
-
title: `Vivus v${"1.0.
|
|
394738
|
+
title: `Vivus v${"1.0.3+aa285c3"}`,
|
|
394760
394739
|
color: "professionalBlue",
|
|
394761
394740
|
defaultTab: "general",
|
|
394762
394741
|
children: tabs
|
|
@@ -394775,7 +394754,7 @@ function HelpV2(t0) {
|
|
|
394775
394754
|
"For more help:",
|
|
394776
394755
|
" ",
|
|
394777
394756
|
/* @__PURE__ */ jsx_dev_runtime205.jsxDEV(Link, {
|
|
394778
|
-
url: "https://
|
|
394757
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
394779
394758
|
}, undefined, false, undefined, this)
|
|
394780
394759
|
]
|
|
394781
394760
|
}, undefined, true, undefined, this)
|
|
@@ -395189,7 +395168,7 @@ function IDEScreen(t0) {
|
|
|
395189
395168
|
t5 = availableIDEs.length === 0 && /* @__PURE__ */ jsx_dev_runtime208.jsxDEV(ThemedText, {
|
|
395190
395169
|
dimColor: true,
|
|
395191
395170
|
children: isSupportedJetBrainsTerminal() ? `No available IDEs detected. Please install the plugin and restart your IDE:
|
|
395192
|
-
https://
|
|
395171
|
+
https://github.com/wittyphantom333/vivus-code` : "No available IDEs detected. Make sure your IDE has the Vivus extension or plugin installed and is running."
|
|
395193
395172
|
}, undefined, false, undefined, this);
|
|
395194
395173
|
$2[17] = availableIDEs.length;
|
|
395195
395174
|
$2[18] = t5;
|
|
@@ -395814,7 +395793,7 @@ Usage notes:
|
|
|
395814
395793
|
\`\`\`
|
|
395815
395794
|
# VIVUS.md
|
|
395816
395795
|
|
|
395817
|
-
This file provides guidance to Vivus (
|
|
395796
|
+
This file provides guidance to Vivus (github.com/wittyphantom333/vivus-code) when working with code in this repository.
|
|
395818
395797
|
\`\`\``, command3, init_default3;
|
|
395819
395798
|
var init_init = __esm(() => {
|
|
395820
395799
|
init_projectOnboardingState();
|
|
@@ -396121,7 +396100,7 @@ function generateKeybindingsTemplate() {
|
|
|
396121
396100
|
const bindings = filterReservedShortcuts(DEFAULT_BINDINGS);
|
|
396122
396101
|
const config4 = {
|
|
396123
396102
|
$schema: "https://www.schemastore.org/vivus-keybindings.json",
|
|
396124
|
-
$docs: "https://
|
|
396103
|
+
$docs: "https://github.com/wittyphantom333/vivus-code",
|
|
396125
396104
|
bindings
|
|
396126
396105
|
};
|
|
396127
396106
|
return jsonStringify(config4, null, 2) + `
|
|
@@ -396449,8 +396428,7 @@ jobs:
|
|
|
396449
396428
|
|
|
396450
396429
|
# Optional: Add vivus_args to customize behavior and configuration
|
|
396451
396430
|
# See https://github.com/anthropics/vivus-action/blob/main/docs/usage.md
|
|
396452
|
-
# or https://
|
|
396453
|
-
# vivus_args: '--allowed-tools Bash(gh pr:*)'
|
|
396431
|
+
# or https://github.com/wittyphantom333/vivus-code for available options
|
|
396454
396432
|
|
|
396455
396433
|
`, PR_BODY = `## \uD83E\uDD16 Installing Vivus GitHub App
|
|
396456
396434
|
|
|
@@ -396458,7 +396436,7 @@ This PR adds a GitHub Actions workflow that enables Vivus integration in our rep
|
|
|
396458
396436
|
|
|
396459
396437
|
### What is Vivus?
|
|
396460
396438
|
|
|
396461
|
-
[Vivus](https://
|
|
396439
|
+
[Vivus](https://github.com/wittyphantom333/vivus-code) is an AI coding agent that can help with:
|
|
396462
396440
|
- Bug fixes and improvements
|
|
396463
396441
|
- Documentation updates
|
|
396464
396442
|
- Implementing new features
|
|
@@ -396534,7 +396512,7 @@ jobs:
|
|
|
396534
396512
|
plugins: 'code-review@vivus-plugins'
|
|
396535
396513
|
prompt: '/code-review:code-review \${{ github.repository }}/pull/\${{ github.event.pull_request.number }}'
|
|
396536
396514
|
# See https://github.com/anthropics/vivus-action/blob/main/docs/usage.md
|
|
396537
|
-
# or https://
|
|
396515
|
+
# or https://github.com/wittyphantom333/vivus-code for available options
|
|
396538
396516
|
|
|
396539
396517
|
`;
|
|
396540
396518
|
|
|
@@ -396756,7 +396734,7 @@ function ApiKeyStep(t0) {
|
|
|
396756
396734
|
onSubmit,
|
|
396757
396735
|
onPaste: onApiKeyChange,
|
|
396758
396736
|
focus: true,
|
|
396759
|
-
placeholder: "sk-ant… (Create a new key at https://
|
|
396737
|
+
placeholder: "sk-ant… (Create a new key at https://github.com/wittyphantom333/vivus-code)",
|
|
396760
396738
|
mask: "*",
|
|
396761
396739
|
columns: terminalSize.columns,
|
|
396762
396740
|
cursorOffset,
|
|
@@ -400286,7 +400264,7 @@ function MCPListPanel(t0) {
|
|
|
400286
400264
|
paddingLeft: 2,
|
|
400287
400265
|
children: /* @__PURE__ */ jsx_dev_runtime223.jsxDEV(ThemedText, {
|
|
400288
400266
|
bold: true,
|
|
400289
|
-
children: "vivus
|
|
400267
|
+
children: "vivus"
|
|
400290
400268
|
}, undefined, false, undefined, this)
|
|
400291
400269
|
}, undefined, false, undefined, this),
|
|
400292
400270
|
vivusAiServers.map((server_5) => renderServerItem(server_5))
|
|
@@ -400385,8 +400363,8 @@ function MCPListPanel(t0) {
|
|
|
400385
400363
|
dimColor: true,
|
|
400386
400364
|
children: [
|
|
400387
400365
|
/* @__PURE__ */ jsx_dev_runtime223.jsxDEV(Link, {
|
|
400388
|
-
url: "https://
|
|
400389
|
-
children: "https://
|
|
400366
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
400367
|
+
children: "https://github.com/wittyphantom333/vivus-code"
|
|
400390
400368
|
}, undefined, false, undefined, this),
|
|
400391
400369
|
" ",
|
|
400392
400370
|
"for help"
|
|
@@ -400736,7 +400714,7 @@ function gateChannelServer(serverName, capabilities, pluginSource) {
|
|
|
400736
400714
|
return {
|
|
400737
400715
|
action: "skip",
|
|
400738
400716
|
kind: "auth",
|
|
400739
|
-
reason: "channels requires vivus
|
|
400717
|
+
reason: "channels requires vivus authentication (run /login)"
|
|
400740
400718
|
};
|
|
400741
400719
|
}
|
|
400742
400720
|
const sub = getSubscriptionType();
|
|
@@ -401169,7 +401147,7 @@ function useManageMCPConnections(dynamicMcpConfig, isStrictMcpConfig = false) {
|
|
|
401169
401147
|
});
|
|
401170
401148
|
const enabledVivusaiConfigs = Object.fromEntries(Object.entries(vivusaiConfigs).filter(([name]) => !isMcpServerDisabled(name)));
|
|
401171
401149
|
getMcpToolsCommandsAndResources(onConnectionAttempt, enabledVivusaiConfigs).catch((error41) => {
|
|
401172
|
-
logMCPError("useManageMcpConnections", `Failed to get vivus
|
|
401150
|
+
logMCPError("useManageMcpConnections", `Failed to get vivus MCP resources: ${errorMessage(error41)}`);
|
|
401173
401151
|
});
|
|
401174
401152
|
}
|
|
401175
401153
|
}
|
|
@@ -402223,7 +402201,7 @@ function MCPRemoteServerMenu({
|
|
|
402223
402201
|
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime227.jsxDEV(jsx_dev_runtime227.Fragment, {
|
|
402224
402202
|
children: [
|
|
402225
402203
|
/* @__PURE__ */ jsx_dev_runtime227.jsxDEV(ThemedText, {
|
|
402226
|
-
children: 'This will open vivus
|
|
402204
|
+
children: 'This will open vivus in the browser. Find the MCP server in the list and click "Disconnect".'
|
|
402227
402205
|
}, undefined, false, undefined, this),
|
|
402228
402206
|
/* @__PURE__ */ jsx_dev_runtime227.jsxDEV(ThemedBox_default, {
|
|
402229
402207
|
marginLeft: 3,
|
|
@@ -403517,7 +403495,7 @@ function MCPSettings(t0) {
|
|
|
403517
403495
|
return;
|
|
403518
403496
|
}
|
|
403519
403497
|
if (servers.length === 0 && agentMcpServers.length === 0) {
|
|
403520
|
-
onComplete("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `vivus mcp --help` or visit https://
|
|
403498
|
+
onComplete("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `vivus mcp --help` or visit https://github.com/wittyphantom333/vivus-code to learn more.");
|
|
403521
403499
|
}
|
|
403522
403500
|
};
|
|
403523
403501
|
t8 = [servers.length, filteredClients.length, agentMcpServers.length, onComplete];
|
|
@@ -403582,7 +403560,7 @@ function MCPSettings(t0) {
|
|
|
403582
403560
|
t9 = $2[25];
|
|
403583
403561
|
}
|
|
403584
403562
|
const serverTools_0 = t9;
|
|
403585
|
-
const defaultTab = viewState.server.transport === "vivus-proxy" ? "vivus
|
|
403563
|
+
const defaultTab = viewState.server.transport === "vivus-proxy" ? "vivus" : "Vivus";
|
|
403586
403564
|
if (viewState.server.transport === "stdio") {
|
|
403587
403565
|
let t10;
|
|
403588
403566
|
if ($2[26] !== viewState.server) {
|
|
@@ -418982,7 +418960,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
418982
418960
|
return [];
|
|
418983
418961
|
}
|
|
418984
418962
|
}
|
|
418985
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.0.
|
|
418963
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.0.3+aa285c3") {
|
|
418986
418964
|
if (process.env.USER_TYPE === "ant") {
|
|
418987
418965
|
const changelog = "";
|
|
418988
418966
|
if (changelog) {
|
|
@@ -419009,7 +418987,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.0.2+c74
|
|
|
419009
418987
|
releaseNotes
|
|
419010
418988
|
};
|
|
419011
418989
|
}
|
|
419012
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.0.
|
|
418990
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.0.3+aa285c3") {
|
|
419013
418991
|
if (process.env.USER_TYPE === "ant") {
|
|
419014
418992
|
const changelog = "";
|
|
419015
418993
|
if (changelog) {
|
|
@@ -420179,7 +420157,7 @@ function getRecentActivitySync() {
|
|
|
420179
420157
|
return cachedActivity;
|
|
420180
420158
|
}
|
|
420181
420159
|
function getLogoDisplayData() {
|
|
420182
|
-
const version2 = process.env.DEMO_VERSION ?? "1.0.
|
|
420160
|
+
const version2 = process.env.DEMO_VERSION ?? "1.0.3+aa285c3";
|
|
420183
420161
|
const serverUrl = getDirectConnectServerUrl();
|
|
420184
420162
|
const displayPath = process.env.DEMO_VERSION ? "/code/vivus" : getDisplayPath(getCwd());
|
|
420185
420163
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -421706,7 +421684,7 @@ function LogoV2() {
|
|
|
421706
421684
|
if ($2[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
421707
421685
|
t2 = () => {
|
|
421708
421686
|
const currentConfig = getGlobalConfig();
|
|
421709
|
-
if (currentConfig.lastReleaseNotesSeen === "1.0.
|
|
421687
|
+
if (currentConfig.lastReleaseNotesSeen === "1.0.3+aa285c3") {
|
|
421710
421688
|
return;
|
|
421711
421689
|
}
|
|
421712
421690
|
saveGlobalConfig(_temp329);
|
|
@@ -422382,12 +422360,12 @@ function LogoV2() {
|
|
|
422382
422360
|
return t41;
|
|
422383
422361
|
}
|
|
422384
422362
|
function _temp329(current) {
|
|
422385
|
-
if (current.lastReleaseNotesSeen === "1.0.
|
|
422363
|
+
if (current.lastReleaseNotesSeen === "1.0.3+aa285c3") {
|
|
422386
422364
|
return current;
|
|
422387
422365
|
}
|
|
422388
422366
|
return {
|
|
422389
422367
|
...current,
|
|
422390
|
-
lastReleaseNotesSeen: "1.0.
|
|
422368
|
+
lastReleaseNotesSeen: "1.0.3+aa285c3"
|
|
422391
422369
|
};
|
|
422392
422370
|
}
|
|
422393
422371
|
function _temp245(s_0) {
|
|
@@ -423129,7 +423107,7 @@ var init_statusNoticeDefinitions = __esm(() => {
|
|
|
423129
423107
|
children: [
|
|
423130
423108
|
"· Trying to use",
|
|
423131
423109
|
" ",
|
|
423132
|
-
authTokenInfo.source === "vivus
|
|
423110
|
+
authTokenInfo.source === "vivus" ? "vivus" : authTokenInfo.source,
|
|
423133
423111
|
"?",
|
|
423134
423112
|
" ",
|
|
423135
423113
|
apiKeySource === "ANTHROPIC_API_KEY" ? 'Unset the ANTHROPIC_API_KEY environment variable, or vivus /logout then say "No" to the API key approval before login.' : apiKeySource === "apiKeyHelper" ? "Unset the apiKeyHelper setting." : "vivus /logout"
|
|
@@ -423142,7 +423120,7 @@ var init_statusNoticeDefinitions = __esm(() => {
|
|
|
423142
423120
|
apiKeySource,
|
|
423143
423121
|
"?",
|
|
423144
423122
|
" ",
|
|
423145
|
-
authTokenInfo.source === "vivus
|
|
423123
|
+
authTokenInfo.source === "vivus" ? "vivus /logout to sign out of vivus." : `Unset the ${authTokenInfo.source} environment variable.`
|
|
423146
423124
|
]
|
|
423147
423125
|
}, undefined, true, undefined, this)
|
|
423148
423126
|
]
|
|
@@ -423223,7 +423201,7 @@ var init_statusNoticeDefinitions = __esm(() => {
|
|
|
423223
423201
|
" ",
|
|
423224
423202
|
/* @__PURE__ */ jsx_dev_runtime261.jsxDEV(ThemedText, {
|
|
423225
423203
|
bold: true,
|
|
423226
|
-
children: "https://
|
|
423204
|
+
children: "https://github.com/wittyphantom333/vivus-code"
|
|
423227
423205
|
}, undefined, false, undefined, this)
|
|
423228
423206
|
]
|
|
423229
423207
|
}, undefined, true, undefined, this)
|
|
@@ -428967,13 +428945,13 @@ async function launchAndDone(args, context2, onDone, billingNote, signal) {
|
|
|
428967
428945
|
var jsx_dev_runtime273, call31 = async (onDone, context2, args) => {
|
|
428968
428946
|
const gate = await checkOverageGate();
|
|
428969
428947
|
if (gate.kind === "not-enabled") {
|
|
428970
|
-
onDone("Free ultrareviews used. Enable Extra Usage at https://
|
|
428948
|
+
onDone("Free ultrareviews used. Enable Extra Usage at https://github.com/wittyphantom333/vivus-code to continue.", {
|
|
428971
428949
|
display: "system"
|
|
428972
428950
|
});
|
|
428973
428951
|
return null;
|
|
428974
428952
|
}
|
|
428975
428953
|
if (gate.kind === "low-balance") {
|
|
428976
|
-
onDone(`Balance too low to launch ultrareview ($${gate.available.toFixed(2)} available, $10 minimum). Top up at https://
|
|
428954
|
+
onDone(`Balance too low to launch ultrareview ($${gate.available.toFixed(2)} available, $10 minimum). Top up at https://github.com/wittyphantom333/vivus-code`, {
|
|
428977
428955
|
display: "system"
|
|
428978
428956
|
});
|
|
428979
428957
|
return null;
|
|
@@ -429000,7 +428978,7 @@ var init_ultrareviewCommand = __esm(() => {
|
|
|
429000
428978
|
});
|
|
429001
428979
|
|
|
429002
428980
|
// src/commands/review.ts
|
|
429003
|
-
var CCR_TERMS_URL = "https://
|
|
428981
|
+
var CCR_TERMS_URL = "https://github.com/wittyphantom333/vivus-code", LOCAL_REVIEW_PROMPT = (args) => `
|
|
429004
428982
|
You are an expert code reviewer. Follow these steps:
|
|
429005
428983
|
|
|
429006
428984
|
1. If no PR number is provided in the args, run \`gh pr list\` to show open PRs
|
|
@@ -429731,7 +429709,7 @@ var init_teammateViewHelpers = __esm(() => {
|
|
|
429731
429709
|
});
|
|
429732
429710
|
|
|
429733
429711
|
// src/bridge/types.ts
|
|
429734
|
-
var DEFAULT_SESSION_TIMEOUT_MS, BRIDGE_LOGIN_INSTRUCTION = "Remote Control is only available with vivus
|
|
429712
|
+
var DEFAULT_SESSION_TIMEOUT_MS, BRIDGE_LOGIN_INSTRUCTION = "Remote Control is only available with vivus subscriptions. Please use `/login` to sign in with your vivus account.", BRIDGE_LOGIN_ERROR, REMOTE_CONTROL_DISCONNECTED_MSG = "Remote Control disconnected.";
|
|
429735
429713
|
var init_types11 = __esm(() => {
|
|
429736
429714
|
DEFAULT_SESSION_TIMEOUT_MS = 24 * 60 * 60 * 1000;
|
|
429737
429715
|
BRIDGE_LOGIN_ERROR = `Error: You must be logged in to use Remote Control.
|
|
@@ -430222,7 +430200,7 @@ ${reasons}`,
|
|
|
430222
430200
|
} : prev);
|
|
430223
430201
|
}
|
|
430224
430202
|
}
|
|
430225
|
-
var ULTRAPLAN_TIMEOUT_MS, CCR_TERMS_URL2 = "https://
|
|
430203
|
+
var ULTRAPLAN_TIMEOUT_MS, CCR_TERMS_URL2 = "https://github.com/wittyphantom333/vivus-code", _rawPrompt, DEFAULT_INSTRUCTIONS, ULTRAPLAN_INSTRUCTIONS, call35 = async (onDone, context2, args) => {
|
|
430226
430204
|
const blurb = args.trim();
|
|
430227
430205
|
if (!blurb) {
|
|
430228
430206
|
const msg = await launchUltraplan2({
|
|
@@ -439101,8 +439079,8 @@ function FastModePicker(t0) {
|
|
|
439101
439079
|
"Learn more:",
|
|
439102
439080
|
" ",
|
|
439103
439081
|
/* @__PURE__ */ jsx_dev_runtime302.jsxDEV(Link, {
|
|
439104
|
-
url: "https://
|
|
439105
|
-
children: "https://
|
|
439082
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
439083
|
+
children: "https://github.com/wittyphantom333/vivus-code"
|
|
439106
439084
|
}, undefined, false, undefined, this)
|
|
439107
439085
|
]
|
|
439108
439086
|
}, undefined, true, undefined, this);
|
|
@@ -439437,7 +439415,7 @@ function Passes({
|
|
|
439437
439415
|
children: [
|
|
439438
439416
|
referrerReward ? `Share a free week of Vivus with friends. If they love it and subscribe, you'll get ${formatCreditAmount(referrerReward)} of extra usage to keep building. ` : "Share a free week of Vivus with friends. ",
|
|
439439
439417
|
/* @__PURE__ */ jsx_dev_runtime303.jsxDEV(Link, {
|
|
439440
|
-
url: referrerReward ? "https://
|
|
439418
|
+
url: referrerReward ? "https://github.com/wittyphantom333/vivus-code" : "https://github.com/wittyphantom333/vivus-code",
|
|
439441
439419
|
children: "Terms apply."
|
|
439442
439420
|
}, undefined, false, undefined, this)
|
|
439443
439421
|
]
|
|
@@ -439593,7 +439571,7 @@ function GracePeriodContentBody() {
|
|
|
439593
439571
|
children: [
|
|
439594
439572
|
"— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",
|
|
439595
439573
|
/* @__PURE__ */ jsx_dev_runtime305.jsxDEV(Link, {
|
|
439596
|
-
url: "https://
|
|
439574
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
439597
439575
|
}, undefined, false, undefined, this),
|
|
439598
439576
|
")."
|
|
439599
439577
|
]
|
|
@@ -439713,7 +439691,7 @@ function PostGracePeriodContentBody() {
|
|
|
439713
439691
|
children: "Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"
|
|
439714
439692
|
}, undefined, false, undefined, this),
|
|
439715
439693
|
/* @__PURE__ */ jsx_dev_runtime305.jsxDEV(Link, {
|
|
439716
|
-
url: "https://
|
|
439694
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
439717
439695
|
}, undefined, false, undefined, this)
|
|
439718
439696
|
]
|
|
439719
439697
|
}, undefined, true, undefined, this);
|
|
@@ -440167,7 +440145,7 @@ function PrivacySettingsDialog(t0) {
|
|
|
440167
440145
|
"Review and manage your privacy settings at",
|
|
440168
440146
|
" ",
|
|
440169
440147
|
/* @__PURE__ */ jsx_dev_runtime305.jsxDEV(Link, {
|
|
440170
|
-
url: "https://
|
|
440148
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
440171
440149
|
}, undefined, false, undefined, this)
|
|
440172
440150
|
]
|
|
440173
440151
|
}, undefined, true, undefined, this);
|
|
@@ -440309,7 +440287,7 @@ async function call46(onDone) {
|
|
|
440309
440287
|
location: "settings"
|
|
440310
440288
|
}, undefined, false, undefined, this);
|
|
440311
440289
|
}
|
|
440312
|
-
var jsx_dev_runtime306, FALLBACK_MESSAGE = "Review and manage your privacy settings at https://
|
|
440290
|
+
var jsx_dev_runtime306, FALLBACK_MESSAGE = "Review and manage your privacy settings at https://github.com/wittyphantom333/vivus-code";
|
|
440313
440291
|
var init_privacy_settings = __esm(() => {
|
|
440314
440292
|
init_Grove();
|
|
440315
440293
|
init_analytics();
|
|
@@ -440775,7 +440753,7 @@ function SelectEventMode(t0) {
|
|
|
440775
440753
|
" This menu is read-only. To add or modify hooks, edit settings.json directly or ask Vivus.",
|
|
440776
440754
|
" ",
|
|
440777
440755
|
/* @__PURE__ */ jsx_dev_runtime307.jsxDEV(Link, {
|
|
440778
|
-
url: "https://
|
|
440756
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
440779
440757
|
children: "Learn more"
|
|
440780
440758
|
}, undefined, false, undefined, this)
|
|
440781
440759
|
]
|
|
@@ -448684,7 +448662,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
448684
448662
|
smapsRollup,
|
|
448685
448663
|
platform: process.platform,
|
|
448686
448664
|
nodeVersion: process.version,
|
|
448687
|
-
ccVersion: "1.0.
|
|
448665
|
+
ccVersion: "1.0.3+aa285c3"
|
|
448688
448666
|
};
|
|
448689
448667
|
}
|
|
448690
448668
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -449270,7 +449248,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
449270
449248
|
var call56 = async () => {
|
|
449271
449249
|
return {
|
|
449272
449250
|
type: "text",
|
|
449273
|
-
value: `${"1.0.
|
|
449251
|
+
value: `${"1.0.3+aa285c3"} (built ${"2026-06-05T22:48:08.076Z"})`
|
|
449274
449252
|
};
|
|
449275
449253
|
}, version2, version_default;
|
|
449276
449254
|
var init_version = __esm(() => {
|
|
@@ -450019,8 +449997,8 @@ function OverridesSelect(t0) {
|
|
|
450019
449997
|
"Learn more:",
|
|
450020
449998
|
" ",
|
|
450021
449999
|
/* @__PURE__ */ jsx_dev_runtime341.jsxDEV(Link, {
|
|
450022
|
-
url: "https://
|
|
450023
|
-
children: "
|
|
450000
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
450001
|
+
children: "github.com/wittyphantom333/vivus-code"
|
|
450024
450002
|
}, undefined, false, undefined, this)
|
|
450025
450003
|
]
|
|
450026
450004
|
}, undefined, true, undefined, this)
|
|
@@ -450390,8 +450368,8 @@ function SandboxModeTab(t0) {
|
|
|
450390
450368
|
"Learn more:",
|
|
450391
450369
|
" ",
|
|
450392
450370
|
/* @__PURE__ */ jsx_dev_runtime342.jsxDEV(Link, {
|
|
450393
|
-
url: "https://
|
|
450394
|
-
children: "
|
|
450371
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
450372
|
+
children: "github.com/wittyphantom333/vivus-code"
|
|
450395
450373
|
}, undefined, false, undefined, this)
|
|
450396
450374
|
]
|
|
450397
450375
|
}, undefined, true, undefined, this)
|
|
@@ -451041,7 +451019,7 @@ function VivusInChromeMenu(t0) {
|
|
|
451041
451019
|
if ($2[23] !== isVivusAISubscriber2) {
|
|
451042
451020
|
t8 = !isVivusAISubscriber2 && /* @__PURE__ */ jsx_dev_runtime344.jsxDEV(ThemedText, {
|
|
451043
451021
|
color: "error",
|
|
451044
|
-
children: "Vivus in Chrome requires a vivus
|
|
451022
|
+
children: "Vivus in Chrome requires a vivus subscription."
|
|
451045
451023
|
}, undefined, false, undefined, this);
|
|
451046
451024
|
$2[23] = isVivusAISubscriber2;
|
|
451047
451025
|
$2[24] = t8;
|
|
@@ -451135,7 +451113,7 @@ function VivusInChromeMenu(t0) {
|
|
|
451135
451113
|
if ($2[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
451136
451114
|
t10 = /* @__PURE__ */ jsx_dev_runtime344.jsxDEV(ThemedText, {
|
|
451137
451115
|
dimColor: true,
|
|
451138
|
-
children: "Learn more: https://
|
|
451116
|
+
children: "Learn more: https://github.com/wittyphantom333/vivus-code"
|
|
451139
451117
|
}, undefined, false, undefined, this);
|
|
451140
451118
|
$2[33] = t10;
|
|
451141
451119
|
} else {
|
|
@@ -451192,7 +451170,7 @@ function _temp271(c4) {
|
|
|
451192
451170
|
function _temp161(s) {
|
|
451193
451171
|
return s.mcp.clients;
|
|
451194
451172
|
}
|
|
451195
|
-
var import_compiler_runtime270, import_react187, jsx_dev_runtime344, CHROME_EXTENSION_URL = "https://
|
|
451173
|
+
var import_compiler_runtime270, import_react187, jsx_dev_runtime344, CHROME_EXTENSION_URL = "https://github.com/wittyphantom333/vivus-code", CHROME_PERMISSIONS_URL = "https://clau.de/chrome/permissions", CHROME_RECONNECT_URL = "https://clau.de/chrome/reconnect", call58 = async function(onDone) {
|
|
451196
451174
|
const isExtensionInstalled = await isChromeExtensionInstalled();
|
|
451197
451175
|
const config4 = getGlobalConfig();
|
|
451198
451176
|
const isSubscriber = isVivusAISubscriber();
|
|
@@ -452309,13 +452287,13 @@ function SetModelAndClose({
|
|
|
452309
452287
|
return;
|
|
452310
452288
|
}
|
|
452311
452289
|
if (model && isOpus1mUnavailable(model)) {
|
|
452312
|
-
onDone(`Opus 4.6 with 1M context is not available for your account. Learn more: https://
|
|
452290
|
+
onDone(`Opus 4.6 with 1M context is not available for your account. Learn more: https://github.com/wittyphantom333/vivus-code`, {
|
|
452313
452291
|
display: "system"
|
|
452314
452292
|
});
|
|
452315
452293
|
return;
|
|
452316
452294
|
}
|
|
452317
452295
|
if (model && isSonnet1mUnavailable(model)) {
|
|
452318
|
-
onDone(`Sonnet 4.6 with 1M context is not available for your account. Learn more: https://
|
|
452296
|
+
onDone(`Sonnet 4.6 with 1M context is not available for your account. Learn more: https://github.com/wittyphantom333/vivus-code`, {
|
|
452319
452297
|
display: "system"
|
|
452320
452298
|
});
|
|
452321
452299
|
return;
|
|
@@ -453258,7 +453236,7 @@ function _temp165(env4) {
|
|
|
453258
453236
|
value: env4.environment_id
|
|
453259
453237
|
};
|
|
453260
453238
|
}
|
|
453261
|
-
var import_compiler_runtime274, import_react191, jsx_dev_runtime353, DIALOG_TITLE = "Select Remote Environment", SETUP_HINT = `Configure environments at: https://
|
|
453239
|
+
var import_compiler_runtime274, import_react191, jsx_dev_runtime353, DIALOG_TITLE = "Select Remote Environment", SETUP_HINT = `Configure environments at: https://github.com/wittyphantom333/vivus-code`;
|
|
453262
453240
|
var init_RemoteEnvironmentDialog = __esm(() => {
|
|
453263
453241
|
init_source();
|
|
453264
453242
|
init_figures();
|
|
@@ -453334,7 +453312,7 @@ async function call67(onDone, context2) {
|
|
|
453334
453312
|
return null;
|
|
453335
453313
|
}
|
|
453336
453314
|
}
|
|
453337
|
-
const url3 = "https://
|
|
453315
|
+
const url3 = "https://github.com/wittyphantom333/vivus-code";
|
|
453338
453316
|
await openBrowser(url3);
|
|
453339
453317
|
return /* @__PURE__ */ jsx_dev_runtime355.jsxDEV(Login, {
|
|
453340
453318
|
startingMessage: "Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",
|
|
@@ -453345,7 +453323,7 @@ async function call67(onDone, context2) {
|
|
|
453345
453323
|
}, undefined, false, undefined, this);
|
|
453346
453324
|
} catch (error41) {
|
|
453347
453325
|
logError2(error41);
|
|
453348
|
-
setTimeout(onDone, 0, "Failed to open browser. Please visit https://
|
|
453326
|
+
setTimeout(onDone, 0, "Failed to open browser. Please visit https://github.com/wittyphantom333/vivus-code to upgrade.");
|
|
453349
453327
|
}
|
|
453350
453328
|
return null;
|
|
453351
453329
|
}
|
|
@@ -458233,7 +458211,7 @@ function generateHtmlReport(data, insights) {
|
|
|
458233
458211
|
</html>`;
|
|
458234
458212
|
}
|
|
458235
458213
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
458236
|
-
const version3 = typeof MACRO !== "undefined" ? "1.0.
|
|
458214
|
+
const version3 = typeof MACRO !== "undefined" ? "1.0.3+aa285c3" : "unknown";
|
|
458237
458215
|
const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
|
|
458238
458216
|
const facets_summary = {
|
|
458239
458217
|
total: facets.size,
|
|
@@ -462342,7 +462320,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
462342
462320
|
init_settings2();
|
|
462343
462321
|
init_slowOperations();
|
|
462344
462322
|
init_uuid();
|
|
462345
|
-
VERSION5 = typeof MACRO !== "undefined" ? "1.0.
|
|
462323
|
+
VERSION5 = typeof MACRO !== "undefined" ? "1.0.3+aa285c3" : "unknown";
|
|
462346
462324
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
462347
462325
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
462348
462326
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -464533,7 +464511,7 @@ function CostThresholdDialog(t0) {
|
|
|
464533
464511
|
children: "Learn more about how to monitor your spending:"
|
|
464534
464512
|
}, undefined, false, undefined, this),
|
|
464535
464513
|
/* @__PURE__ */ jsx_dev_runtime364.jsxDEV(Link, {
|
|
464536
|
-
url: "https://
|
|
464514
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
464537
464515
|
}, undefined, false, undefined, this)
|
|
464538
464516
|
]
|
|
464539
464517
|
}, undefined, true, undefined, this);
|
|
@@ -465213,7 +465191,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
465213
465191
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
465214
465192
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
465215
465193
|
betas: getSdkBetas(),
|
|
465216
|
-
vivus_code_version: "1.0.
|
|
465194
|
+
vivus_code_version: "1.0.3+aa285c3",
|
|
465217
465195
|
output_style: outputStyle2,
|
|
465218
465196
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
465219
465197
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -479841,7 +479819,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
479841
479819
|
function getSemverPart(version3) {
|
|
479842
479820
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
479843
479821
|
}
|
|
479844
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.0.
|
|
479822
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.0.3+aa285c3") {
|
|
479845
479823
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react227.useState(() => getSemverPart(initialVersion));
|
|
479846
479824
|
if (!updatedVersion) {
|
|
479847
479825
|
return null;
|
|
@@ -479881,7 +479859,7 @@ function AutoUpdater({
|
|
|
479881
479859
|
return;
|
|
479882
479860
|
}
|
|
479883
479861
|
if (false) {}
|
|
479884
|
-
const currentVersion = "1.0.
|
|
479862
|
+
const currentVersion = "1.0.3+aa285c3";
|
|
479885
479863
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
479886
479864
|
let latestVersion = await getLatestVersion(channel);
|
|
479887
479865
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -480094,12 +480072,12 @@ function NativeAutoUpdater({
|
|
|
480094
480072
|
logEvent("tengu_native_auto_updater_start", {});
|
|
480095
480073
|
try {
|
|
480096
480074
|
const maxVersion = await getMaxVersion();
|
|
480097
|
-
if (maxVersion && gt("1.0.
|
|
480075
|
+
if (maxVersion && gt("1.0.3+aa285c3", maxVersion)) {
|
|
480098
480076
|
const msg = await getMaxVersionMessage();
|
|
480099
480077
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
480100
480078
|
}
|
|
480101
480079
|
const result = await installLatest(channel);
|
|
480102
|
-
const currentVersion = "1.0.
|
|
480080
|
+
const currentVersion = "1.0.3+aa285c3";
|
|
480103
480081
|
const latencyMs = Date.now() - startTime;
|
|
480104
480082
|
if (result.lockFailed) {
|
|
480105
480083
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -480236,17 +480214,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
480236
480214
|
const maxVersion = await getMaxVersion();
|
|
480237
480215
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
480238
480216
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
480239
|
-
if (gte("1.0.
|
|
480240
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.0.
|
|
480217
|
+
if (gte("1.0.3+aa285c3", maxVersion)) {
|
|
480218
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.0.3+aa285c3"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
480241
480219
|
setUpdateAvailable(false);
|
|
480242
480220
|
return;
|
|
480243
480221
|
}
|
|
480244
480222
|
latest = maxVersion;
|
|
480245
480223
|
}
|
|
480246
|
-
const hasUpdate = latest && !gte("1.0.
|
|
480224
|
+
const hasUpdate = latest && !gte("1.0.3+aa285c3", latest) && !shouldSkipVersion(latest);
|
|
480247
480225
|
setUpdateAvailable(!!hasUpdate);
|
|
480248
480226
|
if (hasUpdate) {
|
|
480249
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.0.
|
|
480227
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.0.3+aa285c3"} -> ${latest}`);
|
|
480250
480228
|
}
|
|
480251
480229
|
};
|
|
480252
480230
|
$2[0] = t1;
|
|
@@ -480280,7 +480258,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
480280
480258
|
wrap: "truncate",
|
|
480281
480259
|
children: [
|
|
480282
480260
|
"currentVersion: ",
|
|
480283
|
-
"1.0.
|
|
480261
|
+
"1.0.3+aa285c3"
|
|
480284
480262
|
]
|
|
480285
480263
|
}, undefined, true, undefined, this);
|
|
480286
480264
|
$2[3] = verbose;
|
|
@@ -488448,7 +488426,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
488448
488426
|
project_dir: getOriginalCwd(),
|
|
488449
488427
|
added_dirs: addedDirs
|
|
488450
488428
|
},
|
|
488451
|
-
version: "1.0.
|
|
488429
|
+
version: "1.0.3+aa285c3",
|
|
488452
488430
|
output_style: {
|
|
488453
488431
|
name: outputStyleName
|
|
488454
488432
|
},
|
|
@@ -499845,7 +499823,7 @@ function RemoteCallout({
|
|
|
499845
499823
|
}, []);
|
|
499846
499824
|
const options2 = [{
|
|
499847
499825
|
label: "Enable Remote Control for this session",
|
|
499848
|
-
description: "Opens a secure connection to vivus.
|
|
499826
|
+
description: "Opens a secure connection to vivus.",
|
|
499849
499827
|
value: "enable"
|
|
499850
499828
|
}, {
|
|
499851
499829
|
label: "Never mind",
|
|
@@ -499864,7 +499842,7 @@ function RemoteCallout({
|
|
|
499864
499842
|
flexDirection: "column",
|
|
499865
499843
|
children: [
|
|
499866
499844
|
/* @__PURE__ */ jsx_dev_runtime445.jsxDEV(ThemedText, {
|
|
499867
|
-
children: "Remote Control lets you access this CLI session from the web (
|
|
499845
|
+
children: "Remote Control lets you access this CLI session from the web (github.com/wittyphantom333/vivus-code) or the Vivus app, so you can pick up where you left off on any device."
|
|
499868
499846
|
}, undefined, false, undefined, this),
|
|
499869
499847
|
/* @__PURE__ */ jsx_dev_runtime445.jsxDEV(ThemedText, {
|
|
499870
499848
|
children: " "
|
|
@@ -499932,7 +499910,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
499932
499910
|
} catch {}
|
|
499933
499911
|
const data = {
|
|
499934
499912
|
trigger,
|
|
499935
|
-
version: "1.0.
|
|
499913
|
+
version: "1.0.3+aa285c3",
|
|
499936
499914
|
platform: process.platform,
|
|
499937
499915
|
transcript,
|
|
499938
499916
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -500763,7 +500741,7 @@ function TranscriptSharePrompt(t0) {
|
|
|
500763
500741
|
marginLeft: 2,
|
|
500764
500742
|
children: /* @__PURE__ */ jsx_dev_runtime446.jsxDEV(ThemedText, {
|
|
500765
500743
|
dimColor: true,
|
|
500766
|
-
children: "Learn more: https://
|
|
500744
|
+
children: "Learn more: https://github.com/wittyphantom333/vivus-code"
|
|
500767
500745
|
}, undefined, false, undefined, this)
|
|
500768
500746
|
}, undefined, false, undefined, this);
|
|
500769
500747
|
$2[7] = t4;
|
|
@@ -501179,7 +501157,7 @@ async function _temp205() {
|
|
|
501179
501157
|
key: "chrome-requires-subscription",
|
|
501180
501158
|
jsx: /* @__PURE__ */ jsx_dev_runtime448.jsxDEV(ThemedText, {
|
|
501181
501159
|
color: "error",
|
|
501182
|
-
children: "Vivus in Chrome requires a vivus
|
|
501160
|
+
children: "Vivus in Chrome requires a vivus subscription"
|
|
501183
501161
|
}, undefined, false, undefined, this),
|
|
501184
501162
|
priority: "immediate",
|
|
501185
501163
|
timeoutMs: 5000
|
|
@@ -501191,7 +501169,7 @@ async function _temp205() {
|
|
|
501191
501169
|
key: "chrome-extension-not-detected",
|
|
501192
501170
|
jsx: /* @__PURE__ */ jsx_dev_runtime448.jsxDEV(ThemedText, {
|
|
501193
501171
|
color: "warning",
|
|
501194
|
-
children: "Chrome extension not detected · https://
|
|
501172
|
+
children: "Chrome extension not detected · https://github.com/wittyphantom333/vivus-code to install"
|
|
501195
501173
|
}, undefined, false, undefined, this),
|
|
501196
501174
|
priority: "immediate",
|
|
501197
501175
|
timeoutMs: 3000
|
|
@@ -502180,7 +502158,7 @@ var init_tipRegistry = __esm(() => {
|
|
|
502180
502158
|
},
|
|
502181
502159
|
{
|
|
502182
502160
|
id: "desktop-app",
|
|
502183
|
-
content: async () => "Run Vivus locally or remotely using the Vivus desktop app:
|
|
502161
|
+
content: async () => "Run Vivus locally or remotely using the Vivus desktop app: github.com/wittyphantom333/vivus-code",
|
|
502184
502162
|
cooldownSessions: 15,
|
|
502185
502163
|
isRelevant: async () => getPlatform() !== "linux"
|
|
502186
502164
|
},
|
|
@@ -502199,7 +502177,7 @@ var init_tipRegistry = __esm(() => {
|
|
|
502199
502177
|
},
|
|
502200
502178
|
{
|
|
502201
502179
|
id: "web-app",
|
|
502202
|
-
content: async () => "Run tasks in the cloud while you keep coding locally ·
|
|
502180
|
+
content: async () => "Run tasks in the cloud while you keep coding locally · github.com/wittyphantom333/vivus-code",
|
|
502203
502181
|
cooldownSessions: 15,
|
|
502204
502182
|
isRelevant: async () => true
|
|
502205
502183
|
},
|
|
@@ -503715,7 +503693,7 @@ function useMcpConnectivityStatus(t0) {
|
|
|
503715
503693
|
color: "error",
|
|
503716
503694
|
children: [
|
|
503717
503695
|
failedVivusAiClients.length,
|
|
503718
|
-
" vivus
|
|
503696
|
+
" vivus",
|
|
503719
503697
|
" ",
|
|
503720
503698
|
failedVivusAiClients.length === 1 ? "connector" : "connectors",
|
|
503721
503699
|
" ",
|
|
@@ -503765,7 +503743,7 @@ function useMcpConnectivityStatus(t0) {
|
|
|
503765
503743
|
color: "warning",
|
|
503766
503744
|
children: [
|
|
503767
503745
|
needsAuthVivusAiServers.length,
|
|
503768
|
-
" vivus
|
|
503746
|
+
" vivus",
|
|
503769
503747
|
" ",
|
|
503770
503748
|
needsAuthVivusAiServers.length === 1 ? "connector needs" : "connectors need",
|
|
503771
503749
|
" ",
|
|
@@ -510941,6 +510919,14 @@ async function checkEndpoints() {
|
|
|
510941
510919
|
if (process.env.ANTHROPIC_BASE_URL || process.env.VIVUS_CODE_SKIP_PREFLIGHT) {
|
|
510942
510920
|
return { success: true };
|
|
510943
510921
|
}
|
|
510922
|
+
try {
|
|
510923
|
+
const probeConfig = getOauthConfig();
|
|
510924
|
+
if (!probeConfig.TOKEN_URL) {
|
|
510925
|
+
return { success: true };
|
|
510926
|
+
}
|
|
510927
|
+
} catch {
|
|
510928
|
+
return { success: true };
|
|
510929
|
+
}
|
|
510944
510930
|
try {
|
|
510945
510931
|
const oauthConfig = getOauthConfig();
|
|
510946
510932
|
const tokenUrl = new URL(oauthConfig.TOKEN_URL);
|
|
@@ -511061,7 +511047,7 @@ function PreflightStep(t0) {
|
|
|
511061
511047
|
children: [
|
|
511062
511048
|
/* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedText, {
|
|
511063
511049
|
color: "error",
|
|
511064
|
-
children: "Unable to connect to
|
|
511050
|
+
children: "Unable to connect to upstream services"
|
|
511065
511051
|
}, undefined, false, undefined, this),
|
|
511066
511052
|
/* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedText, {
|
|
511067
511053
|
color: "error",
|
|
@@ -511070,34 +511056,16 @@ function PreflightStep(t0) {
|
|
|
511070
511056
|
result?.sslHint ? /* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedBox_default, {
|
|
511071
511057
|
flexDirection: "column",
|
|
511072
511058
|
gap: 1,
|
|
511073
|
-
children:
|
|
511074
|
-
|
|
511075
|
-
|
|
511076
|
-
|
|
511077
|
-
/* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedText, {
|
|
511078
|
-
color: "suggestion",
|
|
511079
|
-
children: "See https://code.vivus.ai/docs/en/network-config"
|
|
511080
|
-
}, undefined, false, undefined, this)
|
|
511081
|
-
]
|
|
511082
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedBox_default, {
|
|
511059
|
+
children: /* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedText, {
|
|
511060
|
+
children: result.sslHint
|
|
511061
|
+
}, undefined, false, undefined, this)
|
|
511062
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedBox_default, {
|
|
511083
511063
|
flexDirection: "column",
|
|
511084
511064
|
gap: 1,
|
|
511085
|
-
children:
|
|
511086
|
-
|
|
511087
|
-
|
|
511088
|
-
|
|
511089
|
-
/* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedText, {
|
|
511090
|
-
children: [
|
|
511091
|
-
"Note: Vivus might not be available in your country. Check supported countries at",
|
|
511092
|
-
" ",
|
|
511093
|
-
/* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedText, {
|
|
511094
|
-
color: "suggestion",
|
|
511095
|
-
children: "https://anthropic.com/supported-countries"
|
|
511096
|
-
}, undefined, false, undefined, this)
|
|
511097
|
-
]
|
|
511098
|
-
}, undefined, true, undefined, this)
|
|
511099
|
-
]
|
|
511100
|
-
}, undefined, true, undefined, this)
|
|
511065
|
+
children: /* @__PURE__ */ jsx_dev_runtime473.jsxDEV(ThemedText, {
|
|
511066
|
+
children: "Please check your internet connection and network settings."
|
|
511067
|
+
}, undefined, false, undefined, this)
|
|
511068
|
+
}, undefined, false, undefined, this)
|
|
511101
511069
|
]
|
|
511102
511070
|
}, undefined, true, undefined, this);
|
|
511103
511071
|
$2[6] = isChecking;
|
|
@@ -511348,7 +511316,7 @@ function WelcomeV2() {
|
|
|
511348
511316
|
dimColor: true,
|
|
511349
511317
|
children: [
|
|
511350
511318
|
"v",
|
|
511351
|
-
"1.0.
|
|
511319
|
+
"1.0.3+aa285c3",
|
|
511352
511320
|
" "
|
|
511353
511321
|
]
|
|
511354
511322
|
}, undefined, true, undefined, this)
|
|
@@ -511548,7 +511516,7 @@ function WelcomeV2() {
|
|
|
511548
511516
|
dimColor: true,
|
|
511549
511517
|
children: [
|
|
511550
511518
|
"v",
|
|
511551
|
-
"1.0.
|
|
511519
|
+
"1.0.3+aa285c3",
|
|
511552
511520
|
" "
|
|
511553
511521
|
]
|
|
511554
511522
|
}, undefined, true, undefined, this)
|
|
@@ -511774,7 +511742,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
511774
511742
|
dimColor: true,
|
|
511775
511743
|
children: [
|
|
511776
511744
|
"v",
|
|
511777
|
-
"1.0.
|
|
511745
|
+
"1.0.3+aa285c3",
|
|
511778
511746
|
" "
|
|
511779
511747
|
]
|
|
511780
511748
|
}, undefined, true, undefined, this);
|
|
@@ -512028,7 +511996,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
512028
511996
|
dimColor: true,
|
|
512029
511997
|
children: [
|
|
512030
511998
|
"v",
|
|
512031
|
-
"1.0.
|
|
511999
|
+
"1.0.3+aa285c3",
|
|
512032
512000
|
" "
|
|
512033
512001
|
]
|
|
512034
512002
|
}, undefined, true, undefined, this);
|
|
@@ -512513,7 +512481,7 @@ function Onboarding({
|
|
|
512513
512481
|
"For more details see:",
|
|
512514
512482
|
/* @__PURE__ */ jsx_dev_runtime478.jsxDEV(Newline, {}, undefined, false, undefined, this),
|
|
512515
512483
|
/* @__PURE__ */ jsx_dev_runtime478.jsxDEV(Link, {
|
|
512516
|
-
url: "https://
|
|
512484
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
512517
512485
|
}, undefined, false, undefined, this)
|
|
512518
512486
|
]
|
|
512519
512487
|
}, undefined, true, undefined, this)
|
|
@@ -513096,7 +513064,7 @@ function TrustDialog(t0) {
|
|
|
513096
513064
|
t19 = /* @__PURE__ */ jsx_dev_runtime479.jsxDEV(ThemedText, {
|
|
513097
513065
|
dimColor: true,
|
|
513098
513066
|
children: /* @__PURE__ */ jsx_dev_runtime479.jsxDEV(Link, {
|
|
513099
|
-
url: "https://
|
|
513067
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
513100
513068
|
children: "Security guide"
|
|
513101
513069
|
}, undefined, false, undefined, this)
|
|
513102
513070
|
}, undefined, false, undefined, this);
|
|
@@ -513281,7 +513249,7 @@ function BypassPermissionsModeDialog(t0) {
|
|
|
513281
513249
|
children: "By proceeding, you accept all responsibility for actions taken while running in Bypass Permissions mode."
|
|
513282
513250
|
}, undefined, false, undefined, this),
|
|
513283
513251
|
/* @__PURE__ */ jsx_dev_runtime480.jsxDEV(Link, {
|
|
513284
|
-
url: "https://
|
|
513252
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
513285
513253
|
}, undefined, false, undefined, this)
|
|
513286
513254
|
]
|
|
513287
513255
|
}, undefined, true, undefined, this);
|
|
@@ -513467,7 +513435,7 @@ function VivusInChromeOnboarding(t0) {
|
|
|
513467
513435
|
" ",
|
|
513468
513436
|
"or visit ",
|
|
513469
513437
|
/* @__PURE__ */ jsx_dev_runtime481.jsxDEV(Link, {
|
|
513470
|
-
url: "https://
|
|
513438
|
+
url: "https://github.com/wittyphantom333/vivus-code"
|
|
513471
513439
|
}, undefined, false, undefined, this)
|
|
513472
513440
|
]
|
|
513473
513441
|
}, undefined, true, undefined, this);
|
|
@@ -513514,7 +513482,7 @@ function _temp306(current) {
|
|
|
513514
513482
|
hasCompletedVivusInChromeOnboarding: true
|
|
513515
513483
|
};
|
|
513516
513484
|
}
|
|
513517
|
-
var import_compiler_runtime380, import_react326, jsx_dev_runtime481, CHROME_EXTENSION_URL2 = "https://
|
|
513485
|
+
var import_compiler_runtime380, import_react326, jsx_dev_runtime481, CHROME_EXTENSION_URL2 = "https://github.com/wittyphantom333/vivus-code", CHROME_PERMISSIONS_URL2 = "https://clau.de/chrome/permissions";
|
|
513518
513486
|
var init_VivusInChromeOnboarding = __esm(() => {
|
|
513519
513487
|
init_analytics();
|
|
513520
513488
|
init_ink2();
|
|
@@ -515092,7 +515060,7 @@ function appendToLog(path25, message) {
|
|
|
515092
515060
|
cwd: getFsImplementation().cwd(),
|
|
515093
515061
|
userType: process.env.USER_TYPE,
|
|
515094
515062
|
sessionId: getSessionId(),
|
|
515095
|
-
version: "1.0.
|
|
515063
|
+
version: "1.0.3+aa285c3"
|
|
515096
515064
|
};
|
|
515097
515065
|
getLogWriter(path25).write(messageWithTimestamp);
|
|
515098
515066
|
}
|
|
@@ -519077,8 +519045,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
519077
519045
|
}
|
|
519078
519046
|
async function checkEnvLessBridgeMinVersion() {
|
|
519079
519047
|
const cfg = await getEnvLessBridgeConfig();
|
|
519080
|
-
if (cfg.min_version && lt("1.0.
|
|
519081
|
-
return `Your version of Vivus (${"1.0.
|
|
519048
|
+
if (cfg.min_version && lt("1.0.3+aa285c3", cfg.min_version)) {
|
|
519049
|
+
return `Your version of Vivus (${"1.0.3+aa285c3"}) is too old for Remote Control.
|
|
519082
519050
|
Version ${cfg.min_version} or higher is required. Run \`vivus update\` to update.`;
|
|
519083
519051
|
}
|
|
519084
519052
|
return null;
|
|
@@ -519552,7 +519520,7 @@ async function initBridgeCore(params) {
|
|
|
519552
519520
|
const rawApi = createBridgeApiClient({
|
|
519553
519521
|
baseUrl,
|
|
519554
519522
|
getAccessToken,
|
|
519555
|
-
runnerVersion: "1.0.
|
|
519523
|
+
runnerVersion: "1.0.3+aa285c3",
|
|
519556
519524
|
onDebug: logForDebugging,
|
|
519557
519525
|
onAuth401,
|
|
519558
519526
|
getTrustedDeviceToken
|
|
@@ -525216,7 +525184,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
525216
525184
|
setCwd(cwd3);
|
|
525217
525185
|
const server = new Server({
|
|
525218
525186
|
name: "vivus/tengu",
|
|
525219
|
-
version: "1.0.
|
|
525187
|
+
version: "1.0.3+aa285c3"
|
|
525220
525188
|
}, {
|
|
525221
525189
|
capabilities: {
|
|
525222
525190
|
tools: {}
|
|
@@ -526827,7 +526795,7 @@ __export(exports_update, {
|
|
|
526827
526795
|
});
|
|
526828
526796
|
async function update() {
|
|
526829
526797
|
logEvent("tengu_update_check", {});
|
|
526830
|
-
writeToStdout(`Current version: ${"1.0.
|
|
526798
|
+
writeToStdout(`Current version: ${"1.0.3+aa285c3"}
|
|
526831
526799
|
`);
|
|
526832
526800
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
526833
526801
|
writeToStdout(`Checking for updates to ${channel} version...
|
|
@@ -526902,8 +526870,8 @@ async function update() {
|
|
|
526902
526870
|
writeToStdout(`Vivus is managed by Homebrew.
|
|
526903
526871
|
`);
|
|
526904
526872
|
const latest = await getLatestVersion(channel);
|
|
526905
|
-
if (latest && !gte("1.0.
|
|
526906
|
-
writeToStdout(`Update available: ${"1.0.
|
|
526873
|
+
if (latest && !gte("1.0.3+aa285c3", latest)) {
|
|
526874
|
+
writeToStdout(`Update available: ${"1.0.3+aa285c3"} → ${latest}
|
|
526907
526875
|
`);
|
|
526908
526876
|
writeToStdout(`
|
|
526909
526877
|
`);
|
|
@@ -526919,8 +526887,8 @@ async function update() {
|
|
|
526919
526887
|
writeToStdout(`Vivus is managed by winget.
|
|
526920
526888
|
`);
|
|
526921
526889
|
const latest = await getLatestVersion(channel);
|
|
526922
|
-
if (latest && !gte("1.0.
|
|
526923
|
-
writeToStdout(`Update available: ${"1.0.
|
|
526890
|
+
if (latest && !gte("1.0.3+aa285c3", latest)) {
|
|
526891
|
+
writeToStdout(`Update available: ${"1.0.3+aa285c3"} → ${latest}
|
|
526924
526892
|
`);
|
|
526925
526893
|
writeToStdout(`
|
|
526926
526894
|
`);
|
|
@@ -526936,8 +526904,8 @@ async function update() {
|
|
|
526936
526904
|
writeToStdout(`Vivus is managed by apk.
|
|
526937
526905
|
`);
|
|
526938
526906
|
const latest = await getLatestVersion(channel);
|
|
526939
|
-
if (latest && !gte("1.0.
|
|
526940
|
-
writeToStdout(`Update available: ${"1.0.
|
|
526907
|
+
if (latest && !gte("1.0.3+aa285c3", latest)) {
|
|
526908
|
+
writeToStdout(`Update available: ${"1.0.3+aa285c3"} → ${latest}
|
|
526941
526909
|
`);
|
|
526942
526910
|
writeToStdout(`
|
|
526943
526911
|
`);
|
|
@@ -527002,11 +526970,11 @@ async function update() {
|
|
|
527002
526970
|
`);
|
|
527003
526971
|
await gracefulShutdown(1);
|
|
527004
526972
|
}
|
|
527005
|
-
if (result.latestVersion === "1.0.
|
|
527006
|
-
writeToStdout(source_default.green(`Vivus is up to date (${"1.0.
|
|
526973
|
+
if (result.latestVersion === "1.0.3+aa285c3") {
|
|
526974
|
+
writeToStdout(source_default.green(`Vivus is up to date (${"1.0.3+aa285c3"})`) + `
|
|
527007
526975
|
`);
|
|
527008
526976
|
} else {
|
|
527009
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.0.
|
|
526977
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.0.3+aa285c3"} to version ${result.latestVersion}`) + `
|
|
527010
526978
|
`);
|
|
527011
526979
|
await regenerateCompletionCache();
|
|
527012
526980
|
}
|
|
@@ -527063,12 +527031,12 @@ async function update() {
|
|
|
527063
527031
|
`);
|
|
527064
527032
|
await gracefulShutdown(1);
|
|
527065
527033
|
}
|
|
527066
|
-
if (latestVersion === "1.0.
|
|
527067
|
-
writeToStdout(source_default.green(`Vivus is up to date (${"1.0.
|
|
527034
|
+
if (latestVersion === "1.0.3+aa285c3") {
|
|
527035
|
+
writeToStdout(source_default.green(`Vivus is up to date (${"1.0.3+aa285c3"})`) + `
|
|
527068
527036
|
`);
|
|
527069
527037
|
await gracefulShutdown(0);
|
|
527070
527038
|
}
|
|
527071
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.0.
|
|
527039
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.0.3+aa285c3"})
|
|
527072
527040
|
`);
|
|
527073
527041
|
writeToStdout(`Installing update...
|
|
527074
527042
|
`);
|
|
@@ -527113,7 +527081,7 @@ async function update() {
|
|
|
527113
527081
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
527114
527082
|
switch (status2) {
|
|
527115
527083
|
case "success":
|
|
527116
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.0.
|
|
527084
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.0.3+aa285c3"} to version ${latestVersion}`) + `
|
|
527117
527085
|
`);
|
|
527118
527086
|
await regenerateCompletionCache();
|
|
527119
527087
|
break;
|
|
@@ -527681,7 +527649,7 @@ function MCPServerDialogCopy() {
|
|
|
527681
527649
|
"MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the",
|
|
527682
527650
|
" ",
|
|
527683
527651
|
/* @__PURE__ */ jsx_dev_runtime469.jsxDEV(Link, {
|
|
527684
|
-
url: "https://
|
|
527652
|
+
url: "https://github.com/wittyphantom333/vivus-code",
|
|
527685
527653
|
children: "MCP documentation"
|
|
527686
527654
|
}, undefined, false, undefined, this),
|
|
527687
527655
|
"."
|
|
@@ -528083,7 +528051,7 @@ function completeOnboarding() {
|
|
|
528083
528051
|
saveGlobalConfig((current) => ({
|
|
528084
528052
|
...current,
|
|
528085
528053
|
hasCompletedOnboarding: true,
|
|
528086
|
-
lastOnboardingVersion: "1.0.
|
|
528054
|
+
lastOnboardingVersion: "1.0.3+aa285c3"
|
|
528087
528055
|
}));
|
|
528088
528056
|
}
|
|
528089
528057
|
function showDialog(root2, renderer) {
|
|
@@ -528809,7 +528777,7 @@ function generateReservedShortcuts() {
|
|
|
528809
528777
|
}
|
|
528810
528778
|
var FILE_FORMAT_EXAMPLE = {
|
|
528811
528779
|
$schema: "https://www.schemastore.org/vivus-keybindings.json",
|
|
528812
|
-
$docs: "https://
|
|
528780
|
+
$docs: "https://github.com/wittyphantom333/vivus-code",
|
|
528813
528781
|
bindings: [
|
|
528814
528782
|
{
|
|
528815
528783
|
context: "Chat",
|
|
@@ -531780,7 +531748,7 @@ ${hint}` : hint;
|
|
|
531780
531748
|
blocked
|
|
531781
531749
|
} = filterMcpServersByPolicy(configs);
|
|
531782
531750
|
if (blocked.length > 0) {
|
|
531783
|
-
process.stderr.write(`Warning: vivus
|
|
531751
|
+
process.stderr.write(`Warning: vivus MCP ${plural(blocked.length, "server")} blocked by enterprise policy: ${blocked.join(", ")}
|
|
531784
531752
|
`);
|
|
531785
531753
|
}
|
|
531786
531754
|
return allowed;
|
|
@@ -532172,7 +532140,7 @@ ${customInstructions}` : customInstructions;
|
|
|
532172
532140
|
}
|
|
532173
532141
|
}
|
|
532174
532142
|
logForDiagnosticsNoPII("info", "started", {
|
|
532175
|
-
version: "1.0.
|
|
532143
|
+
version: "1.0.3+aa285c3",
|
|
532176
532144
|
is_native_binary: isInBundledMode()
|
|
532177
532145
|
});
|
|
532178
532146
|
registerCleanup(async () => {
|
|
@@ -532337,7 +532305,7 @@ ${customInstructions}` : customInstructions;
|
|
|
532337
532305
|
suppressed.add(name);
|
|
532338
532306
|
}
|
|
532339
532307
|
if (suppressed.size > 0) {
|
|
532340
|
-
logForDebugging(`[MCP] Lazy dedup: suppressing ${suppressed.size} plugin server(s) that duplicate vivus
|
|
532308
|
+
logForDebugging(`[MCP] Lazy dedup: suppressing ${suppressed.size} plugin server(s) that duplicate vivus connectors: ${[...suppressed].join(", ")}`);
|
|
532341
532309
|
for (const c4 of headlessStore.getState().mcp.clients) {
|
|
532342
532310
|
if (!suppressed.has(c4.name) || c4.type !== "connected")
|
|
532343
532311
|
continue;
|
|
@@ -532383,7 +532351,7 @@ ${customInstructions}` : customInstructions;
|
|
|
532383
532351
|
if (vivusaiTimer)
|
|
532384
532352
|
clearTimeout(vivusaiTimer);
|
|
532385
532353
|
if (vivusaiTimedOut) {
|
|
532386
|
-
logForDebugging(`[MCP] vivus
|
|
532354
|
+
logForDebugging(`[MCP] vivus connectors not ready after ${VIVUS_AI_MCP_TIMEOUT_MS}ms — proceeding; background connection continues`);
|
|
532387
532355
|
}
|
|
532388
532356
|
profileCheckpoint("after_connectMcp_vivusai");
|
|
532389
532357
|
if (!isBareMode()) {
|
|
@@ -532956,7 +532924,7 @@ Usage: vivus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
532956
532924
|
pendingHookMessages
|
|
532957
532925
|
}, renderAndRun);
|
|
532958
532926
|
}
|
|
532959
|
-
}).version("1.0.
|
|
532927
|
+
}).version("1.0.3+aa285c3 (Vivus)", "-v, --version", "Output the version number");
|
|
532960
532928
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
532961
532929
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
532962
532930
|
if (canUserConfigureAdvisor()) {
|