@vtxmacro/cli 2026.9.45 → 2026.9.46
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/bin/vtx-mcp.js +3 -0
- package/bin/vtx-service-bootstrap.js +1 -1
- package/bin/vtx.js +32 -15
- package/package.json +1 -1
package/bin/vtx-mcp.js
CHANGED
|
@@ -16,6 +16,7 @@ var AgentClientError = class extends Error {
|
|
|
16
16
|
|
|
17
17
|
// lib/agent-core/client.ts
|
|
18
18
|
var SECRET_RESPONSE_FIELDS = /* @__PURE__ */ new Set([
|
|
19
|
+
"provider_key_slots",
|
|
19
20
|
"hyperliquid_signing_key",
|
|
20
21
|
"local_ai_api_key",
|
|
21
22
|
"openai_compatible_api_key",
|
|
@@ -30,6 +31,7 @@ var SECRET_RESPONSE_FIELDS = /* @__PURE__ */ new Set([
|
|
|
30
31
|
"mistral_api_key",
|
|
31
32
|
"together_api_key",
|
|
32
33
|
"fireworks_api_key",
|
|
34
|
+
"byteplus_api_key",
|
|
33
35
|
"cerebras_api_key",
|
|
34
36
|
"moonshot_api_key",
|
|
35
37
|
"alibaba_cloud_model_studio_api_key",
|
|
@@ -705,6 +707,7 @@ var WRITABLE_SECRET_FIELDS = /* @__PURE__ */ new Set([
|
|
|
705
707
|
"mistral_api_key",
|
|
706
708
|
"together_api_key",
|
|
707
709
|
"fireworks_api_key",
|
|
710
|
+
"byteplus_api_key",
|
|
708
711
|
"cerebras_api_key",
|
|
709
712
|
"moonshot_api_key",
|
|
710
713
|
"alibaba_cloud_model_studio_api_key",
|
|
@@ -16,7 +16,7 @@ import { fileURLToPath } from "node:url";
|
|
|
16
16
|
// agent-cli-release.json
|
|
17
17
|
var agent_cli_release_default = {
|
|
18
18
|
package_name: "@vtxmacro/cli",
|
|
19
|
-
package_version: "2026.9.
|
|
19
|
+
package_version: "2026.9.46",
|
|
20
20
|
codex_package_name: "@openai/codex",
|
|
21
21
|
codex_version: "0.153.3",
|
|
22
22
|
copilot_sdk_package_name: "@github/copilot-sdk",
|
package/bin/vtx.js
CHANGED
|
@@ -77,7 +77,7 @@ var init_agent_cli_release = __esm({
|
|
|
77
77
|
"agent-cli-release.json"() {
|
|
78
78
|
agent_cli_release_default = {
|
|
79
79
|
package_name: "@vtxmacro/cli",
|
|
80
|
-
package_version: "2026.9.
|
|
80
|
+
package_version: "2026.9.46",
|
|
81
81
|
codex_package_name: "@openai/codex",
|
|
82
82
|
codex_version: "0.153.3",
|
|
83
83
|
copilot_sdk_package_name: "@github/copilot-sdk",
|
|
@@ -47207,6 +47207,7 @@ var init_client = __esm({
|
|
|
47207
47207
|
init_define_VTX_PI_MODEL_POLICY();
|
|
47208
47208
|
init_types();
|
|
47209
47209
|
SECRET_RESPONSE_FIELDS = /* @__PURE__ */ new Set([
|
|
47210
|
+
"provider_key_slots",
|
|
47210
47211
|
"hyperliquid_signing_key",
|
|
47211
47212
|
"local_ai_api_key",
|
|
47212
47213
|
"openai_compatible_api_key",
|
|
@@ -47221,6 +47222,7 @@ var init_client = __esm({
|
|
|
47221
47222
|
"mistral_api_key",
|
|
47222
47223
|
"together_api_key",
|
|
47223
47224
|
"fireworks_api_key",
|
|
47225
|
+
"byteplus_api_key",
|
|
47224
47226
|
"cerebras_api_key",
|
|
47225
47227
|
"moonshot_api_key",
|
|
47226
47228
|
"alibaba_cloud_model_studio_api_key",
|
|
@@ -50832,19 +50834,20 @@ var init_byokProviderRegistry = __esm({
|
|
|
50832
50834
|
{ key: "alibaba_cloud_model_studio", runtimeProvider: "alibaba_cloud_model_studio", displayName: "Alibaba Cloud Model Studio", apiKeyField: "alibaba_cloud_model_studio_api_key", envKey: "ALIBABA_CLOUD_MODEL_STUDIO_API_KEY", baseUrl: "https://dashscope-us.aliyuncs.com/compatible-mode/v1", modelsUrl: "https://dashscope-us.aliyuncs.com/compatible-mode/v1/models", requestContractStrategy: "extra_body_enable_thinking", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", displayOrder: 10, aliases: ["alibaba", "alibaba cloud", "dashscope", "model studio"] },
|
|
50833
50835
|
{ key: "amazon_bedrock", runtimeProvider: "amazon_bedrock", displayName: "Amazon Bedrock", apiKeyField: "amazon_bedrock_api_key", envKey: "AMAZON_API_KEY", baseUrl: "https://bedrock-mantle.us-east-1.api.aws/v1", modelsUrl: "https://bedrock-mantle.us-east-1.api.aws/v1/models", requestContractStrategy: "top_level_reasoning_effort", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 20, aliases: ["amazon", "aws", "aws bedrock", "bedrock"] },
|
|
50834
50836
|
{ key: "anthropic", runtimeProvider: "anthropic", displayName: "Anthropic", apiKeyField: "anthropic_api_key", envKey: "ANTHROPIC_API_KEY", baseUrl: null, modelsUrl: null, requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", displayOrder: 30, aliases: ["claude"] },
|
|
50835
|
-
{ key: "
|
|
50836
|
-
{ key: "
|
|
50837
|
-
{ key: "
|
|
50838
|
-
{ key: "
|
|
50839
|
-
{ key: "
|
|
50840
|
-
{ key: "
|
|
50841
|
-
{ key: "
|
|
50842
|
-
{ key: "
|
|
50843
|
-
{ key: "
|
|
50844
|
-
{ key: "
|
|
50845
|
-
{ key: "
|
|
50846
|
-
{ key: "
|
|
50847
|
-
{ key: "
|
|
50837
|
+
{ key: "byteplus", runtimeProvider: "byteplus", displayName: "BytePlus Coding Plan", apiKeyField: "byteplus_api_key", envKey: "BYTEPLUS_API_KEY", baseUrl: "https://ark.ap-southeast.bytepluses.com/api/coding/v3", modelsUrl: "https://ark.ap-southeast.bytepluses.com/api/coding/v3/models", requestContractStrategy: "extra_body_thinking_type", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 40, aliases: ["bytedance", "byteplus coding plan", "ark"] },
|
|
50838
|
+
{ key: "cerebras", runtimeProvider: "cerebras", displayName: "Cerebras", apiKeyField: "cerebras_api_key", envKey: "CEREBRAS_API_KEY", baseUrl: "https://api.cerebras.ai/v1", modelsUrl: "https://api.cerebras.ai/v1/models", requestContractStrategy: "top_level_reasoning_effort_and_extra_body_disable_reasoning", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 50, aliases: [] },
|
|
50839
|
+
{ key: "deepseek", runtimeProvider: "deepseek", displayName: "DeepSeek", apiKeyField: "deepseek_api_key", envKey: "DEEPSEEK_API_KEY", baseUrl: "https://api.deepseek.com", modelsUrl: "https://api.deepseek.com/models", requestContractStrategy: "deepseek_extra_body", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", displayOrder: 60, aliases: ["deep seek", "deepseek ai", "deepseek.ai"] },
|
|
50840
|
+
{ key: "fireworks", runtimeProvider: "fireworks", displayName: "Fireworks AI", apiKeyField: "fireworks_api_key", envKey: "FIREWORKS_API_KEY", baseUrl: "https://api.fireworks.ai/inference/v1", modelsUrl: "https://api.fireworks.ai/inference/v1/models", requestContractStrategy: "top_level_reasoning_effort_and_extra_body_thinking_type", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 70, aliases: ["fireworks ai"] },
|
|
50841
|
+
{ key: "google", runtimeProvider: "gemini", displayName: "Google Gemini", apiKeyField: "gemini_api_key", envKey: "GOOGLE_AI_PLATFORM_API_KEY", baseUrl: null, modelsUrl: null, requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", displayOrder: 80, aliases: ["gemini"] },
|
|
50842
|
+
{ key: "groq", runtimeProvider: "groq", displayName: "Groq", apiKeyField: "groq_api_key", envKey: "GROQ_API_KEY", baseUrl: "https://api.groq.com/openai/v1", modelsUrl: "https://api.groq.com/openai/v1/models", requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 90, aliases: ["groqcloud", "groq cloud"] },
|
|
50843
|
+
{ key: "lightning", runtimeProvider: "lightning", displayName: "Lightning AI", apiKeyField: "lightning_api_key", envKey: "LIGHTNING_API_KEY", baseUrl: "https://lightning.ai/api/v1", modelsUrl: "https://lightning.ai/api/v1/models", requestContractStrategy: "none", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 100, aliases: ["litai", "lightning ai"] },
|
|
50844
|
+
{ key: "mistral", runtimeProvider: "mistral", displayName: "Mistral", apiKeyField: "mistral_api_key", envKey: "MISTRAL_API_KEY", baseUrl: "https://api.mistral.ai/v1", modelsUrl: "https://api.mistral.ai/v1/models", requestContractStrategy: "top_level_reasoning_effort", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", displayOrder: 110, aliases: ["mistral ai"] },
|
|
50845
|
+
{ key: "moonshot", runtimeProvider: "moonshot", displayName: "Moonshot/Kimi", apiKeyField: "moonshot_api_key", envKey: "MOONSHOT_API_KEY", baseUrl: "https://api.moonshot.ai/v1", modelsUrl: "https://api.moonshot.ai/v1/models", requestContractStrategy: "extra_body_thinking_type", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", displayOrder: 120, aliases: ["kimi", "moonshot ai"] },
|
|
50846
|
+
{ key: "openai", runtimeProvider: "openai", displayName: "OpenAI", apiKeyField: "openai_api_key", envKey: "OPENAI_API_KEY", baseUrl: "https://api.openai.com/v1", modelsUrl: "https://api.openai.com/v1/models", requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", displayOrder: 130, aliases: [] },
|
|
50847
|
+
{ key: "openrouter", runtimeProvider: "openrouter", displayName: "OpenRouter", apiKeyField: "openrouter_api_key", envKey: "OPENROUTER_API_KEY", baseUrl: "https://openrouter.ai/api/v1", modelsUrl: "https://openrouter.ai/api/v1/models", requestContractStrategy: "openrouter", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 140, aliases: ["open-router", "open router", "openrouter ai"] },
|
|
50848
|
+
{ key: "together", runtimeProvider: "together", displayName: "Together AI", apiKeyField: "together_api_key", envKey: "TOGETHER_API_KEY", baseUrl: "https://api.together.xyz/v1", modelsUrl: "https://api.together.xyz/v1/models", requestContractStrategy: "top_level_reasoning_effort_and_extra_body_reasoning_enabled", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 150, aliases: ["together ai"] },
|
|
50849
|
+
{ key: "venice", runtimeProvider: "venice", displayName: "Venice AI", apiKeyField: "venice_api_key", envKey: "VENICE_API_KEY", baseUrl: "https://api.venice.ai/api/v1", modelsUrl: "https://api.venice.ai/api/v1/models", requestContractStrategy: "venice", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "hosted", displayOrder: 160, aliases: ["venice.ai"] },
|
|
50850
|
+
{ key: "xai", runtimeProvider: "grok", displayName: "xAI", apiKeyField: "grok_api_key", envKey: "XAI_API_KEY", baseUrl: "https://api.x.ai/v1", modelsUrl: "https://api.x.ai/v1/models", requestContractStrategy: "native", clientRuntimeSupported: true, uiGroup: BYOK_UI_GROUP, providerKind: "direct", displayOrder: 170, aliases: ["x", "x.ai", "grok"] }
|
|
50848
50851
|
];
|
|
50849
50852
|
BYOK_PROVIDER_KEY_BY_ALIAS = /* @__PURE__ */ new Map();
|
|
50850
50853
|
for (const provider of BYOK_PROVIDERS) {
|
|
@@ -50884,6 +50887,7 @@ var init_client_runtime_provider_visibility_contract = __esm({
|
|
|
50884
50887
|
"alibaba_cloud_model_studio",
|
|
50885
50888
|
"amazon_bedrock",
|
|
50886
50889
|
"anthropic",
|
|
50890
|
+
"byteplus",
|
|
50887
50891
|
"cerebras",
|
|
50888
50892
|
"deepseek",
|
|
50889
50893
|
"fireworks",
|
|
@@ -92943,8 +92947,19 @@ function resolveProviderInvocation(input) {
|
|
|
92943
92947
|
}
|
|
92944
92948
|
const endpoints = objectOrNull3(input.llmConfig.client_runtime_provider_endpoints) ?? {};
|
|
92945
92949
|
const secretField = OPENAI_COMPATIBLE_SECRET_FIELD[sourceKey] ?? `${sourceKey}_api_key`;
|
|
92950
|
+
const endpointSlots = objectOrNull3(input.secrets.provider_base_url_slots);
|
|
92951
|
+
const sourceEndpointSlots = endpointSlots?.[sourceKey];
|
|
92952
|
+
const slotBaseUrl = Array.isArray(sourceEndpointSlots) ? optionalText(sourceEndpointSlots[0]) : null;
|
|
92953
|
+
const baseUrl = requireText(slotBaseUrl ?? endpoints[`${sourceKey}_base_url`], `${sourceKey} base URL`);
|
|
92954
|
+
const model = requireText(input.prompt.model ?? input.metadata.model, "model");
|
|
92955
|
+
const subscriptionPlan = input.llmConfig.native_subscription_plans?.[sourceKey]?.find(
|
|
92956
|
+
(plan) => plan.id !== "pay_as_you_go" && plan.base_url.replace(/\/+$/, "") === baseUrl.replace(/\/+$/, "")
|
|
92957
|
+
);
|
|
92958
|
+
if (subscriptionPlan?.model_ids && !subscriptionPlan.model_ids.includes(model)) {
|
|
92959
|
+
throw new Error(`Model ${model} is not available on ${subscriptionPlan.display_name}.`);
|
|
92960
|
+
}
|
|
92946
92961
|
return {
|
|
92947
|
-
baseUrl
|
|
92962
|
+
baseUrl,
|
|
92948
92963
|
apiKey: requireText(input.secrets[secretField], `${sourceKey} API key`),
|
|
92949
92964
|
provider: sourceKey,
|
|
92950
92965
|
transport: "headless_openai_compatible",
|
|
@@ -93313,6 +93328,7 @@ var init_headless_local_worker = __esm({
|
|
|
93313
93328
|
mistral: "mistral",
|
|
93314
93329
|
together: "together",
|
|
93315
93330
|
fireworks: "fireworks",
|
|
93331
|
+
byteplus: "byteplus",
|
|
93316
93332
|
cerebras: "cerebras",
|
|
93317
93333
|
moonshot: "moonshot",
|
|
93318
93334
|
alibaba_cloud_model_studio: "alibaba_cloud_model_studio",
|
|
@@ -93888,6 +93904,7 @@ Global options:
|
|
|
93888
93904
|
"mistral_api_key",
|
|
93889
93905
|
"together_api_key",
|
|
93890
93906
|
"fireworks_api_key",
|
|
93907
|
+
"byteplus_api_key",
|
|
93891
93908
|
"cerebras_api_key",
|
|
93892
93909
|
"moonshot_api_key",
|
|
93893
93910
|
"alibaba_cloud_model_studio_api_key",
|