bopodev-agent-sdk 0.1.34 → 0.1.36

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.
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > bopodev-agent-sdk@0.1.34 build /Users/danielkrusenstrahle/Documents/Projects/Monorepo/bopodev/packages/agent-sdk
3
+ > bopodev-agent-sdk@0.1.36 build /Users/danielkrusenstrahle/Documents/Projects/Monorepo/bopodev/packages/agent-sdk
4
4
  > tsc -p tsconfig.json --emitDeclarationOnly
5
5
 
@@ -1,4 +1,4 @@
1
1
 
2
- > bopodev-agent-sdk@0.1.20 typecheck /Users/danielkrusenstrahle/Documents/Projects/Monorepo/bopodev/packages/agent-sdk
2
+ > bopodev-agent-sdk@0.1.35 typecheck /Users/danielkrusenstrahle/Documents/Projects/Monorepo/bopodev/packages/agent-sdk
3
3
  > tsc -p tsconfig.json --noEmit
4
4
 
@@ -128,6 +128,7 @@ export declare const IssueSchema: z.ZodObject<{
128
128
  projectId: z.ZodString;
129
129
  parentIssueId: z.ZodNullable<z.ZodString>;
130
130
  goalIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
131
+ knowledgePaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
131
132
  title: z.ZodString;
132
133
  body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
134
  externalLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -149,26 +150,26 @@ export declare const IssueSchema: z.ZodObject<{
149
150
  assigneeAgentId: z.ZodNullable<z.ZodString>;
150
151
  labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
151
152
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
152
- loopId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
- loopRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ routineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ routineRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
155
  createdAt: z.ZodString;
155
156
  updatedAt: z.ZodString;
156
157
  }, z.core.$strip>;
157
- export declare const WorkLoopConcurrencyPolicySchema: z.ZodEnum<{
158
+ export declare const WorkRoutineConcurrencyPolicySchema: z.ZodEnum<{
158
159
  coalesce_if_active: "coalesce_if_active";
159
160
  skip_if_active: "skip_if_active";
160
161
  always_enqueue: "always_enqueue";
161
162
  }>;
162
- export declare const WorkLoopCatchUpPolicySchema: z.ZodEnum<{
163
+ export declare const WorkRoutineCatchUpPolicySchema: z.ZodEnum<{
163
164
  skip_missed: "skip_missed";
164
165
  enqueue_missed_with_cap: "enqueue_missed_with_cap";
165
166
  }>;
166
- export declare const WorkLoopStatusSchema: z.ZodEnum<{
167
+ export declare const WorkRoutineStatusSchema: z.ZodEnum<{
167
168
  active: "active";
168
169
  paused: "paused";
169
170
  archived: "archived";
170
171
  }>;
171
- export declare const WorkLoopSchema: z.ZodObject<{
172
+ export declare const WorkRoutineSchema: z.ZodObject<{
172
173
  id: z.ZodString;
173
174
  companyId: z.ZodString;
174
175
  projectId: z.ZodString;
@@ -196,10 +197,10 @@ export declare const WorkLoopSchema: z.ZodObject<{
196
197
  createdAt: z.ZodString;
197
198
  updatedAt: z.ZodString;
198
199
  }, z.core.$strip>;
199
- export declare const WorkLoopTriggerSchema: z.ZodObject<{
200
+ export declare const WorkRoutineTriggerSchema: z.ZodObject<{
200
201
  id: z.ZodString;
201
202
  companyId: z.ZodString;
202
- workLoopId: z.ZodString;
203
+ routineId: z.ZodString;
203
204
  kind: z.ZodString;
204
205
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
206
  enabled: z.ZodBoolean;
@@ -211,10 +212,10 @@ export declare const WorkLoopTriggerSchema: z.ZodObject<{
211
212
  createdAt: z.ZodString;
212
213
  updatedAt: z.ZodString;
213
214
  }, z.core.$strip>;
214
- export declare const WorkLoopRunSchema: z.ZodObject<{
215
+ export declare const WorkRoutineRunSchema: z.ZodObject<{
215
216
  id: z.ZodString;
216
217
  companyId: z.ZodString;
217
- workLoopId: z.ZodString;
218
+ routineId: z.ZodString;
218
219
  triggerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
220
  source: z.ZodEnum<{
220
221
  schedule: "schedule";
@@ -230,7 +231,7 @@ export declare const WorkLoopRunSchema: z.ZodObject<{
230
231
  createdAt: z.ZodString;
231
232
  updatedAt: z.ZodString;
232
233
  }, z.core.$strip>;
233
- export declare const WorkLoopCreateRequestSchema: z.ZodObject<{
234
+ export declare const WorkRoutineCreateRequestSchema: z.ZodObject<{
234
235
  projectId: z.ZodString;
235
236
  parentIssueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
237
  goalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -259,7 +260,7 @@ export declare const WorkLoopCreateRequestSchema: z.ZodObject<{
259
260
  enqueue_missed_with_cap: "enqueue_missed_with_cap";
260
261
  }>>;
261
262
  }, z.core.$strip>;
262
- export declare const WorkLoopUpdateRequestSchema: z.ZodObject<{
263
+ export declare const WorkRoutineUpdateRequestSchema: z.ZodObject<{
263
264
  title: z.ZodOptional<z.ZodString>;
264
265
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
266
  assigneeAgentId: z.ZodOptional<z.ZodString>;
@@ -288,14 +289,14 @@ export declare const WorkLoopUpdateRequestSchema: z.ZodObject<{
288
289
  goalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
290
  projectId: z.ZodOptional<z.ZodString>;
290
291
  }, z.core.$strip>;
291
- export declare const WorkLoopTriggerCronCreateSchema: z.ZodObject<{
292
+ export declare const WorkRoutineTriggerCronCreateSchema: z.ZodObject<{
292
293
  mode: z.ZodLiteral<"cron">;
293
294
  cronExpression: z.ZodString;
294
295
  timezone: z.ZodOptional<z.ZodString>;
295
296
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
297
  enabled: z.ZodOptional<z.ZodBoolean>;
297
298
  }, z.core.$strip>;
298
- export declare const WorkLoopTriggerPresetCreateSchema: z.ZodObject<{
299
+ export declare const WorkRoutineTriggerPresetCreateSchema: z.ZodObject<{
299
300
  mode: z.ZodLiteral<"preset">;
300
301
  preset: z.ZodEnum<{
301
302
  daily: "daily";
@@ -308,7 +309,7 @@ export declare const WorkLoopTriggerPresetCreateSchema: z.ZodObject<{
308
309
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
310
  enabled: z.ZodOptional<z.ZodBoolean>;
310
311
  }, z.core.$strip>;
311
- export declare const WorkLoopTriggerCreateRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
312
+ export declare const WorkRoutineTriggerCreateRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
312
313
  mode: z.ZodLiteral<"cron">;
313
314
  cronExpression: z.ZodString;
314
315
  timezone: z.ZodOptional<z.ZodString>;
@@ -327,7 +328,7 @@ export declare const WorkLoopTriggerCreateRequestSchema: z.ZodDiscriminatedUnion
327
328
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
329
  enabled: z.ZodOptional<z.ZodBoolean>;
329
330
  }, z.core.$strip>], "mode">;
330
- export declare const WorkLoopTriggerUpdateRequestSchema: z.ZodObject<{
331
+ export declare const WorkRoutineTriggerUpdateRequestSchema: z.ZodObject<{
331
332
  cronExpression: z.ZodOptional<z.ZodString>;
332
333
  timezone: z.ZodOptional<z.ZodString>;
333
334
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -376,6 +377,7 @@ export declare const IssueDetailSchema: z.ZodObject<{
376
377
  projectId: z.ZodString;
377
378
  parentIssueId: z.ZodNullable<z.ZodString>;
378
379
  goalIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
380
+ knowledgePaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
379
381
  title: z.ZodString;
380
382
  body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
383
  externalLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -397,8 +399,8 @@ export declare const IssueDetailSchema: z.ZodObject<{
397
399
  assigneeAgentId: z.ZodNullable<z.ZodString>;
398
400
  labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
399
401
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
400
- loopId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
- loopRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
402
+ routineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
+ routineRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
402
404
  createdAt: z.ZodString;
403
405
  updatedAt: z.ZodString;
404
406
  attachments: z.ZodArray<z.ZodObject<{
@@ -605,6 +607,8 @@ export declare const TemplateManifestAgentSchema: z.ZodObject<{
605
607
  heartbeatCron: z.ZodDefault<z.ZodString>;
606
608
  monthlyBudgetUsd: z.ZodDefault<z.ZodNumber>;
607
609
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
610
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
611
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
608
612
  managerAgentKey: z.ZodOptional<z.ZodString>;
609
613
  runtimeConfig: z.ZodOptional<z.ZodLazy<z.ZodObject<{
610
614
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -735,6 +739,8 @@ export declare const TemplateManifestSchema: z.ZodObject<{
735
739
  heartbeatCron: z.ZodDefault<z.ZodString>;
736
740
  monthlyBudgetUsd: z.ZodDefault<z.ZodNumber>;
737
741
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
742
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
743
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
738
744
  managerAgentKey: z.ZodOptional<z.ZodString>;
739
745
  runtimeConfig: z.ZodOptional<z.ZodLazy<z.ZodObject<{
740
746
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -898,6 +904,8 @@ export declare const TemplateSchema: z.ZodObject<{
898
904
  heartbeatCron: z.ZodDefault<z.ZodString>;
899
905
  monthlyBudgetUsd: z.ZodDefault<z.ZodNumber>;
900
906
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
907
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
908
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
901
909
  managerAgentKey: z.ZodOptional<z.ZodString>;
902
910
  runtimeConfig: z.ZodOptional<z.ZodLazy<z.ZodObject<{
903
911
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1061,6 +1069,8 @@ export declare const TemplateCreateRequestSchema: z.ZodObject<{
1061
1069
  heartbeatCron: z.ZodDefault<z.ZodString>;
1062
1070
  monthlyBudgetUsd: z.ZodDefault<z.ZodNumber>;
1063
1071
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
1072
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
1073
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
1064
1074
  managerAgentKey: z.ZodOptional<z.ZodString>;
1065
1075
  runtimeConfig: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1066
1076
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1222,6 +1232,8 @@ export declare const TemplateUpdateRequestSchema: z.ZodObject<{
1222
1232
  heartbeatCron: z.ZodDefault<z.ZodString>;
1223
1233
  monthlyBudgetUsd: z.ZodDefault<z.ZodNumber>;
1224
1234
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
1235
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
1236
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
1225
1237
  managerAgentKey: z.ZodOptional<z.ZodString>;
1226
1238
  runtimeConfig: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1227
1239
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1434,6 +1446,8 @@ export declare const TemplateExportSchema: z.ZodObject<{
1434
1446
  heartbeatCron: z.ZodDefault<z.ZodString>;
1435
1447
  monthlyBudgetUsd: z.ZodDefault<z.ZodNumber>;
1436
1448
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
1449
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
1450
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
1437
1451
  managerAgentKey: z.ZodOptional<z.ZodString>;
1438
1452
  runtimeConfig: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1439
1453
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1599,6 +1613,8 @@ export declare const TemplateImportRequestSchema: z.ZodObject<{
1599
1613
  heartbeatCron: z.ZodDefault<z.ZodString>;
1600
1614
  monthlyBudgetUsd: z.ZodDefault<z.ZodNumber>;
1601
1615
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
1616
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
1617
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
1602
1618
  managerAgentKey: z.ZodOptional<z.ZodString>;
1603
1619
  runtimeConfig: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1604
1620
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -1741,6 +1757,8 @@ export declare const TemplateVersionSchema: z.ZodObject<{
1741
1757
  heartbeatCron: z.ZodDefault<z.ZodString>;
1742
1758
  monthlyBudgetUsd: z.ZodDefault<z.ZodNumber>;
1743
1759
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
1760
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
1761
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
1744
1762
  managerAgentKey: z.ZodOptional<z.ZodString>;
1745
1763
  runtimeConfig: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1746
1764
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -2232,6 +2250,10 @@ export declare const PluginKindSchema: z.ZodEnum<{
2232
2250
  integration: "integration";
2233
2251
  }>;
2234
2252
  export type PluginKind = z.infer<typeof PluginKindSchema>;
2253
+ export declare const PluginManifestApiVersionSchema: z.ZodEnum<{
2254
+ 2: "2";
2255
+ }>;
2256
+ export type PluginManifestApiVersion = z.infer<typeof PluginManifestApiVersionSchema>;
2235
2257
  export declare const PluginHookSchema: z.ZodEnum<{
2236
2258
  beforeClaim: "beforeClaim";
2237
2259
  afterClaim: "afterClaim";
@@ -2252,6 +2274,24 @@ export declare const PluginCapabilitySchema: z.ZodEnum<{
2252
2274
  issue_write: "issue_write";
2253
2275
  }>;
2254
2276
  export type PluginCapability = z.infer<typeof PluginCapabilitySchema>;
2277
+ export declare const PluginCapabilityNamespaceSchema: z.ZodEnum<{
2278
+ "issues.read": "issues.read";
2279
+ "issues.write": "issues.write";
2280
+ "comments.read": "comments.read";
2281
+ "comments.write": "comments.write";
2282
+ "events.subscribe": "events.subscribe";
2283
+ "events.emit": "events.emit";
2284
+ "jobs.schedule": "jobs.schedule";
2285
+ "webhooks.handle": "webhooks.handle";
2286
+ "tools.register": "tools.register";
2287
+ "actions.execute": "actions.execute";
2288
+ "data.read": "data.read";
2289
+ "network.http": "network.http";
2290
+ "audit.emit": "audit.emit";
2291
+ "memory.read": "memory.read";
2292
+ "memory.write": "memory.write";
2293
+ }>;
2294
+ export type PluginCapabilityNamespace = z.infer<typeof PluginCapabilityNamespaceSchema>;
2255
2295
  export declare const PluginRuntimeTypeSchema: z.ZodEnum<{
2256
2296
  http: "http";
2257
2297
  builtin: "builtin";
@@ -2259,6 +2299,53 @@ export declare const PluginRuntimeTypeSchema: z.ZodEnum<{
2259
2299
  prompt: "prompt";
2260
2300
  }>;
2261
2301
  export type PluginRuntimeType = z.infer<typeof PluginRuntimeTypeSchema>;
2302
+ export declare const PluginInstallSourceTypeSchema: z.ZodEnum<{
2303
+ builtin: "builtin";
2304
+ registry: "registry";
2305
+ local_path: "local_path";
2306
+ archive_url: "archive_url";
2307
+ }>;
2308
+ export type PluginInstallSourceType = z.infer<typeof PluginInstallSourceTypeSchema>;
2309
+ export declare const PluginInstallMetadataSchema: z.ZodObject<{
2310
+ sourceType: z.ZodDefault<z.ZodEnum<{
2311
+ builtin: "builtin";
2312
+ registry: "registry";
2313
+ local_path: "local_path";
2314
+ archive_url: "archive_url";
2315
+ }>>;
2316
+ sourceRef: z.ZodOptional<z.ZodString>;
2317
+ integrity: z.ZodOptional<z.ZodString>;
2318
+ buildHash: z.ZodOptional<z.ZodString>;
2319
+ installedAt: z.ZodOptional<z.ZodString>;
2320
+ artifactPath: z.ZodOptional<z.ZodString>;
2321
+ packageName: z.ZodOptional<z.ZodString>;
2322
+ }, z.core.$strip>;
2323
+ export type PluginInstallMetadata = z.infer<typeof PluginInstallMetadataSchema>;
2324
+ export declare const PluginUiSlotSchema: z.ZodObject<{
2325
+ slot: z.ZodString;
2326
+ routePath: z.ZodOptional<z.ZodString>;
2327
+ featureFlag: z.ZodOptional<z.ZodString>;
2328
+ displayName: z.ZodOptional<z.ZodString>;
2329
+ }, z.core.$strip>;
2330
+ export type PluginUiSlot = z.infer<typeof PluginUiSlotSchema>;
2331
+ export declare const PluginEntrypointsSchema: z.ZodObject<{
2332
+ worker: z.ZodString;
2333
+ ui: z.ZodOptional<z.ZodString>;
2334
+ }, z.core.$strip>;
2335
+ export type PluginEntrypoints = z.infer<typeof PluginEntrypointsSchema>;
2336
+ export declare const PluginJobDeclarationSchema: z.ZodObject<{
2337
+ jobKey: z.ZodString;
2338
+ displayName: z.ZodString;
2339
+ schedule: z.ZodString;
2340
+ description: z.ZodOptional<z.ZodString>;
2341
+ }, z.core.$strip>;
2342
+ export type PluginJobDeclaration = z.infer<typeof PluginJobDeclarationSchema>;
2343
+ export declare const PluginWebhookDeclarationSchema: z.ZodObject<{
2344
+ endpointKey: z.ZodString;
2345
+ displayName: z.ZodOptional<z.ZodString>;
2346
+ secretHeader: z.ZodOptional<z.ZodString>;
2347
+ }, z.core.$strip>;
2348
+ export type PluginWebhookDeclaration = z.infer<typeof PluginWebhookDeclarationSchema>;
2262
2349
  export declare const PluginWebhookRequestSchema: z.ZodObject<{
2263
2350
  url: z.ZodString;
2264
2351
  method: z.ZodDefault<z.ZodEnum<{
@@ -2278,16 +2365,116 @@ export declare const PluginTraceEventSchema: z.ZodObject<{
2278
2365
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2279
2366
  }, z.core.$strip>;
2280
2367
  export type PluginTraceEvent = z.infer<typeof PluginTraceEventSchema>;
2368
+ export declare const PluginManifestV2Schema: z.ZodObject<{
2369
+ apiVersion: z.ZodDefault<z.ZodLiteral<"2">>;
2370
+ id: z.ZodString;
2371
+ version: z.ZodString;
2372
+ displayName: z.ZodString;
2373
+ description: z.ZodOptional<z.ZodString>;
2374
+ kind: z.ZodDefault<z.ZodEnum<{
2375
+ lifecycle: "lifecycle";
2376
+ tool: "tool";
2377
+ integration: "integration";
2378
+ }>>;
2379
+ hooks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2380
+ beforeClaim: "beforeClaim";
2381
+ afterClaim: "afterClaim";
2382
+ beforeAdapterExecute: "beforeAdapterExecute";
2383
+ afterAdapterExecute: "afterAdapterExecute";
2384
+ beforePersist: "beforePersist";
2385
+ afterPersist: "afterPersist";
2386
+ onError: "onError";
2387
+ }>>>;
2388
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2389
+ emit_audit: "emit_audit";
2390
+ read_memory: "read_memory";
2391
+ write_memory: "write_memory";
2392
+ queue_publish: "queue_publish";
2393
+ network: "network";
2394
+ tool_expose: "tool_expose";
2395
+ issue_write: "issue_write";
2396
+ }>>>;
2397
+ capabilityNamespaces: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2398
+ "issues.read": "issues.read";
2399
+ "issues.write": "issues.write";
2400
+ "comments.read": "comments.read";
2401
+ "comments.write": "comments.write";
2402
+ "events.subscribe": "events.subscribe";
2403
+ "events.emit": "events.emit";
2404
+ "jobs.schedule": "jobs.schedule";
2405
+ "webhooks.handle": "webhooks.handle";
2406
+ "tools.register": "tools.register";
2407
+ "actions.execute": "actions.execute";
2408
+ "data.read": "data.read";
2409
+ "network.http": "network.http";
2410
+ "audit.emit": "audit.emit";
2411
+ "memory.read": "memory.read";
2412
+ "memory.write": "memory.write";
2413
+ }>>>;
2414
+ runtime: z.ZodObject<{
2415
+ type: z.ZodEnum<{
2416
+ http: "http";
2417
+ builtin: "builtin";
2418
+ stdio: "stdio";
2419
+ prompt: "prompt";
2420
+ }>;
2421
+ entrypoint: z.ZodString;
2422
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2423
+ retryCount: z.ZodDefault<z.ZodNumber>;
2424
+ promptTemplate: z.ZodOptional<z.ZodString>;
2425
+ }, z.core.$strip>;
2426
+ entrypoints: z.ZodObject<{
2427
+ worker: z.ZodString;
2428
+ ui: z.ZodOptional<z.ZodString>;
2429
+ }, z.core.$strip>;
2430
+ jobs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2431
+ jobKey: z.ZodString;
2432
+ displayName: z.ZodString;
2433
+ schedule: z.ZodString;
2434
+ description: z.ZodOptional<z.ZodString>;
2435
+ }, z.core.$strip>>>;
2436
+ webhooks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2437
+ endpointKey: z.ZodString;
2438
+ displayName: z.ZodOptional<z.ZodString>;
2439
+ secretHeader: z.ZodOptional<z.ZodString>;
2440
+ }, z.core.$strip>>>;
2441
+ ui: z.ZodOptional<z.ZodObject<{
2442
+ slots: z.ZodDefault<z.ZodArray<z.ZodObject<{
2443
+ slot: z.ZodString;
2444
+ routePath: z.ZodOptional<z.ZodString>;
2445
+ featureFlag: z.ZodOptional<z.ZodString>;
2446
+ displayName: z.ZodOptional<z.ZodString>;
2447
+ }, z.core.$strip>>>;
2448
+ }, z.core.$strip>>;
2449
+ install: z.ZodOptional<z.ZodObject<{
2450
+ sourceType: z.ZodDefault<z.ZodEnum<{
2451
+ builtin: "builtin";
2452
+ registry: "registry";
2453
+ local_path: "local_path";
2454
+ archive_url: "archive_url";
2455
+ }>>;
2456
+ sourceRef: z.ZodOptional<z.ZodString>;
2457
+ integrity: z.ZodOptional<z.ZodString>;
2458
+ buildHash: z.ZodOptional<z.ZodString>;
2459
+ installedAt: z.ZodOptional<z.ZodString>;
2460
+ artifactPath: z.ZodOptional<z.ZodString>;
2461
+ packageName: z.ZodOptional<z.ZodString>;
2462
+ }, z.core.$strip>>;
2463
+ configSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2464
+ minimumBopoVersion: z.ZodOptional<z.ZodString>;
2465
+ }, z.core.$strip>;
2466
+ export type PluginManifestV2 = z.infer<typeof PluginManifestV2Schema>;
2281
2467
  export declare const PluginManifestSchema: z.ZodObject<{
2468
+ apiVersion: z.ZodDefault<z.ZodLiteral<"2">>;
2282
2469
  id: z.ZodString;
2283
2470
  version: z.ZodString;
2284
2471
  displayName: z.ZodString;
2285
2472
  description: z.ZodOptional<z.ZodString>;
2286
- kind: z.ZodEnum<{
2473
+ kind: z.ZodDefault<z.ZodEnum<{
2287
2474
  lifecycle: "lifecycle";
2288
2475
  tool: "tool";
2289
2476
  integration: "integration";
2290
- }>;
2477
+ }>>;
2291
2478
  hooks: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2292
2479
  beforeClaim: "beforeClaim";
2293
2480
  afterClaim: "afterClaim";
@@ -2306,6 +2493,23 @@ export declare const PluginManifestSchema: z.ZodObject<{
2306
2493
  tool_expose: "tool_expose";
2307
2494
  issue_write: "issue_write";
2308
2495
  }>>>;
2496
+ capabilityNamespaces: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2497
+ "issues.read": "issues.read";
2498
+ "issues.write": "issues.write";
2499
+ "comments.read": "comments.read";
2500
+ "comments.write": "comments.write";
2501
+ "events.subscribe": "events.subscribe";
2502
+ "events.emit": "events.emit";
2503
+ "jobs.schedule": "jobs.schedule";
2504
+ "webhooks.handle": "webhooks.handle";
2505
+ "tools.register": "tools.register";
2506
+ "actions.execute": "actions.execute";
2507
+ "data.read": "data.read";
2508
+ "network.http": "network.http";
2509
+ "audit.emit": "audit.emit";
2510
+ "memory.read": "memory.read";
2511
+ "memory.write": "memory.write";
2512
+ }>>>;
2309
2513
  runtime: z.ZodObject<{
2310
2514
  type: z.ZodEnum<{
2311
2515
  http: "http";
@@ -2318,10 +2522,48 @@ export declare const PluginManifestSchema: z.ZodObject<{
2318
2522
  retryCount: z.ZodDefault<z.ZodNumber>;
2319
2523
  promptTemplate: z.ZodOptional<z.ZodString>;
2320
2524
  }, z.core.$strip>;
2525
+ entrypoints: z.ZodObject<{
2526
+ worker: z.ZodString;
2527
+ ui: z.ZodOptional<z.ZodString>;
2528
+ }, z.core.$strip>;
2529
+ jobs: z.ZodDefault<z.ZodArray<z.ZodObject<{
2530
+ jobKey: z.ZodString;
2531
+ displayName: z.ZodString;
2532
+ schedule: z.ZodString;
2533
+ description: z.ZodOptional<z.ZodString>;
2534
+ }, z.core.$strip>>>;
2535
+ webhooks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2536
+ endpointKey: z.ZodString;
2537
+ displayName: z.ZodOptional<z.ZodString>;
2538
+ secretHeader: z.ZodOptional<z.ZodString>;
2539
+ }, z.core.$strip>>>;
2540
+ ui: z.ZodOptional<z.ZodObject<{
2541
+ slots: z.ZodDefault<z.ZodArray<z.ZodObject<{
2542
+ slot: z.ZodString;
2543
+ routePath: z.ZodOptional<z.ZodString>;
2544
+ featureFlag: z.ZodOptional<z.ZodString>;
2545
+ displayName: z.ZodOptional<z.ZodString>;
2546
+ }, z.core.$strip>>>;
2547
+ }, z.core.$strip>>;
2548
+ install: z.ZodOptional<z.ZodObject<{
2549
+ sourceType: z.ZodDefault<z.ZodEnum<{
2550
+ builtin: "builtin";
2551
+ registry: "registry";
2552
+ local_path: "local_path";
2553
+ archive_url: "archive_url";
2554
+ }>>;
2555
+ sourceRef: z.ZodOptional<z.ZodString>;
2556
+ integrity: z.ZodOptional<z.ZodString>;
2557
+ buildHash: z.ZodOptional<z.ZodString>;
2558
+ installedAt: z.ZodOptional<z.ZodString>;
2559
+ artifactPath: z.ZodOptional<z.ZodString>;
2560
+ packageName: z.ZodOptional<z.ZodString>;
2561
+ }, z.core.$strip>>;
2321
2562
  configSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2322
2563
  minimumBopoVersion: z.ZodOptional<z.ZodString>;
2323
2564
  }, z.core.$strip>;
2324
2565
  export type PluginManifest = z.infer<typeof PluginManifestSchema>;
2566
+ export declare const PLUGIN_CAPABILITY_RISK: Record<PluginCapabilityNamespace, "safe" | "elevated" | "restricted">;
2325
2567
  export declare const PluginPromptExecutionResultSchema: z.ZodObject<{
2326
2568
  promptAppend: z.ZodOptional<z.ZodString>;
2327
2569
  traceEvents: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2368,6 +2610,94 @@ export declare const PluginInvocationResultSchema: z.ZodObject<{
2368
2610
  metadataPatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2369
2611
  }, z.core.$strip>;
2370
2612
  export type PluginInvocationResult = z.infer<typeof PluginInvocationResultSchema>;
2613
+ /** Curated Lucide icon names for agent appearance (must match `lucide-react` exports used in the web app). */
2614
+ export declare const AGENT_LUCIDE_ICON_NAMES: readonly ["Bot", "Brain", "Briefcase", "Building2", "Calendar", "ChartColumn", "Clock", "Cloud", "Code", "Cpu", "Crown", "Database", "FileText", "Folder", "Gem", "GitBranch", "Hammer", "Headphones", "Heart", "Layers", "Lightbulb", "Mail", "MessageSquare", "Mic", "Network", "Package", "Rocket", "Server", "Settings", "Shield", "Sparkles", "Star", "Target", "Terminal", "User", "Users", "Workflow", "Wrench", "Zap", "Globe"];
2615
+ export type AgentLucideIconName = (typeof AGENT_LUCIDE_ICON_NAMES)[number];
2616
+ export declare const AgentLucideIconNameSchema: z.ZodEnum<{
2617
+ Bot: "Bot";
2618
+ Brain: "Brain";
2619
+ Briefcase: "Briefcase";
2620
+ Building2: "Building2";
2621
+ Calendar: "Calendar";
2622
+ ChartColumn: "ChartColumn";
2623
+ Clock: "Clock";
2624
+ Cloud: "Cloud";
2625
+ Code: "Code";
2626
+ Cpu: "Cpu";
2627
+ Crown: "Crown";
2628
+ Database: "Database";
2629
+ FileText: "FileText";
2630
+ Folder: "Folder";
2631
+ Gem: "Gem";
2632
+ GitBranch: "GitBranch";
2633
+ Hammer: "Hammer";
2634
+ Headphones: "Headphones";
2635
+ Heart: "Heart";
2636
+ Layers: "Layers";
2637
+ Lightbulb: "Lightbulb";
2638
+ Mail: "Mail";
2639
+ MessageSquare: "MessageSquare";
2640
+ Mic: "Mic";
2641
+ Network: "Network";
2642
+ Package: "Package";
2643
+ Rocket: "Rocket";
2644
+ Server: "Server";
2645
+ Settings: "Settings";
2646
+ Shield: "Shield";
2647
+ Sparkles: "Sparkles";
2648
+ Star: "Star";
2649
+ Target: "Target";
2650
+ Terminal: "Terminal";
2651
+ User: "User";
2652
+ Users: "Users";
2653
+ Workflow: "Workflow";
2654
+ Wrench: "Wrench";
2655
+ Zap: "Zap";
2656
+ Globe: "Globe";
2657
+ }>;
2658
+ /** Set to `""` to use the Dicebear illustration instead of an icon. */
2659
+ export declare const AgentLucideIconOrClearSchema: z.ZodUnion<readonly [z.ZodEnum<{
2660
+ Bot: "Bot";
2661
+ Brain: "Brain";
2662
+ Briefcase: "Briefcase";
2663
+ Building2: "Building2";
2664
+ Calendar: "Calendar";
2665
+ ChartColumn: "ChartColumn";
2666
+ Clock: "Clock";
2667
+ Cloud: "Cloud";
2668
+ Code: "Code";
2669
+ Cpu: "Cpu";
2670
+ Crown: "Crown";
2671
+ Database: "Database";
2672
+ FileText: "FileText";
2673
+ Folder: "Folder";
2674
+ Gem: "Gem";
2675
+ GitBranch: "GitBranch";
2676
+ Hammer: "Hammer";
2677
+ Headphones: "Headphones";
2678
+ Heart: "Heart";
2679
+ Layers: "Layers";
2680
+ Lightbulb: "Lightbulb";
2681
+ Mail: "Mail";
2682
+ MessageSquare: "MessageSquare";
2683
+ Mic: "Mic";
2684
+ Network: "Network";
2685
+ Package: "Package";
2686
+ Rocket: "Rocket";
2687
+ Server: "Server";
2688
+ Settings: "Settings";
2689
+ Shield: "Shield";
2690
+ Sparkles: "Sparkles";
2691
+ Star: "Star";
2692
+ Target: "Target";
2693
+ Terminal: "Terminal";
2694
+ User: "User";
2695
+ Users: "Users";
2696
+ Workflow: "Workflow";
2697
+ Wrench: "Wrench";
2698
+ Zap: "Zap";
2699
+ Globe: "Globe";
2700
+ }>, z.ZodLiteral<"">]>;
2371
2701
  export declare const AgentCreateRequestSchema: z.ZodObject<{
2372
2702
  managerAgentId: z.ZodOptional<z.ZodString>;
2373
2703
  role: z.ZodOptional<z.ZodString>;
@@ -2402,6 +2732,8 @@ export declare const AgentCreateRequestSchema: z.ZodObject<{
2402
2732
  heartbeatCron: z.ZodString;
2403
2733
  monthlyBudgetUsd: z.ZodNumber;
2404
2734
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
2735
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
2736
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
2405
2737
  sourceIssueId: z.ZodOptional<z.ZodString>;
2406
2738
  sourceIssueIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2407
2739
  delegationIntent: z.ZodOptional<z.ZodObject<{
@@ -2505,6 +2837,8 @@ export declare const AgentUpdateRequestSchema: z.ZodObject<{
2505
2837
  heartbeatCron: z.ZodOptional<z.ZodString>;
2506
2838
  monthlyBudgetUsd: z.ZodOptional<z.ZodNumber>;
2507
2839
  canHireAgents: z.ZodOptional<z.ZodBoolean>;
2840
+ canAssignAgents: z.ZodOptional<z.ZodBoolean>;
2841
+ canCreateIssues: z.ZodOptional<z.ZodBoolean>;
2508
2842
  runtimeConfig: z.ZodOptional<z.ZodObject<{
2509
2843
  runtimeCommand: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2510
2844
  runtimeArgs: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
@@ -2529,6 +2863,49 @@ export declare const AgentUpdateRequestSchema: z.ZodObject<{
2529
2863
  allowWebSearch: z.ZodDefault<z.ZodBoolean>;
2530
2864
  }, z.core.$strip>>>;
2531
2865
  }, z.core.$strip>>;
2866
+ lucideIconName: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2867
+ Bot: "Bot";
2868
+ Brain: "Brain";
2869
+ Briefcase: "Briefcase";
2870
+ Building2: "Building2";
2871
+ Calendar: "Calendar";
2872
+ ChartColumn: "ChartColumn";
2873
+ Clock: "Clock";
2874
+ Cloud: "Cloud";
2875
+ Code: "Code";
2876
+ Cpu: "Cpu";
2877
+ Crown: "Crown";
2878
+ Database: "Database";
2879
+ FileText: "FileText";
2880
+ Folder: "Folder";
2881
+ Gem: "Gem";
2882
+ GitBranch: "GitBranch";
2883
+ Hammer: "Hammer";
2884
+ Headphones: "Headphones";
2885
+ Heart: "Heart";
2886
+ Layers: "Layers";
2887
+ Lightbulb: "Lightbulb";
2888
+ Mail: "Mail";
2889
+ MessageSquare: "MessageSquare";
2890
+ Mic: "Mic";
2891
+ Network: "Network";
2892
+ Package: "Package";
2893
+ Rocket: "Rocket";
2894
+ Server: "Server";
2895
+ Settings: "Settings";
2896
+ Shield: "Shield";
2897
+ Sparkles: "Sparkles";
2898
+ Star: "Star";
2899
+ Target: "Target";
2900
+ Terminal: "Terminal";
2901
+ User: "User";
2902
+ Users: "Users";
2903
+ Workflow: "Workflow";
2904
+ Wrench: "Wrench";
2905
+ Zap: "Zap";
2906
+ Globe: "Globe";
2907
+ }>, z.ZodLiteral<"">]>>;
2908
+ avatarSeed: z.ZodOptional<z.ZodString>;
2532
2909
  }, z.core.$strip>;
2533
2910
  export type AgentUpdateRequest = z.infer<typeof AgentUpdateRequestSchema>;
2534
2911
  export declare const AgentSchema: z.ZodObject<{
@@ -2575,7 +2952,10 @@ export declare const AgentSchema: z.ZodObject<{
2575
2952
  usedBudgetUsd: z.ZodDefault<z.ZodNumber>;
2576
2953
  tokenUsage: z.ZodDefault<z.ZodNumber>;
2577
2954
  canHireAgents: z.ZodDefault<z.ZodBoolean>;
2955
+ canAssignAgents: z.ZodDefault<z.ZodBoolean>;
2956
+ canCreateIssues: z.ZodDefault<z.ZodBoolean>;
2578
2957
  avatarSeed: z.ZodOptional<z.ZodString>;
2958
+ lucideIconName: z.ZodOptional<z.ZodString>;
2579
2959
  runtimeCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2580
2960
  runtimeArgsJson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2581
2961
  runtimeCwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3064,6 +3444,7 @@ export declare const OfficeOccupantSchema: z.ZodObject<{
3064
3444
  shell: "shell";
3065
3445
  }>>;
3066
3446
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3447
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3067
3448
  focusEntityType: z.ZodNullable<z.ZodEnum<{
3068
3449
  agent: "agent";
3069
3450
  system: "system";
@@ -3112,6 +3493,7 @@ export declare const OfficeSpaceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
3112
3493
  shell: "shell";
3113
3494
  }>>;
3114
3495
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3496
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3115
3497
  focusEntityType: z.ZodNullable<z.ZodEnum<{
3116
3498
  agent: "agent";
3117
3499
  system: "system";
@@ -3159,6 +3541,7 @@ export declare const OfficeSpaceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
3159
3541
  shell: "shell";
3160
3542
  }>>;
3161
3543
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3544
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3162
3545
  focusEntityType: z.ZodNullable<z.ZodEnum<{
3163
3546
  agent: "agent";
3164
3547
  system: "system";
@@ -3453,6 +3836,7 @@ export declare const RealtimeEventEnvelopeSchema: z.ZodDiscriminatedUnion<[z.Zod
3453
3836
  shell: "shell";
3454
3837
  }>>;
3455
3838
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3839
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3456
3840
  focusEntityType: z.ZodNullable<z.ZodEnum<{
3457
3841
  agent: "agent";
3458
3842
  system: "system";
@@ -3500,6 +3884,7 @@ export declare const RealtimeEventEnvelopeSchema: z.ZodDiscriminatedUnion<[z.Zod
3500
3884
  shell: "shell";
3501
3885
  }>>;
3502
3886
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3887
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3503
3888
  focusEntityType: z.ZodNullable<z.ZodEnum<{
3504
3889
  agent: "agent";
3505
3890
  system: "system";
@@ -3882,6 +4267,7 @@ export declare const RealtimeEventMessageSchema: z.ZodDiscriminatedUnion<[z.ZodO
3882
4267
  shell: "shell";
3883
4268
  }>>;
3884
4269
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4270
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3885
4271
  focusEntityType: z.ZodNullable<z.ZodEnum<{
3886
4272
  agent: "agent";
3887
4273
  system: "system";
@@ -3929,6 +4315,7 @@ export declare const RealtimeEventMessageSchema: z.ZodDiscriminatedUnion<[z.ZodO
3929
4315
  shell: "shell";
3930
4316
  }>>;
3931
4317
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4318
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3932
4319
  focusEntityType: z.ZodNullable<z.ZodEnum<{
3933
4320
  agent: "agent";
3934
4321
  system: "system";
@@ -4313,6 +4700,7 @@ export declare const RealtimeMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
4313
4700
  shell: "shell";
4314
4701
  }>>;
4315
4702
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4703
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4316
4704
  focusEntityType: z.ZodNullable<z.ZodEnum<{
4317
4705
  agent: "agent";
4318
4706
  system: "system";
@@ -4360,6 +4748,7 @@ export declare const RealtimeMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
4360
4748
  shell: "shell";
4361
4749
  }>>;
4362
4750
  avatarSeed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4751
+ lucideIconName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4363
4752
  focusEntityType: z.ZodNullable<z.ZodEnum<{
4364
4753
  agent: "agent";
4365
4754
  system: "system";
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "bopodev-agent-sdk",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
7
7
  "types": "src/index.ts",
8
8
  "dependencies": {
9
- "bopodev-contracts": "0.1.34"
9
+ "bopodev-contracts": "0.1.36"
10
10
  },
11
11
  "scripts": {
12
12
  "build": "tsc -p tsconfig.json --emitDeclarationOnly",