@github/copilot-sdk 0.3.0 → 1.0.0-beta.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/README.md +1 -0
- package/dist/cjs/client.js +68 -11
- package/dist/cjs/generated/rpc.js +21 -0
- package/dist/client.d.ts +11 -2
- package/dist/client.js +75 -12
- package/dist/generated/rpc.d.ts +590 -40
- package/dist/generated/rpc.js +20 -0
- package/dist/generated/session-events.d.ts +450 -19
- package/dist/types.d.ts +67 -1
- package/package.json +2 -2
package/dist/generated/rpc.js
CHANGED
|
@@ -36,8 +36,14 @@ function createServerRpc(connection) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
+
function createInternalServerRpc(connection) {
|
|
40
|
+
return {
|
|
41
|
+
connect: async (params) => connection.sendRequest("connect", params)
|
|
42
|
+
};
|
|
43
|
+
}
|
|
39
44
|
function createSessionRpc(connection, sessionId) {
|
|
40
45
|
return {
|
|
46
|
+
suspend: async () => connection.sendRequest("session.suspend", { sessionId }),
|
|
41
47
|
auth: {
|
|
42
48
|
getStatus: async () => connection.sendRequest("session.auth.getStatus", { sessionId })
|
|
43
49
|
},
|
|
@@ -80,6 +86,14 @@ function createSessionRpc(connection, sessionId) {
|
|
|
80
86
|
reload: async () => connection.sendRequest("session.agent.reload", { sessionId })
|
|
81
87
|
},
|
|
82
88
|
/** @experimental */
|
|
89
|
+
tasks: {
|
|
90
|
+
startAgent: async (params) => connection.sendRequest("session.tasks.startAgent", { sessionId, ...params }),
|
|
91
|
+
list: async () => connection.sendRequest("session.tasks.list", { sessionId }),
|
|
92
|
+
promoteToBackground: async (params) => connection.sendRequest("session.tasks.promoteToBackground", { sessionId, ...params }),
|
|
93
|
+
cancel: async (params) => connection.sendRequest("session.tasks.cancel", { sessionId, ...params }),
|
|
94
|
+
remove: async (params) => connection.sendRequest("session.tasks.remove", { sessionId, ...params })
|
|
95
|
+
},
|
|
96
|
+
/** @experimental */
|
|
83
97
|
skills: {
|
|
84
98
|
list: async () => connection.sendRequest("session.skills.list", { sessionId }),
|
|
85
99
|
enable: async (params) => connection.sendRequest("session.skills.enable", { sessionId, ...params }),
|
|
@@ -136,6 +150,11 @@ function createSessionRpc(connection, sessionId) {
|
|
|
136
150
|
/** @experimental */
|
|
137
151
|
usage: {
|
|
138
152
|
getMetrics: async () => connection.sendRequest("session.usage.getMetrics", { sessionId })
|
|
153
|
+
},
|
|
154
|
+
/** @experimental */
|
|
155
|
+
remote: {
|
|
156
|
+
enable: async () => connection.sendRequest("session.remote.enable", { sessionId }),
|
|
157
|
+
disable: async () => connection.sendRequest("session.remote.disable", { sessionId })
|
|
139
158
|
}
|
|
140
159
|
};
|
|
141
160
|
}
|
|
@@ -192,6 +211,7 @@ function registerClientSessionApiHandlers(connection, getHandlers) {
|
|
|
192
211
|
});
|
|
193
212
|
}
|
|
194
213
|
export {
|
|
214
|
+
createInternalServerRpc,
|
|
195
215
|
createServerRpc,
|
|
196
216
|
createSessionRpc,
|
|
197
217
|
registerClientSessionApiHandlers
|