@unbound-app/debugger-protocol 0.7.0 → 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.
@@ -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
- /** MCP ⊂ CLI: every MCP action is a CLI command; not every CLI command is an MCP tool. */
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unbound-app/debugger-protocol",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "The wire protocol and controller client shared by the debugger bridge, the on-device client, and the CLI.",
5
5
  "author": {
6
6
  "name": "Mario P.",
@@ -35,7 +35,6 @@
35
35
  "build": "tsdown"
36
36
  },
37
37
  "dependencies": {
38
- "@unbound-app/types": "0.7.0",
39
38
  "zod": "^4.0.0"
40
39
  },
41
40
  "peerDependencies": {