@theoremjs/react 0.3.5-next.995.gc476a3d → 0.3.5-next.997.g6d32810

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
@@ -592,7 +592,7 @@ function Dock({ chat, iface }) {
592
592
 
593
593
  `TheoremChatComposer` takes `layout`, `icons`, `placeholder`, and `inputRef`. `TheoremChatTranscript` takes the props of `ChatTranscript` that the chat does not give: `handle`, `emptyState`, `dividers`, `usage`, and `bodyKindPlacement`. Its `handle` is the handle of the profile when you leave it out. Put both pieces inside one `TheoremSurface`. It takes what `TheoremChat` takes for the look and the media: `theme`, `mode`, `labels`, `detectCodeLanguage`, `media`, `resolveMedia`, and `mediaViewer`.
594
594
 
595
- The two pieces read one clock: `chat.turnClock`. So the working pill of the composer and the status line of the transcript show the same time. `chat.workingSince` is when the reply in progress started, less its waits for approval. `chat.shownBlocks` is what the transcript shows: `chat.blocks`, then `chat.streamBlocks`.
595
+ The two pieces read one clock: `chat.turnClock`. So the working pill of the composer and the status line of the transcript show the same time. `chat.workingSince` is when the reply in progress started, less its waits for approval. For a reply that runs elsewhere, it is `chat.runningElsewhere.since`. `chat.shownBlocks` is what the transcript shows: `chat.blocks`, then `chat.streamBlocks`.
596
596
 
597
597
  To draw one piece in your own way, use `ChatTranscript` and `ChatComposerBar` from `/ui`, or draw from `chat.shownBlocks`. Pass `clock={chat.turnClock}` to `ChatTranscript` and `workingSince={chat.workingSince}` to `ChatComposerBar` so their times agree.
598
598
 
@@ -24,7 +24,10 @@ export type TheoremChatState = ChatState & {
24
24
  * `clock` so its times agree with the composer's working pill.
25
25
  */
26
26
  turnClock: TurnClock;
27
- /** When the reply in progress started, its approval waits skipped; `undefined` when none runs. */
27
+ /**
28
+ * When the reply in progress started: one this page runs, its approval waits skipped, or one
29
+ * that runs elsewhere (`runningElsewhere.since`); `undefined` when none runs.
30
+ */
28
31
  workingSince: number | undefined;
29
32
  /** The tool calls still running in the background, oldest first, until their results land. */
30
33
  backgroundJobs: BackgroundJob[];
@@ -27,7 +27,7 @@ export function useTheoremChat(options) {
27
27
  optionChoices,
28
28
  shownBlocks,
29
29
  turnClock,
30
- workingSince: liveTurnStart(groups, turnClock, state.streaming),
30
+ workingSince: state.runningElsewhere?.since ?? liveTurnStart(groups, turnClock, state.streaming),
31
31
  backgroundJobs: jobs,
32
32
  setDraftText: chat.setDraftText,
33
33
  setPendingFiles: chat.setPendingFiles,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/react",
3
- "version": "0.3.5-next.995.gc476a3d",
3
+ "version": "0.3.5-next.997.g6d32810",
4
4
  "description": "React bindings for Theorem: headless hooks + transport, an Astryx chat UI, and a Web-standard server handler.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -60,8 +60,8 @@
60
60
  "@stylexjs/stylex": "0.19.0",
61
61
  "react": "^19.0.0",
62
62
  "react-dom": "^19.0.0",
63
- "@theoremjs/agents": "^0.3.5-next.995.gc476a3d",
64
- "@theoremjs/web": "^0.3.5-next.995.gc476a3d"
63
+ "@theoremjs/agents": "^0.3.5-next.997.g6d32810",
64
+ "@theoremjs/web": "^0.3.5-next.997.g6d32810"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@astryxdesign/core": {