agent-starter-pack 0.19.0__py3-none-any.whl → 0.19.1__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.

@@ -562,11 +562,46 @@ def process_template(
562
562
  # Extract agent sample info for labeling when using agent garden with remote templates
563
563
  agent_sample_id = None
564
564
  agent_sample_publisher = None
565
+
566
+ # Handle remote specs with ADK samples metadata
565
567
  if agent_garden and remote_spec and remote_spec.is_adk_samples:
566
568
  # For ADK samples, template_path is like "python/agents/sample-name"
567
569
  agent_sample_id = pathlib.Path(remote_spec.template_path).name
568
570
  # For ADK samples, publisher is always "google"
569
571
  agent_sample_publisher = "google"
572
+ logging.debug(
573
+ f"Detected ADK sample from remote_spec: {agent_sample_id}"
574
+ )
575
+ # Fallback: Detect ADK samples from pyproject.toml (for version-locked templates)
576
+ elif agent_garden and remote_template_path:
577
+ pyproject_path = remote_template_path / "pyproject.toml"
578
+ if pyproject_path.exists():
579
+ try:
580
+ import sys
581
+
582
+ if sys.version_info >= (3, 11):
583
+ import tomllib
584
+ else:
585
+ import tomli as tomllib
586
+
587
+ with open(pyproject_path, "rb") as f:
588
+ pyproject_data = tomllib.load(f)
589
+
590
+ # Extract project name from pyproject.toml
591
+ project_name_from_toml = pyproject_data.get("project", {}).get(
592
+ "name"
593
+ )
594
+
595
+ if project_name_from_toml:
596
+ agent_sample_id = project_name_from_toml
597
+ agent_sample_publisher = (
598
+ "google" # ADK samples are from Google
599
+ )
600
+ logging.debug(
601
+ f"Detected ADK sample from pyproject.toml: {agent_sample_id}"
602
+ )
603
+ except Exception as e:
604
+ logging.debug(f"Failed to read pyproject.toml: {e}")
570
605
 
571
606
  # Create the cookiecutter template structure
572
607
  cookiecutter_template = temp_path / "template"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-starter-pack
3
- Version: 0.19.0
3
+ Version: 0.19.1
4
4
  Summary: CLI to bootstrap production-ready Google Cloud GenAI agent projects from templates.
5
5
  Author-email: Google LLC <agent-starter-pack@google.com>
6
6
  License: Apache-2.0
@@ -87,7 +87,7 @@ agent_starter_pack/cli/utils/gcp.py,sha256=N6pvNU9gT6DpS7Peipfs57ckvqcUWU7OK1zdq
87
87
  agent_starter_pack/cli/utils/logging.py,sha256=61ulUY1hUrpxHDFi0szqsjPlrpxdBvwzfYEEV0o97GA,3530
88
88
  agent_starter_pack/cli/utils/register_gemini_enterprise.py,sha256=g-oDKt6DtxRx1DvhRxVDLqhLlrwfjm56zv65qjNiuXA,14570
89
89
  agent_starter_pack/cli/utils/remote_template.py,sha256=lWfC1_Vx_m4SD-wVHb8tiGfobOH1-o_eWaM1264rwGs,24128
90
- agent_starter_pack/cli/utils/template.py,sha256=dIEYlyI8AjZPcDFfiTLJrgbMdPKLQM-f1kdmxWmONKY,52528
90
+ agent_starter_pack/cli/utils/template.py,sha256=VCNLZ6FXLWUKupLGtYMcQjPTePqE2oFxOIGj-ZiXvpY,54132
91
91
  agent_starter_pack/cli/utils/version.py,sha256=F4udQmzniPStqWZFIgnv3Qg3l9non4mfy2An-Oveqmc,2916
92
92
  agent_starter_pack/data_ingestion/README.md,sha256=LNxSQoJW9JozK-TbyGQLj5L_MGWNwrfLk6V6RmQ2oBQ,4032
93
93
  agent_starter_pack/data_ingestion/pyproject.toml,sha256=w2yypeMM6uA7OWHrLU3SY9NlRgltRA57_NIDyJi8Dfg,467
@@ -178,8 +178,8 @@ agent_starter_pack/utils/generate_locks.py,sha256=LwR46w25CV0_ySF_MS9W2vp7S1Nf17
178
178
  agent_starter_pack/utils/lock_utils.py,sha256=vqFHTN7lju9to74MKOmLvz80BA47G0CVkxrd1MyLWYQ,2309
179
179
  agent_starter_pack/utils/watch_and_rebuild.py,sha256=1hMn29eLpVblfvixV9FEo46u8efmnLuRIn-bPrfdW3g,6694
180
180
  llm.txt,sha256=t04sKZwOwuhQegfeayZKJufyHD_SbA3Zv_KWJYJNO5Y,15378
181
- agent_starter_pack-0.19.0.dist-info/METADATA,sha256=4lHrYhPGmOW3x0Bs6R-yg3EMyxkOs0vijljlyp-Aw3w,11422
182
- agent_starter_pack-0.19.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
183
- agent_starter_pack-0.19.0.dist-info/entry_points.txt,sha256=LO_oGmY1IdlFJRF9s7oIL3qdewC8Q9UtmTV6jWVZq3U,180
184
- agent_starter_pack-0.19.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
185
- agent_starter_pack-0.19.0.dist-info/RECORD,,
181
+ agent_starter_pack-0.19.1.dist-info/METADATA,sha256=KVs75j9wjTwQ4n0zsb3x1yAnubw9upQqNwOaO_T2ebU,11422
182
+ agent_starter_pack-0.19.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
183
+ agent_starter_pack-0.19.1.dist-info/entry_points.txt,sha256=LO_oGmY1IdlFJRF9s7oIL3qdewC8Q9UtmTV6jWVZq3U,180
184
+ agent_starter_pack-0.19.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
185
+ agent_starter_pack-0.19.1.dist-info/RECORD,,