feat: introduced aiand provider registry entry and model catalog
- Implement the ai& provider registry entry with API-key authentication and login support. - Add model descriptors, static model seeding, and openai-compatible model discovery for the ai& provider. - Update the model catalog with ai& provider models, pricing, and updated provider model names. - Add unit tests for the ai& provider environment resolution, metadata, and dynamic model mapping.
This commit is contained in:
@@ -154,7 +154,7 @@ describe("task.batch schema gating", () => {
|
||||
expect(batch.description).toContain("`effort`");
|
||||
});
|
||||
|
||||
it("keeps isolation boolean-only and describes the configured apply behavior", async () => {
|
||||
it("keeps isolation boolean-only in the batch item schema", async () => {
|
||||
mockDiscovery();
|
||||
|
||||
const tool = await TaskTool.create(
|
||||
@@ -169,18 +169,6 @@ describe("task.batch schema gating", () => {
|
||||
}
|
||||
expect(isolatedSchema.type).toBe("boolean");
|
||||
expect(itemProperties.apply).toBeUndefined();
|
||||
expect(tool.description).toContain("automatically applied to the parent checkout");
|
||||
|
||||
const captureTool = await TaskTool.create(
|
||||
createSession({
|
||||
settings: {
|
||||
"task.batch": true,
|
||||
"task.isolation.mode": "auto",
|
||||
"task.isolation.apply": false,
|
||||
},
|
||||
}),
|
||||
);
|
||||
expect(captureTool.description).toContain("without modifying the parent checkout");
|
||||
});
|
||||
|
||||
it("hides isolation from the dynamic batch schema in plan mode", async () => {
|
||||
|
||||
Reference in New Issue
Block a user