bedrock-agentcore 0.1.1 → 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.
Files changed (162) hide show
  1. package/README.md +102 -114
  2. package/dist/src/_utils/endpoints.d.ts +28 -0
  3. package/dist/src/_utils/endpoints.d.ts.map +1 -0
  4. package/dist/src/_utils/endpoints.js +44 -0
  5. package/dist/src/_utils/endpoints.js.map +1 -0
  6. package/dist/src/identity/client.d.ts +40 -0
  7. package/dist/src/identity/client.d.ts.map +1 -0
  8. package/dist/src/identity/client.js +109 -0
  9. package/dist/src/identity/client.js.map +1 -0
  10. package/dist/src/identity/index.d.ts +22 -0
  11. package/dist/src/identity/index.d.ts.map +1 -0
  12. package/dist/src/identity/index.js +24 -0
  13. package/dist/src/identity/index.js.map +1 -0
  14. package/dist/src/identity/types.d.ts +82 -0
  15. package/dist/src/identity/types.d.ts.map +1 -0
  16. package/dist/src/identity/types.js +5 -0
  17. package/dist/src/identity/types.js.map +1 -0
  18. package/dist/src/identity/wrappers.d.ts +54 -0
  19. package/dist/src/identity/wrappers.d.ts.map +1 -0
  20. package/dist/src/identity/wrappers.js +95 -0
  21. package/dist/src/identity/wrappers.js.map +1 -0
  22. package/dist/src/runtime/app.d.ts +144 -0
  23. package/dist/src/runtime/app.d.ts.map +1 -0
  24. package/dist/src/runtime/app.js +485 -0
  25. package/dist/src/runtime/app.js.map +1 -0
  26. package/dist/src/runtime/client.d.ts +154 -0
  27. package/dist/src/runtime/client.d.ts.map +1 -0
  28. package/dist/src/runtime/client.js +319 -0
  29. package/dist/src/runtime/client.js.map +1 -0
  30. package/dist/src/runtime/context.d.ts +33 -0
  31. package/dist/src/runtime/context.d.ts.map +1 -0
  32. package/dist/src/runtime/context.js +49 -0
  33. package/dist/src/runtime/context.js.map +1 -0
  34. package/dist/src/runtime/index.d.ts +8 -0
  35. package/dist/src/runtime/index.d.ts.map +1 -0
  36. package/dist/src/runtime/index.js +7 -0
  37. package/dist/src/runtime/index.js.map +1 -0
  38. package/dist/src/runtime/types.d.ts +429 -0
  39. package/dist/src/runtime/types.d.ts.map +1 -0
  40. package/dist/src/runtime/types.js +26 -0
  41. package/dist/src/runtime/types.js.map +1 -0
  42. package/dist/src/tools/browser/client.d.ts +19 -0
  43. package/dist/src/tools/browser/client.d.ts.map +1 -1
  44. package/dist/src/tools/browser/client.js +56 -0
  45. package/dist/src/tools/browser/client.js.map +1 -1
  46. package/dist/src/tools/browser/index.d.ts +1 -1
  47. package/dist/src/tools/browser/index.d.ts.map +1 -1
  48. package/dist/src/tools/browser/index.js.map +1 -1
  49. package/dist/src/tools/browser/integrations/strands/click-tool.d.ts +20 -0
  50. package/dist/src/tools/browser/integrations/strands/click-tool.d.ts.map +1 -0
  51. package/dist/src/tools/browser/integrations/strands/click-tool.js +33 -0
  52. package/dist/src/tools/browser/integrations/strands/click-tool.js.map +1 -0
  53. package/dist/src/tools/browser/integrations/strands/evaluate-tool.d.ts +20 -0
  54. package/dist/src/tools/browser/integrations/strands/evaluate-tool.d.ts.map +1 -0
  55. package/dist/src/tools/browser/integrations/strands/evaluate-tool.js +34 -0
  56. package/dist/src/tools/browser/integrations/strands/evaluate-tool.js.map +1 -0
  57. package/dist/src/tools/browser/integrations/strands/get-html-tool.d.ts +19 -0
  58. package/dist/src/tools/browser/integrations/strands/get-html-tool.d.ts.map +1 -0
  59. package/dist/src/tools/browser/integrations/strands/get-html-tool.js +32 -0
  60. package/dist/src/tools/browser/integrations/strands/get-html-tool.js.map +1 -0
  61. package/dist/src/tools/browser/integrations/strands/get-text-tool.d.ts +19 -0
  62. package/dist/src/tools/browser/integrations/strands/get-text-tool.d.ts.map +1 -0
  63. package/dist/src/tools/browser/integrations/strands/get-text-tool.js +32 -0
  64. package/dist/src/tools/browser/integrations/strands/get-text-tool.js.map +1 -0
  65. package/dist/src/tools/browser/integrations/strands/index.d.ts +25 -0
  66. package/dist/src/tools/browser/integrations/strands/index.d.ts.map +1 -0
  67. package/dist/src/tools/browser/integrations/strands/index.js +25 -0
  68. package/dist/src/tools/browser/integrations/strands/index.js.map +1 -0
  69. package/dist/src/tools/browser/integrations/strands/navigate-tool.d.ts +21 -0
  70. package/dist/src/tools/browser/integrations/strands/navigate-tool.d.ts.map +1 -0
  71. package/dist/src/tools/browser/integrations/strands/navigate-tool.js +41 -0
  72. package/dist/src/tools/browser/integrations/strands/navigate-tool.js.map +1 -0
  73. package/dist/src/tools/browser/integrations/strands/screenshot-tool.d.ts +29 -0
  74. package/dist/src/tools/browser/integrations/strands/screenshot-tool.d.ts.map +1 -0
  75. package/dist/src/tools/browser/integrations/strands/screenshot-tool.js +52 -0
  76. package/dist/src/tools/browser/integrations/strands/screenshot-tool.js.map +1 -0
  77. package/dist/src/tools/browser/integrations/strands/tools.d.ts +119 -0
  78. package/dist/src/tools/browser/integrations/strands/tools.d.ts.map +1 -0
  79. package/dist/src/tools/browser/integrations/strands/tools.js +141 -0
  80. package/dist/src/tools/browser/integrations/strands/tools.js.map +1 -0
  81. package/dist/src/tools/browser/integrations/strands/type-tool.d.ts +22 -0
  82. package/dist/src/tools/browser/integrations/strands/type-tool.d.ts.map +1 -0
  83. package/dist/src/tools/browser/integrations/strands/type-tool.js +37 -0
  84. package/dist/src/tools/browser/integrations/strands/type-tool.js.map +1 -0
  85. package/dist/src/tools/browser/integrations/vercel-ai/tools.d.ts +1 -1
  86. package/dist/src/tools/browser/integrations/vercel-ai/tools.js +1 -1
  87. package/dist/src/tools/browser/live-view/BrowserLiveView.d.ts +10 -0
  88. package/dist/src/tools/browser/live-view/BrowserLiveView.d.ts.map +1 -0
  89. package/dist/src/tools/browser/live-view/BrowserLiveView.js +180 -0
  90. package/dist/src/tools/browser/live-view/BrowserLiveView.js.map +1 -0
  91. package/dist/src/tools/browser/live-view/index.d.ts +4 -0
  92. package/dist/src/tools/browser/live-view/index.d.ts.map +1 -0
  93. package/dist/src/tools/browser/live-view/index.js +3 -0
  94. package/dist/src/tools/browser/live-view/index.js.map +1 -0
  95. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/README.md +26 -0
  96. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcv-ui/EULA.txt +403 -0
  97. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcv-ui/README.md +57 -0
  98. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcv-ui/dcv-ui.js +7 -0
  99. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcv-ui/third-party-licenses.txt +145 -0
  100. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/EULA.txt +403 -0
  101. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/README.md +50 -0
  102. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv/broadwayh264decoder-worker.js +1 -0
  103. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv/jsmpegdecoder-worker.js +1 -0
  104. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv/lz4decoder-worker.js +1 -0
  105. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv/microphoneprocessor.js +1 -0
  106. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/dcv.js +33 -0
  107. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/lib/broadway/Decoder.js +850 -0
  108. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/lib/jsmpeg/jsmpeg.min.js +1 -0
  109. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/lib/lz4/lz4_decoder.js +12 -0
  110. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-esm/third-party-licenses.txt +1068 -0
  111. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/EULA.txt +403 -0
  112. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/README.md +50 -0
  113. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv/broadwayh264decoder-worker.js +1 -0
  114. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv/jsmpegdecoder-worker.js +1 -0
  115. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv/lz4decoder-worker.js +1 -0
  116. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv/microphoneprocessor.js +1 -0
  117. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/dcv.js +33 -0
  118. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/lib/broadway/Decoder.js +850 -0
  119. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/lib/jsmpeg/jsmpeg.min.js +1 -0
  120. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/lib/lz4/lz4_decoder.js +12 -0
  121. package/dist/src/tools/browser/live-view/nice-dcv-web-client-sdk/dcvjs-umd/third-party-licenses.txt +1068 -0
  122. package/dist/src/tools/browser/live-view/scaling.d.ts +9 -0
  123. package/dist/src/tools/browser/live-view/scaling.d.ts.map +1 -0
  124. package/dist/src/tools/browser/live-view/scaling.js +13 -0
  125. package/dist/src/tools/browser/live-view/scaling.js.map +1 -0
  126. package/dist/src/tools/browser/types.d.ts +152 -0
  127. package/dist/src/tools/browser/types.d.ts.map +1 -1
  128. package/dist/src/tools/code-interpreter/client.d.ts +2 -0
  129. package/dist/src/tools/code-interpreter/client.d.ts.map +1 -1
  130. package/dist/src/tools/code-interpreter/client.js +31 -25
  131. package/dist/src/tools/code-interpreter/client.js.map +1 -1
  132. package/dist/src/tools/code-interpreter/integrations/strands/execute-code-tool.d.ts +28 -0
  133. package/dist/src/tools/code-interpreter/integrations/strands/execute-code-tool.d.ts.map +1 -0
  134. package/dist/src/tools/code-interpreter/integrations/strands/execute-code-tool.js +47 -0
  135. package/dist/src/tools/code-interpreter/integrations/strands/execute-code-tool.js.map +1 -0
  136. package/dist/src/tools/code-interpreter/integrations/strands/execute-command-tool.d.ts +27 -0
  137. package/dist/src/tools/code-interpreter/integrations/strands/execute-command-tool.d.ts.map +1 -0
  138. package/dist/src/tools/code-interpreter/integrations/strands/execute-command-tool.js +42 -0
  139. package/dist/src/tools/code-interpreter/integrations/strands/execute-command-tool.js.map +1 -0
  140. package/dist/src/tools/code-interpreter/integrations/strands/file-operations-tool.d.ts +33 -0
  141. package/dist/src/tools/code-interpreter/integrations/strands/file-operations-tool.d.ts.map +1 -0
  142. package/dist/src/tools/code-interpreter/integrations/strands/file-operations-tool.js +78 -0
  143. package/dist/src/tools/code-interpreter/integrations/strands/file-operations-tool.js.map +1 -0
  144. package/dist/src/tools/code-interpreter/integrations/strands/index.d.ts +32 -0
  145. package/dist/src/tools/code-interpreter/integrations/strands/index.d.ts.map +1 -0
  146. package/dist/src/tools/code-interpreter/integrations/strands/index.js +32 -0
  147. package/dist/src/tools/code-interpreter/integrations/strands/index.js.map +1 -0
  148. package/dist/src/tools/code-interpreter/integrations/strands/tools.d.ts +94 -0
  149. package/dist/src/tools/code-interpreter/integrations/strands/tools.d.ts.map +1 -0
  150. package/dist/src/tools/code-interpreter/integrations/strands/tools.js +112 -0
  151. package/dist/src/tools/code-interpreter/integrations/strands/tools.js.map +1 -0
  152. package/dist/src/tools/code-interpreter/integrations/vercel-ai/execute-code-tool.d.ts +2 -2
  153. package/dist/src/tools/code-interpreter/integrations/vercel-ai/execute-code-tool.js +2 -2
  154. package/dist/src/tools/code-interpreter/integrations/vercel-ai/execute-command-tool.d.ts +2 -2
  155. package/dist/src/tools/code-interpreter/integrations/vercel-ai/execute-command-tool.js +2 -2
  156. package/dist/src/tools/code-interpreter/integrations/vercel-ai/file-operations-tool.d.ts +3 -3
  157. package/dist/src/tools/code-interpreter/integrations/vercel-ai/file-operations-tool.js +2 -2
  158. package/dist/src/tools/code-interpreter/integrations/vercel-ai/index.d.ts +1 -1
  159. package/dist/src/tools/code-interpreter/integrations/vercel-ai/index.js +1 -1
  160. package/dist/src/tools/code-interpreter/integrations/vercel-ai/tools.d.ts +1 -1
  161. package/dist/src/tools/code-interpreter/integrations/vercel-ai/tools.js +1 -1
  162. package/package.json +69 -14
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-operations-tool.js","sourceRoot":"","sources":["../../../../../../src/tools/code-interpreter/integrations/strands/file-operations-tool.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAE9B,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,+HAA+H;AAC/H,MAAM,UAAU,wBAAwB,CAAC,WAA4B;IACnE,OAAO,IAAI,CAAC;QACV,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE;;0HAEyG;QACtH,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CAAC;YAC5F,KAAK,EAAE,CAAC;iBACL,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;gBACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;gBACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;aACnE,CAAC,CACH;iBACA,QAAQ,EAAE;iBACV,QAAQ,CAAC,sCAAsC,CAAC;YACnD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;YAC3G,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,6CAA6C,CAAC;SACjG,CAAC;QACF,QAAQ,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;YACpD,QAAQ,SAAS,EAAE,CAAC;gBAClB,KAAK,OAAO,CAAC,CAAC,CAAC;oBACb,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACjC,OAAO,8DAA8D,CAAA;oBACvE,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;oBACtD,OAAO,MAAM,CAAA;gBACf,CAAC;gBAED,KAAK,MAAM,CAAC,CAAC,CAAC;oBACZ,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACjC,OAAO,6DAA6D,CAAA;oBACtE,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;oBACrD,OAAO,MAAM,CAAA;gBACf,CAAC;gBAED,KAAK,MAAM,CAAC,CAAC,CAAC;oBACZ,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;oBACpD,OAAO,MAAM,CAAA;gBACf,CAAC;gBAED,KAAK,QAAQ,CAAC,CAAC,CAAC;oBACd,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACjC,OAAO,+DAA+D,CAAA;oBACxE,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;oBACvD,OAAO,MAAM,CAAA;gBACf,CAAC;gBAED;oBACE,OAAO,yCAAyC,CAAA;YACpD,CAAC;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Strands SDK integrations for AWS Bedrock AgentCore CodeInterpreter.
3
+ *
4
+ * **⚠️ EXPERIMENTAL:** This integration uses the Strands TypeScript SDK, which is
5
+ * currently experimental and subject to breaking changes.
6
+ *
7
+ * This module provides a unified CodeInterpreterTools class that simplifies
8
+ * integration with Strands SDK Agent.
9
+ *
10
+ * @experimental
11
+ * @example
12
+ * ```typescript
13
+ * import { Agent, BedrockModel } from '@strands-agents/sdk'
14
+ * import { CodeInterpreterTools } from 'bedrock-agentcore/experimental/code-interpreter/strands'
15
+ *
16
+ * const codeInterpreter = new CodeInterpreterTools({ region: 'us-west-2' })
17
+ *
18
+ * const agent = new Agent({
19
+ * model: new BedrockModel({ modelId: 'anthropic.claude-sonnet-4-20250514-v1:0' }),
20
+ * instructions: 'You are a helpful coding assistant...',
21
+ * tools: codeInterpreter.tools,
22
+ * })
23
+ *
24
+ * // Clean up when done
25
+ * await codeInterpreter.stopSession()
26
+ * ```
27
+ */
28
+ export { CodeInterpreterTools } from './tools.js';
29
+ export { createExecuteCodeTool } from './execute-code-tool.js';
30
+ export { createExecuteCommandTool } from './execute-command-tool.js';
31
+ export { createFileOperationsTool } from './file-operations-tool.js';
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/code-interpreter/integrations/strands/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Strands SDK integrations for AWS Bedrock AgentCore CodeInterpreter.
3
+ *
4
+ * **⚠️ EXPERIMENTAL:** This integration uses the Strands TypeScript SDK, which is
5
+ * currently experimental and subject to breaking changes.
6
+ *
7
+ * This module provides a unified CodeInterpreterTools class that simplifies
8
+ * integration with Strands SDK Agent.
9
+ *
10
+ * @experimental
11
+ * @example
12
+ * ```typescript
13
+ * import { Agent, BedrockModel } from '@strands-agents/sdk'
14
+ * import { CodeInterpreterTools } from 'bedrock-agentcore/experimental/code-interpreter/strands'
15
+ *
16
+ * const codeInterpreter = new CodeInterpreterTools({ region: 'us-west-2' })
17
+ *
18
+ * const agent = new Agent({
19
+ * model: new BedrockModel({ modelId: 'anthropic.claude-sonnet-4-20250514-v1:0' }),
20
+ * instructions: 'You are a helpful coding assistant...',
21
+ * tools: codeInterpreter.tools,
22
+ * })
23
+ *
24
+ * // Clean up when done
25
+ * await codeInterpreter.stopSession()
26
+ * ```
27
+ */
28
+ export { CodeInterpreterTools } from './tools.js';
29
+ export { createExecuteCodeTool } from './execute-code-tool.js';
30
+ export { createExecuteCommandTool } from './execute-command-tool.js';
31
+ export { createFileOperationsTool } from './file-operations-tool.js';
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/tools/code-interpreter/integrations/strands/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Unified CodeInterpreter Tools for Strands SDK
3
+ *
4
+ * Provides all three CodeInterpreter tools and session management in one class.
5
+ */
6
+ import { CodeInterpreter } from '../../client.js';
7
+ import type { CodeInterpreterConfig, SessionInfo } from '../../types.js';
8
+ import { createExecuteCodeTool } from './execute-code-tool.js';
9
+ import { createFileOperationsTool } from './file-operations-tool.js';
10
+ import { createExecuteCommandTool } from './execute-command-tool.js';
11
+ /**
12
+ * CodeInterpreterTools - All-in-one CodeInterpreter integration for Strands SDK
13
+ *
14
+ * Provides three ready-to-use tools and session management in a single class.
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * import { CodeInterpreterTools } from 'bedrock-agentcore/experimental/code-interpreter/strands'
19
+ * import { Agent, BedrockModel } from '@strands-agents/sdk'
20
+ *
21
+ * // Create tools instance
22
+ * const codeInterpreter = new CodeInterpreterTools({ region: 'us-west-2' })
23
+ *
24
+ * // Start session (optional - automatically started on first use)
25
+ * await codeInterpreter.startSession()
26
+ *
27
+ * // Create agent with all three tools
28
+ * const agent = new Agent({
29
+ * model: new BedrockModel({ modelId: 'anthropic.claude-sonnet-4-20250514-v1:0' }),
30
+ * tools: codeInterpreter.tools,
31
+ * })
32
+ *
33
+ * // Clean up when done
34
+ * await codeInterpreter.stopSession()
35
+ * ```
36
+ */
37
+ export declare class CodeInterpreterTools {
38
+ private interpreter;
39
+ /**
40
+ * Tool for executing Python, JavaScript, or TypeScript code
41
+ */
42
+ readonly executeCode: ReturnType<typeof createExecuteCodeTool>;
43
+ /**
44
+ * Tool for file operations (read, write, list, remove)
45
+ */
46
+ readonly fileOperations: ReturnType<typeof createFileOperationsTool>;
47
+ /**
48
+ * Tool for executing shell commands
49
+ */
50
+ readonly executeCommand: ReturnType<typeof createExecuteCommandTool>;
51
+ /**
52
+ * All three tools in an array for easy spreading into agent config
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * const agent = new Agent({
57
+ * tools: codeInterpreter.tools, // spreads all three tools
58
+ * })
59
+ *
60
+ * // Or combine with other tools
61
+ * const agent = new Agent({
62
+ * tools: [...codeInterpreter.tools, ...browserTools.tools],
63
+ * })
64
+ * ```
65
+ */
66
+ readonly tools: Array<ReturnType<typeof createExecuteCodeTool> | ReturnType<typeof createFileOperationsTool> | ReturnType<typeof createExecuteCommandTool>>;
67
+ constructor(config?: CodeInterpreterConfig);
68
+ /**
69
+ * Start a CodeInterpreter session
70
+ *
71
+ * Sessions are automatically started on first tool use, but you can
72
+ * call this explicitly to start the session upfront.
73
+ *
74
+ * @param sessionName - Optional session name for AWS
75
+ * @param timeout - Optional session timeout in seconds (default: 900, max: 28800)
76
+ * @returns Session information
77
+ */
78
+ startSession(sessionName?: string, timeout?: number): Promise<SessionInfo>;
79
+ /**
80
+ * Stop the current CodeInterpreter session
81
+ *
82
+ * Call this when you're done using the tools to clean up resources.
83
+ */
84
+ stopSession(): Promise<void>;
85
+ /**
86
+ * Get the underlying CodeInterpreter client
87
+ *
88
+ * Provides direct access to the client for advanced use cases.
89
+ *
90
+ * @returns The CodeInterpreter client instance
91
+ */
92
+ getClient(): CodeInterpreter;
93
+ }
94
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/code-interpreter/integrations/strands/tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAsB,MAAM,gBAAgB,CAAA;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,WAAW,CAAiB;IAEpC;;OAEG;IACH,SAAgB,WAAW,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA;IAErE;;OAEG;IACH,SAAgB,cAAc,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;IAE3E;;OAEG;IACH,SAAgB,cAAc,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;IAE3E;;;;;;;;;;;;;;OAcG;IACH,SAAgB,KAAK,EAAE,KAAK,CACxB,UAAU,CAAC,OAAO,qBAAqB,CAAC,GACxC,UAAU,CAAC,OAAO,wBAAwB,CAAC,GAC3C,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAC9C,CAAA;gBAEW,MAAM,GAAE,qBAA0B;IAY9C;;;;;;;;;OASG;IACG,YAAY,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAOhF;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAIlC;;;;;;OAMG;IACH,SAAS,IAAI,eAAe;CAG7B"}
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Unified CodeInterpreter Tools for Strands SDK
3
+ *
4
+ * Provides all three CodeInterpreter tools and session management in one class.
5
+ */
6
+ import { CodeInterpreter } from '../../client.js';
7
+ import { createExecuteCodeTool } from './execute-code-tool.js';
8
+ import { createFileOperationsTool } from './file-operations-tool.js';
9
+ import { createExecuteCommandTool } from './execute-command-tool.js';
10
+ /**
11
+ * CodeInterpreterTools - All-in-one CodeInterpreter integration for Strands SDK
12
+ *
13
+ * Provides three ready-to-use tools and session management in a single class.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * import { CodeInterpreterTools } from 'bedrock-agentcore/experimental/code-interpreter/strands'
18
+ * import { Agent, BedrockModel } from '@strands-agents/sdk'
19
+ *
20
+ * // Create tools instance
21
+ * const codeInterpreter = new CodeInterpreterTools({ region: 'us-west-2' })
22
+ *
23
+ * // Start session (optional - automatically started on first use)
24
+ * await codeInterpreter.startSession()
25
+ *
26
+ * // Create agent with all three tools
27
+ * const agent = new Agent({
28
+ * model: new BedrockModel({ modelId: 'anthropic.claude-sonnet-4-20250514-v1:0' }),
29
+ * tools: codeInterpreter.tools,
30
+ * })
31
+ *
32
+ * // Clean up when done
33
+ * await codeInterpreter.stopSession()
34
+ * ```
35
+ */
36
+ export class CodeInterpreterTools {
37
+ interpreter;
38
+ /**
39
+ * Tool for executing Python, JavaScript, or TypeScript code
40
+ */
41
+ executeCode;
42
+ /**
43
+ * Tool for file operations (read, write, list, remove)
44
+ */
45
+ fileOperations;
46
+ /**
47
+ * Tool for executing shell commands
48
+ */
49
+ executeCommand;
50
+ /**
51
+ * All three tools in an array for easy spreading into agent config
52
+ *
53
+ * @example
54
+ * ```typescript
55
+ * const agent = new Agent({
56
+ * tools: codeInterpreter.tools, // spreads all three tools
57
+ * })
58
+ *
59
+ * // Or combine with other tools
60
+ * const agent = new Agent({
61
+ * tools: [...codeInterpreter.tools, ...browserTools.tools],
62
+ * })
63
+ * ```
64
+ */
65
+ tools;
66
+ constructor(config = {}) {
67
+ this.interpreter = new CodeInterpreter(config);
68
+ // Create all three tools
69
+ this.executeCode = createExecuteCodeTool(this.interpreter);
70
+ this.fileOperations = createFileOperationsTool(this.interpreter);
71
+ this.executeCommand = createExecuteCommandTool(this.interpreter);
72
+ // Create tools array for Strands SDK (uses arrays, not objects)
73
+ this.tools = [this.executeCode, this.fileOperations, this.executeCommand];
74
+ }
75
+ /**
76
+ * Start a CodeInterpreter session
77
+ *
78
+ * Sessions are automatically started on first tool use, but you can
79
+ * call this explicitly to start the session upfront.
80
+ *
81
+ * @param sessionName - Optional session name for AWS
82
+ * @param timeout - Optional session timeout in seconds (default: 900, max: 28800)
83
+ * @returns Session information
84
+ */
85
+ async startSession(sessionName, timeout) {
86
+ const params = {};
87
+ if (sessionName !== undefined)
88
+ params.sessionName = sessionName;
89
+ if (timeout !== undefined)
90
+ params.timeout = timeout;
91
+ return this.interpreter.startSession(Object.keys(params).length > 0 ? params : undefined);
92
+ }
93
+ /**
94
+ * Stop the current CodeInterpreter session
95
+ *
96
+ * Call this when you're done using the tools to clean up resources.
97
+ */
98
+ async stopSession() {
99
+ await this.interpreter.stopSession();
100
+ }
101
+ /**
102
+ * Get the underlying CodeInterpreter client
103
+ *
104
+ * Provides direct access to the client for advanced use cases.
105
+ *
106
+ * @returns The CodeInterpreter client instance
107
+ */
108
+ getClient() {
109
+ return this.interpreter;
110
+ }
111
+ }
112
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../../../../src/tools/code-interpreter/integrations/strands/tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,OAAO,oBAAoB;IACvB,WAAW,CAAiB;IAEpC;;OAEG;IACa,WAAW,CAA0C;IAErE;;OAEG;IACa,cAAc,CAA6C;IAE3E;;OAEG;IACa,cAAc,CAA6C;IAE3E;;;;;;;;;;;;;;OAcG;IACa,KAAK,CAIpB;IAED,YAAY,SAAgC,EAAE;QAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAA;QAE9C,yBAAyB;QACzB,IAAI,CAAC,WAAW,GAAG,qBAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAC1D,IAAI,CAAC,cAAc,GAAG,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAChE,IAAI,CAAC,cAAc,GAAG,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAEhE,gEAAgE;QAChE,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;IAC3E,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,YAAY,CAAC,WAAoB,EAAE,OAAgB;QACvD,MAAM,MAAM,GAAuB,EAAE,CAAA;QACrC,IAAI,WAAW,KAAK,SAAS;YAAE,MAAM,CAAC,WAAW,GAAG,WAAW,CAAA;QAC/D,IAAI,OAAO,KAAK,SAAS;YAAE,MAAM,CAAC,OAAO,GAAG,OAAO,CAAA;QACnD,OAAO,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC3F,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAW;QACf,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;OAMG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;CACF"}
@@ -7,8 +7,8 @@ import type { CodeInterpreter } from '../../client.js';
7
7
  *
8
8
  * @example
9
9
  * ```typescript
10
- * import { createExecuteCodeTool } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
11
- * import { CodeInterpreter } from '@bedrock-agentcore/sdk/code-interpreter'
10
+ * import { createExecuteCodeTool } from 'bedrock-agentcore/code-interpreter/vercel-ai'
11
+ * import { CodeInterpreter } from 'bedrock-agentcore/code-interpreter'
12
12
  *
13
13
  * const interpreter = new CodeInterpreter({ region: 'us-west-2' })
14
14
  * const executeCodeTool = createExecuteCodeTool(interpreter)
@@ -9,8 +9,8 @@ import { z } from 'zod';
9
9
  *
10
10
  * @example
11
11
  * ```typescript
12
- * import { createExecuteCodeTool } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
13
- * import { CodeInterpreter } from '@bedrock-agentcore/sdk/code-interpreter'
12
+ * import { createExecuteCodeTool } from 'bedrock-agentcore/code-interpreter/vercel-ai'
13
+ * import { CodeInterpreter } from 'bedrock-agentcore/code-interpreter'
14
14
  *
15
15
  * const interpreter = new CodeInterpreter({ region: 'us-west-2' })
16
16
  * const executeCodeTool = createExecuteCodeTool(interpreter)
@@ -7,8 +7,8 @@ import type { CodeInterpreter } from '../../client.js';
7
7
  *
8
8
  * @example
9
9
  * ```typescript
10
- * import { createExecuteCommandTool } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
11
- * import { CodeInterpreter } from '@bedrock-agentcore/sdk/code-interpreter'
10
+ * import { createExecuteCommandTool } from 'bedrock-agentcore/code-interpreter/vercel-ai'
11
+ * import { CodeInterpreter } from 'bedrock-agentcore/code-interpreter'
12
12
  *
13
13
  * const interpreter = new CodeInterpreter({ region: 'us-west-2' })
14
14
  * const executeCommandTool = createExecuteCommandTool(interpreter)
@@ -9,8 +9,8 @@ import { z } from 'zod';
9
9
  *
10
10
  * @example
11
11
  * ```typescript
12
- * import { createExecuteCommandTool } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
13
- * import { CodeInterpreter } from '@bedrock-agentcore/sdk/code-interpreter'
12
+ * import { createExecuteCommandTool } from 'bedrock-agentcore/code-interpreter/vercel-ai'
13
+ * import { CodeInterpreter } from 'bedrock-agentcore/code-interpreter'
14
14
  *
15
15
  * const interpreter = new CodeInterpreter({ region: 'us-west-2' })
16
16
  * const executeCommandTool = createExecuteCommandTool(interpreter)
@@ -7,8 +7,8 @@ import type { CodeInterpreter } from '../../client.js';
7
7
  *
8
8
  * @example
9
9
  * ```typescript
10
- * import { createFileOperationsTool } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
11
- * import { CodeInterpreter } from '@bedrock-agentcore/sdk/code-interpreter'
10
+ * import { createFileOperationsTool } from 'bedrock-agentcore/code-interpreter/vercel-ai'
11
+ * import { CodeInterpreter } from 'bedrock-agentcore/code-interpreter'
12
12
  *
13
13
  * const interpreter = new CodeInterpreter({ region: 'us-west-2' })
14
14
  * const fileOpsTool = createFileOperationsTool(interpreter)
@@ -21,7 +21,7 @@ import type { CodeInterpreter } from '../../client.js';
21
21
  * ```
22
22
  */
23
23
  export declare function createFileOperationsTool(interpreter: CodeInterpreter): import("ai").Tool<{
24
- operation: "write" | "read" | "list" | "remove";
24
+ operation: "remove" | "write" | "read" | "list";
25
25
  path: string;
26
26
  files?: {
27
27
  path: string;
@@ -9,8 +9,8 @@ import { z } from 'zod';
9
9
  *
10
10
  * @example
11
11
  * ```typescript
12
- * import { createFileOperationsTool } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
13
- * import { CodeInterpreter } from '@bedrock-agentcore/sdk/code-interpreter'
12
+ * import { createFileOperationsTool } from 'bedrock-agentcore/code-interpreter/vercel-ai'
13
+ * import { CodeInterpreter } from 'bedrock-agentcore/code-interpreter'
14
14
  *
15
15
  * const interpreter = new CodeInterpreter({ region: 'us-west-2' })
16
16
  * const fileOpsTool = createFileOperationsTool(interpreter)
@@ -8,7 +8,7 @@
8
8
  * ```typescript
9
9
  * import { ToolLoopAgent } from 'ai'
10
10
  * import { bedrock } from '@ai-sdk/amazon-bedrock'
11
- * import { CodeInterpreterTools } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
11
+ * import { CodeInterpreterTools } from 'bedrock-agentcore/code-interpreter/vercel-ai'
12
12
  *
13
13
  * const codeInterpreter = new CodeInterpreterTools({ region: 'us-west-2' })
14
14
  *
@@ -8,7 +8,7 @@
8
8
  * ```typescript
9
9
  * import { ToolLoopAgent } from 'ai'
10
10
  * import { bedrock } from '@ai-sdk/amazon-bedrock'
11
- * import { CodeInterpreterTools } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
11
+ * import { CodeInterpreterTools } from 'bedrock-agentcore/code-interpreter/vercel-ai'
12
12
  *
13
13
  * const codeInterpreter = new CodeInterpreterTools({ region: 'us-west-2' })
14
14
  *
@@ -15,7 +15,7 @@ import { createExecuteCommandTool } from './execute-command-tool.js';
15
15
  *
16
16
  * @example
17
17
  * ```typescript
18
- * import { CodeInterpreterTools } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
18
+ * import { CodeInterpreterTools } from 'bedrock-agentcore/code-interpreter/vercel-ai'
19
19
  * import { ToolLoopAgent } from 'ai'
20
20
  * import { bedrock } from '@ai-sdk/amazon-bedrock'
21
21
  *
@@ -14,7 +14,7 @@ import { createExecuteCommandTool } from './execute-command-tool.js';
14
14
  *
15
15
  * @example
16
16
  * ```typescript
17
- * import { CodeInterpreterTools } from '@bedrock-agentcore/sdk/code-interpreter/vercel-ai'
17
+ * import { CodeInterpreterTools } from 'bedrock-agentcore/code-interpreter/vercel-ai'
18
18
  * import { ToolLoopAgent } from 'ai'
19
19
  * import { bedrock } from '@ai-sdk/amazon-bedrock'
20
20
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-agentcore",
3
- "version": "0.1.1",
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",
@@ -26,6 +26,14 @@
26
26
  "import": "./dist/src/tools/browser/integrations/vercel-ai/index.js",
27
27
  "types": "./dist/src/tools/browser/integrations/vercel-ai/index.d.ts"
28
28
  },
29
+ "./experimental/browser/strands": {
30
+ "import": "./dist/src/tools/browser/integrations/strands/index.js",
31
+ "types": "./dist/src/tools/browser/integrations/strands/index.d.ts"
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
+ },
29
37
  "./code-interpreter": {
30
38
  "import": "./dist/src/tools/code-interpreter/index.js",
31
39
  "types": "./dist/src/tools/code-interpreter/index.d.ts"
@@ -33,22 +41,38 @@
33
41
  "./code-interpreter/vercel-ai": {
34
42
  "import": "./dist/src/tools/code-interpreter/integrations/vercel-ai/index.js",
35
43
  "types": "./dist/src/tools/code-interpreter/integrations/vercel-ai/index.d.ts"
44
+ },
45
+ "./experimental/code-interpreter/strands": {
46
+ "import": "./dist/src/tools/code-interpreter/integrations/strands/index.js",
47
+ "types": "./dist/src/tools/code-interpreter/integrations/strands/index.d.ts"
48
+ },
49
+ "./runtime": {
50
+ "import": "./dist/src/runtime/index.js",
51
+ "types": "./dist/src/runtime/index.d.ts"
52
+ },
53
+ "./identity": {
54
+ "import": "./dist/src/identity/index.js",
55
+ "types": "./dist/src/identity/index.d.ts"
36
56
  }
37
57
  },
38
58
  "scripts": {
39
- "build": "tsc",
40
- "check": "npm run lint && npm run format && npm run type-check && npm run test:coverage",
59
+ "build": "tsc && npm run copy-dcv",
60
+ "copy-dcv": "npx tsx scripts/copy-dcv-sdk.ts",
61
+ "check": "npm run lint && npm run format && npm run type-check:all && npm run test:coverage",
41
62
  "clean": "rm -rf node_modules dist package-lock.json",
42
63
  "test": "vitest run --project unit-node",
64
+ "test:all": "vitest run --project unit-node && vitest run --project integ",
65
+ "ci": "npm run lint && npm run format:check && npm run type-check:all && npm run build && npm run test:all",
43
66
  "test:watch": "vitest --project unit-node",
44
67
  "test:coverage": "vitest run --coverage --project unit-node",
45
- "test:types": "vitest run --project types",
46
68
  "test:integ": "vitest run --project integ",
47
- "lint": "eslint src examples",
48
- "lint:fix": "eslint src examples --fix",
49
- "format": "prettier --write src examples",
50
- "format:check": "prettier --check src examples",
69
+ "lint": "eslint src tests_integ",
70
+ "lint:fix": "eslint src tests_integ --fix",
71
+ "format": "prettier --write src tests_integ",
72
+ "format:check": "prettier --check src tests_integ",
51
73
  "type-check": "tsc --noEmit",
74
+ "type-check:tests": "tsc --noEmit -p tsconfig.test.json",
75
+ "type-check:all": "npm run type-check && npm run type-check:tests",
52
76
  "type-check:watch": "tsc --noEmit --watch",
53
77
  "prepare": "npm run build && husky || true"
54
78
  },
@@ -65,7 +89,15 @@
65
89
  "license": "Apache-2.0",
66
90
  "devDependencies": {
67
91
  "@ai-sdk/amazon-bedrock": "^4.0.0-beta.67",
68
- "@types/node": "^24.6.0",
92
+ "@aws-sdk/client-cognito-identity-provider": "^3.957.0",
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",
100
+ "@types/supertest": "^6.0.3",
69
101
  "@typescript-eslint/eslint-plugin": "^8.48.0",
70
102
  "@typescript-eslint/parser": "^8.0.0",
71
103
  "@vitest/coverage-v8": "^4.0.13",
@@ -73,9 +105,13 @@
73
105
  "eslint": "^9.0.0",
74
106
  "eslint-plugin-tsdoc": "^0.5.0",
75
107
  "husky": "^9.1.7",
108
+ "jsdom": "^28.1.0",
76
109
  "playwright": "^1.56.1",
77
- "tsx": "^4.19.4",
78
110
  "prettier": "^3.0.0",
111
+ "react": "^19.2.4",
112
+ "react-dom": "^19.2.4",
113
+ "supertest": "^7.1.4",
114
+ "tsx": "^4.19.4",
79
115
  "typescript": "^5.5.0",
80
116
  "vitest": "^4.0.8"
81
117
  },
@@ -92,17 +128,27 @@
92
128
  "homepage": "https://github.com/aws/bedrock-agentcore-sdk-typescript#readme",
93
129
  "dependencies": {
94
130
  "@aws-crypto/sha256-js": "^5.2.0",
95
- "@aws-sdk/client-bedrock-agent-runtime": "^3.939.0",
96
- "@aws-sdk/client-bedrock-agentcore": "^3.939.0",
97
- "@aws-sdk/credential-providers": "^3.939.0",
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",
134
+ "@aws-sdk/protocol-http": "^3.370.0",
135
+ "@aws-sdk/signature-v4": "^3.370.0",
136
+ "@fastify/sse": "^0.4.0",
137
+ "@fastify/websocket": "^11.0.1",
98
138
  "@smithy/protocol-http": "^5.3.5",
99
139
  "@smithy/signature-v4": "^5.3.5",
100
140
  "@smithy/util-utf8": "^4.2.0",
141
+ "@types/ws": "^8.18.1",
142
+ "fastify": "^5.7.1",
143
+ "ws": "^8.18.3",
101
144
  "zod": "^4.1.13"
102
145
  },
103
146
  "peerDependencies": {
147
+ "@strands-agents/sdk": ">=0.1.0",
104
148
  "ai": ">=6.0.0-beta",
105
- "playwright": ">=1.56.0"
149
+ "playwright": ">=1.56.0",
150
+ "react": ">=18.0.0",
151
+ "react-dom": ">=18.0.0"
106
152
  },
107
153
  "peerDependenciesMeta": {
108
154
  "ai": {
@@ -110,6 +156,15 @@
110
156
  },
111
157
  "playwright": {
112
158
  "optional": true
159
+ },
160
+ "@strands-agents/sdk": {
161
+ "optional": true
162
+ },
163
+ "react": {
164
+ "optional": true
165
+ },
166
+ "react-dom": {
167
+ "optional": true
113
168
  }
114
169
  }
115
170
  }