@agent-phonon/protocol 0.2.0 → 0.2.3

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/package.json +1 -1
  2. package/dist/json-schema/_index.json +0 -3794
  3. package/dist/json-schema/connect.hello.json +0 -117
  4. package/dist/json-schema/discovery.changed.json +0 -190
  5. package/dist/json-schema/discovery.get.json +0 -183
  6. package/dist/json-schema/discovery.list.json +0 -182
  7. package/dist/json-schema/document.prepare_upload.json +0 -96
  8. package/dist/json-schema/document.send.json +0 -165
  9. package/dist/json-schema/hook.fired.json +0 -100
  10. package/dist/json-schema/hook.resolve.json +0 -96
  11. package/dist/json-schema/interaction.cancel.json +0 -48
  12. package/dist/json-schema/interaction.request.json +0 -376
  13. package/dist/json-schema/interaction.response.json +0 -68
  14. package/dist/json-schema/project.create.json +0 -89
  15. package/dist/json-schema/project.get.json +0 -76
  16. package/dist/json-schema/project.git.deleteBranch.json +0 -64
  17. package/dist/json-schema/project.list.json +0 -72
  18. package/dist/json-schema/project.remove.json +0 -69
  19. package/dist/json-schema/project.worktree.create.json +0 -88
  20. package/dist/json-schema/project.worktree.list.json +0 -77
  21. package/dist/json-schema/project.worktree.remove.json +0 -61
  22. package/dist/json-schema/session.compress.json +0 -72
  23. package/dist/json-schema/session.create.json +0 -128
  24. package/dist/json-schema/session.inject.json +0 -72
  25. package/dist/json-schema/session.interrupt.json +0 -58
  26. package/dist/json-schema/session.list.json +0 -127
  27. package/dist/json-schema/session.send.json +0 -132
  28. package/dist/json-schema/session.status.json +0 -94
  29. package/dist/json-schema/session.switchModel.json +0 -73
  30. package/dist/json-schema/session.terminate.json +0 -54
  31. package/dist/json-schema/skill.install.json +0 -171
  32. package/dist/json-schema/skill.list.json +0 -101
  33. package/dist/json-schema/skill.uninstall.json +0 -76
  34. package/dist/json-schema/stream.ack.json +0 -36
  35. package/dist/json-schema/stream.event.json +0 -381
@@ -1,117 +0,0 @@
1
- {
2
- "direction": "p2s",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/connect.hello.params",
6
- "definitions": {
7
- "connect.hello.params": {
8
- "type": "object",
9
- "properties": {
10
- "protocolVersion": {
11
- "type": "string"
12
- },
13
- "deviceId": {
14
- "type": "string",
15
- "minLength": 1
16
- },
17
- "phononVersion": {
18
- "type": "string"
19
- },
20
- "features": {
21
- "type": "array",
22
- "items": {
23
- "type": "string"
24
- },
25
- "default": []
26
- },
27
- "resumeFrom": {
28
- "type": "array",
29
- "items": {
30
- "type": "object",
31
- "properties": {
32
- "sessionId": {
33
- "type": "string"
34
- },
35
- "fromSeq": {
36
- "type": "integer",
37
- "minimum": 0
38
- }
39
- },
40
- "required": [
41
- "sessionId",
42
- "fromSeq"
43
- ],
44
- "additionalProperties": false
45
- }
46
- },
47
- "at": {
48
- "type": "string",
49
- "format": "date-time"
50
- }
51
- },
52
- "required": [
53
- "protocolVersion",
54
- "deviceId",
55
- "at"
56
- ],
57
- "additionalProperties": false
58
- }
59
- },
60
- "$schema": "http://json-schema.org/draft-07/schema#"
61
- },
62
- "result": {
63
- "$ref": "#/definitions/connect.hello.result",
64
- "definitions": {
65
- "connect.hello.result": {
66
- "type": "object",
67
- "properties": {
68
- "protocolVersion": {
69
- "type": "string"
70
- },
71
- "tenantId": {
72
- "type": "string",
73
- "minLength": 1
74
- },
75
- "features": {
76
- "type": "array",
77
- "items": {
78
- "type": "string"
79
- },
80
- "default": []
81
- },
82
- "ackedSeqs": {
83
- "type": "array",
84
- "items": {
85
- "type": "object",
86
- "properties": {
87
- "sessionId": {
88
- "type": "string"
89
- },
90
- "lastSeq": {
91
- "type": "integer",
92
- "minimum": 0
93
- }
94
- },
95
- "required": [
96
- "sessionId",
97
- "lastSeq"
98
- ],
99
- "additionalProperties": false
100
- }
101
- },
102
- "at": {
103
- "type": "string",
104
- "format": "date-time"
105
- }
106
- },
107
- "required": [
108
- "protocolVersion",
109
- "tenantId",
110
- "at"
111
- ],
112
- "additionalProperties": false
113
- }
114
- },
115
- "$schema": "http://json-schema.org/draft-07/schema#"
116
- }
117
- }
@@ -1,190 +0,0 @@
1
- {
2
- "direction": "p2s",
3
- "kind": "notification",
4
- "params": {
5
- "$ref": "#/definitions/discovery.changed.params",
6
- "definitions": {
7
- "discovery.changed.params": {
8
- "type": "object",
9
- "properties": {
10
- "kind": {
11
- "type": "string",
12
- "enum": [
13
- "agent_added",
14
- "agent_removed",
15
- "agent_updated",
16
- "models_changed"
17
- ]
18
- },
19
- "agentId": {
20
- "type": "string",
21
- "minLength": 1
22
- },
23
- "snapshot": {
24
- "type": "object",
25
- "properties": {
26
- "agentId": {
27
- "$ref": "#/definitions/discovery.changed.params/properties/agentId"
28
- },
29
- "displayName": {
30
- "type": "string",
31
- "minLength": 1
32
- },
33
- "adapter": {
34
- "type": "string",
35
- "minLength": 1
36
- },
37
- "available": {
38
- "type": "boolean"
39
- },
40
- "unavailableReason": {
41
- "type": "string"
42
- },
43
- "version": {
44
- "type": "string"
45
- },
46
- "models": {
47
- "type": "array",
48
- "items": {
49
- "type": "object",
50
- "properties": {
51
- "id": {
52
- "type": "string",
53
- "minLength": 1
54
- },
55
- "displayName": {
56
- "type": "string"
57
- },
58
- "contextWindow": {
59
- "type": "integer",
60
- "exclusiveMinimum": 0
61
- },
62
- "available": {
63
- "type": "boolean",
64
- "default": true
65
- }
66
- },
67
- "required": [
68
- "id"
69
- ],
70
- "additionalProperties": false
71
- }
72
- },
73
- "capabilities": {
74
- "type": "object",
75
- "properties": {
76
- "nativeSession": {
77
- "type": "boolean"
78
- },
79
- "nativeCompression": {
80
- "type": "boolean"
81
- },
82
- "contextInjection": {
83
- "type": "boolean"
84
- },
85
- "proactiveOutput": {
86
- "type": "boolean"
87
- },
88
- "modelSwitch": {
89
- "type": "boolean"
90
- },
91
- "interrupt": {
92
- "type": "boolean"
93
- },
94
- "injectMidTurn": {
95
- "type": "boolean"
96
- },
97
- "skillManagement": {
98
- "type": "boolean"
99
- },
100
- "hooks": {
101
- "type": "array",
102
- "items": {
103
- "type": "string",
104
- "enum": [
105
- "pre_tool",
106
- "post_tool",
107
- "pre_command",
108
- "pre_file_write",
109
- "pre_network",
110
- "session_start",
111
- "session_end",
112
- "notification"
113
- ]
114
- }
115
- },
116
- "streaming": {
117
- "type": "boolean"
118
- },
119
- "limits": {
120
- "type": "object",
121
- "properties": {
122
- "maxConcurrentSessions": {
123
- "type": "integer",
124
- "exclusiveMinimum": 0
125
- },
126
- "maxContextTokens": {
127
- "type": "integer",
128
- "exclusiveMinimum": 0
129
- },
130
- "maxMessageBytes": {
131
- "type": "integer",
132
- "exclusiveMinimum": 0
133
- }
134
- },
135
- "additionalProperties": false
136
- }
137
- },
138
- "required": [
139
- "nativeSession",
140
- "nativeCompression",
141
- "contextInjection",
142
- "proactiveOutput",
143
- "modelSwitch",
144
- "interrupt",
145
- "injectMidTurn",
146
- "skillManagement",
147
- "hooks",
148
- "streaming"
149
- ],
150
- "additionalProperties": false
151
- },
152
- "scannedAt": {
153
- "type": "string",
154
- "format": "date-time"
155
- }
156
- },
157
- "required": [
158
- "agentId",
159
- "displayName",
160
- "adapter",
161
- "available",
162
- "models",
163
- "capabilities"
164
- ],
165
- "additionalProperties": false
166
- },
167
- "at": {
168
- "$ref": "#/definitions/discovery.changed.params/properties/snapshot/properties/scannedAt"
169
- }
170
- },
171
- "required": [
172
- "kind",
173
- "agentId",
174
- "at"
175
- ],
176
- "additionalProperties": false
177
- }
178
- },
179
- "$schema": "http://json-schema.org/draft-07/schema#"
180
- },
181
- "result": {
182
- "$ref": "#/definitions/discovery.changed.result",
183
- "definitions": {
184
- "discovery.changed.result": {
185
- "not": {}
186
- }
187
- },
188
- "$schema": "http://json-schema.org/draft-07/schema#"
189
- }
190
- }
@@ -1,183 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/discovery.get.params",
6
- "definitions": {
7
- "discovery.get.params": {
8
- "type": "object",
9
- "properties": {
10
- "agentId": {
11
- "type": "string",
12
- "minLength": 1
13
- }
14
- },
15
- "required": [
16
- "agentId"
17
- ],
18
- "additionalProperties": false
19
- }
20
- },
21
- "$schema": "http://json-schema.org/draft-07/schema#"
22
- },
23
- "result": {
24
- "$ref": "#/definitions/discovery.get.result",
25
- "definitions": {
26
- "discovery.get.result": {
27
- "type": "object",
28
- "properties": {
29
- "agent": {
30
- "type": "object",
31
- "properties": {
32
- "agentId": {
33
- "type": "string",
34
- "minLength": 1
35
- },
36
- "displayName": {
37
- "type": "string",
38
- "minLength": 1
39
- },
40
- "adapter": {
41
- "type": "string",
42
- "minLength": 1
43
- },
44
- "available": {
45
- "type": "boolean"
46
- },
47
- "unavailableReason": {
48
- "type": "string"
49
- },
50
- "version": {
51
- "type": "string"
52
- },
53
- "models": {
54
- "type": "array",
55
- "items": {
56
- "type": "object",
57
- "properties": {
58
- "id": {
59
- "type": "string",
60
- "minLength": 1
61
- },
62
- "displayName": {
63
- "type": "string"
64
- },
65
- "contextWindow": {
66
- "type": "integer",
67
- "exclusiveMinimum": 0
68
- },
69
- "available": {
70
- "type": "boolean",
71
- "default": true
72
- }
73
- },
74
- "required": [
75
- "id"
76
- ],
77
- "additionalProperties": false
78
- }
79
- },
80
- "capabilities": {
81
- "type": "object",
82
- "properties": {
83
- "nativeSession": {
84
- "type": "boolean"
85
- },
86
- "nativeCompression": {
87
- "type": "boolean"
88
- },
89
- "contextInjection": {
90
- "type": "boolean"
91
- },
92
- "proactiveOutput": {
93
- "type": "boolean"
94
- },
95
- "modelSwitch": {
96
- "type": "boolean"
97
- },
98
- "interrupt": {
99
- "type": "boolean"
100
- },
101
- "injectMidTurn": {
102
- "type": "boolean"
103
- },
104
- "skillManagement": {
105
- "type": "boolean"
106
- },
107
- "hooks": {
108
- "type": "array",
109
- "items": {
110
- "type": "string",
111
- "enum": [
112
- "pre_tool",
113
- "post_tool",
114
- "pre_command",
115
- "pre_file_write",
116
- "pre_network",
117
- "session_start",
118
- "session_end",
119
- "notification"
120
- ]
121
- }
122
- },
123
- "streaming": {
124
- "type": "boolean"
125
- },
126
- "limits": {
127
- "type": "object",
128
- "properties": {
129
- "maxConcurrentSessions": {
130
- "type": "integer",
131
- "exclusiveMinimum": 0
132
- },
133
- "maxContextTokens": {
134
- "type": "integer",
135
- "exclusiveMinimum": 0
136
- },
137
- "maxMessageBytes": {
138
- "type": "integer",
139
- "exclusiveMinimum": 0
140
- }
141
- },
142
- "additionalProperties": false
143
- }
144
- },
145
- "required": [
146
- "nativeSession",
147
- "nativeCompression",
148
- "contextInjection",
149
- "proactiveOutput",
150
- "modelSwitch",
151
- "interrupt",
152
- "injectMidTurn",
153
- "skillManagement",
154
- "hooks",
155
- "streaming"
156
- ],
157
- "additionalProperties": false
158
- },
159
- "scannedAt": {
160
- "type": "string",
161
- "format": "date-time"
162
- }
163
- },
164
- "required": [
165
- "agentId",
166
- "displayName",
167
- "adapter",
168
- "available",
169
- "models",
170
- "capabilities"
171
- ],
172
- "additionalProperties": false
173
- }
174
- },
175
- "required": [
176
- "agent"
177
- ],
178
- "additionalProperties": false
179
- }
180
- },
181
- "$schema": "http://json-schema.org/draft-07/schema#"
182
- }
183
- }
@@ -1,182 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/discovery.list.params",
6
- "definitions": {
7
- "discovery.list.params": {
8
- "type": "object",
9
- "properties": {
10
- "availableOnly": {
11
- "type": "boolean"
12
- }
13
- },
14
- "additionalProperties": false
15
- }
16
- },
17
- "$schema": "http://json-schema.org/draft-07/schema#"
18
- },
19
- "result": {
20
- "$ref": "#/definitions/discovery.list.result",
21
- "definitions": {
22
- "discovery.list.result": {
23
- "type": "object",
24
- "properties": {
25
- "agents": {
26
- "type": "array",
27
- "items": {
28
- "type": "object",
29
- "properties": {
30
- "agentId": {
31
- "type": "string",
32
- "minLength": 1
33
- },
34
- "displayName": {
35
- "type": "string",
36
- "minLength": 1
37
- },
38
- "adapter": {
39
- "type": "string",
40
- "minLength": 1
41
- },
42
- "available": {
43
- "type": "boolean"
44
- },
45
- "unavailableReason": {
46
- "type": "string"
47
- },
48
- "version": {
49
- "type": "string"
50
- },
51
- "models": {
52
- "type": "array",
53
- "items": {
54
- "type": "object",
55
- "properties": {
56
- "id": {
57
- "type": "string",
58
- "minLength": 1
59
- },
60
- "displayName": {
61
- "type": "string"
62
- },
63
- "contextWindow": {
64
- "type": "integer",
65
- "exclusiveMinimum": 0
66
- },
67
- "available": {
68
- "type": "boolean",
69
- "default": true
70
- }
71
- },
72
- "required": [
73
- "id"
74
- ],
75
- "additionalProperties": false
76
- }
77
- },
78
- "capabilities": {
79
- "type": "object",
80
- "properties": {
81
- "nativeSession": {
82
- "type": "boolean"
83
- },
84
- "nativeCompression": {
85
- "type": "boolean"
86
- },
87
- "contextInjection": {
88
- "type": "boolean"
89
- },
90
- "proactiveOutput": {
91
- "type": "boolean"
92
- },
93
- "modelSwitch": {
94
- "type": "boolean"
95
- },
96
- "interrupt": {
97
- "type": "boolean"
98
- },
99
- "injectMidTurn": {
100
- "type": "boolean"
101
- },
102
- "skillManagement": {
103
- "type": "boolean"
104
- },
105
- "hooks": {
106
- "type": "array",
107
- "items": {
108
- "type": "string",
109
- "enum": [
110
- "pre_tool",
111
- "post_tool",
112
- "pre_command",
113
- "pre_file_write",
114
- "pre_network",
115
- "session_start",
116
- "session_end",
117
- "notification"
118
- ]
119
- }
120
- },
121
- "streaming": {
122
- "type": "boolean"
123
- },
124
- "limits": {
125
- "type": "object",
126
- "properties": {
127
- "maxConcurrentSessions": {
128
- "type": "integer",
129
- "exclusiveMinimum": 0
130
- },
131
- "maxContextTokens": {
132
- "type": "integer",
133
- "exclusiveMinimum": 0
134
- },
135
- "maxMessageBytes": {
136
- "type": "integer",
137
- "exclusiveMinimum": 0
138
- }
139
- },
140
- "additionalProperties": false
141
- }
142
- },
143
- "required": [
144
- "nativeSession",
145
- "nativeCompression",
146
- "contextInjection",
147
- "proactiveOutput",
148
- "modelSwitch",
149
- "interrupt",
150
- "injectMidTurn",
151
- "skillManagement",
152
- "hooks",
153
- "streaming"
154
- ],
155
- "additionalProperties": false
156
- },
157
- "scannedAt": {
158
- "type": "string",
159
- "format": "date-time"
160
- }
161
- },
162
- "required": [
163
- "agentId",
164
- "displayName",
165
- "adapter",
166
- "available",
167
- "models",
168
- "capabilities"
169
- ],
170
- "additionalProperties": false
171
- }
172
- }
173
- },
174
- "required": [
175
- "agents"
176
- ],
177
- "additionalProperties": false
178
- }
179
- },
180
- "$schema": "http://json-schema.org/draft-07/schema#"
181
- }
182
- }