@scira/cli 0.1.7 → 0.1.8

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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { HOME_TIPS, SPINNER_FRAMES } from "../constants.js";
2
+ import { HOME_TIPS } from "../constants.js";
3
3
  /** Stable mount-only effect: makes intent explicit, prevents accidental dep-driven re-runs. */
4
4
  export function useMountEffect(effect) {
5
5
  /* eslint-disable-next-line react-hooks/exhaustive-deps */
@@ -17,7 +17,10 @@ export function TipCycler({ setTipIndex }) {
17
17
  export function AnimationTick({ setBlink, setFrame, setReasoningTick, }) {
18
18
  useMountEffect(() => {
19
19
  const blinkId = setInterval(() => setBlink((v) => !v), 400);
20
- const frameId = setInterval(() => setFrame((f) => (f + 1) % SPINNER_FRAMES.length), 80);
20
+ // frame increments monotonically; consumers take `% SPINNER_FRAMES.length` for the
21
+ // spinner glyph and `Math.floor(frame / 24)` for the slow phrase rotation. Wrapping it
22
+ // here would pin the phrase to index 0 forever (frame would never exceed the frame count).
23
+ const frameId = setInterval(() => setFrame((f) => f + 1), 80);
21
24
  const tickId = setInterval(() => setReasoningTick((t) => t + 1), 500);
22
25
  return () => {
23
26
  clearInterval(blinkId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scira/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Scira — terminal-native AI research agent with grounded sources, verified claims, and local run storage.",
5
5
  "license": "MIT",
6
6
  "type": "module",