@exreve/exk 1.0.11 → 1.0.12
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/agentSession.js +45 -0
- package/dist/ttc-cli.tar.gz +0 -0
- package/package.json +1 -1
package/dist/agentSession.js
CHANGED
|
@@ -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,
|
|
@@ -721,6 +725,47 @@ export class AgentSessionManager {
|
|
|
721
725
|
}
|
|
722
726
|
});
|
|
723
727
|
}
|
|
728
|
+
else if (message.type === 'tool_use_summary') {
|
|
729
|
+
const msg = message;
|
|
730
|
+
onOutput({
|
|
731
|
+
type: 'tool_use_summary',
|
|
732
|
+
data: msg.summary || '',
|
|
733
|
+
timestamp: Date.now(),
|
|
734
|
+
metadata: {
|
|
735
|
+
precedingToolUseIds: msg.preceding_tool_use_ids,
|
|
736
|
+
uuid: msg.uuid,
|
|
737
|
+
sessionId: msg.session_id
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
else if (message.type === 'rate_limit_event') {
|
|
742
|
+
const msg = message;
|
|
743
|
+
onOutput({
|
|
744
|
+
type: 'rate_limit_event',
|
|
745
|
+
data: msg,
|
|
746
|
+
timestamp: Date.now(),
|
|
747
|
+
metadata: {
|
|
748
|
+
rateLimitInfo: msg.rate_limit_info,
|
|
749
|
+
uuid: msg.uuid,
|
|
750
|
+
sessionId: msg.session_id
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
else if (message.type === 'prompt_suggestion') {
|
|
755
|
+
const msg = message;
|
|
756
|
+
onOutput({
|
|
757
|
+
type: 'prompt_suggestion',
|
|
758
|
+
data: msg.suggestion || '',
|
|
759
|
+
timestamp: Date.now(),
|
|
760
|
+
metadata: {
|
|
761
|
+
uuid: msg.uuid,
|
|
762
|
+
sessionId: msg.session_id
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
else if (message.type === 'keep_alive') {
|
|
767
|
+
// Internal keepalive - silently ignore
|
|
768
|
+
}
|
|
724
769
|
else {
|
|
725
770
|
onOutput({
|
|
726
771
|
type: 'stdout',
|
package/dist/ttc-cli.tar.gz
CHANGED
|
Binary file
|