napoln 0.2.4__tar.gz → 0.2.6__tar.gz
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.
- napoln-0.2.6/.release-please-manifest.json +3 -0
- {napoln-0.2.4 → napoln-0.2.6}/CHANGELOG.md +24 -0
- {napoln-0.2.4 → napoln-0.2.6}/PKG-INFO +14 -3
- {napoln-0.2.4 → napoln-0.2.6}/README.md +12 -2
- {napoln-0.2.4 → napoln-0.2.6}/justfile +2 -1
- napoln-0.2.6/napoln-demo.gif +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/pyproject.toml +3 -1
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/__init__.py +1 -1
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/add.py +4 -3
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/upgrade.py +5 -2
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/prompts.py +10 -9
- napoln-0.2.6/src/napoln/skills/napoln-manage/SKILL.md +95 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/test_upgrade.py +4 -1
- {napoln-0.2.4 → napoln-0.2.6}/uv.lock +27 -1
- napoln-0.2.4/.release-please-manifest.json +0 -3
- napoln-0.2.4/SPEC.md +0 -1933
- napoln-0.2.4/STORIES.md +0 -701
- napoln-0.2.4/src/napoln/skills/napoln-manage/SKILL.md +0 -78
- {napoln-0.2.4 → napoln-0.2.6}/.github/workflows/ci.yml +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/.github/workflows/pr-title.yml +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/.github/workflows/release-please.yml +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/.github/workflows/release.yml +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/.gitignore +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/AGENTS.md +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/ARCHITECTURE.md +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/CONTRIBUTING.md +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/LICENSE +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/release-please-config.json +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/skills-lock.json +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/cli.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/__init__.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/config.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/init.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/install.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/list_cmd.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/remove.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/commands/setup.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/__init__.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/agents.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/hasher.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/linker.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/manifest.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/merger.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/resolver.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/store.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/core/validator.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/errors.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/src/napoln/output.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/__init__.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/conftest.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/features/config.feature +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/features/first_run.feature +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/features/init.feature +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/features/install.feature +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/features/list.feature +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/features/setup.feature +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/features/upgrade.feature +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/fixtures/invalid-skill/SKILL.md +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/fixtures/multi-skill-repo/README.md +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/fixtures/multi-skill-repo/skills/skill-a/SKILL.md +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/fixtures/multi-skill-repo/skills/skill-b/SKILL.md +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/fixtures/valid-skill/SKILL.md +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/integration/test_cli.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/__init__.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/conftest.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/test_config.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/test_first_run.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/test_init.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/test_install.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/test_list.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/steps/test_setup.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/unit/test_agents.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/unit/test_hasher.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/unit/test_linker.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/unit/test_manifest.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/unit/test_merger.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/unit/test_resolver.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/unit/test_store.py +0 -0
- {napoln-0.2.4 → napoln-0.2.6}/tests/unit/test_validator.py +0 -0
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.6](https://github.com/raiderrobert/napoln/compare/v0.2.5...v0.2.6) (2026-04-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Documentation
|
|
7
|
+
|
|
8
|
+
* add asciinema demo to README ([94876fa](https://github.com/raiderrobert/napoln/commit/94876fa2ec25f5c043d00b24f37c743418cc56bf))
|
|
9
|
+
* add GIF demo of agent installing skills ([7c3d6cb](https://github.com/raiderrobert/napoln/commit/7c3d6cbde2857353fe5a7ce647cc2fddbd348ab8))
|
|
10
|
+
* move demo GIF to top of README ([33eb773](https://github.com/raiderrobert/napoln/commit/33eb773d0d1aa21392ee1b0efd0ec578901a5217))
|
|
11
|
+
* reorg ([67423c9](https://github.com/raiderrobert/napoln/commit/67423c96317c64576a508d36ed22b073ccf1b70e))
|
|
12
|
+
* restructure README like uv ([8adc744](https://github.com/raiderrobert/napoln/commit/8adc7449a6bf8b37081ef2b02887cfc246355405))
|
|
13
|
+
|
|
14
|
+
## [0.2.5](https://github.com/raiderrobert/napoln/compare/v0.2.4...v0.2.5) (2026-04-16)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* change bundled skill ([dff4f1d](https://github.com/raiderrobert/napoln/commit/dff4f1d25b4dd2a0241f29b31507117a62a3620b))
|
|
20
|
+
* **tests:** block PATH agent detection in upgrade tests ([f656f33](https://github.com/raiderrobert/napoln/commit/f656f333ff1817e9218029b78b6c75f8faabe357))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Documentation
|
|
24
|
+
|
|
25
|
+
* remove spec mention ([3c3386b](https://github.com/raiderrobert/napoln/commit/3c3386ba46d3eaf6893cdf2a1c002f734be460d8))
|
|
26
|
+
|
|
3
27
|
## [0.2.4](https://github.com/raiderrobert/napoln/compare/v0.2.3...v0.2.4) (2026-04-15)
|
|
4
28
|
|
|
5
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: napoln
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: A package manager for agent skills
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -16,6 +16,7 @@ Requires-Dist: pytest-bdd>=8.1; extra == 'dev'
|
|
|
16
16
|
Requires-Dist: pytest-cov>=7.1; extra == 'dev'
|
|
17
17
|
Requires-Dist: pytest>=9.0; extra == 'dev'
|
|
18
18
|
Requires-Dist: ruff>=0.9; extra == 'dev'
|
|
19
|
+
Requires-Dist: ty>=0.0.30; extra == 'dev'
|
|
19
20
|
Description-Content-Type: text/markdown
|
|
20
21
|
|
|
21
22
|
# napoln
|
|
@@ -31,6 +32,8 @@ A package manager for [agent skills](https://agentskills.io/specification). Inst
|
|
|
31
32
|
- **Zero-copy placement.** Reflink (copy-on-write) on APFS and btrfs. Full copy fallback elsewhere.
|
|
32
33
|
- **Self-describing.** A bundled skill teaches your agents how to use napoln.
|
|
33
34
|
|
|
35
|
+

|
|
36
|
+
|
|
34
37
|
## Install
|
|
35
38
|
|
|
36
39
|
Requires Python 3.11+. napoln is published on [PyPI](https://pypi.org/project/napoln/).
|
|
@@ -49,6 +52,16 @@ pipx install napoln # alternative
|
|
|
49
52
|
pip install napoln # plain pip
|
|
50
53
|
```
|
|
51
54
|
|
|
55
|
+
## First Run
|
|
56
|
+
|
|
57
|
+
On first run, napoln installs its bundled management skill so your agents
|
|
58
|
+
know how to use it. After that, your agents can find and install new
|
|
59
|
+
capabilities without prompting you for CLI commands.
|
|
60
|
+
|
|
61
|
+
Agents prefer `uvx napoln` so they never hit PATH issues. The bundled
|
|
62
|
+
skill is automatically installed alongside your first skill, so it works
|
|
63
|
+
out of the box.
|
|
64
|
+
|
|
52
65
|
## Quick Start
|
|
53
66
|
|
|
54
67
|
```bash
|
|
@@ -135,8 +148,6 @@ napoln install
|
|
|
135
148
|
`napoln install` syncs both global and project manifests automatically.
|
|
136
149
|
|
|
137
150
|
## Documentation
|
|
138
|
-
|
|
139
|
-
- [SPEC.md](SPEC.md) — Full specification: store, placement, merge, CLI, manifest schema
|
|
140
151
|
- [ARCHITECTURE.md](ARCHITECTURE.md) — Architecture decisions and prior art analysis
|
|
141
152
|
- [CONTRIBUTING.md](CONTRIBUTING.md) — Development setup, testing, how to add commands and agents
|
|
142
153
|
|
|
@@ -11,6 +11,8 @@ A package manager for [agent skills](https://agentskills.io/specification). Inst
|
|
|
11
11
|
- **Zero-copy placement.** Reflink (copy-on-write) on APFS and btrfs. Full copy fallback elsewhere.
|
|
12
12
|
- **Self-describing.** A bundled skill teaches your agents how to use napoln.
|
|
13
13
|
|
|
14
|
+

|
|
15
|
+
|
|
14
16
|
## Install
|
|
15
17
|
|
|
16
18
|
Requires Python 3.11+. napoln is published on [PyPI](https://pypi.org/project/napoln/).
|
|
@@ -29,6 +31,16 @@ pipx install napoln # alternative
|
|
|
29
31
|
pip install napoln # plain pip
|
|
30
32
|
```
|
|
31
33
|
|
|
34
|
+
## First Run
|
|
35
|
+
|
|
36
|
+
On first run, napoln installs its bundled management skill so your agents
|
|
37
|
+
know how to use it. After that, your agents can find and install new
|
|
38
|
+
capabilities without prompting you for CLI commands.
|
|
39
|
+
|
|
40
|
+
Agents prefer `uvx napoln` so they never hit PATH issues. The bundled
|
|
41
|
+
skill is automatically installed alongside your first skill, so it works
|
|
42
|
+
out of the box.
|
|
43
|
+
|
|
32
44
|
## Quick Start
|
|
33
45
|
|
|
34
46
|
```bash
|
|
@@ -115,8 +127,6 @@ napoln install
|
|
|
115
127
|
`napoln install` syncs both global and project manifests automatically.
|
|
116
128
|
|
|
117
129
|
## Documentation
|
|
118
|
-
|
|
119
|
-
- [SPEC.md](SPEC.md) — Full specification: store, placement, merge, CLI, manifest schema
|
|
120
130
|
- [ARCHITECTURE.md](ARCHITECTURE.md) — Architecture decisions and prior art analysis
|
|
121
131
|
- [CONTRIBUTING.md](CONTRIBUTING.md) — Development setup, testing, how to add commands and agents
|
|
122
132
|
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "napoln"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.6"
|
|
4
4
|
description = "A package manager for agent skills"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -30,11 +30,13 @@ dev = [
|
|
|
30
30
|
"pytest-bdd>=8.1",
|
|
31
31
|
"pytest-cov>=7.1",
|
|
32
32
|
"ruff>=0.9",
|
|
33
|
+
"ty>=0.0.30",
|
|
33
34
|
]
|
|
34
35
|
|
|
35
36
|
[tool.pytest.ini_options]
|
|
36
37
|
testpaths = ["tests"]
|
|
37
38
|
pythonpath = ["src"]
|
|
39
|
+
addopts = "-q --tb=short"
|
|
38
40
|
|
|
39
41
|
[tool.ruff]
|
|
40
42
|
target-version = "py311"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from pathlib import Path
|
|
6
|
-
|
|
6
|
+
from typing import cast
|
|
7
7
|
|
|
8
8
|
from napoln import output
|
|
9
9
|
from napoln.core import agents as agents_mod
|
|
@@ -343,9 +343,10 @@ def run_add(
|
|
|
343
343
|
output.error(str(e), cause=e.cause, fix=e.fix)
|
|
344
344
|
return 1
|
|
345
345
|
|
|
346
|
-
# Normalize to a list
|
|
346
|
+
# Normalize to a list. ty's isinstance narrowing on a `T | list[T]` union
|
|
347
|
+
# leaves a quirky intersection, so cast through after the runtime check.
|
|
347
348
|
if isinstance(resolved_result, list):
|
|
348
|
-
resolved_list = resolved_result
|
|
349
|
+
resolved_list: list[ResolvedSource] = cast(list[ResolvedSource], resolved_result)
|
|
349
350
|
else:
|
|
350
351
|
resolved_list = [resolved_result]
|
|
351
352
|
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from pathlib import Path
|
|
6
|
+
from typing import cast
|
|
6
7
|
|
|
7
8
|
from napoln import output
|
|
8
9
|
from napoln.core import linker, manifest, merger, store
|
|
9
|
-
from napoln.core.resolver import parse_source, resolve_git, resolve_local
|
|
10
|
+
from napoln.core.resolver import ResolvedSource, parse_source, resolve_git, resolve_local
|
|
10
11
|
from napoln.errors import ResolverError
|
|
11
12
|
|
|
12
13
|
|
|
@@ -98,6 +99,7 @@ def _upgrade_skill(
|
|
|
98
99
|
if version_constraint:
|
|
99
100
|
parsed.version = version_constraint
|
|
100
101
|
|
|
102
|
+
resolved: ResolvedSource
|
|
101
103
|
if parsed.source_type == "local":
|
|
102
104
|
resolved = resolve_local(parsed)
|
|
103
105
|
elif parsed.source_type == "git":
|
|
@@ -107,7 +109,8 @@ def _upgrade_skill(
|
|
|
107
109
|
# during upgrade the manifest source already has a path,
|
|
108
110
|
# so we always expect a single result.
|
|
109
111
|
if isinstance(result, list):
|
|
110
|
-
|
|
112
|
+
result_list = cast(list[ResolvedSource], result)
|
|
113
|
+
match = [r for r in result_list if r.skill_name == skill_name]
|
|
111
114
|
if not match:
|
|
112
115
|
output.error(f"Skill '{skill_name}' not found in resolved sources.")
|
|
113
116
|
return 1
|
|
@@ -76,11 +76,12 @@ def pick_skills(choices: list[SkillChoice]) -> list[SkillChoice]:
|
|
|
76
76
|
from questionary.prompts import common as q_common
|
|
77
77
|
|
|
78
78
|
# Use ✓ and a blank cell as indicators. Some terminal fonts don't render
|
|
79
|
-
# the default ○/● glyphs distinctly.
|
|
80
|
-
|
|
81
|
-
q_constants
|
|
82
|
-
|
|
83
|
-
q_common
|
|
79
|
+
# the default ○/● glyphs distinctly. setattr bypasses ty's complaint about
|
|
80
|
+
# questionary's Literal-typed module constants.
|
|
81
|
+
setattr(q_constants, "INDICATOR_SELECTED", "✓")
|
|
82
|
+
setattr(q_constants, "INDICATOR_UNSELECTED", " ")
|
|
83
|
+
setattr(q_common, "INDICATOR_SELECTED", "✓")
|
|
84
|
+
setattr(q_common, "INDICATOR_UNSELECTED", " ")
|
|
84
85
|
|
|
85
86
|
max_name = max(len(c.name) for c in choices) if choices else 0
|
|
86
87
|
|
|
@@ -135,10 +136,10 @@ def pick_agents(
|
|
|
135
136
|
from questionary import constants as q_constants
|
|
136
137
|
from questionary.prompts import common as q_common
|
|
137
138
|
|
|
138
|
-
q_constants
|
|
139
|
-
q_constants
|
|
140
|
-
q_common
|
|
141
|
-
q_common
|
|
139
|
+
setattr(q_constants, "INDICATOR_SELECTED", "✓")
|
|
140
|
+
setattr(q_constants, "INDICATOR_UNSELECTED", " ")
|
|
141
|
+
setattr(q_common, "INDICATOR_SELECTED", "✓")
|
|
142
|
+
setattr(q_common, "INDICATOR_UNSELECTED", " ")
|
|
142
143
|
|
|
143
144
|
preselected = set(preselected_ids or [])
|
|
144
145
|
max_name = max(len(a.display_name) for a in available)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: napoln-manage
|
|
3
|
+
description: >
|
|
4
|
+
Search for, install, upgrade, and manage agent skills using the napoln
|
|
5
|
+
package manager. Use when the user wants to find new capabilities, install
|
|
6
|
+
a skill from a git repository, check for skill updates, view local
|
|
7
|
+
modifications to installed skills, or resolve merge conflicts after upgrade.
|
|
8
|
+
metadata:
|
|
9
|
+
version: "0.1.0"
|
|
10
|
+
author: napoln
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# napoln — Skill Manager
|
|
14
|
+
|
|
15
|
+
napoln manages reusable skills for AI coding agents. When running commands
|
|
16
|
+
for the user, prefer `uvx napoln` over bare `napoln` to avoid PATH issues.
|
|
17
|
+
|
|
18
|
+
## Running Commands
|
|
19
|
+
|
|
20
|
+
napoln is installed as a Python tool and may not be in PATH when an agent
|
|
21
|
+
runs. Use `uvx` to invoke it without relying on PATH:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
uvx napoln add owner/repo # add (preferred — no PATH dependency)
|
|
25
|
+
uvx napoln list # list
|
|
26
|
+
uvx napoln upgrade # upgrade
|
|
27
|
+
uvx napoln remove <name> # remove
|
|
28
|
+
uvx napoln install # sync from manifests
|
|
29
|
+
uvx napoln init my-skill # scaffold a new skill
|
|
30
|
+
uvx napoln config doctor # verify integrity
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
If `uvx` is unavailable, fall back to `python -m napoln` or `pipx run napoln`.
|
|
34
|
+
|
|
35
|
+
## Install a Skill
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# From a git repository
|
|
39
|
+
uvx napoln add owner/repo # Interactive picker for multi-skill repos
|
|
40
|
+
uvx napoln add owner/repo --all # Install all skills from a repo
|
|
41
|
+
uvx napoln add owner/repo --skill name # Install a specific skill by name
|
|
42
|
+
uvx napoln add owner/repo@v1.2.0 # Pinned version
|
|
43
|
+
|
|
44
|
+
# From a local path
|
|
45
|
+
uvx napoln add ./path/to/skill
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Check What's Installed
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
uvx napoln list # Show all installed skills and their placements
|
|
52
|
+
uvx napoln list -v # Show full placement paths
|
|
53
|
+
uvx napoln list --json # Machine-readable output
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Upgrade Skills
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
uvx napoln upgrade # Upgrade all skills
|
|
60
|
+
uvx napoln upgrade <name> # Upgrade specific skill
|
|
61
|
+
uvx napoln upgrade --dry-run # Preview changes without applying
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
If upgrade produces merge conflicts (the user customized a skill and the
|
|
65
|
+
upstream also changed the same lines):
|
|
66
|
+
1. Conflicts appear as `<<<<<<<` / `=======` / `>>>>>>>` markers in SKILL.md
|
|
67
|
+
2. Edit the file to resolve — keep the best of both versions
|
|
68
|
+
3. Run `uvx napoln upgrade <name>` again to complete the upgrade
|
|
69
|
+
|
|
70
|
+
## Remove a Skill
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
uvx napoln remove <name>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Scaffold a New Skill
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
uvx napoln init my-skill # Creates my-skill/SKILL.md
|
|
80
|
+
uvx napoln init # Creates SKILL.md in current directory
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Restore / Sync
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
uvx napoln install # Restore all placements from manifests
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Housekeeping
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
uvx napoln config # View configuration and detected agents
|
|
93
|
+
uvx napoln config doctor # Verify store integrity and placement validity
|
|
94
|
+
uvx napoln config gc # Remove unreferenced store entries
|
|
95
|
+
```
|
|
@@ -61,8 +61,11 @@ def test_script_kept():
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
@given("Claude Code is installed", target_fixture="env")
|
|
64
|
-
def claude_installed(napoln_env: NapolnTestEnv):
|
|
64
|
+
def claude_installed(napoln_env: NapolnTestEnv, monkeypatch):
|
|
65
65
|
(napoln_env.home / ".claude").mkdir(parents=True, exist_ok=True)
|
|
66
|
+
# Block PATH-based detection so pi/codex on the developer's machine don't
|
|
67
|
+
# leak into the test and create a second shared `.agents/skills/` placement.
|
|
68
|
+
monkeypatch.setattr("napoln.core.agents._check_on_path", lambda cmd: False)
|
|
66
69
|
return napoln_env
|
|
67
70
|
|
|
68
71
|
|
|
@@ -400,7 +400,7 @@ wheels = [
|
|
|
400
400
|
|
|
401
401
|
[[package]]
|
|
402
402
|
name = "napoln"
|
|
403
|
-
version = "0.2.
|
|
403
|
+
version = "0.2.5"
|
|
404
404
|
source = { editable = "." }
|
|
405
405
|
dependencies = [
|
|
406
406
|
{ name = "httpx" },
|
|
@@ -417,6 +417,7 @@ dev = [
|
|
|
417
417
|
{ name = "pytest-bdd" },
|
|
418
418
|
{ name = "pytest-cov" },
|
|
419
419
|
{ name = "ruff" },
|
|
420
|
+
{ name = "ty" },
|
|
420
421
|
]
|
|
421
422
|
|
|
422
423
|
[package.metadata]
|
|
@@ -430,6 +431,7 @@ requires-dist = [
|
|
|
430
431
|
{ name = "reflink", specifier = ">=0.2.2" },
|
|
431
432
|
{ name = "ruff", marker = "extra == 'dev'", specifier = ">=0.9" },
|
|
432
433
|
{ name = "tomli-w", specifier = ">=1.2" },
|
|
434
|
+
{ name = "ty", marker = "extra == 'dev'", specifier = ">=0.0.30" },
|
|
433
435
|
{ name = "typer", specifier = ">=0.12" },
|
|
434
436
|
]
|
|
435
437
|
|
|
@@ -746,6 +748,30 @@ wheels = [
|
|
|
746
748
|
{ url = "https://files.pythonhosted.org/packages/c7/18/c86eb8e0202e32dd3df50d43d7ff9854f8e0603945ff398974c1d91ac1ef/tomli_w-1.2.0-py3-none-any.whl", hash = "sha256:188306098d013b691fcadc011abd66727d3c414c571bb01b1a174ba8c983cf90", size = 6675 },
|
|
747
749
|
]
|
|
748
750
|
|
|
751
|
+
[[package]]
|
|
752
|
+
name = "ty"
|
|
753
|
+
version = "0.0.30"
|
|
754
|
+
source = { registry = "https://pypi.org/simple" }
|
|
755
|
+
sdist = { url = "https://files.pythonhosted.org/packages/62/21/3ee32f163038ac2663c7bea47a07d06bf4cc7c09d95b96db194bda1b70cb/ty-0.0.30.tar.gz", hash = "sha256:c982207640e7d75331b81031ebfb884ab858ed26ab16d7c086ac4942e2771846", size = 5518350 }
|
|
756
|
+
wheels = [
|
|
757
|
+
{ url = "https://files.pythonhosted.org/packages/a8/24/7aa94d02a9257ed96e64e4e99b527f28390febd8424107b4f8a70763ace9/ty-0.0.30-py3-none-linux_armv6l.whl", hash = "sha256:1be31a24a2a177571c3276854bf01b2b1a77dba6e754507089c25bb1825ce5f6", size = 10801835 },
|
|
758
|
+
{ url = "https://files.pythonhosted.org/packages/ec/97/2410ebc85cfcdf3bbd0e5958c6cd0b88085b1a184374ecfa755f84d6c8b2/ty-0.0.30-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:019f1d0d5d5265a1e634a51fd49374df43dafae14de98c2a0d349beb8233550b", size = 10582386 },
|
|
759
|
+
{ url = "https://files.pythonhosted.org/packages/e3/d2/a2649eb6841ebf946ac827e778b7e78b5ef63c3758bf2b9da13d927a53da/ty-0.0.30-py3-none-macosx_11_0_arm64.whl", hash = "sha256:fe3012af4d0714e7353fd3cf6d2d02d5b0f0fe6f1cb8beb2366ed9f621c2c349", size = 10031621 },
|
|
760
|
+
{ url = "https://files.pythonhosted.org/packages/6e/8e/40a66ccd5d5d51adf0469b9fbe4f1f79f928a880b34b8a6c7c934e8a883a/ty-0.0.30-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1e90b4ebf6310c7734344739e0950f4cede5a33b1e51a12a0c0fc8a975866ed", size = 10537511 },
|
|
761
|
+
{ url = "https://files.pythonhosted.org/packages/25/31/5dea2987601ef1c8c58b04f2173971e7fe51f7902ab93a66d09e0f12115a/ty-0.0.30-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fd83a0d82cbc32c2ae521e7fa101fb5fe5b566adb1364996582535700572a9ec", size = 10603406 },
|
|
762
|
+
{ url = "https://files.pythonhosted.org/packages/b9/a4/5a7585b6b219a2edc00255af0b16a8475f88fe43c5cdbe499daecb67f100/ty-0.0.30-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:672a29271c13247096d0b2766e69cb35b1583882dd6e7b24065927e2491ffe6d", size = 11109133 },
|
|
763
|
+
{ url = "https://files.pythonhosted.org/packages/b9/83/b402dc4bd99b6f3eb0bce04e557889a164e099976a7fc71a6b07c923241b/ty-0.0.30-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:91ff236adbb90281c05f7e160664820be50f42d3a9d8f1d0a648f006864114fa", size = 11663362 },
|
|
764
|
+
{ url = "https://files.pythonhosted.org/packages/65/1b/8157f03acc15421083c194b11a61a78d10e3dfa7e4a0177809fc9acc3881/ty-0.0.30-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6ec99bd5d5430c52fb64038483deb070f12c7ae78ffd6d6841d31719daedf1d7", size = 11304786 },
|
|
765
|
+
{ url = "https://files.pythonhosted.org/packages/d9/c3/f89a9a42b47da108ed758ae9d065d10bf2acc2ea88e3d200b95511096b7b/ty-0.0.30-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a4b328ee332ec6276afc863ea7cf6d8167d9dd8d9f3d1c2e738ef39932511ac4", size = 11173426 },
|
|
766
|
+
{ url = "https://files.pythonhosted.org/packages/81/37/fa38ee0259dc49579e1871b23ab1ff27331a78460566cdc13045a237595d/ty-0.0.30-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:fd0d664d6530890a8e872accd96895410773e7a4c6d20c244fb7a5f541ff359b", size = 10517157 },
|
|
767
|
+
{ url = "https://files.pythonhosted.org/packages/2e/79/28032481141eb6ce3274f62b9ff9b1d73d59df6b28080c8fe3c6bdef700e/ty-0.0.30-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:314004166a7a5e39e169c7da0b9e78f3315382f53db8698fd98346cee3bb0784", size = 10613222 },
|
|
768
|
+
{ url = "https://files.pythonhosted.org/packages/45/a0/989fca4c74095defd7d3ba5afc68a5aa4e2ca428fedfca5df526701c730b/ty-0.0.30-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d969ebf9d8b08e93e638c56e6fb5a8dacd2a24f43e3519479d245ddde69f968e", size = 10789624 },
|
|
769
|
+
{ url = "https://files.pythonhosted.org/packages/5c/74/3e74aba392ba2eeae5d86568ee282d9d6b2b6642445e3d9837c88d73c282/ty-0.0.30-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:66922c8c4381a016f90ec4b811748e7bb12da892f4c273640710da721caea7fb", size = 11260273 },
|
|
770
|
+
{ url = "https://files.pythonhosted.org/packages/24/0e/e94a0e5e5a1850a2ba61c5efcfa594cfc2d23c026bf431cce33003d036a0/ty-0.0.30-py3-none-win32.whl", hash = "sha256:b7b2ecf80c872d7d9928b372e99233bdda7cabe639edd06b6232c3161a7dfa40", size = 10145096 },
|
|
771
|
+
{ url = "https://files.pythonhosted.org/packages/50/d3/09c8df72ad37f7f4d9d79fe04a08bfa649d9f141d137e624fc23c7c3d7fe/ty-0.0.30-py3-none-win_amd64.whl", hash = "sha256:f29834e3d96c447f2adcf9eeb55b3f92005c91f52597c4c46d844188ec67ec72", size = 11156009 },
|
|
772
|
+
{ url = "https://files.pythonhosted.org/packages/e6/17/a5c049c36e2fef9c593a1862f275af963b66045378f10b6908c6f10f6f4a/ty-0.0.30-py3-none-win_arm64.whl", hash = "sha256:d9be1d258dab615b447d20fa58633f0ae163af01bfa781a50457defec20642fd", size = 10552887 },
|
|
773
|
+
]
|
|
774
|
+
|
|
749
775
|
[[package]]
|
|
750
776
|
name = "typer"
|
|
751
777
|
version = "0.24.1"
|