@agent-phonon/protocol 0.2.0 → 0.2.2
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 +1 -1
- package/dist/json-schema/_index.json +0 -3794
- package/dist/json-schema/connect.hello.json +0 -117
- package/dist/json-schema/discovery.changed.json +0 -190
- package/dist/json-schema/discovery.get.json +0 -183
- package/dist/json-schema/discovery.list.json +0 -182
- package/dist/json-schema/document.prepare_upload.json +0 -96
- package/dist/json-schema/document.send.json +0 -165
- package/dist/json-schema/hook.fired.json +0 -100
- package/dist/json-schema/hook.resolve.json +0 -96
- package/dist/json-schema/interaction.cancel.json +0 -48
- package/dist/json-schema/interaction.request.json +0 -376
- package/dist/json-schema/interaction.response.json +0 -68
- package/dist/json-schema/project.create.json +0 -89
- package/dist/json-schema/project.get.json +0 -76
- package/dist/json-schema/project.git.deleteBranch.json +0 -64
- package/dist/json-schema/project.list.json +0 -72
- package/dist/json-schema/project.remove.json +0 -69
- package/dist/json-schema/project.worktree.create.json +0 -88
- package/dist/json-schema/project.worktree.list.json +0 -77
- package/dist/json-schema/project.worktree.remove.json +0 -61
- package/dist/json-schema/session.compress.json +0 -72
- package/dist/json-schema/session.create.json +0 -128
- package/dist/json-schema/session.inject.json +0 -72
- package/dist/json-schema/session.interrupt.json +0 -58
- package/dist/json-schema/session.list.json +0 -127
- package/dist/json-schema/session.send.json +0 -132
- package/dist/json-schema/session.status.json +0 -94
- package/dist/json-schema/session.switchModel.json +0 -73
- package/dist/json-schema/session.terminate.json +0 -54
- package/dist/json-schema/skill.install.json +0 -171
- package/dist/json-schema/skill.list.json +0 -101
- package/dist/json-schema/skill.uninstall.json +0 -76
- package/dist/json-schema/stream.ack.json +0 -36
- package/dist/json-schema/stream.event.json +0 -381
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"direction": "p2s",
|
|
3
|
-
"kind": "request",
|
|
4
|
-
"params": {
|
|
5
|
-
"$ref": "#/definitions/document.prepare_upload.params",
|
|
6
|
-
"definitions": {
|
|
7
|
-
"document.prepare_upload.params": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"properties": {
|
|
10
|
-
"sessionId": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1
|
|
13
|
-
},
|
|
14
|
-
"turnId": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"filename": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"minLength": 1
|
|
20
|
-
},
|
|
21
|
-
"sizeBytes": {
|
|
22
|
-
"type": "integer",
|
|
23
|
-
"minimum": 0
|
|
24
|
-
},
|
|
25
|
-
"mimeType": {
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
"sha256": {
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
"kind": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"enum": [
|
|
34
|
-
"attachment",
|
|
35
|
-
"document",
|
|
36
|
-
"image",
|
|
37
|
-
"file"
|
|
38
|
-
],
|
|
39
|
-
"default": "file"
|
|
40
|
-
},
|
|
41
|
-
"at": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"format": "date-time"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"required": [
|
|
47
|
-
"filename",
|
|
48
|
-
"sizeBytes",
|
|
49
|
-
"at"
|
|
50
|
-
],
|
|
51
|
-
"additionalProperties": false
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
55
|
-
},
|
|
56
|
-
"result": {
|
|
57
|
-
"$ref": "#/definitions/document.prepare_upload.result",
|
|
58
|
-
"definitions": {
|
|
59
|
-
"document.prepare_upload.result": {
|
|
60
|
-
"type": "object",
|
|
61
|
-
"properties": {
|
|
62
|
-
"uploadRef": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
"uploadUrl": {
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
"method": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"enum": [
|
|
71
|
-
"PUT",
|
|
72
|
-
"POST"
|
|
73
|
-
],
|
|
74
|
-
"default": "PUT"
|
|
75
|
-
},
|
|
76
|
-
"headers": {
|
|
77
|
-
"type": "object",
|
|
78
|
-
"additionalProperties": {
|
|
79
|
-
"type": "string"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"expiresAt": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"format": "date-time"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"required": [
|
|
88
|
-
"uploadRef",
|
|
89
|
-
"uploadUrl"
|
|
90
|
-
],
|
|
91
|
-
"additionalProperties": false
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"direction": "p2s",
|
|
3
|
-
"kind": "request",
|
|
4
|
-
"params": {
|
|
5
|
-
"$ref": "#/definitions/document.send.params",
|
|
6
|
-
"definitions": {
|
|
7
|
-
"document.send.params": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"properties": {
|
|
10
|
-
"sessionId": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1
|
|
13
|
-
},
|
|
14
|
-
"turnId": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"documents": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"items": {
|
|
20
|
-
"type": "object",
|
|
21
|
-
"properties": {
|
|
22
|
-
"name": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"minLength": 1
|
|
25
|
-
},
|
|
26
|
-
"relativePath": {
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
"mimeType": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"kind": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"enum": [
|
|
35
|
-
"attachment",
|
|
36
|
-
"document",
|
|
37
|
-
"image",
|
|
38
|
-
"file"
|
|
39
|
-
],
|
|
40
|
-
"default": "file"
|
|
41
|
-
},
|
|
42
|
-
"caption": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
"sizeBytes": {
|
|
46
|
-
"type": "integer",
|
|
47
|
-
"minimum": 0
|
|
48
|
-
},
|
|
49
|
-
"sha256": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"content": {
|
|
53
|
-
"anyOf": [
|
|
54
|
-
{
|
|
55
|
-
"type": "object",
|
|
56
|
-
"properties": {
|
|
57
|
-
"encoding": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"const": "base64"
|
|
60
|
-
},
|
|
61
|
-
"data": {
|
|
62
|
-
"type": "string"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"required": [
|
|
66
|
-
"encoding",
|
|
67
|
-
"data"
|
|
68
|
-
],
|
|
69
|
-
"additionalProperties": false
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"type": "object",
|
|
73
|
-
"properties": {
|
|
74
|
-
"encoding": {
|
|
75
|
-
"type": "string",
|
|
76
|
-
"const": "utf8"
|
|
77
|
-
},
|
|
78
|
-
"data": {
|
|
79
|
-
"type": "string"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"required": [
|
|
83
|
-
"encoding",
|
|
84
|
-
"data"
|
|
85
|
-
],
|
|
86
|
-
"additionalProperties": false
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"type": "object",
|
|
90
|
-
"properties": {
|
|
91
|
-
"ref": {
|
|
92
|
-
"type": "string"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"required": [
|
|
96
|
-
"ref"
|
|
97
|
-
],
|
|
98
|
-
"additionalProperties": false
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"required": [
|
|
104
|
-
"name",
|
|
105
|
-
"content"
|
|
106
|
-
],
|
|
107
|
-
"additionalProperties": false
|
|
108
|
-
},
|
|
109
|
-
"minItems": 1
|
|
110
|
-
},
|
|
111
|
-
"at": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"format": "date-time"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"required": [
|
|
117
|
-
"documents",
|
|
118
|
-
"at"
|
|
119
|
-
],
|
|
120
|
-
"additionalProperties": false
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
124
|
-
},
|
|
125
|
-
"result": {
|
|
126
|
-
"$ref": "#/definitions/document.send.result",
|
|
127
|
-
"definitions": {
|
|
128
|
-
"document.send.result": {
|
|
129
|
-
"type": "object",
|
|
130
|
-
"properties": {
|
|
131
|
-
"delivered": {
|
|
132
|
-
"type": "array",
|
|
133
|
-
"items": {
|
|
134
|
-
"type": "object",
|
|
135
|
-
"properties": {
|
|
136
|
-
"name": {
|
|
137
|
-
"type": "string"
|
|
138
|
-
},
|
|
139
|
-
"ok": {
|
|
140
|
-
"type": "boolean"
|
|
141
|
-
},
|
|
142
|
-
"serverRef": {
|
|
143
|
-
"type": "string"
|
|
144
|
-
},
|
|
145
|
-
"error": {
|
|
146
|
-
"type": "string"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"required": [
|
|
150
|
-
"name",
|
|
151
|
-
"ok"
|
|
152
|
-
],
|
|
153
|
-
"additionalProperties": false
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"required": [
|
|
158
|
-
"delivered"
|
|
159
|
-
],
|
|
160
|
-
"additionalProperties": false
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"direction": "p2s",
|
|
3
|
-
"kind": "request",
|
|
4
|
-
"params": {
|
|
5
|
-
"$ref": "#/definitions/hook.fired.params",
|
|
6
|
-
"definitions": {
|
|
7
|
-
"hook.fired.params": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"properties": {
|
|
10
|
-
"sessionId": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1
|
|
13
|
-
},
|
|
14
|
-
"hookId": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"minLength": 1
|
|
17
|
-
},
|
|
18
|
-
"hookType": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": [
|
|
21
|
-
"pre_tool",
|
|
22
|
-
"post_tool",
|
|
23
|
-
"pre_command",
|
|
24
|
-
"pre_file_write",
|
|
25
|
-
"pre_network",
|
|
26
|
-
"session_start",
|
|
27
|
-
"session_end",
|
|
28
|
-
"notification"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"payload": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"properties": {
|
|
34
|
-
"toolName": {
|
|
35
|
-
"type": "string"
|
|
36
|
-
},
|
|
37
|
-
"command": {
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
"filePath": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
"url": {
|
|
44
|
-
"type": "string"
|
|
45
|
-
},
|
|
46
|
-
"extra": {
|
|
47
|
-
"type": "object",
|
|
48
|
-
"additionalProperties": {}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"additionalProperties": false,
|
|
52
|
-
"default": {}
|
|
53
|
-
},
|
|
54
|
-
"turnId": {
|
|
55
|
-
"type": "string"
|
|
56
|
-
},
|
|
57
|
-
"at": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"format": "date-time"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"required": [
|
|
63
|
-
"sessionId",
|
|
64
|
-
"hookId",
|
|
65
|
-
"hookType",
|
|
66
|
-
"at"
|
|
67
|
-
],
|
|
68
|
-
"additionalProperties": false
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
72
|
-
},
|
|
73
|
-
"result": {
|
|
74
|
-
"$ref": "#/definitions/hook.fired.result",
|
|
75
|
-
"definitions": {
|
|
76
|
-
"hook.fired.result": {
|
|
77
|
-
"type": "object",
|
|
78
|
-
"properties": {
|
|
79
|
-
"sessionId": {
|
|
80
|
-
"type": "string",
|
|
81
|
-
"minLength": 1
|
|
82
|
-
},
|
|
83
|
-
"hookId": {
|
|
84
|
-
"type": "string"
|
|
85
|
-
},
|
|
86
|
-
"applied": {
|
|
87
|
-
"type": "boolean"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"required": [
|
|
91
|
-
"sessionId",
|
|
92
|
-
"hookId",
|
|
93
|
-
"applied"
|
|
94
|
-
],
|
|
95
|
-
"additionalProperties": false
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"direction": "s2p",
|
|
3
|
-
"kind": "request",
|
|
4
|
-
"params": {
|
|
5
|
-
"$ref": "#/definitions/hook.resolve.params",
|
|
6
|
-
"definitions": {
|
|
7
|
-
"hook.resolve.params": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"properties": {
|
|
10
|
-
"sessionId": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1
|
|
13
|
-
},
|
|
14
|
-
"hookId": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"minLength": 1
|
|
17
|
-
},
|
|
18
|
-
"action": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": [
|
|
21
|
-
"continue",
|
|
22
|
-
"inject",
|
|
23
|
-
"modify",
|
|
24
|
-
"abort"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"context": {
|
|
28
|
-
"type": "array",
|
|
29
|
-
"items": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"properties": {
|
|
32
|
-
"role": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"enum": [
|
|
35
|
-
"system",
|
|
36
|
-
"user",
|
|
37
|
-
"assistant"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
"content": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"required": [
|
|
45
|
-
"role",
|
|
46
|
-
"content"
|
|
47
|
-
],
|
|
48
|
-
"additionalProperties": false
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"patch": {
|
|
52
|
-
"type": "object",
|
|
53
|
-
"additionalProperties": {}
|
|
54
|
-
},
|
|
55
|
-
"reason": {
|
|
56
|
-
"type": "string"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": [
|
|
60
|
-
"sessionId",
|
|
61
|
-
"hookId",
|
|
62
|
-
"action"
|
|
63
|
-
],
|
|
64
|
-
"additionalProperties": false
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
68
|
-
},
|
|
69
|
-
"result": {
|
|
70
|
-
"$ref": "#/definitions/hook.resolve.result",
|
|
71
|
-
"definitions": {
|
|
72
|
-
"hook.resolve.result": {
|
|
73
|
-
"type": "object",
|
|
74
|
-
"properties": {
|
|
75
|
-
"sessionId": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"minLength": 1
|
|
78
|
-
},
|
|
79
|
-
"hookId": {
|
|
80
|
-
"type": "string"
|
|
81
|
-
},
|
|
82
|
-
"applied": {
|
|
83
|
-
"type": "boolean"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"required": [
|
|
87
|
-
"sessionId",
|
|
88
|
-
"hookId",
|
|
89
|
-
"applied"
|
|
90
|
-
],
|
|
91
|
-
"additionalProperties": false
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"direction": "s2p",
|
|
3
|
-
"kind": "request",
|
|
4
|
-
"params": {
|
|
5
|
-
"$ref": "#/definitions/interaction.cancel.params",
|
|
6
|
-
"definitions": {
|
|
7
|
-
"interaction.cancel.params": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"properties": {
|
|
10
|
-
"requestId": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1
|
|
13
|
-
},
|
|
14
|
-
"reason": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"required": [
|
|
19
|
-
"requestId"
|
|
20
|
-
],
|
|
21
|
-
"additionalProperties": false
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
25
|
-
},
|
|
26
|
-
"result": {
|
|
27
|
-
"$ref": "#/definitions/interaction.cancel.result",
|
|
28
|
-
"definitions": {
|
|
29
|
-
"interaction.cancel.result": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"properties": {
|
|
32
|
-
"requestId": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
|
-
"cancelled": {
|
|
36
|
-
"type": "boolean"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"required": [
|
|
40
|
-
"requestId",
|
|
41
|
-
"cancelled"
|
|
42
|
-
],
|
|
43
|
-
"additionalProperties": false
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
47
|
-
}
|
|
48
|
-
}
|