akm-cli 0.2.1 → 0.3.0-rc2
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.
- package/LICENSE +42 -53
- package/README.md +30 -92
- package/dist/cli.js +106 -140
- package/dist/config-cli.js +26 -8
- package/dist/config.js +12 -3
- package/dist/db.js +59 -2
- package/dist/embedder.js +32 -3
- package/dist/indexer.js +95 -19
- package/dist/info.js +10 -1
- package/dist/installed-kits.js +111 -34
- package/dist/local-search.js +35 -2
- package/dist/paths.js +3 -0
- package/dist/registry-build-index.js +1 -1
- package/dist/self-update.js +27 -8
- package/dist/semantic-status.js +137 -0
- package/dist/setup.js +90 -23
- package/dist/stash-add.js +0 -18
- package/dist/version.js +1 -0
- package/package.json +20 -10
package/LICENSE
CHANGED
|
@@ -2,7 +2,6 @@ Mozilla Public License Version 2.0
|
|
|
2
2
|
==================================
|
|
3
3
|
|
|
4
4
|
1. Definitions
|
|
5
|
-
|
|
6
5
|
--------------
|
|
7
6
|
|
|
8
7
|
1.1. "Contributor"
|
|
@@ -84,8 +83,7 @@ Mozilla Public License Version 2.0
|
|
|
84
83
|
fifty percent (50%) of the outstanding shares or beneficial
|
|
85
84
|
ownership of such entity.
|
|
86
85
|
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
2. License Grants and Conditions
|
|
89
87
|
--------------------------------
|
|
90
88
|
|
|
91
89
|
2.1. Grants
|
|
@@ -156,8 +154,7 @@ equivalents.
|
|
|
156
154
|
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
|
157
155
|
in Section 2.1.
|
|
158
156
|
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
3. Responsibilities
|
|
161
158
|
-------------------
|
|
162
159
|
|
|
163
160
|
3.1. Distribution of Source Form
|
|
@@ -219,8 +216,7 @@ indemnity or liability terms You offer. You may include additional
|
|
|
219
216
|
disclaimers of warranty and limitations of liability specific to any
|
|
220
217
|
jurisdiction.
|
|
221
218
|
|
|
222
|
-
|
|
223
|
-
|
|
219
|
+
4. Inability to Comply Due to Statute or Regulation
|
|
224
220
|
---------------------------------------------------
|
|
225
221
|
|
|
226
222
|
If it is impossible for You to comply with any of the terms of this
|
|
@@ -229,12 +225,12 @@ statute, judicial order, or regulation then You must: (a) comply with
|
|
|
229
225
|
the terms of this License to the maximum extent possible; and (b)
|
|
230
226
|
describe the limitations and the code they affect. Such description must
|
|
231
227
|
be placed in a text file included with all distributions of the Covered
|
|
232
|
-
Software under
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
1. Termination
|
|
228
|
+
Software under the name "LEGAL", with additions for new restrictions
|
|
229
|
+
placed at the end of the file. Except to the extent prohibited by
|
|
230
|
+
statute or regulation, such description must be sufficiently detailed
|
|
231
|
+
for a recipient of ordinary skill to be able to understand it.
|
|
237
232
|
|
|
233
|
+
5. Termination
|
|
238
234
|
--------------
|
|
239
235
|
|
|
240
236
|
5.1. The rights granted under this License will terminate automatically
|
|
@@ -264,53 +260,48 @@ have been validly granted by You or Your distributors under this License
|
|
|
264
260
|
prior to termination shall survive termination.
|
|
265
261
|
|
|
266
262
|
************************************************************************
|
|
267
|
-
|
|
268
263
|
* *
|
|
269
|
-
*
|
|
270
|
-
*
|
|
264
|
+
* 6. Disclaimer of Warranty *
|
|
265
|
+
* ------------------------- *
|
|
271
266
|
* *
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
267
|
+
* Covered Software is provided under this License on an "as is" *
|
|
268
|
+
* basis, without warranty of any kind, either expressed, implied, or *
|
|
269
|
+
* statutory, including, without limitation, warranties that the *
|
|
270
|
+
* Covered Software is free of defects, merchantable, fit for a *
|
|
271
|
+
* particular purpose or non-infringing. The entire risk as to the *
|
|
272
|
+
* quality and performance of the Covered Software is with You. *
|
|
273
|
+
* Should any Covered Software prove defective in any respect, You *
|
|
274
|
+
* (not any Contributor) assume the cost of any necessary servicing, *
|
|
275
|
+
* repair, or correction. This disclaimer of warranty constitutes an *
|
|
276
|
+
* essential part of this License. No use of any Covered Software is *
|
|
277
|
+
* authorized under this License except under this disclaimer. *
|
|
283
278
|
* *
|
|
284
|
-
|
|
285
279
|
************************************************************************
|
|
286
280
|
|
|
287
281
|
************************************************************************
|
|
288
|
-
|
|
289
282
|
* *
|
|
290
|
-
*
|
|
291
|
-
*
|
|
283
|
+
* 7. Limitation of Liability *
|
|
284
|
+
* -------------------------- *
|
|
292
285
|
* *
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
286
|
+
* Under no circumstances and under no legal theory, whether tort *
|
|
287
|
+
* (including negligence), contract, or otherwise, shall any *
|
|
288
|
+
* Contributor, or anyone who distributes Covered Software as *
|
|
289
|
+
* permitted above, be liable to You for any direct, indirect, *
|
|
290
|
+
* special, incidental, or consequential damages of any character *
|
|
291
|
+
* including, without limitation, damages for lost profits, loss of *
|
|
292
|
+
* goodwill, work stoppage, computer failure or malfunction, or any *
|
|
293
|
+
* and all other commercial damages or losses, even if such party *
|
|
294
|
+
* shall have been informed of the possibility of such damages. This *
|
|
295
|
+
* limitation of liability shall not apply to liability for death or *
|
|
296
|
+
* personal injury resulting from such party's negligence to the *
|
|
297
|
+
* extent applicable law prohibits such limitation. Some *
|
|
298
|
+
* jurisdictions do not allow the exclusion or limitation of *
|
|
299
|
+
* incidental or consequential damages, so this exclusion and *
|
|
300
|
+
* limitation may not apply to You. *
|
|
308
301
|
* *
|
|
309
|
-
|
|
310
302
|
************************************************************************
|
|
311
303
|
|
|
312
|
-
|
|
313
|
-
|
|
304
|
+
8. Litigation
|
|
314
305
|
-------------
|
|
315
306
|
|
|
316
307
|
Any litigation relating to this License may be brought only in the
|
|
@@ -320,8 +311,7 @@ jurisdiction, without reference to its conflict-of-law provisions.
|
|
|
320
311
|
Nothing in this Section shall prevent a party's ability to bring
|
|
321
312
|
cross-claims or counter-claims.
|
|
322
313
|
|
|
323
|
-
|
|
324
|
-
|
|
314
|
+
9. Miscellaneous
|
|
325
315
|
----------------
|
|
326
316
|
|
|
327
317
|
This License represents the complete agreement concerning the subject
|
|
@@ -331,8 +321,7 @@ necessary to make it enforceable. Any law or regulation which provides
|
|
|
331
321
|
that the language of a contract shall be construed against the drafter
|
|
332
322
|
shall not be used to construe this License against a Contributor.
|
|
333
323
|
|
|
334
|
-
|
|
335
|
-
|
|
324
|
+
10. Versions of the License
|
|
336
325
|
---------------------------
|
|
337
326
|
|
|
338
327
|
10.1. New Versions
|
|
@@ -369,7 +358,7 @@ Exhibit A - Source Code Form License Notice
|
|
|
369
358
|
|
|
370
359
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
371
360
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
372
|
-
file, You can obtain one at
|
|
361
|
+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
373
362
|
|
|
374
363
|
If it is not possible or desirable to put the notice in a particular
|
|
375
364
|
file, then You may include the notice in a location (such as a LICENSE
|
package/README.md
CHANGED
|
@@ -1,112 +1,53 @@
|
|
|
1
|
-
# Agent Kit Manager
|
|
1
|
+
# akm -- Agent Kit Manager
|
|
2
2
|
|
|
3
|
-
> **akm**
|
|
3
|
+
> **akm** (Agent Kit Manager) -- A package manager for AI agent skills, commands, tools, and knowledge.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/akm-cli)
|
|
6
|
-
[](https://www.npmjs.com/package/akm-cli)
|
|
7
|
+
[](https://github.com/itlackey/akm/blob/main/LICENSE)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
agents, knowledge, and memories
|
|
11
|
-
|
|
9
|
+
`akm` is a package manager for AI agent capabilities -- scripts, skills, commands,
|
|
10
|
+
agents, knowledge, and memories. It works with any AI coding assistant that can
|
|
11
|
+
run shell commands, including [Claude Code](https://claude.ai/code),
|
|
12
|
+
[OpenCode](https://opencode.ai), [Cursor](https://cursor.com), and more.
|
|
12
13
|
|
|
13
14
|
## Install
|
|
14
15
|
|
|
15
16
|
```sh
|
|
16
|
-
# Standalone binary (no runtime dependencies)
|
|
17
|
-
curl -fsSL https://raw.githubusercontent.com/itlackey/agentikit/main/install.sh | bash
|
|
18
|
-
|
|
19
|
-
# Or via Bun
|
|
20
17
|
bun install -g akm-cli
|
|
21
18
|
```
|
|
22
19
|
|
|
23
|
-
Upgrade in place with `akm upgrade`.
|
|
20
|
+
Requires [Bun](https://bun.sh) runtime. Upgrade in place with `akm upgrade`.
|
|
24
21
|
|
|
25
22
|
## Quick Start
|
|
26
23
|
|
|
27
24
|
```sh
|
|
28
25
|
akm setup # Guided setup: configure, initialize, and index
|
|
29
26
|
akm add github:owner/repo # Add a kit from GitHub
|
|
30
|
-
akm search "deploy" # Find assets
|
|
27
|
+
akm search "deploy" # Find assets across all sources
|
|
31
28
|
akm show script:deploy.sh # View details and run command
|
|
32
29
|
```
|
|
33
30
|
|
|
34
|
-
|
|
35
|
-
working stash at a custom path.
|
|
31
|
+
## Why akm?
|
|
36
32
|
|
|
37
|
-
|
|
33
|
+
- **Works with any AI agent** -- No plugins or SDKs required. Any model that can run shell commands can use `akm`.
|
|
34
|
+
- **One command to search everything** -- Local stash, registries, and community skills from [skills.sh](https://skills.sh) in a single query.
|
|
35
|
+
- **Install kits from anywhere** -- npm, GitHub, GitLab, local directories.
|
|
36
|
+
- **Semantic search** -- Optional local embeddings (via Ollama or HuggingFace) for finding assets by meaning, not just keywords.
|
|
37
|
+
- **Private registries** -- Host your own registry for team or enterprise use.
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
## Agent Integration
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
`AGENTS.md`, `CLAUDE.md`, or system prompt:
|
|
41
|
+
Add this to your `AGENTS.md`, `CLAUDE.md`, or system prompt:
|
|
43
42
|
|
|
44
|
-
|
|
43
|
+
```markdown
|
|
45
44
|
## Resources & Capabilities
|
|
46
45
|
|
|
47
46
|
You have access to a searchable library of scripts, skills, commands, agents,
|
|
48
47
|
knowledge, and memories via the `akm` CLI. Use `akm -h` for details.
|
|
49
|
-
~~~
|
|
50
|
-
|
|
51
|
-
No plugins, SDKs, or integration code required. Platform-specific plugins
|
|
52
|
-
(e.g., [OpenCode](https://github.com/itlackey/akm-plugins?tab=readme-ov-file#opencode))
|
|
53
|
-
are available for tighter integration but purely optional.
|
|
54
|
-
|
|
55
|
-
### Clone Assets Anywhere
|
|
56
|
-
|
|
57
|
-
`akm clone` copies any asset from your stash or a remote source into a
|
|
58
|
-
target directory for local editing:
|
|
59
|
-
|
|
60
|
-
```sh
|
|
61
|
-
akm clone script:deploy.sh # Clone to your stash
|
|
62
|
-
akm clone script:deploy.sh --dest ./project/.claude # Clone to a specific directory
|
|
63
|
-
akm clone script:deploy.sh --name my-deploy.sh # Clone with a new name
|
|
64
|
-
akm clone "npm:@scope/pkg//script:deploy.sh" --force # Clone from a remote package
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
Key behaviors:
|
|
68
|
-
- Type subdirectories are appended automatically (e.g., `--dest ./project/.claude` becomes `./project/.claude/scripts/deploy.sh`)
|
|
69
|
-
- Skills clone as entire directories; scripts/commands clone as single files
|
|
70
|
-
- Remote packages are fetched on-demand without registering as installed kits
|
|
71
|
-
- `--force` overwrites existing assets
|
|
72
|
-
|
|
73
|
-
### skills.sh Integration
|
|
74
|
-
|
|
75
|
-
`akm` includes [skills.sh](https://skills.sh) as a built-in registry. Community
|
|
76
|
-
skills from skills.sh are searchable out of the box alongside the official
|
|
77
|
-
registry -- no setup required:
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
|
-
akm search "code review" # Searches skills.sh and official registry
|
|
81
|
-
akm registry search "code review" # Search registries directly
|
|
82
48
|
```
|
|
83
49
|
|
|
84
|
-
|
|
85
|
-
provider caches queries for 15 minutes with a 24-hour stale fallback.
|
|
86
|
-
|
|
87
|
-
### Registries and Private Registry Support
|
|
88
|
-
|
|
89
|
-
Registries are indexes of available kits. The official
|
|
90
|
-
[akm-registry](https://github.com/itlackey/akm-registry) is pre-configured.
|
|
91
|
-
|
|
92
|
-
```sh
|
|
93
|
-
akm registry search "code review" # Search registries
|
|
94
|
-
akm registry add https://example.com/registry/index.json --name team # Add a registry
|
|
95
|
-
akm stash add http://host:1933 --provider openviking \
|
|
96
|
-
--options '{"apiKey":"key"}' # Add an OpenViking stash source
|
|
97
|
-
akm registry list # List configured registries
|
|
98
|
-
akm show viking://resources/my-doc # Fetch remote content from OpenViking
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
Private access is supported through:
|
|
102
|
-
- **GitHub tokens** -- Set `GITHUB_TOKEN` to access private GitHub repos when installing kits
|
|
103
|
-
- **Provider options** -- `--options` flag accepts JSON for provider-specific configuration (API keys, custom headers)
|
|
104
|
-
- **Pluggable providers** -- Built-in registry providers include `static-index` and `skills-sh`; stash providers include `filesystem` and `openviking`; custom providers can implement their own authentication
|
|
105
|
-
|
|
106
|
-
See the [Registry docs](docs/registry.md) for hosting your own registry and
|
|
107
|
-
the v2 index format.
|
|
108
|
-
|
|
109
|
-
### Install Kits from Anywhere
|
|
50
|
+
## Install Kits from Anywhere
|
|
110
51
|
|
|
111
52
|
```sh
|
|
112
53
|
akm add @scope/my-kit # npm
|
|
@@ -117,26 +58,23 @@ akm add ./path/to/local/kit # Local directory
|
|
|
117
58
|
|
|
118
59
|
Manage kits with `akm list`, `akm update --all`, and `akm remove`.
|
|
119
60
|
|
|
120
|
-
|
|
61
|
+
## Publish Your Own Kit
|
|
121
62
|
|
|
122
63
|
1. Organize your assets into a directory
|
|
123
|
-
2. Add `"akm"` to `keywords` in `package.json`
|
|
64
|
+
2. Add `"akm"` to `keywords` in `package.json`
|
|
124
65
|
3. Optionally add `akm.include` in `package.json` to control what gets installed
|
|
125
66
|
4. Publish to npm or push to GitHub
|
|
126
67
|
|
|
127
|
-
See the [Kit Maker's Guide](docs/kit-makers.md) for a full walkthrough.
|
|
128
|
-
|
|
129
68
|
## Documentation
|
|
130
69
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
| [Registry](docs/registry.md) | Registries, search, and the v2 index format |
|
|
70
|
+
Full docs, CLI reference, and guides are available on [GitHub](https://github.com/itlackey/akm):
|
|
71
|
+
|
|
72
|
+
- [Getting Started](https://github.com/itlackey/akm/blob/main/docs/getting-started.md)
|
|
73
|
+
- [CLI Reference](https://github.com/itlackey/akm/blob/main/docs/cli.md)
|
|
74
|
+
- [Configuration](https://github.com/itlackey/akm/blob/main/docs/configuration.md)
|
|
75
|
+
- [Kit Maker's Guide](https://github.com/itlackey/akm/blob/main/docs/kit-makers.md)
|
|
76
|
+
- [Registry](https://github.com/itlackey/akm/blob/main/docs/registry.md)
|
|
139
77
|
|
|
140
78
|
## License
|
|
141
79
|
|
|
142
|
-
[MPL-2.0](LICENSE)
|
|
80
|
+
[MPL-2.0](https://github.com/itlackey/akm/blob/main/LICENSE)
|