mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
b2ca78512f
- define the Command Pack API and integrate pack loading into the CLI runtime - add product-specific package, command prefix, and credential access policies - add plugin install, link, list, and remove commands - add validation, tests, documentation, and generated command references
15 lines
545 B
TypeScript
15 lines
545 B
TypeScript
import { describe, expect, test } from "vite-plus/test";
|
|
import { runKscli } from "./helpers.ts";
|
|
|
|
describe("e2e: kscli Command Pack host", () => {
|
|
test("keeps the shared host inactive with the default empty policy", async () => {
|
|
const help = await runKscli(["--help"]);
|
|
expect(help.exitCode, help.stderr).toBe(0);
|
|
expect(help.stderr).not.toContain("plugin install");
|
|
|
|
const result = await runKscli(["plugin", "list"]);
|
|
expect(result.exitCode).not.toBe(0);
|
|
expect(result.stderr).toMatch(/Unknown command/i);
|
|
});
|
|
});
|