@cat-factory/agents 0.137.0 → 0.138.0
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.
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba's LEGACY SHARED domain, labelled as such by Alibaba: "Legacy shared domain. Still
|
|
3
|
+
* available; migration to a workspace-dedicated domain is recommended." No deprecation date.
|
|
4
|
+
*
|
|
5
|
+
* It stays the default because the replacement,
|
|
6
|
+
* `https://{WorkspaceId}.{region}.maas.aliyuncs.com/compatible-mode/v1`, is a fact about the
|
|
7
|
+
* DEPLOYMENT's workspace and region that no default can know. A deployment that has one sets
|
|
8
|
+
* `QWEN_BASE_URL`, which is the same override every entry in the table below takes.
|
|
9
|
+
*/
|
|
1
10
|
export declare const QWEN_BASE_URL = "https://dashscope-intl.aliyuncs.com/compatible-mode/v1";
|
|
2
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The bare host, which is what DeepSeek documents: its quick-start gives
|
|
13
|
+
* `base_url = https://api.deepseek.com` and its curl example posts to
|
|
14
|
+
* `https://api.deepseek.com/chat/completions`. The `/v1` this used to carry appears on no current
|
|
15
|
+
* DeepSeek page: it was tolerated rather than published, and the newer Anthropic-compatible path
|
|
16
|
+
* hangs off the bare host too.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DEEPSEEK_BASE_URL = "https://api.deepseek.com";
|
|
3
19
|
export declare const MOONSHOT_BASE_URL = "https://api.moonshot.ai/v1";
|
|
4
20
|
export declare const OPENAI_BASE_URL = "https://api.openai.com/v1";
|
|
5
21
|
export declare const XAI_BASE_URL = "https://api.x.ai/v1";
|
|
@@ -21,7 +37,7 @@ export declare const OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1";
|
|
|
21
37
|
*/
|
|
22
38
|
declare const OPENAI_COMPATIBLE_ENDPOINTS: {
|
|
23
39
|
readonly qwen: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1";
|
|
24
|
-
readonly deepseek: "https://api.deepseek.com
|
|
40
|
+
readonly deepseek: "https://api.deepseek.com";
|
|
25
41
|
readonly moonshot: "https://api.moonshot.ai/v1";
|
|
26
42
|
readonly openai: "https://api.openai.com/v1";
|
|
27
43
|
readonly openrouter: "https://openrouter.ai/api/v1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/providers/endpoints.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa,2DAA2D,CAAA;AACrF,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/providers/endpoints.ts"],"names":[],"mappings":"AAQA;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,2DAA2D,CAAA;AACrF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,6BAA6B,CAAA;AAC3D,eAAO,MAAM,iBAAiB,+BAA+B,CAAA;AAC7D,eAAO,MAAM,eAAe,8BAA8B,CAAA;AAC1D,eAAO,MAAM,YAAY,wBAAwB,CAAA;AAGjD,eAAO,MAAM,mBAAmB,iCAAiC,CAAA;AAEjE;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,2BAA2B;;;;;;;;;CAa2B,CAAA;AAE5D,mGAAmG;AACnG,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,2BAA2B,CAAA;AAE/E,wEAAwE;AACxE,eAAO,MAAM,2BAA2B,EAAE,SAAS,wBAAwB,EAEnE,CAAA;AAER;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;KACjC,CAAC,IAAI,wBAAwB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,KAAK;CAClG,CAAC,wBAAwB,CAAC,CAAA;AAE3B,iCAAiC;AACjC,eAAO,MAAM,wBAAwB,EAAE,SAAS,qBAAqB,EAGlE,CAAA;AAEH;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,wBAAwB,CAEjG;AAID,yFAAyF;AACzF,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,qBAAqB,CAE3F;AAED;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM9E,CAAA;AAEH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG,WAAW,CAAA;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,SAAS,cAAc,EAE9D,CAAA;AAER,uGAAuG;AACvG,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,cAAc,CAE7E;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAClC,MAAM,GAAG,SAAS,CAMpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAI3F;AAYD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI7D"}
|
|
@@ -5,8 +5,24 @@ import { isLocalRunner } from '@cat-factory/contracts';
|
|
|
5
5
|
// LLM proxy resolve them from the same base URLs and keys: one source of truth for
|
|
6
6
|
// "where does provider X live". Each is overridable per deployment (a self-hosted
|
|
7
7
|
// gateway, a regional endpoint, or a local stub in tests).
|
|
8
|
+
/**
|
|
9
|
+
* Alibaba's LEGACY SHARED domain, labelled as such by Alibaba: "Legacy shared domain. Still
|
|
10
|
+
* available; migration to a workspace-dedicated domain is recommended." No deprecation date.
|
|
11
|
+
*
|
|
12
|
+
* It stays the default because the replacement,
|
|
13
|
+
* `https://{WorkspaceId}.{region}.maas.aliyuncs.com/compatible-mode/v1`, is a fact about the
|
|
14
|
+
* DEPLOYMENT's workspace and region that no default can know. A deployment that has one sets
|
|
15
|
+
* `QWEN_BASE_URL`, which is the same override every entry in the table below takes.
|
|
16
|
+
*/
|
|
8
17
|
export const QWEN_BASE_URL = 'https://dashscope-intl.aliyuncs.com/compatible-mode/v1';
|
|
9
|
-
|
|
18
|
+
/**
|
|
19
|
+
* The bare host, which is what DeepSeek documents: its quick-start gives
|
|
20
|
+
* `base_url = https://api.deepseek.com` and its curl example posts to
|
|
21
|
+
* `https://api.deepseek.com/chat/completions`. The `/v1` this used to carry appears on no current
|
|
22
|
+
* DeepSeek page: it was tolerated rather than published, and the newer Anthropic-compatible path
|
|
23
|
+
* hangs off the bare host too.
|
|
24
|
+
*/
|
|
25
|
+
export const DEEPSEEK_BASE_URL = 'https://api.deepseek.com';
|
|
10
26
|
export const MOONSHOT_BASE_URL = 'https://api.moonshot.ai/v1';
|
|
11
27
|
export const OPENAI_BASE_URL = 'https://api.openai.com/v1';
|
|
12
28
|
export const XAI_BASE_URL = 'https://api.x.ai/v1';
|
|
@@ -119,6 +135,16 @@ export function cloudflareRestBaseUrl(opts) {
|
|
|
119
135
|
? `https://gateway.ai.cloudflare.com/v1/${opts.accountId}/${opts.gateway}/workers-ai/v1`
|
|
120
136
|
: `https://api.cloudflare.com/client/v4/accounts/${opts.accountId}/ai/v1`;
|
|
121
137
|
}
|
|
138
|
+
// The GATEWAY branch above is on borrowed time, and what replaces it is not a URL swap. Nothing
|
|
139
|
+
// Cloudflare currently publishes shows a `workers-ai/v1` segment: the Workers AI provider page
|
|
140
|
+
// documents only the direct `api.cloudflare.com/client/v4/...` form (the branch below it, which is
|
|
141
|
+
// verified), and the gateway's OpenAI-compatible route is now documented as
|
|
142
|
+
// `gateway.ai.cloudflare.com/v1/{account}/{gateway}/compat` with `workers-ai/<model>` in the MODEL
|
|
143
|
+
// FIELD rather than as a path segment. So migrating means rewriting the model string as well as
|
|
144
|
+
// the base URL, in the inline resolver AND on the proxy's forward path (which passes the
|
|
145
|
+
// container's body through untouched), and neither can be verified from here without a live
|
|
146
|
+
// gateway. Left as-is deliberately, with the evidence recorded, rather than swapped half-way.
|
|
147
|
+
// Read 2026-08-18: https://developers.cloudflare.com/ai-gateway/usage/chat-completion/
|
|
122
148
|
/**
|
|
123
149
|
* Providers the container LLM proxy can serve, so a container agent's locked model
|
|
124
150
|
* must resolve to one of them (see `LlmProxyController`):
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/providers/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,4EAA4E;AAC5E,+EAA+E;AAC/E,oFAAoF;AACpF,mFAAmF;AACnF,kFAAkF;AAClF,2DAA2D;AAC3D,MAAM,CAAC,MAAM,aAAa,GAAG,wDAAwD,CAAA;AACrF,MAAM,CAAC,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/providers/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,4EAA4E;AAC5E,+EAA+E;AAC/E,oFAAoF;AACpF,mFAAmF;AACnF,kFAAkF;AAClF,2DAA2D;AAC3D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,wDAAwD,CAAA;AACrF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,0BAA0B,CAAA;AAC3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,4BAA4B,CAAA;AAC7D,MAAM,CAAC,MAAM,eAAe,GAAG,2BAA2B,CAAA;AAC1D,MAAM,CAAC,MAAM,YAAY,GAAG,qBAAq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C,IAAI,aAAa,CAAC,QAAQ,CAAC,CAC7F,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.138.0",
|
|
4
4
|
"description": "Agent catalog, routing, prompts and fragment library for the Agent Architecture Board.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"handlebars": "^4.7.9",
|
|
33
33
|
"p-map": "^7.0.6",
|
|
34
34
|
"valibot": "^1.4.2",
|
|
35
|
-
"@cat-factory/contracts": "0.
|
|
36
|
-
"@cat-factory/kernel": "0.
|
|
37
|
-
"@cat-factory/prompt-fragments": "1.0.
|
|
35
|
+
"@cat-factory/contracts": "0.322.0",
|
|
36
|
+
"@cat-factory/kernel": "0.313.0",
|
|
37
|
+
"@cat-factory/prompt-fragments": "1.0.89"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "7.0.2",
|
|
41
41
|
"vitest": "^4.1.10",
|
|
42
|
-
"@cat-factory/caching": "0.20.
|
|
42
|
+
"@cat-factory/caching": "0.20.34"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsc -b tsconfig.build.json",
|