@drewpayment/mink 0.13.0-beta.4 → 0.13.0-beta.5
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.md +22 -4
- package/dashboard/out/404.html +1 -1
- package/dashboard/out/action-log.html +1 -1
- package/dashboard/out/action-log.txt +1 -1
- package/dashboard/out/activity.html +1 -1
- package/dashboard/out/activity.txt +1 -1
- package/dashboard/out/bugs.html +1 -1
- package/dashboard/out/bugs.txt +1 -1
- package/dashboard/out/capture.html +1 -1
- package/dashboard/out/capture.txt +1 -1
- package/dashboard/out/compression.html +1 -1
- package/dashboard/out/compression.txt +1 -1
- package/dashboard/out/config.html +1 -1
- package/dashboard/out/config.txt +1 -1
- package/dashboard/out/daemon.html +1 -1
- package/dashboard/out/daemon.txt +1 -1
- package/dashboard/out/design.html +1 -1
- package/dashboard/out/design.txt +1 -1
- package/dashboard/out/discord.html +1 -1
- package/dashboard/out/discord.txt +1 -1
- package/dashboard/out/file-index.html +1 -1
- package/dashboard/out/file-index.txt +1 -1
- package/dashboard/out/index.html +1 -1
- package/dashboard/out/index.txt +1 -1
- package/dashboard/out/insights.html +1 -1
- package/dashboard/out/insights.txt +1 -1
- package/dashboard/out/learning.html +1 -1
- package/dashboard/out/learning.txt +1 -1
- package/dashboard/out/overview.html +1 -1
- package/dashboard/out/overview.txt +1 -1
- package/dashboard/out/scheduler.html +1 -1
- package/dashboard/out/scheduler.txt +1 -1
- package/dashboard/out/sync.html +1 -1
- package/dashboard/out/sync.txt +1 -1
- package/dashboard/out/tokens.html +1 -1
- package/dashboard/out/tokens.txt +1 -1
- package/dashboard/out/waste.html +1 -1
- package/dashboard/out/waste.txt +1 -1
- package/dashboard/out/wiki.html +1 -1
- package/dashboard/out/wiki.txt +1 -1
- package/dist/cli.bun.js +3961 -3354
- package/dist/cli.node.js +4347 -3535
- package/package.json +1 -1
- package/src/cli.ts +29 -5
- package/src/commands/init.ts +132 -10
- package/src/commands/post-read.ts +1 -1
- package/src/commands/post-tool.ts +1 -1
- package/src/commands/refresh-hooks.ts +42 -0
- package/src/commands/retrieve.ts +1 -1
- package/src/commands/session-start.ts +11 -0
- package/src/core/agent-detect.ts +88 -0
- package/src/core/agent-pi.ts +383 -0
- package/src/core/code-skeleton.ts +1 -1
- package/src/core/compress-tool-output.ts +4 -4
- package/src/core/compression.ts +6 -7
- package/src/core/dashboard-api.ts +1 -1
- package/src/core/hook-output.ts +1 -1
- package/src/core/hook-refresh.ts +81 -0
- package/src/core/output-compression.ts +2 -2
- package/src/core/prompt.ts +27 -0
- package/src/core/self-update.ts +15 -0
- package/src/repositories/compression-cache-repo.ts +1 -1
- package/src/repositories/token-ledger-repo.ts +1 -1
- package/src/storage/schema.ts +2 -2
- package/src/types/compression.ts +1 -1
- package/src/types/config.ts +3 -2
- package/src/types/dashboard.ts +2 -2
- package/src/types/hook-input.ts +1 -1
- package/src/types/token-ledger.ts +2 -2
- /package/dashboard/out/_next/static/{zeNEMTDaNBRpOk-to-GkA → Yov5CTLEIMMDdQaCwuG1a}/_buildManifest.js +0 -0
- /package/dashboard/out/_next/static/{zeNEMTDaNBRpOk-to-GkA → Yov5CTLEIMMDdQaCwuG1a}/_ssgManifest.js +0 -0
package/src/types/config.ts
CHANGED
|
@@ -186,9 +186,10 @@ export const CONFIG_KEYS: ConfigKeyMeta[] = [
|
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
key: "compression.enabled",
|
|
189
|
-
default: "
|
|
189
|
+
default: "true",
|
|
190
190
|
envVar: "MINK_COMPRESSION_ENABLED",
|
|
191
|
-
description:
|
|
191
|
+
description:
|
|
192
|
+
"Enable tool-output compression (spec 22). On by default; set false to opt out.",
|
|
192
193
|
scope: "shared",
|
|
193
194
|
},
|
|
194
195
|
{
|
package/src/types/dashboard.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface OverviewPayload {
|
|
|
66
66
|
totalWrites: number;
|
|
67
67
|
estimatedSavings: number;
|
|
68
68
|
};
|
|
69
|
-
// Measured tool-output compression aggregates (spec
|
|
69
|
+
// Measured tool-output compression aggregates (spec 22), kept distinct from
|
|
70
70
|
// the heuristic estimatedSavings above. Optional for back-compat.
|
|
71
71
|
compression?: CompressionLifetime;
|
|
72
72
|
stateFiles: FileStatus[];
|
|
@@ -79,7 +79,7 @@ export interface TokenLedgerPayload {
|
|
|
79
79
|
compression?: CompressionLifetime;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
// Dedicated Compression panel payload (spec
|
|
82
|
+
// Dedicated Compression panel payload (spec 22, phase 4).
|
|
83
83
|
export interface CompressionPayload {
|
|
84
84
|
enabled: boolean;
|
|
85
85
|
lifetime: CompressionLifetime;
|
package/src/types/hook-input.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface PostToolUseInput {
|
|
|
20
20
|
old_string?: string;
|
|
21
21
|
new_string?: string;
|
|
22
22
|
// Read tool — present for ranged reads; their output is a slice, so we
|
|
23
|
-
// don't substitute a whole-file summary for them (spec
|
|
23
|
+
// don't substitute a whole-file summary for them (spec 22 edge case).
|
|
24
24
|
offset?: number;
|
|
25
25
|
limit?: number;
|
|
26
26
|
};
|
|
@@ -40,13 +40,13 @@ export interface TokenLedger {
|
|
|
40
40
|
lifetime: LifetimeCounters;
|
|
41
41
|
sessions: LedgerSession[];
|
|
42
42
|
wasteFlags?: WasteFlag[];
|
|
43
|
-
// Measured tool-output compression aggregates (spec
|
|
43
|
+
// Measured tool-output compression aggregates (spec 22). Optional because the
|
|
44
44
|
// legacy JSON-fallback ledger path has no compression data; only the SQLite
|
|
45
45
|
// snapshot() populates it.
|
|
46
46
|
compression?: CompressionLifetime;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
// Tool-output compression measurement (spec
|
|
49
|
+
// Tool-output compression measurement (spec 22).
|
|
50
50
|
|
|
51
51
|
// What the caller supplies when recording a compression decision. `id` and
|
|
52
52
|
// `createdAt` are generated when omitted. For a holdout arm, pass the original
|
|
File without changes
|
/package/dashboard/out/_next/static/{zeNEMTDaNBRpOk-to-GkA → Yov5CTLEIMMDdQaCwuG1a}/_ssgManifest.js
RENAMED
|
File without changes
|