@app-vitals/agent-admin 1.12.0 → 1.12.1
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 +3 -3
- package/package.json +2 -2
- package/src/admin-spec.unit.test.ts +21 -0
- package/src/agents-api.ts +1 -1
- package/src/openapi-schemas.ts +2 -2
package/openapi.platform.json
CHANGED
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"type": "string"
|
|
254
254
|
},
|
|
255
255
|
"example": [
|
|
256
|
-
"
|
|
256
|
+
"example-marketplace",
|
|
257
257
|
"shipwright"
|
|
258
258
|
]
|
|
259
259
|
},
|
|
@@ -3102,7 +3102,7 @@
|
|
|
3102
3102
|
"type": "string"
|
|
3103
3103
|
},
|
|
3104
3104
|
"example": [
|
|
3105
|
-
"
|
|
3105
|
+
"example-marketplace"
|
|
3106
3106
|
]
|
|
3107
3107
|
}
|
|
3108
3108
|
},
|
|
@@ -3122,7 +3122,7 @@
|
|
|
3122
3122
|
},
|
|
3123
3123
|
"maxItems": 100,
|
|
3124
3124
|
"example": [
|
|
3125
|
-
"
|
|
3125
|
+
"example-marketplace",
|
|
3126
3126
|
"shipwright"
|
|
3127
3127
|
]
|
|
3128
3128
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-vitals/agent-admin",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
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.12.
|
|
45
|
+
"@app-vitals/agent-lib": "1.12.1",
|
|
46
46
|
"@hono/zod-openapi": "^1.0.0",
|
|
47
47
|
"@prisma/adapter-pg": "^7.10.0",
|
|
48
48
|
"@prisma/client": "^7.10.0",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* admin/src/admin-spec.unit.test.ts
|
|
3
|
+
*
|
|
4
|
+
* Guards the generated platform OpenAPI spec against strings that Shipwright's
|
|
5
|
+
* check-banned-strings rejects (it fails the Platform Release Bump). Example
|
|
6
|
+
* values must use neutral names, e.g. "example-marketplace".
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { describe, expect, it } from "bun:test";
|
|
10
|
+
import { buildPlatformAdminSpec } from "./admin-spec.ts";
|
|
11
|
+
|
|
12
|
+
const BANNED_PATTERNS = [/vitals-os/i];
|
|
13
|
+
|
|
14
|
+
describe("buildPlatformAdminSpec", () => {
|
|
15
|
+
it("contains none of Shipwright's banned patterns", () => {
|
|
16
|
+
const spec = JSON.stringify(buildPlatformAdminSpec());
|
|
17
|
+
for (const pattern of BANNED_PATTERNS) {
|
|
18
|
+
expect(spec).not.toMatch(pattern);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
package/src/agents-api.ts
CHANGED
|
@@ -466,7 +466,7 @@ const GetAgentResultSchema = z
|
|
|
466
466
|
bakedMarketplaces: z
|
|
467
467
|
.array(z.string())
|
|
468
468
|
.optional()
|
|
469
|
-
.openapi({ example: ["
|
|
469
|
+
.openapi({ example: ["example-marketplace", "shipwright"] }),
|
|
470
470
|
/** APM-1.3: the six real agent-policy fields (APM-1.1 DB columns). */
|
|
471
471
|
autoPostReviews: z.boolean().openapi({ example: true }),
|
|
472
472
|
allowSelfReview: z.boolean().openapi({ example: false }),
|
package/src/openapi-schemas.ts
CHANGED
|
@@ -1087,14 +1087,14 @@ export const PutBakedMarketplacesBodySchema = z
|
|
|
1087
1087
|
names: z
|
|
1088
1088
|
.array(z.string().min(1).max(255))
|
|
1089
1089
|
.max(100)
|
|
1090
|
-
.openapi({ example: ["
|
|
1090
|
+
.openapi({ example: ["example-marketplace", "shipwright"] }),
|
|
1091
1091
|
})
|
|
1092
1092
|
.strict()
|
|
1093
1093
|
.openapi("PutBakedMarketplacesBody");
|
|
1094
1094
|
|
|
1095
1095
|
export const BakedMarketplacesResultSchema = z
|
|
1096
1096
|
.object({
|
|
1097
|
-
bakedMarketplaces: z.array(z.string()).openapi({ example: ["
|
|
1097
|
+
bakedMarketplaces: z.array(z.string()).openapi({ example: ["example-marketplace"] }),
|
|
1098
1098
|
})
|
|
1099
1099
|
.openapi("BakedMarketplacesResult");
|
|
1100
1100
|
|