@mcoda/mswarm 0.1.113 → 0.1.114
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/dist/vendor/codali/api/CodaliApi.js +5 -2
- package/dist/vendor/codali/cli/AskCommand.d.ts.map +1 -1
- package/dist/vendor/codali/cli/AskCommand.js +3 -2
- package/dist/vendor/codali/cli/ToolsCommand.d.ts +1 -0
- package/dist/vendor/codali/cli/ToolsCommand.d.ts.map +1 -1
- package/dist/vendor/codali/cli/ToolsCommand.js +30 -7
- package/dist/vendor/codali/docdex/DocdexClient.d.ts +12 -0
- package/dist/vendor/codali/docdex/DocdexClient.d.ts.map +1 -1
- package/dist/vendor/codali/docdex/DocdexClient.js +12 -0
- package/dist/vendor/codali/gateway/ToolSurface.d.ts +40 -0
- package/dist/vendor/codali/gateway/ToolSurface.d.ts.map +1 -0
- package/dist/vendor/codali/gateway/ToolSurface.js +52 -0
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { randomUUID } from "node:crypto";
|
|
|
2
2
|
import { attachHttpTools } from "../connectors/http/HttpToolSource.js";
|
|
3
3
|
import { attachMcpTools } from "../connectors/mcp/McpToolSource.js";
|
|
4
4
|
import { createImageGenerationTool, } from "../connectors/media/ImageGenerationTool.js";
|
|
5
|
-
import { DocdexClient } from "../docdex/DocdexClient.js";
|
|
5
|
+
import { DocdexClient, docdexRepoRootFor } from "../docdex/DocdexClient.js";
|
|
6
6
|
import { createCodaliGateway } from "../gateway/CodaliGateway.js";
|
|
7
7
|
import { createLocalGatewayTaskRunner } from "../gateway/LocalGatewayTaskRunner.js";
|
|
8
8
|
import { createProviderForAssignment } from "../gateway/LocalGatewayProvider.js";
|
|
@@ -289,10 +289,13 @@ const buildDefaultRegistry = (workspaceRoot, context) => {
|
|
|
289
289
|
const registry = new ToolRegistry();
|
|
290
290
|
const client = new DocdexClient({
|
|
291
291
|
baseUrl: context.docdex?.baseUrl ?? "http://127.0.0.1:28491",
|
|
292
|
-
repoRoot: context.repo?.root
|
|
292
|
+
repoRoot: docdexRepoRootFor(context.repo?.root, context.docdex?.repoId, workspaceRoot),
|
|
293
293
|
repoId: context.docdex?.repoId,
|
|
294
294
|
apiKey: context.docdex?.apiKey,
|
|
295
295
|
allowedOperations: context.docdex?.allowedOperations,
|
|
296
|
+
// Same allowlist story as the model calls: a tenant reaching a repository
|
|
297
|
+
// it does not own is authorised by identity, not by key alone.
|
|
298
|
+
clientIdentity: context.tenant?.slug ?? context.tenant?.id,
|
|
296
299
|
});
|
|
297
300
|
for (const tool of createDocdexTools(client))
|
|
298
301
|
registry.register(tool);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AskCommand.d.ts","sourceRoot":"","sources":["../../src/cli/AskCommand.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGvF,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EACL,2BAA2B,EAE5B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EACV,iBAAiB,EAEjB,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAE9D;;;;;;GAMG;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,SAAU,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAe9C,MAAM,WAAW,UAAU;IAC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YAAY,CAAC;IAC3E,cAAc,CAAC,EAAE,CACf,UAAU,EAAE,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,KAC1D,QAAQ,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,cAAc,CAAC;IAClC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AA8BD,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,MAAM,GACjB,MAAM,MAAM,EAAE,EACd,OAAM,eAAoB,KACzB,OAAO,CAAC,UAAU,CAmZpB,CAAC;AAEF,eAAO,MAAM,UAAU;cACL,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAMzC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { filterLocallyDrivable, getAgentInventory } from "../agents/AgentInvento
|
|
|
3
3
|
import { resolveConfigurableRoles } from "../agents/RoleResolution.js";
|
|
4
4
|
import { attachHttpTools } from "../connectors/http/HttpToolSource.js";
|
|
5
5
|
import { attachMcpTools } from "../connectors/mcp/McpToolSource.js";
|
|
6
|
-
import { DocdexClient } from "../docdex/DocdexClient.js";
|
|
6
|
+
import { DocdexClient, docdexRepoRootFor } from "../docdex/DocdexClient.js";
|
|
7
7
|
import { createCodaliGateway } from "../gateway/CodaliGateway.js";
|
|
8
8
|
import { createLocalGatewayTaskRunner } from "../gateway/LocalGatewayTaskRunner.js";
|
|
9
9
|
import { createProviderForAssignment, } from "../gateway/LocalGatewayProvider.js";
|
|
@@ -165,10 +165,11 @@ const buildDefaultRegistry = (options, context, judgeProvider) => {
|
|
|
165
165
|
return registry;
|
|
166
166
|
const client = new DocdexClient({
|
|
167
167
|
baseUrl: options.docdexBaseUrl ?? context.docdex?.baseUrl ?? "http://127.0.0.1:28491",
|
|
168
|
-
repoRoot: context.repo?.root
|
|
168
|
+
repoRoot: docdexRepoRootFor(context.repo?.root, context.docdex?.repoId, options.workspaceRoot),
|
|
169
169
|
repoId: context.docdex?.repoId,
|
|
170
170
|
apiKey: context.docdex?.apiKey,
|
|
171
171
|
allowedOperations: context.docdex?.allowedOperations,
|
|
172
|
+
clientIdentity: context.tenant?.slug ?? context.tenant?.id,
|
|
172
173
|
});
|
|
173
174
|
for (const tool of createDocdexTools(client, {
|
|
174
175
|
// Judged by the orchestrator model: small, fast, and already loaded.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsCommand.d.ts","sourceRoot":"","sources":["../../src/cli/ToolsCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolsCommand.d.ts","sourceRoot":"","sources":["../../src/cli/ToolsCommand.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA8BxD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,EAAE,KAAG,YAqC/C,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;IACnE,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,KAAK,YAAY,CAAC;IACjF,SAAS,CAAC,EAAE,OAAO,cAAc,CAAC;IAClC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAkBD,eAAO,MAAM,QAAQ,GACnB,MAAM,MAAM,EAAE,EACd,OAAM,iBAAsB,KAC3B,OAAO,CAAC,MAAM,CA2JhB,CAAC;AAEF,eAAO,MAAM,YAAY;cACP,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAIzC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
1
2
|
import path from "node:path";
|
|
2
3
|
import { attachHttpTools } from "../connectors/http/HttpToolSource.js";
|
|
3
4
|
import { attachMcpTools } from "../connectors/mcp/McpToolSource.js";
|
|
@@ -6,6 +7,7 @@ import { LocalConfigRunContextResolver } from "../runcontext/RunContextResolver.
|
|
|
6
7
|
import { ToolRegistry } from "../tools/ToolRegistry.js";
|
|
7
8
|
import { createDocdexTools } from "../tools/docdex/DocdexTools.js";
|
|
8
9
|
import { sanitizeArgs } from "../gateway/GatewayTracer.js";
|
|
10
|
+
import { inspectToolSurface } from "../gateway/ToolSurface.js";
|
|
9
11
|
/**
|
|
10
12
|
* `codali tools` — inspect what an orchestration run can actually reach.
|
|
11
13
|
*
|
|
@@ -24,6 +26,8 @@ Commands:
|
|
|
24
26
|
Options:
|
|
25
27
|
--workspace-root <path> Repository to resolve config against (default: cwd)
|
|
26
28
|
--args-json <json> Arguments for "call"
|
|
29
|
+
--context-json <path> Run against a host-supplied RunContext instead of
|
|
30
|
+
local config, to see what one tenant's run gets
|
|
27
31
|
--json Machine-readable output
|
|
28
32
|
--help, -h Show this help
|
|
29
33
|
`;
|
|
@@ -36,6 +40,7 @@ export const parseToolsArgs = (argv) => {
|
|
|
36
40
|
let workspaceRoot = process.cwd();
|
|
37
41
|
let argsJson;
|
|
38
42
|
let json = false;
|
|
43
|
+
let contextJson;
|
|
39
44
|
let target;
|
|
40
45
|
for (let index = 0; index < rest.length; index += 1) {
|
|
41
46
|
const arg = rest[index];
|
|
@@ -44,6 +49,10 @@ export const parseToolsArgs = (argv) => {
|
|
|
44
49
|
workspaceRoot = path.resolve(next);
|
|
45
50
|
index += 1;
|
|
46
51
|
}
|
|
52
|
+
else if (arg === "--context-json" && next) {
|
|
53
|
+
contextJson = next;
|
|
54
|
+
index += 1;
|
|
55
|
+
}
|
|
47
56
|
else if (arg === "--args-json" && next) {
|
|
48
57
|
argsJson = next;
|
|
49
58
|
index += 1;
|
|
@@ -58,7 +67,7 @@ export const parseToolsArgs = (argv) => {
|
|
|
58
67
|
if ((command === "describe" || command === "call") && !target) {
|
|
59
68
|
throw new Error(`codali tools ${command} requires a tool name.\n\n${HELP}`);
|
|
60
69
|
}
|
|
61
|
-
return { command, target, workspaceRoot, argsJson, json };
|
|
70
|
+
return { command, target, workspaceRoot, argsJson, contextJson, json };
|
|
62
71
|
};
|
|
63
72
|
const buildBaseRegistryDefault = (context, workspaceRoot) => {
|
|
64
73
|
const registry = new ToolRegistry();
|
|
@@ -80,11 +89,15 @@ export const runTools = async (argv, deps = {}) => {
|
|
|
80
89
|
return 0;
|
|
81
90
|
}
|
|
82
91
|
const options = parseToolsArgs(argv);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
// A host-supplied context answers the question a product actually has: not
|
|
93
|
+
// "what can this machine do" but "what would this tenant's run get".
|
|
94
|
+
const context = options.contextJson
|
|
95
|
+
? JSON.parse(await readFile(options.contextJson, "utf8"))
|
|
96
|
+
: deps.resolveRunContext
|
|
97
|
+
? await deps.resolveRunContext(options.workspaceRoot)
|
|
98
|
+
: await new LocalConfigRunContextResolver().resolve({
|
|
99
|
+
workspaceRoot: options.workspaceRoot,
|
|
100
|
+
});
|
|
88
101
|
const registry = (deps.buildBaseRegistry ?? buildBaseRegistryDefault)(context, options.workspaceRoot);
|
|
89
102
|
const mcp = await (deps.attachMcp ?? attachMcpTools)({
|
|
90
103
|
context,
|
|
@@ -116,9 +129,19 @@ export const runTools = async (argv, deps = {}) => {
|
|
|
116
129
|
if (options.command === "list") {
|
|
117
130
|
const capabilities = registry.capabilities();
|
|
118
131
|
if (options.json) {
|
|
119
|
-
write(JSON.stringify(registry
|
|
132
|
+
write(JSON.stringify(inspectToolSurface(context, registry), null, 2));
|
|
120
133
|
return 0;
|
|
121
134
|
}
|
|
135
|
+
const surface = inspectToolSurface(context, registry);
|
|
136
|
+
if (surface.dropped.length > 0) {
|
|
137
|
+
// Silent loss is the failure this exists to catch: a tool the host
|
|
138
|
+
// supplied, present in the registry, that the compiler will not let
|
|
139
|
+
// the planner see. The run does not fail — it answers without it.
|
|
140
|
+
write(`${surface.dropped.length} tool(s) will NOT reach the planner:`);
|
|
141
|
+
for (const entry of surface.dropped)
|
|
142
|
+
write(` ${entry.tool} (${entry.reason})`);
|
|
143
|
+
write("");
|
|
144
|
+
}
|
|
122
145
|
if (capabilities.size === 0) {
|
|
123
146
|
write("No tools available.");
|
|
124
147
|
return 0;
|
|
@@ -94,6 +94,18 @@ export interface DocdexWriteMetadata {
|
|
|
94
94
|
}
|
|
95
95
|
export declare const isDocdexRuntimeErrorCode: (value: unknown) => value is DocdexRuntimeErrorCode;
|
|
96
96
|
export declare const normalizeDocdexRuntimeOperation: (value: string) => DocdexRuntimeOperation | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* The repository root to disclose to docdex, if any.
|
|
99
|
+
*
|
|
100
|
+
* A remote, tenant-scoped repository is addressed by `repoId`; there is no
|
|
101
|
+
* local checkout behind it. Defaulting the root to the process working
|
|
102
|
+
* directory sent the *server's* filesystem path to docdex as
|
|
103
|
+
* `x-docdex-repo-root` on every tenant request — a path that belongs to the
|
|
104
|
+
* host, describes no repository the tenant owns, and has no business leaving
|
|
105
|
+
* the machine. A host that does mean a local checkout says so with
|
|
106
|
+
* `repo.root`.
|
|
107
|
+
*/
|
|
108
|
+
export declare const docdexRepoRootFor: (contextRepoRoot: string | undefined, repoId: string | undefined, workspaceRoot: string) => string | undefined;
|
|
97
109
|
export declare class DocdexClient {
|
|
98
110
|
private options;
|
|
99
111
|
private repoId?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocdexClient.d.ts","sourceRoot":"","sources":["../../src/docdex/DocdexClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,wBAAwB,EAEzB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,yBAAyB,GAAG,MAAM,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;IACnD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAC9B,qBAAqB,GACrB,oBAAoB,GACpB,cAAc,GACd,8BAA8B,GAC9B,wBAAwB,GACxB,wBAAwB,GACxB,8BAA8B,GAC9B,oBAAoB,GACpB,2BAA2B,GAC3B,oBAAoB,CAAC;AAEzB,MAAM,MAAM,sBAAsB,GAC9B,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,MAAM,GACN,SAAS,GACT,KAAK,GACL,cAAc,GACd,oBAAoB,GACpB,YAAY,GACZ,MAAM,GACN,aAAa,GACb,eAAe,GACf,cAAc,GACd,eAAe,GACf,cAAc,GACd,cAAc,GACd,QAAQ,G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AAC;IAavD,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAAC,OAAO,CAAC;IAalF,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAM9C,cAAc,CACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,mBAAmB,GAC7B,OAAO,CAAC,OAAO,CAAC;IASnB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,wBAA6B,GAAG,OAAO,CAAC,OAAO,CAAC;YAgBtE,eAAe;IA4C7B,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAWxE,WAAW,CACf,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAO,GACtD,OAAO,CAAC,OAAO,CAAC;IAgCb,eAAe,CAAC,YAAY,UAAQ,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAmC/E"}
|
|
@@ -126,6 +126,18 @@ const sanitizeSearchRetryQuery = (query) => {
|
|
|
126
126
|
.trim();
|
|
127
127
|
return sanitized && sanitized !== original ? sanitized : undefined;
|
|
128
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* The repository root to disclose to docdex, if any.
|
|
131
|
+
*
|
|
132
|
+
* A remote, tenant-scoped repository is addressed by `repoId`; there is no
|
|
133
|
+
* local checkout behind it. Defaulting the root to the process working
|
|
134
|
+
* directory sent the *server's* filesystem path to docdex as
|
|
135
|
+
* `x-docdex-repo-root` on every tenant request — a path that belongs to the
|
|
136
|
+
* host, describes no repository the tenant owns, and has no business leaving
|
|
137
|
+
* the machine. A host that does mean a local checkout says so with
|
|
138
|
+
* `repo.root`.
|
|
139
|
+
*/
|
|
140
|
+
export const docdexRepoRootFor = (contextRepoRoot, repoId, workspaceRoot) => contextRepoRoot ?? (repoId ? undefined : workspaceRoot);
|
|
129
141
|
export class DocdexClient {
|
|
130
142
|
constructor(options) {
|
|
131
143
|
this.options = options;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { RunContext } from "../runcontext/RunContextResolver.js";
|
|
2
|
+
import type { ToolRegistry } from "../tools/ToolRegistry.js";
|
|
3
|
+
/**
|
|
4
|
+
* What a host's declared tools actually become inside a run.
|
|
5
|
+
*
|
|
6
|
+
* A tool can be present in the registry and still never reach the planner. The
|
|
7
|
+
* capability compiler drops anything the request did not declare as an actual
|
|
8
|
+
* tool, and it does so quietly: the run succeeds, the model is simply never
|
|
9
|
+
* offered the tool, and the answer comes back thinner with no error to explain
|
|
10
|
+
* why. That has now cost this project twice — first the MCP connector tools,
|
|
11
|
+
* then `docdex_web_research`, which meant the web capability was never offered
|
|
12
|
+
* to the classifier at all.
|
|
13
|
+
*
|
|
14
|
+
* A host embedding Codali configures tools per tenant and cannot see any of
|
|
15
|
+
* this. This reports it: what was supplied, what survived, and the compiler's
|
|
16
|
+
* own reason for every tool that did not.
|
|
17
|
+
*/
|
|
18
|
+
export interface ToolSurfaceEntry {
|
|
19
|
+
tool: string;
|
|
20
|
+
reason: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ToolSurfaceReport {
|
|
23
|
+
/** Tools registered from the context — MCP servers, HTTP connectors, docdex. */
|
|
24
|
+
registered: string[];
|
|
25
|
+
/** Tools the planner will actually be offered. */
|
|
26
|
+
visible: string[];
|
|
27
|
+
/** Registered but unreachable, with the compiler's reason. */
|
|
28
|
+
dropped: ToolSurfaceEntry[];
|
|
29
|
+
/** Warnings raised while compiling the tool surface. */
|
|
30
|
+
warnings: string[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Compiles the tool surface exactly as a run would, and reports the difference.
|
|
34
|
+
*
|
|
35
|
+
* Deliberately uses the real compiler rather than reimplementing its rules: a
|
|
36
|
+
* conformance check that can disagree with the thing it checks is worse than
|
|
37
|
+
* none, because it grants confidence it has not earned.
|
|
38
|
+
*/
|
|
39
|
+
export declare const inspectToolSurface: (context: RunContext, registry: ToolRegistry) => ToolSurfaceReport;
|
|
40
|
+
//# sourceMappingURL=ToolSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolSurface.d.ts","sourceRoot":"","sources":["../../src/gateway/ToolSurface.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,gFAAgF;IAChF,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,kDAAkD;IAClD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,8DAA8D;IAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,wDAAwD;IACxD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,UAAU,EACnB,UAAU,YAAY,KACrB,iBAgDF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { compileCodaliGatewayPolicy } from "./GatewayPolicyCompiler.js";
|
|
2
|
+
/**
|
|
3
|
+
* Compiles the tool surface exactly as a run would, and reports the difference.
|
|
4
|
+
*
|
|
5
|
+
* Deliberately uses the real compiler rather than reimplementing its rules: a
|
|
6
|
+
* conformance check that can disagree with the thing it checks is worse than
|
|
7
|
+
* none, because it grants confidence it has not earned.
|
|
8
|
+
*/
|
|
9
|
+
export const inspectToolSurface = (context, registry) => {
|
|
10
|
+
const registered = registry.catalog().map((tool) => tool.name).sort();
|
|
11
|
+
const compilation = compileCodaliGatewayPolicy({
|
|
12
|
+
request: {
|
|
13
|
+
query: "",
|
|
14
|
+
policy: { allowedTools: registered },
|
|
15
|
+
// `actualTools` belongs on the tool manifest, not the policy. Declaring
|
|
16
|
+
// it in the wrong place is silent — the compiler simply reports every
|
|
17
|
+
// connector tool as `not_declared` — and it is the mistake this project
|
|
18
|
+
// has now made three times, twice in production code and once while
|
|
19
|
+
// writing this very check.
|
|
20
|
+
tools: { actualTools: registered },
|
|
21
|
+
tenant: context.tenant,
|
|
22
|
+
docdex: context.docdex
|
|
23
|
+
? {
|
|
24
|
+
baseUrl: context.docdex.baseUrl,
|
|
25
|
+
repoId: context.docdex.repoId,
|
|
26
|
+
allowedOperations: context.docdex.allowedOperations,
|
|
27
|
+
}
|
|
28
|
+
: undefined,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
const visible = [...compilation.effectiveAllowedTools].sort();
|
|
32
|
+
const visibleSet = new Set(visible);
|
|
33
|
+
const reasons = new Map();
|
|
34
|
+
for (const skipped of compilation.skippedTools ?? []) {
|
|
35
|
+
if (typeof skipped === "string") {
|
|
36
|
+
reasons.set(skipped, "skipped");
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
const entry = skipped;
|
|
40
|
+
if (entry.tool)
|
|
41
|
+
reasons.set(entry.tool, entry.reason ?? "skipped");
|
|
42
|
+
}
|
|
43
|
+
const dropped = registered
|
|
44
|
+
.filter((tool) => !visibleSet.has(tool))
|
|
45
|
+
.map((tool) => ({ tool, reason: reasons.get(tool) ?? "not_visible_to_planner" }));
|
|
46
|
+
return {
|
|
47
|
+
registered,
|
|
48
|
+
visible,
|
|
49
|
+
dropped,
|
|
50
|
+
warnings: (compilation.warnings ?? []).map((warning) => typeof warning === "string" ? warning : JSON.stringify(warning)),
|
|
51
|
+
};
|
|
52
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcoda/mswarm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.114",
|
|
4
4
|
"description": "Owner-run mswarm node for exposing local mcoda agents through the mswarm self-hosted gateway.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server.js",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"fastify": "^5.7.4",
|
|
50
50
|
"undici": "^6.28.0",
|
|
51
|
-
"@mcoda/db": "0.1.
|
|
52
|
-
"@mcoda/shared": "0.1.
|
|
51
|
+
"@mcoda/db": "0.1.114",
|
|
52
|
+
"@mcoda/shared": "0.1.114"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "pnpm --filter @mcoda/shared run build && pnpm --filter @mcoda/codali run build && tsc -p tsconfig.json && node ../../scripts/copy-mswarm-codali-vendor.js",
|