@exreve/exk 1.0.11 → 1.0.13

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.
@@ -618,8 +618,12 @@ export class AgentSessionManager {
618
618
  isError: msg.is_error,
619
619
  exitCode: msg.is_error ? 1 : 0,
620
620
  durationMs: msg.duration_ms,
621
+ durationApiMs: msg.duration_api_ms,
621
622
  totalCostUsd: msg.total_cost_usd,
622
623
  usage: msg.usage,
624
+ modelUsage: msg.modelUsage,
625
+ structuredOutput: msg.structured_output,
626
+ numTurns: msg.num_turns,
623
627
  contextInfo: {
624
628
  messageCount: session.messages.length,
625
629
  totalInputTokens: session.totalInputTokens,
@@ -676,13 +680,14 @@ export class AgentSessionManager {
676
680
  }
677
681
  }
678
682
  else if (message.type === 'system') {
683
+ const sysMsg = message;
679
684
  onOutput({
680
685
  type: 'system',
681
- data: message,
686
+ data: { ...sysMsg, subtype: sysMsg.subtype },
682
687
  timestamp: Date.now(),
683
688
  metadata: {
684
- subtype: message.subtype,
685
- messageType: message.subtype || 'system'
689
+ subtype: sysMsg.subtype,
690
+ messageType: sysMsg.subtype || 'system'
686
691
  }
687
692
  });
688
693
  }
@@ -721,6 +726,47 @@ export class AgentSessionManager {
721
726
  }
722
727
  });
723
728
  }
729
+ else if (message.type === 'tool_use_summary') {
730
+ const msg = message;
731
+ onOutput({
732
+ type: 'tool_use_summary',
733
+ data: msg.summary || '',
734
+ timestamp: Date.now(),
735
+ metadata: {
736
+ precedingToolUseIds: msg.preceding_tool_use_ids,
737
+ uuid: msg.uuid,
738
+ sessionId: msg.session_id
739
+ }
740
+ });
741
+ }
742
+ else if (message.type === 'rate_limit_event') {
743
+ const msg = message;
744
+ onOutput({
745
+ type: 'rate_limit_event',
746
+ data: msg,
747
+ timestamp: Date.now(),
748
+ metadata: {
749
+ rateLimitInfo: msg.rate_limit_info,
750
+ uuid: msg.uuid,
751
+ sessionId: msg.session_id
752
+ }
753
+ });
754
+ }
755
+ else if (message.type === 'prompt_suggestion') {
756
+ const msg = message;
757
+ onOutput({
758
+ type: 'prompt_suggestion',
759
+ data: msg.suggestion || '',
760
+ timestamp: Date.now(),
761
+ metadata: {
762
+ uuid: msg.uuid,
763
+ sessionId: msg.session_id
764
+ }
765
+ });
766
+ }
767
+ else if (message.type === 'keep_alive') {
768
+ // Internal keepalive - silently ignore
769
+ }
724
770
  else {
725
771
  onOutput({
726
772
  type: 'stdout',
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exreve/exk",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "exk - Control Claude CLI with voice and programmable interfaces",
5
5
  "type": "module",
6
6
  "bin": {