@agentoctopus/registry 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +77 -0
  2. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # @agentoctopus/registry
2
+
3
+ Skill manifest loader and rating store for AgentOctopus.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @agentoctopus/registry
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Load skills from a directory
14
+
15
+ Skills are defined as `SKILL.md` files with YAML frontmatter. Point the registry at a folder:
16
+
17
+ ```ts
18
+ import { SkillRegistry } from '@agentoctopus/registry';
19
+
20
+ const registry = new SkillRegistry('./registry/skills');
21
+ await registry.load();
22
+
23
+ const skills = registry.getAll();
24
+ console.log(skills.map(s => s.manifest.name));
25
+ // ['weather', 'translation', 'ip-lookup']
26
+ ```
27
+
28
+ ### Skill manifest format
29
+
30
+ Each skill lives in its own folder with a `SKILL.md`:
31
+
32
+ ```markdown
33
+ ---
34
+ name: my-skill
35
+ description: What this skill does and when to use it.
36
+ tags: [tag1, tag2]
37
+ version: 1.0.0
38
+ endpoint: https://api.example.com/invoke
39
+ adapter: http
40
+ ---
41
+
42
+ ## Instructions
43
+
44
+ Detailed instructions for the LLM on how/when to invoke this skill.
45
+ ```
46
+
47
+ Supported adapters: `http`, `mcp`, `subprocess`.
48
+
49
+ ### Rating store
50
+
51
+ Persist and retrieve skill ratings (used by the router to prefer higher-rated skills):
52
+
53
+ ```ts
54
+ import { RatingStore } from '@agentoctopus/registry';
55
+
56
+ const store = new RatingStore('./registry/ratings.json');
57
+
58
+ store.record('my-skill', true); // positive feedback
59
+ store.record('my-skill', false); // negative feedback
60
+
61
+ const entry = store.get('my-skill');
62
+ // { rating: 3.5, invocations: 10 }
63
+ ```
64
+
65
+ ### Remote catalog
66
+
67
+ Fetch skills from a remote catalog URL:
68
+
69
+ ```ts
70
+ import { fetchRemoteCatalog } from '@agentoctopus/registry';
71
+
72
+ const skills = await fetchRemoteCatalog('https://example.com/catalog.json');
73
+ ```
74
+
75
+ ## License
76
+
77
+ Apache 2.0
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@agentoctopus/registry",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "AgentOctopus skill manifest loader and rating store",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "files": [
9
+ "README.md",
9
10
  "dist"
10
11
  ],
11
12
  "dependencies": {