@roll-agent/relay-protocol 0.5.0 → 0.5.2
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/control.d.ts +27 -27
- package/dist/control.js +2 -1
- package/dist/index.d.ts +1020 -1020
- package/dist/index.js +6 -6
- package/package.json +3 -3
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 =
|
|
214
|
-
export const workspaceIdSchema =
|
|
215
|
-
export const relayRequestIdSchema =
|
|
216
|
-
export const relayEnvelopeIdSchema =
|
|
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({
|
|
@@ -549,7 +549,7 @@ export const relayRuntimeEventEnvelopeSchemaV11 = z
|
|
|
549
549
|
function projectRelayTimelineEventV11(event) {
|
|
550
550
|
if (event.type === "context.recovery.changed")
|
|
551
551
|
return { type: "capabilities.changed" };
|
|
552
|
-
if (event.type === "tool.output") {
|
|
552
|
+
if (event.type === "tool.output" || event.type === "reasoning.text.delta") {
|
|
553
553
|
return undefined;
|
|
554
554
|
}
|
|
555
555
|
if (event.type === "tool.started") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roll-agent/relay-protocol",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
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.
|
|
52
|
-
"zod": "
|
|
51
|
+
"@roll-agent/protocol": "0.11.0",
|
|
52
|
+
"zod": "4.6.6"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^22.0.0",
|