@onlooker-community/schema 0.1.0 → 1.2.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/dist/event-types.d.ts.map +1 -1
- package/dist/event-types.js.map +1 -1
- package/dist/generated-types.d.ts +380 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +15 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +7 -5
- package/dist/validate.js.map +1 -1
- package/package.json +43 -30
- package/schemas/event.v1.json +134 -134
- package/schemas/payload/plugins-memory.json +172 -172
- package/schemas/payload/plugins-ops.json +255 -244
- package/schemas/payload/plugins-safety.json +140 -124
- package/schemas/payload/session.json +52 -52
- package/schemas/payload/task.json +36 -0
- package/schemas/payload/tool.json +83 -83
|
@@ -1,174 +1,174 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://onlooker.community/schemas/payload/plugins-memory.json",
|
|
4
|
+
"title": "Memory plugin payloads",
|
|
5
|
+
"description": "Payload schemas for archivist.*, relay.*, scribe.*, oracle.*, cues.*, and cartographer.* events.",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"archivist.extract.complete": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"required": ["session_id", "item_count"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"session_id": { "type": "string" },
|
|
13
|
+
"item_count": { "type": "integer", "minimum": 0 },
|
|
14
|
+
"decision_count": { "type": "integer", "minimum": 0 },
|
|
15
|
+
"dead_end_count": { "type": "integer", "minimum": 0 },
|
|
16
|
+
"open_question_count": { "type": "integer", "minimum": 0 },
|
|
17
|
+
"file_count": { "type": "integer", "minimum": 0 },
|
|
18
|
+
"trigger": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": ["pre_compact", "session_end", "manual"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"archivist.inject.complete": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"required": ["source_session_id", "items_injected"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"source_session_id": { "type": "string" },
|
|
30
|
+
"items_injected": { "type": "integer", "minimum": 0 },
|
|
31
|
+
"items_available": { "type": "integer", "minimum": 0 }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"relay.handoff.captured": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["session_id"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"session_id": { "type": "string" },
|
|
40
|
+
"tasks_in_progress": { "type": "integer", "minimum": 0 },
|
|
41
|
+
"blocking_questions": { "type": "integer", "minimum": 0 },
|
|
42
|
+
"files_in_flight": { "type": "integer", "minimum": 0 }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"relay.handoff.injected": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["source_session_id"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"source_session_id": { "type": "string" },
|
|
51
|
+
"age_ms": { "type": "integer", "minimum": 0 }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"scribe.capture.complete": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"required": ["file_path", "operation"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"file_path": { "type": "string" },
|
|
60
|
+
"operation": { "type": "string", "enum": ["write", "edit"] },
|
|
61
|
+
"intent_summary": { "type": "string" }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"scribe.distill.complete": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["session_id", "captures_processed", "artifacts_produced"],
|
|
68
|
+
"properties": {
|
|
69
|
+
"session_id": { "type": "string" },
|
|
70
|
+
"captures_processed": { "type": "integer", "minimum": 0 },
|
|
71
|
+
"artifacts_produced": { "type": "integer", "minimum": 0 }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"oracle.calibration.requested": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": ["trigger"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"trigger": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"enum": ["user_prompt", "pre_write", "pre_bash"]
|
|
82
|
+
},
|
|
83
|
+
"task_summary": { "type": "string" }
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"oracle.calibration.complete": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": ["trigger", "confidence_score", "intervened"],
|
|
90
|
+
"properties": {
|
|
91
|
+
"trigger": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": ["user_prompt", "pre_write", "pre_bash"]
|
|
94
|
+
},
|
|
95
|
+
"confidence_score": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
96
|
+
"intervened": { "type": "boolean" },
|
|
97
|
+
"misalignment_detected": { "type": "boolean" }
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"cues.matched": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": ["cue_id", "match_type", "trigger_source"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"cue_id": { "type": "string" },
|
|
106
|
+
"match_type": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": ["regex", "vocabulary", "semantic"]
|
|
109
|
+
},
|
|
110
|
+
"trigger_source": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"enum": ["prompt", "command", "file_path"]
|
|
113
|
+
},
|
|
114
|
+
"cue_name": { "type": "string" }
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"cues.applied": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": ["cue_id"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"cue_id": { "type": "string" },
|
|
123
|
+
"cue_name": { "type": "string" },
|
|
124
|
+
"guidance_length": { "type": "integer", "minimum": 0 }
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"cartographer.audit.complete": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"required": ["files_audited", "issues_found"],
|
|
131
|
+
"properties": {
|
|
132
|
+
"files_audited": { "type": "integer", "minimum": 0 },
|
|
133
|
+
"issues_found": { "type": "integer", "minimum": 0 },
|
|
134
|
+
"trigger": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"enum": ["instructions_loaded", "config_change", "manual"]
|
|
137
|
+
},
|
|
138
|
+
"issue_categories": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"properties": {
|
|
142
|
+
"contradictions": { "type": "integer", "minimum": 0 },
|
|
143
|
+
"stale_references": { "type": "integer", "minimum": 0 },
|
|
144
|
+
"orphaned_plugins": { "type": "integer", "minimum": 0 },
|
|
145
|
+
"dead_tools": { "type": "integer", "minimum": 0 },
|
|
146
|
+
"duplicates": { "type": "integer", "minimum": 0 },
|
|
147
|
+
"hierarchy_conflicts": { "type": "integer", "minimum": 0 }
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"cartographer.issue.found": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"additionalProperties": false,
|
|
155
|
+
"required": ["issue_type", "file_path", "severity"],
|
|
156
|
+
"properties": {
|
|
157
|
+
"issue_type": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"enum": [
|
|
160
|
+
"contradiction",
|
|
161
|
+
"stale_reference",
|
|
162
|
+
"orphaned_plugin",
|
|
163
|
+
"dead_tool",
|
|
164
|
+
"duplicate",
|
|
165
|
+
"hierarchy_conflict"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"file_path": { "type": "string" },
|
|
169
|
+
"severity": { "type": "string", "enum": ["error", "warning", "info"] },
|
|
170
|
+
"description": { "type": "string" }
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
174
|
}
|