@honeybee-ai/waggle-cli 1.0.22 → 1.0.24
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/brood.d.ts +75 -9
- package/dist/brood.js +383 -203
- package/dist/brood.js.map +1 -1
- package/dist/cli.js +32 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/apiary.d.ts +7 -0
- package/dist/commands/apiary.js +389 -0
- package/dist/commands/apiary.js.map +1 -0
- package/dist/commands/down.js +53 -8
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/funnel.d.ts +65 -0
- package/dist/commands/funnel.js +1306 -0
- package/dist/commands/funnel.js.map +1 -0
- package/dist/commands/hive.js +4 -3
- package/dist/commands/hive.js.map +1 -1
- package/dist/commands/quickstart.d.ts +26 -0
- package/dist/commands/quickstart.js +380 -0
- package/dist/commands/quickstart.js.map +1 -0
- package/dist/commands/up.js +160 -204
- package/dist/commands/up.js.map +1 -1
- package/dist/lib/dance-loader.d.ts +32 -0
- package/dist/lib/dance-loader.js +66 -0
- package/dist/lib/dance-loader.js.map +1 -0
- package/dist/lib/graphql-loader.d.ts +57 -0
- package/dist/lib/graphql-loader.js +283 -0
- package/dist/lib/graphql-loader.js.map +1 -0
- package/dist/lib/header-resolver.d.ts +9 -0
- package/dist/lib/header-resolver.js +32 -0
- package/dist/lib/header-resolver.js.map +1 -0
- package/dist/lib/openapi-loader.d.ts +17 -0
- package/dist/lib/openapi-loader.js +164 -0
- package/dist/lib/openapi-loader.js.map +1 -0
- package/dist/repl/index.js +13 -7
- package/dist/repl/index.js.map +1 -1
- package/dist/wgl.js +678 -588
- package/dist/wgl.js.map +4 -4
- package/package.json +10 -6
package/dist/brood.d.ts
CHANGED
|
@@ -40,7 +40,8 @@ export interface ScheduleEntry {
|
|
|
40
40
|
action: string;
|
|
41
41
|
config?: Record<string, string>;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
/** Per-namespace event routing + trigger config. Canonical key: 'events'. */
|
|
44
|
+
export interface EventsConfig {
|
|
44
45
|
publishes?: string[];
|
|
45
46
|
subscribes?: string[];
|
|
46
47
|
compute?: ComputeTier;
|
|
@@ -48,14 +49,19 @@ export interface HoneycombConfig {
|
|
|
48
49
|
on?: Record<string, string | TriggerActionConfig>;
|
|
49
50
|
schedule?: Record<string, ScheduleEntry>;
|
|
50
51
|
}
|
|
52
|
+
/** @deprecated Use EventsConfig. Kept for backwards compatibility. */
|
|
53
|
+
export type HoneycombConfig = EventsConfig;
|
|
51
54
|
export interface AgentEntry {
|
|
52
55
|
role: string;
|
|
53
|
-
|
|
56
|
+
/** Number of agents, or "min-max" range string (e.g. "0-5"). */
|
|
57
|
+
count?: number | string;
|
|
54
58
|
/** 'worker' = in-process tools (default), 'drone' = MCP tools, 'claude' = Claude Code instance */
|
|
55
59
|
type?: 'worker' | 'drone' | 'claude';
|
|
56
60
|
model_hint?: string;
|
|
57
61
|
/** Custom prompt for claude agents. Overrides the default generic prompt. */
|
|
58
62
|
prompt?: string;
|
|
63
|
+
/** Path to a Claude Code plugin directory (--plugin-dir). */
|
|
64
|
+
pluginDir?: string;
|
|
59
65
|
/** Propolis tool names to expose. Omit or 'all' = no filtering. */
|
|
60
66
|
tools?: string[] | 'all';
|
|
61
67
|
/** Incubator tools in no-ACP mode. 'lite'=4 core, 'full'=all, 'none'=zero, or array of names. */
|
|
@@ -67,7 +73,8 @@ export interface AgentEntry {
|
|
|
67
73
|
/** Workspace backend: 'memfs' for in-memory filesystem, 'real' for disk (default). */
|
|
68
74
|
workspace?: 'memfs' | 'real';
|
|
69
75
|
}
|
|
70
|
-
|
|
76
|
+
/** Config for a single namespace within a brood. Canonical YAML key: entries under 'hive:'. */
|
|
77
|
+
export interface NamespaceConfig {
|
|
71
78
|
worktree?: string;
|
|
72
79
|
/** ACP spec: file path, URL, or inline spec object. Aliases: 'protocol', 'spec'. */
|
|
73
80
|
acp?: string | Record<string, unknown>;
|
|
@@ -75,15 +82,32 @@ export interface HiveConfig {
|
|
|
75
82
|
protocol?: string | Record<string, unknown>;
|
|
76
83
|
/** @deprecated Use 'acp'. */
|
|
77
84
|
spec?: string | Record<string, unknown>;
|
|
85
|
+
/** @deprecated Use top-level port. Per-namespace ports removed in single-process model. */
|
|
78
86
|
port?: number;
|
|
79
87
|
/** Dance file path. Aliases: 'logic'. */
|
|
80
88
|
dances?: string;
|
|
81
89
|
/** Agent definitions. Accepts both 'agents' and 'workers' in YAML (alias). */
|
|
82
90
|
agents?: AgentEntry[];
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
/** @deprecated Use '
|
|
86
|
-
|
|
91
|
+
/** Per-namespace event routing + triggers. Canonical: 'events'. Aliases: 'honeycomb', 'comb'. */
|
|
92
|
+
events?: EventsConfig;
|
|
93
|
+
/** @deprecated Use 'events'. */
|
|
94
|
+
honeycomb?: EventsConfig;
|
|
95
|
+
/** @deprecated Use 'events'. */
|
|
96
|
+
comb?: EventsConfig;
|
|
97
|
+
}
|
|
98
|
+
/** @deprecated Use NamespaceConfig. Kept for backwards compatibility. */
|
|
99
|
+
export type HiveConfig = NamespaceConfig;
|
|
100
|
+
/** Optional hive-level orchestrator. */
|
|
101
|
+
export interface QueenConfig {
|
|
102
|
+
/** LLM provider for the queen (overrides top-level provider). */
|
|
103
|
+
provider?: string;
|
|
104
|
+
/** Instructions: inline markdown string, file path (.md/.js/.ts/.mjs), or array of mixed. */
|
|
105
|
+
orders?: string | string[];
|
|
106
|
+
}
|
|
107
|
+
/** Hive-wide schedule interval. */
|
|
108
|
+
export interface TopLevelScheduleConfig {
|
|
109
|
+
/** Duration string: "1h", "30m", "10s", etc. */
|
|
110
|
+
every: string;
|
|
87
111
|
}
|
|
88
112
|
/** Apiary VPS config for remote shell bridging with memfs agents. */
|
|
89
113
|
export interface ApiaryConfig {
|
|
@@ -92,6 +116,33 @@ export interface ApiaryConfig {
|
|
|
92
116
|
branch?: string;
|
|
93
117
|
setup?: string;
|
|
94
118
|
}
|
|
119
|
+
/** Funnel config — auto-start a funnel alongside the brood. */
|
|
120
|
+
export interface FunnelConfig {
|
|
121
|
+
/** Colony hive ID to connect to. */
|
|
122
|
+
hiveId: string;
|
|
123
|
+
/** Colony URL (default: https://colony.honeyb.dev). */
|
|
124
|
+
colony?: string;
|
|
125
|
+
/** Path restriction (default: cwd, false = no scope). */
|
|
126
|
+
scope?: string | false;
|
|
127
|
+
/** Dance files to load for custom tools. */
|
|
128
|
+
dances?: string[];
|
|
129
|
+
/** One-off "name=command" shell tools. */
|
|
130
|
+
tools?: string[];
|
|
131
|
+
/** Per-tool role ACLs (tool name -> allowed roles). */
|
|
132
|
+
acls?: Record<string, string[]>;
|
|
133
|
+
/** OpenAPI 3.x spec file paths. */
|
|
134
|
+
api?: string[];
|
|
135
|
+
/** Base URL for OpenAPI requests (overrides spec servers[0].url). */
|
|
136
|
+
apiUrl?: string;
|
|
137
|
+
/** GraphQL sources — URLs (introspect) or file paths. */
|
|
138
|
+
graphql?: string[];
|
|
139
|
+
/** Query endpoint URL (required when graphql source is a file). */
|
|
140
|
+
graphqlUrl?: string;
|
|
141
|
+
/** Headers for API requests. Supports ${VAR} env interpolation. */
|
|
142
|
+
apiHeaders?: string[];
|
|
143
|
+
/** Labels for routing (key-value pairs). Agents can target funnels by label. */
|
|
144
|
+
labels?: Record<string, string>;
|
|
145
|
+
}
|
|
95
146
|
export interface BroodConfig {
|
|
96
147
|
name: string;
|
|
97
148
|
version?: string;
|
|
@@ -103,14 +154,29 @@ export interface BroodConfig {
|
|
|
103
154
|
env?: Record<string, string>;
|
|
104
155
|
/** Seconds between each agent spawn (default: 2). Increase for remote providers. */
|
|
105
156
|
stagger?: number;
|
|
106
|
-
/** Top-level dance file path. Aliases: 'logic'. Per-
|
|
157
|
+
/** Top-level dance file path. Aliases: 'logic'. Per-namespace dances override this. */
|
|
107
158
|
dances?: string;
|
|
108
159
|
/** Apiary VPS config. Secret comes from APIARY_SECRET env var. */
|
|
109
160
|
apiary?: ApiaryConfig;
|
|
110
|
-
|
|
161
|
+
/** Funnel config — auto-start a funnel connection to Colony. */
|
|
162
|
+
funnel?: FunnelConfig;
|
|
163
|
+
/** Optional queen orchestrator. */
|
|
164
|
+
queen?: QueenConfig;
|
|
165
|
+
/** Hive-wide schedule interval. */
|
|
166
|
+
schedule?: TopLevelScheduleConfig;
|
|
167
|
+
/** Top-level cross-namespace event routing, keyed by namespace name. */
|
|
168
|
+
events?: Record<string, EventsConfig>;
|
|
169
|
+
/** Namespace definitions. Canonical key: 'hive'. */
|
|
170
|
+
hive: Record<string, NamespaceConfig>;
|
|
171
|
+
/** @deprecated Use 'hive'. Same object reference. */
|
|
172
|
+
hives: Record<string, NamespaceConfig>;
|
|
173
|
+
/** @deprecated Use 'events'. Same object reference for top-level honeycomb config. */
|
|
174
|
+
honeycomb?: Record<string, EventsConfig>;
|
|
111
175
|
}
|
|
112
176
|
/** Parse a duration string ("30s", "15m", "1h", "2h30m") to milliseconds. */
|
|
113
177
|
export declare function parseDuration(str: string): number;
|
|
178
|
+
/** Validate a "min-max" count range string. Returns the string if valid. */
|
|
179
|
+
export declare function parseCountRange(value: string): string;
|
|
114
180
|
/** Find brood file in directory or via explicit path. */
|
|
115
181
|
export declare function findBroodFile(fileArg?: string): string | null;
|
|
116
182
|
/** Parse and validate a brood file. */
|