fix: stale manifest cleanup, resolve with project_path, AGENTS.md add docs

- remove_tracked_files: count only still-existing files as remaining;
  user-deleted files no longer prevent manifest cleanup
- init --agent: pass project_path to resolve_agent_pack so project-level
  overrides (.specify/agents/) are honored during --here init
- AGENTS.md: update agent add to show --from <path> requirement and note
  catalog fetch is not yet implemented
This commit is contained in:
Manfred Riem
2026-03-23 12:44:25 -05:00
parent ca9c73da0f
commit 38ae759568
3 changed files with 14 additions and 7 deletions

View File

@@ -1877,7 +1877,7 @@ def init(
if use_agent_pack:
from .agent_pack import resolve_agent_pack, load_bootstrap, PackResolutionError, AgentPackError
try:
resolved = resolve_agent_pack(selected_ai)
resolved = resolve_agent_pack(selected_ai, project_path=project_path)
agent_bootstrap = load_bootstrap(resolved.path, resolved.manifest)
console.print(f"[dim]Pack-based flow: {resolved.manifest.name} ({resolved.source})[/dim]")
except (PackResolutionError, AgentPackError) as exc: