@nikcli-ai/sdk 1.126.0 → 1.128.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,36 +1,6 @@
|
|
|
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
|
-
};
|
|
34
4
|
export type Project = {
|
|
35
5
|
id: string;
|
|
36
6
|
worktree: string;
|
|
@@ -52,12 +22,42 @@ export type EventProjectUpdated = {
|
|
|
52
22
|
type: "project.updated";
|
|
53
23
|
properties: Project;
|
|
54
24
|
};
|
|
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
|
+
};
|
|
55
42
|
export type EventServerInstanceDisposed = {
|
|
56
43
|
type: "server.instance.disposed";
|
|
57
44
|
properties: {
|
|
58
45
|
directory: string;
|
|
59
46
|
};
|
|
60
47
|
};
|
|
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,6 +614,13 @@ 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
|
+
};
|
|
617
624
|
export type EventTuiPromptAppend = {
|
|
618
625
|
type: "tui.prompt.append";
|
|
619
626
|
properties: {
|
|
@@ -647,19 +654,6 @@ export type EventTuiSessionSelect = {
|
|
|
647
654
|
sessionID: string;
|
|
648
655
|
};
|
|
649
656
|
};
|
|
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
|
-
};
|
|
663
657
|
export type EventMcpToolsChanged = {
|
|
664
658
|
type: "mcp.tools.changed";
|
|
665
659
|
properties: {
|
|
@@ -682,6 +676,41 @@ export type EventCommandExecuted = {
|
|
|
682
676
|
messageID: string;
|
|
683
677
|
};
|
|
684
678
|
};
|
|
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
|
+
};
|
|
685
714
|
export type SessionStatus = {
|
|
686
715
|
type: "idle";
|
|
687
716
|
} | {
|
|
@@ -791,35 +820,6 @@ export type EventSessionGoal = {
|
|
|
791
820
|
goal: SessionGoalState | null;
|
|
792
821
|
};
|
|
793
822
|
};
|
|
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,6 +911,80 @@ 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
|
+
};
|
|
914
988
|
export type EventLoopUpserted = {
|
|
915
989
|
type: "loop.upserted";
|
|
916
990
|
properties: {
|
|
@@ -1018,81 +1092,7 @@ export type EventMissionAborted = {
|
|
|
1018
1092
|
reason: string;
|
|
1019
1093
|
};
|
|
1020
1094
|
};
|
|
1021
|
-
export type
|
|
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;
|
|
1095
|
+
export type Event = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventSessionGoal | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventSessionV2Updated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventFileEdited | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventDelegationCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted;
|
|
1096
1096
|
export type GlobalEvent = {
|
|
1097
1097
|
directory: string;
|
|
1098
1098
|
payload: Event;
|