@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.
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,72 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/project.list.params",
6
- "definitions": {
7
- "project.list.params": {
8
- "type": "object",
9
- "properties": {},
10
- "additionalProperties": false,
11
- "default": {}
12
- }
13
- },
14
- "$schema": "http://json-schema.org/draft-07/schema#"
15
- },
16
- "result": {
17
- "$ref": "#/definitions/project.list.result",
18
- "definitions": {
19
- "project.list.result": {
20
- "type": "object",
21
- "properties": {
22
- "projects": {
23
- "type": "array",
24
- "items": {
25
- "type": "object",
26
- "properties": {
27
- "projectId": {
28
- "type": "string",
29
- "minLength": 1
30
- },
31
- "name": {
32
- "type": "string",
33
- "minLength": 1
34
- },
35
- "path": {
36
- "type": "string",
37
- "minLength": 1
38
- },
39
- "git": {
40
- "type": "boolean",
41
- "default": true
42
- },
43
- "branch": {
44
- "type": "string"
45
- },
46
- "remote": {
47
- "type": "string"
48
- },
49
- "createdAt": {
50
- "type": "string",
51
- "format": "date-time"
52
- }
53
- },
54
- "required": [
55
- "projectId",
56
- "name",
57
- "path",
58
- "createdAt"
59
- ],
60
- "additionalProperties": false
61
- }
62
- }
63
- },
64
- "required": [
65
- "projects"
66
- ],
67
- "additionalProperties": false
68
- }
69
- },
70
- "$schema": "http://json-schema.org/draft-07/schema#"
71
- }
72
- }
@@ -1,69 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/project.remove.params",
6
- "definitions": {
7
- "project.remove.params": {
8
- "type": "object",
9
- "properties": {
10
- "projectId": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "deleteFiles": {
15
- "type": "boolean",
16
- "default": false
17
- },
18
- "whenActiveSessions": {
19
- "type": "string",
20
- "enum": [
21
- "reject",
22
- "cascade"
23
- ],
24
- "default": "reject"
25
- }
26
- },
27
- "required": [
28
- "projectId"
29
- ],
30
- "additionalProperties": false
31
- }
32
- },
33
- "$schema": "http://json-schema.org/draft-07/schema#"
34
- },
35
- "result": {
36
- "$ref": "#/definitions/project.remove.result",
37
- "definitions": {
38
- "project.remove.result": {
39
- "type": "object",
40
- "properties": {
41
- "projectId": {
42
- "type": "string",
43
- "minLength": 1
44
- },
45
- "removed": {
46
- "type": "boolean",
47
- "const": true
48
- },
49
- "filesDeleted": {
50
- "type": "boolean"
51
- },
52
- "terminatedSessions": {
53
- "type": "array",
54
- "items": {
55
- "type": "string"
56
- }
57
- }
58
- },
59
- "required": [
60
- "projectId",
61
- "removed",
62
- "filesDeleted"
63
- ],
64
- "additionalProperties": false
65
- }
66
- },
67
- "$schema": "http://json-schema.org/draft-07/schema#"
68
- }
69
- }
@@ -1,88 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/project.worktree.create.params",
6
- "definitions": {
7
- "project.worktree.create.params": {
8
- "type": "object",
9
- "properties": {
10
- "clientRequestId": {
11
- "type": "string"
12
- },
13
- "projectId": {
14
- "type": "string",
15
- "minLength": 1
16
- },
17
- "baseBranch": {
18
- "type": "string",
19
- "minLength": 1
20
- },
21
- "newBranch": {
22
- "type": "string"
23
- },
24
- "path": {
25
- "type": "string"
26
- }
27
- },
28
- "required": [
29
- "projectId",
30
- "baseBranch"
31
- ],
32
- "additionalProperties": false
33
- }
34
- },
35
- "$schema": "http://json-schema.org/draft-07/schema#"
36
- },
37
- "result": {
38
- "$ref": "#/definitions/project.worktree.create.result",
39
- "definitions": {
40
- "project.worktree.create.result": {
41
- "type": "object",
42
- "properties": {
43
- "worktree": {
44
- "type": "object",
45
- "properties": {
46
- "worktreeId": {
47
- "type": "string",
48
- "minLength": 1
49
- },
50
- "projectId": {
51
- "type": "string",
52
- "minLength": 1
53
- },
54
- "path": {
55
- "type": "string",
56
- "minLength": 1
57
- },
58
- "branch": {
59
- "type": "string",
60
- "minLength": 1
61
- },
62
- "isPrimary": {
63
- "type": "boolean",
64
- "default": false
65
- },
66
- "createdAt": {
67
- "type": "string",
68
- "format": "date-time"
69
- }
70
- },
71
- "required": [
72
- "worktreeId",
73
- "projectId",
74
- "path",
75
- "branch"
76
- ],
77
- "additionalProperties": false
78
- }
79
- },
80
- "required": [
81
- "worktree"
82
- ],
83
- "additionalProperties": false
84
- }
85
- },
86
- "$schema": "http://json-schema.org/draft-07/schema#"
87
- }
88
- }
@@ -1,77 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/project.worktree.list.params",
6
- "definitions": {
7
- "project.worktree.list.params": {
8
- "type": "object",
9
- "properties": {
10
- "projectId": {
11
- "type": "string",
12
- "minLength": 1
13
- }
14
- },
15
- "required": [
16
- "projectId"
17
- ],
18
- "additionalProperties": false
19
- }
20
- },
21
- "$schema": "http://json-schema.org/draft-07/schema#"
22
- },
23
- "result": {
24
- "$ref": "#/definitions/project.worktree.list.result",
25
- "definitions": {
26
- "project.worktree.list.result": {
27
- "type": "object",
28
- "properties": {
29
- "worktrees": {
30
- "type": "array",
31
- "items": {
32
- "type": "object",
33
- "properties": {
34
- "worktreeId": {
35
- "type": "string",
36
- "minLength": 1
37
- },
38
- "projectId": {
39
- "type": "string",
40
- "minLength": 1
41
- },
42
- "path": {
43
- "type": "string",
44
- "minLength": 1
45
- },
46
- "branch": {
47
- "type": "string",
48
- "minLength": 1
49
- },
50
- "isPrimary": {
51
- "type": "boolean",
52
- "default": false
53
- },
54
- "createdAt": {
55
- "type": "string",
56
- "format": "date-time"
57
- }
58
- },
59
- "required": [
60
- "worktreeId",
61
- "projectId",
62
- "path",
63
- "branch"
64
- ],
65
- "additionalProperties": false
66
- }
67
- }
68
- },
69
- "required": [
70
- "worktrees"
71
- ],
72
- "additionalProperties": false
73
- }
74
- },
75
- "$schema": "http://json-schema.org/draft-07/schema#"
76
- }
77
- }
@@ -1,61 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/project.worktree.remove.params",
6
- "definitions": {
7
- "project.worktree.remove.params": {
8
- "type": "object",
9
- "properties": {
10
- "projectId": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "worktreeId": {
15
- "type": "string",
16
- "minLength": 1
17
- },
18
- "force": {
19
- "type": "boolean",
20
- "default": false
21
- }
22
- },
23
- "required": [
24
- "projectId",
25
- "worktreeId"
26
- ],
27
- "additionalProperties": false
28
- }
29
- },
30
- "$schema": "http://json-schema.org/draft-07/schema#"
31
- },
32
- "result": {
33
- "$ref": "#/definitions/project.worktree.remove.result",
34
- "definitions": {
35
- "project.worktree.remove.result": {
36
- "type": "object",
37
- "properties": {
38
- "worktreeId": {
39
- "type": "string"
40
- },
41
- "removed": {
42
- "type": "boolean",
43
- "const": true
44
- },
45
- "affectedSessions": {
46
- "type": "array",
47
- "items": {
48
- "type": "string"
49
- }
50
- }
51
- },
52
- "required": [
53
- "worktreeId",
54
- "removed"
55
- ],
56
- "additionalProperties": false
57
- }
58
- },
59
- "$schema": "http://json-schema.org/draft-07/schema#"
60
- }
61
- }
@@ -1,72 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.compress.params",
6
- "definitions": {
7
- "session.compress.params": {
8
- "type": "object",
9
- "properties": {
10
- "sessionId": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "mode": {
15
- "type": "string",
16
- "enum": [
17
- "native",
18
- "custom"
19
- ]
20
- },
21
- "strategy": {
22
- "type": "string"
23
- }
24
- },
25
- "required": [
26
- "sessionId",
27
- "mode"
28
- ],
29
- "additionalProperties": false
30
- }
31
- },
32
- "$schema": "http://json-schema.org/draft-07/schema#"
33
- },
34
- "result": {
35
- "$ref": "#/definitions/session.compress.result",
36
- "definitions": {
37
- "session.compress.result": {
38
- "type": "object",
39
- "properties": {
40
- "sessionId": {
41
- "type": "string",
42
- "minLength": 1
43
- },
44
- "mode": {
45
- "type": "string",
46
- "enum": [
47
- "native",
48
- "custom"
49
- ]
50
- },
51
- "tokensBefore": {
52
- "type": "integer",
53
- "minimum": 0
54
- },
55
- "tokensAfter": {
56
- "type": "integer",
57
- "minimum": 0
58
- },
59
- "summary": {
60
- "type": "string"
61
- }
62
- },
63
- "required": [
64
- "sessionId",
65
- "mode"
66
- ],
67
- "additionalProperties": false
68
- }
69
- },
70
- "$schema": "http://json-schema.org/draft-07/schema#"
71
- }
72
- }
@@ -1,128 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.create.params",
6
- "definitions": {
7
- "session.create.params": {
8
- "type": "object",
9
- "properties": {
10
- "clientRequestId": {
11
- "type": "string"
12
- },
13
- "project": {
14
- "type": "string",
15
- "minLength": 1
16
- },
17
- "worktreeId": {
18
- "type": "string"
19
- },
20
- "agent": {
21
- "type": "string",
22
- "minLength": 1
23
- },
24
- "model": {
25
- "type": "string",
26
- "minLength": 1
27
- },
28
- "agentConfig": {
29
- "type": "object",
30
- "additionalProperties": {}
31
- },
32
- "initialContext": {
33
- "type": "array",
34
- "items": {
35
- "type": "object",
36
- "properties": {
37
- "role": {
38
- "type": "string",
39
- "enum": [
40
- "system",
41
- "user",
42
- "assistant"
43
- ]
44
- },
45
- "content": {
46
- "type": "string"
47
- }
48
- },
49
- "required": [
50
- "role",
51
- "content"
52
- ],
53
- "additionalProperties": false
54
- }
55
- },
56
- "verbosity": {
57
- "type": "string",
58
- "enum": [
59
- "final",
60
- "messages",
61
- "tools",
62
- "trace"
63
- ],
64
- "default": "messages"
65
- },
66
- "clientTag": {
67
- "type": "string"
68
- }
69
- },
70
- "required": [
71
- "project",
72
- "agent",
73
- "model"
74
- ],
75
- "additionalProperties": false
76
- }
77
- },
78
- "$schema": "http://json-schema.org/draft-07/schema#"
79
- },
80
- "result": {
81
- "$ref": "#/definitions/session.create.result",
82
- "definitions": {
83
- "session.create.result": {
84
- "type": "object",
85
- "properties": {
86
- "sessionId": {
87
- "type": "string",
88
- "minLength": 1
89
- },
90
- "project": {
91
- "type": "string",
92
- "minLength": 1
93
- },
94
- "agent": {
95
- "type": "string",
96
- "minLength": 1
97
- },
98
- "model": {
99
- "type": "string"
100
- },
101
- "status": {
102
- "type": "string",
103
- "enum": [
104
- "idle",
105
- "running",
106
- "paused",
107
- "terminated"
108
- ]
109
- },
110
- "createdAt": {
111
- "type": "string",
112
- "format": "date-time"
113
- }
114
- },
115
- "required": [
116
- "sessionId",
117
- "project",
118
- "agent",
119
- "model",
120
- "status",
121
- "createdAt"
122
- ],
123
- "additionalProperties": false
124
- }
125
- },
126
- "$schema": "http://json-schema.org/draft-07/schema#"
127
- }
128
- }
@@ -1,72 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.inject.params",
6
- "definitions": {
7
- "session.inject.params": {
8
- "type": "object",
9
- "properties": {
10
- "sessionId": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "context": {
15
- "type": "array",
16
- "items": {
17
- "type": "object",
18
- "properties": {
19
- "role": {
20
- "type": "string",
21
- "enum": [
22
- "system",
23
- "user",
24
- "assistant"
25
- ]
26
- },
27
- "content": {
28
- "type": "string"
29
- }
30
- },
31
- "required": [
32
- "role",
33
- "content"
34
- ],
35
- "additionalProperties": false
36
- }
37
- }
38
- },
39
- "required": [
40
- "sessionId",
41
- "context"
42
- ],
43
- "additionalProperties": false
44
- }
45
- },
46
- "$schema": "http://json-schema.org/draft-07/schema#"
47
- },
48
- "result": {
49
- "$ref": "#/definitions/session.inject.result",
50
- "definitions": {
51
- "session.inject.result": {
52
- "type": "object",
53
- "properties": {
54
- "sessionId": {
55
- "type": "string",
56
- "minLength": 1
57
- },
58
- "injected": {
59
- "type": "integer",
60
- "minimum": 0
61
- }
62
- },
63
- "required": [
64
- "sessionId",
65
- "injected"
66
- ],
67
- "additionalProperties": false
68
- }
69
- },
70
- "$schema": "http://json-schema.org/draft-07/schema#"
71
- }
72
- }
@@ -1,58 +0,0 @@
1
- {
2
- "direction": "s2p",
3
- "kind": "request",
4
- "params": {
5
- "$ref": "#/definitions/session.interrupt.params",
6
- "definitions": {
7
- "session.interrupt.params": {
8
- "type": "object",
9
- "properties": {
10
- "sessionId": {
11
- "type": "string",
12
- "minLength": 1
13
- },
14
- "reason": {
15
- "type": "string"
16
- }
17
- },
18
- "required": [
19
- "sessionId"
20
- ],
21
- "additionalProperties": false
22
- }
23
- },
24
- "$schema": "http://json-schema.org/draft-07/schema#"
25
- },
26
- "result": {
27
- "$ref": "#/definitions/session.interrupt.result",
28
- "definitions": {
29
- "session.interrupt.result": {
30
- "type": "object",
31
- "properties": {
32
- "sessionId": {
33
- "type": "string",
34
- "minLength": 1
35
- },
36
- "interruptedTurnId": {
37
- "type": "string"
38
- },
39
- "status": {
40
- "type": "string",
41
- "enum": [
42
- "idle",
43
- "running",
44
- "paused",
45
- "terminated"
46
- ]
47
- }
48
- },
49
- "required": [
50
- "sessionId",
51
- "status"
52
- ],
53
- "additionalProperties": false
54
- }
55
- },
56
- "$schema": "http://json-schema.org/draft-07/schema#"
57
- }
58
- }