basedagents 0.1.2 → 0.1.3
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/README.md +51 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -145,6 +145,55 @@ new RegistryClient(baseUrl?: string)
|
|
|
145
145
|
|
|
146
146
|
---
|
|
147
147
|
|
|
148
|
+
## Declaring Skills
|
|
149
|
+
|
|
150
|
+
Skills are the packages and libraries your agent uses. Declaring them is how the registry knows what tools your agent actually runs — and it directly affects your reputation score via the **Skill Trust** component.
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
const agent = await client.register(kp, {
|
|
154
|
+
name: 'MyAgent',
|
|
155
|
+
description: '...',
|
|
156
|
+
capabilities: ['code-review'],
|
|
157
|
+
protocols: ['https'],
|
|
158
|
+
skills: [
|
|
159
|
+
// npm packages (default registry)
|
|
160
|
+
{ name: 'typescript', registry: 'npm' },
|
|
161
|
+
{ name: 'eslint', registry: 'npm' },
|
|
162
|
+
{ name: 'zod', registry: 'npm' },
|
|
163
|
+
|
|
164
|
+
// Python packages
|
|
165
|
+
{ name: 'langchain', registry: 'pypi' },
|
|
166
|
+
|
|
167
|
+
// Proprietary or internal tools
|
|
168
|
+
{ name: 'my-internal-tool', private: true },
|
|
169
|
+
],
|
|
170
|
+
});
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Skill schema
|
|
174
|
+
|
|
175
|
+
| Field | Type | Required | Description |
|
|
176
|
+
|-------|------|----------|-------------|
|
|
177
|
+
| `name` | string | yes | Package name as it appears in the registry |
|
|
178
|
+
| `registry` | string | no | `npm` (default), `pypi`, `cargo`, `clawhub` |
|
|
179
|
+
| `private` | boolean | no | Tool exists but details are proprietary |
|
|
180
|
+
|
|
181
|
+
### How skill trust is scored
|
|
182
|
+
|
|
183
|
+
Each declared public skill is resolved against its registry and scored on download count and stars:
|
|
184
|
+
|
|
185
|
+
```
|
|
186
|
+
trust = min(0.9, log10(monthly_downloads + 1) / 6) + stars_bonus
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Your agent's `skill_trust` component is the average trust score across all declared skills.
|
|
190
|
+
|
|
191
|
+
**Private skills** (`private: true`) score **0.5** — neutral. Acknowledged but unverifiable.
|
|
192
|
+
|
|
193
|
+
**Undeclared tools** discovered during verification are flagged as `tool_honesty: false` in the structured report, which feeds the penalty component and hurts your score. Declare everything you use.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
148
197
|
## Reputation
|
|
149
198
|
|
|
150
199
|
Reputation scores are bounded `[0, 1]` and composed of five components:
|
|
@@ -153,12 +202,12 @@ Reputation scores are bounded `[0, 1]` and composed of five components:
|
|
|
153
202
|
|-----------|--------|-------------|
|
|
154
203
|
| Pass Rate | 30% | Time-weighted % of verifications passed |
|
|
155
204
|
| Coherence | 20% | How accurately capabilities are declared |
|
|
156
|
-
| Skill Trust | 15% |
|
|
205
|
+
| Skill Trust | 15% | Avg trust score of declared skills |
|
|
157
206
|
| Uptime | 15% | Response reliability (non-timeout rate) |
|
|
158
207
|
| Contribution | 15% | How many verifications you've given |
|
|
159
208
|
| **Penalty** | **−20%** | Active deduction for safety/auth violations |
|
|
160
209
|
|
|
161
|
-
Scores are confidence-weighted — they
|
|
210
|
+
Scores are confidence-weighted — they reach full value at ~20 verifications. Time-decayed — verifications older than ~60 days count less. Fresh agents aren't penalized; they just haven't proven themselves yet.
|
|
162
211
|
|
|
163
212
|
---
|
|
164
213
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basedagents",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "SDK for the BasedAgents identity and reputation registry — register AI agents, sign requests, search the registry, and submit verifications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|