@cat-factory/provider-bedrock 0.7.352 → 0.7.354
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/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @cat-factory/provider-bedrock
|
|
2
2
|
|
|
3
|
-
Opt-in **AWS Bedrock** model resolver for cat-factory's AI provisioning facade
|
|
3
|
+
Opt-in **AWS Bedrock** model resolver for cat-factory's AI provisioning facade: lets a
|
|
4
4
|
deployment serve LLMs through Amazon Bedrock alongside (or instead of) the built-in direct
|
|
5
5
|
vendors.
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ vendors.
|
|
|
8
8
|
|
|
9
9
|
Bedrock support pulls in the AWS Bedrock SDK (`@ai-sdk/amazon-bedrock` + `ai`), which is heavy
|
|
10
10
|
and irrelevant to any deployment that doesn't use Bedrock. Keeping it in a separate opt-in
|
|
11
|
-
package means the core packages and the Cloudflare Worker base registry stay free of the SDK
|
|
11
|
+
package means the core packages and the Cloudflare Worker base registry stay free of the SDK:
|
|
12
12
|
only a facade that actually wires Bedrock pays for it. It contributes a single provider
|
|
13
13
|
(`bedrock`) to a `CompositeModelProvider` through the neutral `ModelResolver` / `ProviderRegistry`
|
|
14
14
|
seam from `@cat-factory/agents`; no model-resolution logic is duplicated.
|
|
@@ -20,7 +20,7 @@ The package exports two helpers:
|
|
|
20
20
|
- `bedrockResolver(opts)` → a `ModelResolver` for the `bedrock` provider.
|
|
21
21
|
- `bedrockRegistry(opts)` → a `ProviderRegistry` (`{ bedrock: resolver }`) ready to mix in.
|
|
22
22
|
|
|
23
|
-
### Node / local facade
|
|
23
|
+
### Node / local facade: via env
|
|
24
24
|
|
|
25
25
|
The Node facade wires Bedrock automatically **when `BEDROCK_REGION` is set** (see
|
|
26
26
|
`createNodeModelProviderResolver` in `backend/runtimes/node/src/modelProvider.ts`); it appends
|
|
@@ -45,10 +45,10 @@ if (env.BEDROCK_REGION) {
|
|
|
45
45
|
|
|
46
46
|
So a Node/local deployment opts in purely with env: `BEDROCK_REGION` (required to enable),
|
|
47
47
|
optional `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN` (omit to use the
|
|
48
|
-
ambient AWS credential chain
|
|
48
|
+
ambient AWS credential chain; instance role, `~/.aws`, etc.), and optional `BEDROCK_MODELS`
|
|
49
49
|
(comma-separated allow-list).
|
|
50
50
|
|
|
51
|
-
### Cloudflare Worker facade
|
|
51
|
+
### Cloudflare Worker facade: via `registerModelRegistry`
|
|
52
52
|
|
|
53
53
|
The Worker's base registry ships without the SDK; a deployment mixes Bedrock in at startup
|
|
54
54
|
through the installation-level model-provider extension point (see
|
|
@@ -62,7 +62,7 @@ registerModelRegistry((env) => bedrockRegistry({ region: env.BEDROCK_REGION }))
|
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
Registration is process-wide and read by every `buildContainer(env)` call, so the provider
|
|
65
|
-
reaches all paths
|
|
65
|
+
reaches all paths (HTTP requests, the durable Workflow driver, and the cron sweeper) not just
|
|
66
66
|
one entry point. The factory receives the runtime `env`, so credentials/region come from the
|
|
67
67
|
deployment's configuration.
|
|
68
68
|
|
|
@@ -89,4 +89,4 @@ message instead of a deep AWS SDK error. Omit `supportedModels` to forward any m
|
|
|
89
89
|
|
|
90
90
|
Part of cat-factory's opt-in **AWS stack** alongside [`@cat-factory/provider-s3`](../provider-s3)
|
|
91
91
|
(blob storage) and [`@cat-factory/eks`](../eks) (runner + environment backends). Each is
|
|
92
|
-
independent and registers into its own seam
|
|
92
|
+
independent and registers into its own seam: mix in only what you use.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/provider-bedrock",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.354",
|
|
4
4
|
"description": "Opt-in AWS Bedrock model registry for the Agent Architecture Board's AI provisioning facade. Mix into a CompositeModelProvider to add the `bedrock` provider.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@ai-sdk/amazon-bedrock": "^5.0.40",
|
|
28
28
|
"ai": "^7.0.47",
|
|
29
|
-
"@cat-factory/agents": "0.106.
|
|
30
|
-
"@cat-factory/kernel": "0.
|
|
29
|
+
"@cat-factory/agents": "0.106.2",
|
|
30
|
+
"@cat-factory/kernel": "0.218.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "7.0.2",
|