@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,127 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.list.params",
6
- "definitions": {
7
- "session.list.params": {
8
- "type": "object",
9
- "properties": {
10
- "project": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "agent": {
15
- "type": "string",
16
- "minLength": 1
17
- },
18
- "status": {
19
- "type": "string",
20
- "enum": [
21
- "idle",
22
- "running",
23
- "paused",
24
- "terminated"
25
- ]
26
- },
27
- "limit": {
28
- "type": "integer",
29
- "exclusiveMinimum": 0,
30
- "maximum": 500
31
- },
32
- "cursor": {
33
- "type": "string"
34
- }
35
- },
36
- "additionalProperties": false
37
- }
38
- },
39
- "$schema": "http://json-schema.org/draft-07/schema#"
40
- },
41
- "result": {
42
- "$ref": "#/definitions/session.list.result",
43
- "definitions": {
44
- "session.list.result": {
45
- "type": "object",
46
- "properties": {
47
- "sessions": {
48
- "type": "array",
49
- "items": {
50
- "type": "object",
51
- "properties": {
52
- "sessionId": {
53
- "type": "string",
54
- "minLength": 1
55
- },
56
- "project": {
57
- "type": "string",
58
- "minLength": 1
59
- },
60
- "agent": {
61
- "type": "string",
62
- "minLength": 1
63
- },
64
- "model": {
65
- "type": "string"
66
- },
67
- "status": {
68
- "type": "string",
69
- "enum": [
70
- "idle",
71
- "running",
72
- "paused",
73
- "terminated"
74
- ]
75
- },
76
- "currentTurnId": {
77
- "type": "string"
78
- },
79
- "queuedCount": {
80
- "type": "integer",
81
- "minimum": 0
82
- },
83
- "verbosity": {
84
- "type": "string",
85
- "enum": [
86
- "final",
87
- "messages",
88
- "tools",
89
- "trace"
90
- ]
91
- },
92
- "clientTag": {
93
- "type": "string"
94
- },
95
- "createdAt": {
96
- "type": "string",
97
- "format": "date-time"
98
- },
99
- "lastActiveAt": {
100
- "$ref": "#/definitions/session.list.result/properties/sessions/items/properties/createdAt"
101
- }
102
- },
103
- "required": [
104
- "sessionId",
105
- "project",
106
- "agent",
107
- "model",
108
- "status",
109
- "verbosity",
110
- "createdAt"
111
- ],
112
- "additionalProperties": false
113
- }
114
- },
115
- "nextCursor": {
116
- "type": "string"
117
- }
118
- },
119
- "required": [
120
- "sessions"
121
- ],
122
- "additionalProperties": false
123
- }
124
- },
125
- "$schema": "http://json-schema.org/draft-07/schema#"
126
- }
127
- }
@@ -1,132 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.send.params",
6
- "definitions": {
7
- "session.send.params": {
8
- "type": "object",
9
- "properties": {
10
- "sessionId": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "input": {
15
- "type": "string"
16
- },
17
- "clientRequestId": {
18
- "type": "string"
19
- },
20
- "skills": {
21
- "type": "array",
22
- "items": {
23
- "anyOf": [
24
- {
25
- "type": "string"
26
- },
27
- {
28
- "type": "object",
29
- "properties": {
30
- "name": {
31
- "type": "string",
32
- "minLength": 1
33
- },
34
- "version": {
35
- "type": "string"
36
- },
37
- "scope": {
38
- "type": "string",
39
- "enum": [
40
- "global",
41
- "project"
42
- ]
43
- },
44
- "force": {
45
- "type": "boolean"
46
- }
47
- },
48
- "required": [
49
- "name"
50
- ],
51
- "additionalProperties": false
52
- }
53
- ]
54
- }
55
- },
56
- "verbosity": {
57
- "type": "string",
58
- "enum": [
59
- "final",
60
- "messages",
61
- "tools",
62
- "trace"
63
- ]
64
- },
65
- "whenBusy": {
66
- "type": "string",
67
- "enum": [
68
- "queue",
69
- "interrupt",
70
- "inject"
71
- ],
72
- "default": "queue"
73
- },
74
- "fallback": {
75
- "$ref": "#/definitions/session.send.params/properties/whenBusy"
76
- },
77
- "turnId": {
78
- "type": "string"
79
- }
80
- },
81
- "required": [
82
- "sessionId",
83
- "input"
84
- ],
85
- "additionalProperties": false
86
- }
87
- },
88
- "$schema": "http://json-schema.org/draft-07/schema#"
89
- },
90
- "result": {
91
- "$ref": "#/definitions/session.send.result",
92
- "definitions": {
93
- "session.send.result": {
94
- "type": "object",
95
- "properties": {
96
- "sessionId": {
97
- "type": "string",
98
- "minLength": 1
99
- },
100
- "turnId": {
101
- "type": "string"
102
- },
103
- "accepted": {
104
- "type": "boolean",
105
- "const": true
106
- },
107
- "disposition": {
108
- "type": "string",
109
- "enum": [
110
- "started",
111
- "queued",
112
- "interrupted",
113
- "injected"
114
- ]
115
- },
116
- "queuePosition": {
117
- "type": "integer",
118
- "exclusiveMinimum": 0
119
- }
120
- },
121
- "required": [
122
- "sessionId",
123
- "turnId",
124
- "accepted",
125
- "disposition"
126
- ],
127
- "additionalProperties": false
128
- }
129
- },
130
- "$schema": "http://json-schema.org/draft-07/schema#"
131
- }
132
- }
@@ -1,94 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.status.params",
6
- "definitions": {
7
- "session.status.params": {
8
- "type": "object",
9
- "properties": {
10
- "sessionId": {
11
- "type": "string",
12
- "minLength": 1
13
- }
14
- },
15
- "required": [
16
- "sessionId"
17
- ],
18
- "additionalProperties": false
19
- }
20
- },
21
- "$schema": "http://json-schema.org/draft-07/schema#"
22
- },
23
- "result": {
24
- "$ref": "#/definitions/session.status.result",
25
- "definitions": {
26
- "session.status.result": {
27
- "type": "object",
28
- "properties": {
29
- "sessionId": {
30
- "type": "string",
31
- "minLength": 1
32
- },
33
- "project": {
34
- "type": "string",
35
- "minLength": 1
36
- },
37
- "agent": {
38
- "type": "string",
39
- "minLength": 1
40
- },
41
- "model": {
42
- "type": "string"
43
- },
44
- "status": {
45
- "type": "string",
46
- "enum": [
47
- "idle",
48
- "running",
49
- "paused",
50
- "terminated"
51
- ]
52
- },
53
- "currentTurnId": {
54
- "type": "string"
55
- },
56
- "queuedCount": {
57
- "type": "integer",
58
- "minimum": 0
59
- },
60
- "verbosity": {
61
- "type": "string",
62
- "enum": [
63
- "final",
64
- "messages",
65
- "tools",
66
- "trace"
67
- ]
68
- },
69
- "clientTag": {
70
- "type": "string"
71
- },
72
- "createdAt": {
73
- "type": "string",
74
- "format": "date-time"
75
- },
76
- "lastActiveAt": {
77
- "$ref": "#/definitions/session.status.result/properties/createdAt"
78
- }
79
- },
80
- "required": [
81
- "sessionId",
82
- "project",
83
- "agent",
84
- "model",
85
- "status",
86
- "verbosity",
87
- "createdAt"
88
- ],
89
- "additionalProperties": false
90
- }
91
- },
92
- "$schema": "http://json-schema.org/draft-07/schema#"
93
- }
94
- }
@@ -1,73 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.switchModel.params",
6
- "definitions": {
7
- "session.switchModel.params": {
8
- "type": "object",
9
- "properties": {
10
- "sessionId": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "model": {
15
- "type": "string",
16
- "minLength": 1
17
- },
18
- "whenRunning": {
19
- "type": "string",
20
- "enum": [
21
- "reject",
22
- "afterCurrentTurn",
23
- "interrupt"
24
- ],
25
- "default": "reject"
26
- }
27
- },
28
- "required": [
29
- "sessionId",
30
- "model"
31
- ],
32
- "additionalProperties": false
33
- }
34
- },
35
- "$schema": "http://json-schema.org/draft-07/schema#"
36
- },
37
- "result": {
38
- "$ref": "#/definitions/session.switchModel.result",
39
- "definitions": {
40
- "session.switchModel.result": {
41
- "type": "object",
42
- "properties": {
43
- "sessionId": {
44
- "type": "string",
45
- "minLength": 1
46
- },
47
- "previousModel": {
48
- "type": "string"
49
- },
50
- "model": {
51
- "type": "string"
52
- },
53
- "warnings": {
54
- "type": "array",
55
- "items": {
56
- "type": "string"
57
- }
58
- },
59
- "deferred": {
60
- "type": "boolean"
61
- }
62
- },
63
- "required": [
64
- "sessionId",
65
- "previousModel",
66
- "model"
67
- ],
68
- "additionalProperties": false
69
- }
70
- },
71
- "$schema": "http://json-schema.org/draft-07/schema#"
72
- }
73
- }
@@ -1,54 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.terminate.params",
6
- "definitions": {
7
- "session.terminate.params": {
8
- "type": "object",
9
- "properties": {
10
- "sessionId": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "cleanWorktree": {
15
- "type": "boolean",
16
- "default": false
17
- }
18
- },
19
- "required": [
20
- "sessionId"
21
- ],
22
- "additionalProperties": false
23
- }
24
- },
25
- "$schema": "http://json-schema.org/draft-07/schema#"
26
- },
27
- "result": {
28
- "$ref": "#/definitions/session.terminate.result",
29
- "definitions": {
30
- "session.terminate.result": {
31
- "type": "object",
32
- "properties": {
33
- "sessionId": {
34
- "type": "string",
35
- "minLength": 1
36
- },
37
- "status": {
38
- "type": "string",
39
- "const": "terminated"
40
- },
41
- "cleanedWorktreeId": {
42
- "type": "string"
43
- }
44
- },
45
- "required": [
46
- "sessionId",
47
- "status"
48
- ],
49
- "additionalProperties": false
50
- }
51
- },
52
- "$schema": "http://json-schema.org/draft-07/schema#"
53
- }
54
- }
@@ -1,171 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/skill.install.params",
6
- "definitions": {
7
- "skill.install.params": {
8
- "type": "object",
9
- "properties": {
10
- "agent": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "name": {
15
- "type": "string",
16
- "minLength": 1
17
- },
18
- "scope": {
19
- "type": "string",
20
- "enum": [
21
- "global",
22
- "project"
23
- ]
24
- },
25
- "projectId": {
26
- "type": "string",
27
- "minLength": 1
28
- },
29
- "source": {
30
- "anyOf": [
31
- {
32
- "type": "object",
33
- "properties": {
34
- "kind": {
35
- "type": "string",
36
- "const": "inline"
37
- },
38
- "files": {
39
- "type": "object",
40
- "additionalProperties": {
41
- "type": "string"
42
- }
43
- }
44
- },
45
- "required": [
46
- "kind",
47
- "files"
48
- ],
49
- "additionalProperties": false
50
- },
51
- {
52
- "type": "object",
53
- "properties": {
54
- "kind": {
55
- "type": "string",
56
- "const": "localPath"
57
- },
58
- "path": {
59
- "type": "string",
60
- "minLength": 1
61
- }
62
- },
63
- "required": [
64
- "kind",
65
- "path"
66
- ],
67
- "additionalProperties": false
68
- },
69
- {
70
- "type": "object",
71
- "properties": {
72
- "kind": {
73
- "type": "string",
74
- "const": "url"
75
- },
76
- "url": {
77
- "type": "string",
78
- "minLength": 1
79
- },
80
- "sha256": {
81
- "type": "string"
82
- }
83
- },
84
- "required": [
85
- "kind",
86
- "url"
87
- ],
88
- "additionalProperties": false
89
- }
90
- ]
91
- }
92
- },
93
- "required": [
94
- "agent",
95
- "name",
96
- "scope",
97
- "source"
98
- ],
99
- "additionalProperties": false
100
- }
101
- },
102
- "$schema": "http://json-schema.org/draft-07/schema#"
103
- },
104
- "result": {
105
- "$ref": "#/definitions/skill.install.result",
106
- "definitions": {
107
- "skill.install.result": {
108
- "type": "object",
109
- "properties": {
110
- "skill": {
111
- "type": "object",
112
- "properties": {
113
- "name": {
114
- "type": "string",
115
- "minLength": 1
116
- },
117
- "agent": {
118
- "type": "string",
119
- "minLength": 1
120
- },
121
- "scope": {
122
- "type": "string",
123
- "enum": [
124
- "global",
125
- "project"
126
- ]
127
- },
128
- "projectId": {
129
- "type": "string",
130
- "minLength": 1
131
- },
132
- "version": {
133
- "type": "string"
134
- },
135
- "hash": {
136
- "type": "string"
137
- },
138
- "compatibleAgents": {
139
- "type": "array",
140
- "items": {
141
- "$ref": "#/definitions/skill.install.result/properties/skill/properties/agent"
142
- }
143
- },
144
- "sourceTrusted": {
145
- "type": "boolean"
146
- },
147
- "installedPath": {
148
- "type": "string"
149
- },
150
- "installedAt": {
151
- "type": "string",
152
- "format": "date-time"
153
- }
154
- },
155
- "required": [
156
- "name",
157
- "agent",
158
- "scope"
159
- ],
160
- "additionalProperties": false
161
- }
162
- },
163
- "required": [
164
- "skill"
165
- ],
166
- "additionalProperties": false
167
- }
168
- },
169
- "$schema": "http://json-schema.org/draft-07/schema#"
170
- }
171
- }