anygate 0.5.11 → 0.6.1
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/{chunk-6AFYEDSU.js → chunk-4N4RDHGZ.js} +21 -6
- package/dist/{chunk-6AFYEDSU.js.map → chunk-4N4RDHGZ.js.map} +1 -1
- package/dist/{chunk-55RHVPE4.js → chunk-BY4AKT2X.js} +1540 -829
- package/dist/chunk-BY4AKT2X.js.map +1 -0
- package/dist/{chunk-5UF4TVCM.js → chunk-UE2I2ETX.js} +25 -3
- package/dist/chunk-UE2I2ETX.js.map +1 -0
- package/dist/{chunk-72WNE2IK.js → chunk-UT3JLF3M.js} +2 -13
- package/dist/cli.js +1728 -680
- package/dist/cli.js.map +1 -1
- package/dist/{command-7AI36ICY.js → command-XIDZGWNR.js} +417 -108
- package/dist/command-XIDZGWNR.js.map +1 -0
- package/dist/{constants-HE3EOSMH.js → constants-WLMOLKEO.js} +9 -3
- package/dist/{provider-templates-MNJZTG3Z.js → provider-templates-336QE7ZV.js} +3 -3
- package/dist/registry/data/templates/agentrouter.json +19 -0
- package/dist/registry/data/templates/cohere.json +5 -2
- package/dist/registry/data/templates/fireworks.json +1 -1
- package/dist/registry/data/templates/sambanova.json +8 -7
- package/dist/ui/dist/assets/index-Bnth1xGD.js +7 -0
- package/dist/ui/dist/assets/index-bNoUNC_v.css +1 -0
- package/dist/ui/dist/index.html +2 -2
- package/package.json +110 -94
- package/dist/chunk-55RHVPE4.js.map +0 -1
- package/dist/chunk-5UF4TVCM.js.map +0 -1
- package/dist/command-7AI36ICY.js.map +0 -1
- package/dist/ui/dist/assets/index-DWAOH_B3.css +0 -1
- package/dist/ui/dist/assets/index-qxVU3kMy.js +0 -6
- /package/dist/{chunk-72WNE2IK.js.map → chunk-UT3JLF3M.js.map} +0 -0
- /package/dist/{constants-HE3EOSMH.js.map → constants-WLMOLKEO.js.map} +0 -0
- /package/dist/{provider-templates-MNJZTG3Z.js.map → provider-templates-336QE7ZV.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
__commonJS,
|
|
4
4
|
__toESM
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UT3JLF3M.js";
|
|
6
6
|
|
|
7
7
|
// node_modules/glob/node_modules/balanced-match/index.js
|
|
8
8
|
var require_balanced_match = __commonJS({
|
|
@@ -6830,6 +6830,12 @@ function toProviderTemplate(data) {
|
|
|
6830
6830
|
defaultBaseUrl: data.apiBaseUrl,
|
|
6831
6831
|
modelsPath: data.modelsPath ?? data.modelsEndpoint,
|
|
6832
6832
|
signupUrl: data.signupUrl,
|
|
6833
|
+
signupNote: data.signupNote,
|
|
6834
|
+
// Self-hosted providers (Ollama, LM Studio) ship a urlPrompt so the add
|
|
6835
|
+
// flows collect the user's real endpoint. Dropping it here silently pinned
|
|
6836
|
+
// every install to the hardcoded default port.
|
|
6837
|
+
urlPrompt: data.urlPrompt,
|
|
6838
|
+
urlPlaceholder: data.urlPlaceholder,
|
|
6833
6839
|
modelSource: data.modelSource ?? "api-list",
|
|
6834
6840
|
staticModels: data.staticModels,
|
|
6835
6841
|
supported: data.supported,
|
|
@@ -6861,6 +6867,7 @@ var NPM_PACKAGES = {
|
|
|
6861
6867
|
google: "@ai-sdk/google",
|
|
6862
6868
|
alibaba: "@ai-sdk/alibaba",
|
|
6863
6869
|
openrouter: "@openrouter/ai-sdk-provider",
|
|
6870
|
+
agentrouter: "@ai-sdk/anthropic",
|
|
6864
6871
|
kilo: "@ai-sdk/openai-compatible",
|
|
6865
6872
|
ollama: "@ai-sdk/openai-compatible",
|
|
6866
6873
|
lmstudio: "@ai-sdk/openai-compatible",
|
|
@@ -6877,8 +6884,12 @@ var NPM_PACKAGES = {
|
|
|
6877
6884
|
"xai-oauth": "@ai-sdk/xai",
|
|
6878
6885
|
"openai-oauth": "@ai-sdk/openai",
|
|
6879
6886
|
"github-copilot": "@ai-sdk/openai-compatible",
|
|
6880
|
-
|
|
6881
|
-
|
|
6887
|
+
// SambaNova and Fireworks both serve an OpenAI-compatible /v1. There is no
|
|
6888
|
+
// published @ai-sdk/sambanova at all, and @ai-sdk/fireworks is not a
|
|
6889
|
+
// dependency here — pointing at either made addProviderFromTemplate reject
|
|
6890
|
+
// the provider outright ("Could not load …").
|
|
6891
|
+
sambanova: "@ai-sdk/openai-compatible",
|
|
6892
|
+
fireworks: "@ai-sdk/openai-compatible",
|
|
6882
6893
|
ovh: "@ai-sdk/openai-compatible",
|
|
6883
6894
|
scaleway: "@ai-sdk/openai-compatible"
|
|
6884
6895
|
};
|
|
@@ -6887,7 +6898,9 @@ var PROVIDER_TEMPLATES = loadTemplatesSync().map(toProviderTemplate).map((t) =>
|
|
|
6887
6898
|
npm: t.npm ?? NPM_PACKAGES[t.id] ?? ""
|
|
6888
6899
|
}));
|
|
6889
6900
|
function listSupportedTemplates() {
|
|
6890
|
-
return PROVIDER_TEMPLATES.filter(
|
|
6901
|
+
return PROVIDER_TEMPLATES.filter(
|
|
6902
|
+
(t) => t.supported && t.authType === "api" && t.addable !== false && !t.hidden
|
|
6903
|
+
).sort((a, b) => a.name.localeCompare(b.name));
|
|
6891
6904
|
}
|
|
6892
6905
|
function listAddableTemplates(configuredIds = []) {
|
|
6893
6906
|
const configured = new Set(configuredIds);
|
|
@@ -6900,7 +6913,9 @@ function listAddableTemplates(configuredIds = []) {
|
|
|
6900
6913
|
}
|
|
6901
6914
|
function listVisibleOAuthTemplates(configuredIds = []) {
|
|
6902
6915
|
const configured = new Set(configuredIds);
|
|
6903
|
-
return PROVIDER_TEMPLATES.filter(
|
|
6916
|
+
return PROVIDER_TEMPLATES.filter(
|
|
6917
|
+
(t) => t.authType === "oauth" && t.supported && t.addable !== false && !t.hidden && !configured.has(t.id)
|
|
6918
|
+
).sort((a, b) => a.name.localeCompare(b.name));
|
|
6904
6919
|
}
|
|
6905
6920
|
function getTemplateById(id) {
|
|
6906
6921
|
const data = loadTemplateSync(id);
|
|
@@ -6931,4 +6946,4 @@ export {
|
|
|
6931
6946
|
getTemplateById,
|
|
6932
6947
|
filterTemplates
|
|
6933
6948
|
};
|
|
6934
|
-
//# sourceMappingURL=chunk-
|
|
6949
|
+
//# sourceMappingURL=chunk-4N4RDHGZ.js.map
|