@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.
@@ -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