@drewpayment/mink 0.13.0-beta.4 → 0.13.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.
Files changed (71) hide show
  1. package/README.md +22 -4
  2. package/dashboard/out/404.html +1 -1
  3. package/dashboard/out/action-log.html +1 -1
  4. package/dashboard/out/action-log.txt +1 -1
  5. package/dashboard/out/activity.html +1 -1
  6. package/dashboard/out/activity.txt +1 -1
  7. package/dashboard/out/bugs.html +1 -1
  8. package/dashboard/out/bugs.txt +1 -1
  9. package/dashboard/out/capture.html +1 -1
  10. package/dashboard/out/capture.txt +1 -1
  11. package/dashboard/out/compression.html +1 -1
  12. package/dashboard/out/compression.txt +1 -1
  13. package/dashboard/out/config.html +1 -1
  14. package/dashboard/out/config.txt +1 -1
  15. package/dashboard/out/daemon.html +1 -1
  16. package/dashboard/out/daemon.txt +1 -1
  17. package/dashboard/out/design.html +1 -1
  18. package/dashboard/out/design.txt +1 -1
  19. package/dashboard/out/discord.html +1 -1
  20. package/dashboard/out/discord.txt +1 -1
  21. package/dashboard/out/file-index.html +1 -1
  22. package/dashboard/out/file-index.txt +1 -1
  23. package/dashboard/out/index.html +1 -1
  24. package/dashboard/out/index.txt +1 -1
  25. package/dashboard/out/insights.html +1 -1
  26. package/dashboard/out/insights.txt +1 -1
  27. package/dashboard/out/learning.html +1 -1
  28. package/dashboard/out/learning.txt +1 -1
  29. package/dashboard/out/overview.html +1 -1
  30. package/dashboard/out/overview.txt +1 -1
  31. package/dashboard/out/scheduler.html +1 -1
  32. package/dashboard/out/scheduler.txt +1 -1
  33. package/dashboard/out/sync.html +1 -1
  34. package/dashboard/out/sync.txt +1 -1
  35. package/dashboard/out/tokens.html +1 -1
  36. package/dashboard/out/tokens.txt +1 -1
  37. package/dashboard/out/waste.html +1 -1
  38. package/dashboard/out/waste.txt +1 -1
  39. package/dashboard/out/wiki.html +1 -1
  40. package/dashboard/out/wiki.txt +1 -1
  41. package/dist/cli.bun.js +3961 -3354
  42. package/dist/cli.node.js +4347 -3535
  43. package/package.json +1 -1
  44. package/src/cli.ts +29 -5
  45. package/src/commands/init.ts +132 -10
  46. package/src/commands/post-read.ts +1 -1
  47. package/src/commands/post-tool.ts +1 -1
  48. package/src/commands/refresh-hooks.ts +42 -0
  49. package/src/commands/retrieve.ts +1 -1
  50. package/src/commands/session-start.ts +11 -0
  51. package/src/core/agent-detect.ts +88 -0
  52. package/src/core/agent-pi.ts +383 -0
  53. package/src/core/code-skeleton.ts +1 -1
  54. package/src/core/compress-tool-output.ts +4 -4
  55. package/src/core/compression.ts +6 -7
  56. package/src/core/dashboard-api.ts +1 -1
  57. package/src/core/hook-output.ts +1 -1
  58. package/src/core/hook-refresh.ts +81 -0
  59. package/src/core/output-compression.ts +2 -2
  60. package/src/core/prompt.ts +27 -0
  61. package/src/core/self-update.ts +15 -0
  62. package/src/repositories/compression-cache-repo.ts +1 -1
  63. package/src/repositories/token-ledger-repo.ts +1 -1
  64. package/src/storage/schema.ts +2 -2
  65. package/src/types/compression.ts +1 -1
  66. package/src/types/config.ts +3 -2
  67. package/src/types/dashboard.ts +2 -2
  68. package/src/types/hook-input.ts +1 -1
  69. package/src/types/token-ledger.ts +2 -2
  70. /package/dashboard/out/_next/static/{zeNEMTDaNBRpOk-to-GkA → -4YWlyQ2hLeORI396Uz1n}/_buildManifest.js +0 -0
  71. /package/dashboard/out/_next/static/{zeNEMTDaNBRpOk-to-GkA → -4YWlyQ2hLeORI396Uz1n}/_ssgManifest.js +0 -0
@@ -186,9 +186,10 @@ export const CONFIG_KEYS: ConfigKeyMeta[] = [
186
186
  },
187
187
  {
188
188
  key: "compression.enabled",
189
- default: "false",
189
+ default: "true",
190
190
  envVar: "MINK_COMPRESSION_ENABLED",
191
- description: "Enable tool-output compression (spec 21). Off until inline compression ships.",
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
  {
@@ -66,7 +66,7 @@ export interface OverviewPayload {
66
66
  totalWrites: number;
67
67
  estimatedSavings: number;
68
68
  };
69
- // Measured tool-output compression aggregates (spec 21), kept distinct from
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 21, phase 4).
82
+ // Dedicated Compression panel payload (spec 22, phase 4).
83
83
  export interface CompressionPayload {
84
84
  enabled: boolean;
85
85
  lifetime: CompressionLifetime;
@@ -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 21 edge case).
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 21). Optional because the
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 21).
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