@app-vitals/agent-admin 1.55.0 → 1.57.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.json +12 -0
- package/openapi.platform.json +20 -5
- package/package.json +2 -2
- package/prisma/client/internal/class.ts +4 -4
- package/prisma/client/internal/prismaNamespace.ts +2 -0
- package/prisma/client/internal/prismaNamespaceBrowser.ts +2 -0
- package/prisma/client/models/AgentMarketplace.ts +71 -1
- package/prisma/migrations/20261116100000_add_agent_marketplace_row_source/migration.sql +5 -0
- package/prisma/schema/schema.prisma +2 -0
- package/src/admin-ui-templates-pages.ts +11 -3
- package/src/admin-ui-templates.ts +9 -0
- package/src/agent-marketplaces-api.integration.test.ts +112 -0
- package/src/agent-marketplaces.integration.test.ts +9 -0
- package/src/agent-marketplaces.ts +52 -2
- package/src/agent-template-items.ts +20 -0
- package/src/agent-template-items.unit.test.ts +53 -0
- package/src/agent-template-merge.ts +1 -0
- package/src/agent-template-merge.unit.test.ts +50 -0
- package/src/agent-template-reconcile.ts +7 -1
- package/src/agent-templates-api.integration.test.ts +80 -0
- package/src/agent-templates-api.ts +1 -1
- package/src/agent-templates.ts +11 -0
- package/src/agents-api.ts +6 -2
- package/src/api.ts +16 -8
- package/src/openapi-schemas.ts +8 -2
package/openapi.json
CHANGED
|
@@ -3528,6 +3528,18 @@
|
|
|
3528
3528
|
],
|
|
3529
3529
|
"example": "main"
|
|
3530
3530
|
},
|
|
3531
|
+
"rowSource": {
|
|
3532
|
+
"type": "string",
|
|
3533
|
+
"enum": [
|
|
3534
|
+
"template",
|
|
3535
|
+
"custom"
|
|
3536
|
+
],
|
|
3537
|
+
"example": "custom"
|
|
3538
|
+
},
|
|
3539
|
+
"enabled": {
|
|
3540
|
+
"type": "boolean",
|
|
3541
|
+
"example": true
|
|
3542
|
+
},
|
|
3531
3543
|
"createdAt": {
|
|
3532
3544
|
"type": "string",
|
|
3533
3545
|
"format": "date-time",
|
package/openapi.platform.json
CHANGED
|
@@ -1026,7 +1026,8 @@
|
|
|
1026
1026
|
"env",
|
|
1027
1027
|
"tool",
|
|
1028
1028
|
"plugin",
|
|
1029
|
-
"cron"
|
|
1029
|
+
"cron",
|
|
1030
|
+
"marketplace"
|
|
1030
1031
|
]
|
|
1031
1032
|
},
|
|
1032
1033
|
"key": {
|
|
@@ -1081,7 +1082,8 @@
|
|
|
1081
1082
|
"env",
|
|
1082
1083
|
"tool",
|
|
1083
1084
|
"plugin",
|
|
1084
|
-
"cron"
|
|
1085
|
+
"cron",
|
|
1086
|
+
"marketplace"
|
|
1085
1087
|
]
|
|
1086
1088
|
},
|
|
1087
1089
|
"key": {
|
|
@@ -2537,6 +2539,18 @@
|
|
|
2537
2539
|
],
|
|
2538
2540
|
"example": "main"
|
|
2539
2541
|
},
|
|
2542
|
+
"rowSource": {
|
|
2543
|
+
"type": "string",
|
|
2544
|
+
"enum": [
|
|
2545
|
+
"template",
|
|
2546
|
+
"custom"
|
|
2547
|
+
],
|
|
2548
|
+
"example": "custom"
|
|
2549
|
+
},
|
|
2550
|
+
"enabled": {
|
|
2551
|
+
"type": "boolean",
|
|
2552
|
+
"example": true
|
|
2553
|
+
},
|
|
2540
2554
|
"createdAt": {
|
|
2541
2555
|
"type": "string",
|
|
2542
2556
|
"format": "date-time",
|
|
@@ -4383,7 +4397,8 @@
|
|
|
4383
4397
|
"env",
|
|
4384
4398
|
"tool",
|
|
4385
4399
|
"plugin",
|
|
4386
|
-
"cron"
|
|
4400
|
+
"cron",
|
|
4401
|
+
"marketplace"
|
|
4387
4402
|
]
|
|
4388
4403
|
},
|
|
4389
4404
|
"PutTemplateBody": {
|
|
@@ -4428,7 +4443,7 @@
|
|
|
4428
4443
|
"payload": {
|
|
4429
4444
|
"type": "object",
|
|
4430
4445
|
"additionalProperties": {},
|
|
4431
|
-
"description": "Kind-specific fields. env: {value, secret?}; tool: {enabled?}; plugin: {version?, enabled?}; cron: {schedule, prompt, channel?, user?, silent?, enabled?, preCheck?}.",
|
|
4446
|
+
"description": "Kind-specific fields. env: {value, secret?}; tool: {enabled?}; plugin: {version?, enabled?}; cron: {schedule, prompt, channel?, user?, silent?, enabled?, preCheck?}; marketplace: {source, ref?} (key = marketplace name).",
|
|
4432
4447
|
"example": {
|
|
4433
4448
|
"value": "lin_abc",
|
|
4434
4449
|
"secret": true
|
|
@@ -8651,7 +8666,7 @@
|
|
|
8651
8666
|
"templates"
|
|
8652
8667
|
],
|
|
8653
8668
|
"summary": "Create or replace an agent template",
|
|
8654
|
-
"description": "Creates the template for the (accountId, specialty) scope, or replaces the items of the existing one (201 / 200). Account callers may only write their own account (403 otherwise); only platform admins write deployment-wide templates. 422 for an unknown specialty, a denylisted env key (per-agent credentials: Slack tokens, GH_TOKEN, Anthropic credentials, task-store URL/token), an invalid item payload, a cron item without a name key, or a duplicate (kind, key). Env values are encrypted at rest; a secret env item sent as `\"***\"` keeps its stored value.",
|
|
8669
|
+
"description": "Creates the template for the (accountId, specialty) scope, or replaces the items of the existing one (201 / 200). Account callers may only write their own account (403 otherwise); only platform admins write deployment-wide templates. 422 for an unknown specialty, a denylisted env key (per-agent credentials: Slack tokens, GH_TOKEN, Anthropic credentials, task-store URL/token), an invalid item payload, a cron item without a name key, a marketplace item with an invalid name, source or ref (same messages as POST /agents/:id/marketplaces), or a duplicate (kind, key). Env values are encrypted at rest; a secret env item sent as `\"***\"` keeps its stored value.",
|
|
8655
8670
|
"requestBody": {
|
|
8656
8671
|
"content": {
|
|
8657
8672
|
"application/json": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-vitals/agent-admin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.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.137.0",
|
|
45
|
-
"@app-vitals/agent-lib": "1.
|
|
45
|
+
"@app-vitals/agent-lib": "1.57.0",
|
|
46
46
|
"@hono/zod-openapi": "^1.0.0",
|
|
47
47
|
"@prisma/adapter-pg": "^7.10.0",
|
|
48
48
|
"@prisma/client": "^7.10.0",
|