@nikcli-ai/sdk 1.309.0 → 1.310.0
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/dist/httpapi/compat.d.ts +91 -3
- package/dist/httpapi/compat.js +5 -464
- package/dist/httpapi/generated/compat.d.ts +1234 -0
- package/dist/httpapi/generated/compat.js +434 -0
- package/dist/server.d.ts +134 -8
- package/package.json +1 -1
package/dist/httpapi/compat.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { make, type RequestOptions } from "./generated/client.js";
|
|
2
|
-
type Raw = ReturnType<typeof make>;
|
|
2
|
+
export type Raw = ReturnType<typeof make>;
|
|
3
3
|
/**
|
|
4
4
|
* Result envelope. Transport failures and declared HTTP errors resolve as
|
|
5
5
|
* `error` rather than rejecting, so a failed call in a UI event handler cannot
|
|
@@ -35,9 +35,31 @@ type Selector = {
|
|
|
35
35
|
};
|
|
36
36
|
/** Selection passed inline with the request body. */
|
|
37
37
|
type WithDirectory<I> = I & Selector;
|
|
38
|
+
/** An input the caller may omit entirely: optional parameter, or no required field. */
|
|
39
|
+
type Omittable<I> = undefined extends I ? true : {} extends I ? true : false;
|
|
40
|
+
type Result0<F> = F extends (options?: RequestOptions) => Promise<infer R> ? (options?: CallOptions, overrides?: CallOptions) => Promise<Result<R>> : never;
|
|
41
|
+
type ResultN<F> = F extends (input: infer I, options?: RequestOptions) => Promise<infer R> ? Omittable<I> extends true ? (input?: WithDirectory<NonNullable<I>>, options?: CallOptions) => Promise<Result<R>> : (input: WithDirectory<I>, options?: CallOptions) => Promise<Result<R>> : never;
|
|
42
|
+
type ResultAt<F> = F extends (input: infer I, options?: RequestOptions) => Promise<infer R> ? Omittable<I> extends true ? (input?: NonNullable<I>, options?: CallOptions) => Promise<Result<R>> : (input: I, options?: CallOptions) => Promise<Result<R>> : never;
|
|
43
|
+
type Stream0<F> = F extends (options?: RequestOptions) => AsyncIterable<infer R> ? (options?: CallOptions, overrides?: CallOptions) => Promise<{
|
|
44
|
+
stream: AsyncIterable<R>;
|
|
45
|
+
}> : never;
|
|
46
|
+
type StreamN<F> = F extends (input: infer I, options?: RequestOptions) => AsyncIterable<infer R> ? Omittable<I> extends true ? (input?: WithDirectory<NonNullable<I>>, options?: CallOptions) => Promise<{
|
|
47
|
+
stream: AsyncIterable<R>;
|
|
48
|
+
}> : (input: WithDirectory<I>, options?: CallOptions) => Promise<{
|
|
49
|
+
stream: AsyncIterable<R>;
|
|
50
|
+
}> : never;
|
|
51
|
+
type AnyFn = (...args: any[]) => any;
|
|
38
52
|
export type CompatDefaults = {
|
|
39
53
|
readonly throwOnError?: boolean;
|
|
40
54
|
};
|
|
55
|
+
declare function helpers(defaults: CompatDefaults): {
|
|
56
|
+
result0: <F extends AnyFn>(fn: F) => Result0<F>;
|
|
57
|
+
result: <F extends AnyFn>(fn: F) => ResultN<F>;
|
|
58
|
+
resultAt: <F extends AnyFn>(fn: F) => ResultAt<F>;
|
|
59
|
+
stream0: <F extends AnyFn>(fn: F) => Stream0<F>;
|
|
60
|
+
stream: <F extends AnyFn>(fn: F) => StreamN<F>;
|
|
61
|
+
};
|
|
62
|
+
export type CompatHelpers = ReturnType<typeof helpers>;
|
|
41
63
|
export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
42
64
|
analytics: {
|
|
43
65
|
daily: (input?: (import("./client.js").AnalyticsDailyInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").AnalyticsDailyOutput>>;
|
|
@@ -220,9 +242,25 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
220
242
|
};
|
|
221
243
|
};
|
|
222
244
|
bootstrap: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileBootstrap>>;
|
|
245
|
+
brain: {
|
|
246
|
+
get: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileBrainStatusOutput>>;
|
|
247
|
+
trigger: (input: WithDirectory<import("./client.js").MobileBrainTriggerInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileBrainTriggerOutput>>;
|
|
248
|
+
};
|
|
249
|
+
chatbot: {
|
|
250
|
+
list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileChatBotListOutput>>;
|
|
251
|
+
start: (input: WithDirectory<import("./client.js").MobileChatBotStartInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileChatBotStartOutput>>;
|
|
252
|
+
stop: (input: WithDirectory<import("./client.js").MobileChatBotStopInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileChatBotStopOutput>>;
|
|
253
|
+
};
|
|
223
254
|
command: {
|
|
224
255
|
list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileCommandListOutput>>;
|
|
225
256
|
};
|
|
257
|
+
events: (options?: CallOptions, overrides?: CallOptions) => Promise<{
|
|
258
|
+
stream: AsyncIterable<unknown>;
|
|
259
|
+
}>;
|
|
260
|
+
fusion: {
|
|
261
|
+
list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileFusionListOutput>>;
|
|
262
|
+
set: (input: WithDirectory<import("./client.js").MobileFusionSetInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileFusionSetOutput>>;
|
|
263
|
+
};
|
|
226
264
|
git: {
|
|
227
265
|
branches: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileGitBranchesOutput>>;
|
|
228
266
|
checkout: (input: WithDirectory<import("./client.js").MobileGitCheckoutInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
@@ -260,6 +298,19 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
260
298
|
publish: (input: WithDirectory<import("./client.js").MobileSessionPublishInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileGithubPublishResult>>;
|
|
261
299
|
};
|
|
262
300
|
};
|
|
301
|
+
host: {
|
|
302
|
+
browser: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileHostBrowserOutput>>;
|
|
303
|
+
computer: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileHostComputerOutput>>;
|
|
304
|
+
devtools: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileHostDevtoolsOutput>>;
|
|
305
|
+
herdr: {
|
|
306
|
+
get: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileHostHerdrGetOutput>>;
|
|
307
|
+
set: (input: WithDirectory<import("./client.js").MobileHostHerdrSetInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileHostHerdrSetOutput>>;
|
|
308
|
+
};
|
|
309
|
+
island: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileHostIslandOutput>>;
|
|
310
|
+
};
|
|
311
|
+
lsp: {
|
|
312
|
+
status: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileLspStatusOutput>>;
|
|
313
|
+
};
|
|
263
314
|
loop: {
|
|
264
315
|
abort: (input: WithDirectory<import("./client.js").MobileLoopAbortInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
265
316
|
create: (input: WithDirectory<import("./client.js").MobileLoopCreateInput>, options?: CallOptions) => Promise<Result<import("./client.js").LoopDefinition>>;
|
|
@@ -287,6 +338,29 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
287
338
|
list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileMemoryStashListOutput>>;
|
|
288
339
|
};
|
|
289
340
|
};
|
|
341
|
+
mission: {
|
|
342
|
+
cancel: (input: WithDirectory<import("./client.js").MobileMissionCancelInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
343
|
+
create: (input: WithDirectory<import("./client.js").MobileMissionCreateInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileMissionDefinition>>;
|
|
344
|
+
delete: (input: WithDirectory<import("./client.js").MobileMissionDeleteInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
345
|
+
execs: (input: WithDirectory<import("./client.js").MobileMissionExecsInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileMissionExecsOutput>>;
|
|
346
|
+
execs2: {
|
|
347
|
+
recent: (input?: (import("./client.js").MobileMissionExecsRecentInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").MobileMissionExecsRecentOutput>>;
|
|
348
|
+
};
|
|
349
|
+
feature: {
|
|
350
|
+
mutate: (input: WithDirectory<import("./client.js").MobileMissionFeatureMutateInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileMissionDefinition>>;
|
|
351
|
+
};
|
|
352
|
+
generate: (input: WithDirectory<import("./client.js").MobileMissionGenerateInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileMissionDefinition>>;
|
|
353
|
+
get: (input: WithDirectory<import("./client.js").MobileMissionGetInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileMissionGetOutput>>;
|
|
354
|
+
list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileMissionListOutput>>;
|
|
355
|
+
pause: (input: WithDirectory<import("./client.js").MobileMissionPauseInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
356
|
+
start: (input: WithDirectory<import("./client.js").MobileMissionStartInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
357
|
+
templates: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileMissionTemplatesOutput>>;
|
|
358
|
+
update: (input: WithDirectory<import("./client.js").MobileMissionUpdateInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileMissionDefinition>>;
|
|
359
|
+
};
|
|
360
|
+
observability: {
|
|
361
|
+
get: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").MobileObservabilityGetOutput>>;
|
|
362
|
+
set: (input: WithDirectory<import("./client.js").MobileObservabilitySetInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileObservabilitySetOutput>>;
|
|
363
|
+
};
|
|
290
364
|
permission: {
|
|
291
365
|
respond: (input: WithDirectory<import("./client.js").MobilePermissionRespondInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
292
366
|
};
|
|
@@ -339,11 +413,12 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
339
413
|
chunk: (input: WithDirectory<import("./client.js").MobileTeleportUploadChunkInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileTeleportUploadChunkOutput>>;
|
|
340
414
|
};
|
|
341
415
|
};
|
|
416
|
+
todo: (input: WithDirectory<import("./client.js").MobileSessionTodoInput>, options?: CallOptions) => Promise<Result<import("./client.js").MobileSessionTodoOutput>>;
|
|
342
417
|
};
|
|
343
418
|
worktree: {
|
|
344
419
|
create: (input?: (import("./client.js").MobileWorktreeCreateInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").Worktree>>;
|
|
345
|
-
remove: (input:
|
|
346
|
-
reset: (input:
|
|
420
|
+
remove: (input: import("./client.js").MobileWorktreeRemoveInput, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
421
|
+
reset: (input: import("./client.js").MobileWorktreeResetInput, options?: CallOptions) => Promise<Result<import("./client.js").MobileSuccess>>;
|
|
347
422
|
};
|
|
348
423
|
};
|
|
349
424
|
part: {
|
|
@@ -375,6 +450,14 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
375
450
|
};
|
|
376
451
|
project: {
|
|
377
452
|
current: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").Project>>;
|
|
453
|
+
copy: {
|
|
454
|
+
create: (input: import("./client.js").ProjectCopyCreateInput, options?: CallOptions) => Promise<Result<import("./client.js").ProjectCopy>>;
|
|
455
|
+
refresh: (input: WithDirectory<import("./client.js").ProjectCopyRefreshInput>, options?: CallOptions) => Promise<Result<import("./client.js").ProjectCopyRefresh>>;
|
|
456
|
+
remove: (input: import("./client.js").ProjectCopyRemoveInput, options?: CallOptions) => Promise<Result<void>>;
|
|
457
|
+
};
|
|
458
|
+
directory: {
|
|
459
|
+
list: (input: WithDirectory<import("./client.js").ProjectDirectoryListInput>, options?: CallOptions) => Promise<Result<import("./client.js").ProjectDirectoryListOutput>>;
|
|
460
|
+
};
|
|
378
461
|
list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").ProjectListOutput>>;
|
|
379
462
|
update: (input: WithDirectory<import("./client.js").ProjectUpdateInput>, options?: CallOptions) => Promise<Result<import("./client.js").Project>>;
|
|
380
463
|
};
|
|
@@ -425,6 +508,7 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
425
508
|
instructions: (input: WithDirectory<import("./client.js").SessionInstructionsInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionInstructionList>>;
|
|
426
509
|
list: (input?: import("./client.js").SessionListInput | undefined, options?: CallOptions) => Promise<Result<import("./client.js").SessionList>>;
|
|
427
510
|
message: (input: WithDirectory<import("./client.js").SessionMessageInput>, options?: CallOptions) => Promise<Result<import("./client.js").MessageWithParts>>;
|
|
511
|
+
messageDelete: (input: WithDirectory<import("./client.js").SessionMessageRemoveInput>, options?: CallOptions) => Promise<Result<boolean>>;
|
|
428
512
|
messages: (input: WithDirectory<import("./client.js").SessionMessagesInput>, options?: CallOptions) => Promise<Result<import("./client.js").MessageList>>;
|
|
429
513
|
monitor: (input: WithDirectory<import("./client.js").SessionMonitorInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionMonitorOutput2>>;
|
|
430
514
|
monitorCancel: (input: WithDirectory<import("./client.js").SessionMonitorCancelInput>, options?: CallOptions) => Promise<Result<import("./client.js").SessionMonitorOutput2>>;
|
|
@@ -505,5 +589,9 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
505
589
|
remove: (input: import("./client.js").ExperimentalWorktreeRemoveInput, options?: CallOptions) => Promise<Result<boolean>>;
|
|
506
590
|
reset: (input: import("./client.js").ExperimentalWorktreeResetInput, options?: CallOptions) => Promise<Result<boolean>>;
|
|
507
591
|
};
|
|
592
|
+
getAccount: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<unknown>>;
|
|
593
|
+
getConfigProfiles: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").ConfigProfilesList>>;
|
|
594
|
+
postAccountLogin: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<unknown>>;
|
|
595
|
+
postAccountLoginComplete: (input: WithDirectory<import("./client.js").AccountCompleteInput>, options?: CallOptions) => Promise<Result<unknown>>;
|
|
508
596
|
};
|
|
509
597
|
export {};
|
package/dist/httpapi/compat.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// Namespaced view of the generated Promise client, keyed the way callers are.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
3
|
+
// Generated from the exhaustive declaration beside PublicApi. Every leaf is a
|
|
4
|
+
// typed reference into `./generated/client.ts`, so contract drift fails client
|
|
5
|
+
// generation instead of disappearing from this view or becoming a runtime 404.
|
|
6
6
|
// See packages/nikcli/AGENTS.md, "HTTP integration workflow".
|
|
7
7
|
import { ClientError } from "./generated/client-error.js";
|
|
8
|
+
import { makeCompat } from "./generated/compat.js";
|
|
8
9
|
function helpers(defaults) {
|
|
9
10
|
/**
|
|
10
11
|
* Splits the caller's options into the transport options the generated client
|
|
@@ -68,465 +69,5 @@ function helpers(defaults) {
|
|
|
68
69
|
return { result0, result, resultAt, stream0, stream };
|
|
69
70
|
}
|
|
70
71
|
export function compat(raw, defaults = {}) {
|
|
71
|
-
|
|
72
|
-
return {
|
|
73
|
-
analytics: {
|
|
74
|
-
daily: result(raw.analytics.daily),
|
|
75
|
-
data: result(raw.analytics.data),
|
|
76
|
-
global: result0(raw.analytics.global),
|
|
77
|
-
leaderboard: result0(raw.analytics.leaderboard),
|
|
78
|
-
session: result(raw.analytics.session),
|
|
79
|
-
sessions: result0(raw.analytics.sessions),
|
|
80
|
-
},
|
|
81
|
-
app: {
|
|
82
|
-
agents: result0(raw["top-level"].agent),
|
|
83
|
-
log: result(raw.app.log),
|
|
84
|
-
skill: {
|
|
85
|
-
create: result(raw.app.skillCreate),
|
|
86
|
-
delete: result(raw.app.skillDelete),
|
|
87
|
-
},
|
|
88
|
-
skills: result0(raw["top-level"].skill),
|
|
89
|
-
},
|
|
90
|
-
auth: {
|
|
91
|
-
remove: result(raw.auth.remove),
|
|
92
|
-
set: result(raw.auth.set),
|
|
93
|
-
},
|
|
94
|
-
brain: {
|
|
95
|
-
status: result0(raw.brain.status),
|
|
96
|
-
trigger: result(raw.brain.trigger),
|
|
97
|
-
},
|
|
98
|
-
chatbot: {
|
|
99
|
-
bots: result0(raw.chatbot.bots),
|
|
100
|
-
start: result(raw.chatbot.start),
|
|
101
|
-
stop: result(raw.chatbot.stop),
|
|
102
|
-
},
|
|
103
|
-
discord: {
|
|
104
|
-
status: result0(raw.discord.status),
|
|
105
|
-
setup: result(raw.discord.setup),
|
|
106
|
-
start: result0(raw.discord.start),
|
|
107
|
-
stop: result0(raw.discord.stop),
|
|
108
|
-
},
|
|
109
|
-
voice: {
|
|
110
|
-
transcribe: result(raw.voice.transcribe),
|
|
111
|
-
},
|
|
112
|
-
command: {
|
|
113
|
-
list: result0(raw["top-level"].command),
|
|
114
|
-
},
|
|
115
|
-
config: {
|
|
116
|
-
get: result0(raw.config.get),
|
|
117
|
-
providers: result0(raw.config.providers),
|
|
118
|
-
reload: result0(raw["config-management"].reload),
|
|
119
|
-
update: result(raw.config.update),
|
|
120
|
-
},
|
|
121
|
-
connectors: {
|
|
122
|
-
auth: {
|
|
123
|
-
remove: result(raw.connectors.authRemove),
|
|
124
|
-
set: result(raw.connectors.authSet),
|
|
125
|
-
},
|
|
126
|
-
invalidate: result(raw.connectors.invalidate),
|
|
127
|
-
status: result0(raw.connectors.status),
|
|
128
|
-
},
|
|
129
|
-
deleteConfigMcpName: result(raw["config-management"].mcpRemove),
|
|
130
|
-
doctor: {
|
|
131
|
-
run: result0(raw.doctor.run),
|
|
132
|
-
},
|
|
133
|
-
event: {
|
|
134
|
-
subscribe: stream0(raw.events.subscribe),
|
|
135
|
-
},
|
|
136
|
-
experimental: {
|
|
137
|
-
resource: {
|
|
138
|
-
list: result0(raw.experimental.resource),
|
|
139
|
-
},
|
|
140
|
-
workspace: {
|
|
141
|
-
adaptor: {
|
|
142
|
-
list: result0(raw.workspace.adaptors),
|
|
143
|
-
},
|
|
144
|
-
create: result(raw.workspace.create),
|
|
145
|
-
events: result(raw["workspace-extra"].events),
|
|
146
|
-
list: result0(raw.workspace.list),
|
|
147
|
-
remove: result(raw.workspace.remove),
|
|
148
|
-
restore: result(raw.workspace.restore),
|
|
149
|
-
session: {
|
|
150
|
-
restore: result(raw.workspace.sessionRestore),
|
|
151
|
-
warp: result(raw["workspace-extra"].sessionWarp),
|
|
152
|
-
},
|
|
153
|
-
status: result0(raw.workspace.status),
|
|
154
|
-
syncList: result0(raw.workspace.syncList),
|
|
155
|
-
warp: result(raw.workspace.warp),
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
file: {
|
|
159
|
-
list: result(raw.file.list),
|
|
160
|
-
read: result(raw.file.content),
|
|
161
|
-
status: result0(raw.file.status),
|
|
162
|
-
write: result(raw.file.write),
|
|
163
|
-
},
|
|
164
|
-
find: {
|
|
165
|
-
files: result(raw.file.findFile),
|
|
166
|
-
symbols: result(raw.file.findSymbol),
|
|
167
|
-
text: result(raw.file.findText),
|
|
168
|
-
},
|
|
169
|
-
formatter: {
|
|
170
|
-
status: result0(raw["top-level"].formatter),
|
|
171
|
-
},
|
|
172
|
-
getApiShareShareId: result(raw.share.api),
|
|
173
|
-
getApiShareShareIdData: result(raw.share.data),
|
|
174
|
-
getShareShareId: result(raw.share.page),
|
|
175
|
-
getSShareId: result(raw.share.short),
|
|
176
|
-
global: {
|
|
177
|
-
dispose: result0(raw.global.dispose),
|
|
178
|
-
event: stream0(raw.events.global),
|
|
179
|
-
health: result0(raw.global.health),
|
|
180
|
-
},
|
|
181
|
-
instance: {
|
|
182
|
-
dispose: result0(raw["top-level"].dispose),
|
|
183
|
-
},
|
|
184
|
-
loop: {
|
|
185
|
-
abort: result(raw.loop.abort),
|
|
186
|
-
delete: result(raw.loop.remove),
|
|
187
|
-
generate: result(raw.loop.generate),
|
|
188
|
-
get: result(raw.loop.get),
|
|
189
|
-
list: result0(raw.loop.list),
|
|
190
|
-
pause: result(raw.loop.pause),
|
|
191
|
-
recentRuns: result(raw.loop.recentRuns),
|
|
192
|
-
resume: result(raw.loop.resume),
|
|
193
|
-
run: result(raw.loop.run),
|
|
194
|
-
runs: result(raw.loop.runs),
|
|
195
|
-
templates: result0(raw.loop.templates),
|
|
196
|
-
toggle: result(raw.loop.toggle),
|
|
197
|
-
update: result(raw.loop.update),
|
|
198
|
-
upsert: result(raw.loop.upsert),
|
|
199
|
-
},
|
|
200
|
-
lsp: {
|
|
201
|
-
status: result0(raw["top-level"].lsp),
|
|
202
|
-
},
|
|
203
|
-
managedWorktree: {
|
|
204
|
-
ancestors: result(raw.experimental.managedWorktreeAncestors),
|
|
205
|
-
children: result(raw.experimental.managedWorktreeChildren),
|
|
206
|
-
create: result(raw.experimental.managedWorktreeCreate),
|
|
207
|
-
link: result(raw.experimental.managedWorktreeLink),
|
|
208
|
-
list: result0(raw.experimental.managedWorktreeList),
|
|
209
|
-
remove: result(raw.experimental.managedWorktreeRemove),
|
|
210
|
-
},
|
|
211
|
-
mcp: {
|
|
212
|
-
add: result(raw.mcp.add),
|
|
213
|
-
auth: {
|
|
214
|
-
authenticate: result(raw.mcp.authenticate),
|
|
215
|
-
callback: result(raw.mcp.authCallback),
|
|
216
|
-
remove: result(raw.mcp.removeAuth),
|
|
217
|
-
start: result(raw.mcp.startAuth),
|
|
218
|
-
},
|
|
219
|
-
connect: result(raw.mcp.connect),
|
|
220
|
-
disconnect: result(raw.mcp.disconnect),
|
|
221
|
-
status: result0(raw.mcp.status),
|
|
222
|
-
toggle: result(raw.mcp.toggle),
|
|
223
|
-
},
|
|
224
|
-
mission: {
|
|
225
|
-
cancel: result(raw.mission.cancel),
|
|
226
|
-
delete: result(raw.mission.remove),
|
|
227
|
-
execs: result(raw.mission.execs),
|
|
228
|
-
feature: {
|
|
229
|
-
mutate: result(raw.mission.featureMutate),
|
|
230
|
-
},
|
|
231
|
-
generate: result(raw.mission.generate),
|
|
232
|
-
get: result(raw.mission.get),
|
|
233
|
-
list: result0(raw.mission.list),
|
|
234
|
-
pause: result(raw.mission.pause),
|
|
235
|
-
recentExecs: result(raw.mission.recentExecs),
|
|
236
|
-
start: result(raw.mission.start),
|
|
237
|
-
templates: result0(raw.mission.templates),
|
|
238
|
-
update: result(raw.mission.update),
|
|
239
|
-
upsert: result(raw.mission.upsert),
|
|
240
|
-
},
|
|
241
|
-
mobile: {
|
|
242
|
-
auth: {
|
|
243
|
-
token: {
|
|
244
|
-
create: result(raw.mobile.authTokenCreate),
|
|
245
|
-
list: result0(raw.mobile.authTokenList),
|
|
246
|
-
revoke: result(raw.mobile.authTokenRevoke),
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
bootstrap: result0(raw.mobile.bootstrap),
|
|
250
|
-
command: {
|
|
251
|
-
list: result0(raw.mobile.commandList),
|
|
252
|
-
},
|
|
253
|
-
git: {
|
|
254
|
-
branches: result0(raw.mobile.gitBranches),
|
|
255
|
-
checkout: result(raw.mobile.gitCheckout),
|
|
256
|
-
commit: result(raw.mobile.gitCommit),
|
|
257
|
-
commits: result(raw.mobile.gitCommits),
|
|
258
|
-
diff: result(raw.mobile.gitDiff),
|
|
259
|
-
discard: result(raw.mobile.gitDiscard),
|
|
260
|
-
pull: result0(raw.mobile.gitPull),
|
|
261
|
-
push: result(raw.mobile.gitPush),
|
|
262
|
-
stage: result(raw.mobile.gitStage),
|
|
263
|
-
status: result0(raw.mobile.gitStatus),
|
|
264
|
-
unstage: result(raw.mobile.gitUnstage),
|
|
265
|
-
},
|
|
266
|
-
github: {
|
|
267
|
-
auth: {
|
|
268
|
-
remove: result0(raw.mobile.githubAuthRemove),
|
|
269
|
-
set: result(raw.mobile.githubAuthSet),
|
|
270
|
-
},
|
|
271
|
-
branches: result(raw.mobile.githubBranches),
|
|
272
|
-
import: result(raw.mobile.githubImport),
|
|
273
|
-
imports: result0(raw.mobile.githubImports),
|
|
274
|
-
oauth: {
|
|
275
|
-
clientId: {
|
|
276
|
-
set: result(raw.mobile.githubOauthClient),
|
|
277
|
-
},
|
|
278
|
-
device: {
|
|
279
|
-
poll: result(raw.mobile.githubOauthDevicePoll),
|
|
280
|
-
start: result0(raw.mobile.githubOauthDeviceStart),
|
|
281
|
-
},
|
|
282
|
-
},
|
|
283
|
-
repos: result0(raw.mobile.githubRepos),
|
|
284
|
-
session: {
|
|
285
|
-
cleanup: result(raw.mobile.sessionCleanup),
|
|
286
|
-
create: result(raw.mobile.githubSessionCreate),
|
|
287
|
-
publish: result(raw.mobile.sessionPublish),
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
loop: {
|
|
291
|
-
abort: result(raw.mobile.loopAbort),
|
|
292
|
-
create: result(raw.mobile.loopCreate),
|
|
293
|
-
delete: result(raw.mobile.loopDelete),
|
|
294
|
-
generate: result(raw.mobile.loopGenerate),
|
|
295
|
-
get: result(raw.mobile.loopGet),
|
|
296
|
-
list: result0(raw.mobile.loopList),
|
|
297
|
-
pause: result(raw.mobile.loopPause),
|
|
298
|
-
resume: result(raw.mobile.loopResume),
|
|
299
|
-
run: result(raw.mobile.loopRun),
|
|
300
|
-
runs: result(raw.mobile.loopRuns),
|
|
301
|
-
runs2: {
|
|
302
|
-
recent: result(raw.mobile.loopRunsRecent),
|
|
303
|
-
},
|
|
304
|
-
templates: result0(raw.mobile.loopTemplates),
|
|
305
|
-
toggle: result(raw.mobile.loopToggle),
|
|
306
|
-
update: result(raw.mobile.loopUpdate),
|
|
307
|
-
},
|
|
308
|
-
memory: {
|
|
309
|
-
history: result0(raw.mobile.memoryHistory),
|
|
310
|
-
search: result(raw.mobile.memorySearch),
|
|
311
|
-
stash: {
|
|
312
|
-
create: result(raw.mobile.memoryStashCreate),
|
|
313
|
-
delete: result(raw.mobile.memoryStashDelete),
|
|
314
|
-
list: result0(raw.mobile.memoryStashList),
|
|
315
|
-
},
|
|
316
|
-
},
|
|
317
|
-
permission: {
|
|
318
|
-
respond: result(raw.mobile.permissionRespond),
|
|
319
|
-
},
|
|
320
|
-
project: {
|
|
321
|
-
list: result0(raw.mobile.projectList),
|
|
322
|
-
},
|
|
323
|
-
pty: {
|
|
324
|
-
create: result(raw.mobile.ptyCreate),
|
|
325
|
-
get: result(raw.mobile.ptyGet),
|
|
326
|
-
list: result0(raw.mobile.ptyList),
|
|
327
|
-
remove: result(raw.mobile.ptyRemove),
|
|
328
|
-
update: result(raw.mobile.ptyUpdate),
|
|
329
|
-
},
|
|
330
|
-
question: {
|
|
331
|
-
reject: result(raw.mobile.questionReject),
|
|
332
|
-
respond: result(raw.mobile.questionRespond),
|
|
333
|
-
},
|
|
334
|
-
routine: {
|
|
335
|
-
create: result(raw.mobile.routineCreate),
|
|
336
|
-
delete: result(raw.mobile.routineDelete),
|
|
337
|
-
get: result(raw.mobile.routineGet),
|
|
338
|
-
list: result0(raw.mobile.routineList),
|
|
339
|
-
pause: result(raw.mobile.routinePause),
|
|
340
|
-
resume: result(raw.mobile.routineResume),
|
|
341
|
-
run: result(raw.mobile.routineRun),
|
|
342
|
-
trigger: result(raw.mobile.routineTrigger),
|
|
343
|
-
update: result(raw.mobile.routineUpdate),
|
|
344
|
-
},
|
|
345
|
-
session: {
|
|
346
|
-
abort: result(raw.mobile.sessionAbort),
|
|
347
|
-
command: result(raw.mobile.sessionCommand),
|
|
348
|
-
command2: {
|
|
349
|
-
list: result(raw.mobile.sessionCommandList),
|
|
350
|
-
},
|
|
351
|
-
create: result(raw.mobile.sessionCreate),
|
|
352
|
-
delete: result(raw.mobile.sessionDelete),
|
|
353
|
-
detail: result(raw.mobile.sessionDetail),
|
|
354
|
-
diff: result(raw.mobile.sessionDiff),
|
|
355
|
-
list: result(raw.mobile.sessionList),
|
|
356
|
-
message: result(raw.mobile.sessionMessage),
|
|
357
|
-
rename: result(raw.mobile.sessionRename),
|
|
358
|
-
stream: stream(raw.mobile.sessionStream),
|
|
359
|
-
teleport: result(raw.mobile.teleportIn),
|
|
360
|
-
teleport2: {
|
|
361
|
-
out: result(raw.mobile.teleportOut),
|
|
362
|
-
upload: {
|
|
363
|
-
begin: result0(raw.mobile.teleportUploadBegin),
|
|
364
|
-
chunk: result(raw.mobile.teleportUploadChunk),
|
|
365
|
-
},
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
worktree: {
|
|
369
|
-
create: result(raw.mobile.worktreeCreate),
|
|
370
|
-
remove: result(raw.mobile.worktreeRemove),
|
|
371
|
-
reset: result(raw.mobile.worktreeReset),
|
|
372
|
-
},
|
|
373
|
-
},
|
|
374
|
-
part: {
|
|
375
|
-
delete: result(raw.session.partRemove),
|
|
376
|
-
update: result(raw.session.partUpdate),
|
|
377
|
-
},
|
|
378
|
-
patchConfigMcpName: result(raw["config-management"].mcpUpdate),
|
|
379
|
-
patchUserId: result(raw.users.update),
|
|
380
|
-
path: {
|
|
381
|
-
get: result0(raw["top-level"].path),
|
|
382
|
-
},
|
|
383
|
-
permission: {
|
|
384
|
-
list: result0(raw.permission.list),
|
|
385
|
-
reply: result(raw.permission.reply),
|
|
386
|
-
respond: result(raw.session.permissionRespond),
|
|
387
|
-
},
|
|
388
|
-
postConfigMcp: result(raw["config-management"].mcpAdd),
|
|
389
|
-
postConfigProfiles: result(raw["config-management"].profileCreate),
|
|
390
|
-
postConfigProfilesActivateName: result(raw["config-management"].profileActivate),
|
|
391
|
-
postUserLogin: result(raw.users.login),
|
|
392
|
-
postUserRegister: result(raw.users.register),
|
|
393
|
-
profile: {
|
|
394
|
-
clear: result0(raw.profile.clear),
|
|
395
|
-
clearHabits: result(raw.profile.clearHabits),
|
|
396
|
-
get: result0(raw.profile.get),
|
|
397
|
-
habits: result(raw.profile.habits),
|
|
398
|
-
patch: result(raw.profile.patch),
|
|
399
|
-
preview: result(raw.profile.preview),
|
|
400
|
-
},
|
|
401
|
-
project: {
|
|
402
|
-
current: result0(raw.project.current),
|
|
403
|
-
list: result0(raw.project.list),
|
|
404
|
-
update: result(raw.project.update),
|
|
405
|
-
},
|
|
406
|
-
provider: {
|
|
407
|
-
api: {
|
|
408
|
-
set: result(raw.provider.api),
|
|
409
|
-
},
|
|
410
|
-
auth: result0(raw.provider.auth),
|
|
411
|
-
auth2: {
|
|
412
|
-
remove: result(raw.provider.removeAuth),
|
|
413
|
-
},
|
|
414
|
-
list: result0(raw.provider.list),
|
|
415
|
-
oauth: {
|
|
416
|
-
authorize: result(raw.provider.oauthAuthorize),
|
|
417
|
-
callback: result(raw.provider.oauthCallback),
|
|
418
|
-
},
|
|
419
|
-
},
|
|
420
|
-
pty: {
|
|
421
|
-
create: result(raw.pty.create),
|
|
422
|
-
get: result(raw.pty.get),
|
|
423
|
-
list: result0(raw.pty.list),
|
|
424
|
-
remove: result(raw.pty.remove),
|
|
425
|
-
update: result(raw.pty.update),
|
|
426
|
-
},
|
|
427
|
-
question: {
|
|
428
|
-
list: result0(raw.question.list),
|
|
429
|
-
reject: result(raw.question.reject),
|
|
430
|
-
reply: result(raw.question.reply),
|
|
431
|
-
},
|
|
432
|
-
session: {
|
|
433
|
-
abort: result(raw.session.abort),
|
|
434
|
-
background: result(raw.session.background),
|
|
435
|
-
background2: {
|
|
436
|
-
cancel: result(raw.session.backgroundCancel),
|
|
437
|
-
inspect: result(raw.session.backgroundInspect),
|
|
438
|
-
read: result(raw.session.backgroundRead),
|
|
439
|
-
},
|
|
440
|
-
children: result(raw.session.children),
|
|
441
|
-
command: result(raw.session.command),
|
|
442
|
-
context: result(raw.session.contextBreakdown),
|
|
443
|
-
contextToggle: result(raw.session.contextToggle),
|
|
444
|
-
create: result(raw.session.create),
|
|
445
|
-
delete: result(raw.session.remove),
|
|
446
|
-
diff: result(raw.session.diff),
|
|
447
|
-
fork: result(raw.session.fork),
|
|
448
|
-
get: result(raw.session.get),
|
|
449
|
-
goal: result(raw.session.goal),
|
|
450
|
-
instructions: result(raw.session.instructions),
|
|
451
|
-
list: resultAt(raw.session.list),
|
|
452
|
-
message: result(raw.session.message),
|
|
453
|
-
messages: result(raw.session.messages),
|
|
454
|
-
monitor: result(raw.session.monitor),
|
|
455
|
-
monitorCancel: result(raw.session.monitorCancel),
|
|
456
|
-
monitorLog: result(raw.session.monitorLog),
|
|
457
|
-
pending: result(raw.session.pending),
|
|
458
|
-
pendingSteer: result(raw.session.pendingSteer),
|
|
459
|
-
prompt: result(raw["session-prompt"].prompt),
|
|
460
|
-
promptAsync: result(raw["session-prompt"].promptAsync),
|
|
461
|
-
revert: result(raw.session.revert),
|
|
462
|
-
share: result(raw.session.share),
|
|
463
|
-
shell: result(raw.session.shell),
|
|
464
|
-
status: result0(raw.session.status),
|
|
465
|
-
summarize: result(raw.session.summarize),
|
|
466
|
-
todo: result(raw.session.todo),
|
|
467
|
-
unrevert: result(raw.session.unrevert),
|
|
468
|
-
unshare: result(raw.session.unshare),
|
|
469
|
-
update: result(raw.session.update),
|
|
470
|
-
v2: {
|
|
471
|
-
entries: result(raw.session.v2Entries),
|
|
472
|
-
events: result(raw.session.v2Events),
|
|
473
|
-
state: result(raw.session.v2State),
|
|
474
|
-
},
|
|
475
|
-
},
|
|
476
|
-
sync: {
|
|
477
|
-
config: {
|
|
478
|
-
set: result(raw.sync.config),
|
|
479
|
-
},
|
|
480
|
-
connect: result0(raw.sync.connect),
|
|
481
|
-
disconnect: result0(raw.sync.disconnect),
|
|
482
|
-
drain: result0(raw.sync.drain),
|
|
483
|
-
event: {
|
|
484
|
-
push: result(raw.sync.event),
|
|
485
|
-
stream: stream(raw.sync.stream),
|
|
486
|
-
},
|
|
487
|
-
outbox: {
|
|
488
|
-
list: result(raw.sync.outbox),
|
|
489
|
-
},
|
|
490
|
-
snapshot: {
|
|
491
|
-
get: result(raw.sync.snapshot),
|
|
492
|
-
},
|
|
493
|
-
stats: result(raw.sync.stats),
|
|
494
|
-
},
|
|
495
|
-
tool: {
|
|
496
|
-
ids: result0(raw.experimental.toolIDs),
|
|
497
|
-
list: result(raw.experimental.tools),
|
|
498
|
-
},
|
|
499
|
-
tui: {
|
|
500
|
-
appendPrompt: result(raw.tui.appendPrompt),
|
|
501
|
-
clearPrompt: result0(raw.tui.clearPrompt),
|
|
502
|
-
config: result0(raw.tui.config),
|
|
503
|
-
control: {
|
|
504
|
-
next: result0(raw.tui.controlNext),
|
|
505
|
-
response: result(raw.tui.controlResponse),
|
|
506
|
-
},
|
|
507
|
-
executeCommand: result(raw.tui.executeCommand),
|
|
508
|
-
openHelp: result0(raw.tui.openHelp),
|
|
509
|
-
openModels: result0(raw.tui.openModels),
|
|
510
|
-
openSessions: result0(raw.tui.openSessions),
|
|
511
|
-
openThemes: result0(raw.tui.openThemes),
|
|
512
|
-
publish: result(raw.tui.publish),
|
|
513
|
-
selectSession: result(raw.tui.selectSession),
|
|
514
|
-
showToast: result(raw.tui.showToast),
|
|
515
|
-
submitPrompt: result0(raw.tui.submitPrompt),
|
|
516
|
-
},
|
|
517
|
-
vcs: {
|
|
518
|
-
apply: result(raw["top-level"].vcsApply),
|
|
519
|
-
diff: {
|
|
520
|
-
raw: result0(raw["top-level"].vcsDiffRaw),
|
|
521
|
-
},
|
|
522
|
-
get: result0(raw["top-level"].vcs),
|
|
523
|
-
status: result0(raw["top-level"].vcsStatus),
|
|
524
|
-
},
|
|
525
|
-
worktree: {
|
|
526
|
-
create: result(raw.experimental.worktreeCreate),
|
|
527
|
-
list: result0(raw.experimental.worktree),
|
|
528
|
-
remove: resultAt(raw.experimental.worktreeRemove),
|
|
529
|
-
reset: resultAt(raw.experimental.worktreeReset),
|
|
530
|
-
},
|
|
531
|
-
};
|
|
72
|
+
return makeCompat(raw, helpers(defaults));
|
|
532
73
|
}
|