pi-radar 0.2.0 → 0.3.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/README.md +8 -4
- package/dist/extension/baseline.js +116 -2
- package/dist/extension/radar-client.js +76 -1
- package/dist/extension/radar-communication.js +39 -0
- package/dist/extension/radar-execution.js +2 -0
- package/dist/extension/radar-launch.js +5 -0
- package/dist/extension/radar-publication.js +2 -0
- package/dist/extension/radar-runtime.js +1 -1
- package/dist/index.js +126 -2
- package/extension/baseline.ts +2 -0
- package/extension/generated-contracts.ts +64 -0
- package/extension/radar-client.ts +105 -0
- package/extension/radar-communication.ts +66 -0
- package/extension/radar-launch.ts +8 -1
- package/extension/radar-publication.ts +4 -0
- package/extension/radar-runtime.ts +4 -1
- package/index.ts +1 -0
- package/package.json +9 -4
- package/schema/public/v1/handoff-inbox.deserialize.schema.json +18 -0
- package/schema/public/v1/handoff-inbox.serialize.schema.json +18 -0
- package/schema/public/v1/handoff-publish-params.deserialize.schema.json +33 -0
- package/schema/public/v1/handoff-publish-params.serialize.schema.json +33 -0
- package/schema/public/v1/handoff-receipt.deserialize.schema.json +66 -0
- package/schema/public/v1/handoff-receipt.serialize.schema.json +66 -0
- package/schema/public/v1/handoff.deserialize.schema.json +84 -0
- package/schema/public/v1/handoff.serialize.schema.json +84 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"HandoffIdentity": {
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"description": "The current managed Pi execution that published or received a handoff.\n`subject_id` is stable across verified successors; `execution_id` and\ngeneration identify the exact execution that took the action.",
|
|
6
|
+
"properties": {
|
|
7
|
+
"agent_id": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"execution_generation": {
|
|
11
|
+
"format": "uint32",
|
|
12
|
+
"maximum": 4294967295,
|
|
13
|
+
"minimum": 1,
|
|
14
|
+
"type": "integer"
|
|
15
|
+
},
|
|
16
|
+
"execution_id": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"session_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"subject_id": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"agent_id",
|
|
28
|
+
"session_id",
|
|
29
|
+
"subject_id",
|
|
30
|
+
"execution_id",
|
|
31
|
+
"execution_generation"
|
|
32
|
+
],
|
|
33
|
+
"type": "object"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"description": "Immutable handoff content. The request id is the stable communication id.",
|
|
39
|
+
"properties": {
|
|
40
|
+
"content": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"correlation_id": {
|
|
44
|
+
"type": [
|
|
45
|
+
"string",
|
|
46
|
+
"null"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"id": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"published_at_unix_ms": {
|
|
53
|
+
"format": "uint64",
|
|
54
|
+
"maximum": 9007199254740991,
|
|
55
|
+
"minimum": 0,
|
|
56
|
+
"type": "integer"
|
|
57
|
+
},
|
|
58
|
+
"recipient_subject_id": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"sender": {
|
|
62
|
+
"$ref": "#/$defs/HandoffIdentity"
|
|
63
|
+
},
|
|
64
|
+
"summary": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"version": {
|
|
68
|
+
"format": "uint32",
|
|
69
|
+
"minimum": 0,
|
|
70
|
+
"type": "integer"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"version",
|
|
75
|
+
"id",
|
|
76
|
+
"sender",
|
|
77
|
+
"recipient_subject_id",
|
|
78
|
+
"summary",
|
|
79
|
+
"content",
|
|
80
|
+
"published_at_unix_ms"
|
|
81
|
+
],
|
|
82
|
+
"title": "handoff-deserialize",
|
|
83
|
+
"type": "object"
|
|
84
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"HandoffIdentity": {
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"description": "The current managed Pi execution that published or received a handoff.\n`subject_id` is stable across verified successors; `execution_id` and\ngeneration identify the exact execution that took the action.",
|
|
6
|
+
"properties": {
|
|
7
|
+
"agent_id": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"execution_generation": {
|
|
11
|
+
"format": "uint32",
|
|
12
|
+
"maximum": 4294967295,
|
|
13
|
+
"minimum": 1,
|
|
14
|
+
"type": "integer"
|
|
15
|
+
},
|
|
16
|
+
"execution_id": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"session_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"subject_id": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"agent_id",
|
|
28
|
+
"session_id",
|
|
29
|
+
"subject_id",
|
|
30
|
+
"execution_id",
|
|
31
|
+
"execution_generation"
|
|
32
|
+
],
|
|
33
|
+
"type": "object"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"description": "Immutable handoff content. The request id is the stable communication id.",
|
|
39
|
+
"properties": {
|
|
40
|
+
"content": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"correlation_id": {
|
|
44
|
+
"type": [
|
|
45
|
+
"string",
|
|
46
|
+
"null"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"id": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"published_at_unix_ms": {
|
|
53
|
+
"format": "uint64",
|
|
54
|
+
"maximum": 9007199254740991,
|
|
55
|
+
"minimum": 0,
|
|
56
|
+
"type": "integer"
|
|
57
|
+
},
|
|
58
|
+
"recipient_subject_id": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"sender": {
|
|
62
|
+
"$ref": "#/$defs/HandoffIdentity"
|
|
63
|
+
},
|
|
64
|
+
"summary": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"version": {
|
|
68
|
+
"format": "uint32",
|
|
69
|
+
"minimum": 0,
|
|
70
|
+
"type": "integer"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"version",
|
|
75
|
+
"id",
|
|
76
|
+
"sender",
|
|
77
|
+
"recipient_subject_id",
|
|
78
|
+
"summary",
|
|
79
|
+
"content",
|
|
80
|
+
"published_at_unix_ms"
|
|
81
|
+
],
|
|
82
|
+
"title": "handoff-serialize",
|
|
83
|
+
"type": "object"
|
|
84
|
+
}
|