open-agents-ai 0.63.0 → 0.64.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 (2) hide show
  1. package/dist/index.js +34 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31567,6 +31567,37 @@ Call task_complete with the JSON array when done.`, onEvent)
31567
31567
  });
31568
31568
 
31569
31569
  // packages/cli/dist/tui/emotion-engine.js
31570
+ function labelFromCoordinates(valence, arousal) {
31571
+ if (valence > 0.6 && arousal > 0.6)
31572
+ return { label: "exhilarated", emoji: "\u{1F929}" };
31573
+ if (valence > 0.4 && arousal > 0.5)
31574
+ return { label: "excited", emoji: "\u{1F525}" };
31575
+ if (valence > 0.25 && arousal > 0.45)
31576
+ return { label: "energized", emoji: "\u26A1" };
31577
+ if (valence < -0.6 && arousal > 0.6)
31578
+ return { label: "distressed", emoji: "\u{1F630}" };
31579
+ if (valence < -0.3 && arousal > 0.5)
31580
+ return { label: "frustrated", emoji: "\u{1F624}" };
31581
+ if (valence < -0.15 && arousal > 0.4)
31582
+ return { label: "tense", emoji: "\u{1F62C}" };
31583
+ if (valence < -0.5 && arousal < 0.25)
31584
+ return { label: "dejected", emoji: "\u{1F61E}" };
31585
+ if (valence < -0.3 && arousal < 0.35)
31586
+ return { label: "weary", emoji: "\u{1F62E}\u200D\u{1F4A8}" };
31587
+ if (valence < -0.1 && arousal < 0.3)
31588
+ return { label: "cautious", emoji: "\u{1F610}" };
31589
+ if (valence > 0.5 && arousal < 0.25)
31590
+ return { label: "serene", emoji: "\u{1F60C}" };
31591
+ if (valence > 0.3 && arousal < 0.35)
31592
+ return { label: "content", emoji: "\u{1F60A}" };
31593
+ if (valence > 0.15 && arousal < 0.35)
31594
+ return { label: "calm", emoji: "\u{1F642}" };
31595
+ if (valence > 0.2)
31596
+ return { label: "optimistic", emoji: "\u{1F642}" };
31597
+ if (valence < -0.1)
31598
+ return { label: "wary", emoji: "\u{1F928}" };
31599
+ return { label: "curious", emoji: "\u{1F914}" };
31600
+ }
31570
31601
  function appraiseEvent(event) {
31571
31602
  switch (event.type) {
31572
31603
  case "tool_result":
@@ -31683,6 +31714,9 @@ ${behavioralHint}`;
31683
31714
  this.state.valence = clamp(this.state.valence + delta.valence * momentum, -1, 1);
31684
31715
  this.state.arousal = clamp(this.state.arousal + delta.arousal * momentum, 0, 1);
31685
31716
  this.state.updatedAt = Date.now();
31717
+ const deterministicLabel = labelFromCoordinates(this.state.valence, this.state.arousal);
31718
+ this.state.label = deterministicLabel.label;
31719
+ this.state.emoji = deterministicLabel.emoji;
31686
31720
  const valenceShift = Math.abs(this.state.valence - this.lastLabelValence);
31687
31721
  const arousalShift = Math.abs(this.state.arousal - this.lastLabelArousal);
31688
31722
  const significantDrift = valenceShift > LABEL_REGEN_THRESHOLD || arousalShift > LABEL_REGEN_THRESHOLD;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.63.0",
3
+ "version": "0.64.0",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",