feat(session): add explicit provider registry and target binding
Introduce deterministic deep-provider discovery and immutable per-target routing while retaining disjoint artifact and native capability families. Expose provider selection consistently through MCP, CLI, environment configuration, session status, prompt completion, typed diagnostics, and generated documentation. Preserve exact provider/profile provenance without request racing or transparent fallback. Cover overlapping providers, ambiguity, rejection details, cancellation, restoration, package installation, and real Hopper target switching.
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
||||
import { ensureGeneratedFile } from "../scripts/lib/generated-file.mjs";
|
||||
import {
|
||||
createCliInventory,
|
||||
cliCommandOptionNames,
|
||||
createProductCatalog,
|
||||
serializeProductCatalog,
|
||||
} from "../scripts/lib/product-catalog.mjs";
|
||||
@@ -101,6 +102,21 @@ describe("canonical product catalog", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("exposes the shared provider selector on every deep-analysis command", () => {
|
||||
const cli = createCli();
|
||||
for (const name of [
|
||||
"analyze",
|
||||
"inspect",
|
||||
"decompile",
|
||||
"xrefs",
|
||||
"trace",
|
||||
"function",
|
||||
"search",
|
||||
]) {
|
||||
expect(cliCommandOptionNames(cli, name)).toContain("provider");
|
||||
}
|
||||
});
|
||||
|
||||
it("reports tool, setup-client, and schema fact drift", async () => {
|
||||
const catalog = await createProductCatalog(root);
|
||||
const drifted = {
|
||||
|
||||
Reference in New Issue
Block a user