@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.
- package/node_modules/tokenjuice/README.md +4 -0
- package/node_modules/tokenjuice/dist/cli/main.d.ts +3 -0
- package/node_modules/tokenjuice/dist/cli/main.js +58 -10
- package/node_modules/tokenjuice/dist/core/analysis.js +3 -3
- package/node_modules/tokenjuice/dist/core/artifacts.d.ts +5 -1
- package/node_modules/tokenjuice/dist/core/artifacts.js +93 -45
- package/node_modules/tokenjuice/dist/core/bounded-jsonl.d.ts +26 -0
- package/node_modules/tokenjuice/dist/core/bounded-jsonl.js +407 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-bash-result.d.ts +1 -0
- package/node_modules/tokenjuice/dist/core/integrations/compact-bash-result.js +2 -1
- package/node_modules/tokenjuice/dist/core/reduce.js +5 -0
- package/node_modules/tokenjuice/dist/core/wrap.js +1 -1
- package/node_modules/tokenjuice/dist/hosts/codex/index.d.ts +6 -0
- package/node_modules/tokenjuice/dist/hosts/codex/index.js +365 -147
- package/node_modules/tokenjuice/dist/hosts/droid/index.js +12 -3
- package/node_modules/tokenjuice/dist/hosts/opencode/extension/runtime.js +1489 -1193
- package/node_modules/tokenjuice/dist/hosts/pi/extension/runtime.js +1471 -1175
- package/node_modules/tokenjuice/dist/index.d.ts +1 -1
- package/node_modules/tokenjuice/dist/index.js +1 -1
- package/node_modules/tokenjuice/dist/types.d.ts +15 -0
- package/node_modules/tokenjuice/package.json +1 -1
- package/package.json +5 -5
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/tokenjuice",
|
|
3
|
-
"version": "2026.9.
|
|
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.
|
|
11
|
+
"tokenjuice": "0.8.4"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"openclaw": ">=2026.9.
|
|
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.
|
|
32
|
+
"pluginApi": ">=2026.9.6"
|
|
33
33
|
},
|
|
34
34
|
"build": {
|
|
35
|
-
"openclawVersion": "2026.9.
|
|
35
|
+
"openclawVersion": "2026.9.6",
|
|
36
36
|
"bundledDist": false
|
|
37
37
|
},
|
|
38
38
|
"release": {
|