agentbnb 4.0.4 → 5.1.0
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/dist/chunk-AUBHR7HH.js +25 -0
- package/dist/chunk-B5FTAGFN.js +393 -0
- package/dist/{chunk-GGYC5U2Z.js → chunk-BTTL24TZ.js} +29 -91
- package/dist/chunk-C6KPAFCC.js +387 -0
- package/dist/{chunk-JXEOE7HX.js → chunk-CRFCWD6V.js} +163 -92
- package/dist/chunk-CSATDXZC.js +89 -0
- package/dist/{chunk-T7NS2J2B.js → chunk-DFBX3BBD.js} +84 -1
- package/dist/{chunk-DNWT5FZQ.js → chunk-EANI2N2V.js} +98 -1
- package/dist/{chunk-HH24WMFN.js → chunk-FLY3WIQR.js} +1 -1
- package/dist/{chunk-EVBX22YU.js → chunk-HLUEOLSZ.js} +11 -17
- package/dist/chunk-IVOYM3WG.js +25 -0
- package/dist/chunk-LCAIAAG2.js +916 -0
- package/dist/chunk-MLS6IGGG.js +294 -0
- package/dist/{chunk-4P3EMGL4.js → chunk-MNO4COST.js} +5 -3
- package/dist/chunk-NH2FIERR.js +138 -0
- package/dist/chunk-UKT6H7YT.js +29 -0
- package/dist/{chunk-BH6WGYFB.js → chunk-VE3E4AMH.js} +8 -8
- package/dist/{chunk-5QGXARLJ.js → chunk-W5BZMKMF.js} +159 -27
- package/dist/{chunk-FF226TIV.js → chunk-ZX5623ER.js} +0 -57
- package/dist/cli/index.js +362 -4633
- package/dist/{conduct-N52JX7RT.js → conduct-KM6ZNJGE.js} +10 -8
- package/dist/{conduct-GZQNFTRP.js → conduct-WGTMQND5.js} +10 -8
- package/dist/{conductor-mode-XUWGR4ZE.js → conductor-mode-OL2FNOYY.js} +6 -4
- package/dist/{conductor-mode-ESGFZ6T5.js → conductor-mode-VRO7TYW2.js} +20 -167
- package/dist/execute-CPFSOOO3.js +13 -0
- package/dist/execute-IP2QHALV.js +10 -0
- package/dist/index.d.ts +14 -8
- package/dist/index.js +186 -35
- package/dist/{peers-E4MKNNDN.js → peers-CJ7T4RJO.js} +2 -1
- package/dist/process-guard-CC7CNRQJ.js +176 -0
- package/dist/{request-4GQSSM4B.js → request-YOWPXVLQ.js} +13 -10
- package/dist/schema-7BSSLZ4S.js +8 -0
- package/dist/{serve-skill-Q6NHX2RA.js → serve-skill-JHFNR7BW.js} +8 -7
- package/dist/{server-B5E566CI.js → server-HKJJWFRG.js} +10 -8
- package/dist/service-coordinator-5R4LQW6L.js +4917 -0
- package/dist/skills/agentbnb/bootstrap.js +5028 -848
- package/dist/websocket-client-WRN3HO73.js +6 -0
- package/package.json +4 -1
- package/skills/agentbnb/SKILL.md +87 -70
- package/skills/agentbnb/bootstrap.test.ts +142 -242
- package/skills/agentbnb/bootstrap.ts +88 -95
- package/skills/agentbnb/install.sh +97 -27
- package/dist/card-RNEWSAQ6.js +0 -88
- package/dist/chunk-UB2NPFC7.js +0 -165
- package/dist/execute-QH6F54D7.js +0 -10
package/dist/chunk-UB2NPFC7.js
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
// src/types/index.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var IOSchemaSchema = z.object({
|
|
4
|
-
name: z.string(),
|
|
5
|
-
type: z.enum(["text", "json", "file", "audio", "image", "video", "stream"]),
|
|
6
|
-
description: z.string().optional(),
|
|
7
|
-
required: z.boolean().default(true),
|
|
8
|
-
schema: z.record(z.unknown()).optional()
|
|
9
|
-
// JSON Schema
|
|
10
|
-
});
|
|
11
|
-
var PoweredBySchema = z.object({
|
|
12
|
-
provider: z.string().min(1),
|
|
13
|
-
model: z.string().optional(),
|
|
14
|
-
tier: z.string().optional()
|
|
15
|
-
});
|
|
16
|
-
var CapabilityCardSchema = z.object({
|
|
17
|
-
spec_version: z.literal("1.0").default("1.0"),
|
|
18
|
-
id: z.string().uuid(),
|
|
19
|
-
owner: z.string().min(1),
|
|
20
|
-
name: z.string().min(1).max(100),
|
|
21
|
-
description: z.string().max(500),
|
|
22
|
-
level: z.union([z.literal(1), z.literal(2), z.literal(3)]),
|
|
23
|
-
inputs: z.array(IOSchemaSchema),
|
|
24
|
-
outputs: z.array(IOSchemaSchema),
|
|
25
|
-
pricing: z.object({
|
|
26
|
-
credits_per_call: z.number().nonnegative(),
|
|
27
|
-
credits_per_minute: z.number().nonnegative().optional(),
|
|
28
|
-
/** Number of free monthly calls. Shown as a "N free/mo" badge in the Hub. */
|
|
29
|
-
free_tier: z.number().nonnegative().optional()
|
|
30
|
-
}),
|
|
31
|
-
availability: z.object({
|
|
32
|
-
online: z.boolean(),
|
|
33
|
-
schedule: z.string().optional()
|
|
34
|
-
// cron expression
|
|
35
|
-
}),
|
|
36
|
-
powered_by: z.array(PoweredBySchema).optional(),
|
|
37
|
-
/**
|
|
38
|
-
* Private per-card metadata. Stripped from all API and CLI responses —
|
|
39
|
-
* never transmitted beyond the local store.
|
|
40
|
-
*/
|
|
41
|
-
_internal: z.record(z.unknown()).optional(),
|
|
42
|
-
/** Public gateway URL where this agent accepts requests. Populated on remote publish. */
|
|
43
|
-
gateway_url: z.string().url().optional(),
|
|
44
|
-
metadata: z.object({
|
|
45
|
-
apis_used: z.array(z.string()).optional(),
|
|
46
|
-
avg_latency_ms: z.number().nonnegative().optional(),
|
|
47
|
-
success_rate: z.number().min(0).max(1).optional(),
|
|
48
|
-
tags: z.array(z.string()).optional()
|
|
49
|
-
}).optional(),
|
|
50
|
-
created_at: z.string().datetime().optional(),
|
|
51
|
-
updated_at: z.string().datetime().optional()
|
|
52
|
-
});
|
|
53
|
-
var SkillSchema = z.object({
|
|
54
|
-
/** Stable skill identifier, e.g. 'tts-elevenlabs'. Used for gateway routing and idle tracking. */
|
|
55
|
-
id: z.string().min(1),
|
|
56
|
-
name: z.string().min(1).max(100),
|
|
57
|
-
description: z.string().max(500),
|
|
58
|
-
level: z.union([z.literal(1), z.literal(2), z.literal(3)]),
|
|
59
|
-
/** Optional grouping category, e.g. 'tts' | 'video_gen' | 'code_review'. */
|
|
60
|
-
category: z.string().optional(),
|
|
61
|
-
inputs: z.array(IOSchemaSchema),
|
|
62
|
-
outputs: z.array(IOSchemaSchema),
|
|
63
|
-
pricing: z.object({
|
|
64
|
-
credits_per_call: z.number().nonnegative(),
|
|
65
|
-
credits_per_minute: z.number().nonnegative().optional(),
|
|
66
|
-
free_tier: z.number().nonnegative().optional()
|
|
67
|
-
}),
|
|
68
|
-
/** Per-skill online flag — overrides card-level availability for this skill. */
|
|
69
|
-
availability: z.object({ online: z.boolean() }).optional(),
|
|
70
|
-
powered_by: z.array(PoweredBySchema).optional(),
|
|
71
|
-
metadata: z.object({
|
|
72
|
-
apis_used: z.array(z.string()).optional(),
|
|
73
|
-
avg_latency_ms: z.number().nonnegative().optional(),
|
|
74
|
-
success_rate: z.number().min(0).max(1).optional(),
|
|
75
|
-
tags: z.array(z.string()).optional(),
|
|
76
|
-
capacity: z.object({
|
|
77
|
-
calls_per_hour: z.number().positive().default(60)
|
|
78
|
-
}).optional()
|
|
79
|
-
}).optional(),
|
|
80
|
-
/**
|
|
81
|
-
* Private per-skill metadata. Stripped from all API and CLI responses —
|
|
82
|
-
* never transmitted beyond the local store.
|
|
83
|
-
*/
|
|
84
|
-
_internal: z.record(z.unknown()).optional()
|
|
85
|
-
});
|
|
86
|
-
var SuitabilitySchema = z.object({
|
|
87
|
-
/** Use cases this agent/skill is optimised for. */
|
|
88
|
-
ideal_for: z.array(z.string()).optional(),
|
|
89
|
-
/** Scenarios this agent/skill cannot reliably handle. */
|
|
90
|
-
not_suitable_for: z.array(z.string()).optional(),
|
|
91
|
-
/** Domains explicitly excluded (used for routing exclusions in later phases). */
|
|
92
|
-
excluded_domains: z.array(z.string()).optional(),
|
|
93
|
-
/** Conditions that increase failure risk, shown as warnings in the Hub. */
|
|
94
|
-
risk_conditions: z.array(z.string()).optional(),
|
|
95
|
-
/** Recommended alternative when this agent is unsuitable. */
|
|
96
|
-
fallback_recommendation: z.string().optional()
|
|
97
|
-
});
|
|
98
|
-
var LearningSchema = z.object({
|
|
99
|
-
/** Known limitations that may affect reliability (self-declared). */
|
|
100
|
-
known_limitations: z.array(z.string()).optional(),
|
|
101
|
-
/** Common failure patterns observed by the provider. */
|
|
102
|
-
common_failure_patterns: z.array(z.string()).optional(),
|
|
103
|
-
/** Version-tagged improvements the provider has shipped. */
|
|
104
|
-
recent_improvements: z.array(z.object({
|
|
105
|
-
version: z.string(),
|
|
106
|
-
summary: z.string(),
|
|
107
|
-
timestamp: z.string()
|
|
108
|
-
})).optional(),
|
|
109
|
-
/** Structured critiques from external sources (phase 2+). */
|
|
110
|
-
critiques: z.array(z.object({
|
|
111
|
-
type: z.literal("structured"),
|
|
112
|
-
summary: z.string(),
|
|
113
|
-
source_tier: z.string(),
|
|
114
|
-
timestamp: z.string()
|
|
115
|
-
})).optional()
|
|
116
|
-
});
|
|
117
|
-
var CapabilityCardV2Schema = z.object({
|
|
118
|
-
spec_version: z.literal("2.0"),
|
|
119
|
-
id: z.string().uuid(),
|
|
120
|
-
owner: z.string().min(1),
|
|
121
|
-
/** Agent display name — was 'name' in v1.0. */
|
|
122
|
-
agent_name: z.string().min(1).max(100),
|
|
123
|
-
/** Short one-liner shown in Hub v2 Identity Header. */
|
|
124
|
-
short_description: z.string().max(200).optional(),
|
|
125
|
-
/** At least one skill is required. */
|
|
126
|
-
skills: z.array(SkillSchema).min(1),
|
|
127
|
-
availability: z.object({
|
|
128
|
-
online: z.boolean(),
|
|
129
|
-
schedule: z.string().optional()
|
|
130
|
-
}),
|
|
131
|
-
/** Optional deployment environment metadata. */
|
|
132
|
-
environment: z.object({
|
|
133
|
-
runtime: z.string(),
|
|
134
|
-
region: z.string().optional()
|
|
135
|
-
}).optional(),
|
|
136
|
-
/** Suitability metadata for Hub v2 profile and future routing warnings. */
|
|
137
|
-
suitability: SuitabilitySchema.optional(),
|
|
138
|
-
/** Learning signals — self-declared limitations, improvements, critiques. */
|
|
139
|
-
learning: LearningSchema.optional(),
|
|
140
|
-
/**
|
|
141
|
-
* Private per-card metadata. Stripped from all API and CLI responses —
|
|
142
|
-
* never transmitted beyond the local store.
|
|
143
|
-
*/
|
|
144
|
-
_internal: z.record(z.unknown()).optional(),
|
|
145
|
-
/** Public gateway URL where this agent accepts requests. Populated on remote publish. */
|
|
146
|
-
gateway_url: z.string().url().optional(),
|
|
147
|
-
created_at: z.string().datetime().optional(),
|
|
148
|
-
updated_at: z.string().datetime().optional()
|
|
149
|
-
});
|
|
150
|
-
var AnyCardSchema = z.discriminatedUnion("spec_version", [
|
|
151
|
-
CapabilityCardSchema,
|
|
152
|
-
CapabilityCardV2Schema
|
|
153
|
-
]);
|
|
154
|
-
var AgentBnBError = class extends Error {
|
|
155
|
-
constructor(message, code) {
|
|
156
|
-
super(message);
|
|
157
|
-
this.code = code;
|
|
158
|
-
this.name = "AgentBnBError";
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export {
|
|
163
|
-
CapabilityCardV2Schema,
|
|
164
|
-
AgentBnBError
|
|
165
|
-
};
|
package/dist/execute-QH6F54D7.js
DELETED