napoln 0.2.8__tar.gz → 0.2.9__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.8 → napoln-0.2.9}/.gitignore +3 -0
- napoln-0.2.9/.release-please-manifest.json +3 -0
- {napoln-0.2.8 → napoln-0.2.9}/CHANGELOG.md +7 -0
- {napoln-0.2.8 → napoln-0.2.9}/PKG-INFO +9 -1
- {napoln-0.2.8 → napoln-0.2.9}/README.md +8 -0
- {napoln-0.2.8 → napoln-0.2.9}/pyproject.toml +1 -1
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/__init__.py +1 -1
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/add.py +2 -7
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/config.py +5 -10
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/install.py +3 -8
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/list_cmd.py +2 -7
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/remove.py +2 -7
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/setup.py +2 -5
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/upgrade.py +2 -7
- napoln-0.2.9/src/napoln/core/home.py +15 -0
- napoln-0.2.8/.release-please-manifest.json +0 -3
- {napoln-0.2.8 → napoln-0.2.9}/.github/workflows/ci.yml +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/.github/workflows/pr-title.yml +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/.github/workflows/release-please.yml +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/.github/workflows/release.yml +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/AGENTS.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/ARCHITECTURE.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/CLAUDE.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/CONTRIBUTING.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/LICENSE +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/justfile +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/napoln-demo.gif +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/release-please-config.json +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/skills-lock.json +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/cli.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/__init__.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/commands/init.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/__init__.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/agents.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/hasher.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/linker.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/manifest.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/merger.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/resolver.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/store.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/core/validator.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/errors.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/output.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/prompts.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/src/napoln/skills/napoln-manage/SKILL.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/__init__.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/conftest.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/features/config.feature +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/features/first_run.feature +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/features/init.feature +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/features/install.feature +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/features/list.feature +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/features/setup.feature +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/features/upgrade.feature +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/fixtures/invalid-skill/SKILL.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/fixtures/multi-skill-repo/README.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/fixtures/multi-skill-repo/skills/skill-a/SKILL.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/fixtures/multi-skill-repo/skills/skill-b/SKILL.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/fixtures/valid-skill/SKILL.md +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/integration/test_cli.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/__init__.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/conftest.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/test_config.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/test_first_run.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/test_init.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/test_install.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/test_list.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/test_setup.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/steps/test_upgrade.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_agents.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_hasher.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_linker.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_manifest.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_merger.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_resolve_and_store.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_resolver.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_store.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/tests/unit/test_validator.py +0 -0
- {napoln-0.2.8 → napoln-0.2.9}/uv.lock +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.9](https://github.com/raiderrobert/napoln/compare/v0.2.8...v0.2.9) (2026-04-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Documentation
|
|
7
|
+
|
|
8
|
+
* clarify one SKILL.md serves every agent ([#41](https://github.com/raiderrobert/napoln/issues/41)) ([9e130aa](https://github.com/raiderrobert/napoln/commit/9e130aa41cea29b802b5916949868b8f4f81de00)), closes [#10](https://github.com/raiderrobert/napoln/issues/10)
|
|
9
|
+
|
|
3
10
|
## [0.2.8](https://github.com/raiderrobert/napoln/compare/v0.2.7...v0.2.8) (2026-04-22)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: napoln
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: A package manager for agent skills
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -147,6 +147,14 @@ All mutating commands support `--dry-run`. Use `-p` for project scope on any com
|
|
|
147
147
|
|
|
148
148
|
Gemini CLI, pi, and Codex share `~/.agents/skills/` — one placement serves all three.
|
|
149
149
|
|
|
150
|
+
### One SKILL.md for every agent
|
|
151
|
+
|
|
152
|
+
A skill is a single `SKILL.md` file. Every supported agent reads the same file;
|
|
153
|
+
napoln does not fork or transform it per agent. Agent-specific frontmatter
|
|
154
|
+
fields are optional, and each agent ignores the fields it does not understand.
|
|
155
|
+
Skill authors should keep one canonical `SKILL.md` per skill rather than
|
|
156
|
+
maintaining per-agent variants.
|
|
157
|
+
|
|
150
158
|
## Team Workflow
|
|
151
159
|
|
|
152
160
|
Install with `--project` and commit the manifest:
|
|
@@ -126,6 +126,14 @@ All mutating commands support `--dry-run`. Use `-p` for project scope on any com
|
|
|
126
126
|
|
|
127
127
|
Gemini CLI, pi, and Codex share `~/.agents/skills/` — one placement serves all three.
|
|
128
128
|
|
|
129
|
+
### One SKILL.md for every agent
|
|
130
|
+
|
|
131
|
+
A skill is a single `SKILL.md` file. Every supported agent reads the same file;
|
|
132
|
+
napoln does not fork or transform it per agent. Agent-specific frontmatter
|
|
133
|
+
fields are optional, and each agent ignores the fields it does not understand.
|
|
134
|
+
Skill authors should keep one canonical `SKILL.md` per skill rather than
|
|
135
|
+
maintaining per-agent variants.
|
|
136
|
+
|
|
129
137
|
## Team Workflow
|
|
130
138
|
|
|
131
139
|
Install with `--project` and commit the manifest:
|
|
@@ -8,6 +8,7 @@ from typing import cast
|
|
|
8
8
|
from napoln import output
|
|
9
9
|
from napoln.core import agents as agents_mod
|
|
10
10
|
from napoln.core import linker, manifest, store, validator
|
|
11
|
+
from napoln.core.home import get_napoln_home
|
|
11
12
|
from napoln.core.resolver import (
|
|
12
13
|
ParsedSource,
|
|
13
14
|
ResolvedSource,
|
|
@@ -21,12 +22,6 @@ from napoln.errors import MultipleSkillsError, ResolverError
|
|
|
21
22
|
from napoln.prompts import SkillChoice, pick_skills
|
|
22
23
|
|
|
23
24
|
|
|
24
|
-
def _get_napoln_home() -> Path:
|
|
25
|
-
import os
|
|
26
|
-
|
|
27
|
-
return Path(os.environ.get("NAPOLN_HOME", Path.home() / ".napoln"))
|
|
28
|
-
|
|
29
|
-
|
|
30
25
|
def _ensure_initialized(napoln_home: Path) -> None:
|
|
31
26
|
"""Ensure napoln home directory structure exists."""
|
|
32
27
|
napoln_home.mkdir(parents=True, exist_ok=True)
|
|
@@ -279,7 +274,7 @@ def run_add(
|
|
|
279
274
|
"""
|
|
280
275
|
import os
|
|
281
276
|
|
|
282
|
-
napoln_home =
|
|
277
|
+
napoln_home = get_napoln_home()
|
|
283
278
|
home = Path(os.environ.get("HOME", Path.home()))
|
|
284
279
|
|
|
285
280
|
_ensure_initialized(napoln_home)
|
|
@@ -11,12 +11,7 @@ import tomli_w
|
|
|
11
11
|
from napoln import output
|
|
12
12
|
from napoln.core import agents as agents_mod
|
|
13
13
|
from napoln.core import manifest, store
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def _get_napoln_home() -> Path:
|
|
17
|
-
import os
|
|
18
|
-
|
|
19
|
-
return Path(os.environ.get("NAPOLN_HOME", Path.home() / ".napoln"))
|
|
14
|
+
from napoln.core.home import get_napoln_home
|
|
20
15
|
|
|
21
16
|
|
|
22
17
|
# ─── config (bare) ───────────────────────────────────────────────────────────
|
|
@@ -26,7 +21,7 @@ def run_config_show() -> int:
|
|
|
26
21
|
"""Show current configuration: home, store, agents, manifests."""
|
|
27
22
|
import os
|
|
28
23
|
|
|
29
|
-
napoln_home =
|
|
24
|
+
napoln_home = get_napoln_home()
|
|
30
25
|
home = Path(os.environ.get("HOME", Path.home()))
|
|
31
26
|
|
|
32
27
|
output.header("napoln config")
|
|
@@ -77,7 +72,7 @@ def run_config_set(key: str, value: str) -> int:
|
|
|
77
72
|
|
|
78
73
|
Keys use dot notation: e.g., "napoln.default_scope"
|
|
79
74
|
"""
|
|
80
|
-
napoln_home =
|
|
75
|
+
napoln_home = get_napoln_home()
|
|
81
76
|
config_path = napoln_home / "config.toml"
|
|
82
77
|
|
|
83
78
|
if config_path.exists():
|
|
@@ -128,7 +123,7 @@ def run_config_doctor(
|
|
|
128
123
|
json_output: bool = False,
|
|
129
124
|
) -> int:
|
|
130
125
|
"""Health check: store integrity, placements, provenance, git."""
|
|
131
|
-
napoln_home =
|
|
126
|
+
napoln_home = get_napoln_home()
|
|
132
127
|
manifest_path = manifest.get_manifest_path(napoln_home, scope, project_root)
|
|
133
128
|
|
|
134
129
|
issues: list[dict] = []
|
|
@@ -253,7 +248,7 @@ def run_config_doctor(
|
|
|
253
248
|
|
|
254
249
|
def run_config_gc(dry_run: bool = False) -> int:
|
|
255
250
|
"""Remove unreferenced store entries."""
|
|
256
|
-
napoln_home =
|
|
251
|
+
napoln_home = get_napoln_home()
|
|
257
252
|
|
|
258
253
|
# Collect all referenced store entries from both manifests
|
|
259
254
|
referenced: set[str] = set()
|
|
@@ -6,15 +6,10 @@ from pathlib import Path
|
|
|
6
6
|
|
|
7
7
|
from napoln import output
|
|
8
8
|
from napoln.core import linker, manifest, store
|
|
9
|
+
from napoln.core.home import get_napoln_home
|
|
9
10
|
from napoln.errors import NapolnError
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
def _get_napoln_home() -> Path:
|
|
13
|
-
import os
|
|
14
|
-
|
|
15
|
-
return Path(os.environ.get("NAPOLN_HOME", Path.home() / ".napoln"))
|
|
16
|
-
|
|
17
|
-
|
|
18
13
|
def _sync_manifest(
|
|
19
14
|
mf: manifest.Manifest,
|
|
20
15
|
label: str,
|
|
@@ -27,7 +22,7 @@ def _sync_manifest(
|
|
|
27
22
|
"""
|
|
28
23
|
synced = 0
|
|
29
24
|
errors = 0
|
|
30
|
-
napoln_home =
|
|
25
|
+
napoln_home = get_napoln_home()
|
|
31
26
|
|
|
32
27
|
for skill_name, entry in sorted(mf.skills.items()):
|
|
33
28
|
try:
|
|
@@ -75,7 +70,7 @@ def run_install(
|
|
|
75
70
|
Returns:
|
|
76
71
|
Exit code (0=success, 1=errors).
|
|
77
72
|
"""
|
|
78
|
-
napoln_home =
|
|
73
|
+
napoln_home = get_napoln_home()
|
|
79
74
|
|
|
80
75
|
if dry_run:
|
|
81
76
|
output.dry_run_header()
|
|
@@ -6,12 +6,7 @@ from pathlib import Path
|
|
|
6
6
|
|
|
7
7
|
from napoln import output
|
|
8
8
|
from napoln.core import manifest
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def _get_napoln_home() -> Path:
|
|
12
|
-
import os
|
|
13
|
-
|
|
14
|
-
return Path(os.environ.get("NAPOLN_HOME", Path.home() / ".napoln"))
|
|
9
|
+
from napoln.core.home import get_napoln_home
|
|
15
10
|
|
|
16
11
|
|
|
17
12
|
def _abbreviate_path(path: str, home: str) -> str:
|
|
@@ -204,7 +199,7 @@ def run_list(
|
|
|
204
199
|
Returns:
|
|
205
200
|
Exit code (0=always).
|
|
206
201
|
"""
|
|
207
|
-
napoln_home =
|
|
202
|
+
napoln_home = get_napoln_home()
|
|
208
203
|
|
|
209
204
|
global_mf: manifest.Manifest | None = None
|
|
210
205
|
project_mf: manifest.Manifest | None = None
|
|
@@ -7,15 +7,10 @@ from pathlib import Path
|
|
|
7
7
|
|
|
8
8
|
from napoln import output
|
|
9
9
|
from napoln.core import manifest
|
|
10
|
+
from napoln.core.home import get_napoln_home
|
|
10
11
|
from napoln.core.resolver import normalize_source_for_match
|
|
11
12
|
|
|
12
13
|
|
|
13
|
-
def _get_napoln_home() -> Path:
|
|
14
|
-
import os
|
|
15
|
-
|
|
16
|
-
return Path(os.environ.get("NAPOLN_HOME", Path.home() / ".napoln"))
|
|
17
|
-
|
|
18
|
-
|
|
19
14
|
def _resolve_from_source(
|
|
20
15
|
from_source: str,
|
|
21
16
|
mf: manifest.Manifest,
|
|
@@ -61,7 +56,7 @@ def run_remove(
|
|
|
61
56
|
Returns:
|
|
62
57
|
Exit code (0=success, 1=error).
|
|
63
58
|
"""
|
|
64
|
-
napoln_home =
|
|
59
|
+
napoln_home = get_napoln_home()
|
|
65
60
|
manifest_path = manifest.get_manifest_path(napoln_home, scope, project_root)
|
|
66
61
|
mf = manifest.read_manifest(manifest_path)
|
|
67
62
|
|
|
@@ -10,13 +10,10 @@ import tomli_w
|
|
|
10
10
|
|
|
11
11
|
from napoln import output
|
|
12
12
|
from napoln.core import agents as agents_mod
|
|
13
|
+
from napoln.core.home import get_napoln_home
|
|
13
14
|
from napoln.prompts import pick_agents
|
|
14
15
|
|
|
15
16
|
|
|
16
|
-
def _get_napoln_home() -> Path:
|
|
17
|
-
return Path(os.environ.get("NAPOLN_HOME", Path.home() / ".napoln"))
|
|
18
|
-
|
|
19
|
-
|
|
20
17
|
def _ensure_initialized(napoln_home: Path) -> None:
|
|
21
18
|
napoln_home.mkdir(parents=True, exist_ok=True)
|
|
22
19
|
(napoln_home / "store").mkdir(exist_ok=True)
|
|
@@ -53,7 +50,7 @@ def run_setup(force: bool = False) -> int:
|
|
|
53
50
|
Returns:
|
|
54
51
|
Exit code (0 on success, 1 on cancel/error).
|
|
55
52
|
"""
|
|
56
|
-
napoln_home =
|
|
53
|
+
napoln_home = get_napoln_home()
|
|
57
54
|
home = Path(os.environ.get("HOME", Path.home()))
|
|
58
55
|
config_path = napoln_home / "config.toml"
|
|
59
56
|
|
|
@@ -7,16 +7,11 @@ from typing import cast
|
|
|
7
7
|
|
|
8
8
|
from napoln import output
|
|
9
9
|
from napoln.core import linker, manifest, merger, store
|
|
10
|
+
from napoln.core.home import get_napoln_home
|
|
10
11
|
from napoln.core.resolver import ResolvedSource, parse_source, resolve_git, resolve_local
|
|
11
12
|
from napoln.errors import ResolverError
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
def _get_napoln_home() -> Path:
|
|
15
|
-
import os
|
|
16
|
-
|
|
17
|
-
return Path(os.environ.get("NAPOLN_HOME", Path.home() / ".napoln"))
|
|
18
|
-
|
|
19
|
-
|
|
20
15
|
def run_upgrade(
|
|
21
16
|
name: str | None = None,
|
|
22
17
|
version_constraint: str | None = None,
|
|
@@ -33,7 +28,7 @@ def run_upgrade(
|
|
|
33
28
|
"""
|
|
34
29
|
import os
|
|
35
30
|
|
|
36
|
-
napoln_home =
|
|
31
|
+
napoln_home = get_napoln_home()
|
|
37
32
|
home = Path(os.environ.get("HOME", Path.home()))
|
|
38
33
|
manifest_path = manifest.get_manifest_path(napoln_home, scope, project_root)
|
|
39
34
|
mf = manifest.read_manifest(manifest_path)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Resolve the napoln home directory.
|
|
2
|
+
|
|
3
|
+
The home directory holds the store, cache, and global manifest.
|
|
4
|
+
Defaults to ~/.napoln/, overridable with NAPOLN_HOME.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import os
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def get_napoln_home() -> Path:
|
|
14
|
+
"""Return the configured napoln home directory."""
|
|
15
|
+
return Path(os.environ.get("NAPOLN_HOME", Path.home() / ".napoln"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|