@heripo/model 0.1.45 → 0.1.46
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/README.ko.md +8 -0
- package/README.md +8 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -307,15 +307,23 @@ interface ModelUsageDetail {
|
|
|
307
307
|
inputTokens: number; // 입력 토큰 수
|
|
308
308
|
outputTokens: number; // 출력 토큰 수
|
|
309
309
|
totalTokens: number; // 전체 토큰 수
|
|
310
|
+
cachedInputTokens?: number | null; // 캐시 읽기 토큰
|
|
311
|
+
cacheWriteTokens?: number | null; // 기본 기간 캐시 쓰기 토큰
|
|
312
|
+
cacheWrite1hTokens?: number | null; // 1시간 캐시 쓰기 토큰
|
|
310
313
|
}
|
|
311
314
|
|
|
312
315
|
interface TokenUsageSummary {
|
|
313
316
|
inputTokens: number; // 입력 토큰 수
|
|
314
317
|
outputTokens: number; // 출력 토큰 수
|
|
315
318
|
totalTokens: number; // 전체 토큰 수
|
|
319
|
+
cachedInputTokens?: number | null; // 합산된 캐시 읽기 토큰
|
|
320
|
+
cacheWriteTokens?: number | null; // 합산된 기본 기간 캐시 쓰기 토큰
|
|
321
|
+
cacheWrite1hTokens?: number | null; // 합산된 1시간 캐시 쓰기 토큰
|
|
316
322
|
}
|
|
317
323
|
```
|
|
318
324
|
|
|
325
|
+
캐시 토큰은 `inputTokens`에 포함된 부분집합이며 추가 토큰이 아닙니다. 필드가 없거나 `null`이면 제공자가 완전한 값을 보고하지 않은 것이고, `0`은 사용량이 없다고 보고한 값입니다.
|
|
326
|
+
|
|
319
327
|
### Review Assistance 타입
|
|
320
328
|
|
|
321
329
|
`correction.reviewAssistanceEnabled: true`일 때(파서 기본값) 생성하는 별도 감사 리포트입니다. `ProcessedDocument` 안에 포함되지 않습니다. [전체 타입 정의](./src/types/review-assistance.ts)는 명령, 근거, 이슈, 실행 추적 및 진행 이벤트를 제공합니다.
|
package/README.md
CHANGED
|
@@ -308,15 +308,23 @@ interface ModelUsageDetail {
|
|
|
308
308
|
inputTokens: number; // Input token count
|
|
309
309
|
outputTokens: number; // Output token count
|
|
310
310
|
totalTokens: number; // Total token count
|
|
311
|
+
cachedInputTokens?: number | null; // Cache reads
|
|
312
|
+
cacheWriteTokens?: number | null; // Default-duration cache writes
|
|
313
|
+
cacheWrite1hTokens?: number | null; // One-hour cache writes
|
|
311
314
|
}
|
|
312
315
|
|
|
313
316
|
interface TokenUsageSummary {
|
|
314
317
|
inputTokens: number; // Input token count
|
|
315
318
|
outputTokens: number; // Output token count
|
|
316
319
|
totalTokens: number; // Total token count
|
|
320
|
+
cachedInputTokens?: number | null; // Cache reads across contributing calls
|
|
321
|
+
cacheWriteTokens?: number | null; // Default-duration cache writes
|
|
322
|
+
cacheWrite1hTokens?: number | null; // One-hour cache writes
|
|
317
323
|
}
|
|
318
324
|
```
|
|
319
325
|
|
|
326
|
+
Cache counts are subsets of `inputTokens`, not additional tokens. Missing fields or `null` mean the provider did not report a complete count; `0` means it reported zero.
|
|
327
|
+
|
|
320
328
|
### Review Assistance Types
|
|
321
329
|
|
|
322
330
|
A separate audit report is produced when `correction.reviewAssistanceEnabled` is true (the parser default). It is not embedded in `ProcessedDocument`. The [complete type definitions](./src/types/review-assistance.ts) cover commands, evidence, issues, call traces and progress events.
|
package/dist/index.d.cts
CHANGED
|
@@ -774,6 +774,12 @@ interface ModelUsageDetail {
|
|
|
774
774
|
* Always equals inputTokens + outputTokens.
|
|
775
775
|
*/
|
|
776
776
|
totalTokens: number;
|
|
777
|
+
/** Cached input tokens reported by the provider; null means unreported. */
|
|
778
|
+
cachedInputTokens?: number | null;
|
|
779
|
+
/** Cache creation tokens at the default duration; null means unreported. */
|
|
780
|
+
cacheWriteTokens?: number | null;
|
|
781
|
+
/** Cache creation tokens at the one-hour duration; null means unreported. */
|
|
782
|
+
cacheWrite1hTokens?: number | null;
|
|
777
783
|
}
|
|
778
784
|
/**
|
|
779
785
|
* Summary of token usage
|
|
@@ -793,6 +799,12 @@ interface TokenUsageSummary {
|
|
|
793
799
|
* Total tokens (input + output)
|
|
794
800
|
*/
|
|
795
801
|
totalTokens: number;
|
|
802
|
+
/** Cached input tokens, when reported for every contributing call. */
|
|
803
|
+
cachedInputTokens?: number | null;
|
|
804
|
+
/** Default-duration cache writes, when reported for every contributing call. */
|
|
805
|
+
cacheWriteTokens?: number | null;
|
|
806
|
+
/** One-hour cache writes, when reported for every contributing call. */
|
|
807
|
+
cacheWrite1hTokens?: number | null;
|
|
796
808
|
}
|
|
797
809
|
type TokenUsageMetadataValue = string | number | boolean | null;
|
|
798
810
|
type TokenUsageMetadata = Record<string, TokenUsageMetadataValue>;
|
package/dist/index.d.ts
CHANGED
|
@@ -774,6 +774,12 @@ interface ModelUsageDetail {
|
|
|
774
774
|
* Always equals inputTokens + outputTokens.
|
|
775
775
|
*/
|
|
776
776
|
totalTokens: number;
|
|
777
|
+
/** Cached input tokens reported by the provider; null means unreported. */
|
|
778
|
+
cachedInputTokens?: number | null;
|
|
779
|
+
/** Cache creation tokens at the default duration; null means unreported. */
|
|
780
|
+
cacheWriteTokens?: number | null;
|
|
781
|
+
/** Cache creation tokens at the one-hour duration; null means unreported. */
|
|
782
|
+
cacheWrite1hTokens?: number | null;
|
|
777
783
|
}
|
|
778
784
|
/**
|
|
779
785
|
* Summary of token usage
|
|
@@ -793,6 +799,12 @@ interface TokenUsageSummary {
|
|
|
793
799
|
* Total tokens (input + output)
|
|
794
800
|
*/
|
|
795
801
|
totalTokens: number;
|
|
802
|
+
/** Cached input tokens, when reported for every contributing call. */
|
|
803
|
+
cachedInputTokens?: number | null;
|
|
804
|
+
/** Default-duration cache writes, when reported for every contributing call. */
|
|
805
|
+
cacheWriteTokens?: number | null;
|
|
806
|
+
/** One-hour cache writes, when reported for every contributing call. */
|
|
807
|
+
cacheWrite1hTokens?: number | null;
|
|
796
808
|
}
|
|
797
809
|
type TokenUsageMetadataValue = string | number | boolean | null;
|
|
798
810
|
type TokenUsageMetadata = Record<string, TokenUsageMetadataValue>;
|
package/package.json
CHANGED