@actagent/amazon-bedrock-mantle-provider 2026.6.2
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 +11 -0
- package/actagent.plugin.json +36 -0
- package/api.ts +16 -0
- package/discovery.test.ts +683 -0
- package/discovery.ts +436 -0
- package/index.test.ts +88 -0
- package/index.ts +15 -0
- package/mantle-anthropic.runtime.test.ts +123 -0
- package/mantle-anthropic.runtime.ts +134 -0
- package/npm-shrinkwrap.json +805 -0
- package/package.json +38 -0
- package/register.sync.runtime.ts +82 -0
- package/tsconfig.json +16 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ACTAgent Amazon Bedrock Mantle Provider
|
|
2
|
+
|
|
3
|
+
Official ACTAgent provider plugin for routing Amazon Bedrock Mantle models through OpenAI-compatible provider flows.
|
|
4
|
+
|
|
5
|
+
Install from ACTAgent:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
actagent plugin add @actagent/amazon-bedrock-mantle-provider
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Use this plugin when your Bedrock deployment exposes Mantle-compatible model routing and you want ACTAgent agents to address those models through the Bedrock Mantle provider.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "amazon-bedrock-mantle",
|
|
3
|
+
"name": "Amazon Bedrock Mantle",
|
|
4
|
+
"description": "ACTAgent Amazon Bedrock Mantle provider plugin for OpenAI-compatible model routing.",
|
|
5
|
+
"activation": {
|
|
6
|
+
"onStartup": false
|
|
7
|
+
},
|
|
8
|
+
"enabledByDefault": true,
|
|
9
|
+
"configSchema": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"properties": {
|
|
13
|
+
"discovery": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"enabled": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "When false, skip implicit Mantle model discovery."
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"uiHints": {
|
|
26
|
+
"discovery": {
|
|
27
|
+
"label": "Model Discovery",
|
|
28
|
+
"help": "Plugin-owned controls for Amazon Bedrock Mantle model auto-discovery."
|
|
29
|
+
},
|
|
30
|
+
"discovery.enabled": {
|
|
31
|
+
"label": "Enable Discovery",
|
|
32
|
+
"help": "When false, ACTAgent keeps the Amazon Bedrock Mantle plugin available but skips implicit startup discovery. Leave unset for default auto-detect behavior."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"providers": ["amazon-bedrock-mantle"]
|
|
36
|
+
}
|
package/api.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public Amazon Bedrock Mantle API barrel for discovery and bearer-token
|
|
3
|
+
* helpers shared by config, runtime, and tests.
|
|
4
|
+
*/
|
|
5
|
+
export {
|
|
6
|
+
discoverMantleModels,
|
|
7
|
+
generateBearerTokenFromIam,
|
|
8
|
+
getCachedIamToken,
|
|
9
|
+
MANTLE_IAM_TOKEN_MARKER,
|
|
10
|
+
mergeImplicitMantleProvider,
|
|
11
|
+
resetIamTokenCacheForTest,
|
|
12
|
+
resetMantleDiscoveryCacheForTest,
|
|
13
|
+
resolveImplicitMantleProvider,
|
|
14
|
+
resolveMantleBearerToken,
|
|
15
|
+
resolveMantleRuntimeBearerToken,
|
|
16
|
+
} from "./discovery.js";
|