modelstat 0.0.36 → 0.0.37
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/dist/cli.mjs +24 -3
- package/dist/cli.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -44839,6 +44839,14 @@ function ollamaSummarize(cfg = defaultOllamaConfig()) {
|
|
|
44839
44839
|
body: JSON.stringify({
|
|
44840
44840
|
model: cfg.chatModel,
|
|
44841
44841
|
stream: false,
|
|
44842
|
+
// Disable reasoning. qwen3 (the default summariser family) is a
|
|
44843
|
+
// thinking model: with `think` on it spends the entire
|
|
44844
|
+
// `num_predict` budget on a <think> block and returns EMPTY
|
|
44845
|
+
// content, so the summariser saw "" and the whole pipeline
|
|
44846
|
+
// crash-looped at preflight. We only want the final terse
|
|
44847
|
+
// abstract, never the chain-of-thought. Ollama ignores this
|
|
44848
|
+
// field for non-thinking models, so it's safe across families.
|
|
44849
|
+
think: false,
|
|
44842
44850
|
options: {
|
|
44843
44851
|
temperature: SUMMARISER_TEMPERATURE,
|
|
44844
44852
|
num_predict: Math.min(maxTokens, SUMMARISER_MAX_TOKENS)
|
|
@@ -44868,6 +44876,10 @@ function ollamaCognize(cfg = defaultOllamaConfig()) {
|
|
|
44868
44876
|
model: cfg.chatModel,
|
|
44869
44877
|
stream: false,
|
|
44870
44878
|
format: "json",
|
|
44879
|
+
// Same reason as the summariser: no thinking budget, just the
|
|
44880
|
+
// JSON cognition tags. Thinking models otherwise emit a long
|
|
44881
|
+
// <think> block and return empty content.
|
|
44882
|
+
think: false,
|
|
44871
44883
|
options: {
|
|
44872
44884
|
temperature: COGNITION_TEMPERATURE,
|
|
44873
44885
|
num_predict: COGNITION_MAX_TOKENS
|
|
@@ -45506,7 +45518,7 @@ var init_scan = __esm({
|
|
|
45506
45518
|
init_pipeline2();
|
|
45507
45519
|
init_config2();
|
|
45508
45520
|
init_api();
|
|
45509
|
-
AGENT_VERSION = "agent-0.0.
|
|
45521
|
+
AGENT_VERSION = "agent-0.0.37";
|
|
45510
45522
|
BATCH_MAX_EVENTS = 2e3;
|
|
45511
45523
|
}
|
|
45512
45524
|
});
|
|
@@ -47598,7 +47610,7 @@ var init_daemon = __esm({
|
|
|
47598
47610
|
init_config2();
|
|
47599
47611
|
init_lock();
|
|
47600
47612
|
init_scan();
|
|
47601
|
-
AGENT_VERSION2 = "agent-0.0.
|
|
47613
|
+
AGENT_VERSION2 = "agent-0.0.37";
|
|
47602
47614
|
HEARTBEAT_INTERVAL_MS = 1e4;
|
|
47603
47615
|
SCAN_INTERVAL_MS = 5 * 60 * 1e3;
|
|
47604
47616
|
status = {
|
|
@@ -47806,6 +47818,11 @@ ${programArgs}
|
|
|
47806
47818
|
<key>EnvironmentVariables</key>
|
|
47807
47819
|
<dict>
|
|
47808
47820
|
<key>PATH</key><string>/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin</string>
|
|
47821
|
+
<!-- Heap headroom for the startup scan of a large transcript backlog.
|
|
47822
|
+
Node's default old-space ceiling (~4 GB) OOM-crashed the daemon on
|
|
47823
|
+
big histories; raise it well below typical RAM. Inherited by the
|
|
47824
|
+
tray-spawned 'modelstat start' child too (NODE_OPTIONS propagates). -->
|
|
47825
|
+
<key>NODE_OPTIONS</key><string>--max-old-space-size=8192</string>
|
|
47809
47826
|
</dict>
|
|
47810
47827
|
<key>WorkingDirectory</key><string>${home()}</string>
|
|
47811
47828
|
</dict>
|
|
@@ -47869,6 +47886,10 @@ Wants=network-online.target
|
|
|
47869
47886
|
|
|
47870
47887
|
[Service]
|
|
47871
47888
|
Type=simple
|
|
47889
|
+
# Heap headroom for the startup scan of a large transcript backlog \u2014
|
|
47890
|
+
# Node's default ~4 GB old-space ceiling OOM-crashed the daemon on big
|
|
47891
|
+
# histories.
|
|
47892
|
+
Environment=NODE_OPTIONS=--max-old-space-size=8192
|
|
47872
47893
|
ExecStart=${nodeBinary()} ${cliPath} start
|
|
47873
47894
|
Restart=always
|
|
47874
47895
|
RestartSec=10
|
|
@@ -48023,7 +48044,7 @@ function tryOpenBrowser(url) {
|
|
|
48023
48044
|
return false;
|
|
48024
48045
|
}
|
|
48025
48046
|
}
|
|
48026
|
-
var AGENT_VERSION3 = "agent-0.0.
|
|
48047
|
+
var AGENT_VERSION3 = "agent-0.0.37";
|
|
48027
48048
|
function osFamily() {
|
|
48028
48049
|
const p = platform4();
|
|
48029
48050
|
if (p === "darwin") return "macos";
|