@jarkkojs/goosedump 0.10.13 → 0.10.15

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 CHANGED
@@ -8,7 +8,7 @@ It builds on ideas from [`lllyasviel/VCC`](https://github.com/lllyasviel/VCC).
8
8
 
9
9
  ## Install
10
10
 
11
- Prebuilt binaries are available for Linux x64, macOS arm64, and Windows x64:
11
+ Prebuilt binaries are available for Linux x64 and arm64, macOS arm64, and Windows x64:
12
12
 
13
13
  ```sh
14
14
  npm install --global @jarkkojs/goosedump
@@ -75,6 +75,29 @@ waits for sufficient usage evidence; `mutate --force` is intended for testing.
75
75
  Embedding and compaction models are downloaded on first use, or ahead of time
76
76
  with `goosedump pull`. The mutation model is downloaded when first needed.
77
77
 
78
+ ## Inference performance
79
+
80
+ Local inference defaults to the physical CPU core count, capped by the CPUs
81
+ available to the process. Override compute and batch thread counts independently:
82
+
83
+ ```sh
84
+ GOOSEDUMP_INFERENCE_THREADS=6 \
85
+ GOOSEDUMP_INFERENCE_BATCH_THREADS=6 \
86
+ goosedump compact pi:context-id
87
+ ```
88
+
89
+ Linux builds enable OpenMP; macOS arm64 builds use Metal. Measure a representative
90
+ context before changing the defaults:
91
+
92
+ ```sh
93
+ goosedump benchmark pi:context-id --warmup 1 --runs 10
94
+ ```
95
+
96
+ The benchmark emits JSON containing the effective thread settings, end-to-end
97
+ per-run timing (including model loading), median and p95 latency, and stage medians
98
+ and p95s. Keep the machine, context range, and model cache unchanged when comparing
99
+ configurations.
100
+
78
101
  ## Pi extension
79
102
 
80
103
  The bundled [pi-goosedump extension](packages/pi-goosedump/README.md) adds
@@ -92,7 +115,7 @@ cargo clippy --all-targets -- -D warnings
92
115
  cargo fmt --check
93
116
  ```
94
117
 
95
- The published Linux x64 binary is a static glibc PIE.
118
+ The published Linux x64 and arm64 binaries are static glibc PIEs.
96
119
 
97
120
  ## License
98
121
 
package/bin/goosedump.js CHANGED
@@ -7,25 +7,20 @@ const fs = require('node:fs');
7
7
  const path = require('node:path');
8
8
 
9
9
  function resolveBinary() {
10
- const target = `${process.platform}-${process.arch}`;
11
-
12
- let packageName;
13
- let binaryName = 'goosedump';
14
-
15
- switch (target) {
16
- case 'linux-x64':
17
- packageName = '@jarkkojs/goosedump-linux-x64';
18
- break;
19
- case 'darwin-arm64':
20
- packageName = '@jarkkojs/goosedump-darwin-arm64';
21
- break;
22
- case 'win32-x64':
23
- packageName = '@jarkkojs/goosedump-win32-x64';
24
- binaryName = 'goosedump.exe';
25
- break;
26
- default:
27
- throw new Error(`unsupported platform architecture: ${target}`);
10
+ const platform = `${process.platform}-${process.arch}`;
11
+ const packages = {
12
+ 'darwin-arm64': '@jarkkojs/goosedump-darwin-arm64',
13
+ 'linux-arm64': '@jarkkojs/goosedump-linux-arm64',
14
+ 'linux-x64': '@jarkkojs/goosedump-linux-x64',
15
+ 'win32-x64': '@jarkkojs/goosedump-win32-x64',
16
+ };
17
+ const packageName = packages[platform];
18
+ if (!packageName) {
19
+ throw new Error(
20
+ `unsupported platform: ${platform}; supported platforms: ${Object.keys(packages).join(', ')}`
21
+ );
28
22
  }
23
+ const binaryName = process.platform === 'win32' ? 'goosedump.exe' : 'goosedump';
29
24
 
30
25
  let packageDir;
31
26
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jarkkojs/goosedump",
3
- "version": "0.10.13",
3
+ "version": "0.10.15",
4
4
  "description": "Coding agent context data browser",
5
5
  "license": "Apache-2.0 AND LGPL-2.1-or-later",
6
6
  "homepage": "https://github.com/jarkkojs/goosedump#readme",
@@ -22,9 +22,10 @@
22
22
  "THIRD_PARTY_NOTICES.txt"
23
23
  ],
24
24
  "optionalDependencies": {
25
- "@jarkkojs/goosedump-darwin-arm64": "0.10.13",
26
- "@jarkkojs/goosedump-linux-x64": "0.10.13",
27
- "@jarkkojs/goosedump-win32-x64": "0.10.13"
25
+ "@jarkkojs/goosedump-darwin-arm64": "0.10.15",
26
+ "@jarkkojs/goosedump-linux-arm64": "0.10.15",
27
+ "@jarkkojs/goosedump-linux-x64": "0.10.15",
28
+ "@jarkkojs/goosedump-win32-x64": "0.10.15"
28
29
  },
29
30
  "publishConfig": {
30
31
  "access": "public"