@roll-agent/relay-protocol 0.5.0 → 0.5.1

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { contextRecoveryViewSchema, contextRecoveryChangedEventSchema, RUNTIME_SERVER_REQUEST_METHODS, TOOL_OUTCOME_KINDS, approvalIdSchema, approvalExplanationSchema, approvalRequestResultSchema, getApprovalExplanation, interactionIdSchema, jsonValueSchema, normalizeUserInputResult, operationGetResultSchema, operationViewV15Schema, operationIdSchema, operationResultGetParamsSchema, operationResultGetResultSchema, appOutputDescriptorSchema, runtimeMethodSchemasV15, operationViewSchema, pendingApprovalSchema, projectThreadSnapshotForVersion, runtimeEventEnvelopeSchema, runtimeEventEnvelopeV11Schema, runtimeMethodSchemasV11, runtimeInstanceIdSchema, streamIdSchema, threadIdSchema, threadSnapshotV11Schema, timestampSchema, turnIdSchema, userInputFormSchema, userInputResultSchema, } from "@roll-agent/protocol";
1
+ import { contextRecoveryViewSchema, contextRecoveryChangedEventSchema, RUNTIME_SERVER_REQUEST_METHODS, TOOL_OUTCOME_KINDS, approvalIdSchema, approvalExplanationSchema, approvalRequestResultSchema, getApprovalExplanation, interactionIdSchema, jsonValueSchema, normalizeUserInputResult, operationGetResultSchema, operationViewV15Schema, operationIdSchema, operationResultGetParamsSchema, operationResultGetResultSchema, appOutputDescriptorSchema, runtimeMethodSchemasV15, operationViewSchema, pendingApprovalSchema, projectThreadSnapshotForVersion, runtimeEventEnvelopeSchema, runtimeEventEnvelopeV11Schema, runtimeMethodSchemasV11, runtimeInstanceIdSchema, streamIdSchema, threadIdSchema, threadSnapshotV11Schema, timestampSchema, uuidSchema, turnIdSchema, userInputFormSchema, userInputResultSchema, } from "@roll-agent/protocol";
2
2
  import { z } from "zod/v4";
3
3
  export const SUPPORTED_RELAY_PROTOCOL_VERSIONS = ["1.3", "1.2", "1.1", "1.0"];
4
4
  export const LATEST_RELAY_PROTOCOL_VERSION = SUPPORTED_RELAY_PROTOCOL_VERSIONS[0];
@@ -210,10 +210,10 @@ export function getRelayErrorRetryabilityV11(code) {
210
210
  return RELAY_ERROR_RETRYABILITY_V11[code];
211
211
  }
212
212
  export const relayProtocolVersionSchema = z.enum(SUPPORTED_RELAY_PROTOCOL_VERSIONS);
213
- export const deviceIdSchema = z.string().uuid().brand();
214
- export const workspaceIdSchema = z.string().uuid().brand();
215
- export const relayRequestIdSchema = z.string().uuid().brand();
216
- export const relayEnvelopeIdSchema = z.string().uuid();
213
+ export const deviceIdSchema = uuidSchema.clone().brand();
214
+ export const workspaceIdSchema = uuidSchema.clone().brand();
215
+ export const relayRequestIdSchema = uuidSchema.clone().brand();
216
+ export const relayEnvelopeIdSchema = uuidSchema.clone();
217
217
  export const relayInteractionIdSchema = interactionIdSchema;
218
218
  export const relayApprovalCandidateParamsSchema = z
219
219
  .object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roll-agent/relay-protocol",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,8 +48,8 @@
48
48
  "node": ">=22.6.0"
49
49
  },
50
50
  "dependencies": {
51
- "@roll-agent/protocol": "0.9.0",
52
- "zod": "3.25.76"
51
+ "@roll-agent/protocol": "0.10.0",
52
+ "zod": "4.6.6"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^22.0.0",