@app-vitals/agent-admin 1.6.0 → 1.8.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.
- package/openapi.platform.json +127 -0
- package/package.json +2 -2
- package/prisma/client/internal/class.ts +4 -4
- package/prisma/client/internal/prismaNamespace.ts +1 -0
- package/prisma/client/internal/prismaNamespaceBrowser.ts +1 -0
- package/prisma/client/models/Agent.ts +83 -1
- package/prisma/migrations/20261110000000_add_agent_baked_marketplaces/migration.sql +3 -0
- package/prisma/schema/schema.prisma +4 -0
- package/src/agents-api.smoke.test.ts +114 -0
- package/src/agents-api.ts +70 -1
- package/src/agents.baked-marketplaces.integration.test.ts +123 -0
- package/src/agents.ts +24 -0
- package/src/openapi-schemas.ts +20 -0
package/openapi.platform.json
CHANGED
|
@@ -247,6 +247,16 @@
|
|
|
247
247
|
],
|
|
248
248
|
"format": "date-time"
|
|
249
249
|
},
|
|
250
|
+
"bakedMarketplaces": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"items": {
|
|
253
|
+
"type": "string"
|
|
254
|
+
},
|
|
255
|
+
"example": [
|
|
256
|
+
"vitals-os",
|
|
257
|
+
"shipwright"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
250
260
|
"autoPostReviews": {
|
|
251
261
|
"type": "boolean",
|
|
252
262
|
"example": true
|
|
@@ -3083,6 +3093,45 @@
|
|
|
3083
3093
|
],
|
|
3084
3094
|
"additionalProperties": false
|
|
3085
3095
|
},
|
|
3096
|
+
"BakedMarketplacesResult": {
|
|
3097
|
+
"type": "object",
|
|
3098
|
+
"properties": {
|
|
3099
|
+
"bakedMarketplaces": {
|
|
3100
|
+
"type": "array",
|
|
3101
|
+
"items": {
|
|
3102
|
+
"type": "string"
|
|
3103
|
+
},
|
|
3104
|
+
"example": [
|
|
3105
|
+
"vitals-os"
|
|
3106
|
+
]
|
|
3107
|
+
}
|
|
3108
|
+
},
|
|
3109
|
+
"required": [
|
|
3110
|
+
"bakedMarketplaces"
|
|
3111
|
+
]
|
|
3112
|
+
},
|
|
3113
|
+
"PutBakedMarketplacesBody": {
|
|
3114
|
+
"type": "object",
|
|
3115
|
+
"properties": {
|
|
3116
|
+
"names": {
|
|
3117
|
+
"type": "array",
|
|
3118
|
+
"items": {
|
|
3119
|
+
"type": "string",
|
|
3120
|
+
"minLength": 1,
|
|
3121
|
+
"maxLength": 255
|
|
3122
|
+
},
|
|
3123
|
+
"maxItems": 100,
|
|
3124
|
+
"example": [
|
|
3125
|
+
"vitals-os",
|
|
3126
|
+
"shipwright"
|
|
3127
|
+
]
|
|
3128
|
+
}
|
|
3129
|
+
},
|
|
3130
|
+
"required": [
|
|
3131
|
+
"names"
|
|
3132
|
+
],
|
|
3133
|
+
"additionalProperties": false
|
|
3134
|
+
},
|
|
3086
3135
|
"AgentConfigResponse": {
|
|
3087
3136
|
"type": "object",
|
|
3088
3137
|
"properties": {
|
|
@@ -6251,6 +6300,84 @@
|
|
|
6251
6300
|
}
|
|
6252
6301
|
}
|
|
6253
6302
|
},
|
|
6303
|
+
"/agents/{id}/baked-marketplaces": {
|
|
6304
|
+
"put": {
|
|
6305
|
+
"summary": "Report the marketplaces baked into the agent's image",
|
|
6306
|
+
"description": "Runtime-only report, authenticated with the agent's own key. Overwrites the stored list of baked marketplace names (the image's current state); it is exposed read-only as `bakedMarketplaces` on GET /agents/{id}. Other callers, including another agent's key, get 403.",
|
|
6307
|
+
"parameters": [
|
|
6308
|
+
{
|
|
6309
|
+
"schema": {
|
|
6310
|
+
"type": "string",
|
|
6311
|
+
"example": "clx1234567890"
|
|
6312
|
+
},
|
|
6313
|
+
"required": true,
|
|
6314
|
+
"name": "id",
|
|
6315
|
+
"in": "path"
|
|
6316
|
+
}
|
|
6317
|
+
],
|
|
6318
|
+
"requestBody": {
|
|
6319
|
+
"content": {
|
|
6320
|
+
"application/json": {
|
|
6321
|
+
"schema": {
|
|
6322
|
+
"$ref": "#/components/schemas/PutBakedMarketplacesBody"
|
|
6323
|
+
}
|
|
6324
|
+
}
|
|
6325
|
+
}
|
|
6326
|
+
},
|
|
6327
|
+
"responses": {
|
|
6328
|
+
"200": {
|
|
6329
|
+
"description": "Baked marketplaces stored",
|
|
6330
|
+
"content": {
|
|
6331
|
+
"application/json": {
|
|
6332
|
+
"schema": {
|
|
6333
|
+
"$ref": "#/components/schemas/BakedMarketplacesResult"
|
|
6334
|
+
}
|
|
6335
|
+
}
|
|
6336
|
+
}
|
|
6337
|
+
},
|
|
6338
|
+
"400": {
|
|
6339
|
+
"description": "Bad request",
|
|
6340
|
+
"content": {
|
|
6341
|
+
"application/json": {
|
|
6342
|
+
"schema": {
|
|
6343
|
+
"$ref": "#/components/schemas/Error"
|
|
6344
|
+
}
|
|
6345
|
+
}
|
|
6346
|
+
}
|
|
6347
|
+
},
|
|
6348
|
+
"401": {
|
|
6349
|
+
"description": "Unauthorized",
|
|
6350
|
+
"content": {
|
|
6351
|
+
"application/json": {
|
|
6352
|
+
"schema": {
|
|
6353
|
+
"$ref": "#/components/schemas/Error"
|
|
6354
|
+
}
|
|
6355
|
+
}
|
|
6356
|
+
}
|
|
6357
|
+
},
|
|
6358
|
+
"403": {
|
|
6359
|
+
"description": "Forbidden — only the agent's own key may report",
|
|
6360
|
+
"content": {
|
|
6361
|
+
"application/json": {
|
|
6362
|
+
"schema": {
|
|
6363
|
+
"$ref": "#/components/schemas/Error"
|
|
6364
|
+
}
|
|
6365
|
+
}
|
|
6366
|
+
}
|
|
6367
|
+
},
|
|
6368
|
+
"404": {
|
|
6369
|
+
"description": "Agent not found",
|
|
6370
|
+
"content": {
|
|
6371
|
+
"application/json": {
|
|
6372
|
+
"schema": {
|
|
6373
|
+
"$ref": "#/components/schemas/Error"
|
|
6374
|
+
}
|
|
6375
|
+
}
|
|
6376
|
+
}
|
|
6377
|
+
}
|
|
6378
|
+
}
|
|
6379
|
+
}
|
|
6380
|
+
},
|
|
6254
6381
|
"/agents/{id}/config": {
|
|
6255
6382
|
"get": {
|
|
6256
6383
|
"tags": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-vitals/agent-admin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/app-vitals/agent.git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@anthropic-ai/sdk": "0.135.0",
|
|
45
|
-
"@app-vitals/agent-lib": "1.
|
|
45
|
+
"@app-vitals/agent-lib": "1.8.0",
|
|
46
46
|
"@hono/zod-openapi": "^1.0.0",
|
|
47
47
|
"@prisma/adapter-pg": "^7.10.0",
|
|
48
48
|
"@prisma/client": "^7.10.0",
|