@musnows/scriverse 1.0.7 → 1.0.8

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/ai.js CHANGED
@@ -9538,7 +9538,10 @@ export class AiManager {
9538
9538
  context,
9539
9539
  toolCalls: executedToolCalls,
9540
9540
  processSteps,
9541
- contextUsage: this.completionContextUsage(effectiveInput, model, completionMessages, tools, payload.usage, outputTokens),
9541
+ contextUsage: {
9542
+ ...this.completionContextUsage(effectiveInput, model, completionMessages, tools, payload.usage, outputTokens),
9543
+ ...(cacheHitPercent === undefined ? {} : { cacheHitPercent })
9544
+ },
9542
9545
  ...(suspendedQuestionId ? { suspendedQuestionId } : {}),
9543
9546
  ...(toolCallLimit ? { toolCallLimit } : {}),
9544
9547
  roleplayMemoryCandidates: stagedRoleplayMemoryCandidates