bedrock-agentcore-starter-toolkit 0.1.27__py3-none-any.whl → 0.1.28__py3-none-any.whl

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.

Potentially problematic release.


This version of bedrock-agentcore-starter-toolkit might be problematic. Click here for more details.

@@ -162,20 +162,28 @@ def _detect_entrypoint_in_source(source_path: str, non_interactive: bool = False
162
162
  # Use operations layer for detection
163
163
  detected = detect_entrypoint(source_dir)
164
164
 
165
- if not detected:
166
- # No fallback prompt - fail with clear error message
165
+ if len(detected) == 0:
166
+ # No files found - error
167
167
  rel_source = get_relative_path(source_dir)
168
168
  _handle_error(
169
169
  f"No entrypoint file found in {rel_source}\n"
170
170
  f"Expected one of: main.py, agent.py, app.py, __main__.py\n"
171
171
  f"Please specify full file path (e.g., {rel_source}/your_agent.py)"
172
172
  )
173
+ elif len(detected) > 1:
174
+ # Multiple files found - error with list
175
+ rel_source = get_relative_path(source_dir)
176
+ files_list = ", ".join(f.name for f in detected)
177
+ _handle_error(
178
+ f"Multiple entrypoint files found in {rel_source}: {files_list}\n"
179
+ f"Please specify full file path (e.g., {rel_source}/main.py)"
180
+ )
173
181
 
174
- # Show detection and confirm
175
- rel_entrypoint = get_relative_path(detected)
182
+ # Exactly one file - show detection and confirm
183
+ rel_entrypoint = get_relative_path(detected[0])
176
184
 
177
185
  _print_success(f"Using entrypoint file: [cyan]{rel_entrypoint}[/cyan]")
178
- return str(detected)
186
+ return str(detected[0])
179
187
 
180
188
 
181
189
  # Define options at module level to avoid B008
@@ -60,26 +60,30 @@ def get_relative_path(path: Path, base: Optional[Path] = None) -> str:
60
60
  return str(path_obj)
61
61
 
62
62
 
63
- def detect_entrypoint(source_path: Path) -> Optional[Path]:
64
- """Detect entrypoint file in source directory.
63
+ def detect_entrypoint(source_path: Path) -> List[Path]:
64
+ """Detect entrypoint files in source directory.
65
65
 
66
66
  Args:
67
67
  source_path: Directory to search for entrypoint
68
68
 
69
69
  Returns:
70
- Path to detected entrypoint file, or None if not found
70
+ List of detected entrypoint files (empty list if none found)
71
71
  """
72
72
  ENTRYPOINT_CANDIDATES = ["agent.py", "app.py", "main.py", "__main__.py"]
73
73
 
74
74
  source_dir = Path(source_path)
75
+ found_files = []
76
+
75
77
  for candidate in ENTRYPOINT_CANDIDATES:
76
78
  candidate_path = source_dir / candidate
77
79
  if candidate_path.exists():
80
+ found_files.append(candidate_path)
78
81
  log.debug("Detected entrypoint: %s", candidate_path)
79
- return candidate_path
80
82
 
81
- log.debug("No entrypoint found in %s", source_path)
82
- return None
83
+ if not found_files:
84
+ log.debug("No entrypoint found in %s", source_path)
85
+
86
+ return found_files
83
87
 
84
88
 
85
89
  def detect_requirements(source_path: Path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bedrock-agentcore-starter-toolkit
3
- Version: 0.1.27
3
+ Version: 0.1.28
4
4
  Summary: A starter toolkit for using Bedrock AgentCore
5
5
  Project-URL: Homepage, https://github.com/aws/bedrock-agentcore-starter-toolkit
6
6
  Project-URL: Bug Tracker, https://github.com/aws/bedrock-agentcore-starter-toolkit/issues
@@ -9,7 +9,7 @@ bedrock_agentcore_starter_toolkit/cli/import_agent/__init__.py,sha256=tyM3dXM3Tc
9
9
  bedrock_agentcore_starter_toolkit/cli/import_agent/agent_info.py,sha256=CcPXbKNnI9fc7NyFmZBjB3PkB0wAz2Q_kBGoUVcnngA,9736
10
10
  bedrock_agentcore_starter_toolkit/cli/import_agent/commands.py,sha256=vpA66fGwKf6cxBelT3Yb_Af5Ow3AMquGLIDe-tBLjmc,22419
11
11
  bedrock_agentcore_starter_toolkit/cli/runtime/__init__.py,sha256=0zKPPoYThoDIr3DZhIQJavq5nVTKRsgcE1s9--wx118,60
12
- bedrock_agentcore_starter_toolkit/cli/runtime/commands.py,sha256=1ZQmPi30L-n2IlqwIiIHoARWmsR1ntcNYpJ4f3VMZRo,66966
12
+ bedrock_agentcore_starter_toolkit/cli/runtime/commands.py,sha256=vETyAFuQ85uhRXKvWhITX-g7SuzrPnwHSgM-Hn3GjYY,67340
13
13
  bedrock_agentcore_starter_toolkit/cli/runtime/configuration_manager.py,sha256=I8Ptl7HIKLsczVMBPonaAYXnOOqm1-vi3FkOdVR6aCE,17003
14
14
  bedrock_agentcore_starter_toolkit/notebook/__init__.py,sha256=wH1ZzIVKsKT_P0qX2kIIoyVxeHj8K40odfR1YI3McHw,129
15
15
  bedrock_agentcore_starter_toolkit/notebook/runtime/__init__.py,sha256=DoGfB_uGFLANJVE9rSZtTH3ymw76WBWmD9vORvBIdXs,66
@@ -41,7 +41,7 @@ bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/semantic.p
41
41
  bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/summary.py,sha256=X0sVh-6Hw9PPnpPQucG_M7gVyXUiElZInFXBN8WDFUQ,1015
42
42
  bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/user_preference.py,sha256=JJPAzt_Shix5a-RJEf7xOEzN5kxtX3dpP8xoMvry61U,996
43
43
  bedrock_agentcore_starter_toolkit/operations/runtime/__init__.py,sha256=YhRXupUdNAfR5GNbwQOHk-YJs5bHh_km01e_e4kk5uk,1123
44
- bedrock_agentcore_starter_toolkit/operations/runtime/configure.py,sha256=vG3Bg--TvL8SpEqMaolLeLlXnPFBdMPUKBG_Q3-vOH8,24076
44
+ bedrock_agentcore_starter_toolkit/operations/runtime/configure.py,sha256=ikeGq5tjH7JXevTw1iXv1xEq4OJdkpBS2j4_HpHYFzY,24150
45
45
  bedrock_agentcore_starter_toolkit/operations/runtime/create_role.py,sha256=1-b_wBvkOXNh-HJsxATwHfXQqj0dpdETds0FNSTY0BE,16116
46
46
  bedrock_agentcore_starter_toolkit/operations/runtime/destroy.py,sha256=iyAH1-D734cmiluASGMcp3wwXZ10IlhKi-acsGEQ8Yk,26204
47
47
  bedrock_agentcore_starter_toolkit/operations/runtime/exceptions.py,sha256=7iZNVbsz5XyvnpMM4paJb5_LT6DYdEI3nHhM9f3BERE,869
@@ -78,9 +78,9 @@ bedrock_agentcore_starter_toolkit/utils/runtime/templates/Dockerfile.j2,sha256=7
78
78
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/dockerignore.template,sha256=IDKPnAiCdMLjuvLdItzQiybCW--SEvHAN2yr-B5Mxj4,711
79
79
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/execution_role_policy.json.j2,sha256=BnVE3ofq2PCrl56VFjilG1RkJEiZ2L3MM2wFok7XTaU,5667
80
80
  bedrock_agentcore_starter_toolkit/utils/runtime/templates/execution_role_trust_policy.json.j2,sha256=PPJF6Ofq70W5DUE0NlbmnZjw5RkgepPgkskxEgEG28o,473
81
- bedrock_agentcore_starter_toolkit-0.1.27.dist-info/METADATA,sha256=T53v1Ija4dWU034rkjSW8I35R_p2MyL8YVe5CGc3zfE,9923
82
- bedrock_agentcore_starter_toolkit-0.1.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
83
- bedrock_agentcore_starter_toolkit-0.1.27.dist-info/entry_points.txt,sha256=Tf94DkUf2Tp8P7p8MEXLxre7A7Pp_XNukteiz0wHnk8,77
84
- bedrock_agentcore_starter_toolkit-0.1.27.dist-info/licenses/LICENSE.txt,sha256=nNPOMinitYdtfbhdQgsPgz1UowBznU6QVN3Xs0pSTKU,10768
85
- bedrock_agentcore_starter_toolkit-0.1.27.dist-info/licenses/NOTICE.txt,sha256=rkBsg8DbKqfIoQbveqX9foR4uJPUVAokbkr02pRPilE,8674
86
- bedrock_agentcore_starter_toolkit-0.1.27.dist-info/RECORD,,
81
+ bedrock_agentcore_starter_toolkit-0.1.28.dist-info/METADATA,sha256=vl6OqzB9pL4na52Z_UMhy_wmxHAS5clRBetwILsJBTE,9923
82
+ bedrock_agentcore_starter_toolkit-0.1.28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
83
+ bedrock_agentcore_starter_toolkit-0.1.28.dist-info/entry_points.txt,sha256=Tf94DkUf2Tp8P7p8MEXLxre7A7Pp_XNukteiz0wHnk8,77
84
+ bedrock_agentcore_starter_toolkit-0.1.28.dist-info/licenses/LICENSE.txt,sha256=nNPOMinitYdtfbhdQgsPgz1UowBznU6QVN3Xs0pSTKU,10768
85
+ bedrock_agentcore_starter_toolkit-0.1.28.dist-info/licenses/NOTICE.txt,sha256=rkBsg8DbKqfIoQbveqX9foR4uJPUVAokbkr02pRPilE,8674
86
+ bedrock_agentcore_starter_toolkit-0.1.28.dist-info/RECORD,,