From b3f25da16f9e872e17558bae4628a12044e0c270 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Apr 2026 18:11:14 +0000 Subject: [PATCH] Fix Windows absolute path detection and .zip example in docstring Agent-Logs-Url: https://github.com/github/spec-kit/sessions/ddeae546-8287-421f-bc5d-1636515bf99a Co-authored-by: mnriem <15701806+mnriem@users.noreply.github.com> --- src/specify_cli/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/specify_cli/__init__.py b/src/specify_cli/__init__.py index e3c59c145..7b0f89a1f 100644 --- a/src/specify_cli/__init__.py +++ b/src/specify_cli/__init__.py @@ -999,7 +999,7 @@ def _install_extension_during_init(project_path: Path, ext_spec: str, speckit_ve return f"{manifest.name} v{manifest.version} installed" # --- Local path --- - if ext_spec.startswith(("./", "../", "/", "~/", ".\\", "..\\")): + if ext_spec.startswith(("./", "../", "/", "~/", ".\\", "..\\")) or Path(ext_spec).is_absolute(): source_path = Path(ext_spec).expanduser().resolve() if not source_path.exists(): raise ValueError(f"Directory not found: {source_path}") @@ -1116,7 +1116,7 @@ def init( specify init my-project --integration copilot --extension git # With bundled extension specify init my-project --extension git --extension selftest # Multiple extensions specify init my-project --extension ./my-extensions/custom-ext # Local path extension - specify init my-project --extension https://example.com/extensions/my-ext.tar.gz # URL extension + specify init my-project --extension https://example.com/extensions/my-ext.zip # URL extension """ show_banner()