@kilocode/sdk 7.0.32 → 7.0.34
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/client.d.ts +4 -4
- package/dist/client.js +4 -4
- package/dist/gen/sdk.gen.d.ts +1 -1
- package/dist/gen/sdk.gen.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/server.d.ts +2 -2
- package/dist/server.js +2 -2
- package/dist/v2/client.d.ts +4 -4
- package/dist/v2/client.js +4 -4
- package/dist/v2/gen/sdk.gen.d.ts +2 -2
- package/dist/v2/gen/sdk.gen.js +3 -3
- package/dist/v2/gen/types.gen.d.ts +13 -413
- package/dist/v2/index.d.ts +2 -2
- package/dist/v2/index.js +5 -5
- package/dist/v2/server.d.ts +2 -2
- package/dist/v2/server.js +2 -2
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./gen/types.gen.js";
|
|
2
2
|
import { type Config } from "./gen/client/types.gen.js";
|
|
3
|
-
import {
|
|
4
|
-
export { type Config as
|
|
5
|
-
export declare function
|
|
3
|
+
import { KiloClient } from "./gen/sdk.gen.js";
|
|
4
|
+
export { type Config as KiloClientConfig, KiloClient };
|
|
5
|
+
export declare function createKiloClient(config?: Config & {
|
|
6
6
|
directory?: string;
|
|
7
|
-
}):
|
|
7
|
+
}): KiloClient;
|
package/dist/client.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./gen/types.gen.js";
|
|
2
2
|
import { createClient } from "./gen/client/client.gen.js";
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
export function
|
|
3
|
+
import { KiloClient } from "./gen/sdk.gen.js";
|
|
4
|
+
export { KiloClient };
|
|
5
|
+
export function createKiloClient(config) {
|
|
6
6
|
if (!config?.fetch) {
|
|
7
7
|
const customFetch = (req) => {
|
|
8
8
|
// @ts-ignore
|
|
@@ -21,5 +21,5 @@ export function createOpencodeClient(config) {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
const client = createClient(config);
|
|
24
|
-
return new
|
|
24
|
+
return new KiloClient({ client });
|
|
25
25
|
}
|
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -374,7 +374,7 @@ declare class Event extends _HeyApiClient {
|
|
|
374
374
|
*/
|
|
375
375
|
subscribe<ThrowOnError extends boolean = false>(options?: Options<EventSubscribeData, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
|
|
376
376
|
}
|
|
377
|
-
export declare class
|
|
377
|
+
export declare class KiloClient extends _HeyApiClient {
|
|
378
378
|
/**
|
|
379
379
|
* Respond to a permission request
|
|
380
380
|
*/
|
package/dist/gen/sdk.gen.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./client.js";
|
|
2
2
|
export * from "./server.js";
|
|
3
3
|
import type { ServerOptions } from "./server.js";
|
|
4
|
-
export declare function
|
|
5
|
-
client: import("./client.js").
|
|
4
|
+
export declare function createKilo(options?: ServerOptions): Promise<{
|
|
5
|
+
client: import("./client.js").KiloClient;
|
|
6
6
|
server: {
|
|
7
7
|
url: string;
|
|
8
8
|
close(): void;
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * from "./client.js";
|
|
2
2
|
export * from "./server.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export async function
|
|
6
|
-
const server = await
|
|
3
|
+
import { createKiloClient } from "./client.js";
|
|
4
|
+
import { createKiloServer } from "./server.js";
|
|
5
|
+
export async function createKilo(options) {
|
|
6
|
+
const server = await createKiloServer({
|
|
7
7
|
...options,
|
|
8
8
|
});
|
|
9
|
-
const client =
|
|
9
|
+
const client = createKiloClient({
|
|
10
10
|
baseUrl: server.url,
|
|
11
11
|
});
|
|
12
12
|
return {
|
package/dist/server.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ export type TuiOptions = {
|
|
|
15
15
|
signal?: AbortSignal;
|
|
16
16
|
config?: Config;
|
|
17
17
|
};
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function createKiloServer(options?: ServerOptions): Promise<{
|
|
19
19
|
url: string;
|
|
20
20
|
close(): void;
|
|
21
21
|
}>;
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function createKiloTui(options?: TuiOptions): {
|
|
23
23
|
close(): void;
|
|
24
24
|
};
|
package/dist/server.js
CHANGED
|
@@ -30,7 +30,7 @@ export function buildConfigEnv(config) {
|
|
|
30
30
|
const merged = mergeConfig(parseExistingConfig(), config);
|
|
31
31
|
return JSON.stringify(merged);
|
|
32
32
|
}
|
|
33
|
-
export async function
|
|
33
|
+
export async function createKiloServer(options) {
|
|
34
34
|
options = Object.assign({
|
|
35
35
|
hostname: "127.0.0.1",
|
|
36
36
|
port: 4096,
|
|
@@ -99,7 +99,7 @@ export async function createOpencodeServer(options) {
|
|
|
99
99
|
},
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
export function
|
|
102
|
+
export function createKiloTui(options) {
|
|
103
103
|
const args = [];
|
|
104
104
|
if (options?.project) {
|
|
105
105
|
args.push(`--project=${options.project}`);
|
package/dist/v2/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./gen/types.gen.js";
|
|
2
2
|
import { type Config } from "./gen/client/types.gen.js";
|
|
3
|
-
import {
|
|
4
|
-
export { type Config as
|
|
5
|
-
export declare function
|
|
3
|
+
import { KiloClient } from "./gen/sdk.gen.js";
|
|
4
|
+
export { type Config as KiloClientConfig, KiloClient };
|
|
5
|
+
export declare function createKiloClient(config?: Config & {
|
|
6
6
|
directory?: string;
|
|
7
|
-
}):
|
|
7
|
+
}): KiloClient;
|
package/dist/v2/client.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./gen/types.gen.js";
|
|
2
2
|
import { createClient } from "./gen/client/client.gen.js";
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
export function
|
|
3
|
+
import { KiloClient } from "./gen/sdk.gen.js";
|
|
4
|
+
export { KiloClient };
|
|
5
|
+
export function createKiloClient(config) {
|
|
6
6
|
if (!config?.fetch) {
|
|
7
7
|
const customFetch = (req) => {
|
|
8
8
|
// @ts-ignore
|
|
@@ -23,5 +23,5 @@ export function createOpencodeClient(config) {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
const client = createClient(config);
|
|
26
|
-
return new
|
|
26
|
+
return new KiloClient({ client });
|
|
27
27
|
}
|
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1204,8 +1204,8 @@ export declare class Event extends HeyApiClient {
|
|
|
1204
1204
|
directory?: string;
|
|
1205
1205
|
}, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
|
|
1206
1206
|
}
|
|
1207
|
-
export declare class
|
|
1208
|
-
static readonly __registry: HeyApiRegistry<
|
|
1207
|
+
export declare class KiloClient extends HeyApiClient {
|
|
1208
|
+
static readonly __registry: HeyApiRegistry<KiloClient>;
|
|
1209
1209
|
constructor(args?: {
|
|
1210
1210
|
client?: Client;
|
|
1211
1211
|
key?: string;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -13,7 +13,7 @@ class HeyApiRegistry {
|
|
|
13
13
|
get(key) {
|
|
14
14
|
const instance = this.instances.get(key ?? this.defaultKey);
|
|
15
15
|
if (!instance) {
|
|
16
|
-
throw new Error(`No SDK client found. Create one with "new
|
|
16
|
+
throw new Error(`No SDK client found. Create one with "new KiloClient()" to fix this error.`);
|
|
17
17
|
}
|
|
18
18
|
return instance;
|
|
19
19
|
}
|
|
@@ -2331,11 +2331,11 @@ export class Event extends HeyApiClient {
|
|
|
2331
2331
|
});
|
|
2332
2332
|
}
|
|
2333
2333
|
}
|
|
2334
|
-
export class
|
|
2334
|
+
export class KiloClient extends HeyApiClient {
|
|
2335
2335
|
static __registry = new HeyApiRegistry();
|
|
2336
2336
|
constructor(args) {
|
|
2337
2337
|
super(args);
|
|
2338
|
-
|
|
2338
|
+
KiloClient.__registry.set(this, args?.key);
|
|
2339
2339
|
}
|
|
2340
2340
|
_global;
|
|
2341
2341
|
get global() {
|
|
@@ -826,391 +826,6 @@ export type GlobalEvent = {
|
|
|
826
826
|
directory: string;
|
|
827
827
|
payload: Event;
|
|
828
828
|
};
|
|
829
|
-
/**
|
|
830
|
-
* Custom keybind configurations
|
|
831
|
-
*/
|
|
832
|
-
export type KeybindsConfig = {
|
|
833
|
-
/**
|
|
834
|
-
* Leader key for keybind combinations
|
|
835
|
-
*/
|
|
836
|
-
leader?: string;
|
|
837
|
-
/**
|
|
838
|
-
* Exit the application
|
|
839
|
-
*/
|
|
840
|
-
app_exit?: string;
|
|
841
|
-
/**
|
|
842
|
-
* Open external editor
|
|
843
|
-
*/
|
|
844
|
-
editor_open?: string;
|
|
845
|
-
/**
|
|
846
|
-
* List available themes
|
|
847
|
-
*/
|
|
848
|
-
theme_list?: string;
|
|
849
|
-
/**
|
|
850
|
-
* Toggle sidebar
|
|
851
|
-
*/
|
|
852
|
-
sidebar_toggle?: string;
|
|
853
|
-
/**
|
|
854
|
-
* Toggle session scrollbar
|
|
855
|
-
*/
|
|
856
|
-
scrollbar_toggle?: string;
|
|
857
|
-
/**
|
|
858
|
-
* Toggle username visibility
|
|
859
|
-
*/
|
|
860
|
-
username_toggle?: string;
|
|
861
|
-
/**
|
|
862
|
-
* View status
|
|
863
|
-
*/
|
|
864
|
-
status_view?: string;
|
|
865
|
-
/**
|
|
866
|
-
* Export session to editor
|
|
867
|
-
*/
|
|
868
|
-
session_export?: string;
|
|
869
|
-
/**
|
|
870
|
-
* Create a new session
|
|
871
|
-
*/
|
|
872
|
-
session_new?: string;
|
|
873
|
-
/**
|
|
874
|
-
* List all sessions
|
|
875
|
-
*/
|
|
876
|
-
session_list?: string;
|
|
877
|
-
/**
|
|
878
|
-
* Show session timeline
|
|
879
|
-
*/
|
|
880
|
-
session_timeline?: string;
|
|
881
|
-
/**
|
|
882
|
-
* Fork session from message
|
|
883
|
-
*/
|
|
884
|
-
session_fork?: string;
|
|
885
|
-
/**
|
|
886
|
-
* Rename session
|
|
887
|
-
*/
|
|
888
|
-
session_rename?: string;
|
|
889
|
-
/**
|
|
890
|
-
* Delete session
|
|
891
|
-
*/
|
|
892
|
-
session_delete?: string;
|
|
893
|
-
/**
|
|
894
|
-
* Delete stash entry
|
|
895
|
-
*/
|
|
896
|
-
stash_delete?: string;
|
|
897
|
-
/**
|
|
898
|
-
* Open provider list from model dialog
|
|
899
|
-
*/
|
|
900
|
-
model_provider_list?: string;
|
|
901
|
-
/**
|
|
902
|
-
* Toggle model favorite status
|
|
903
|
-
*/
|
|
904
|
-
model_favorite_toggle?: string;
|
|
905
|
-
/**
|
|
906
|
-
* Share current session
|
|
907
|
-
*/
|
|
908
|
-
session_share?: string;
|
|
909
|
-
/**
|
|
910
|
-
* Unshare current session
|
|
911
|
-
*/
|
|
912
|
-
session_unshare?: string;
|
|
913
|
-
/**
|
|
914
|
-
* Interrupt current session
|
|
915
|
-
*/
|
|
916
|
-
session_interrupt?: string;
|
|
917
|
-
/**
|
|
918
|
-
* Compact the session
|
|
919
|
-
*/
|
|
920
|
-
session_compact?: string;
|
|
921
|
-
/**
|
|
922
|
-
* Scroll messages up by one page
|
|
923
|
-
*/
|
|
924
|
-
messages_page_up?: string;
|
|
925
|
-
/**
|
|
926
|
-
* Scroll messages down by one page
|
|
927
|
-
*/
|
|
928
|
-
messages_page_down?: string;
|
|
929
|
-
/**
|
|
930
|
-
* Scroll messages up by one line
|
|
931
|
-
*/
|
|
932
|
-
messages_line_up?: string;
|
|
933
|
-
/**
|
|
934
|
-
* Scroll messages down by one line
|
|
935
|
-
*/
|
|
936
|
-
messages_line_down?: string;
|
|
937
|
-
/**
|
|
938
|
-
* Scroll messages up by half page
|
|
939
|
-
*/
|
|
940
|
-
messages_half_page_up?: string;
|
|
941
|
-
/**
|
|
942
|
-
* Scroll messages down by half page
|
|
943
|
-
*/
|
|
944
|
-
messages_half_page_down?: string;
|
|
945
|
-
/**
|
|
946
|
-
* Navigate to first message
|
|
947
|
-
*/
|
|
948
|
-
messages_first?: string;
|
|
949
|
-
/**
|
|
950
|
-
* Navigate to last message
|
|
951
|
-
*/
|
|
952
|
-
messages_last?: string;
|
|
953
|
-
/**
|
|
954
|
-
* Navigate to next message
|
|
955
|
-
*/
|
|
956
|
-
messages_next?: string;
|
|
957
|
-
/**
|
|
958
|
-
* Navigate to previous message
|
|
959
|
-
*/
|
|
960
|
-
messages_previous?: string;
|
|
961
|
-
/**
|
|
962
|
-
* Navigate to last user message
|
|
963
|
-
*/
|
|
964
|
-
messages_last_user?: string;
|
|
965
|
-
/**
|
|
966
|
-
* Copy message
|
|
967
|
-
*/
|
|
968
|
-
messages_copy?: string;
|
|
969
|
-
/**
|
|
970
|
-
* Undo message
|
|
971
|
-
*/
|
|
972
|
-
messages_undo?: string;
|
|
973
|
-
/**
|
|
974
|
-
* Redo message
|
|
975
|
-
*/
|
|
976
|
-
messages_redo?: string;
|
|
977
|
-
/**
|
|
978
|
-
* Toggle code block concealment in messages
|
|
979
|
-
*/
|
|
980
|
-
messages_toggle_conceal?: string;
|
|
981
|
-
/**
|
|
982
|
-
* Toggle tool details visibility
|
|
983
|
-
*/
|
|
984
|
-
tool_details?: string;
|
|
985
|
-
/**
|
|
986
|
-
* List available models
|
|
987
|
-
*/
|
|
988
|
-
model_list?: string;
|
|
989
|
-
/**
|
|
990
|
-
* Next recently used model
|
|
991
|
-
*/
|
|
992
|
-
model_cycle_recent?: string;
|
|
993
|
-
/**
|
|
994
|
-
* Previous recently used model
|
|
995
|
-
*/
|
|
996
|
-
model_cycle_recent_reverse?: string;
|
|
997
|
-
/**
|
|
998
|
-
* Next favorite model
|
|
999
|
-
*/
|
|
1000
|
-
model_cycle_favorite?: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* Previous favorite model
|
|
1003
|
-
*/
|
|
1004
|
-
model_cycle_favorite_reverse?: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* List available commands
|
|
1007
|
-
*/
|
|
1008
|
-
command_list?: string;
|
|
1009
|
-
/**
|
|
1010
|
-
* List agents
|
|
1011
|
-
*/
|
|
1012
|
-
agent_list?: string;
|
|
1013
|
-
/**
|
|
1014
|
-
* Next agent
|
|
1015
|
-
*/
|
|
1016
|
-
agent_cycle?: string;
|
|
1017
|
-
/**
|
|
1018
|
-
* Previous agent
|
|
1019
|
-
*/
|
|
1020
|
-
agent_cycle_reverse?: string;
|
|
1021
|
-
/**
|
|
1022
|
-
* Cycle model variants
|
|
1023
|
-
*/
|
|
1024
|
-
variant_cycle?: string;
|
|
1025
|
-
/**
|
|
1026
|
-
* Clear input field
|
|
1027
|
-
*/
|
|
1028
|
-
input_clear?: string;
|
|
1029
|
-
/**
|
|
1030
|
-
* Paste from clipboard
|
|
1031
|
-
*/
|
|
1032
|
-
input_paste?: string;
|
|
1033
|
-
/**
|
|
1034
|
-
* Submit input
|
|
1035
|
-
*/
|
|
1036
|
-
input_submit?: string;
|
|
1037
|
-
/**
|
|
1038
|
-
* Insert newline in input
|
|
1039
|
-
*/
|
|
1040
|
-
input_newline?: string;
|
|
1041
|
-
/**
|
|
1042
|
-
* Move cursor left in input
|
|
1043
|
-
*/
|
|
1044
|
-
input_move_left?: string;
|
|
1045
|
-
/**
|
|
1046
|
-
* Move cursor right in input
|
|
1047
|
-
*/
|
|
1048
|
-
input_move_right?: string;
|
|
1049
|
-
/**
|
|
1050
|
-
* Move cursor up in input
|
|
1051
|
-
*/
|
|
1052
|
-
input_move_up?: string;
|
|
1053
|
-
/**
|
|
1054
|
-
* Move cursor down in input
|
|
1055
|
-
*/
|
|
1056
|
-
input_move_down?: string;
|
|
1057
|
-
/**
|
|
1058
|
-
* Select left in input
|
|
1059
|
-
*/
|
|
1060
|
-
input_select_left?: string;
|
|
1061
|
-
/**
|
|
1062
|
-
* Select right in input
|
|
1063
|
-
*/
|
|
1064
|
-
input_select_right?: string;
|
|
1065
|
-
/**
|
|
1066
|
-
* Select up in input
|
|
1067
|
-
*/
|
|
1068
|
-
input_select_up?: string;
|
|
1069
|
-
/**
|
|
1070
|
-
* Select down in input
|
|
1071
|
-
*/
|
|
1072
|
-
input_select_down?: string;
|
|
1073
|
-
/**
|
|
1074
|
-
* Move to start of line in input
|
|
1075
|
-
*/
|
|
1076
|
-
input_line_home?: string;
|
|
1077
|
-
/**
|
|
1078
|
-
* Move to end of line in input
|
|
1079
|
-
*/
|
|
1080
|
-
input_line_end?: string;
|
|
1081
|
-
/**
|
|
1082
|
-
* Select to start of line in input
|
|
1083
|
-
*/
|
|
1084
|
-
input_select_line_home?: string;
|
|
1085
|
-
/**
|
|
1086
|
-
* Select to end of line in input
|
|
1087
|
-
*/
|
|
1088
|
-
input_select_line_end?: string;
|
|
1089
|
-
/**
|
|
1090
|
-
* Move to start of visual line in input
|
|
1091
|
-
*/
|
|
1092
|
-
input_visual_line_home?: string;
|
|
1093
|
-
/**
|
|
1094
|
-
* Move to end of visual line in input
|
|
1095
|
-
*/
|
|
1096
|
-
input_visual_line_end?: string;
|
|
1097
|
-
/**
|
|
1098
|
-
* Select to start of visual line in input
|
|
1099
|
-
*/
|
|
1100
|
-
input_select_visual_line_home?: string;
|
|
1101
|
-
/**
|
|
1102
|
-
* Select to end of visual line in input
|
|
1103
|
-
*/
|
|
1104
|
-
input_select_visual_line_end?: string;
|
|
1105
|
-
/**
|
|
1106
|
-
* Move to start of buffer in input
|
|
1107
|
-
*/
|
|
1108
|
-
input_buffer_home?: string;
|
|
1109
|
-
/**
|
|
1110
|
-
* Move to end of buffer in input
|
|
1111
|
-
*/
|
|
1112
|
-
input_buffer_end?: string;
|
|
1113
|
-
/**
|
|
1114
|
-
* Select to start of buffer in input
|
|
1115
|
-
*/
|
|
1116
|
-
input_select_buffer_home?: string;
|
|
1117
|
-
/**
|
|
1118
|
-
* Select to end of buffer in input
|
|
1119
|
-
*/
|
|
1120
|
-
input_select_buffer_end?: string;
|
|
1121
|
-
/**
|
|
1122
|
-
* Delete line in input
|
|
1123
|
-
*/
|
|
1124
|
-
input_delete_line?: string;
|
|
1125
|
-
/**
|
|
1126
|
-
* Delete to end of line in input
|
|
1127
|
-
*/
|
|
1128
|
-
input_delete_to_line_end?: string;
|
|
1129
|
-
/**
|
|
1130
|
-
* Delete to start of line in input
|
|
1131
|
-
*/
|
|
1132
|
-
input_delete_to_line_start?: string;
|
|
1133
|
-
/**
|
|
1134
|
-
* Backspace in input
|
|
1135
|
-
*/
|
|
1136
|
-
input_backspace?: string;
|
|
1137
|
-
/**
|
|
1138
|
-
* Delete character in input
|
|
1139
|
-
*/
|
|
1140
|
-
input_delete?: string;
|
|
1141
|
-
/**
|
|
1142
|
-
* Undo in input
|
|
1143
|
-
*/
|
|
1144
|
-
input_undo?: string;
|
|
1145
|
-
/**
|
|
1146
|
-
* Redo in input
|
|
1147
|
-
*/
|
|
1148
|
-
input_redo?: string;
|
|
1149
|
-
/**
|
|
1150
|
-
* Move word forward in input
|
|
1151
|
-
*/
|
|
1152
|
-
input_word_forward?: string;
|
|
1153
|
-
/**
|
|
1154
|
-
* Move word backward in input
|
|
1155
|
-
*/
|
|
1156
|
-
input_word_backward?: string;
|
|
1157
|
-
/**
|
|
1158
|
-
* Select word forward in input
|
|
1159
|
-
*/
|
|
1160
|
-
input_select_word_forward?: string;
|
|
1161
|
-
/**
|
|
1162
|
-
* Select word backward in input
|
|
1163
|
-
*/
|
|
1164
|
-
input_select_word_backward?: string;
|
|
1165
|
-
/**
|
|
1166
|
-
* Delete word forward in input
|
|
1167
|
-
*/
|
|
1168
|
-
input_delete_word_forward?: string;
|
|
1169
|
-
/**
|
|
1170
|
-
* Delete word backward in input
|
|
1171
|
-
*/
|
|
1172
|
-
input_delete_word_backward?: string;
|
|
1173
|
-
/**
|
|
1174
|
-
* Previous history item
|
|
1175
|
-
*/
|
|
1176
|
-
history_previous?: string;
|
|
1177
|
-
/**
|
|
1178
|
-
* Next history item
|
|
1179
|
-
*/
|
|
1180
|
-
history_next?: string;
|
|
1181
|
-
/**
|
|
1182
|
-
* Next child session
|
|
1183
|
-
*/
|
|
1184
|
-
session_child_cycle?: string;
|
|
1185
|
-
/**
|
|
1186
|
-
* Previous child session
|
|
1187
|
-
*/
|
|
1188
|
-
session_child_cycle_reverse?: string;
|
|
1189
|
-
/**
|
|
1190
|
-
* Go to parent session
|
|
1191
|
-
*/
|
|
1192
|
-
session_parent?: string;
|
|
1193
|
-
/**
|
|
1194
|
-
* Suspend terminal
|
|
1195
|
-
*/
|
|
1196
|
-
terminal_suspend?: string;
|
|
1197
|
-
/**
|
|
1198
|
-
* Toggle terminal title
|
|
1199
|
-
*/
|
|
1200
|
-
terminal_title_toggle?: string;
|
|
1201
|
-
/**
|
|
1202
|
-
* Toggle tips on home screen
|
|
1203
|
-
*/
|
|
1204
|
-
tips_toggle?: string;
|
|
1205
|
-
/**
|
|
1206
|
-
* Toggle news on home screen
|
|
1207
|
-
*/
|
|
1208
|
-
news_toggle?: string;
|
|
1209
|
-
/**
|
|
1210
|
-
* Toggle thinking blocks visibility
|
|
1211
|
-
*/
|
|
1212
|
-
display_thinking?: string;
|
|
1213
|
-
};
|
|
1214
829
|
/**
|
|
1215
830
|
* Log level
|
|
1216
831
|
*/
|
|
@@ -1476,34 +1091,7 @@ export type Config = {
|
|
|
1476
1091
|
* JSON schema reference for configuration validation
|
|
1477
1092
|
*/
|
|
1478
1093
|
$schema?: string;
|
|
1479
|
-
/**
|
|
1480
|
-
* Theme name to use for the interface
|
|
1481
|
-
*/
|
|
1482
|
-
theme?: string;
|
|
1483
|
-
keybinds?: KeybindsConfig;
|
|
1484
1094
|
logLevel?: LogLevel;
|
|
1485
|
-
/**
|
|
1486
|
-
* TUI specific settings
|
|
1487
|
-
*/
|
|
1488
|
-
tui?: {
|
|
1489
|
-
/**
|
|
1490
|
-
* TUI scroll speed
|
|
1491
|
-
*/
|
|
1492
|
-
scroll_speed?: number;
|
|
1493
|
-
/**
|
|
1494
|
-
* Scroll acceleration settings
|
|
1495
|
-
*/
|
|
1496
|
-
scroll_acceleration?: {
|
|
1497
|
-
/**
|
|
1498
|
-
* Enable scroll acceleration
|
|
1499
|
-
*/
|
|
1500
|
-
enabled: boolean;
|
|
1501
|
-
};
|
|
1502
|
-
/**
|
|
1503
|
-
* Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column
|
|
1504
|
-
*/
|
|
1505
|
-
diff_style?: "auto" | "stacked";
|
|
1506
|
-
};
|
|
1507
1095
|
server?: ServerConfig;
|
|
1508
1096
|
/**
|
|
1509
1097
|
* Command configuration, see https://opencode.ai/docs/commands
|
|
@@ -3983,8 +3571,20 @@ export type KiloFimResponses = {
|
|
|
3983
3571
|
/**
|
|
3984
3572
|
* Streaming FIM completion response
|
|
3985
3573
|
*/
|
|
3986
|
-
200:
|
|
3574
|
+
200: {
|
|
3575
|
+
choices?: Array<{
|
|
3576
|
+
delta?: {
|
|
3577
|
+
content?: string;
|
|
3578
|
+
};
|
|
3579
|
+
}>;
|
|
3580
|
+
usage?: {
|
|
3581
|
+
prompt_tokens?: number;
|
|
3582
|
+
completion_tokens?: number;
|
|
3583
|
+
};
|
|
3584
|
+
cost?: number;
|
|
3585
|
+
};
|
|
3987
3586
|
};
|
|
3587
|
+
export type KiloFimResponse = KiloFimResponses[keyof KiloFimResponses];
|
|
3988
3588
|
export type KiloNotificationsData = {
|
|
3989
3589
|
body?: never;
|
|
3990
3590
|
path?: never;
|
package/dist/v2/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./client.js";
|
|
2
2
|
export * from "./server.js";
|
|
3
3
|
import type { ServerOptions } from "./server.js";
|
|
4
|
-
export declare function
|
|
5
|
-
client: import("./client.js").
|
|
4
|
+
export declare function createKilo(options?: ServerOptions): Promise<{
|
|
5
|
+
client: import("./client.js").KiloClient;
|
|
6
6
|
server: {
|
|
7
7
|
url: string;
|
|
8
8
|
close(): void;
|
package/dist/v2/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * from "./client.js";
|
|
2
2
|
export * from "./server.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export async function
|
|
6
|
-
const server = await
|
|
3
|
+
import { createKiloClient } from "./client.js";
|
|
4
|
+
import { createKiloServer } from "./server.js";
|
|
5
|
+
export async function createKilo(options) {
|
|
6
|
+
const server = await createKiloServer({
|
|
7
7
|
...options,
|
|
8
8
|
});
|
|
9
|
-
const client =
|
|
9
|
+
const client = createKiloClient({
|
|
10
10
|
baseUrl: server.url,
|
|
11
11
|
});
|
|
12
12
|
return {
|
package/dist/v2/server.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ export type TuiOptions = {
|
|
|
15
15
|
signal?: AbortSignal;
|
|
16
16
|
config?: Config;
|
|
17
17
|
};
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function createKiloServer(options?: ServerOptions): Promise<{
|
|
19
19
|
url: string;
|
|
20
20
|
close(): void;
|
|
21
21
|
}>;
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function createKiloTui(options?: TuiOptions): {
|
|
23
23
|
close(): void;
|
|
24
24
|
};
|
package/dist/v2/server.js
CHANGED
|
@@ -30,7 +30,7 @@ export function buildConfigEnv(config) {
|
|
|
30
30
|
const merged = mergeConfig(parseExistingConfig(), config);
|
|
31
31
|
return JSON.stringify(merged);
|
|
32
32
|
}
|
|
33
|
-
export async function
|
|
33
|
+
export async function createKiloServer(options) {
|
|
34
34
|
options = Object.assign({
|
|
35
35
|
hostname: "127.0.0.1",
|
|
36
36
|
port: 4096,
|
|
@@ -99,7 +99,7 @@ export async function createOpencodeServer(options) {
|
|
|
99
99
|
},
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
export function
|
|
102
|
+
export function createKiloTui(options) {
|
|
103
103
|
const args = [];
|
|
104
104
|
if (options?.project) {
|
|
105
105
|
args.push(`--project=${options.project}`);
|