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