@nikcli-ai/sdk 1.122.0 → 1.124.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/v2/gen/types.gen.d.ts +147 -147
- package/package.json +1 -1
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
+
export type EventInstallationUpdated = {
|
|
5
|
+
type: "installation.updated";
|
|
6
|
+
properties: {
|
|
7
|
+
version: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type EventInstallationUpdateAvailable = {
|
|
11
|
+
type: "installation.update-available";
|
|
12
|
+
properties: {
|
|
13
|
+
version: string;
|
|
14
|
+
method?: "curl" | "npm" | "yarn" | "pnpm" | "bun" | "brew" | "scoop" | "choco" | "unknown";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type EventTelemetryRecord = {
|
|
18
|
+
type: "telemetry.record";
|
|
19
|
+
properties: {
|
|
20
|
+
id: string;
|
|
21
|
+
traceId: string;
|
|
22
|
+
parentId?: string;
|
|
23
|
+
name: string;
|
|
24
|
+
kind: string;
|
|
25
|
+
startTime: number;
|
|
26
|
+
durationMs: number;
|
|
27
|
+
statusCode?: number;
|
|
28
|
+
statusMessage?: string;
|
|
29
|
+
attributes?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
4
34
|
export type Project = {
|
|
5
35
|
id: string;
|
|
6
36
|
worktree: string;
|
|
@@ -22,42 +52,12 @@ export type EventProjectUpdated = {
|
|
|
22
52
|
type: "project.updated";
|
|
23
53
|
properties: Project;
|
|
24
54
|
};
|
|
25
|
-
export type EventTelemetryRecord = {
|
|
26
|
-
type: "telemetry.record";
|
|
27
|
-
properties: {
|
|
28
|
-
id: string;
|
|
29
|
-
traceId: string;
|
|
30
|
-
parentId?: string;
|
|
31
|
-
name: string;
|
|
32
|
-
kind: string;
|
|
33
|
-
startTime: number;
|
|
34
|
-
durationMs: number;
|
|
35
|
-
statusCode?: number;
|
|
36
|
-
statusMessage?: string;
|
|
37
|
-
attributes?: {
|
|
38
|
-
[key: string]: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
55
|
export type EventServerInstanceDisposed = {
|
|
43
56
|
type: "server.instance.disposed";
|
|
44
57
|
properties: {
|
|
45
58
|
directory: string;
|
|
46
59
|
};
|
|
47
60
|
};
|
|
48
|
-
export type EventInstallationUpdated = {
|
|
49
|
-
type: "installation.updated";
|
|
50
|
-
properties: {
|
|
51
|
-
version: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export type EventInstallationUpdateAvailable = {
|
|
55
|
-
type: "installation.update-available";
|
|
56
|
-
properties: {
|
|
57
|
-
version: string;
|
|
58
|
-
method?: "curl" | "npm" | "yarn" | "pnpm" | "bun" | "brew" | "scoop" | "choco" | "unknown";
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
61
|
export type EventServerConnected = {
|
|
62
62
|
type: "server.connected";
|
|
63
63
|
properties: {
|
|
@@ -614,13 +614,6 @@ export type EventSessionError = {
|
|
|
614
614
|
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
615
615
|
};
|
|
616
616
|
};
|
|
617
|
-
export type EventFileWatcherUpdated = {
|
|
618
|
-
type: "file.watcher.updated";
|
|
619
|
-
properties: {
|
|
620
|
-
file: string;
|
|
621
|
-
event: "add" | "change" | "unlink";
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
617
|
export type EventTuiPromptAppend = {
|
|
625
618
|
type: "tui.prompt.append";
|
|
626
619
|
properties: {
|
|
@@ -654,6 +647,19 @@ export type EventTuiSessionSelect = {
|
|
|
654
647
|
sessionID: string;
|
|
655
648
|
};
|
|
656
649
|
};
|
|
650
|
+
export type EventFileWatcherUpdated = {
|
|
651
|
+
type: "file.watcher.updated";
|
|
652
|
+
properties: {
|
|
653
|
+
file: string;
|
|
654
|
+
event: "add" | "change" | "unlink";
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
export type EventVcsBranchUpdated = {
|
|
658
|
+
type: "vcs.branch.updated";
|
|
659
|
+
properties: {
|
|
660
|
+
branch?: string;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
657
663
|
export type EventMcpToolsChanged = {
|
|
658
664
|
type: "mcp.tools.changed";
|
|
659
665
|
properties: {
|
|
@@ -676,41 +682,6 @@ export type EventCommandExecuted = {
|
|
|
676
682
|
messageID: string;
|
|
677
683
|
};
|
|
678
684
|
};
|
|
679
|
-
export type EventVcsBranchUpdated = {
|
|
680
|
-
type: "vcs.branch.updated";
|
|
681
|
-
properties: {
|
|
682
|
-
branch?: string;
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
export type Todo = {
|
|
686
|
-
/**
|
|
687
|
-
* Brief description of the task
|
|
688
|
-
*/
|
|
689
|
-
content: string;
|
|
690
|
-
/**
|
|
691
|
-
* Current status of the task: pending, in_progress, completed, cancelled
|
|
692
|
-
*/
|
|
693
|
-
status: string;
|
|
694
|
-
/**
|
|
695
|
-
* Priority level of the task: high, medium, low
|
|
696
|
-
*/
|
|
697
|
-
priority: string;
|
|
698
|
-
/**
|
|
699
|
-
* Unique identifier for the todo item
|
|
700
|
-
*/
|
|
701
|
-
id: string;
|
|
702
|
-
};
|
|
703
|
-
export type EventTodoUpdated = {
|
|
704
|
-
type: "todo.updated";
|
|
705
|
-
properties: {
|
|
706
|
-
sessionID: string;
|
|
707
|
-
todos: Array<Todo>;
|
|
708
|
-
diff: {
|
|
709
|
-
added: Array<Todo>;
|
|
710
|
-
completed: Array<Todo>;
|
|
711
|
-
};
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
685
|
export type SessionStatus = {
|
|
715
686
|
type: "idle";
|
|
716
687
|
} | {
|
|
@@ -820,6 +791,35 @@ export type EventSessionGoal = {
|
|
|
820
791
|
goal: SessionGoalState | null;
|
|
821
792
|
};
|
|
822
793
|
};
|
|
794
|
+
export type Todo = {
|
|
795
|
+
/**
|
|
796
|
+
* Brief description of the task
|
|
797
|
+
*/
|
|
798
|
+
content: string;
|
|
799
|
+
/**
|
|
800
|
+
* Current status of the task: pending, in_progress, completed, cancelled
|
|
801
|
+
*/
|
|
802
|
+
status: string;
|
|
803
|
+
/**
|
|
804
|
+
* Priority level of the task: high, medium, low
|
|
805
|
+
*/
|
|
806
|
+
priority: string;
|
|
807
|
+
/**
|
|
808
|
+
* Unique identifier for the todo item
|
|
809
|
+
*/
|
|
810
|
+
id: string;
|
|
811
|
+
};
|
|
812
|
+
export type EventTodoUpdated = {
|
|
813
|
+
type: "todo.updated";
|
|
814
|
+
properties: {
|
|
815
|
+
sessionID: string;
|
|
816
|
+
todos: Array<Todo>;
|
|
817
|
+
diff: {
|
|
818
|
+
added: Array<Todo>;
|
|
819
|
+
completed: Array<Todo>;
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
823
|
export type EventMonitorCreated = {
|
|
824
824
|
type: "monitor.created";
|
|
825
825
|
properties: {
|
|
@@ -911,80 +911,6 @@ export type EventMonitorCompleted = {
|
|
|
911
911
|
wake: boolean;
|
|
912
912
|
};
|
|
913
913
|
};
|
|
914
|
-
export type EventSessionV2Updated = {
|
|
915
|
-
type: "session.v2.updated";
|
|
916
|
-
properties: {
|
|
917
|
-
sessionID: string;
|
|
918
|
-
};
|
|
919
|
-
};
|
|
920
|
-
export type Pty = {
|
|
921
|
-
id: string;
|
|
922
|
-
title: string;
|
|
923
|
-
command: string;
|
|
924
|
-
args: Array<string>;
|
|
925
|
-
cwd: string;
|
|
926
|
-
status: "running" | "exited";
|
|
927
|
-
pid: number;
|
|
928
|
-
};
|
|
929
|
-
export type EventPtyCreated = {
|
|
930
|
-
type: "pty.created";
|
|
931
|
-
properties: {
|
|
932
|
-
info: Pty;
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
export type EventPtyUpdated = {
|
|
936
|
-
type: "pty.updated";
|
|
937
|
-
properties: {
|
|
938
|
-
info: Pty;
|
|
939
|
-
};
|
|
940
|
-
};
|
|
941
|
-
export type EventPtyExited = {
|
|
942
|
-
type: "pty.exited";
|
|
943
|
-
properties: {
|
|
944
|
-
id: string;
|
|
945
|
-
exitCode: number;
|
|
946
|
-
};
|
|
947
|
-
};
|
|
948
|
-
export type EventPtyDeleted = {
|
|
949
|
-
type: "pty.deleted";
|
|
950
|
-
properties: {
|
|
951
|
-
id: string;
|
|
952
|
-
};
|
|
953
|
-
};
|
|
954
|
-
export type EventFileEdited = {
|
|
955
|
-
type: "file.edited";
|
|
956
|
-
properties: {
|
|
957
|
-
file: string;
|
|
958
|
-
};
|
|
959
|
-
};
|
|
960
|
-
export type EventWorkspaceReady = {
|
|
961
|
-
type: "workspace.ready";
|
|
962
|
-
properties: {
|
|
963
|
-
name: string;
|
|
964
|
-
};
|
|
965
|
-
};
|
|
966
|
-
export type EventWorkspaceFailed = {
|
|
967
|
-
type: "workspace.failed";
|
|
968
|
-
properties: {
|
|
969
|
-
message: string;
|
|
970
|
-
};
|
|
971
|
-
};
|
|
972
|
-
export type EventWorkspaceStatus = {
|
|
973
|
-
type: "workspace.status";
|
|
974
|
-
properties: {
|
|
975
|
-
workspaceID: string;
|
|
976
|
-
status: "connecting" | "connected" | "disconnected" | "error";
|
|
977
|
-
};
|
|
978
|
-
};
|
|
979
|
-
export type EventDelegationCompleted = {
|
|
980
|
-
type: "delegation.completed";
|
|
981
|
-
properties: {
|
|
982
|
-
delegationID: string;
|
|
983
|
-
parentSessionID: string;
|
|
984
|
-
status: "running" | "complete" | "error" | "timeout" | "cancelled" | "orphaned";
|
|
985
|
-
title: string;
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
914
|
export type EventLoopUpserted = {
|
|
989
915
|
type: "loop.upserted";
|
|
990
916
|
properties: {
|
|
@@ -1092,7 +1018,81 @@ export type EventMissionAborted = {
|
|
|
1092
1018
|
reason: string;
|
|
1093
1019
|
};
|
|
1094
1020
|
};
|
|
1095
|
-
export type
|
|
1021
|
+
export type EventSessionV2Updated = {
|
|
1022
|
+
type: "session.v2.updated";
|
|
1023
|
+
properties: {
|
|
1024
|
+
sessionID: string;
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
export type Pty = {
|
|
1028
|
+
id: string;
|
|
1029
|
+
title: string;
|
|
1030
|
+
command: string;
|
|
1031
|
+
args: Array<string>;
|
|
1032
|
+
cwd: string;
|
|
1033
|
+
status: "running" | "exited";
|
|
1034
|
+
pid: number;
|
|
1035
|
+
};
|
|
1036
|
+
export type EventPtyCreated = {
|
|
1037
|
+
type: "pty.created";
|
|
1038
|
+
properties: {
|
|
1039
|
+
info: Pty;
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
export type EventPtyUpdated = {
|
|
1043
|
+
type: "pty.updated";
|
|
1044
|
+
properties: {
|
|
1045
|
+
info: Pty;
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
export type EventPtyExited = {
|
|
1049
|
+
type: "pty.exited";
|
|
1050
|
+
properties: {
|
|
1051
|
+
id: string;
|
|
1052
|
+
exitCode: number;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
export type EventPtyDeleted = {
|
|
1056
|
+
type: "pty.deleted";
|
|
1057
|
+
properties: {
|
|
1058
|
+
id: string;
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
export type EventFileEdited = {
|
|
1062
|
+
type: "file.edited";
|
|
1063
|
+
properties: {
|
|
1064
|
+
file: string;
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
export type EventWorkspaceReady = {
|
|
1068
|
+
type: "workspace.ready";
|
|
1069
|
+
properties: {
|
|
1070
|
+
name: string;
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
export type EventWorkspaceFailed = {
|
|
1074
|
+
type: "workspace.failed";
|
|
1075
|
+
properties: {
|
|
1076
|
+
message: string;
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
export type EventWorkspaceStatus = {
|
|
1080
|
+
type: "workspace.status";
|
|
1081
|
+
properties: {
|
|
1082
|
+
workspaceID: string;
|
|
1083
|
+
status: "connecting" | "connected" | "disconnected" | "error";
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
export type EventDelegationCompleted = {
|
|
1087
|
+
type: "delegation.completed";
|
|
1088
|
+
properties: {
|
|
1089
|
+
delegationID: string;
|
|
1090
|
+
parentSessionID: string;
|
|
1091
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled" | "orphaned";
|
|
1092
|
+
title: string;
|
|
1093
|
+
};
|
|
1094
|
+
};
|
|
1095
|
+
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventTelemetryRecord | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventFileWatcherUpdated | EventVcsBranchUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventSessionGoal | EventTodoUpdated | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventSessionV2Updated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventFileEdited | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventDelegationCompleted;
|
|
1096
1096
|
export type GlobalEvent = {
|
|
1097
1097
|
directory: string;
|
|
1098
1098
|
payload: Event;
|