bopodev-agent-sdk 0.1.33 → 0.1.35

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