omp-channel 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-channel",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Oh My Pi extension that delivers messages from an external console into an agent session and sends replies back.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -64,9 +64,9 @@
64
64
  "devDependencies": {
65
65
  "@biomejs/biome": "^2.6.9",
66
66
  "@oh-my-pi/pi-coding-agent": "19.2.1",
67
- "@types/node": "^20.19.43",
67
+ "@types/node": "^26.6.6",
68
68
  "tsx": "^4.23.15",
69
- "typescript": "^5.9.3"
69
+ "typescript": "^7.0.2"
70
70
  },
71
71
  "dependencies": {
72
72
  "ajv": "^8.20.0"
@@ -62,6 +62,11 @@
62
62
  "type": "string",
63
63
  "pattern": "^/",
64
64
  "default": "/status"
65
+ },
66
+ "failures": {
67
+ "type": "string",
68
+ "pattern": "^/",
69
+ "default": "/failures"
65
70
  }
66
71
  },
67
72
  "default": {}
@@ -131,6 +136,32 @@
131
136
  },
132
137
  "default": {}
133
138
  },
139
+ "failures": {
140
+ "description": "Reports of turns that ended in an error and left a message unanswered.",
141
+ "type": "object",
142
+ "additionalProperties": false,
143
+ "properties": {
144
+ "includeReason": {
145
+ "description": "Send the error text, with secrets hidden, to the service.",
146
+ "type": "boolean",
147
+ "default": true
148
+ }
149
+ },
150
+ "default": {}
151
+ },
152
+ "replies": {
153
+ "description": "How a message gets its reply when the model does not use the reply tool.",
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "properties": {
157
+ "fromFinalText": {
158
+ "description": "Send the final text of the model, with secrets hidden, as the reply.",
159
+ "type": "boolean",
160
+ "default": true
161
+ }
162
+ },
163
+ "default": {}
164
+ },
134
165
  "adapterModule": {
135
166
  "description": "Path (relative to the working directory) of a JavaScript module whose default export implements ChannelAdapter. Replaces the HTTP service transport.",
136
167
  "type": "string",
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://example.com/omp-channel/schema/failure.schema.json",
4
+ "title": "Failed turn (agent to service)",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["type", "conversationId", "messageId", "replyTo", "at"],
8
+ "properties": {
9
+ "type": { "const": "failure" },
10
+ "conversationId": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 128,
14
+ "pattern": "^[A-Za-z0-9._:-]+$"
15
+ },
16
+ "messageId": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 128,
20
+ "pattern": "^[A-Za-z0-9._:-]+$"
21
+ },
22
+ "replyTo": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "maxLength": 128,
26
+ "pattern": "^[A-Za-z0-9._:-]+$"
27
+ },
28
+ "reason": { "type": "string", "minLength": 1, "maxLength": 500 },
29
+ "at": {
30
+ "type": "string",
31
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$"
32
+ }
33
+ }
34
+ }