agent-starter-pack 0.17.0__py3-none-any.whl → 0.17.2__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 agent-starter-pack might be problematic. Click here for more details.
- agent_starter_pack/cli/commands/enhance.py +13 -4
- agent_starter_pack/cli/utils/template.py +8 -8
- {agent_starter_pack-0.17.0.dist-info → agent_starter_pack-0.17.2.dist-info}/METADATA +1 -1
- {agent_starter_pack-0.17.0.dist-info → agent_starter_pack-0.17.2.dist-info}/RECORD +7 -7
- {agent_starter_pack-0.17.0.dist-info → agent_starter_pack-0.17.2.dist-info}/WHEEL +0 -0
- {agent_starter_pack-0.17.0.dist-info → agent_starter_pack-0.17.2.dist-info}/entry_points.txt +0 -0
- {agent_starter_pack-0.17.0.dist-info → agent_starter_pack-0.17.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -94,16 +94,22 @@ def display_base_template_selection(current_base: str) -> str:
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
def display_agent_directory_selection(
|
|
97
|
-
current_dir: pathlib.Path, detected_directory: str
|
|
97
|
+
current_dir: pathlib.Path, detected_directory: str, base_template: str | None = None
|
|
98
98
|
) -> str:
|
|
99
99
|
"""Display available directories and prompt for agent directory selection."""
|
|
100
|
+
# Determine the required object name based on base template
|
|
101
|
+
is_adk = base_template and "adk" in base_template.lower()
|
|
102
|
+
required_object = "root_agent" if is_adk else "agent"
|
|
103
|
+
|
|
100
104
|
while True:
|
|
101
105
|
console.print()
|
|
102
106
|
console.print("📁 [bold]Agent Directory Selection[/bold]")
|
|
103
107
|
console.print()
|
|
104
108
|
console.print("Your project needs an agent directory containing:")
|
|
105
109
|
console.print(" • [cyan]agent.py[/cyan] file with your agent logic")
|
|
106
|
-
console.print(
|
|
110
|
+
console.print(
|
|
111
|
+
f" • [cyan]{required_object}[/cyan] variable defined in agent.py"
|
|
112
|
+
)
|
|
107
113
|
console.print()
|
|
108
114
|
console.print("Choose where your agent code is located:")
|
|
109
115
|
|
|
@@ -323,7 +329,10 @@ def enhance(
|
|
|
323
329
|
console.print()
|
|
324
330
|
|
|
325
331
|
# Determine agent specification based on template_path
|
|
326
|
-
|
|
332
|
+
# If base_template is specified, use it as the agent spec
|
|
333
|
+
if base_template:
|
|
334
|
+
agent_spec = base_template
|
|
335
|
+
elif template_path == pathlib.Path("."):
|
|
327
336
|
# Current directory - use local@ syntax
|
|
328
337
|
agent_spec = "local@."
|
|
329
338
|
elif template_path.is_dir():
|
|
@@ -421,7 +430,7 @@ def enhance(
|
|
|
421
430
|
# Interactive agent directory selection if not provided via CLI and not auto-approved
|
|
422
431
|
if not agent_directory and not auto_approve:
|
|
423
432
|
selected_agent_directory = display_agent_directory_selection(
|
|
424
|
-
current_dir, detected_agent_directory
|
|
433
|
+
current_dir, detected_agent_directory, base_template
|
|
425
434
|
)
|
|
426
435
|
final_agent_directory = selected_agent_directory
|
|
427
436
|
console.print(
|
|
@@ -100,7 +100,7 @@ def get_overwrite_folders(agent_directory: str) -> list[str]:
|
|
|
100
100
|
|
|
101
101
|
TEMPLATE_CONFIG_FILE = "templateconfig.yaml"
|
|
102
102
|
DEPLOYMENT_FOLDERS = ["cloud_run", "agent_engine"]
|
|
103
|
-
DEFAULT_FRONTEND = "
|
|
103
|
+
DEFAULT_FRONTEND = "None"
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
def get_available_agents(deployment_target: str | None = None) -> dict:
|
|
@@ -1182,14 +1182,11 @@ def copy_files(
|
|
|
1182
1182
|
|
|
1183
1183
|
def copy_frontend_files(frontend_type: str, project_template: pathlib.Path) -> None:
|
|
1184
1184
|
"""Copy files from the specified frontend folder directly to project root."""
|
|
1185
|
-
# Skip copying if frontend_type is "None"
|
|
1186
|
-
if frontend_type == "None":
|
|
1187
|
-
logging.debug("Frontend type is 'None', skipping frontend files")
|
|
1185
|
+
# Skip copying if frontend_type is "None" or empty
|
|
1186
|
+
if not frontend_type or frontend_type == "None":
|
|
1187
|
+
logging.debug("Frontend type is 'None' or empty, skipping frontend files")
|
|
1188
1188
|
return
|
|
1189
1189
|
|
|
1190
|
-
# Use default frontend if none specified
|
|
1191
|
-
frontend_type = frontend_type or DEFAULT_FRONTEND
|
|
1192
|
-
|
|
1193
1190
|
# Get the frontends directory path
|
|
1194
1191
|
frontends_path = (
|
|
1195
1192
|
pathlib.Path(__file__).parent.parent.parent / "frontends" / frontend_type
|
|
@@ -1201,9 +1198,12 @@ def copy_frontend_files(frontend_type: str, project_template: pathlib.Path) -> N
|
|
|
1201
1198
|
copy_files(frontends_path, project_template, overwrite=True)
|
|
1202
1199
|
else:
|
|
1203
1200
|
logging.warning(f"Frontend type directory not found: {frontends_path}")
|
|
1204
|
-
if
|
|
1201
|
+
# Don't fall back to default if it's "None" - just skip
|
|
1202
|
+
if DEFAULT_FRONTEND != "None":
|
|
1205
1203
|
logging.info(f"Falling back to default frontend: {DEFAULT_FRONTEND}")
|
|
1206
1204
|
copy_frontend_files(DEFAULT_FRONTEND, project_template)
|
|
1205
|
+
else:
|
|
1206
|
+
logging.debug("No default frontend configured, skipping frontend files")
|
|
1207
1207
|
|
|
1208
1208
|
|
|
1209
1209
|
def copy_deployment_files(
|
|
@@ -70,7 +70,7 @@ agent_starter_pack/base_template/{{cookiecutter.agent_directory}}/utils/tracing.
|
|
|
70
70
|
agent_starter_pack/base_template/{{cookiecutter.agent_directory}}/utils/typing.py,sha256=cfirFUBZQOwfQjEs9EYYP2nubv6BEpVzFHPj85PTMmg,4221
|
|
71
71
|
agent_starter_pack/cli/main.py,sha256=eKi-Oi6pv2-LNiN3RYdrmvDiLXInWHkNMn8lGlkmVP4,1982
|
|
72
72
|
agent_starter_pack/cli/commands/create.py,sha256=wuRL9lX6_AL6EucRSlixP91iIo5ROeDlLUAOIGOoCbA,47322
|
|
73
|
-
agent_starter_pack/cli/commands/enhance.py,sha256=
|
|
73
|
+
agent_starter_pack/cli/commands/enhance.py,sha256=zFnxuQbEVTUtkRS3XuuuHlZ7wKIrpaNzggYN2100oYM,24622
|
|
74
74
|
agent_starter_pack/cli/commands/list.py,sha256=ZGol9eYB9Yon7JysMUCtpEOwdXzrApdTHzErx6KvT04,6856
|
|
75
75
|
agent_starter_pack/cli/commands/setup_cicd.py,sha256=UnhU8p9emfBV-7_6uKYdUfTQBnsbSIFQbJoMHMq8pik,32507
|
|
76
76
|
agent_starter_pack/cli/utils/__init__.py,sha256=_cTmsXGPqOtK0q8UW5164QTltbJRJFR_Efxq_BRL1-o,1311
|
|
@@ -79,7 +79,7 @@ agent_starter_pack/cli/utils/datastores.py,sha256=gv1V6eDcOEKx4MRNG5C3Y-VfixYq1A
|
|
|
79
79
|
agent_starter_pack/cli/utils/gcp.py,sha256=N6pvNU9gT6DpS7Peipfs57ckvqcUWU7OK1zdqBcQV0M,9276
|
|
80
80
|
agent_starter_pack/cli/utils/logging.py,sha256=61ulUY1hUrpxHDFi0szqsjPlrpxdBvwzfYEEV0o97GA,3530
|
|
81
81
|
agent_starter_pack/cli/utils/remote_template.py,sha256=CD5imiJPGIMVRhGOCiB11oFsz9Pusy_A2kdxsvMfscE,24129
|
|
82
|
-
agent_starter_pack/cli/utils/template.py,sha256=
|
|
82
|
+
agent_starter_pack/cli/utils/template.py,sha256=DawkOJzHV3PvT3MuVvTvoHNOdgYfEb_IR009ox3rNC8,52527
|
|
83
83
|
agent_starter_pack/cli/utils/version.py,sha256=F4udQmzniPStqWZFIgnv3Qg3l9non4mfy2An-Oveqmc,2916
|
|
84
84
|
agent_starter_pack/data_ingestion/README.md,sha256=LNxSQoJW9JozK-TbyGQLj5L_MGWNwrfLk6V6RmQ2oBQ,4032
|
|
85
85
|
agent_starter_pack/data_ingestion/pyproject.toml,sha256=-1Mf2QB8K70ICQV5UPZDpf-fN3UwEQLVzQyxfakCSTY,445
|
|
@@ -172,8 +172,8 @@ agent_starter_pack/utils/generate_locks.py,sha256=LwR46w25CV0_ySF_MS9W2vp7S1Nf17
|
|
|
172
172
|
agent_starter_pack/utils/lock_utils.py,sha256=vqFHTN7lju9to74MKOmLvz80BA47G0CVkxrd1MyLWYQ,2309
|
|
173
173
|
agent_starter_pack/utils/watch_and_rebuild.py,sha256=1hMn29eLpVblfvixV9FEo46u8efmnLuRIn-bPrfdW3g,6694
|
|
174
174
|
llm.txt,sha256=z9FTkAnj3cErCzHj3IES9eB35wW3JGaVsd8a0wA7IMs,15380
|
|
175
|
-
agent_starter_pack-0.17.
|
|
176
|
-
agent_starter_pack-0.17.
|
|
177
|
-
agent_starter_pack-0.17.
|
|
178
|
-
agent_starter_pack-0.17.
|
|
179
|
-
agent_starter_pack-0.17.
|
|
175
|
+
agent_starter_pack-0.17.2.dist-info/METADATA,sha256=yJSYoXd9l5G7IlDuSfpUOv28GDC3B8jyswf1j6hIqZo,11195
|
|
176
|
+
agent_starter_pack-0.17.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
177
|
+
agent_starter_pack-0.17.2.dist-info/entry_points.txt,sha256=QLSX_97UynG0vLpoZ3ePfyCQkaR-g0qglp2b26G4KHQ,71
|
|
178
|
+
agent_starter_pack-0.17.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
179
|
+
agent_starter_pack-0.17.2.dist-info/RECORD,,
|
|
File without changes
|
{agent_starter_pack-0.17.0.dist-info → agent_starter_pack-0.17.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{agent_starter_pack-0.17.0.dist-info → agent_starter_pack-0.17.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|