@app-vitals/agent-lib 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/admin-types.ts +185 -0
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -3127,6 +3127,143 @@ export interface paths {
3127
3127
  patch?: never;
3128
3128
  trace?: never;
3129
3129
  };
3130
+ "/agents/{id}/marketplaces": {
3131
+ parameters: {
3132
+ query?: never;
3133
+ header?: never;
3134
+ path?: never;
3135
+ cookie?: never;
3136
+ };
3137
+ /**
3138
+ * List marketplaces
3139
+ * @description Returns every remote plugin marketplace configured for the agent.
3140
+ */
3141
+ get: {
3142
+ parameters: {
3143
+ query?: never;
3144
+ header?: never;
3145
+ path: {
3146
+ id: string;
3147
+ };
3148
+ cookie?: never;
3149
+ };
3150
+ requestBody?: never;
3151
+ responses: {
3152
+ /** @description List of marketplaces */
3153
+ 200: {
3154
+ headers: {
3155
+ [name: string]: unknown;
3156
+ };
3157
+ content: {
3158
+ "application/json": components["schemas"]["MarketplacesWrapper"];
3159
+ };
3160
+ };
3161
+ };
3162
+ };
3163
+ put?: never;
3164
+ /**
3165
+ * Add or update a marketplace
3166
+ * @description Upserts a remote plugin marketplace by `name`. `source` must be a GitHub `owner/repo` or an https git URL (no credentials); `ref` optionally pins a branch, tag or sha. 422 on an invalid `name`, `source` or `ref`.
3167
+ */
3168
+ post: {
3169
+ parameters: {
3170
+ query?: never;
3171
+ header?: never;
3172
+ path: {
3173
+ id: string;
3174
+ };
3175
+ cookie?: never;
3176
+ };
3177
+ requestBody?: {
3178
+ content: {
3179
+ "application/json": components["schemas"]["UpsertAgentMarketplaceBody"];
3180
+ };
3181
+ };
3182
+ responses: {
3183
+ /** @description Marketplace added or updated */
3184
+ 201: {
3185
+ headers: {
3186
+ [name: string]: unknown;
3187
+ };
3188
+ content: {
3189
+ "application/json": components["schemas"]["MarketplaceWrapper"];
3190
+ };
3191
+ };
3192
+ /** @description Bad request */
3193
+ 400: {
3194
+ headers: {
3195
+ [name: string]: unknown;
3196
+ };
3197
+ content: {
3198
+ "application/json": components["schemas"]["Error"];
3199
+ };
3200
+ };
3201
+ /** @description Invalid name, source or ref */
3202
+ 422: {
3203
+ headers: {
3204
+ [name: string]: unknown;
3205
+ };
3206
+ content: {
3207
+ "application/json": components["schemas"]["Error"];
3208
+ };
3209
+ };
3210
+ };
3211
+ };
3212
+ delete?: never;
3213
+ options?: never;
3214
+ head?: never;
3215
+ patch?: never;
3216
+ trace?: never;
3217
+ };
3218
+ "/agents/{id}/marketplaces/{marketplaceId}": {
3219
+ parameters: {
3220
+ query?: never;
3221
+ header?: never;
3222
+ path?: never;
3223
+ cookie?: never;
3224
+ };
3225
+ get?: never;
3226
+ put?: never;
3227
+ post?: never;
3228
+ /**
3229
+ * Remove a marketplace
3230
+ * @description Removes the marketplace row by id. 404 when the id does not exist or belongs to a different agent.
3231
+ */
3232
+ delete: {
3233
+ parameters: {
3234
+ query?: never;
3235
+ header?: never;
3236
+ path: {
3237
+ id: string;
3238
+ marketplaceId: string;
3239
+ };
3240
+ cookie?: never;
3241
+ };
3242
+ requestBody?: never;
3243
+ responses: {
3244
+ /** @description Marketplace removed */
3245
+ 204: {
3246
+ headers: {
3247
+ [name: string]: unknown;
3248
+ };
3249
+ content?: never;
3250
+ };
3251
+ /** @description Marketplace not found */
3252
+ 404: {
3253
+ headers: {
3254
+ [name: string]: unknown;
3255
+ };
3256
+ content: {
3257
+ "application/json": components["schemas"]["Error"];
3258
+ };
3259
+ };
3260
+ };
3261
+ };
3262
+ options?: never;
3263
+ head?: never;
3264
+ patch?: never;
3265
+ trace?: never;
3266
+ };
3130
3267
  }
3131
3268
  export type webhooks = Record<string, never>;
3132
3269
  export interface components {
@@ -4235,6 +4372,7 @@ export interface components {
4235
4372
  */
4236
4373
  allowedTools: string[];
4237
4374
  plugins: components["schemas"]["AgentConfigPlugin"][];
4375
+ marketplaces?: components["schemas"]["AgentConfigMarketplace"][];
4238
4376
  /**
4239
4377
  * @example [
4240
4378
  * "org/repo1",
@@ -4432,6 +4570,53 @@ export interface components {
4432
4570
  /** @example null */
4433
4571
  repliedAt: string | null;
4434
4572
  };
4573
+ AgentMarketplace: {
4574
+ /** @example clx1234567890 */
4575
+ id: string;
4576
+ /** @example clx1234567890 */
4577
+ agentId: string;
4578
+ /** @example shipwright */
4579
+ name: string;
4580
+ /** @example app-vitals/shipwright */
4581
+ source: string;
4582
+ /** @example main */
4583
+ ref: string | null;
4584
+ /**
4585
+ * Format: date-time
4586
+ * @example 2026-01-01T00:00:00.000Z
4587
+ */
4588
+ createdAt: string;
4589
+ /**
4590
+ * Format: date-time
4591
+ * @example 2026-01-01T00:00:00.000Z
4592
+ */
4593
+ updatedAt: string;
4594
+ };
4595
+ UpsertAgentMarketplaceBody: {
4596
+ /** @example shipwright */
4597
+ name: string;
4598
+ /**
4599
+ * @description GitHub `owner/repo` or an https git URL
4600
+ * @example app-vitals/shipwright
4601
+ */
4602
+ source: string;
4603
+ /** @example main */
4604
+ ref?: string | null;
4605
+ };
4606
+ MarketplaceWrapper: {
4607
+ marketplace: components["schemas"]["AgentMarketplace"];
4608
+ };
4609
+ MarketplacesWrapper: {
4610
+ marketplaces: components["schemas"]["AgentMarketplace"][];
4611
+ };
4612
+ AgentConfigMarketplace: {
4613
+ /** @example shipwright */
4614
+ name: string;
4615
+ /** @example app-vitals/shipwright */
4616
+ source: string;
4617
+ /** @example main */
4618
+ ref: string | null;
4619
+ };
4435
4620
  };
4436
4621
  responses: never;
4437
4622
  parameters: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",