refactor: split repo into docs/ mockup/ app/
- move static mockups from resource/ui to mockup/ - move React app scaffold from resource/ui to app/ - move prome.md + images to docs/ - drop empty resource/jsonfile and resource/ - add root .gitignore - rewrite README for new layout - fix paths in mockup/index.html (resource/ui -> mockup, docs/prome.md)
This commit is contained in:
1 parent
8e87e47017
commit
92a2adad6a
133 files changed
+23416
-50
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
import {
|
||||
loadTemplateMcpConformance,
|
||||
providerSchemaViolations,
|
||||
templateMcpCatalogModes,
|
||||
type TemplateMcpConformance,
|
||||
} from "@agent-native/core/testing";
|
||||
import { beforeAll, describe, expect, it } from "vitest";
|
||||
|
||||
const projectRoot = fileURLToPath(new URL("..", import.meta.url));
|
||||
|
||||
describe("Chat MCP catalogs", () => {
|
||||
let template: TemplateMcpConformance;
|
||||
|
||||
beforeAll(async () => {
|
||||
template = await loadTemplateMcpConformance(projectRoot);
|
||||
}, 180_000);
|
||||
|
||||
it.each(templateMcpCatalogModes(projectRoot))(
|
||||
"advertises only schemas that pass every pinned provider rule in the %s catalog",
|
||||
async (mode) => {
|
||||
const tools = await template.listCatalog(mode);
|
||||
expect(tools.length).toBeGreaterThan(0);
|
||||
expect(tools.flatMap((tool) => providerSchemaViolations(tool))).toEqual(
|
||||
[],
|
||||
);
|
||||
},
|
||||
60_000,
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user