@nikcli-ai/sdk 1.25.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.
@@ -566,6 +566,80 @@ export type EventSessionCompacted = {
566
566
  sessionID: string;
567
567
  };
568
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
+ };
569
643
  export type EventMonitorCreated = {
570
644
  type: "monitor.created";
571
645
  properties: {
@@ -657,31 +731,6 @@ export type EventMonitorCompleted = {
657
731
  wake: boolean;
658
732
  };
659
733
  };
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
734
  export type EventDelegationCompleted = {
686
735
  type: "delegation.completed";
687
736
  properties: {
@@ -691,6 +740,12 @@ export type EventDelegationCompleted = {
691
740
  title: string;
692
741
  };
693
742
  };
743
+ export type EventFileEdited = {
744
+ type: "file.edited";
745
+ properties: {
746
+ file: string;
747
+ };
748
+ };
694
749
  export type Todo = {
695
750
  /**
696
751
  * Brief description of the task
@@ -727,61 +782,6 @@ export type EventFileWatcherUpdated = {
727
782
  event: "add" | "change" | "unlink";
728
783
  };
729
784
  };
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
785
  export type SessionGithub = {
786
786
  owner: string;
787
787
  repo: string;
@@ -936,7 +936,7 @@ export type EventPtyDeleted = {
936
936
  id: string;
937
937
  };
938
938
  };
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;
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;
940
940
  export type GlobalEvent = {
941
941
  directory: string;
942
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.25.0",
4
+ "version": "1.26.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {