pi-radar 0.1.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.
Files changed (35) hide show
  1. package/README.md +14 -6
  2. package/dist/extension/baseline.js +2740 -0
  3. package/dist/extension/radar-client.js +97 -2
  4. package/dist/extension/radar-communication.js +39 -0
  5. package/dist/extension/radar-execution.js +148 -16
  6. package/dist/extension/radar-launch.js +5 -0
  7. package/dist/extension/radar-location.js +2 -2
  8. package/dist/extension/radar-publication.js +67 -15
  9. package/dist/extension/radar-runtime.js +42 -0
  10. package/dist/extension/radar-session-marker.js +82 -0
  11. package/dist/index.js +340 -21
  12. package/extension/baseline.ts +39 -0
  13. package/extension/generated-contracts.ts +85 -0
  14. package/extension/radar-client.ts +140 -1
  15. package/extension/radar-communication.ts +66 -0
  16. package/extension/radar-execution.ts +56 -3
  17. package/extension/radar-launch.ts +8 -1
  18. package/extension/radar-location.ts +2 -2
  19. package/extension/radar-publication.ts +73 -12
  20. package/extension/radar-runtime.ts +97 -0
  21. package/extension/radar-session-marker.ts +146 -0
  22. package/index.ts +2 -0
  23. package/package.json +24 -5
  24. package/schema/public/v1/handoff-inbox.deserialize.schema.json +18 -0
  25. package/schema/public/v1/handoff-inbox.serialize.schema.json +18 -0
  26. package/schema/public/v1/handoff-publish-params.deserialize.schema.json +33 -0
  27. package/schema/public/v1/handoff-publish-params.serialize.schema.json +33 -0
  28. package/schema/public/v1/handoff-receipt.deserialize.schema.json +66 -0
  29. package/schema/public/v1/handoff-receipt.serialize.schema.json +66 -0
  30. package/schema/public/v1/handoff.deserialize.schema.json +84 -0
  31. package/schema/public/v1/handoff.serialize.schema.json +84 -0
  32. package/schema/public/v1/launch-identity-marker.deserialize.schema.json +32 -0
  33. package/schema/public/v1/launch-identity-marker.serialize.schema.json +32 -0
  34. package/schema/public/v1/managed-launch-metadata.deserialize.schema.json +39 -0
  35. package/schema/public/v1/managed-launch-metadata.serialize.schema.json +39 -0
@@ -0,0 +1,66 @@
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": "Durable recipient-consumer receipt, stored separately from immutable content.",
39
+ "properties": {
40
+ "handoff_id": {
41
+ "type": "string"
42
+ },
43
+ "received_at_unix_ms": {
44
+ "format": "uint64",
45
+ "maximum": 9007199254740991,
46
+ "minimum": 0,
47
+ "type": "integer"
48
+ },
49
+ "recipient": {
50
+ "$ref": "#/$defs/HandoffIdentity"
51
+ },
52
+ "version": {
53
+ "format": "uint32",
54
+ "minimum": 0,
55
+ "type": "integer"
56
+ }
57
+ },
58
+ "required": [
59
+ "version",
60
+ "handoff_id",
61
+ "recipient",
62
+ "received_at_unix_ms"
63
+ ],
64
+ "title": "handoff-receipt-deserialize",
65
+ "type": "object"
66
+ }
@@ -0,0 +1,66 @@
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": "Durable recipient-consumer receipt, stored separately from immutable content.",
39
+ "properties": {
40
+ "handoff_id": {
41
+ "type": "string"
42
+ },
43
+ "received_at_unix_ms": {
44
+ "format": "uint64",
45
+ "maximum": 9007199254740991,
46
+ "minimum": 0,
47
+ "type": "integer"
48
+ },
49
+ "recipient": {
50
+ "$ref": "#/$defs/HandoffIdentity"
51
+ },
52
+ "version": {
53
+ "format": "uint32",
54
+ "minimum": 0,
55
+ "type": "integer"
56
+ }
57
+ },
58
+ "required": [
59
+ "version",
60
+ "handoff_id",
61
+ "recipient",
62
+ "received_at_unix_ms"
63
+ ],
64
+ "title": "handoff-receipt-serialize",
65
+ "type": "object"
66
+ }
@@ -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
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "additionalProperties": false,
4
+ "description": "A non-secret Pi-session breadcrumb issued by Radar. This is correlation\nevidence only and cannot establish lifecycle authority.",
5
+ "properties": {
6
+ "execution_generation": {
7
+ "format": "uint32",
8
+ "maximum": 4294967295,
9
+ "minimum": 1,
10
+ "type": "integer"
11
+ },
12
+ "launch_id": {
13
+ "type": "string"
14
+ },
15
+ "subject_id": {
16
+ "type": "string"
17
+ },
18
+ "version": {
19
+ "format": "uint32",
20
+ "minimum": 0,
21
+ "type": "integer"
22
+ }
23
+ },
24
+ "required": [
25
+ "version",
26
+ "subject_id",
27
+ "launch_id",
28
+ "execution_generation"
29
+ ],
30
+ "title": "launch-identity-marker-deserialize",
31
+ "type": "object"
32
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "additionalProperties": false,
4
+ "description": "A non-secret Pi-session breadcrumb issued by Radar. This is correlation\nevidence only and cannot establish lifecycle authority.",
5
+ "properties": {
6
+ "execution_generation": {
7
+ "format": "uint32",
8
+ "maximum": 4294967295,
9
+ "minimum": 1,
10
+ "type": "integer"
11
+ },
12
+ "launch_id": {
13
+ "type": "string"
14
+ },
15
+ "subject_id": {
16
+ "type": "string"
17
+ },
18
+ "version": {
19
+ "format": "uint32",
20
+ "minimum": 0,
21
+ "type": "integer"
22
+ }
23
+ },
24
+ "required": [
25
+ "version",
26
+ "subject_id",
27
+ "launch_id",
28
+ "execution_generation"
29
+ ],
30
+ "title": "launch-identity-marker-serialize",
31
+ "type": "object"
32
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "additionalProperties": false,
4
+ "description": "Managed owner/parent metadata accepted with a spawn intent. Domain validation\nand parent-binding checks remain in the daemon handler.",
5
+ "properties": {
6
+ "label": {
7
+ "type": [
8
+ "string",
9
+ "null"
10
+ ]
11
+ },
12
+ "owner": {
13
+ "type": [
14
+ "string",
15
+ "null"
16
+ ]
17
+ },
18
+ "parent_subject_id": {
19
+ "type": [
20
+ "string",
21
+ "null"
22
+ ]
23
+ },
24
+ "role": {
25
+ "type": [
26
+ "string",
27
+ "null"
28
+ ]
29
+ },
30
+ "run": {
31
+ "type": [
32
+ "string",
33
+ "null"
34
+ ]
35
+ }
36
+ },
37
+ "title": "managed-launch-metadata-deserialize",
38
+ "type": "object"
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "additionalProperties": false,
4
+ "description": "Managed owner/parent metadata accepted with a spawn intent. Domain validation\nand parent-binding checks remain in the daemon handler.",
5
+ "properties": {
6
+ "label": {
7
+ "type": [
8
+ "string",
9
+ "null"
10
+ ]
11
+ },
12
+ "owner": {
13
+ "type": [
14
+ "string",
15
+ "null"
16
+ ]
17
+ },
18
+ "parent_subject_id": {
19
+ "type": [
20
+ "string",
21
+ "null"
22
+ ]
23
+ },
24
+ "role": {
25
+ "type": [
26
+ "string",
27
+ "null"
28
+ ]
29
+ },
30
+ "run": {
31
+ "type": [
32
+ "string",
33
+ "null"
34
+ ]
35
+ }
36
+ },
37
+ "title": "managed-launch-metadata-serialize",
38
+ "type": "object"
39
+ }