bedrock-agentcore 0.2.0 → 0.2.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 +12 -4
- package/dist/src/tools/browser/client.d.ts +19 -0
- package/dist/src/tools/browser/client.d.ts.map +1 -1
- package/dist/src/tools/browser/client.js +56 -0
- package/dist/src/tools/browser/client.js.map +1 -1
- package/dist/src/tools/browser/index.d.ts +1 -1
- package/dist/src/tools/browser/index.d.ts.map +1 -1
- package/dist/src/tools/browser/index.js.map +1 -1
- package/dist/src/tools/browser/live-view/BrowserLiveView.d.ts +10 -0
- package/dist/src/tools/browser/live-view/BrowserLiveView.d.ts.map +1 -0
- package/dist/src/tools/browser/live-view/BrowserLiveView.js +180 -0
- package/dist/src/tools/browser/live-view/BrowserLiveView.js.map +1 -0
- package/dist/src/tools/browser/live-view/index.d.ts +4 -0
- package/dist/src/tools/browser/live-view/index.d.ts.map +1 -0
- package/dist/src/tools/browser/live-view/index.js +3 -0
- package/dist/src/tools/browser/live-view/index.js.map +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/README.md +26 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcv-ui/EULA.txt +403 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcv-ui/README.md +57 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcv-ui/dcv-ui.js +7 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcv-ui/third-party-licenses.txt +145 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/EULA.txt +403 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/README.md +50 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv/broadwayh264decoder-worker.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv/jsmpegdecoder-worker.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv/lz4decoder-worker.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv/microphoneprocessor.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv.js +33 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/lib/broadway/Decoder.js +850 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/lib/jsmpeg/jsmpeg.min.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/lib/lz4/lz4_decoder.js +12 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/third-party-licenses.txt +1068 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/EULA.txt +403 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/README.md +50 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv/broadwayh264decoder-worker.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv/jsmpegdecoder-worker.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv/lz4decoder-worker.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv/microphoneprocessor.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv.js +33 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/lib/broadway/Decoder.js +850 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/lib/jsmpeg/jsmpeg.min.js +1 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/lib/lz4/lz4_decoder.js +12 -0
- package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/third-party-licenses.txt +1068 -0
- package/dist/src/tools/browser/live-view/scaling.d.ts +9 -0
- package/dist/src/tools/browser/live-view/scaling.d.ts.map +1 -0
- package/dist/src/tools/browser/live-view/scaling.js +13 -0
- package/dist/src/tools/browser/live-view/scaling.js.map +1 -0
- package/dist/src/tools/browser/types.d.ts +152 -0
- package/dist/src/tools/browser/types.d.ts.map +1 -1
- package/package.json +29 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculate the scale factor and horizontal offset to fit a remote viewport
|
|
3
|
+
* into a container while preserving aspect ratio.
|
|
4
|
+
*/
|
|
5
|
+
export declare function calculateScale(containerWidth: number, containerHeight: number, remoteWidth: number, remoteHeight: number): {
|
|
6
|
+
scale: number;
|
|
7
|
+
offsetX: number;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=scaling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaling.d.ts","sourceRoot":"","sources":["../../../../../src/tools/browser/live-view/scaling.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAOpC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculate the scale factor and horizontal offset to fit a remote viewport
|
|
3
|
+
* into a container while preserving aspect ratio.
|
|
4
|
+
*/
|
|
5
|
+
export function calculateScale(containerWidth, containerHeight, remoteWidth, remoteHeight) {
|
|
6
|
+
if (containerWidth <= 0 || containerHeight <= 0) {
|
|
7
|
+
return { scale: 0, offsetX: 0 };
|
|
8
|
+
}
|
|
9
|
+
const scale = Math.min(containerWidth / remoteWidth, containerHeight / remoteHeight);
|
|
10
|
+
const offsetX = Math.max(0, (containerWidth - remoteWidth * scale) / 2);
|
|
11
|
+
return { scale, offsetX };
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=scaling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaling.js","sourceRoot":"","sources":["../../../../../src/tools/browser/live-view/scaling.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,cAAc,CAC5B,cAAsB,EACtB,eAAuB,EACvB,WAAmB,EACnB,YAAoB;IAEpB,IAAI,cAAc,IAAI,CAAC,IAAI,eAAe,IAAI,CAAC,EAAE,CAAC;QAChD,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAA;IACjC,CAAC;IACD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,GAAG,WAAW,EAAE,eAAe,GAAG,YAAY,CAAC,CAAA;IACpF,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,cAAc,GAAG,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACvE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAA;AAC3B,CAAC"}
|
|
@@ -65,6 +65,18 @@ export interface StartSessionParams {
|
|
|
65
65
|
* Viewport dimensions for the browser.
|
|
66
66
|
*/
|
|
67
67
|
viewport?: ViewportConfig;
|
|
68
|
+
/**
|
|
69
|
+
* Proxy configuration for the browser session.
|
|
70
|
+
*/
|
|
71
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
72
|
+
/**
|
|
73
|
+
* Browser extensions to load in the session.
|
|
74
|
+
*/
|
|
75
|
+
extensions?: BrowserExtension[];
|
|
76
|
+
/**
|
|
77
|
+
* Profile configuration for the browser session.
|
|
78
|
+
*/
|
|
79
|
+
profileConfiguration?: ProfileConfiguration;
|
|
68
80
|
}
|
|
69
81
|
/**
|
|
70
82
|
* Viewport configuration for browser sessions.
|
|
@@ -79,6 +91,146 @@ export interface ViewportConfig {
|
|
|
79
91
|
*/
|
|
80
92
|
height: number;
|
|
81
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Basic authentication credentials stored in AWS Secrets Manager.
|
|
96
|
+
*/
|
|
97
|
+
export interface BasicAuth {
|
|
98
|
+
/**
|
|
99
|
+
* ARN of the Secrets Manager secret containing proxy credentials.
|
|
100
|
+
*/
|
|
101
|
+
secretArn: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Credentials for proxy server authentication.
|
|
105
|
+
*/
|
|
106
|
+
export interface ProxyCredentials {
|
|
107
|
+
/**
|
|
108
|
+
* Basic authentication credentials.
|
|
109
|
+
*/
|
|
110
|
+
basicAuth?: BasicAuth;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* External proxy server configuration.
|
|
114
|
+
*/
|
|
115
|
+
export interface ExternalProxy {
|
|
116
|
+
/**
|
|
117
|
+
* Proxy server hostname.
|
|
118
|
+
*/
|
|
119
|
+
server: string;
|
|
120
|
+
/**
|
|
121
|
+
* Proxy server port.
|
|
122
|
+
*/
|
|
123
|
+
port: number;
|
|
124
|
+
/**
|
|
125
|
+
* Domain patterns to route through this proxy.
|
|
126
|
+
* Uses leading dot notation (e.g., '.example.com').
|
|
127
|
+
*/
|
|
128
|
+
domainPatterns?: string[];
|
|
129
|
+
/**
|
|
130
|
+
* Credentials for proxy authentication.
|
|
131
|
+
*/
|
|
132
|
+
credentials?: ProxyCredentials;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Individual proxy entry wrapping an external proxy configuration.
|
|
136
|
+
*/
|
|
137
|
+
export interface ProxyEntry {
|
|
138
|
+
/**
|
|
139
|
+
* External proxy server configuration.
|
|
140
|
+
*/
|
|
141
|
+
externalProxy: ExternalProxy;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Domains that bypass all proxy rules.
|
|
145
|
+
*/
|
|
146
|
+
export interface BypassConfig {
|
|
147
|
+
/**
|
|
148
|
+
* Domain patterns that should bypass the proxy.
|
|
149
|
+
*/
|
|
150
|
+
domainPatterns: string[];
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Proxy configuration for routing browser traffic through external proxy servers.
|
|
154
|
+
* Maximum 5 proxies per session, 100 domain patterns per proxy, 100 bypass patterns.
|
|
155
|
+
*/
|
|
156
|
+
export interface ProxyConfiguration {
|
|
157
|
+
/**
|
|
158
|
+
* List of proxy entries to apply.
|
|
159
|
+
*/
|
|
160
|
+
proxies: ProxyEntry[];
|
|
161
|
+
/**
|
|
162
|
+
* Domains that bypass all proxy rules.
|
|
163
|
+
*/
|
|
164
|
+
bypass?: BypassConfig;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* S3 location for resources.
|
|
168
|
+
*/
|
|
169
|
+
export interface S3Location {
|
|
170
|
+
/**
|
|
171
|
+
* S3 bucket name containing the resource.
|
|
172
|
+
*/
|
|
173
|
+
bucket: string;
|
|
174
|
+
/**
|
|
175
|
+
* S3 prefix/key to the resource file.
|
|
176
|
+
*/
|
|
177
|
+
prefix: string;
|
|
178
|
+
/**
|
|
179
|
+
* Optional S3 version ID.
|
|
180
|
+
*/
|
|
181
|
+
versionId?: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Resource location (union type for S3).
|
|
185
|
+
*/
|
|
186
|
+
export interface ResourceLocation {
|
|
187
|
+
/**
|
|
188
|
+
* S3 location of the resource.
|
|
189
|
+
*/
|
|
190
|
+
s3: S3Location;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Browser extension configuration.
|
|
194
|
+
*/
|
|
195
|
+
export interface BrowserExtension {
|
|
196
|
+
/**
|
|
197
|
+
* Location of the extension.
|
|
198
|
+
*/
|
|
199
|
+
location: ResourceLocation;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Profile configuration for persisting browser state across sessions.
|
|
203
|
+
*/
|
|
204
|
+
export interface ProfileConfiguration {
|
|
205
|
+
/**
|
|
206
|
+
* Identifier for the browser profile.
|
|
207
|
+
*/
|
|
208
|
+
profileIdentifier: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Complete session configuration combining all optional session parameters.
|
|
212
|
+
*
|
|
213
|
+
* Convenience type for bundling proxy, extensions, profile, and viewport
|
|
214
|
+
* configuration into a single object.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* ```typescript
|
|
218
|
+
* const config: SessionConfiguration = {
|
|
219
|
+
* viewport: { width: 1920, height: 1080 },
|
|
220
|
+
* proxyConfiguration: { proxies: [{ externalProxy: { server: 'proxy.example.com', port: 8080 } }] },
|
|
221
|
+
* extensions: [{ location: { s3: { bucket: 'my-bucket', prefix: 'ext.zip' } } }],
|
|
222
|
+
* profileConfiguration: { profileIdentifier: 'my-profile-id' },
|
|
223
|
+
* }
|
|
224
|
+
*
|
|
225
|
+
* await browser.startSession({ sessionName: 'my-session', ...config })
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
export interface SessionConfiguration {
|
|
229
|
+
viewport?: ViewportConfig;
|
|
230
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
231
|
+
extensions?: BrowserExtension[];
|
|
232
|
+
profileConfiguration?: ProfileConfiguration;
|
|
233
|
+
}
|
|
82
234
|
/**
|
|
83
235
|
* Information about an active browser session.
|
|
84
236
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/browser/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,kBAAkB,mBAAmB,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAE7C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AAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,aAAa,CAAA;IAE9C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bedrock-agentcore",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "TypeScript SDK for AWS Bedrock AgentCore",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"module": "dist/src/index.js",
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"import": "./dist/src/tools/browser/integrations/strands/index.js",
|
|
31
31
|
"types": "./dist/src/tools/browser/integrations/strands/index.d.ts"
|
|
32
32
|
},
|
|
33
|
+
"./browser/live-view": {
|
|
34
|
+
"import": "./dist/src/tools/browser/live-view/index.js",
|
|
35
|
+
"types": "./dist/src/tools/browser/live-view/index.d.ts"
|
|
36
|
+
},
|
|
33
37
|
"./code-interpreter": {
|
|
34
38
|
"import": "./dist/src/tools/code-interpreter/index.js",
|
|
35
39
|
"types": "./dist/src/tools/code-interpreter/index.d.ts"
|
|
@@ -52,7 +56,8 @@
|
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
58
|
"scripts": {
|
|
55
|
-
"build": "tsc",
|
|
59
|
+
"build": "tsc && npm run copy-dcv",
|
|
60
|
+
"copy-dcv": "npx tsx scripts/copy-dcv-sdk.ts",
|
|
56
61
|
"check": "npm run lint && npm run format && npm run type-check:all && npm run test:coverage",
|
|
57
62
|
"clean": "rm -rf node_modules dist package-lock.json",
|
|
58
63
|
"test": "vitest run --project unit-node",
|
|
@@ -85,9 +90,13 @@
|
|
|
85
90
|
"devDependencies": {
|
|
86
91
|
"@ai-sdk/amazon-bedrock": "^4.0.0-beta.67",
|
|
87
92
|
"@aws-sdk/client-cognito-identity-provider": "^3.957.0",
|
|
88
|
-
"@strands-agents/sdk": "^0.
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
93
|
+
"@strands-agents/sdk": "^0.5.0",
|
|
94
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
95
|
+
"@testing-library/react": "^16.3.2",
|
|
96
|
+
"@types/express": "^5.0.6",
|
|
97
|
+
"@types/node": "^25.0.10",
|
|
98
|
+
"@types/react": "^19.2.14",
|
|
99
|
+
"@types/react-dom": "^19.2.3",
|
|
91
100
|
"@types/supertest": "^6.0.3",
|
|
92
101
|
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
93
102
|
"@typescript-eslint/parser": "^8.0.0",
|
|
@@ -96,8 +105,11 @@
|
|
|
96
105
|
"eslint": "^9.0.0",
|
|
97
106
|
"eslint-plugin-tsdoc": "^0.5.0",
|
|
98
107
|
"husky": "^9.1.7",
|
|
108
|
+
"jsdom": "^28.1.0",
|
|
99
109
|
"playwright": "^1.56.1",
|
|
100
110
|
"prettier": "^3.0.0",
|
|
111
|
+
"react": "^19.2.4",
|
|
112
|
+
"react-dom": "^19.2.4",
|
|
101
113
|
"supertest": "^7.1.4",
|
|
102
114
|
"tsx": "^4.19.4",
|
|
103
115
|
"typescript": "^5.5.0",
|
|
@@ -116,9 +128,9 @@
|
|
|
116
128
|
"homepage": "https://github.com/aws/bedrock-agentcore-sdk-typescript#readme",
|
|
117
129
|
"dependencies": {
|
|
118
130
|
"@aws-crypto/sha256-js": "^5.2.0",
|
|
119
|
-
"@aws-sdk/client-bedrock-agentcore": "^3.
|
|
120
|
-
"@aws-sdk/client-bedrock-agentcore-control": "^3.
|
|
121
|
-
"@aws-sdk/credential-providers": "^3.
|
|
131
|
+
"@aws-sdk/client-bedrock-agentcore": "^3.996.0",
|
|
132
|
+
"@aws-sdk/client-bedrock-agentcore-control": "^3.996.0",
|
|
133
|
+
"@aws-sdk/credential-providers": "^3.996.0",
|
|
122
134
|
"@aws-sdk/protocol-http": "^3.370.0",
|
|
123
135
|
"@aws-sdk/signature-v4": "^3.370.0",
|
|
124
136
|
"@fastify/sse": "^0.4.0",
|
|
@@ -134,7 +146,9 @@
|
|
|
134
146
|
"peerDependencies": {
|
|
135
147
|
"@strands-agents/sdk": ">=0.1.0",
|
|
136
148
|
"ai": ">=6.0.0-beta",
|
|
137
|
-
"playwright": ">=1.56.0"
|
|
149
|
+
"playwright": ">=1.56.0",
|
|
150
|
+
"react": ">=18.0.0",
|
|
151
|
+
"react-dom": ">=18.0.0"
|
|
138
152
|
},
|
|
139
153
|
"peerDependenciesMeta": {
|
|
140
154
|
"ai": {
|
|
@@ -145,6 +159,12 @@
|
|
|
145
159
|
},
|
|
146
160
|
"@strands-agents/sdk": {
|
|
147
161
|
"optional": true
|
|
162
|
+
},
|
|
163
|
+
"react": {
|
|
164
|
+
"optional": true
|
|
165
|
+
},
|
|
166
|
+
"react-dom": {
|
|
167
|
+
"optional": true
|
|
148
168
|
}
|
|
149
169
|
}
|
|
150
170
|
}
|