@nikcli-ai/sdk 1.24.0 → 1.26.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.
@@ -38,6 +38,7 @@ export type EventInstallationUpdateAvailable = {
38
38
  type: "installation.update-available";
39
39
  properties: {
40
40
  version: string;
41
+ method?: string;
41
42
  };
42
43
  };
43
44
  export type EventServerConnected = {
@@ -565,6 +566,80 @@ export type EventSessionCompacted = {
565
566
  sessionID: string;
566
567
  };
567
568
  };
569
+ export type EventTuiPromptAppend = {
570
+ type: "tui.prompt.append";
571
+ properties: {
572
+ text: string;
573
+ };
574
+ };
575
+ export type EventTuiCommandExecute = {
576
+ type: "tui.command.execute";
577
+ properties: {
578
+ command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string;
579
+ };
580
+ };
581
+ export type EventTuiToastShow = {
582
+ type: "tui.toast.show";
583
+ properties: {
584
+ title?: string;
585
+ message: string;
586
+ variant: "info" | "success" | "warning" | "error";
587
+ /**
588
+ * Duration in milliseconds
589
+ */
590
+ duration?: number;
591
+ };
592
+ };
593
+ export type EventTuiSessionSelect = {
594
+ type: "tui.session.select";
595
+ properties: {
596
+ /**
597
+ * Session ID to navigate to
598
+ */
599
+ sessionID: string;
600
+ };
601
+ };
602
+ export type EventMcpToolsChanged = {
603
+ type: "mcp.tools.changed";
604
+ properties: {
605
+ server: string;
606
+ };
607
+ };
608
+ export type EventMcpBrowserOpenFailed = {
609
+ type: "mcp.browser.open.failed";
610
+ properties: {
611
+ mcpName: string;
612
+ url: string;
613
+ };
614
+ };
615
+ export type EventCommandExecuted = {
616
+ type: "command.executed";
617
+ properties: {
618
+ name: string;
619
+ sessionID: string;
620
+ arguments: string;
621
+ messageID: string;
622
+ };
623
+ };
624
+ export type EventWorkspaceReady = {
625
+ type: "workspace.ready";
626
+ properties: {
627
+ name: string;
628
+ };
629
+ };
630
+ export type EventWorkspaceFailed = {
631
+ type: "workspace.failed";
632
+ properties: {
633
+ message: string;
634
+ };
635
+ };
636
+ export type EventWorkspaceStatus = {
637
+ type: "workspace.status";
638
+ properties: {
639
+ workspaceID: string;
640
+ status: "connecting" | "connected" | "disconnected" | "error";
641
+ };
642
+ };
568
643
  export type EventMonitorCreated = {
569
644
  type: "monitor.created";
570
645
  properties: {
@@ -656,31 +731,6 @@ export type EventMonitorCompleted = {
656
731
  wake: boolean;
657
732
  };
658
733
  };
659
- export type EventFileEdited = {
660
- type: "file.edited";
661
- properties: {
662
- file: string;
663
- };
664
- };
665
- export type EventWorkspaceReady = {
666
- type: "workspace.ready";
667
- properties: {
668
- name: string;
669
- };
670
- };
671
- export type EventWorkspaceFailed = {
672
- type: "workspace.failed";
673
- properties: {
674
- message: string;
675
- };
676
- };
677
- export type EventWorkspaceStatus = {
678
- type: "workspace.status";
679
- properties: {
680
- workspaceID: string;
681
- status: "connecting" | "connected" | "disconnected" | "error";
682
- };
683
- };
684
734
  export type EventDelegationCompleted = {
685
735
  type: "delegation.completed";
686
736
  properties: {
@@ -690,6 +740,12 @@ export type EventDelegationCompleted = {
690
740
  title: string;
691
741
  };
692
742
  };
743
+ export type EventFileEdited = {
744
+ type: "file.edited";
745
+ properties: {
746
+ file: string;
747
+ };
748
+ };
693
749
  export type Todo = {
694
750
  /**
695
751
  * Brief description of the task
@@ -726,61 +782,6 @@ export type EventFileWatcherUpdated = {
726
782
  event: "add" | "change" | "unlink";
727
783
  };
728
784
  };
729
- export type EventTuiPromptAppend = {
730
- type: "tui.prompt.append";
731
- properties: {
732
- text: string;
733
- };
734
- };
735
- export type EventTuiCommandExecute = {
736
- type: "tui.command.execute";
737
- properties: {
738
- command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string;
739
- };
740
- };
741
- export type EventTuiToastShow = {
742
- type: "tui.toast.show";
743
- properties: {
744
- title?: string;
745
- message: string;
746
- variant: "info" | "success" | "warning" | "error";
747
- /**
748
- * Duration in milliseconds
749
- */
750
- duration?: number;
751
- };
752
- };
753
- export type EventTuiSessionSelect = {
754
- type: "tui.session.select";
755
- properties: {
756
- /**
757
- * Session ID to navigate to
758
- */
759
- sessionID: string;
760
- };
761
- };
762
- export type EventMcpToolsChanged = {
763
- type: "mcp.tools.changed";
764
- properties: {
765
- server: string;
766
- };
767
- };
768
- export type EventMcpBrowserOpenFailed = {
769
- type: "mcp.browser.open.failed";
770
- properties: {
771
- mcpName: string;
772
- url: string;
773
- };
774
- };
775
- export type EventCommandExecuted = {
776
- type: "command.executed";
777
- properties: {
778
- name: string;
779
- sessionID: string;
780
- arguments: string;
781
- messageID: string;
782
- };
783
- };
784
785
  export type SessionGithub = {
785
786
  owner: string;
786
787
  repo: string;
@@ -935,7 +936,7 @@ export type EventPtyDeleted = {
935
936
  id: string;
936
937
  };
937
938
  };
938
- export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventFileEdited | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventDelegationCompleted | EventTodoUpdated | EventFileWatcherUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted;
939
+ export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventDelegationCompleted | EventFileEdited | EventTodoUpdated | EventFileWatcherUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted;
939
940
  export type GlobalEvent = {
940
941
  directory: string;
941
942
  payload: Event;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@nikcli-ai/sdk",
4
- "version": "1.24.0",
4
+ "version": "1.26.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {