@openclaw/tokenjuice 2026.9.5 → 2026.9.6

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.
@@ -1,4 +1,4 @@
1
- export { ARTIFACT_DIR_ENV, getArtifact, isValidArtifactId, listArtifactMetadata, listArtifacts, resolveArtifactBaseDir, storeArtifact, storeArtifactMetadata } from "./core/artifacts.js";
1
+ export { ARTIFACT_DIR_ENV, STATS_ENABLED_ENV, getArtifact, isValidArtifactId, listArtifactMetadata, listArtifactMetadataPage, listArtifacts, resolveArtifactBaseDir, shouldRecordStats, storeArtifact, storeArtifactMetadata } from "./core/artifacts.js";
2
2
  export { buildAnalysisEntry, discoverCandidates, doctorArtifacts, statsArtifacts } from "./core/analysis.js";
3
3
  export { classifyExecution } from "./core/classify.js";
4
4
  export { normalizeCommandSignature, normalizeEffectiveCommandSignature, normalizeExecutionInput, tokenizeCommand } from "./core/command.js";
@@ -1,4 +1,4 @@
1
- export { ARTIFACT_DIR_ENV, getArtifact, isValidArtifactId, listArtifactMetadata, listArtifacts, resolveArtifactBaseDir, storeArtifact, storeArtifactMetadata } from "./core/artifacts.js";
1
+ export { ARTIFACT_DIR_ENV, STATS_ENABLED_ENV, getArtifact, isValidArtifactId, listArtifactMetadata, listArtifactMetadataPage, listArtifacts, resolveArtifactBaseDir, shouldRecordStats, storeArtifact, storeArtifactMetadata } from "./core/artifacts.js";
2
2
  export { buildAnalysisEntry, discoverCandidates, doctorArtifacts, statsArtifacts } from "./core/analysis.js";
3
3
  export { classifyExecution } from "./core/classify.js";
4
4
  export { normalizeCommandSignature, normalizeEffectiveCommandSignature, normalizeExecutionInput, tokenizeCommand } from "./core/command.js";
@@ -106,6 +106,8 @@ export type StoredArtifactMetadata = {
106
106
  source?: string;
107
107
  toolName?: string;
108
108
  command?: string;
109
+ commandFamily?: string;
110
+ commandDigest?: string;
109
111
  exitCode?: number;
110
112
  captureTruncated?: boolean;
111
113
  classification: ClassificationResult;
@@ -118,8 +120,20 @@ export type ArtifactMetadataRef = {
118
120
  storage: "file";
119
121
  path?: string;
120
122
  metadataPath: string;
123
+ metadataFormat?: "json" | "jsonl-segment";
124
+ metadataRecordId?: string;
121
125
  metadata: StoredArtifactMetadata;
122
126
  };
127
+ export type ArtifactMetadataPage = {
128
+ entries: ArtifactMetadataRef[];
129
+ nextCursor?: string;
130
+ partial: boolean;
131
+ legacySidecarsIncluded: false;
132
+ };
133
+ export type ArtifactMetadataPageOptions = {
134
+ cursor?: string;
135
+ limit?: number;
136
+ };
123
137
  export type CompactResult = {
124
138
  inlineText: string;
125
139
  previewText?: string;
@@ -143,6 +157,7 @@ export type StoredArtifactInput = {
143
157
  input: ToolExecutionInput;
144
158
  rawText: string;
145
159
  classification: ClassificationResult;
160
+ recordStats?: boolean;
146
161
  stats?: {
147
162
  rawChars?: number;
148
163
  reducedChars: number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokenjuice",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "Lean output compaction for terminal-heavy agent workflows.",
5
5
  "keywords": [
6
6
  "cli",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/tokenjuice",
3
- "version": "2026.9.5",
3
+ "version": "2026.9.6",
4
4
  "description": "OpenClaw tokenjuice exec output compaction plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "tokenjuice": "0.8.3"
11
+ "tokenjuice": "0.8.4"
12
12
  },
13
13
  "peerDependencies": {
14
- "openclaw": ">=2026.9.5"
14
+ "openclaw": ">=2026.9.6"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "openclaw": {
@@ -29,10 +29,10 @@
29
29
  "minHostVersion": ">=2026.5.28"
30
30
  },
31
31
  "compat": {
32
- "pluginApi": ">=2026.9.5"
32
+ "pluginApi": ">=2026.9.6"
33
33
  },
34
34
  "build": {
35
- "openclawVersion": "2026.9.5",
35
+ "openclawVersion": "2026.9.6",
36
36
  "bundledDist": false
37
37
  },
38
38
  "release": {