modelstat 0.0.37 → 0.0.38

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 CHANGED
@@ -44362,7 +44362,7 @@ var COGNITION_SYSTEM_PROMPT, MAX_COGNITION_TAGS_PER_FIELD, MAX_COGNITION_TAG_CHA
44362
44362
  var init_cognition = __esm({
44363
44363
  "../../packages/companion-core/src/pipeline/cognition.ts"() {
44364
44364
  "use strict";
44365
- COGNITION_SYSTEM_PROMPT = 'You read a one-sentence summary of an AI-coding work session and identify the user\'s emotional state and meta-cognitive state. Output JSON only \u2014 first character of reply is `{`. Schema: {"emotions":[],"meta":[]}. emotions: \u2264 3 short lowercase mood tags such as frustrated, curious, excited, focused, calm, confused, anxious, satisfied, proud, bored, energised. meta: \u2264 3 short lowercase tags about cognitive mode, such as debugging, exploring, planning, designing, learning, deciding, reviewing, refactoring, investigating, documenting. Each tag \u2264 24 chars, single word or hyphenated, no punctuation. Only emit a tag if the summary gives clear evidence \u2014 return [] for either field when unsure. Do not invent emotions the user did not display. No prose, no markdown.';
44365
+ COGNITION_SYSTEM_PROMPT = 'You read a one-sentence summary of an AI-coding work session and identify the user\'s emotional state and meta-cognitive state. Output JSON only \u2014 first character of reply is `{`. Schema: {"emotions":[],"meta":[]}. emotions: \u2264 3 short lowercase MOOD tags \u2014 how the user FEELS \u2014 such as frustrated, curious, excited, calm, confused, anxious, satisfied, proud, bored, energised, overwhelmed, confident. meta: \u2264 3 short lowercase MENTAL-MODE tags \u2014 HOW the user is THINKING, never what they are doing. Valid examples: focused, scattered, in-flow, deliberate, hurried, stuck, open, exploratory, methodical, distracted. DO NOT emit ACTIVITY verbs (debugging, refactoring, designing, reviewing, deploying, planning, documenting, implementing) under meta \u2014 those describe the WORK, not the MIND. If the only candidate tag would be an activity verb, return [] for meta instead. Each tag \u2264 24 chars, single word or hyphenated, no punctuation. Only emit a tag if the summary gives clear evidence \u2014 return [] for either field when unsure. Do not invent emotions or mental modes the user did not display. No prose, no markdown.';
44366
44366
  MAX_COGNITION_TAGS_PER_FIELD = 3;
44367
44367
  MAX_COGNITION_TAG_CHARS = 24;
44368
44368
  COGNITION_MAX_TOKENS = 80;
@@ -45343,12 +45343,12 @@ async function getAdapters() {
45343
45343
  `[modelstat] ollama up at ${ollamaCfg.baseUrl} \u2014 using ${ollamaCfg.chatModel} for summarisation`
45344
45344
  );
45345
45345
  adapters = {
45346
- // BGE-small via transformers.js — same model the server uses
45347
- // via fastembed, so segment vectors land in the same 384-dim
45348
- // space as leaf-description vectors and cosine similarity is
45349
- // directly meaningful. We do NOT use ollamaEmbed here because
45350
- // Ollama's library doesn't host bge-small (404 on pull) and
45351
- // shipping MiniLM-via-Ollama vs BGE-small-server would break
45346
+ // BGE-small via transformers.js — same model the server uses,
45347
+ // so segment vectors land in the same 384-dim space as
45348
+ // leaf-description vectors and cosine similarity is directly
45349
+ // meaningful. We do NOT use ollamaEmbed here because Ollama's
45350
+ // library doesn't host bge-small (404 on pull) and shipping
45351
+ // MiniLM via Ollama vs BGE-small server-side would break
45352
45352
  // cross-source similarity.
45353
45353
  embed: createTransformersJsEmbedder(),
45354
45354
  summarize: ollamaSummarize(ollamaCfg),
@@ -45518,7 +45518,7 @@ var init_scan = __esm({
45518
45518
  init_pipeline2();
45519
45519
  init_config2();
45520
45520
  init_api();
45521
- AGENT_VERSION = "agent-0.0.37";
45521
+ AGENT_VERSION = "agent-0.0.38";
45522
45522
  BATCH_MAX_EVENTS = 2e3;
45523
45523
  }
45524
45524
  });
@@ -47610,7 +47610,7 @@ var init_daemon = __esm({
47610
47610
  init_config2();
47611
47611
  init_lock();
47612
47612
  init_scan();
47613
- AGENT_VERSION2 = "agent-0.0.37";
47613
+ AGENT_VERSION2 = "agent-0.0.38";
47614
47614
  HEARTBEAT_INTERVAL_MS = 1e4;
47615
47615
  SCAN_INTERVAL_MS = 5 * 60 * 1e3;
47616
47616
  status = {
@@ -48044,7 +48044,7 @@ function tryOpenBrowser(url) {
48044
48044
  return false;
48045
48045
  }
48046
48046
  }
48047
- var AGENT_VERSION3 = "agent-0.0.37";
48047
+ var AGENT_VERSION3 = "agent-0.0.38";
48048
48048
  function osFamily() {
48049
48049
  const p = platform4();
48050
48050
  if (p === "darwin") return "macos";
@@ -48361,7 +48361,7 @@ async function cmdWatch() {
48361
48361
  }
48362
48362
  async function cmdStart(rest) {
48363
48363
  if (!state.bearer || !state.deviceId) {
48364
- console.error("not paired yet. Run `modelstat connect` first.");
48364
+ console.error("not paired yet. Run `modelstat` first.");
48365
48365
  process.exit(1);
48366
48366
  }
48367
48367
  const force = rest.includes("--force") || rest.includes("-f");
@@ -48373,7 +48373,7 @@ async function cmdStop() {
48373
48373
  uninstallService();
48374
48374
  console.log("\u2713 service stopped and uninstalled");
48375
48375
  console.log(` Your device pairing is still in ${state.storePath}`);
48376
- console.log(" Run `modelstat connect` again to re-enable.");
48376
+ console.log(" Run `modelstat` again to re-enable.");
48377
48377
  } catch (err) {
48378
48378
  console.error(`\u2717 ${err.message}`);
48379
48379
  process.exit(1);
@@ -48487,7 +48487,7 @@ async function cmdJobs(args) {
48487
48487
  process.stdout.write(`${JSON.stringify({ paired: false, reason: "no_claim_code" })}
48488
48488
  `);
48489
48489
  } else {
48490
- console.log("no claim code on record \u2014 run `modelstat connect` first");
48490
+ console.log("no claim code on record \u2014 run `modelstat` first");
48491
48491
  }
48492
48492
  return;
48493
48493
  }