@adaptiqai/deepseek-harness 0.0.0-stage → 0.2.1
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 +114 -2
- package/assets/fonts/Manrope-OFL.txt +93 -0
- package/cordis.patch.yml +7 -0
- package/icon.svg +10 -0
- package/lib/client.js +7 -0
- package/lib/index.js +4181 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +560 -0
- package/lib/typert.remote-client.d.ts +5 -0
- package/lib/typert.remote-client.js +360 -0
- package/lib/types/client/Access.d.ts +33 -0
- package/lib/types/client/Connect.d.ts +18 -0
- package/lib/types/client/Extras.d.ts +34 -0
- package/lib/types/client/Knowledge.d.ts +35 -0
- package/lib/types/client/MemoryPill.d.ts +21 -0
- package/lib/types/client/Overlay.d.ts +29 -0
- package/lib/types/client/SettingsPage.d.ts +22 -0
- package/lib/types/client/actions.d.ts +87 -0
- package/lib/types/client/index.d.ts +15 -0
- package/lib/types/client/model.d.ts +37 -0
- package/lib/types/client/store.d.ts +112 -0
- package/lib/types/client/styles/fonts.d.ts +1 -0
- package/lib/types/client/ui.d.ts +69 -0
- package/lib/types/host/adapter.d.ts +54 -0
- package/lib/types/host/commands.d.ts +17 -0
- package/lib/types/host/config.d.ts +33 -0
- package/lib/types/host/controller.d.ts +85 -0
- package/lib/types/host/index.d.ts +12 -0
- package/lib/types/host/stores.d.ts +27 -0
- package/lib/types/host/stream.d.ts +25 -0
- package/lib/types/host/tools.d.ts +14 -0
- package/lib/types/host/wire.d.ts +62 -0
- package/locale/da.json +6 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +107 -3
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
/* Generated by scripts/gen-typert.mjs from scripts/remote-spec.mjs — do not edit. */
|
|
2
|
+
function jsonSafe(value, depth) {
|
|
3
|
+
if (depth > 64) return false
|
|
4
|
+
if (value === null) return true
|
|
5
|
+
switch (typeof value) {
|
|
6
|
+
case 'string': case 'boolean': return true
|
|
7
|
+
case 'number': return Number.isFinite(value)
|
|
8
|
+
case 'object':
|
|
9
|
+
if (Array.isArray(value)) return value.every(item => jsonSafe(item, depth + 1))
|
|
10
|
+
if (Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null) return false
|
|
11
|
+
return Object.values(value).every(item => item === undefined || jsonSafe(item, depth + 1))
|
|
12
|
+
default: return false
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function schema(kind, optional) {
|
|
16
|
+
return {
|
|
17
|
+
parse(value) {
|
|
18
|
+
if (value === undefined && (optional || kind === 'void')) return undefined
|
|
19
|
+
if (kind === 'void') throw new TypeError('expected no value')
|
|
20
|
+
if (kind === 'string' && typeof value !== 'string') throw new TypeError('expected a string')
|
|
21
|
+
if (kind === 'boolean' && typeof value !== 'boolean') throw new TypeError('expected a boolean')
|
|
22
|
+
if (kind === 'number' && (typeof value !== 'number' || !Number.isFinite(value))) throw new TypeError('expected a number')
|
|
23
|
+
if (kind === 'object' && (typeof value !== 'object' || value === null || Array.isArray(value))) throw new TypeError('expected an object')
|
|
24
|
+
if (!jsonSafe(value, 0)) throw new TypeError('expected a JSON value')
|
|
25
|
+
return value
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function codec(typeSymbol, kind, optional) {
|
|
30
|
+
let cached
|
|
31
|
+
return { mode: 'strict', typeSymbol, create: () => (cached ??= schema(kind, optional)) }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const TYPERT = {
|
|
35
|
+
package: "@adaptiqai/deepseek-harness",
|
|
36
|
+
face: 'host',
|
|
37
|
+
schemas: [],
|
|
38
|
+
invocations: [
|
|
39
|
+
{
|
|
40
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/getState",
|
|
41
|
+
service: "adaptiqController",
|
|
42
|
+
namespace: "adaptiq",
|
|
43
|
+
method: "getState",
|
|
44
|
+
invocation: { kind: 'direct' },
|
|
45
|
+
parameters: [
|
|
46
|
+
],
|
|
47
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/getState:result", "object", false),
|
|
48
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 1, column: 1 },
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/watch",
|
|
52
|
+
service: "adaptiqController",
|
|
53
|
+
namespace: "adaptiq",
|
|
54
|
+
method: "watch",
|
|
55
|
+
mode: 'stream',
|
|
56
|
+
invocation: { kind: 'direct' },
|
|
57
|
+
parameters: [
|
|
58
|
+
],
|
|
59
|
+
cancellation: { parameter: 'signal' },
|
|
60
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/watch:result", "object", false),
|
|
61
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 2, column: 1 },
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/startSignIn",
|
|
65
|
+
service: "adaptiqController",
|
|
66
|
+
namespace: "adaptiq",
|
|
67
|
+
method: "startSignIn",
|
|
68
|
+
invocation: { kind: 'direct' },
|
|
69
|
+
parameters: [
|
|
70
|
+
],
|
|
71
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/startSignIn:result", "object", false),
|
|
72
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 3, column: 1 },
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/cancelSignIn",
|
|
76
|
+
service: "adaptiqController",
|
|
77
|
+
namespace: "adaptiq",
|
|
78
|
+
method: "cancelSignIn",
|
|
79
|
+
invocation: { kind: 'direct' },
|
|
80
|
+
parameters: [
|
|
81
|
+
],
|
|
82
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/cancelSignIn:result", "void", false),
|
|
83
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 4, column: 1 },
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/signOut",
|
|
87
|
+
service: "adaptiqController",
|
|
88
|
+
namespace: "adaptiq",
|
|
89
|
+
method: "signOut",
|
|
90
|
+
invocation: { kind: 'direct' },
|
|
91
|
+
parameters: [
|
|
92
|
+
],
|
|
93
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/signOut:result", "void", false),
|
|
94
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 5, column: 1 },
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/refresh",
|
|
98
|
+
service: "adaptiqController",
|
|
99
|
+
namespace: "adaptiq",
|
|
100
|
+
method: "refresh",
|
|
101
|
+
invocation: { kind: 'direct' },
|
|
102
|
+
parameters: [
|
|
103
|
+
],
|
|
104
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/refresh:result", "object", false),
|
|
105
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 6, column: 1 },
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/setPreferences",
|
|
109
|
+
service: "adaptiqController",
|
|
110
|
+
namespace: "adaptiq",
|
|
111
|
+
method: "setPreferences",
|
|
112
|
+
invocation: { kind: 'direct' },
|
|
113
|
+
parameters: [
|
|
114
|
+
{ name: "patch", wire: "patch", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/setPreferences:patch", "object", false) },
|
|
115
|
+
],
|
|
116
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/setPreferences:result", "object", false),
|
|
117
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 7, column: 1 },
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/dismissNotice",
|
|
121
|
+
service: "adaptiqController",
|
|
122
|
+
namespace: "adaptiq",
|
|
123
|
+
method: "dismissNotice",
|
|
124
|
+
invocation: { kind: 'direct' },
|
|
125
|
+
parameters: [
|
|
126
|
+
{ name: "id", wire: "id", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/dismissNotice:id", "string", false) },
|
|
127
|
+
],
|
|
128
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/dismissNotice:result", "void", false),
|
|
129
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 8, column: 1 },
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/getSession",
|
|
133
|
+
service: "adaptiqController",
|
|
134
|
+
namespace: "adaptiq",
|
|
135
|
+
method: "getSession",
|
|
136
|
+
invocation: { kind: 'direct' },
|
|
137
|
+
parameters: [
|
|
138
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/getSession:sessionId", "string", false) },
|
|
139
|
+
],
|
|
140
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/getSession:result", "object", false),
|
|
141
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 9, column: 1 },
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/watchSession",
|
|
145
|
+
service: "adaptiqController",
|
|
146
|
+
namespace: "adaptiq",
|
|
147
|
+
method: "watchSession",
|
|
148
|
+
mode: 'stream',
|
|
149
|
+
invocation: { kind: 'direct' },
|
|
150
|
+
parameters: [
|
|
151
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/watchSession:sessionId", "string", false) },
|
|
152
|
+
],
|
|
153
|
+
cancellation: { parameter: 'signal' },
|
|
154
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/watchSession:result", "object", false),
|
|
155
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 10, column: 1 },
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/setRemember",
|
|
159
|
+
service: "adaptiqController",
|
|
160
|
+
namespace: "adaptiq",
|
|
161
|
+
method: "setRemember",
|
|
162
|
+
invocation: { kind: 'direct' },
|
|
163
|
+
parameters: [
|
|
164
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/setRemember:sessionId", "string", false) },
|
|
165
|
+
{ name: "remember", wire: "remember", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/setRemember:remember", "boolean", false) },
|
|
166
|
+
],
|
|
167
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/setRemember:result", "object", false),
|
|
168
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 11, column: 1 },
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/setSessionModel",
|
|
172
|
+
service: "adaptiqController",
|
|
173
|
+
namespace: "adaptiq",
|
|
174
|
+
method: "setSessionModel",
|
|
175
|
+
invocation: { kind: 'direct' },
|
|
176
|
+
parameters: [
|
|
177
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/setSessionModel:sessionId", "string", false) },
|
|
178
|
+
{ name: "model", wire: "model", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/setSessionModel:model", "string", true) },
|
|
179
|
+
{ name: "lastUsed", wire: "lastUsed", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/setSessionModel:lastUsed", "string", true) },
|
|
180
|
+
],
|
|
181
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/setSessionModel:result", "object", false),
|
|
182
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 12, column: 1 },
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/listKnowledge",
|
|
186
|
+
service: "adaptiqController",
|
|
187
|
+
namespace: "adaptiq",
|
|
188
|
+
method: "listKnowledge",
|
|
189
|
+
invocation: { kind: 'direct' },
|
|
190
|
+
parameters: [
|
|
191
|
+
{ name: "query", wire: "query", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/listKnowledge:query", "string", true) },
|
|
192
|
+
{ name: "cursor", wire: "cursor", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/listKnowledge:cursor", "string", true) },
|
|
193
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/listKnowledge:sessionId", "string", true) },
|
|
194
|
+
{ name: "model", wire: "model", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/listKnowledge:model", "string", true) },
|
|
195
|
+
],
|
|
196
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/listKnowledge:result", "object", false),
|
|
197
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 13, column: 1 },
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/attachKnowledge",
|
|
201
|
+
service: "adaptiqController",
|
|
202
|
+
namespace: "adaptiq",
|
|
203
|
+
method: "attachKnowledge",
|
|
204
|
+
invocation: { kind: 'direct' },
|
|
205
|
+
parameters: [
|
|
206
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/attachKnowledge:sessionId", "string", false) },
|
|
207
|
+
{ name: "id", wire: "id", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/attachKnowledge:id", "string", false) },
|
|
208
|
+
],
|
|
209
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/attachKnowledge:result", "object", false),
|
|
210
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 14, column: 1 },
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/detachKnowledge",
|
|
214
|
+
service: "adaptiqController",
|
|
215
|
+
namespace: "adaptiq",
|
|
216
|
+
method: "detachKnowledge",
|
|
217
|
+
invocation: { kind: 'direct' },
|
|
218
|
+
parameters: [
|
|
219
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/detachKnowledge:sessionId", "string", false) },
|
|
220
|
+
{ name: "id", wire: "id", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/detachKnowledge:id", "string", false) },
|
|
221
|
+
],
|
|
222
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/detachKnowledge:result", "object", false),
|
|
223
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 15, column: 1 },
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/makeKnowledgeAvailable",
|
|
227
|
+
service: "adaptiqController",
|
|
228
|
+
namespace: "adaptiq",
|
|
229
|
+
method: "makeKnowledgeAvailable",
|
|
230
|
+
invocation: { kind: 'direct' },
|
|
231
|
+
parameters: [
|
|
232
|
+
{ name: "id", wire: "id", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/makeKnowledgeAvailable:id", "string", false) },
|
|
233
|
+
{ name: "from", wire: "from", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/makeKnowledgeAvailable:from", "string", false) },
|
|
234
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/makeKnowledgeAvailable:sessionId", "string", true) },
|
|
235
|
+
],
|
|
236
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/makeKnowledgeAvailable:result", "object", false),
|
|
237
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 16, column: 1 },
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/createKnowledge",
|
|
241
|
+
service: "adaptiqController",
|
|
242
|
+
namespace: "adaptiq",
|
|
243
|
+
method: "createKnowledge",
|
|
244
|
+
invocation: { kind: 'direct' },
|
|
245
|
+
parameters: [
|
|
246
|
+
{ name: "input", wire: "input", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/createKnowledge:input", "object", false) },
|
|
247
|
+
],
|
|
248
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/createKnowledge:result", "object", false),
|
|
249
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 17, column: 1 },
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/startPurchase",
|
|
253
|
+
service: "adaptiqController",
|
|
254
|
+
namespace: "adaptiq",
|
|
255
|
+
method: "startPurchase",
|
|
256
|
+
invocation: { kind: 'direct' },
|
|
257
|
+
parameters: [
|
|
258
|
+
{ name: "offerId", wire: "offerId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/startPurchase:offerId", "string", false) },
|
|
259
|
+
{ name: "lanes", wire: "lanes", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/startPurchase:lanes", "number", false) },
|
|
260
|
+
],
|
|
261
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/startPurchase:result", "object", false),
|
|
262
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 18, column: 1 },
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/checkPurchase",
|
|
266
|
+
service: "adaptiqController",
|
|
267
|
+
namespace: "adaptiq",
|
|
268
|
+
method: "checkPurchase",
|
|
269
|
+
invocation: { kind: 'direct' },
|
|
270
|
+
parameters: [
|
|
271
|
+
],
|
|
272
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/checkPurchase:result", "void", false),
|
|
273
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 19, column: 1 },
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/cancelPurchase",
|
|
277
|
+
service: "adaptiqController",
|
|
278
|
+
namespace: "adaptiq",
|
|
279
|
+
method: "cancelPurchase",
|
|
280
|
+
invocation: { kind: 'direct' },
|
|
281
|
+
parameters: [
|
|
282
|
+
],
|
|
283
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/cancelPurchase:result", "void", false),
|
|
284
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 20, column: 1 },
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/dismissPurchase",
|
|
288
|
+
service: "adaptiqController",
|
|
289
|
+
namespace: "adaptiq",
|
|
290
|
+
method: "dismissPurchase",
|
|
291
|
+
invocation: { kind: 'direct' },
|
|
292
|
+
parameters: [
|
|
293
|
+
],
|
|
294
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/dismissPurchase:result", "void", false),
|
|
295
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 21, column: 1 },
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/listConversations",
|
|
299
|
+
service: "adaptiqController",
|
|
300
|
+
namespace: "adaptiq",
|
|
301
|
+
method: "listConversations",
|
|
302
|
+
invocation: { kind: 'direct' },
|
|
303
|
+
parameters: [
|
|
304
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/listConversations:sessionId", "string", false) },
|
|
305
|
+
{ name: "query", wire: "query", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/listConversations:query", "string", true) },
|
|
306
|
+
{ name: "cursor", wire: "cursor", source: 'json', acceptsUndefined: true, codec: codec("@adaptiqai/deepseek-harness#adaptiq/listConversations:cursor", "string", true) },
|
|
307
|
+
],
|
|
308
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/listConversations:result", "object", false),
|
|
309
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 22, column: 1 },
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/attachConversation",
|
|
313
|
+
service: "adaptiqController",
|
|
314
|
+
namespace: "adaptiq",
|
|
315
|
+
method: "attachConversation",
|
|
316
|
+
invocation: { kind: 'direct' },
|
|
317
|
+
parameters: [
|
|
318
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/attachConversation:sessionId", "string", false) },
|
|
319
|
+
{ name: "conversationId", wire: "conversationId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/attachConversation:conversationId", "string", false) },
|
|
320
|
+
],
|
|
321
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/attachConversation:result", "object", false),
|
|
322
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 23, column: 1 },
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/detachConversation",
|
|
326
|
+
service: "adaptiqController",
|
|
327
|
+
namespace: "adaptiq",
|
|
328
|
+
method: "detachConversation",
|
|
329
|
+
invocation: { kind: 'direct' },
|
|
330
|
+
parameters: [
|
|
331
|
+
{ name: "sessionId", wire: "sessionId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/detachConversation:sessionId", "string", false) },
|
|
332
|
+
{ name: "conversationId", wire: "conversationId", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/detachConversation:conversationId", "string", false) },
|
|
333
|
+
],
|
|
334
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/detachConversation:result", "object", false),
|
|
335
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 24, column: 1 },
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/openExternal",
|
|
339
|
+
service: "adaptiqController",
|
|
340
|
+
namespace: "adaptiq",
|
|
341
|
+
method: "openExternal",
|
|
342
|
+
invocation: { kind: 'direct' },
|
|
343
|
+
parameters: [
|
|
344
|
+
{ name: "url", wire: "url", source: 'json', codec: codec("@adaptiqai/deepseek-harness#adaptiq/openExternal:url", "string", false) },
|
|
345
|
+
],
|
|
346
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/openExternal:result", "boolean", false),
|
|
347
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 25, column: 1 },
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
id: "@adaptiqai/deepseek-harness#adaptiq/diagnostics",
|
|
351
|
+
service: "adaptiqController",
|
|
352
|
+
namespace: "adaptiq",
|
|
353
|
+
method: "diagnostics",
|
|
354
|
+
invocation: { kind: 'direct' },
|
|
355
|
+
parameters: [
|
|
356
|
+
],
|
|
357
|
+
result: codec("@adaptiqai/deepseek-harness#adaptiq/diagnostics:result", "object", false),
|
|
358
|
+
sourceLocation: { file: 'src/host/controller.ts', line: 26, column: 1 },
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
model: {
|
|
362
|
+
"services": [
|
|
363
|
+
{
|
|
364
|
+
"description": "AdaptiqAI account, memory and knowledge for the browser half of the AdaptiqAI plugin.",
|
|
365
|
+
"summary": "AdaptiqAI account, memory and knowledge for the browser half of the AdaptiqAI plugin.",
|
|
366
|
+
"tags": [],
|
|
367
|
+
"jsDoc": "/** AdaptiqAI account, memory and knowledge for the browser half of the AdaptiqAI plugin. */",
|
|
368
|
+
"key": "adaptiqController",
|
|
369
|
+
"exportName": "AdaptiqController",
|
|
370
|
+
"members": [
|
|
371
|
+
{
|
|
372
|
+
"kind": "method",
|
|
373
|
+
"name": "getState",
|
|
374
|
+
"signature": "@Remote getState(): Promise<AccountSnapshot>",
|
|
375
|
+
"summary": "Read the current account snapshot.",
|
|
376
|
+
"jsDoc": "/** Read the current account snapshot. */"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"kind": "method",
|
|
380
|
+
"name": "watch",
|
|
381
|
+
"signature": "@Remote({ mode: 'stream' }) watch(signal: AbortSignal): AsyncIterable<AccountSnapshot>",
|
|
382
|
+
"summary": "Follow the account snapshot: the current one, then every change.",
|
|
383
|
+
"jsDoc": "/** Follow the account snapshot: the current one, then every change. */"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"kind": "method",
|
|
387
|
+
"name": "startSignIn",
|
|
388
|
+
"signature": "@Remote startSignIn(): Promise<SignInStart>",
|
|
389
|
+
"summary": "Start a browser sign-in and return the approval link and code.",
|
|
390
|
+
"jsDoc": "/** Start a browser sign-in and return the approval link and code. */"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"kind": "method",
|
|
394
|
+
"name": "cancelSignIn",
|
|
395
|
+
"signature": "@Remote cancelSignIn(): Promise<void>",
|
|
396
|
+
"summary": "Stop waiting for a browser approval.",
|
|
397
|
+
"jsDoc": "/** Stop waiting for a browser approval. */"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"kind": "method",
|
|
401
|
+
"name": "signOut",
|
|
402
|
+
"signature": "@Remote signOut(): Promise<void>",
|
|
403
|
+
"summary": "Forget the saved AdaptiqAI connection on this computer.",
|
|
404
|
+
"jsDoc": "/** Forget the saved AdaptiqAI connection on this computer. */"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"kind": "method",
|
|
408
|
+
"name": "refresh",
|
|
409
|
+
"signature": "@Remote refresh(): Promise<AccountSnapshot>",
|
|
410
|
+
"summary": "Re-read the workspace, its models, lanes and memory now.",
|
|
411
|
+
"jsDoc": "/** Re-read the workspace, its models, lanes and memory now. */"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"kind": "method",
|
|
415
|
+
"name": "setPreferences",
|
|
416
|
+
"signature": "@Remote setPreferences(patch: Partial<Preferences>): Promise<Preferences>",
|
|
417
|
+
"summary": "Change saved plugin preferences.",
|
|
418
|
+
"jsDoc": "/** Change saved plugin preferences. */"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"kind": "method",
|
|
422
|
+
"name": "dismissNotice",
|
|
423
|
+
"signature": "@Remote dismissNotice(id: string): Promise<void>",
|
|
424
|
+
"summary": "Take one notice down.",
|
|
425
|
+
"jsDoc": "/** Take one notice down. */"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"kind": "method",
|
|
429
|
+
"name": "getSession",
|
|
430
|
+
"signature": "@Remote getSession(sessionId: string): Promise<SessionView>",
|
|
431
|
+
"summary": "Read one conversation's memory and knowledge.",
|
|
432
|
+
"jsDoc": "/** Read one conversation's memory and knowledge. */"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"kind": "method",
|
|
436
|
+
"name": "watchSession",
|
|
437
|
+
"signature": "@Remote({ mode: 'stream' }) watchSession(sessionId: string, signal: AbortSignal): AsyncIterable<SessionView>",
|
|
438
|
+
"summary": "Follow one conversation's memory and request state.",
|
|
439
|
+
"jsDoc": "/** Follow one conversation's memory and request state. */"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"kind": "method",
|
|
443
|
+
"name": "setRemember",
|
|
444
|
+
"signature": "@Remote setRemember(sessionId: string, remember: boolean): Promise<SessionView>",
|
|
445
|
+
"summary": "Choose whether new messages in this conversation are saved to memory.",
|
|
446
|
+
"jsDoc": "/** Choose whether new messages in this conversation are saved to memory. */"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"kind": "method",
|
|
450
|
+
"name": "setSessionModel",
|
|
451
|
+
"signature": "@Remote setSessionModel(sessionId: string, model?: string, lastUsed?: string): Promise<SessionView>",
|
|
452
|
+
"summary": "Tell the plugin which AdaptiqAI model this conversation has selected (none for another provider) and which one it last ran on.",
|
|
453
|
+
"jsDoc": "/** Tell the plugin which AdaptiqAI model this conversation has selected (none for another provider) and which one it last ran on. */"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"kind": "method",
|
|
457
|
+
"name": "listKnowledge",
|
|
458
|
+
"signature": "@Remote listKnowledge(query?: string, cursor?: string, sessionId?: string, model?: string): Promise<KnowledgePage>",
|
|
459
|
+
"summary": "Search the workspace knowledge library.",
|
|
460
|
+
"jsDoc": "/** Search the workspace knowledge library. */"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"kind": "method",
|
|
464
|
+
"name": "attachKnowledge",
|
|
465
|
+
"signature": "@Remote attachKnowledge(sessionId: string, id: string): Promise<SessionView>",
|
|
466
|
+
"summary": "Use one collection in this conversation.",
|
|
467
|
+
"jsDoc": "/** Use one collection in this conversation. */"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"kind": "method",
|
|
471
|
+
"name": "detachKnowledge",
|
|
472
|
+
"signature": "@Remote detachKnowledge(sessionId: string, id: string): Promise<SessionView>",
|
|
473
|
+
"summary": "Stop using one collection in this conversation.",
|
|
474
|
+
"jsDoc": "/** Stop using one collection in this conversation. */"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"kind": "method",
|
|
478
|
+
"name": "makeKnowledgeAvailable",
|
|
479
|
+
"signature": "@Remote makeKnowledgeAvailable(id: string, from: string, sessionId?: string): Promise<MakeAvailableResult>",
|
|
480
|
+
"summary": "Make a collection built for another model available for the model this conversation uses.",
|
|
481
|
+
"jsDoc": "/** Make a collection built for another model available for the model this conversation uses. */"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"kind": "method",
|
|
485
|
+
"name": "createKnowledge",
|
|
486
|
+
"signature": "@Remote createKnowledge(input: CreateKnowledgeInput): Promise<CreateKnowledgeResult>",
|
|
487
|
+
"summary": "Create a collection from files, text or links.",
|
|
488
|
+
"jsDoc": "/** Create a collection from files, text or links. */"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"kind": "method",
|
|
492
|
+
"name": "startPurchase",
|
|
493
|
+
"signature": "@Remote startPurchase(offerId: string, lanes: number): Promise<PurchaseView>",
|
|
494
|
+
"summary": "Start getting lanes on a model: the person confirms (and pays) in the browser.",
|
|
495
|
+
"jsDoc": "/** Start getting lanes on a model: the person confirms (and pays) in the browser. */"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"kind": "method",
|
|
499
|
+
"name": "checkPurchase",
|
|
500
|
+
"signature": "@Remote checkPurchase(): Promise<void>",
|
|
501
|
+
"summary": "Check the purchase in progress now.",
|
|
502
|
+
"jsDoc": "/** Check the purchase in progress now. */"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"kind": "method",
|
|
506
|
+
"name": "cancelPurchase",
|
|
507
|
+
"signature": "@Remote cancelPurchase(): Promise<void>",
|
|
508
|
+
"summary": "Stop following the purchase in progress.",
|
|
509
|
+
"jsDoc": "/** Stop following the purchase in progress. */"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"kind": "method",
|
|
513
|
+
"name": "dismissPurchase",
|
|
514
|
+
"signature": "@Remote dismissPurchase(): Promise<void>",
|
|
515
|
+
"summary": "Put away a finished purchase.",
|
|
516
|
+
"jsDoc": "/** Put away a finished purchase. */"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"kind": "method",
|
|
520
|
+
"name": "listConversations",
|
|
521
|
+
"signature": "@Remote listConversations(sessionId: string, query?: string, cursor?: string): Promise<ConversationPage>",
|
|
522
|
+
"summary": "Saved conversations on the model this conversation uses, newest first.",
|
|
523
|
+
"jsDoc": "/** Saved conversations on the model this conversation uses, newest first. */"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"kind": "method",
|
|
527
|
+
"name": "attachConversation",
|
|
528
|
+
"signature": "@Remote attachConversation(sessionId: string, conversationId: string): Promise<SessionView>",
|
|
529
|
+
"summary": "Let this conversation read another one.",
|
|
530
|
+
"jsDoc": "/** Let this conversation read another one. */"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"kind": "method",
|
|
534
|
+
"name": "detachConversation",
|
|
535
|
+
"signature": "@Remote detachConversation(sessionId: string, conversationId: string): Promise<SessionView>",
|
|
536
|
+
"summary": "Stop reading another conversation.",
|
|
537
|
+
"jsDoc": "/** Stop reading another conversation. */"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"kind": "method",
|
|
541
|
+
"name": "openExternal",
|
|
542
|
+
"signature": "@Remote openExternal(url: string): Promise<boolean>",
|
|
543
|
+
"summary": "Open an AdaptiqAI page in the default browser.",
|
|
544
|
+
"jsDoc": "/** Open an AdaptiqAI page in the default browser. */"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"kind": "method",
|
|
548
|
+
"name": "diagnostics",
|
|
549
|
+
"signature": "@Remote diagnostics(): Promise<DiagnosticsView>",
|
|
550
|
+
"summary": "A secret-free report of the connection and recent failures.",
|
|
551
|
+
"jsDoc": "/** A secret-free report of the connection and recent failures. */"
|
|
552
|
+
}
|
|
553
|
+
],
|
|
554
|
+
"types": []
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"events": [],
|
|
558
|
+
"objects": []
|
|
559
|
+
},
|
|
560
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/* Generated by scripts/gen-typert.mjs — do not edit. */
|
|
2
|
+
import type { TypertRemoteContribution } from '@deepseek-ai/dsh-typert-protocol'
|
|
3
|
+
export declare const TYPERT_REMOTE: TypertRemoteContribution
|
|
4
|
+
export default TYPERT_REMOTE
|
|
5
|
+
/** Namespace marker: adaptiq (61646170746971). Typed calls live in src/shared/remote-api.ts. */
|