@unbound-app/debugger-protocol 0.7.2 → 0.8.0
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/registry.d.mts +13 -6
- package/package.json +1 -1
package/dist/registry.d.mts
CHANGED
|
@@ -15,15 +15,22 @@ type CommandOutput = {
|
|
|
15
15
|
text: string;
|
|
16
16
|
data?: unknown;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Every command is on the CLI: at the root (`ubd eval`), or under `ubd mcp` (`ubd mcp open`) for
|
|
20
|
+
* agent-facing tools, which must then be MCP tools too.
|
|
21
|
+
*/
|
|
22
|
+
type CommandSurfaces = {
|
|
23
|
+
cli: 'root';
|
|
24
|
+
mcp: boolean;
|
|
25
|
+
} | {
|
|
26
|
+
cli: 'mcp';
|
|
27
|
+
mcp: true;
|
|
28
|
+
};
|
|
18
29
|
/** A command usable from both the CLI and (when opted in) the MCP server. */
|
|
19
30
|
type CommandDefinition<S extends z.ZodObject<z.ZodRawShape>> = {
|
|
20
31
|
name: string;
|
|
21
32
|
description: string;
|
|
22
|
-
|
|
23
|
-
surfaces: {
|
|
24
|
-
cli: true;
|
|
25
|
-
mcp: boolean;
|
|
26
|
-
};
|
|
33
|
+
surfaces: CommandSurfaces;
|
|
27
34
|
/** Used directly as the MCP inputSchema; the CLI adapter derives flags from its fields. */
|
|
28
35
|
schema: S;
|
|
29
36
|
/** Which schema fields the CLI presents as positionals; the rest become flags. */
|
|
@@ -33,4 +40,4 @@ type CommandDefinition<S extends z.ZodObject<z.ZodRawShape>> = {
|
|
|
33
40
|
handler: (input: z.infer<S>, context: CommandContext) => Promise<CommandOutput>;
|
|
34
41
|
};
|
|
35
42
|
//#endregion
|
|
36
|
-
export { CommandContext, CommandDefinition, CommandOutput };
|
|
43
|
+
export { CommandContext, CommandDefinition, CommandOutput, CommandSurfaces };
|
package/package.json
CHANGED