agentlaunch-templates 0.4.2 → 0.4.4
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/__tests__/build.test.d.ts +1 -1
- package/dist/__tests__/build.test.js +5 -5
- package/dist/__tests__/build.test.js.map +1 -1
- package/dist/__tests__/consumer-commerce.test.d.ts +11 -0
- package/dist/__tests__/consumer-commerce.test.d.ts.map +1 -0
- package/dist/__tests__/consumer-commerce.test.js +118 -0
- package/dist/__tests__/consumer-commerce.test.js.map +1 -0
- package/dist/__tests__/swarm-starter-integration.test.d.ts +12 -0
- package/dist/__tests__/swarm-starter-integration.test.d.ts.map +1 -0
- package/dist/__tests__/swarm-starter-integration.test.js +143 -0
- package/dist/__tests__/swarm-starter-integration.test.js.map +1 -0
- package/dist/__tests__/swarm-starter.test.d.ts +16 -0
- package/dist/__tests__/swarm-starter.test.d.ts.map +1 -0
- package/dist/__tests__/swarm-starter.test.js +310 -0
- package/dist/__tests__/swarm-starter.test.js.map +1 -0
- package/dist/claude-context.d.ts +1 -1
- package/dist/claude-context.d.ts.map +1 -1
- package/dist/claude-context.js +55 -49
- package/dist/claude-context.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/people.d.ts +108 -0
- package/dist/people.d.ts.map +1 -0
- package/dist/people.js +563 -0
- package/dist/people.js.map +1 -0
- package/dist/presets.d.ts +13 -13
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +331 -96
- package/dist/presets.js.map +1 -1
- package/dist/registry.d.ts +3 -8
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +8 -28
- package/dist/registry.js.map +1 -1
- package/dist/templates/chat-memory.d.ts +5 -14
- package/dist/templates/chat-memory.d.ts.map +1 -1
- package/dist/templates/chat-memory.js +142 -220
- package/dist/templates/chat-memory.js.map +1 -1
- package/dist/templates/consumer-commerce.d.ts +14 -0
- package/dist/templates/consumer-commerce.d.ts.map +1 -0
- package/dist/templates/consumer-commerce.js +439 -0
- package/dist/templates/consumer-commerce.js.map +1 -0
- package/dist/templates/genesis.d.ts.map +1 -1
- package/dist/templates/genesis.js +10 -0
- package/dist/templates/genesis.js.map +1 -1
- package/dist/templates/swarm-starter.d.ts +26 -0
- package/dist/templates/swarm-starter.d.ts.map +1 -0
- package/dist/templates/swarm-starter.js +1421 -0
- package/dist/templates/swarm-starter.js.map +1 -0
- package/package.json +3 -2
package/dist/people.js
ADDED
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* people.ts — Org Chart to Agent Swarm Generator
|
|
3
|
+
*
|
|
4
|
+
* Transform any organization into a coordinated AI agent swarm.
|
|
5
|
+
* C-levels become infrastructure agents. Department heads become specialists.
|
|
6
|
+
* Teams become service agents. Everyone's expertise scales 24/7.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* import { generateSwarmFromOrg, OrgChart, EXAMPLE_ORGS } from "agentlaunch-templates";
|
|
10
|
+
*
|
|
11
|
+
* // Quick start with a preset org
|
|
12
|
+
* const startup = generateSwarmFromOrg(EXAMPLE_ORGS.startup);
|
|
13
|
+
* const enterprise = generateSwarmFromOrg(EXAMPLE_ORGS.enterprise);
|
|
14
|
+
*
|
|
15
|
+
* // Or define your own
|
|
16
|
+
* const myOrg: OrgChart = {
|
|
17
|
+
* name: "Acme Corp",
|
|
18
|
+
* cSuite: [
|
|
19
|
+
* { role: "ceo", name: "Jane Smith", title: "CEO" },
|
|
20
|
+
* { role: "cto", name: "Bob Lee", title: "CTO" },
|
|
21
|
+
* ],
|
|
22
|
+
* departments: [
|
|
23
|
+
* { name: "Engineering", head: "Alice", services: ["code_review", "debug", "architecture"] },
|
|
24
|
+
* ],
|
|
25
|
+
* };
|
|
26
|
+
* const swarm = generateSwarmFromOrg(myOrg);
|
|
27
|
+
*/
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
29
|
+
// Constants
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
// 1 FET = 10^18 atestfet
|
|
32
|
+
const FET = 1000000000000000000n;
|
|
33
|
+
const toAtestfet = (fet) => Number(BigInt(Math.floor(fet * 100)) * (FET / 100n));
|
|
34
|
+
/** Default pricing by tier */
|
|
35
|
+
const DEFAULT_PRICING = {
|
|
36
|
+
"c-suite": 0.02, // FET per query
|
|
37
|
+
department: 0.01,
|
|
38
|
+
team: 0.005,
|
|
39
|
+
};
|
|
40
|
+
/** C-Suite agent definitions */
|
|
41
|
+
const C_SUITE_CONFIGS = {
|
|
42
|
+
ceo: {
|
|
43
|
+
name: "ceo",
|
|
44
|
+
displayName: "The CEO",
|
|
45
|
+
role: "ceo",
|
|
46
|
+
description: "Routes all queries, earns on every interaction, coordinates the entire organization",
|
|
47
|
+
tier: "c-suite",
|
|
48
|
+
services: {
|
|
49
|
+
route_query: toAtestfet(0.02),
|
|
50
|
+
org_status: toAtestfet(0.01),
|
|
51
|
+
stakeholder_comms: toAtestfet(0.02),
|
|
52
|
+
},
|
|
53
|
+
intervalSeconds: 300,
|
|
54
|
+
dependencies: ["cto", "cfo"],
|
|
55
|
+
crossHoldings: ["cto", "cfo", "coo"],
|
|
56
|
+
variables: {
|
|
57
|
+
role: "ceo",
|
|
58
|
+
service_price_afet: String(toAtestfet(0.02)),
|
|
59
|
+
interval_seconds: "300",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
cto: {
|
|
63
|
+
name: "cto",
|
|
64
|
+
displayName: "The CTO",
|
|
65
|
+
role: "cto",
|
|
66
|
+
description: "Shared reasoning layer — every agent pays for technical thinking",
|
|
67
|
+
tier: "c-suite",
|
|
68
|
+
services: {
|
|
69
|
+
reason: toAtestfet(0.05),
|
|
70
|
+
architecture_review: toAtestfet(0.05),
|
|
71
|
+
debug: toAtestfet(0.05),
|
|
72
|
+
},
|
|
73
|
+
intervalSeconds: 300,
|
|
74
|
+
dependencies: [],
|
|
75
|
+
crossHoldings: [], // CTO is the dependency, doesn't hold others
|
|
76
|
+
variables: {
|
|
77
|
+
role: "cto",
|
|
78
|
+
service_price_afet: String(toAtestfet(0.05)),
|
|
79
|
+
interval_seconds: "300",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
cfo: {
|
|
83
|
+
name: "cfo",
|
|
84
|
+
displayName: "The CFO",
|
|
85
|
+
role: "cfo",
|
|
86
|
+
description: "Treasury monitoring, revenue tracking, financial alerts across all agents",
|
|
87
|
+
tier: "c-suite",
|
|
88
|
+
services: {
|
|
89
|
+
treasury_report: toAtestfet(0.02),
|
|
90
|
+
anomaly_alert: toAtestfet(0.01),
|
|
91
|
+
revenue_tracker: toAtestfet(0.01),
|
|
92
|
+
},
|
|
93
|
+
intervalSeconds: 300,
|
|
94
|
+
dependencies: [],
|
|
95
|
+
crossHoldings: ["cto"],
|
|
96
|
+
variables: {
|
|
97
|
+
role: "cfo",
|
|
98
|
+
service_price_afet: String(toAtestfet(0.02)),
|
|
99
|
+
interval_seconds: "300",
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
coo: {
|
|
103
|
+
name: "coo",
|
|
104
|
+
displayName: "The COO",
|
|
105
|
+
role: "coo",
|
|
106
|
+
description: "24/7 operations monitoring, incident alerts, quality control",
|
|
107
|
+
tier: "c-suite",
|
|
108
|
+
services: {
|
|
109
|
+
system_status: toAtestfet(0.01),
|
|
110
|
+
incident_alert: toAtestfet(0.02),
|
|
111
|
+
quality_report: toAtestfet(0.02),
|
|
112
|
+
},
|
|
113
|
+
intervalSeconds: 60,
|
|
114
|
+
dependencies: [],
|
|
115
|
+
crossHoldings: ["ceo", "cto", "cfo"],
|
|
116
|
+
variables: {
|
|
117
|
+
role: "coo",
|
|
118
|
+
service_price_afet: String(toAtestfet(0.02)),
|
|
119
|
+
interval_seconds: "60",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
cro: {
|
|
123
|
+
name: "cro",
|
|
124
|
+
displayName: "The CRO",
|
|
125
|
+
role: "cro",
|
|
126
|
+
description: "Chief Recruitment Officer — scouts agents, expands the swarm, builds cross-swarm partnerships",
|
|
127
|
+
tier: "c-suite",
|
|
128
|
+
services: {
|
|
129
|
+
scout_agents: toAtestfet(0.05), // Discover agents on Agentverse
|
|
130
|
+
generate_spec: toAtestfet(0.50), // Create new agent specifications
|
|
131
|
+
onboard_agent: toAtestfet(0.10), // Integrate agent into swarm
|
|
132
|
+
partnership_proposal: toAtestfet(0.20), // Propose cross-swarm partnership
|
|
133
|
+
team_status: toAtestfet(0.02), // Report on swarm growth
|
|
134
|
+
},
|
|
135
|
+
intervalSeconds: 86400,
|
|
136
|
+
dependencies: ["cto"],
|
|
137
|
+
crossHoldings: ["cto", "ceo"],
|
|
138
|
+
variables: {
|
|
139
|
+
role: "cro",
|
|
140
|
+
service_price_afet: String(toAtestfet(0.05)),
|
|
141
|
+
interval_seconds: "86400",
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
// ---------------------------------------------------------------------------
|
|
146
|
+
// Example Org Charts
|
|
147
|
+
// ---------------------------------------------------------------------------
|
|
148
|
+
export const EXAMPLE_ORGS = {
|
|
149
|
+
/** Minimal startup — just founders */
|
|
150
|
+
startup: {
|
|
151
|
+
name: "Startup",
|
|
152
|
+
symbol: "START",
|
|
153
|
+
cSuite: [
|
|
154
|
+
{ role: "ceo", name: "Founder", title: "CEO / Founder" },
|
|
155
|
+
{ role: "cto", name: "Technical Co-founder", title: "CTO" },
|
|
156
|
+
],
|
|
157
|
+
departments: [
|
|
158
|
+
{
|
|
159
|
+
name: "Product",
|
|
160
|
+
services: ["roadmap", "user_research", "prioritize"],
|
|
161
|
+
pricePerCall: 0.01,
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
/** Small team — 5 C-levels + 3 departments */
|
|
166
|
+
smb: {
|
|
167
|
+
name: "SMB",
|
|
168
|
+
symbol: "SMB",
|
|
169
|
+
cSuite: [
|
|
170
|
+
{ role: "ceo", name: "CEO", title: "Chief Executive Officer" },
|
|
171
|
+
{ role: "cto", name: "CTO", title: "Chief Technology Officer" },
|
|
172
|
+
{ role: "cfo", name: "CFO", title: "Chief Financial Officer" },
|
|
173
|
+
],
|
|
174
|
+
departments: [
|
|
175
|
+
{
|
|
176
|
+
name: "Engineering",
|
|
177
|
+
head: "Engineering Lead",
|
|
178
|
+
services: ["code_review", "debug", "deploy"],
|
|
179
|
+
pricePerCall: 0.01,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: "Sales",
|
|
183
|
+
head: "Sales Lead",
|
|
184
|
+
services: ["prospect", "qualify", "close"],
|
|
185
|
+
pricePerCall: 0.01,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "Support",
|
|
189
|
+
head: "Support Lead",
|
|
190
|
+
services: ["ticket", "escalate", "knowledge_base"],
|
|
191
|
+
pricePerCall: 0.005,
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
/** Full C-Suite + departments + teams */
|
|
196
|
+
enterprise: {
|
|
197
|
+
name: "Enterprise",
|
|
198
|
+
symbol: "ENT",
|
|
199
|
+
cSuite: [
|
|
200
|
+
{ role: "ceo", name: "CEO", title: "Chief Executive Officer" },
|
|
201
|
+
{ role: "cto", name: "CTO", title: "Chief Technology Officer" },
|
|
202
|
+
{ role: "cfo", name: "CFO", title: "Chief Financial Officer" },
|
|
203
|
+
{ role: "coo", name: "COO", title: "Chief Operating Officer" },
|
|
204
|
+
{ role: "cro", name: "CRO", title: "Chief Recruitment Officer" },
|
|
205
|
+
],
|
|
206
|
+
departments: [
|
|
207
|
+
{
|
|
208
|
+
name: "Engineering",
|
|
209
|
+
head: "VP Engineering",
|
|
210
|
+
services: ["architecture", "code_review", "debug", "deploy"],
|
|
211
|
+
pricePerCall: 0.02,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: "Product",
|
|
215
|
+
head: "VP Product",
|
|
216
|
+
services: ["roadmap", "requirements", "prioritize", "launch"],
|
|
217
|
+
pricePerCall: 0.02,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: "Sales",
|
|
221
|
+
head: "VP Sales",
|
|
222
|
+
services: ["prospect", "qualify", "negotiate", "close"],
|
|
223
|
+
pricePerCall: 0.02,
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: "Marketing",
|
|
227
|
+
head: "VP Marketing",
|
|
228
|
+
services: ["content", "campaigns", "analytics", "brand"],
|
|
229
|
+
pricePerCall: 0.01,
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: "Support",
|
|
233
|
+
head: "VP Support",
|
|
234
|
+
services: ["ticket", "escalate", "knowledge_base", "onboard"],
|
|
235
|
+
pricePerCall: 0.01,
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: "HR",
|
|
239
|
+
head: "VP HR",
|
|
240
|
+
services: ["recruit", "onboard", "review", "offboard"],
|
|
241
|
+
pricePerCall: 0.01,
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
teams: [
|
|
245
|
+
{
|
|
246
|
+
name: "Frontend",
|
|
247
|
+
department: "Engineering",
|
|
248
|
+
lead: "Frontend Lead",
|
|
249
|
+
services: ["ui_review", "component_audit", "a11y_check"],
|
|
250
|
+
pricePerCall: 0.01,
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "Backend",
|
|
254
|
+
department: "Engineering",
|
|
255
|
+
lead: "Backend Lead",
|
|
256
|
+
services: ["api_review", "db_optimize", "security_audit"],
|
|
257
|
+
pricePerCall: 0.01,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "DevOps",
|
|
261
|
+
department: "Engineering",
|
|
262
|
+
lead: "DevOps Lead",
|
|
263
|
+
services: ["deploy", "monitor", "incident_response"],
|
|
264
|
+
pricePerCall: 0.01,
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
/** Marketing team (matches existing presets) */
|
|
269
|
+
marketing: {
|
|
270
|
+
name: "Marketing Team",
|
|
271
|
+
symbol: "MKT",
|
|
272
|
+
cSuite: [
|
|
273
|
+
{ role: "ceo", name: "Marketing Director", title: "Director of Marketing" },
|
|
274
|
+
],
|
|
275
|
+
departments: [
|
|
276
|
+
{ name: "Content", services: ["blog_post", "tweet_thread", "newsletter", "ad_copy"], pricePerCall: 0.01 },
|
|
277
|
+
{ name: "Social", services: ["post_tweet", "schedule_thread", "reply_mentions"], pricePerCall: 0.005 },
|
|
278
|
+
{ name: "Community", services: ["moderate", "answer_faq", "run_poll"], pricePerCall: 0.002 },
|
|
279
|
+
{ name: "Analytics", services: ["engagement_report", "audience_insights", "content_performance"], pricePerCall: 0.005 },
|
|
280
|
+
{ name: "Outreach", services: ["find_partners", "draft_pitch", "send_email"], pricePerCall: 0.01 },
|
|
281
|
+
{ name: "Ads", services: ["create_ad", "ab_test", "campaign_report"], pricePerCall: 0.01 },
|
|
282
|
+
{ name: "Strategy", services: ["content_calendar", "brand_audit", "competitor_analysis"], pricePerCall: 0.02 },
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
// ---------------------------------------------------------------------------
|
|
287
|
+
// Generator
|
|
288
|
+
// ---------------------------------------------------------------------------
|
|
289
|
+
/**
|
|
290
|
+
* Generate a complete swarm configuration from an org chart.
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* const config = generateSwarmFromOrg(EXAMPLE_ORGS.enterprise);
|
|
294
|
+
* console.log(`Total agents: ${config.totalAgents}`);
|
|
295
|
+
* console.log(`Deploy cost: ${config.totalDeployCost} FET`);
|
|
296
|
+
*/
|
|
297
|
+
export function generateSwarmFromOrg(org) {
|
|
298
|
+
const agents = [];
|
|
299
|
+
const prefix = org.symbol || org.name.toUpperCase().replace(/\s+/g, "").slice(0, 4);
|
|
300
|
+
// Wave 1: C-Suite (sequential — CTO first)
|
|
301
|
+
const cSuiteOrder = ["cto", "cfo", "coo", "ceo", "cro"];
|
|
302
|
+
const cSuiteRoles = org.cSuite.map((e) => e.role);
|
|
303
|
+
for (const role of cSuiteOrder) {
|
|
304
|
+
const exec = org.cSuite.find((e) => e.role === role);
|
|
305
|
+
if (!exec)
|
|
306
|
+
continue;
|
|
307
|
+
const config = C_SUITE_CONFIGS[role];
|
|
308
|
+
agents.push({
|
|
309
|
+
...config,
|
|
310
|
+
symbol: `${prefix}-${role.toUpperCase()}`,
|
|
311
|
+
namedAfter: exec.name,
|
|
312
|
+
title: exec.title || exec.name,
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
// Wave 2: Departments (parallel)
|
|
316
|
+
if (org.departments) {
|
|
317
|
+
for (const dept of org.departments) {
|
|
318
|
+
const slug = dept.name.toLowerCase().replace(/\s+/g, "-");
|
|
319
|
+
const priceAfet = toAtestfet(dept.pricePerCall || DEFAULT_PRICING.department);
|
|
320
|
+
const services = {};
|
|
321
|
+
for (const svc of dept.services) {
|
|
322
|
+
services[svc] = priceAfet;
|
|
323
|
+
}
|
|
324
|
+
agents.push({
|
|
325
|
+
name: slug,
|
|
326
|
+
displayName: `${dept.name} Lead`,
|
|
327
|
+
symbol: `${prefix}-${slug.toUpperCase().slice(0, 4)}`,
|
|
328
|
+
role: slug,
|
|
329
|
+
description: `${dept.name} department — ${dept.services.join(", ")}`,
|
|
330
|
+
namedAfter: dept.head || `${dept.name} Team`,
|
|
331
|
+
title: dept.headTitle || `Head of ${dept.name}`,
|
|
332
|
+
tier: "department",
|
|
333
|
+
services,
|
|
334
|
+
intervalSeconds: dept.intervalSeconds || 300,
|
|
335
|
+
dependencies: ["cto"], // All departments use CTO for reasoning
|
|
336
|
+
crossHoldings: ["cto"],
|
|
337
|
+
variables: {
|
|
338
|
+
role: slug,
|
|
339
|
+
service_price_afet: String(priceAfet),
|
|
340
|
+
interval_seconds: String(dept.intervalSeconds || 300),
|
|
341
|
+
},
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
// Wave 3: Teams (parallel)
|
|
346
|
+
if (org.teams) {
|
|
347
|
+
for (const team of org.teams) {
|
|
348
|
+
const slug = team.name.toLowerCase().replace(/\s+/g, "-");
|
|
349
|
+
const deptSlug = team.department.toLowerCase().replace(/\s+/g, "-");
|
|
350
|
+
const priceAfet = toAtestfet(team.pricePerCall || DEFAULT_PRICING.team);
|
|
351
|
+
const services = {};
|
|
352
|
+
for (const svc of team.services) {
|
|
353
|
+
services[svc] = priceAfet;
|
|
354
|
+
}
|
|
355
|
+
agents.push({
|
|
356
|
+
name: slug,
|
|
357
|
+
displayName: `${team.name} Team`,
|
|
358
|
+
symbol: `${prefix}-${slug.toUpperCase().slice(0, 4)}`,
|
|
359
|
+
role: slug,
|
|
360
|
+
description: `${team.name} team (${team.department}) — ${team.services.join(", ")}`,
|
|
361
|
+
namedAfter: team.lead || `${team.name} Team`,
|
|
362
|
+
title: team.lead || `${team.name} Lead`,
|
|
363
|
+
tier: "team",
|
|
364
|
+
services,
|
|
365
|
+
intervalSeconds: 300,
|
|
366
|
+
dependencies: ["cto", deptSlug],
|
|
367
|
+
crossHoldings: ["cto", deptSlug],
|
|
368
|
+
variables: {
|
|
369
|
+
role: slug,
|
|
370
|
+
service_price_afet: String(priceAfet),
|
|
371
|
+
interval_seconds: "300",
|
|
372
|
+
},
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
// Build deployment waves
|
|
377
|
+
const cSuiteAgents = agents.filter((a) => a.tier === "c-suite").map((a) => a.name);
|
|
378
|
+
const deptAgents = agents.filter((a) => a.tier === "department").map((a) => a.name);
|
|
379
|
+
const teamAgents = agents.filter((a) => a.tier === "team").map((a) => a.name);
|
|
380
|
+
const deploymentWaves = [];
|
|
381
|
+
if (cSuiteAgents.length > 0) {
|
|
382
|
+
deploymentWaves.push({ wave: 1, agents: cSuiteAgents, parallel: false });
|
|
383
|
+
}
|
|
384
|
+
if (deptAgents.length > 0) {
|
|
385
|
+
deploymentWaves.push({ wave: 2, agents: deptAgents, parallel: true });
|
|
386
|
+
}
|
|
387
|
+
if (teamAgents.length > 0) {
|
|
388
|
+
deploymentWaves.push({ wave: 3, agents: teamAgents, parallel: true });
|
|
389
|
+
}
|
|
390
|
+
return {
|
|
391
|
+
orgName: org.name,
|
|
392
|
+
totalAgents: agents.length,
|
|
393
|
+
totalDeployCost: agents.length * 120,
|
|
394
|
+
deploymentWaves,
|
|
395
|
+
agents,
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Generate a YAML-style org chart template for users to fill in.
|
|
400
|
+
*/
|
|
401
|
+
export function generateOrgTemplate(size = "smb") {
|
|
402
|
+
const templates = {
|
|
403
|
+
startup: `# Startup Org Chart
|
|
404
|
+
# Fill in your team details, then run: npx agentlaunch swarm-from-org people.yaml
|
|
405
|
+
|
|
406
|
+
name: "My Startup"
|
|
407
|
+
symbol: "ACME" # Token prefix: $ACME-CEO, $ACME-CTO, etc.
|
|
408
|
+
|
|
409
|
+
cSuite:
|
|
410
|
+
- role: ceo
|
|
411
|
+
name: "Your Name"
|
|
412
|
+
title: "CEO / Founder"
|
|
413
|
+
- role: cto
|
|
414
|
+
name: "Technical Co-founder"
|
|
415
|
+
title: "CTO"
|
|
416
|
+
|
|
417
|
+
departments:
|
|
418
|
+
- name: "Product"
|
|
419
|
+
head: "Product Lead"
|
|
420
|
+
services: ["roadmap", "user_research", "prioritize"]
|
|
421
|
+
pricePerCall: 0.01 # FET per service call
|
|
422
|
+
`,
|
|
423
|
+
smb: `# SMB Org Chart
|
|
424
|
+
# Fill in your team details, then run: npx agentlaunch swarm-from-org people.yaml
|
|
425
|
+
|
|
426
|
+
name: "My Company"
|
|
427
|
+
symbol: "CORP" # Token prefix: $CORP-CEO, $CORP-CTO, etc.
|
|
428
|
+
|
|
429
|
+
cSuite:
|
|
430
|
+
- role: ceo
|
|
431
|
+
name: "CEO Name"
|
|
432
|
+
title: "Chief Executive Officer"
|
|
433
|
+
- role: cto
|
|
434
|
+
name: "CTO Name"
|
|
435
|
+
title: "Chief Technology Officer"
|
|
436
|
+
- role: cfo
|
|
437
|
+
name: "CFO Name"
|
|
438
|
+
title: "Chief Financial Officer"
|
|
439
|
+
|
|
440
|
+
departments:
|
|
441
|
+
- name: "Engineering"
|
|
442
|
+
head: "Engineering Lead"
|
|
443
|
+
services: ["code_review", "debug", "deploy", "architecture"]
|
|
444
|
+
pricePerCall: 0.01
|
|
445
|
+
|
|
446
|
+
- name: "Sales"
|
|
447
|
+
head: "Sales Lead"
|
|
448
|
+
services: ["prospect", "qualify", "negotiate", "close"]
|
|
449
|
+
pricePerCall: 0.01
|
|
450
|
+
|
|
451
|
+
- name: "Support"
|
|
452
|
+
head: "Support Lead"
|
|
453
|
+
services: ["ticket", "escalate", "knowledge_base"]
|
|
454
|
+
pricePerCall: 0.005
|
|
455
|
+
`,
|
|
456
|
+
enterprise: `# Enterprise Org Chart
|
|
457
|
+
# Fill in your team details, then run: npx agentlaunch swarm-from-org people.yaml
|
|
458
|
+
|
|
459
|
+
name: "Enterprise Corp"
|
|
460
|
+
symbol: "ENT" # Token prefix: $ENT-CEO, $ENT-CTO, etc.
|
|
461
|
+
|
|
462
|
+
cSuite:
|
|
463
|
+
- role: ceo
|
|
464
|
+
name: "CEO Name"
|
|
465
|
+
title: "Chief Executive Officer"
|
|
466
|
+
- role: cto
|
|
467
|
+
name: "CTO Name"
|
|
468
|
+
title: "Chief Technology Officer"
|
|
469
|
+
- role: cfo
|
|
470
|
+
name: "CFO Name"
|
|
471
|
+
title: "Chief Financial Officer"
|
|
472
|
+
- role: coo
|
|
473
|
+
name: "COO Name"
|
|
474
|
+
title: "Chief Operating Officer"
|
|
475
|
+
- role: cro
|
|
476
|
+
name: "CRO Name"
|
|
477
|
+
title: "Chief Recruitment Officer"
|
|
478
|
+
|
|
479
|
+
departments:
|
|
480
|
+
- name: "Engineering"
|
|
481
|
+
head: "VP Engineering"
|
|
482
|
+
services: ["architecture", "code_review", "debug", "deploy"]
|
|
483
|
+
pricePerCall: 0.02
|
|
484
|
+
|
|
485
|
+
- name: "Product"
|
|
486
|
+
head: "VP Product"
|
|
487
|
+
services: ["roadmap", "requirements", "prioritize", "launch"]
|
|
488
|
+
pricePerCall: 0.02
|
|
489
|
+
|
|
490
|
+
- name: "Sales"
|
|
491
|
+
head: "VP Sales"
|
|
492
|
+
services: ["prospect", "qualify", "negotiate", "close"]
|
|
493
|
+
pricePerCall: 0.02
|
|
494
|
+
|
|
495
|
+
- name: "Marketing"
|
|
496
|
+
head: "VP Marketing"
|
|
497
|
+
services: ["content", "campaigns", "analytics", "brand"]
|
|
498
|
+
pricePerCall: 0.01
|
|
499
|
+
|
|
500
|
+
- name: "Support"
|
|
501
|
+
head: "VP Support"
|
|
502
|
+
services: ["ticket", "escalate", "knowledge_base", "onboard"]
|
|
503
|
+
pricePerCall: 0.01
|
|
504
|
+
|
|
505
|
+
- name: "HR"
|
|
506
|
+
head: "VP HR"
|
|
507
|
+
services: ["recruit", "onboard", "review", "offboard"]
|
|
508
|
+
pricePerCall: 0.01
|
|
509
|
+
|
|
510
|
+
teams:
|
|
511
|
+
- name: "Frontend"
|
|
512
|
+
department: "Engineering"
|
|
513
|
+
lead: "Frontend Lead"
|
|
514
|
+
services: ["ui_review", "component_audit", "a11y_check"]
|
|
515
|
+
pricePerCall: 0.01
|
|
516
|
+
|
|
517
|
+
- name: "Backend"
|
|
518
|
+
department: "Engineering"
|
|
519
|
+
lead: "Backend Lead"
|
|
520
|
+
services: ["api_review", "db_optimize", "security_audit"]
|
|
521
|
+
pricePerCall: 0.01
|
|
522
|
+
|
|
523
|
+
- name: "DevOps"
|
|
524
|
+
department: "Engineering"
|
|
525
|
+
lead: "DevOps Lead"
|
|
526
|
+
services: ["deploy", "monitor", "incident_response"]
|
|
527
|
+
pricePerCall: 0.01
|
|
528
|
+
`,
|
|
529
|
+
};
|
|
530
|
+
return templates[size] || templates.smb;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Convert a SwarmConfig to a summary string.
|
|
534
|
+
*/
|
|
535
|
+
export function summarizeSwarm(config) {
|
|
536
|
+
const lines = [
|
|
537
|
+
`# ${config.orgName} Agent Swarm`,
|
|
538
|
+
``,
|
|
539
|
+
`**Total Agents:** ${config.totalAgents}`,
|
|
540
|
+
`**Deploy Cost:** ${config.totalDeployCost} FET`,
|
|
541
|
+
``,
|
|
542
|
+
`## Deployment Waves`,
|
|
543
|
+
``,
|
|
544
|
+
];
|
|
545
|
+
for (const wave of config.deploymentWaves) {
|
|
546
|
+
const mode = wave.parallel ? "(parallel)" : "(sequential)";
|
|
547
|
+
lines.push(`### Wave ${wave.wave} ${mode}`);
|
|
548
|
+
for (const agent of wave.agents) {
|
|
549
|
+
const a = config.agents.find((x) => x.name === agent);
|
|
550
|
+
lines.push(`- **${a.displayName}** ($${a.symbol}) — ${a.namedAfter}`);
|
|
551
|
+
}
|
|
552
|
+
lines.push(``);
|
|
553
|
+
}
|
|
554
|
+
lines.push(`## Cross-Holdings`);
|
|
555
|
+
lines.push(``);
|
|
556
|
+
for (const agent of config.agents) {
|
|
557
|
+
if (agent.crossHoldings.length > 0) {
|
|
558
|
+
lines.push(`- ${agent.displayName} holds: ${agent.crossHoldings.map((h) => `$${h.toUpperCase()}`).join(", ")}`);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
return lines.join("\n");
|
|
562
|
+
}
|
|
563
|
+
//# sourceMappingURL=people.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"people.js","sourceRoot":"","sources":["../src/people.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AA6EH,8EAA8E;AAC9E,YAAY;AACZ,8EAA8E;AAE9E,yBAAyB;AACzB,MAAM,GAAG,GAAG,oBAA0B,CAAC;AACvC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC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pre-configured Marketing Team agent presets
|
|
3
3
|
*
|
|
4
|
-
* Each preset maps to a specific role in the
|
|
5
|
-
*
|
|
6
|
-
* defaults for pricing, intervals, dependencies, and secrets so
|
|
7
|
-
* spin up a fully-configured agent with a single command.
|
|
4
|
+
* Each preset maps to a specific role in the Marketing Team swarm: writer,
|
|
5
|
+
* social, community, analytics, outreach, ads, strategy. Presets provide
|
|
6
|
+
* sensible defaults for pricing, intervals, dependencies, and secrets so
|
|
7
|
+
* users can spin up a fully-configured agent with a single command.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
10
|
* import { getPreset, listPresets } from "agentlaunch-templates";
|
|
11
|
-
* const
|
|
12
|
-
* generateFromTemplate("
|
|
11
|
+
* const writer = getPreset("writer");
|
|
12
|
+
* generateFromTemplate("swarm-starter", { ...writer.variables, agent_name: "MyWriter" });
|
|
13
13
|
*/
|
|
14
14
|
export interface Preset {
|
|
15
|
-
/** Unique slug — e.g. "
|
|
15
|
+
/** Unique slug — e.g. "writer" */
|
|
16
16
|
name: string;
|
|
17
|
-
/** Display name — e.g. "
|
|
17
|
+
/** Display name — e.g. "Writer ($WRITE)" */
|
|
18
18
|
displayName: string;
|
|
19
|
-
/** Token symbol — e.g. "
|
|
19
|
+
/** Token symbol — e.g. "WRITE" */
|
|
20
20
|
symbol: string;
|
|
21
21
|
/** One-line description */
|
|
22
22
|
description: string;
|
|
@@ -37,9 +37,9 @@ export interface Preset {
|
|
|
37
37
|
* Returns a preset by name, or undefined if not found.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* const
|
|
41
|
-
* if (
|
|
42
|
-
* generateFromTemplate("
|
|
40
|
+
* const writer = getPreset("writer");
|
|
41
|
+
* if (writer) {
|
|
42
|
+
* generateFromTemplate("swarm-starter", { ...writer.variables, agent_name: "MyWriter" });
|
|
43
43
|
* }
|
|
44
44
|
*/
|
|
45
45
|
export declare function getPreset(name: string): Preset | undefined;
|
package/dist/presets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../src/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,MAAM,WAAW,MAAM;IACrB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../src/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,MAAM,WAAW,MAAM;IACrB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,0CAA0C;IAC1C,eAAe,EAAE,MAAM,CAAC;IACxB,sDAAsD;IACtD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AA8ZD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE1D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,MAAM,EAAE,CAEtC"}
|