@aws/agentcore 1.0.0-preview.9 → 1.0.0-rc.3

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 (386) hide show
  1. package/README.md +1218 -145
  2. package/dist/assets/agent-inspector/index.css.asset +1 -0
  3. package/dist/assets/agent-inspector/index.js.asset +289 -0
  4. package/dist/assets/cdk/README.md +43 -17
  5. package/dist/assets/cdk/bin/cdk.ts +22 -123
  6. package/dist/assets/cdk/lib/cdk-stack.ts +18 -69
  7. package/dist/assets/cdk/package.json +6 -13
  8. package/dist/assets/cdk/tsconfig.json +1 -1
  9. package/dist/assets/evaluators/python-lambda/README.md +32 -0
  10. package/dist/assets/evaluators/python-lambda/pyproject.toml +1 -1
  11. package/dist/assets/templates/a2a-python-strands/README.md +31 -0
  12. package/dist/assets/templates/a2a-python-strands/main.py +100 -0
  13. package/dist/assets/templates/a2a-python-strands/memory/session.py +35 -0
  14. package/dist/assets/templates/a2a-python-strands/model/load.py +6 -0
  15. package/dist/assets/templates/a2a-python-strands/pyproject.toml +20 -0
  16. package/dist/assets/templates/agent-python-langchain/README.md +56 -0
  17. package/dist/assets/{python/a2a/googleadk/base → templates/agent-python-langchain}/gitignore.template +1 -1
  18. package/dist/assets/templates/agent-python-langchain/main.py +50 -0
  19. package/dist/assets/templates/agent-python-langchain/model/load.py +9 -0
  20. package/dist/assets/templates/agent-python-langchain/pyproject.toml +21 -0
  21. package/dist/assets/templates/agent-python-minimal/README.md +31 -0
  22. package/dist/assets/templates/agent-python-minimal/main.py +13 -0
  23. package/dist/assets/templates/agent-python-minimal/pyproject.toml +18 -0
  24. package/dist/assets/{container/python/Dockerfile → templates/agent-python-strands/Dockerfile.template} +3 -1
  25. package/dist/assets/templates/agent-python-strands/README.md +60 -0
  26. package/dist/assets/{python/a2a/langchain_langgraph/base → templates/agent-python-strands}/gitignore.template +1 -1
  27. package/dist/assets/templates/agent-python-strands/main.py +65 -0
  28. package/dist/assets/templates/agent-python-strands/memory/__init__.py +0 -0
  29. package/dist/assets/templates/agent-python-strands/memory/session.py +31 -0
  30. package/dist/assets/{python/http/strands/base → templates/agent-python-strands}/model/load.py +49 -3
  31. package/dist/assets/templates/agent-python-strands/parse.py +41 -0
  32. package/dist/assets/templates/agent-python-strands/pyproject.toml +24 -0
  33. package/dist/assets/templates/agent-typescript-strands/README.md +50 -0
  34. package/dist/assets/templates/agent-typescript-strands/gitignore.template +22 -0
  35. package/dist/assets/templates/agent-typescript-strands/main.ts +77 -0
  36. package/dist/assets/templates/agent-typescript-strands/memory/memory.ts +33 -0
  37. package/dist/assets/templates/agent-typescript-strands/model/load.ts +5 -0
  38. package/dist/assets/templates/agent-typescript-strands/package.json.template +28 -0
  39. package/dist/assets/templates/agent-typescript-strands/tsconfig.json +19 -0
  40. package/dist/assets/templates/agent-typescript-vercel/README.md +22 -0
  41. package/dist/assets/templates/agent-typescript-vercel/gitignore.template +22 -0
  42. package/dist/assets/templates/agent-typescript-vercel/main.ts +35 -0
  43. package/dist/assets/templates/agent-typescript-vercel/package.json.template +24 -0
  44. package/dist/assets/templates/agent-typescript-vercel/tsconfig.json +19 -0
  45. package/dist/assets/templates/agui-python-strands/README.md +39 -0
  46. package/dist/assets/{python/a2a/strands/base → templates/agui-python-strands}/gitignore.template +1 -1
  47. package/dist/assets/{python/agui/strands/base → templates/agui-python-strands}/main.py +11 -14
  48. package/dist/assets/templates/agui-python-strands/memory/__init__.py +0 -0
  49. package/dist/assets/templates/agui-python-strands/memory/session.py +35 -0
  50. package/dist/assets/templates/agui-python-strands/model/load.py +6 -0
  51. package/dist/assets/templates/agui-python-strands/pyproject.toml +22 -0
  52. package/dist/assets/{python/http/strands/base → templates/export-harness-python}/README.md +15 -8
  53. package/dist/assets/templates/export-harness-python/gitignore.template +41 -0
  54. package/dist/assets/templates/export-harness-python/main.py +584 -0
  55. package/dist/assets/templates/export-harness-python/mcp_client/client.py +63 -0
  56. package/dist/assets/templates/export-harness-python/memory/__init__.py +0 -0
  57. package/dist/assets/templates/export-harness-python/memory/session.py +47 -0
  58. package/dist/assets/templates/export-harness-python/model/load.py +249 -0
  59. package/dist/assets/templates/export-harness-python/model/mantle_compat.py +21 -0
  60. package/dist/assets/templates/export-harness-python/pyproject.toml +22 -0
  61. package/dist/assets/templates/export-harness-python/skills/fetcher.py +279 -0
  62. package/dist/assets/templates/harness/harness.yaml +157 -0
  63. package/dist/assets/templates/mcp-python-fastmcp/README.md +32 -0
  64. package/dist/assets/templates/mcp-python-fastmcp/gitignore.template +41 -0
  65. package/dist/assets/templates/mcp-python-fastmcp/main.py +83 -0
  66. package/dist/assets/{python/mcp/standalone/base → templates/mcp-python-fastmcp}/pyproject.toml +3 -2
  67. package/dist/assets/templates/shared/env.local.template +11 -0
  68. package/dist/assets/templates/shared/gitignore.template +19 -0
  69. package/dist/index.js +4 -27
  70. package/dist/main.js +1582 -0
  71. package/package.json +76 -148
  72. package/LICENSE +0 -175
  73. package/dist/agent-inspector/index.css +0 -1
  74. package/dist/agent-inspector/index.js +0 -279
  75. package/dist/assets/README.md +0 -104
  76. package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +0 -5673
  77. package/dist/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap +0 -77
  78. package/dist/assets/__tests__/assets.snapshot.test.ts +0 -125
  79. package/dist/assets/__tests__/dockerfile-render.test.ts +0 -24
  80. package/dist/assets/agents/AGENTS.md +0 -141
  81. package/dist/assets/cdk/.prettierrc +0 -8
  82. package/dist/assets/cdk/jest.config.js +0 -9
  83. package/dist/assets/cdk/npmignore.template +0 -6
  84. package/dist/assets/cdk/test/cdk.test.ts +0 -28
  85. package/dist/assets/harness/invoke.py.template +0 -74
  86. package/dist/assets/mcp/python/README.md +0 -27
  87. package/dist/assets/mcp/python/pyproject.toml +0 -22
  88. package/dist/assets/mcp/python/server.py +0 -117
  89. package/dist/assets/mcp/python-lambda/README.md +0 -22
  90. package/dist/assets/mcp/python-lambda/handler.py +0 -144
  91. package/dist/assets/mcp/python-lambda/pyproject.toml +0 -15
  92. package/dist/assets/python/a2a/googleadk/base/README.md +0 -22
  93. package/dist/assets/python/a2a/googleadk/base/main.py +0 -110
  94. package/dist/assets/python/a2a/googleadk/base/model/load.py +0 -41
  95. package/dist/assets/python/a2a/googleadk/base/pyproject.toml +0 -20
  96. package/dist/assets/python/a2a/langchain_langgraph/base/README.md +0 -22
  97. package/dist/assets/python/a2a/langchain_langgraph/base/main.py +0 -130
  98. package/dist/assets/python/a2a/langchain_langgraph/base/model/load.py +0 -123
  99. package/dist/assets/python/a2a/langchain_langgraph/base/pyproject.toml +0 -25
  100. package/dist/assets/python/a2a/strands/base/README.md +0 -22
  101. package/dist/assets/python/a2a/strands/base/main.py +0 -107
  102. package/dist/assets/python/a2a/strands/base/model/load.py +0 -123
  103. package/dist/assets/python/a2a/strands/base/pyproject.toml +0 -23
  104. package/dist/assets/python/a2a/strands/capabilities/memory/session.py +0 -43
  105. package/dist/assets/python/agui/googleadk/base/README.md +0 -30
  106. package/dist/assets/python/agui/googleadk/base/gitignore.template +0 -41
  107. package/dist/assets/python/agui/googleadk/base/main.py +0 -31
  108. package/dist/assets/python/agui/googleadk/base/model/load.py +0 -41
  109. package/dist/assets/python/agui/googleadk/base/pyproject.toml +0 -24
  110. package/dist/assets/python/agui/langchain_langgraph/base/README.md +0 -22
  111. package/dist/assets/python/agui/langchain_langgraph/base/gitignore.template +0 -41
  112. package/dist/assets/python/agui/langchain_langgraph/base/main.py +0 -74
  113. package/dist/assets/python/agui/langchain_langgraph/base/model/load.py +0 -123
  114. package/dist/assets/python/agui/langchain_langgraph/base/pyproject.toml +0 -30
  115. package/dist/assets/python/agui/strands/base/README.md +0 -22
  116. package/dist/assets/python/agui/strands/base/gitignore.template +0 -41
  117. package/dist/assets/python/agui/strands/base/model/__init__.py +0 -1
  118. package/dist/assets/python/agui/strands/base/model/load.py +0 -123
  119. package/dist/assets/python/agui/strands/base/pyproject.toml +0 -27
  120. package/dist/assets/python/agui/strands/capabilities/memory/__init__.py +0 -1
  121. package/dist/assets/python/agui/strands/capabilities/memory/session.py +0 -43
  122. package/dist/assets/python/http/autogen/base/README.md +0 -39
  123. package/dist/assets/python/http/autogen/base/gitignore.template +0 -41
  124. package/dist/assets/python/http/autogen/base/main.py +0 -112
  125. package/dist/assets/python/http/autogen/base/mcp_client/__init__.py +0 -1
  126. package/dist/assets/python/http/autogen/base/mcp_client/client.py +0 -28
  127. package/dist/assets/python/http/autogen/base/model/__init__.py +0 -1
  128. package/dist/assets/python/http/autogen/base/model/load.py +0 -136
  129. package/dist/assets/python/http/autogen/base/pyproject.toml +0 -34
  130. package/dist/assets/python/http/googleadk/base/README.md +0 -39
  131. package/dist/assets/python/http/googleadk/base/gitignore.template +0 -41
  132. package/dist/assets/python/http/googleadk/base/main.py +0 -160
  133. package/dist/assets/python/http/googleadk/base/mcp_client/__init__.py +0 -1
  134. package/dist/assets/python/http/googleadk/base/mcp_client/client.py +0 -75
  135. package/dist/assets/python/http/googleadk/base/model/__init__.py +0 -1
  136. package/dist/assets/python/http/googleadk/base/model/load.py +0 -41
  137. package/dist/assets/python/http/googleadk/base/pyproject.toml +0 -22
  138. package/dist/assets/python/http/langchain_langgraph/base/README.md +0 -39
  139. package/dist/assets/python/http/langchain_langgraph/base/gitignore.template +0 -41
  140. package/dist/assets/python/http/langchain_langgraph/base/main.py +0 -176
  141. package/dist/assets/python/http/langchain_langgraph/base/mcp_client/__init__.py +0 -1
  142. package/dist/assets/python/http/langchain_langgraph/base/mcp_client/client.py +0 -77
  143. package/dist/assets/python/http/langchain_langgraph/base/model/__init__.py +0 -1
  144. package/dist/assets/python/http/langchain_langgraph/base/model/load.py +0 -123
  145. package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +0 -37
  146. package/dist/assets/python/http/openaiagents/base/README.md +0 -39
  147. package/dist/assets/python/http/openaiagents/base/gitignore.template +0 -41
  148. package/dist/assets/python/http/openaiagents/base/main.py +0 -169
  149. package/dist/assets/python/http/openaiagents/base/mcp_client/__init__.py +0 -1
  150. package/dist/assets/python/http/openaiagents/base/mcp_client/client.py +0 -74
  151. package/dist/assets/python/http/openaiagents/base/model/__init__.py +0 -1
  152. package/dist/assets/python/http/openaiagents/base/model/load.py +0 -37
  153. package/dist/assets/python/http/openaiagents/base/pyproject.toml +0 -21
  154. package/dist/assets/python/http/strands/base/main.py +0 -217
  155. package/dist/assets/python/http/strands/base/mcp_client/__init__.py +0 -1
  156. package/dist/assets/python/http/strands/base/mcp_client/client.py +0 -73
  157. package/dist/assets/python/http/strands/base/model/__init__.py +0 -1
  158. package/dist/assets/python/http/strands/base/pyproject.toml +0 -25
  159. package/dist/assets/python/http/strands/capabilities/memory/__init__.py +0 -1
  160. package/dist/assets/python/http/strands/capabilities/memory/session.py +0 -44
  161. package/dist/assets/python/mcp/standalone/base/README.md +0 -36
  162. package/dist/assets/python/mcp/standalone/base/gitignore.template +0 -41
  163. package/dist/assets/python/mcp/standalone/base/main.py +0 -25
  164. package/dist/cli/index.mjs +0 -1718
  165. package/dist/index.d.ts +0 -9
  166. package/dist/index.d.ts.map +0 -1
  167. package/dist/index.js.map +0 -1
  168. package/dist/lib/constants.d.ts +0 -37
  169. package/dist/lib/constants.d.ts.map +0 -1
  170. package/dist/lib/constants.js +0 -69
  171. package/dist/lib/constants.js.map +0 -1
  172. package/dist/lib/errors/config.d.ts +0 -49
  173. package/dist/lib/errors/config.d.ts.map +0 -1
  174. package/dist/lib/errors/config.js +0 -170
  175. package/dist/lib/errors/config.js.map +0 -1
  176. package/dist/lib/errors/index.d.ts +0 -2
  177. package/dist/lib/errors/index.d.ts.map +0 -1
  178. package/dist/lib/errors/index.js +0 -18
  179. package/dist/lib/errors/index.js.map +0 -1
  180. package/dist/lib/index.d.ts +0 -7
  181. package/dist/lib/index.d.ts.map +0 -1
  182. package/dist/lib/index.js +0 -44
  183. package/dist/lib/index.js.map +0 -1
  184. package/dist/lib/packaging/build-args.d.ts +0 -6
  185. package/dist/lib/packaging/build-args.d.ts.map +0 -1
  186. package/dist/lib/packaging/build-args.js +0 -18
  187. package/dist/lib/packaging/build-args.js.map +0 -1
  188. package/dist/lib/packaging/container.d.ts +0 -10
  189. package/dist/lib/packaging/container.d.ts.map +0 -1
  190. package/dist/lib/packaging/container.js +0 -78
  191. package/dist/lib/packaging/container.js.map +0 -1
  192. package/dist/lib/packaging/errors.d.ts +0 -16
  193. package/dist/lib/packaging/errors.d.ts.map +0 -1
  194. package/dist/lib/packaging/errors.js +0 -36
  195. package/dist/lib/packaging/errors.js.map +0 -1
  196. package/dist/lib/packaging/helpers.d.ts +0 -54
  197. package/dist/lib/packaging/helpers.d.ts.map +0 -1
  198. package/dist/lib/packaging/helpers.js +0 -463
  199. package/dist/lib/packaging/helpers.js.map +0 -1
  200. package/dist/lib/packaging/index.d.ts +0 -40
  201. package/dist/lib/packaging/index.d.ts.map +0 -1
  202. package/dist/lib/packaging/index.js +0 -98
  203. package/dist/lib/packaging/index.js.map +0 -1
  204. package/dist/lib/packaging/node.d.ts +0 -22
  205. package/dist/lib/packaging/node.d.ts.map +0 -1
  206. package/dist/lib/packaging/node.js +0 -109
  207. package/dist/lib/packaging/node.js.map +0 -1
  208. package/dist/lib/packaging/python.d.ts +0 -23
  209. package/dist/lib/packaging/python.d.ts.map +0 -1
  210. package/dist/lib/packaging/python.js +0 -165
  211. package/dist/lib/packaging/python.js.map +0 -1
  212. package/dist/lib/packaging/types/index.d.ts +0 -2
  213. package/dist/lib/packaging/types/index.d.ts.map +0 -1
  214. package/dist/lib/packaging/types/index.js +0 -3
  215. package/dist/lib/packaging/types/index.js.map +0 -1
  216. package/dist/lib/packaging/types/packaging.d.ts +0 -57
  217. package/dist/lib/packaging/types/packaging.d.ts.map +0 -1
  218. package/dist/lib/packaging/types/packaging.js +0 -3
  219. package/dist/lib/packaging/types/packaging.js.map +0 -1
  220. package/dist/lib/packaging/uv.d.ts +0 -7
  221. package/dist/lib/packaging/uv.d.ts.map +0 -1
  222. package/dist/lib/packaging/uv.js +0 -40
  223. package/dist/lib/packaging/uv.js.map +0 -1
  224. package/dist/lib/schemas/io/config-io.d.ts +0 -119
  225. package/dist/lib/schemas/io/config-io.d.ts.map +0 -1
  226. package/dist/lib/schemas/io/config-io.js +0 -323
  227. package/dist/lib/schemas/io/config-io.js.map +0 -1
  228. package/dist/lib/schemas/io/global-config.d.ts +0 -33
  229. package/dist/lib/schemas/io/global-config.d.ts.map +0 -1
  230. package/dist/lib/schemas/io/global-config.js +0 -89
  231. package/dist/lib/schemas/io/global-config.js.map +0 -1
  232. package/dist/lib/schemas/io/index.d.ts +0 -3
  233. package/dist/lib/schemas/io/index.d.ts.map +0 -1
  234. package/dist/lib/schemas/io/index.js +0 -18
  235. package/dist/lib/schemas/io/index.js.map +0 -1
  236. package/dist/lib/schemas/io/path-resolver.d.ts +0 -119
  237. package/dist/lib/schemas/io/path-resolver.d.ts.map +0 -1
  238. package/dist/lib/schemas/io/path-resolver.js +0 -207
  239. package/dist/lib/schemas/io/path-resolver.js.map +0 -1
  240. package/dist/lib/utils/aws-account.d.ts +0 -7
  241. package/dist/lib/utils/aws-account.d.ts.map +0 -1
  242. package/dist/lib/utils/aws-account.js +0 -24
  243. package/dist/lib/utils/aws-account.js.map +0 -1
  244. package/dist/lib/utils/credentials.d.ts +0 -86
  245. package/dist/lib/utils/credentials.d.ts.map +0 -1
  246. package/dist/lib/utils/credentials.js +0 -153
  247. package/dist/lib/utils/credentials.js.map +0 -1
  248. package/dist/lib/utils/env.d.ts +0 -22
  249. package/dist/lib/utils/env.d.ts.map +0 -1
  250. package/dist/lib/utils/env.js +0 -65
  251. package/dist/lib/utils/env.js.map +0 -1
  252. package/dist/lib/utils/index.d.ts +0 -9
  253. package/dist/lib/utils/index.d.ts.map +0 -1
  254. package/dist/lib/utils/index.js +0 -27
  255. package/dist/lib/utils/index.js.map +0 -1
  256. package/dist/lib/utils/json-rpc.d.ts +0 -3
  257. package/dist/lib/utils/json-rpc.d.ts.map +0 -1
  258. package/dist/lib/utils/json-rpc.js +0 -27
  259. package/dist/lib/utils/json-rpc.js.map +0 -1
  260. package/dist/lib/utils/platform.d.ts +0 -63
  261. package/dist/lib/utils/platform.d.ts.map +0 -1
  262. package/dist/lib/utils/platform.js +0 -88
  263. package/dist/lib/utils/platform.js.map +0 -1
  264. package/dist/lib/utils/subprocess.d.ts +0 -29
  265. package/dist/lib/utils/subprocess.d.ts.map +0 -1
  266. package/dist/lib/utils/subprocess.js +0 -116
  267. package/dist/lib/utils/subprocess.js.map +0 -1
  268. package/dist/lib/utils/time-parser.d.ts +0 -11
  269. package/dist/lib/utils/time-parser.d.ts.map +0 -1
  270. package/dist/lib/utils/time-parser.js +0 -47
  271. package/dist/lib/utils/time-parser.js.map +0 -1
  272. package/dist/lib/utils/zod.d.ts +0 -14
  273. package/dist/lib/utils/zod.d.ts.map +0 -1
  274. package/dist/lib/utils/zod.js +0 -32
  275. package/dist/lib/utils/zod.js.map +0 -1
  276. package/dist/schema/constants.d.ts +0 -119
  277. package/dist/schema/constants.d.ts.map +0 -1
  278. package/dist/schema/constants.js +0 -170
  279. package/dist/schema/constants.js.map +0 -1
  280. package/dist/schema/index.d.ts +0 -4
  281. package/dist/schema/index.d.ts.map +0 -1
  282. package/dist/schema/index.js +0 -21
  283. package/dist/schema/index.js.map +0 -1
  284. package/dist/schema/schemas/agent-env.d.ts +0 -186
  285. package/dist/schema/schemas/agent-env.d.ts.map +0 -1
  286. package/dist/schema/schemas/agent-env.js +0 -240
  287. package/dist/schema/schemas/agent-env.js.map +0 -1
  288. package/dist/schema/schemas/agentcore-project.d.ts +0 -838
  289. package/dist/schema/schemas/agentcore-project.d.ts.map +0 -1
  290. package/dist/schema/schemas/agentcore-project.js +0 -335
  291. package/dist/schema/schemas/agentcore-project.js.map +0 -1
  292. package/dist/schema/schemas/auth.d.ts +0 -140
  293. package/dist/schema/schemas/auth.d.ts.map +0 -1
  294. package/dist/schema/schemas/auth.js +0 -114
  295. package/dist/schema/schemas/auth.js.map +0 -1
  296. package/dist/schema/schemas/aws-targets.d.ts +0 -71
  297. package/dist/schema/schemas/aws-targets.d.ts.map +0 -1
  298. package/dist/schema/schemas/aws-targets.js +0 -57
  299. package/dist/schema/schemas/aws-targets.js.map +0 -1
  300. package/dist/schema/schemas/deployed-state.d.ts +0 -725
  301. package/dist/schema/schemas/deployed-state.d.ts.map +0 -1
  302. package/dist/schema/schemas/deployed-state.js +0 -218
  303. package/dist/schema/schemas/deployed-state.js.map +0 -1
  304. package/dist/schema/schemas/index.d.ts +0 -9
  305. package/dist/schema/schemas/index.d.ts.map +0 -1
  306. package/dist/schema/schemas/index.js +0 -26
  307. package/dist/schema/schemas/index.js.map +0 -1
  308. package/dist/schema/schemas/mcp-defs.d.ts +0 -52
  309. package/dist/schema/schemas/mcp-defs.d.ts.map +0 -1
  310. package/dist/schema/schemas/mcp-defs.js +0 -50
  311. package/dist/schema/schemas/mcp-defs.js.map +0 -1
  312. package/dist/schema/schemas/mcp.d.ts +0 -820
  313. package/dist/schema/schemas/mcp.d.ts.map +0 -1
  314. package/dist/schema/schemas/mcp.js +0 -564
  315. package/dist/schema/schemas/mcp.js.map +0 -1
  316. package/dist/schema/schemas/primitives/ab-test.d.ts +0 -141
  317. package/dist/schema/schemas/primitives/ab-test.d.ts.map +0 -1
  318. package/dist/schema/schemas/primitives/ab-test.js +0 -97
  319. package/dist/schema/schemas/primitives/ab-test.js.map +0 -1
  320. package/dist/schema/schemas/primitives/config-bundle.d.ts +0 -31
  321. package/dist/schema/schemas/primitives/config-bundle.d.ts.map +0 -1
  322. package/dist/schema/schemas/primitives/config-bundle.js +0 -38
  323. package/dist/schema/schemas/primitives/config-bundle.js.map +0 -1
  324. package/dist/schema/schemas/primitives/evaluator.d.ts +0 -102
  325. package/dist/schema/schemas/primitives/evaluator.d.ts.map +0 -1
  326. package/dist/schema/schemas/primitives/evaluator.js +0 -84
  327. package/dist/schema/schemas/primitives/evaluator.js.map +0 -1
  328. package/dist/schema/schemas/primitives/harness.d.ts +0 -363
  329. package/dist/schema/schemas/primitives/harness.d.ts.map +0 -1
  330. package/dist/schema/schemas/primitives/harness.js +0 -261
  331. package/dist/schema/schemas/primitives/harness.js.map +0 -1
  332. package/dist/schema/schemas/primitives/http-gateway.d.ts +0 -21
  333. package/dist/schema/schemas/primitives/http-gateway.d.ts.map +0 -1
  334. package/dist/schema/schemas/primitives/http-gateway.js +0 -34
  335. package/dist/schema/schemas/primitives/http-gateway.js.map +0 -1
  336. package/dist/schema/schemas/primitives/index.d.ts +0 -15
  337. package/dist/schema/schemas/primitives/index.d.ts.map +0 -1
  338. package/dist/schema/schemas/primitives/index.js +0 -61
  339. package/dist/schema/schemas/primitives/index.js.map +0 -1
  340. package/dist/schema/schemas/primitives/memory.d.ts +0 -51
  341. package/dist/schema/schemas/primitives/memory.d.ts.map +0 -1
  342. package/dist/schema/schemas/primitives/memory.js +0 -73
  343. package/dist/schema/schemas/primitives/memory.js.map +0 -1
  344. package/dist/schema/schemas/primitives/online-eval-config.d.ts +0 -14
  345. package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +0 -1
  346. package/dist/schema/schemas/primitives/online-eval-config.js +0 -30
  347. package/dist/schema/schemas/primitives/online-eval-config.js.map +0 -1
  348. package/dist/schema/schemas/primitives/policy.d.ts +0 -49
  349. package/dist/schema/schemas/primitives/policy.d.ts.map +0 -1
  350. package/dist/schema/schemas/primitives/policy.js +0 -62
  351. package/dist/schema/schemas/primitives/policy.js.map +0 -1
  352. package/dist/schema/schemas/primitives/tags.d.ts +0 -6
  353. package/dist/schema/schemas/primitives/tags.d.ts.map +0 -1
  354. package/dist/schema/schemas/primitives/tags.js +0 -27
  355. package/dist/schema/schemas/primitives/tags.js.map +0 -1
  356. package/dist/schema/schemas/zod-util.d.ts +0 -10
  357. package/dist/schema/schemas/zod-util.d.ts.map +0 -1
  358. package/dist/schema/schemas/zod-util.js +0 -23
  359. package/dist/schema/schemas/zod-util.js.map +0 -1
  360. package/dist/schema/types/index.d.ts +0 -2
  361. package/dist/schema/types/index.d.ts.map +0 -1
  362. package/dist/schema/types/index.js +0 -18
  363. package/dist/schema/types/index.js.map +0 -1
  364. package/dist/schema/types/path.d.ts +0 -27
  365. package/dist/schema/types/path.d.ts.map +0 -1
  366. package/dist/schema/types/path.js +0 -13
  367. package/dist/schema/types/path.js.map +0 -1
  368. package/scripts/bump-version.ts +0 -393
  369. package/scripts/bundle.mjs +0 -219
  370. package/scripts/check-old-cli.lib.mjs +0 -102
  371. package/scripts/check-old-cli.mjs +0 -10
  372. package/scripts/copy-assets.mjs +0 -64
  373. package/scripts/generate-schema.mjs +0 -40
  374. package/scripts/run-e2e-local.sh +0 -112
  375. package/scripts/start-tui-harness.sh +0 -90
  376. /package/dist/{agent-inspector/favicon.svg → assets/agent-inspector/favicon.svg.asset} +0 -0
  377. /package/dist/{agent-inspector/index.html → assets/agent-inspector/index.html.asset} +0 -0
  378. /package/dist/assets/{python/http/strands/base → templates/a2a-python-strands}/gitignore.template +0 -0
  379. /package/dist/assets/{typescript/.gitkeep → templates/a2a-python-strands/memory/__init__.py} +0 -0
  380. /package/dist/assets/{python/a2a/googleadk/base → templates/a2a-python-strands}/model/__init__.py +0 -0
  381. /package/dist/assets/{python/a2a/langchain_langgraph/base → templates/agent-python-langchain}/model/__init__.py +0 -0
  382. /package/dist/assets/{container/python → templates/agent-python-strands}/dockerignore.template +0 -0
  383. /package/dist/assets/{python/a2a/strands/base → templates/agent-python-strands}/model/__init__.py +0 -0
  384. /package/dist/assets/{python/a2a/strands/capabilities/memory → templates/agui-python-strands/model}/__init__.py +0 -0
  385. /package/dist/assets/{python/agui/googleadk/base/model → templates/export-harness-python/mcp_client}/__init__.py +0 -0
  386. /package/dist/assets/{python/agui/langchain_langgraph/base → templates/export-harness-python}/model/__init__.py +0 -0
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArtifactSizeError = exports.UnsupportedLanguageError = exports.MissingProjectFileError = exports.MissingDependencyError = exports.PackagingError = void 0;
4
- class PackagingError extends Error {
5
- constructor(message) {
6
- super(message);
7
- this.name = this.constructor.name;
8
- Error.captureStackTrace(this, this.constructor);
9
- }
10
- }
11
- exports.PackagingError = PackagingError;
12
- class MissingDependencyError extends PackagingError {
13
- constructor(binary, installHint) {
14
- super(installHint ? `${binary} is required. ${installHint}` : `${binary} is required.`);
15
- }
16
- }
17
- exports.MissingDependencyError = MissingDependencyError;
18
- class MissingProjectFileError extends PackagingError {
19
- constructor(filePath) {
20
- super(`Required project file not found: ${filePath}`);
21
- }
22
- }
23
- exports.MissingProjectFileError = MissingProjectFileError;
24
- class UnsupportedLanguageError extends PackagingError {
25
- constructor(language) {
26
- super(`${language} packaging is not supported yet.`);
27
- }
28
- }
29
- exports.UnsupportedLanguageError = UnsupportedLanguageError;
30
- class ArtifactSizeError extends PackagingError {
31
- constructor(limitBytes, actualBytes) {
32
- super(`Packaged artifact exceeds ${limitBytes} bytes (actual: ${actualBytes}).`);
33
- }
34
- }
35
- exports.ArtifactSizeError = ArtifactSizeError;
36
- //# sourceMappingURL=errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/lib/packaging/errors.ts"],"names":[],"mappings":";;;AAAA,MAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;CACF;AAND,wCAMC;AAED,MAAa,sBAAuB,SAAQ,cAAc;IACxD,YAAY,MAAc,EAAE,WAAoB;QAC9C,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,iBAAiB,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,eAAe,CAAC,CAAC;IAC1F,CAAC;CACF;AAJD,wDAIC;AAED,MAAa,uBAAwB,SAAQ,cAAc;IACzD,YAAY,QAAgB;QAC1B,KAAK,CAAC,oCAAoC,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,0DAIC;AAED,MAAa,wBAAyB,SAAQ,cAAc;IAC1D,YAAY,QAAgB;QAC1B,KAAK,CAAC,GAAG,QAAQ,kCAAkC,CAAC,CAAC;IACvD,CAAC;CACF;AAJD,4DAIC;AAED,MAAa,iBAAkB,SAAQ,cAAc;IACnD,YAAY,UAAkB,EAAE,WAAmB;QACjD,KAAK,CAAC,6BAA6B,UAAU,mBAAmB,WAAW,IAAI,CAAC,CAAC;IACnF,CAAC;CACF;AAJD,8CAIC"}
@@ -1,54 +0,0 @@
1
- import type { RuntimeVersion } from '../../schema';
2
- import type { PackageOptions } from './types/packaging';
3
- /**
4
- * Check if the runtime version is a Python runtime.
5
- */
6
- export declare function isPythonRuntime(runtimeVersion: RuntimeVersion): boolean;
7
- /**
8
- * Check if the runtime version is a Node/TypeScript runtime.
9
- */
10
- export declare function isNodeRuntime(runtimeVersion: RuntimeVersion): boolean;
11
- interface ResolvedPaths {
12
- projectRoot: string;
13
- srcDir: string;
14
- pyprojectPath: string;
15
- artifactDir: string;
16
- buildDir: string;
17
- stagingDir: string;
18
- artifactsDir: string;
19
- }
20
- export declare const MAX_ZIP_SIZE_BYTES: number;
21
- /**
22
- * Resolve CodeLocation path relative to repository root
23
- * @param codeLocation Path from AgentEnvSpec.Runtime.CodeLocation
24
- * @param configBaseDir Path to agentcore directory
25
- * @returns Absolute path to code location
26
- */
27
- export declare function resolveCodeLocation(codeLocation: string, configBaseDir: string): string;
28
- export declare function resolveProjectPaths(options?: PackageOptions, agentName?: string): Promise<ResolvedPaths>;
29
- export declare function ensureDirClean(dir: string): Promise<void>;
30
- export declare function copySourceTree(srcDir: string, destination: string): Promise<void>;
31
- export declare function ensureBinaryAvailable(binary: string, installHint?: string): Promise<void>;
32
- export declare function runCommand(command: string, args: string[], cwd?: string): Promise<void>;
33
- export declare function createZipFromDir(sourceDir: string, outputZip: string): Promise<void>;
34
- export declare function enforceZipSizeLimit(zipPath: string): Promise<number>;
35
- export declare function resolveProjectPathsSync(options?: PackageOptions, agentName?: string): ResolvedPaths;
36
- export declare function ensureDirCleanSync(dir: string): void;
37
- export declare function copySourceTreeSync(srcDir: string, destination: string): void;
38
- export declare function ensureBinaryAvailableSync(binary: string, installHint?: string): void;
39
- export declare function createZipFromDirSync(sourceDir: string, outputZip: string): void;
40
- export declare function enforceZipSizeLimitSync(zipPath: string): number;
41
- /**
42
- * Prepares console scripts for Linux deployment by:
43
- * - On Windows: Converting .exe files to Linux shell scripts
44
- * - On macOS/Linux: Rewriting hardcoded shebang paths to portable ones
45
- *
46
- * @param stagingDir The directory containing installed Python packages
47
- */
48
- export declare function convertWindowsScriptsToLinux(stagingDir: string): Promise<void>;
49
- /**
50
- * Synchronous version of convertWindowsScriptsToLinux.
51
- */
52
- export declare function convertWindowsScriptsToLinuxSync(stagingDir: string): void;
53
- export {};
54
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/lib/packaging/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAKnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAwBxD;;GAEG;AACH,wBAAgB,eAAe,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAEvE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAErE;AAED,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM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AAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAcpF;AAsBD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAO/E;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAM/D;AAmED;;;;;;GAMG;AACH,wBAAsB,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiCpF;AAgCD;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAiCzE"}
@@ -1,463 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAX_ZIP_SIZE_BYTES = void 0;
4
- exports.isPythonRuntime = isPythonRuntime;
5
- exports.isNodeRuntime = isNodeRuntime;
6
- exports.resolveCodeLocation = resolveCodeLocation;
7
- exports.resolveProjectPaths = resolveProjectPaths;
8
- exports.ensureDirClean = ensureDirClean;
9
- exports.copySourceTree = copySourceTree;
10
- exports.ensureBinaryAvailable = ensureBinaryAvailable;
11
- exports.runCommand = runCommand;
12
- exports.createZipFromDir = createZipFromDir;
13
- exports.enforceZipSizeLimit = enforceZipSizeLimit;
14
- exports.resolveProjectPathsSync = resolveProjectPathsSync;
15
- exports.ensureDirCleanSync = ensureDirCleanSync;
16
- exports.copySourceTreeSync = copySourceTreeSync;
17
- exports.ensureBinaryAvailableSync = ensureBinaryAvailableSync;
18
- exports.createZipFromDirSync = createZipFromDirSync;
19
- exports.enforceZipSizeLimitSync = enforceZipSizeLimitSync;
20
- exports.convertWindowsScriptsToLinux = convertWindowsScriptsToLinux;
21
- exports.convertWindowsScriptsToLinuxSync = convertWindowsScriptsToLinuxSync;
22
- const constants_1 = require("../constants");
23
- const platform_1 = require("../utils/platform");
24
- const subprocess_1 = require("../utils/subprocess");
25
- const errors_1 = require("./errors");
26
- const fflate_1 = require("fflate");
27
- const fs_1 = require("fs");
28
- const promises_1 = require("fs/promises");
29
- const path_1 = require("path");
30
- const promises_2 = require("stream/promises");
31
- // ============================================================================
32
- // Runtime Type Detection
33
- // ============================================================================
34
- /**
35
- * Check if the runtime version is a Python runtime.
36
- */
37
- function isPythonRuntime(runtimeVersion) {
38
- return runtimeVersion.startsWith('PYTHON_');
39
- }
40
- /**
41
- * Check if the runtime version is a Node/TypeScript runtime.
42
- */
43
- function isNodeRuntime(runtimeVersion) {
44
- return runtimeVersion.startsWith('NODE_');
45
- }
46
- const EXCLUDED_ENTRIES = new Set(['.git', '.venv', '__pycache__', '.pytest_cache', '.DS_Store', 'node_modules']);
47
- exports.MAX_ZIP_SIZE_BYTES = 250 * 1024 * 1024;
48
- /**
49
- * Resolve CodeLocation path relative to repository root
50
- * @param codeLocation Path from AgentEnvSpec.Runtime.CodeLocation
51
- * @param configBaseDir Path to agentcore directory
52
- * @returns Absolute path to code location
53
- */
54
- function resolveCodeLocation(codeLocation, configBaseDir) {
55
- if ((0, path_1.isAbsolute)(codeLocation)) {
56
- // Absolute paths allowed but discouraged for checked-in configs
57
- return codeLocation;
58
- }
59
- // Resolve relative to repository root (parent of agentcore/)
60
- // If configBaseDir is /home/user/myproject/agentcore
61
- // then repository root is /home/user/myproject/
62
- const repositoryRoot = (0, path_1.dirname)(configBaseDir);
63
- return (0, path_1.resolve)(repositoryRoot, codeLocation);
64
- }
65
- async function pathExists(path) {
66
- try {
67
- await (0, promises_1.stat)(path);
68
- return true;
69
- }
70
- catch (error) {
71
- if (error.code === 'ENOENT') {
72
- return false;
73
- }
74
- throw error;
75
- }
76
- }
77
- async function findUp(fileName, startDir) {
78
- let current = (0, path_1.resolve)(startDir);
79
- const { root } = (0, path_1.parse)(current);
80
- while (true) {
81
- const candidate = (0, path_1.join)(current, fileName);
82
- if (await pathExists(candidate)) {
83
- return candidate;
84
- }
85
- if (current === root) {
86
- return null;
87
- }
88
- current = (0, path_1.dirname)(current);
89
- }
90
- }
91
- async function resolveProjectPaths(options = {}, agentName) {
92
- const startDir = options.projectRoot ? (0, path_1.resolve)(options.projectRoot) : process.cwd();
93
- const candidatePyproject = options.pyprojectPath
94
- ? (0, path_1.resolve)(options.pyprojectPath)
95
- : await findUp('pyproject.toml', startDir);
96
- if (!candidatePyproject || !(await pathExists(candidatePyproject))) {
97
- throw new errors_1.MissingProjectFileError(options.pyprojectPath ?? (0, path_1.join)(startDir, 'pyproject.toml'));
98
- }
99
- const pyprojectPath = candidatePyproject;
100
- const projectRoot = options.projectRoot ? (0, path_1.resolve)(options.projectRoot) : (0, path_1.dirname)(pyprojectPath);
101
- const srcDir = (0, path_1.resolve)(projectRoot, options.srcDir ?? '.');
102
- const artifactDir = (0, path_1.resolve)(options.artifactDir ?? (0, path_1.join)(projectRoot, constants_1.CONFIG_DIR));
103
- // Simplified staging structure: <artifactDir>/<name>/staging
104
- const name = agentName ?? 'default';
105
- const buildDir = (0, path_1.join)(artifactDir, name);
106
- const stagingDir = (0, path_1.join)(buildDir, 'staging');
107
- const artifactsDir = artifactDir;
108
- return {
109
- projectRoot,
110
- srcDir,
111
- pyprojectPath,
112
- artifactDir,
113
- buildDir,
114
- stagingDir,
115
- artifactsDir,
116
- };
117
- }
118
- async function ensureDirClean(dir) {
119
- await (0, promises_1.rm)(dir, { recursive: true, force: true });
120
- await (0, promises_1.mkdir)(dir, { recursive: true });
121
- }
122
- async function copyEntry(source, destination, rootDir) {
123
- const stats = await (0, promises_1.stat)(source);
124
- if (stats.isDirectory()) {
125
- await (0, promises_1.mkdir)(destination, { recursive: true });
126
- const entries = await (0, promises_1.readdir)(source);
127
- for (const entry of entries) {
128
- if (EXCLUDED_ENTRIES.has(entry)) {
129
- continue;
130
- }
131
- if (entry === constants_1.CONFIG_DIR && (0, path_1.resolve)(source) === (0, path_1.resolve)(rootDir)) {
132
- continue;
133
- }
134
- await copyEntry((0, path_1.join)(source, entry), (0, path_1.join)(destination, entry), rootDir);
135
- }
136
- return;
137
- }
138
- const readStream = (0, fs_1.createReadStream)(source);
139
- const writeStream = (0, fs_1.createWriteStream)(destination);
140
- await (0, promises_2.pipeline)(readStream, writeStream);
141
- }
142
- async function copySourceTree(srcDir, destination) {
143
- if (!(await pathExists(srcDir))) {
144
- throw new errors_1.MissingProjectFileError(srcDir);
145
- }
146
- await copyEntry(srcDir, destination, srcDir);
147
- }
148
- async function ensureBinaryAvailable(binary, installHint) {
149
- const checks = [
150
- () => (platform_1.isWindows ? (0, subprocess_1.checkSubprocess)('where', [binary]) : (0, subprocess_1.checkSubprocess)('which', [binary])),
151
- () => (0, subprocess_1.checkSubprocess)(binary, ['--version']),
152
- () => (0, subprocess_1.checkSubprocess)(binary, ['-v']),
153
- ];
154
- for (const check of checks) {
155
- if (await check()) {
156
- return;
157
- }
158
- }
159
- throw new errors_1.MissingDependencyError(binary, installHint);
160
- }
161
- async function runCommand(command, args, cwd) {
162
- await (0, subprocess_1.runSubprocess)(command, args, { cwd });
163
- }
164
- async function createZipFromDir(sourceDir, outputZip) {
165
- await (0, promises_1.rm)(outputZip, { force: true });
166
- await (0, promises_1.mkdir)((0, path_1.dirname)(outputZip), { recursive: true });
167
- const files = await collectFiles(sourceDir, sourceDir);
168
- const zipped = (0, fflate_1.zipSync)(files);
169
- await (0, promises_1.writeFile)(outputZip, zipped);
170
- }
171
- async function collectFiles(directory, rootDir, basePath = '') {
172
- const result = {};
173
- const entries = await (0, promises_1.readdir)(directory, { withFileTypes: true });
174
- for (const entry of entries) {
175
- if (EXCLUDED_ENTRIES.has(entry.name))
176
- continue;
177
- if (entry.name === constants_1.CONFIG_DIR && (0, path_1.resolve)(directory) === (0, path_1.resolve)(rootDir))
178
- continue;
179
- const fullPath = (0, path_1.join)(directory, entry.name);
180
- const zipPath = basePath ? `${basePath}/${entry.name}` : entry.name;
181
- if (entry.isDirectory()) {
182
- Object.assign(result, await collectFiles(fullPath, rootDir, zipPath));
183
- }
184
- else if (entry.isFile()) {
185
- result[zipPath] = [await (0, promises_1.readFile)(fullPath), { level: 6 }];
186
- }
187
- }
188
- return result;
189
- }
190
- async function enforceZipSizeLimit(zipPath) {
191
- const { size } = await (0, promises_1.stat)(zipPath);
192
- if (size > exports.MAX_ZIP_SIZE_BYTES) {
193
- throw new errors_1.ArtifactSizeError(exports.MAX_ZIP_SIZE_BYTES, size);
194
- }
195
- return size;
196
- }
197
- function pathExistsSync(path) {
198
- return (0, fs_1.existsSync)(path);
199
- }
200
- function findUpSync(fileName, startDir) {
201
- let current = (0, path_1.resolve)(startDir);
202
- const { root } = (0, path_1.parse)(current);
203
- while (true) {
204
- const candidate = (0, path_1.join)(current, fileName);
205
- if (pathExistsSync(candidate)) {
206
- return candidate;
207
- }
208
- if (current === root) {
209
- return null;
210
- }
211
- current = (0, path_1.dirname)(current);
212
- }
213
- }
214
- function resolveProjectPathsSync(options = {}, agentName) {
215
- const startDir = options.projectRoot ? (0, path_1.resolve)(options.projectRoot) : process.cwd();
216
- const candidatePyproject = options.pyprojectPath
217
- ? (0, path_1.resolve)(options.pyprojectPath)
218
- : findUpSync('pyproject.toml', startDir);
219
- if (!candidatePyproject || !pathExistsSync(candidatePyproject)) {
220
- throw new errors_1.MissingProjectFileError(options.pyprojectPath ?? (0, path_1.join)(startDir, 'pyproject.toml'));
221
- }
222
- const pyprojectPath = candidatePyproject;
223
- const projectRoot = options.projectRoot ? (0, path_1.resolve)(options.projectRoot) : (0, path_1.dirname)(pyprojectPath);
224
- const srcDir = (0, path_1.resolve)(projectRoot, options.srcDir ?? '.');
225
- const artifactDir = (0, path_1.resolve)(options.artifactDir ?? (0, path_1.join)(projectRoot, constants_1.CONFIG_DIR));
226
- // Simplified staging structure: <artifactDir>/<name>/staging
227
- const name = agentName ?? 'default';
228
- const buildDir = (0, path_1.join)(artifactDir, name);
229
- const stagingDir = (0, path_1.join)(buildDir, 'staging');
230
- const artifactsDir = artifactDir;
231
- return {
232
- projectRoot,
233
- srcDir,
234
- pyprojectPath,
235
- artifactDir,
236
- buildDir,
237
- stagingDir,
238
- artifactsDir,
239
- };
240
- }
241
- function ensureDirCleanSync(dir) {
242
- (0, fs_1.rmSync)(dir, { recursive: true, force: true });
243
- (0, fs_1.mkdirSync)(dir, { recursive: true });
244
- }
245
- function copyEntrySync(source, destination, rootDir) {
246
- const stats = (0, fs_1.statSync)(source);
247
- if (stats.isDirectory()) {
248
- (0, fs_1.mkdirSync)(destination, { recursive: true });
249
- const entries = (0, fs_1.readdirSync)(source);
250
- for (const entry of entries) {
251
- if (EXCLUDED_ENTRIES.has(entry)) {
252
- continue;
253
- }
254
- if (entry === constants_1.CONFIG_DIR && (0, path_1.resolve)(source) === (0, path_1.resolve)(rootDir)) {
255
- continue;
256
- }
257
- copyEntrySync((0, path_1.join)(source, entry), (0, path_1.join)(destination, entry), rootDir);
258
- }
259
- return;
260
- }
261
- (0, fs_1.copyFileSync)(source, destination);
262
- }
263
- function copySourceTreeSync(srcDir, destination) {
264
- if (!pathExistsSync(srcDir)) {
265
- throw new errors_1.MissingProjectFileError(srcDir);
266
- }
267
- copyEntrySync(srcDir, destination, srcDir);
268
- }
269
- function ensureBinaryAvailableSync(binary, installHint) {
270
- const checks = [
271
- () => (platform_1.isWindows ? (0, subprocess_1.checkSubprocessSync)('where', [binary]) : (0, subprocess_1.checkSubprocessSync)('which', [binary])),
272
- () => (0, subprocess_1.checkSubprocessSync)(binary, ['--version']),
273
- () => (0, subprocess_1.checkSubprocessSync)(binary, ['-v']),
274
- ];
275
- for (const check of checks) {
276
- if (check()) {
277
- return;
278
- }
279
- }
280
- throw new errors_1.MissingDependencyError(binary, installHint);
281
- }
282
- function collectFilesSync(directory, rootDir, basePath = '') {
283
- const result = {};
284
- const entries = (0, fs_1.readdirSync)(directory, { withFileTypes: true });
285
- for (const entry of entries) {
286
- if (EXCLUDED_ENTRIES.has(entry.name))
287
- continue;
288
- if (entry.name === constants_1.CONFIG_DIR && (0, path_1.resolve)(directory) === (0, path_1.resolve)(rootDir))
289
- continue;
290
- const fullPath = (0, path_1.join)(directory, entry.name);
291
- const zipPath = basePath ? `${basePath}/${entry.name}` : entry.name;
292
- if (entry.isDirectory()) {
293
- Object.assign(result, collectFilesSync(fullPath, rootDir, zipPath));
294
- }
295
- else if (entry.isFile()) {
296
- result[zipPath] = [(0, fs_1.readFileSync)(fullPath), { level: 6 }];
297
- }
298
- }
299
- return result;
300
- }
301
- function createZipFromDirSync(sourceDir, outputZip) {
302
- (0, fs_1.rmSync)(outputZip, { force: true });
303
- (0, fs_1.mkdirSync)((0, path_1.dirname)(outputZip), { recursive: true });
304
- const files = collectFilesSync(sourceDir, sourceDir);
305
- const zipped = (0, fflate_1.zipSync)(files);
306
- (0, fs_1.writeFileSync)(outputZip, zipped);
307
- }
308
- function enforceZipSizeLimitSync(zipPath) {
309
- const { size } = (0, fs_1.statSync)(zipPath);
310
- if (size > exports.MAX_ZIP_SIZE_BYTES) {
311
- throw new errors_1.ArtifactSizeError(exports.MAX_ZIP_SIZE_BYTES, size);
312
- }
313
- return size;
314
- }
315
- /**
316
- * Generates a Linux-compatible shell script for a Python console entry point.
317
- * This is needed when packaging on Windows for Linux targets, as uv generates
318
- * .exe files based on the host OS rather than the target platform.
319
- */
320
- function generateLinuxConsoleScript(modulePath, funcName) {
321
- return `#!/usr/bin/env python3
322
- # -*- coding: utf-8 -*-
323
- import re
324
- import sys
325
- from ${modulePath} import ${funcName}
326
- if __name__ == '__main__':
327
- sys.argv[0] = re.sub(r'(-script\\.pyw|\\.exe)?$', '', sys.argv[0])
328
- sys.exit(${funcName}())
329
- `;
330
- }
331
- /**
332
- * Known console script entry points that need to be converted from Windows .exe
333
- * to Linux shell scripts when cross-compiling.
334
- * Format: { 'script-name': ['module.path', 'function_name'] }
335
- */
336
- const KNOWN_CONSOLE_SCRIPTS = {
337
- 'opentelemetry-instrument': ['opentelemetry.instrumentation.auto_instrumentation', 'run'],
338
- 'opentelemetry-bootstrap': ['opentelemetry.instrumentation.bootstrap', 'run'],
339
- };
340
- /**
341
- * Checks if a shebang line contains a hardcoded absolute path that won't work in Lambda.
342
- */
343
- function isHardcodedShebang(shebang) {
344
- return /^#!\/(?:Users|home|opt|var|tmp)\/.*python/.test(shebang);
345
- }
346
- /**
347
- * Rewrites shebangs in console scripts to use portable #!/usr/bin/env python3.
348
- * This handles scripts installed on macOS/Linux that have hardcoded absolute paths.
349
- */
350
- async function rewriteUnixShebangs(stagingDir) {
351
- const binDir = (0, path_1.join)(stagingDir, 'bin');
352
- if (!(await pathExists(binDir))) {
353
- return;
354
- }
355
- const entries = await (0, promises_1.readdir)(binDir);
356
- const portableShebang = '#!/usr/bin/env python3';
357
- for (const entry of entries) {
358
- const scriptPath = (0, path_1.join)(binDir, entry);
359
- const stats = await (0, promises_1.stat)(scriptPath);
360
- if (!stats.isFile()) {
361
- continue;
362
- }
363
- const content = await (0, promises_1.readFile)(scriptPath, 'utf-8');
364
- const firstLine = content.split('\n')[0] ?? '';
365
- if (firstLine && isHardcodedShebang(firstLine)) {
366
- const newContent = content.replace(firstLine, portableShebang);
367
- await (0, promises_1.writeFile)(scriptPath, newContent, { mode: 0o755 });
368
- }
369
- }
370
- }
371
- /**
372
- * Prepares console scripts for Linux deployment by:
373
- * - On Windows: Converting .exe files to Linux shell scripts
374
- * - On macOS/Linux: Rewriting hardcoded shebang paths to portable ones
375
- *
376
- * @param stagingDir The directory containing installed Python packages
377
- */
378
- async function convertWindowsScriptsToLinux(stagingDir) {
379
- if (platform_1.isWindows) {
380
- const binDir = (0, path_1.join)(stagingDir, 'bin');
381
- if (!(await pathExists(binDir))) {
382
- return;
383
- }
384
- const entries = await (0, promises_1.readdir)(binDir);
385
- for (const entry of entries) {
386
- if (!entry.endsWith('.exe')) {
387
- continue;
388
- }
389
- const scriptName = entry.slice(0, -4); // Remove .exe extension
390
- const entryPoint = KNOWN_CONSOLE_SCRIPTS[scriptName];
391
- if (entryPoint) {
392
- const [modulePath, funcName] = entryPoint;
393
- const exePath = (0, path_1.join)(binDir, entry);
394
- const scriptPath = (0, path_1.join)(binDir, scriptName);
395
- // Remove the Windows .exe file
396
- await (0, promises_1.unlink)(exePath);
397
- // Create Linux-compatible shell script
398
- const scriptContent = generateLinuxConsoleScript(modulePath, funcName);
399
- await (0, promises_1.writeFile)(scriptPath, scriptContent, { mode: 0o755 });
400
- }
401
- }
402
- }
403
- else {
404
- await rewriteUnixShebangs(stagingDir);
405
- }
406
- }
407
- /**
408
- * Synchronous version of rewriteUnixShebangs.
409
- */
410
- function rewriteUnixShebangsSync(stagingDir) {
411
- const binDir = (0, path_1.join)(stagingDir, 'bin');
412
- if (!pathExistsSync(binDir)) {
413
- return;
414
- }
415
- const entries = (0, fs_1.readdirSync)(binDir);
416
- const portableShebang = '#!/usr/bin/env python3';
417
- for (const entry of entries) {
418
- const scriptPath = (0, path_1.join)(binDir, entry);
419
- const stats = (0, fs_1.statSync)(scriptPath);
420
- if (!stats.isFile()) {
421
- continue;
422
- }
423
- const content = (0, fs_1.readFileSync)(scriptPath, 'utf-8');
424
- const firstLine = content.split('\n')[0] ?? '';
425
- if (firstLine && isHardcodedShebang(firstLine)) {
426
- const newContent = content.replace(firstLine, portableShebang);
427
- (0, fs_1.writeFileSync)(scriptPath, newContent, { mode: 0o755 });
428
- }
429
- }
430
- }
431
- /**
432
- * Synchronous version of convertWindowsScriptsToLinux.
433
- */
434
- function convertWindowsScriptsToLinuxSync(stagingDir) {
435
- if (platform_1.isWindows) {
436
- const binDir = (0, path_1.join)(stagingDir, 'bin');
437
- if (!pathExistsSync(binDir)) {
438
- return;
439
- }
440
- const entries = (0, fs_1.readdirSync)(binDir);
441
- for (const entry of entries) {
442
- if (!entry.endsWith('.exe')) {
443
- continue;
444
- }
445
- const scriptName = entry.slice(0, -4); // Remove .exe extension
446
- const entryPoint = KNOWN_CONSOLE_SCRIPTS[scriptName];
447
- if (entryPoint) {
448
- const [modulePath, funcName] = entryPoint;
449
- const exePath = (0, path_1.join)(binDir, entry);
450
- const scriptPath = (0, path_1.join)(binDir, scriptName);
451
- // Remove the Windows .exe file
452
- (0, fs_1.unlinkSync)(exePath);
453
- // Create Linux-compatible shell script
454
- const scriptContent = generateLinuxConsoleScript(modulePath, funcName);
455
- (0, fs_1.writeFileSync)(scriptPath, scriptContent, { mode: 0o755 });
456
- }
457
- }
458
- }
459
- else {
460
- rewriteUnixShebangsSync(stagingDir);
461
- }
462
- }
463
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/lib/packaging/helpers.ts"],"names":[],"mappings":";;;AAgCA,0CAEC;AAKD,sCAEC;AAsBD,kDAUC;AA8BD,kDA+BC;AAED,wCAGC;AAwBD,wCAKC;AAED,sDAcC;AAED,gCAEC;AAED,4CAOC;AAsBD,kDAMC;AAsBD,0DA8BC;AAED,gDAGC;AAsBD,gDAKC;AAED,8DAcC;AAsBD,oDAOC;AAED,0DAMC;AA0ED,oEAiCC;AAmCD,4EAiCC;AAxhBD,4CAA0C;AAC1C,gDAA8C;AAC9C,oDAA0F;AAC1F,qCAA8F;AAG9F,mCAAiC;AACjC,2BAYY;AACZ,0CAAoF;AACpF,+BAAiE;AACjE,8CAA2C;AAE3C,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;GAEG;AACH,SAAgB,eAAe,CAAC,cAA8B;IAC5D,OAAO,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAC9C,CAAC;AAED;;GAEG;AACH,SAAgB,aAAa,CAAC,cAA8B;IAC1D,OAAO,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC;AAYD,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;AAEpG,QAAA,kBAAkB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,YAAoB,EAA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C;QACd,MAAM,MAAM,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QACvC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;YAC5B,OAAO;QACT,CAAC;QAED,MAAM,OAAO,GAAG,IAAA,gBAAW,EAAC,MAAM,CAAC,CAAC;QAEpC,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC5B,SAAS;YACX,CAAC;YAED,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,wBAAwB;YAC/D,MAAM,UAAU,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC;YAErD,IAAI,UAAU,EAAE,CAAC;gBACf,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,GAAG,UAAU,CAAC;gBAC1C,MAAM,OAAO,GAAG,IAAA,WAAI,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBACpC,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC;gBAE5C,+BAA+B;gBAC/B,IAAA,eAAU,EAAC,OAAO,CAAC,CAAC;gBAEpB,uCAAuC;gBACvC,MAAM,aAAa,GAAG,0BAA0B,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;gBACvE,IAAA,kBAAa,EAAC,UAAU,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5D,CAAC;QACH,CAAC;IACH,CAAC;SAAM,CAAC;QACN,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;AACH,CAAC"}
@@ -1,40 +0,0 @@
1
- import type { AgentCoreProjectSpec, AgentEnvSpec, RuntimeVersion } from '../../schema';
2
- import type { ArtifactResult, CodeBundleConfig, CodeZipPackager, PackageOptions, RuntimePackager } from './types/packaging';
3
- /**
4
- * Validate that an agent exists in the config
5
- * @param project AgentCore project configuration
6
- * @param agentName Name of agent to validate
7
- * @throws PackagingError if agent not found
8
- */
9
- export declare function validateAgentExists(project: AgentCoreProjectSpec, agentName: string): void;
10
- /**
11
- * Get the async runtime packager for CLI usage based on runtime version.
12
- * Supports both Python and Node/TypeScript runtimes.
13
- */
14
- export declare function getRuntimePackager(runtimeVersion: RuntimeVersion): RuntimePackager;
15
- /**
16
- * Get the sync CodeZip packager for CDK bundling based on runtime version.
17
- * Supports both Python and Node/TypeScript runtimes.
18
- */
19
- export declare function getCodeZipPackager(runtimeVersion: RuntimeVersion): CodeZipPackager;
20
- /**
21
- * Get the async runtime packager for Container agents.
22
- */
23
- export declare function getContainerPackager(): RuntimePackager;
24
- /**
25
- * Package a runtime asynchronously.
26
- * This is the primary API for CLI usage.
27
- * Automatically selects the appropriate packager based on build type and runtime version.
28
- */
29
- export declare function packRuntime(spec: AgentEnvSpec, options?: PackageOptions): Promise<ArtifactResult>;
30
- /**
31
- * Package a code bundle synchronously.
32
- * This is the primary API for CDK bundling.
33
- * Works with AgentEnvSpec or any object with name, codeLocation, and entrypoint.
34
- * Defaults to Python if no runtimeVersion is specified.
35
- */
36
- export declare function packCodeZipSync(config: CodeBundleConfig | AgentEnvSpec, options?: PackageOptions): ArtifactResult;
37
- export type { ArtifactResult, CodeBundleConfig, CodeZipPackager, PackageOptions, RuntimePackager, } from './types/packaging';
38
- export * from './errors';
39
- export { resolveCodeLocation } from './helpers';
40
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/packaging/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOvF,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAM1F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,eAAe,CAQlF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,EAAE,cAAc,GAAG,eAAe,CAQlF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,eAAe,CAEtD;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAGvG;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,gBAAgB,GAAG,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,cAAc,CAIjH;AAED,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC"}