kankaku-pi 1.2.0 → 1.3.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.
@@ -209,6 +209,15 @@ export interface WorkRecordMetadata {
209
209
  plugin?: string;
210
210
  /** This integration's own version, from its `package.json`, read once. */
211
211
  pluginVersion?: string;
212
+ /**
213
+ * `true` when `usage.cost` is this record's proportional share of a session
214
+ * total rather than a measured difference (a headless Claude Code session
215
+ * that ran several prompts reports one cost for all of them). Local
216
+ * bookkeeping only: never sent to the hub and never part of the content
217
+ * hash. Optional and additive: `WORK_RECORD_SCHEMA` is unchanged, an older
218
+ * record without it validates, and readers that do not know it ignore it.
219
+ */
220
+ costAllocated?: true;
212
221
  }
213
222
  export type WorkRecord = WorkRecordCore & WorkRecordMetadata;
214
223
  export declare function emptyUsage(): UsageTotals;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kankaku-pi",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "pi extension that records agent work time per prompt, excluding waits for the user, with subagent linkage and task/session views",
5
5
  "license": "MIT",
6
6
  "author": "soyunninja",
@@ -218,6 +218,15 @@ export interface WorkRecordMetadata {
218
218
  plugin?: string;
219
219
  /** This integration's own version, from its `package.json`, read once. */
220
220
  pluginVersion?: string;
221
+ /**
222
+ * `true` when `usage.cost` is this record's proportional share of a session
223
+ * total rather than a measured difference (a headless Claude Code session
224
+ * that ran several prompts reports one cost for all of them). Local
225
+ * bookkeeping only: never sent to the hub and never part of the content
226
+ * hash. Optional and additive: `WORK_RECORD_SCHEMA` is unchanged, an older
227
+ * record without it validates, and readers that do not know it ignore it.
228
+ */
229
+ costAllocated?: true;
221
230
  }
222
231
 
223
232
  export type WorkRecord = WorkRecordCore & WorkRecordMetadata;