@crewhaus/gateway-protocol 0.4.2 → 0.5.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/index.d.ts CHANGED
@@ -36,12 +36,12 @@ export declare const ResponseEnvelope: z.ZodUnion<[z.ZodObject<{
36
36
  id: z.ZodString;
37
37
  result: z.ZodUnknown;
38
38
  }, "strict", z.ZodTypeAny, {
39
- protocol: "crewhaus.v1";
40
39
  id: string;
40
+ protocol: "crewhaus.v1";
41
41
  result?: unknown;
42
42
  }, {
43
- protocol: "crewhaus.v1";
44
43
  id: string;
44
+ protocol: "crewhaus.v1";
45
45
  result?: unknown;
46
46
  }>, z.ZodObject<{
47
47
  protocol: z.ZodLiteral<"crewhaus.v1">;
@@ -60,21 +60,21 @@ export declare const ResponseEnvelope: z.ZodUnion<[z.ZodObject<{
60
60
  data?: unknown;
61
61
  }>;
62
62
  }, "strict", z.ZodTypeAny, {
63
- protocol: "crewhaus.v1";
64
- id: string;
65
63
  error: {
66
64
  code: string;
67
65
  message: string;
68
66
  data?: unknown;
69
67
  };
70
- }, {
71
- protocol: "crewhaus.v1";
72
68
  id: string;
69
+ protocol: "crewhaus.v1";
70
+ }, {
73
71
  error: {
74
72
  code: string;
75
73
  message: string;
76
74
  data?: unknown;
77
75
  };
76
+ id: string;
77
+ protocol: "crewhaus.v1";
78
78
  }>]>;
79
79
  export declare const RequestEnvelope: z.ZodObject<{
80
80
  protocol: z.ZodLiteral<"crewhaus.v1">;
@@ -82,13 +82,13 @@ export declare const RequestEnvelope: z.ZodObject<{
82
82
  method: z.ZodString;
83
83
  params: z.ZodUnknown;
84
84
  }, "strict", z.ZodTypeAny, {
85
- protocol: "crewhaus.v1";
86
85
  id: string;
86
+ protocol: "crewhaus.v1";
87
87
  method: string;
88
88
  params?: unknown;
89
89
  }, {
90
- protocol: "crewhaus.v1";
91
90
  id: string;
91
+ protocol: "crewhaus.v1";
92
92
  method: string;
93
93
  params?: unknown;
94
94
  }>;
@@ -126,11 +126,11 @@ export declare const RunsContinueParams: z.ZodObject<{
126
126
  sessionId: z.ZodString;
127
127
  input: z.ZodString;
128
128
  }, "strict", z.ZodTypeAny, {
129
- input: string;
130
129
  sessionId: string;
131
- }, {
132
130
  input: string;
131
+ }, {
133
132
  sessionId: string;
133
+ input: string;
134
134
  }>;
135
135
  export declare const RunsContinueResult: z.ZodObject<{
136
136
  runId: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/gateway-protocol",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "description": "JSON-RPC wire protocol for the managed-daemon gateway — versioned envelope + Zod schemas",
6
6
  "main": "dist/index.js",
@@ -9,13 +9,22 @@
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.js"
12
+ },
13
+ "./control": {
14
+ "types": "./dist/control.d.ts",
15
+ "import": "./dist/control.js"
16
+ },
17
+ "./control-codegen": {
18
+ "types": "./dist/control-codegen.d.ts",
19
+ "import": "./dist/control-codegen.js"
12
20
  }
13
21
  },
14
22
  "scripts": {
15
23
  "test": "bun test src"
16
24
  },
17
25
  "dependencies": {
18
- "@crewhaus/errors": "0.4.2",
26
+ "@crewhaus/errors": "0.5.0",
27
+ "@crewhaus/event-log": "0.5.0",
19
28
  "zod": "^3.23.8"
20
29
  },
21
30
  "license": "Apache-2.0",