agentsquire 0.2.2__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.
@@ -0,0 +1,190 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentsquire
3
+ Version: 0.2.2
4
+ Summary: Let a Python package carry its own agent integrations and install them into whatever agent harness is present.
5
+ Author: TacoTakumi
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Keywords: agent,agent-skills,claude-code,cli,harness,skills
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.10
21
+ Requires-Dist: click
22
+ Requires-Dist: pyyaml
23
+ Description-Content-Type: text/markdown
24
+
25
+ # AgentSquire
26
+
27
+ A reusable Python library + CLI that lets a Python package carry its own agent
28
+ integrations (Agent Skills) and install them into whatever agent harness is
29
+ present - the executable is the framework.
30
+
31
+ Your CLI ships its skills as package data inside its own wheel, adds
32
+ `agentsquire` as a plain pip dependency, and mounts a ready-made subcommand
33
+ group. Your users only ever see your tool:
34
+
35
+ ```
36
+ $ awiki skills install
37
+ installed awiki-search -> /home/you/.claude/skills/awiki-search
38
+ ```
39
+
40
+ Supported harnesses at launch: Claude Code, pi, Hermes, and opencode. Detection
41
+ is by marker directory; every operation is local (no network in any verb). Each
42
+ harness's directories, scopes, and behaviour are recorded in
43
+ [docs/harnesses.md](docs/harnesses.md).
44
+
45
+ ## Consumer integration guide
46
+
47
+ ### 1. Ship skills as package data
48
+
49
+ Lay each skill out as a directory containing a `SKILL.md` (the agentskills.io
50
+ format) under a `skills/` resource inside your importable package:
51
+
52
+ ```
53
+ your_pkg/
54
+ __init__.py
55
+ skills/
56
+ my-skill/
57
+ SKILL.md
58
+ reference.md
59
+ ```
60
+
61
+ The skills ride inside your wheel; make sure your build backend includes
62
+ package data (hatchling includes it by default, setuptools needs
63
+ `include-package-data`). No source checkout is needed at run time - skills are
64
+ enumerated straight from the installed wheel.
65
+
66
+ ### 2. Mount the subcommand group
67
+
68
+ One call returns a click group with `install`, `status`, `update`, and
69
+ `uninstall` subcommands, parameterized by your package name, the resource path
70
+ (default `"skills"`), and the default scope.
71
+
72
+ For a click CLI:
73
+
74
+ ```python
75
+ import click
76
+
77
+ from agentsquire.cli import skills_command_group
78
+
79
+
80
+ @click.group()
81
+ def cli():
82
+ """Your CLI."""
83
+
84
+
85
+ cli.add_command(skills_command_group("your_pkg", default_scope="user"))
86
+ ```
87
+
88
+ For a typer CLI, mount onto the underlying click command:
89
+
90
+ ```python
91
+ import typer
92
+ import typer.main
93
+
94
+ from agentsquire.cli import skills_command_group
95
+
96
+ app = typer.Typer()
97
+
98
+
99
+ @app.callback()
100
+ def main():
101
+ """Your CLI."""
102
+
103
+
104
+ cli = typer.main.get_command(app)
105
+ cli.add_command(skills_command_group("your_pkg", default_scope="user"))
106
+ ```
107
+
108
+ Your users now run `your-cli skills install` and friends. Every subcommand
109
+ takes `--scope user|project` (overriding your declared default) and
110
+ `--harness NAME` (default: all detected harnesses).
111
+
112
+ Choosing the default scope: `user` installs into the harness's per-user
113
+ skills directory and follows the user everywhere - right for general-purpose
114
+ tools. `project` installs into the current project's directory - right for
115
+ skills that only make sense inside a repository that uses your tool.
116
+
117
+ ### 3. Surface updates proactively (optional)
118
+
119
+ Place the one-call staleness hook at your CLI entry point. When installed
120
+ skills have updates available it prints a single advisory line on stderr,
121
+ for example:
122
+
123
+ your-cli: a skills update is available for 1 skill (alpha); run `your-cli skills update`
124
+
125
+ The hook is notice-only: it never prompts, never reads stdin, and never
126
+ updates anything itself - the explicit `skills update` verb stays the sole
127
+ updater. It writes nothing to stdout, never changes your exit code, and
128
+ swallows its own errors, so it can never break the command it runs inside:
129
+
130
+ ```python
131
+ from agentsquire import BundledPackageDataSource, check_stale
132
+
133
+
134
+ def main():
135
+ check_stale(
136
+ BundledPackageDataSource("your_pkg"),
137
+ prog_name="your-cli",
138
+ update_command="your-cli skills update",
139
+ )
140
+ # ... the rest of your entry point
141
+ ```
142
+
143
+ The notice shows unless a suppression gate holds: `CI` set to a non-empty
144
+ value, or `AGENTSQUIRE_NO_UPDATE_CHECK` set to a non-empty value. It is not
145
+ gated on an interactive terminal - it fires on non-TTY stderr too, so an
146
+ agent harness that runs your CLI with captured stderr still sees that an
147
+ update is available. Suppression is presence-disables, the `NO_COLOR`
148
+ convention: any non-empty value disables the notice (`CI=false` and
149
+ `AGENTSQUIRE_NO_UPDATE_CHECK=0` both suppress), while an empty string is
150
+ treated as unset.
151
+
152
+ ### 4. Mark your package as skill-carrying (optional)
153
+
154
+ One pyproject line registers your package under the `agentsquire.skills`
155
+ entry-point group. Nothing reads it today - it is reserved for a future
156
+ environment-wide listing of skill-carrying packages and changes no behaviour:
157
+
158
+ ```toml
159
+ [project.entry-points."agentsquire.skills"]
160
+ your_pkg = "your_pkg"
161
+ ```
162
+
163
+ ## The provenance and update model
164
+
165
+ Installs are plain copies - no symlinks, no lockfile, no references back into
166
+ site-packages - so an installed skill survives upgrade or removal of your
167
+ package. Each installed `SKILL.md` carries a provenance stamp in its
168
+ frontmatter `metadata.agentsquire` map: `installer`, `installer_version`,
169
+ `source_package`, `source_version`, and `content_hash`. The skill body is
170
+ byte-identical to what you shipped.
171
+
172
+ `status` classifies every skill by local hash compares only (no network,
173
+ ever): not-installed, up-to-date, update-available (your shipped copy moved
174
+ on), or locally-modified (the user edited the install, the directory carries
175
+ no stamp, or a symlink sits at the target - none of them ours to touch).
176
+ `update` refreshes update-available skills and skips locally modified ones
177
+ unless `--force` is given; `uninstall` removes only directories whose stamp
178
+ names your package. User content is never silently overwritten or deleted -
179
+ a pre-existing symlink at a target (a common hand-wired setup) is reported
180
+ and skipped, never followed or clobbered.
181
+
182
+ ## Python API
183
+
184
+ Everything the CLI group does is available as plain Python - enumerate,
185
+ detect, install, status, update, uninstall, and the staleness check - with no
186
+ CLI involved. See [docs/api.md](docs/api.md) for the reference.
187
+
188
+ ## License
189
+
190
+ MIT.
@@ -0,0 +1,15 @@
1
+ agentsquire/__init__.py,sha256=s6Y6f2DchgNp8riZ1Dr4sDFJYht6qWQOG_th7CrSyZ4,2188
2
+ agentsquire/cli.py,sha256=y-FJBfssy-uOBPjVgkNE-cqPoWmmKr5dtiLwUc8hEas,8017
3
+ agentsquire/harnesses.py,sha256=-6XsC1P9MueT_lqtJIYapvIElTEPyimNJQwHDY300YI,4574
4
+ agentsquire/hashing.py,sha256=APvh1LhZd2CSlVD3OdE9y9EeX9LYrJ0gqYpAHFbJwOk,2104
5
+ agentsquire/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ agentsquire/roots.py,sha256=-njiahU1UCdXdMTGaoAiXjpPLjAoeGOtimBi00jSkvE,1793
7
+ agentsquire/skills.py,sha256=VZHkpFeccLOFuikl5FGm4hk3I7zO-2hr0lydyp3-ILs,2922
8
+ agentsquire/sources.py,sha256=5bvDDMmV1DpihyNSkfcBBZeOVjhMHCtwsEAc8YgewSg,3981
9
+ agentsquire/staleness.py,sha256=_szRvaEPxbjFfCYXzZyeaAHe4oUd8F8cFUKUYNDmSu8,2834
10
+ agentsquire/stamping.py,sha256=11-zQ2z3kwCgCfqSGpX5LbodSqoQ3zBeoNKCWfK322c,2770
11
+ agentsquire/verbs.py,sha256=vtuQWtMxGPUnponseGaKUY446BBn1lH10MeRR3n55yQ,11624
12
+ agentsquire-0.2.2.dist-info/METADATA,sha256=ZoRBVKxh6saOWq7BKeioBkfyRrqP4zNzE11PSkIRn9w,6645
13
+ agentsquire-0.2.2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
14
+ agentsquire-0.2.2.dist-info/licenses/LICENSE,sha256=72RvUJ6QewdDdqZvEH1O8r01ACLQjYgU1B_ejnR5vH8,1067
15
+ agentsquire-0.2.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TacoTakumi
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.