@trim21/personal-pi-extensions 0.0.284 → 0.0.285

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/spawn-agent.ts +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trim21/personal-pi-extensions",
3
- "version": "0.0.284",
3
+ "version": "0.0.285",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
@@ -99,8 +99,6 @@ const spawnAgentSchema = Type.Object({
99
99
  interface UsageStats {
100
100
  input: number;
101
101
  output: number;
102
- cacheRead: number;
103
- cacheWrite: number;
104
102
  cost: number;
105
103
  contextTokens: number;
106
104
  turns: number;
@@ -156,8 +154,6 @@ function formatUsageStats(usage: UsageStats, model?: string): string {
156
154
  if (usage.turns) parts.push(`${usage.turns} turn${usage.turns > 1 ? "s" : ""}`);
157
155
  if (usage.input) parts.push(`↑${formatTokens(usage.input)}`);
158
156
  if (usage.output) parts.push(`↓${formatTokens(usage.output)}`);
159
- if (usage.cacheRead) parts.push(`R${formatTokens(usage.cacheRead)}`);
160
- if (usage.cacheWrite) parts.push(`W${formatTokens(usage.cacheWrite)}`);
161
157
  if (usage.cost) parts.push(`$${usage.cost.toFixed(4)}`);
162
158
  if (usage.contextTokens > 0) parts.push(`ctx:${formatTokens(usage.contextTokens)}`);
163
159
  if (model) parts.push(model);
@@ -339,8 +335,6 @@ export async function runAgent(
339
335
  usage: {
340
336
  input: 0,
341
337
  output: 0,
342
- cacheRead: 0,
343
- cacheWrite: 0,
344
338
  cost: 0,
345
339
  contextTokens: 0,
346
340
  turns: 0,
@@ -492,8 +486,6 @@ export async function runAgent(
492
486
  result.usage.turns++;
493
487
  result.usage.input += msg.usage.input;
494
488
  result.usage.output += msg.usage.output;
495
- result.usage.cacheRead += msg.usage.cacheRead;
496
- result.usage.cacheWrite += msg.usage.cacheWrite;
497
489
  result.usage.cost += msg.usage.cost.total;
498
490
  result.usage.contextTokens = msg.usage.totalTokens;
499
491
  if (!result.model) result.model = msg.model;
@@ -648,8 +640,6 @@ export default function spawnAgent(pi: ExtensionAPI) {
648
640
  usage: {
649
641
  input: 0,
650
642
  output: 0,
651
- cacheRead: 0,
652
- cacheWrite: 0,
653
643
  cost: 0,
654
644
  contextTokens: 0,
655
645
  turns: 0,