@roll-agent/protocol 0.7.0 → 0.8.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.d.ts
CHANGED
|
@@ -17156,3 +17156,4 @@ export type ThreadSnapshotV15Full = z.infer<typeof threadSnapshotV15FullSchema>;
|
|
|
17156
17156
|
export type ThreadSnapshotV15 = z.infer<typeof threadSnapshotV15Schema>;
|
|
17157
17157
|
export type OperationViewV15 = z.infer<typeof operationViewV15Schema>;
|
|
17158
17158
|
export type OperationResultView = z.infer<typeof operationResultViewSchema>;
|
|
17159
|
+
export { OBSERVATION_RETENTION_META_KEY, observationRetentionDeclarationSchema, type ObservationRetentionDeclaration, } from "./observation-retention.ts";
|
package/dist/index.js
CHANGED
|
@@ -2356,3 +2356,4 @@ export function parseRuntimeServerRequestParams(method, value) {
|
|
|
2356
2356
|
export function parseRuntimeServerRequestResult(method, value) {
|
|
2357
2357
|
return runtimeServerRequestSchemas[method].result.parse(value);
|
|
2358
2358
|
}
|
|
2359
|
+
export { OBSERVATION_RETENTION_META_KEY, observationRetentionDeclarationSchema, } from "./observation-retention.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/** MCP metadata for tools whose successful results are replaceable observations. */
|
|
3
|
+
export declare const OBSERVATION_RETENTION_META_KEY = "roll/observationRetention";
|
|
4
|
+
export declare const observationRetentionDeclarationSchema: z.ZodObject<{
|
|
5
|
+
kind: z.ZodLiteral<"browser-ax-snapshot">;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export type ObservationRetentionDeclaration = z.infer<typeof observationRetentionDeclarationSchema>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/** MCP metadata for tools whose successful results are replaceable observations. */
|
|
3
|
+
export const OBSERVATION_RETENTION_META_KEY = "roll/observationRetention";
|
|
4
|
+
export const observationRetentionDeclarationSchema = z
|
|
5
|
+
.object({ kind: z.literal("browser-ax-snapshot") })
|
|
6
|
+
.strict();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roll-agent/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
"types": "./dist/app-output.d.ts",
|
|
28
28
|
"default": "./dist/app-output.js"
|
|
29
29
|
},
|
|
30
|
+
"./observation-retention": {
|
|
31
|
+
"types": "./dist/observation-retention.d.ts",
|
|
32
|
+
"default": "./dist/observation-retention.js"
|
|
33
|
+
},
|
|
30
34
|
"./schema/1.5": "./dist/schema/roll-runtime-protocol-v1.5.schema.json"
|
|
31
35
|
},
|
|
32
36
|
"publishConfig": {
|