spawn-cli 0.1.2__py3-none-any.whl → 0.1.4__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.
@@ -25,15 +25,10 @@ from spawn_cli.models.skill import SkillFileRef, SkillMetadata, SkillRawInfo
25
25
  CANONICAL_IDE_KEYS: tuple[str, ...] = (
26
26
  "cursor",
27
27
  "codex",
28
- "qoder",
29
28
  "claude-code",
30
- "qwen-code",
31
29
  "windsurf",
32
30
  "github-copilot",
33
- "aider",
34
- "zed",
35
31
  "gemini-cli",
36
- "devin",
37
32
  )
38
33
 
39
34
  SPAWN_GITIGNORE_START = "# spawn:start"
spawn_cli/ide/_stub.py CHANGED
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  import warnings
4
4
  from pathlib import Path
5
5
 
6
- from .registry import DetectResult, IdeAdapter, IdeCapabilities, register
6
+ from .registry import DetectResult, IdeAdapter, IdeCapabilities
7
7
  from spawn_cli.models.mcp import NormalizedMcp
8
8
  from spawn_cli.models.skill import SkillMetadata
9
9
 
@@ -49,15 +49,4 @@ class StubAdapter(IdeAdapter):
49
49
  return ""
50
50
 
51
51
 
52
- _STUBS: list[tuple[str, IdeCapabilities]] = [
53
- ("qoder", IdeCapabilities("native", "project", "project", "agents-md")),
54
- ("qwen-code", IdeCapabilities("native", "project", "project", "qwen-md")),
55
- ("aider", IdeCapabilities("entry-only", "unsupported", "project", "conventions-md")),
56
- ("zed", IdeCapabilities("unsupported", "project", "unsupported", "agents-md")),
57
- ("devin", IdeCapabilities("native", "project", "unsupported", "agents-md")),
58
- ]
59
-
60
- for _key, _caps in _STUBS:
61
- register(StubAdapter(_key, _caps))
62
-
63
52
  __all__ = ["StubAdapter"]
spawn_cli/ide/registry.py CHANGED
@@ -86,7 +86,6 @@ class IdeAdapter(ABC):
86
86
 
87
87
  ALIASES: dict[str, str] = {
88
88
  "claude": "claude-code",
89
- "qwen": "qwen-code",
90
89
  "gemini": "gemini-cli",
91
90
  "copilot": "github-copilot",
92
91
  "github": "github-copilot",
@@ -0,0 +1,214 @@
1
+ Metadata-Version: 2.4
2
+ Name: spawn-cli
3
+ Version: 0.1.4
4
+ Summary: A minimal installable Python CLI package.
5
+ License: MIT
6
+ Classifier: License :: OSI Approved :: MIT License
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: pydantic>=2.0
11
+ Requires-Dist: ruamel.yaml>=0.18
12
+ Requires-Dist: filelock>=3.12
13
+ Requires-Dist: httpx>=0.27
14
+ Requires-Dist: tomli>=2.0; python_version < "3.11"
15
+ Requires-Dist: tomli-w>=1.0
16
+ Dynamic: license-file
17
+
18
+ ## What is Spawn?
19
+
20
+ Spawn is a framework for building **AIDD** (AI-driven development) methodologies. It supports both **authoring** methodologies and **applying** them in a project. Within a single repository you can use **several** AIDD methodologies in a coherent way—shared navigation, skills, rules, and tooling stay aligned instead of competing ad hoc setups.
21
+
22
+ ## What is spawn-cli?
23
+
24
+ **spawn-cli** is the utility that manages methodologies installed in your project. In Spawn terminology those packs are **extensions**: versioned content that usually lives in a **Git** repository. The CLI **instantiates** instruction files, process descriptions, rules, agent skills, and wires their behavior together (navigation, IDE-facing outputs, optional lifecycle hooks). Extensions can also declare **MCP servers**, **agent-ignore** patterns, **git-ignore** entries, and similar integration points—see [`spec/design/extension-author-guide.md`](spec/design/extension-author-guide.md).
25
+
26
+ ### How spawn-cli keeps methodologies coherent
27
+
28
+ Several methodologies in one repo stay aligned because Spawn maintains **one shared navigation index**: [`spawn/navigation.yaml`](spec/design/data-structure.md) aggregates mandatory and contextual reads from **every installed extension** plus local [`spawn/rules/`](spec/design/user-guide.md) (refreshed with `spawn rules refresh`). Agents are steered through that file instead of chasing disconnected README fragments.
29
+
30
+ On each install or refresh, the CLI **regenerates IDE-facing artifacts** so skills and entry points stay consistent across extensions: rendered skill bodies include **paths and descriptions** wired from navigation (required reads, contextual hints, rule files), MCP snippets normalize server definitions per IDE adapter, and ignore lists merge without manual copy-paste. The net effect is that methodology files, generated skill links, and repo rules **compose** rather than contradict each other.
31
+
32
+ **Example:** [**spawn-ext-spectask**](https://github.com/noant/spawn-ext-spectask) (Spec-Tasks methodology: spec layout, skills, design index) and [**spawn-ext-creator**](https://github.com/noant/spawn-ext-creator) (authoring flows, including agent-guided extension bootstrap) can be installed in the **same** repository and still share that single index and merged IDE outputs.
33
+
34
+ ## How to install spawn-cli
35
+
36
+ **Recommended:** install `spawn` on your `PATH` with **uv**:
37
+
38
+ ```bash
39
+ uv tool install spawn-cli && spawn --help
40
+ ```
41
+
42
+ Run once without installing (ephemeral **uvx**):
43
+
44
+ ```bash
45
+ uvx --from spawn-cli spawn --help
46
+ ```
47
+
48
+ **Upgrade** the persistent uv tool:
49
+
50
+ ```bash
51
+ uv tool upgrade spawn-cli && spawn --help
52
+ ```
53
+
54
+ Force a fresh resolver for a one-shot run:
55
+
56
+ ```bash
57
+ uvx --refresh --from spawn-cli spawn --help
58
+ ```
59
+
60
+ Additional installers (**pip**, **pipx**, local checkout) and upgrade notes: **[spec/design/user-guide.md](spec/design/user-guide.md#other-installation-options)**.
61
+
62
+ ## How spawn-cli works
63
+
64
+ Run commands from the **root of the repository** you are configuring. Almost every command requires `spawn init` first (it creates the `spawn/` tree). Only one Spawn process should touch a repo at a time (file lock).
65
+
66
+ ### Initialize a repo
67
+
68
+ ```bash
69
+ spawn init
70
+ ```
71
+
72
+ ### IDE adapters
73
+
74
+ For each **supported IDE** adapter, show whether it **looks used in the current repository** and what it can render (e.g. skills, MCP, agent-ignore):
75
+
76
+ ```bash
77
+ spawn ide list-supported-ides
78
+ ```
79
+
80
+ Register or drop IDE keys for **this** repo (examples: `cursor`, `codex`):
81
+
82
+ ```bash
83
+ spawn ide add cursor
84
+ spawn ide add cursor codex
85
+ spawn ide remove codex
86
+ spawn ide list
87
+ ```
88
+
89
+ ### Extensions
90
+
91
+ Add from a Git URL, optional branch (also supports ZIP paths and local directories/archives):
92
+
93
+ ```bash
94
+ spawn extension add https://github.com/noant/spawn-ext-spectask
95
+ spawn extension add https://github.com/noant/spawn-ext-spectask --branch main
96
+ ```
97
+
98
+ Maintain installed packs:
99
+
100
+ ```bash
101
+ spawn extension list
102
+ spawn extension update spectask
103
+ spawn extension reinstall spectask
104
+ spawn extension remove spectask
105
+ spawn extension healthcheck spectask
106
+ ```
107
+
108
+ Authoring helpers (run inside or next to an extension project):
109
+
110
+ ```bash
111
+ spawn extension init ./my-ext --name my-ext
112
+ spawn extension check ./my-ext
113
+ spawn extension check ./my-ext --strict
114
+ spawn extension from-rules ./repo-with-spawn-rules --name my-ext --output ./out
115
+ ```
116
+
117
+ ### Navigation from repo rules
118
+
119
+ After editing files under `spawn/rules/`, refresh mandatory reads in `spawn/navigation.yaml`:
120
+
121
+ ```bash
122
+ spawn rules refresh
123
+ ```
124
+
125
+ ### Batch install from a build manifest
126
+
127
+ `spawn build list` / `spawn build install` take a **build source** (positional argument; there is no implicit default):
128
+
129
+ - **Local directory** whose root contains **`extensions.yaml`**. Spawn resolves the path (e.g. `.` → current working directory) and reads **`<that-directory>/extensions.yaml`** — not a path to the YAML file itself.
130
+ - Otherwise a **Git URL**, **ZIP URL**, or **local path** to a repository tree: Spawn stages it, then looks for **`extensions.yaml`** at that root or, if there is exactly one top-level subdirectory, under that folder (`extensions.yaml not found` if neither applies).
131
+
132
+ Each manifest entry is an extension source; optional per-entry `branch` overrides the CLI default for that row.
133
+
134
+ Minimal `extensions.yaml`:
135
+
136
+ ```yaml
137
+ extensions:
138
+ - path: https://github.com/org/extension-one.git
139
+ branch: main
140
+ - path: https://github.com/org/extension-two.git
141
+ ```
142
+
143
+ Dry-run (prints resolved entries as YAML), then install:
144
+
145
+ ```bash
146
+ # Manifest at ./extensions.yaml (cwd is usually your initialized target repo if you keep it there)
147
+ spawn build list .
148
+ spawn build install .
149
+
150
+ spawn build install /path/to/methodology-bundle
151
+ spawn build install https://github.com/org/team-methodology.git --branch main
152
+ ```
153
+
154
+ The **`--branch`** flag applies when the **build source** is Git (clone revision). Entries that omit `branch` fall back to that value.
155
+
156
+ ### Example extension
157
+
158
+ `[spawn-ext-spectask](https://github.com/noant/spawn-ext-spectask)` is a concrete extension you can install with `spawn extension add` as shown above.
159
+
160
+ ---
161
+
162
+ - **Python:** 3.10+ (see `pyproject.toml`).
163
+ - **Deep dives:** `[spec/design/user-guide.md](spec/design/user-guide.md)` and `[spec/design/utility.md](spec/design/utility.md)`.
164
+
165
+ ## How to create an extension
166
+
167
+ An extension can be a **full** AIDD methodology, **team** conventions (review rules, codestyle), **scaffolds** for projects that default to AIDD-friendly layouts, **skill-only** bundles, or anything else you can express as declarative files plus optional setup hooks—anything that fits the `extsrc/` layout described in the author guide.
168
+
169
+ **Bootstrap with the creator extension** (install like any other extension after `spawn init`):
170
+
171
+ ```bash
172
+ spawn extension add https://github.com/noant/spawn-ext-creator
173
+ ```
174
+
175
+ **Scaffold an empty extension** with the CLI (requires `spawn init` in the repo you run from — same as other subcommands). This lays out `extsrc/` with a starter `config.yaml`, plus empty `skills/`, `files/`, and `setup/`:
176
+
177
+ ```bash
178
+ spawn extension init --name my-extension
179
+ spawn extension init ./my-extension --name my-extension
180
+ ```
181
+
182
+ **Agent-guided scaffold** with **[spawn-ext-creator](https://github.com/noant/spawn-ext-creator)** (install the extension above, then `spawn ide add <ide>` so skills render into your IDE): invoke the **`spawn-ext-bootstrap`** skill so the agent lays out a fuller extension repo than the bare CLI skeleton—for example:
183
+
184
+ > Use the **spawn-ext-bootstrap** skill to bootstrap a new Spawn extension with stable id `my-extension` under `./my-extension`.
185
+
186
+ Other creator skills (declaring `config.yaml`, skill sources, MCP, verification, etc.) ship under the same extension; see the rendered skill list after install.
187
+
188
+ Read **[spec/design/extension-author-guide.md](spec/design/extension-author-guide.md)** for the full model: required `extsrc/config.yaml`, mapping files under `extsrc/files/`, optional `skills/`, `mcp.json`, `agent-ignore`, `setup/` scripts, and how static vs artifact content is updated on `spawn extension update`.
189
+
190
+ **Minimal mental model:**
191
+
192
+ - `**extsrc/config.yaml`** — `schema`, `version`, stable `**name`** (install path `spawn/.extend/<name>/`), plus `files`, `skills`, ignores, etc.
193
+ - `**extsrc/files/**` — template tree mirrored into the target repo according to `files:` entries.
194
+ - `**spawn extension check . --strict**` — validate before publishing or tagging a release.
195
+
196
+ ## How to add rules without creating an extension
197
+
198
+ Project-local conventions can live under **`spawn/rules/`** without packaging them as an extension. After **`spawn init`**, add any files there (for example `spawn/rules/team.md`); Spawn discovers **every file** under that directory tree.
199
+
200
+ Wire those paths into **`spawn/navigation.yaml`** so mandatory reads stay aligned with what is on disk:
201
+
202
+ ```bash
203
+ spawn rules refresh
204
+ ```
205
+
206
+ That rescans **`spawn/rules/`**, attaches missing rule files under a **`rules`** group inside **`read-required`** (default description **`Local rule file.`** until you edit it), and drops stale entries whose files were deleted (you may see a warning).
207
+
208
+ Rule files can be **mandatory** (**`read-required`**) or **contextual** (**`read-contextual`**). **`spawn rules refresh`** only auto-adds **new** paths into **`read-required` → `rules`**. To keep a rule **contextual**, declare it under **`read-contextual` → `rules`** in **`spawn/navigation.yaml`** with the same shape (`path`, `description`)—once a path appears in either rules list, refresh will not duplicate it into the other tier. You can move entries between **`read-required`** and **`read-contextual`** by editing **`spawn/navigation.yaml`**, then run **`spawn rules refresh`** so both lists stay consistent with files on disk.
209
+
210
+ Extension-backed reads (`ext:` entries) are unrelated—you only maintain **`spawn/rules/**`** plus **`spawn rules refresh`** for repo-local rules.
211
+
212
+ ## License
213
+
214
+ MIT — see [LICENSE](LICENSE).
@@ -6,18 +6,18 @@ spawn_cli/core/__init__.py,sha256=a5rOQzNZ55nbXJPXwcTVws20MqhoEAHQ5_Cay1h2mDU,21
6
6
  spawn_cli/core/download.py,sha256=C8s2_sDcuKFJZr5YPyB2AOOX8P8aBXumSgunO_r-InA,19203
7
7
  spawn_cli/core/errors.py,sha256=gyFGgD5QEUUi218mBOcSQRJv4191XNdRyLW_9d_EUso,132
8
8
  spawn_cli/core/high_level.py,sha256=B9CH0H09Tlxw16_H0OLaarYjijVAr-HUP0uX1jG3-04,17377
9
- spawn_cli/core/low_level.py,sha256=wVp3eTpB_FhJmCVQpZii3IUDWdVAJ5uZ72-_tlSuiq8,30882
9
+ spawn_cli/core/low_level.py,sha256=tRyfBwbHK3SpEHheT1EmtdZGCtGzzEVdK9nErwyouwQ,30810
10
10
  spawn_cli/core/scripts.py,sha256=sowUZPeSGbrxu_hoI05DYjBhrQK7NAiiaw6ed99JwTc,7591
11
11
  spawn_cli/ide/__init__.py,sha256=mtpcKkzqP9ykCZUyHxrafUAtF-8w11tOttt79Wi_WYQ,1592
12
12
  spawn_cli/ide/_helpers.py,sha256=aXUMCDBdmuttuVE73s7_m-PmFsaAblamQNpjEt3j7sc,5770
13
- spawn_cli/ide/_stub.py,sha256=9vBgzS6mLLxzTzbC5kIH4Cw9K94s2OLgMs-buLjKhsg,2513
13
+ spawn_cli/ide/_stub.py,sha256=DbXspl3sk9mhFrrz95PsamLYSugkakpOYl5c8Im7W5g,1976
14
14
  spawn_cli/ide/_vacancy.py,sha256=uPxQE35U_wr1lD3Cp3ey4Z-cI56CAu9dEvU8I9Iq62g,7058
15
15
  spawn_cli/ide/claude_code.py,sha256=4E15jJWEKqlwIUMzGyKaGoX9QRdi0f9vDyo0fWeVLcw,5784
16
16
  spawn_cli/ide/codex.py,sha256=03BOU_kAWH3jBNycEhQKyo06vrxr8aAgB-foUle9r4I,4383
17
17
  spawn_cli/ide/cursor.py,sha256=w_n4lC5N7uyqO7__VKQrBulY0SKtXMEeqSXTDn1_HjA,4753
18
18
  spawn_cli/ide/gemini_cli.py,sha256=sFN-c5yceJnN-VyW7DEASj_KrGT6SnN_DxfWPQPLcxg,4993
19
19
  spawn_cli/ide/github_copilot.py,sha256=COMo8TSUur1wHXhMVSlqjRb7wVjnbqh7YxIrMKIQ57g,6304
20
- spawn_cli/ide/registry.py,sha256=9SfJRlxsrqo1IIb3xizUWKHMzBXggILE-kKksN-OX1g,4334
20
+ spawn_cli/ide/registry.py,sha256=906ipurjyL2qw9BYuSMx0ZlaRsk_oSwHiy2YuvpwM4g,4309
21
21
  spawn_cli/ide/windsurf.py,sha256=aX9HaiM7IPa6b93q9ouzZhi5tRr2PqI2xblfm3aKwTc,3334
22
22
  spawn_cli/io/__init__.py,sha256=x8PLDho22PdDmliprX2QnmxyTMDKR9mD0ro7TEkJ1Mg,550
23
23
  spawn_cli/io/json_io.py,sha256=wVmuSM61iP9PgSbd3oFjP_KWXAnmgpZxUamb69q18Wo,552
@@ -34,8 +34,9 @@ spawn_cli/models/navigation.py,sha256=S25xqUgnq0uVEKXs7UjpCqBQ9PifkeSRogMsLnkXMq
34
34
  spawn_cli/models/skill.py,sha256=dnzParuZ0xIZ0PcKmS04WFkuiKti_ml5QGusta9aEJw,701
35
35
  spawn_cli/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  spawn_cli/resources/default_core_config.yaml,sha256=ecnGtWB3R0eAYEHVkzZWeuh2_wt9EqsFKZf9BurZGUE,95
37
- spawn_cli-0.1.2.dist-info/METADATA,sha256=LNBz-Tqg0FrzMF64ct4stK73C6kKhx4LjXJGZcUx7ds,337
38
- spawn_cli-0.1.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
39
- spawn_cli-0.1.2.dist-info/entry_points.txt,sha256=LPd7krLFNds0otEoDGEJpvDOiubPekGKJvMgcpvQd7M,45
40
- spawn_cli-0.1.2.dist-info/top_level.txt,sha256=IzK1liuh9tgdhkh6yDvGQvtBDvKYXzSQ86Ty-a50lT8,10
41
- spawn_cli-0.1.2.dist-info/RECORD,,
37
+ spawn_cli-0.1.4.dist-info/licenses/LICENSE,sha256=uMctKdpDqHXMoVUkguN68ucE5c-4h73IZS5YtX7WdX0,1100
38
+ spawn_cli-0.1.4.dist-info/METADATA,sha256=dRJn1ckCgI3VMtIee3fw0DSaXF0hnuJNgnfhcDl9rtE,10661
39
+ spawn_cli-0.1.4.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
40
+ spawn_cli-0.1.4.dist-info/entry_points.txt,sha256=LPd7krLFNds0otEoDGEJpvDOiubPekGKJvMgcpvQd7M,45
41
+ spawn_cli-0.1.4.dist-info/top_level.txt,sha256=IzK1liuh9tgdhkh6yDvGQvtBDvKYXzSQ86Ty-a50lT8,10
42
+ spawn_cli-0.1.4.dist-info/RECORD,,
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 spawn-cli contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,11 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: spawn-cli
3
- Version: 0.1.2
4
- Summary: A minimal installable Python CLI package.
5
- Requires-Python: >=3.10
6
- Requires-Dist: pydantic>=2.0
7
- Requires-Dist: ruamel.yaml>=0.18
8
- Requires-Dist: filelock>=3.12
9
- Requires-Dist: httpx>=0.27
10
- Requires-Dist: tomli>=2.0; python_version < "3.11"
11
- Requires-Dist: tomli-w>=1.0