@theoremjs/react 0.3.4-next.363.g11be542 → 0.3.4-next.373.gab46e23

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 (193) hide show
  1. package/README.md +21 -336
  2. package/client/host-call.d.ts +2 -2
  3. package/client/host-call.js +1 -2
  4. package/client/index.d.ts +1 -28
  5. package/client/index.js +1 -22
  6. package/client/live/apply-live-turn-tool-event.js +1 -1
  7. package/client/live/run-live-tool-call.d.ts +1 -3
  8. package/client/live/run-live-tool-call.js +1 -1
  9. package/client/transcript-groups.js +1 -1
  10. package/client/voice-recorder.js +1 -1
  11. package/components/live/use-live-runner-controls.d.ts +1 -2
  12. package/components/live/use-live-runner-model.d.ts +7 -8
  13. package/components/live/use-live-runner-model.js +1 -2
  14. package/components/live/use-live-runner-ui.d.ts +2 -4
  15. package/components/live/use-live-runner-ui.js +1 -1
  16. package/components/live/use-live-session-client.d.ts +2 -5
  17. package/components/live/use-live-session-client.js +1 -1
  18. package/hooks/use-described.d.ts +1 -1
  19. package/hooks/use-described.js +1 -1
  20. package/hooks/use-embedding-index.d.ts +1 -1
  21. package/hooks/use-embedding-index.js +1 -1
  22. package/hooks/use-one-call.d.ts +2 -2
  23. package/hooks/use-one-call.js +1 -2
  24. package/hooks/use-page-tool-warnings.d.ts +1 -1
  25. package/hooks/use-page-tool-warnings.js +1 -1
  26. package/hooks/use-theorem-chat-actions.d.ts +2 -4
  27. package/hooks/use-theorem-chat-actions.js +1 -3
  28. package/hooks/use-theorem-chat-state.d.ts +1 -2
  29. package/hooks/use-theorem-chat.d.ts +4 -5
  30. package/hooks/use-theorem-chat.js +1 -6
  31. package/hooks/use-theorem-decision.d.ts +1 -2
  32. package/hooks/use-theorem-embedding.d.ts +1 -2
  33. package/hooks/use-theorem-host.d.ts +2 -4
  34. package/hooks/use-theorem-host.js +1 -4
  35. package/hooks/use-theorem-interface.d.ts +1 -2
  36. package/hooks/use-trace-records.d.ts +1 -1
  37. package/index.d.ts +2 -3
  38. package/index.js +2 -3
  39. package/live.d.ts +1 -2
  40. package/package.json +3 -2
  41. package/server/mod.d.ts +1 -26
  42. package/server/mod.js +1 -24
  43. package/ui/ChatComposerBar.d.ts +1 -1
  44. package/ui/ChatTranscript.d.ts +1 -1
  45. package/ui/ChatTranscript.js +1 -1
  46. package/ui/ConsoleFrame.d.ts +1 -1
  47. package/ui/DecisionAnswers.d.ts +1 -1
  48. package/ui/EmbeddingDocuments.d.ts +2 -2
  49. package/ui/EmbeddingDocuments.js +1 -2
  50. package/ui/EmbeddingQuery.d.ts +1 -1
  51. package/ui/EmbeddingQuery.js +1 -2
  52. package/ui/EmbeddingResults.d.ts +1 -1
  53. package/ui/EmbeddingResults.js +1 -1
  54. package/ui/EmbeddingSpace.d.ts +1 -2
  55. package/ui/LiveRunner.d.ts +1 -2
  56. package/ui/SchemaFields.d.ts +1 -1
  57. package/ui/SchemaFields.js +1 -2
  58. package/ui/ShapedData.js +1 -1
  59. package/ui/StateFields.js +1 -1
  60. package/ui/TheoremChat.d.ts +2 -2
  61. package/ui/TheoremChat.js +1 -1
  62. package/ui/TheoremDecision.d.ts +1 -1
  63. package/ui/TheoremDecision.js +1 -1
  64. package/ui/TheoremEmbedding.d.ts +1 -1
  65. package/ui/TheoremEmbedding.js +1 -2
  66. package/ui/TheoremHost.d.ts +2 -3
  67. package/ui/TheoremHost.js +1 -3
  68. package/ui/ToolGateCard.d.ts +1 -1
  69. package/ui/ToolGateCard.js +1 -2
  70. package/ui/ToolResult.d.ts +1 -1
  71. package/ui/ToolResult.js +1 -2
  72. package/ui/ToolResultCharts.d.ts +1 -1
  73. package/ui/ToolResultCharts.js +1 -2
  74. package/ui/TraceInspector.d.ts +1 -1
  75. package/ui/TraceInspectorPanel.d.ts +1 -1
  76. package/ui/approval-heading.js +1 -1
  77. package/ui/embedding-space-gl.d.ts +2 -2
  78. package/ui/embedding-space-gl.js +1 -1
  79. package/ui/index.d.ts +1 -1
  80. package/ui/labels.d.ts +1 -1
  81. package/client/audio-level.d.ts +0 -5
  82. package/client/audio-level.js +0 -24
  83. package/client/decision-transport.d.ts +0 -70
  84. package/client/decision-transport.js +0 -175
  85. package/client/decode-composer-draft.d.ts +0 -11
  86. package/client/decode-composer-draft.js +0 -12
  87. package/client/embedding-input.d.ts +0 -84
  88. package/client/embedding-input.js +0 -194
  89. package/client/embedding-space.d.ts +0 -82
  90. package/client/embedding-space.js +0 -389
  91. package/client/embedding-transport.d.ts +0 -40
  92. package/client/embedding-transport.js +0 -71
  93. package/client/encode-composer-draft.d.ts +0 -9
  94. package/client/encode-composer-draft.js +0 -34
  95. package/client/encode-files.d.ts +0 -18
  96. package/client/encode-files.js +0 -54
  97. package/client/failure.d.ts +0 -29
  98. package/client/failure.js +0 -34
  99. package/client/generation-selection.d.ts +0 -15
  100. package/client/generation-selection.js +0 -24
  101. package/client/host-transport.d.ts +0 -70
  102. package/client/host-transport.js +0 -75
  103. package/client/live/live-mic-forward.d.ts +0 -30
  104. package/client/live/live-mic-forward.js +0 -46
  105. package/client/live/live-page-tool.d.ts +0 -34
  106. package/client/live/live-page-tool.js +0 -11
  107. package/client/live/live-state.d.ts +0 -13
  108. package/client/live/live-state.js +0 -22
  109. package/client/live/live-tool.d.ts +0 -11
  110. package/client/live/live-tool.js +0 -1
  111. package/client/live-client.d.ts +0 -189
  112. package/client/live-client.js +0 -829
  113. package/client/live-errors.d.ts +0 -2
  114. package/client/live-errors.js +0 -9
  115. package/client/live-messages.d.ts +0 -148
  116. package/client/live-messages.js +0 -100
  117. package/client/mic-capture.d.ts +0 -4
  118. package/client/mic-capture.js +0 -6
  119. package/client/oauth-popup.d.ts +0 -26
  120. package/client/oauth-popup.js +0 -30
  121. package/client/page-dispatch.d.ts +0 -15
  122. package/client/page-dispatch.js +0 -63
  123. package/client/pcm-downsample.d.ts +0 -4
  124. package/client/pcm-downsample.js +0 -45
  125. package/client/run-commit.d.ts +0 -34
  126. package/client/run-commit.js +0 -49
  127. package/client/run-session.d.ts +0 -79
  128. package/client/run-session.js +0 -207
  129. package/client/schema-fields.d.ts +0 -63
  130. package/client/schema-fields.js +0 -199
  131. package/client/shaped-data.d.ts +0 -118
  132. package/client/shaped-data.js +0 -343
  133. package/client/source-citations.d.ts +0 -13
  134. package/client/source-citations.js +0 -56
  135. package/client/space-geometry.d.ts +0 -39
  136. package/client/space-geometry.js +0 -183
  137. package/client/tool-result.d.ts +0 -78
  138. package/client/tool-result.js +0 -293
  139. package/client/tool-resume.d.ts +0 -50
  140. package/client/tool-resume.js +0 -14
  141. package/client/trace-feed.d.ts +0 -13
  142. package/client/trace-feed.js +0 -18
  143. package/client/transcript-schema.d.ts +0 -10
  144. package/client/transcript-schema.js +0 -120
  145. package/client/transport.d.ts +0 -264
  146. package/client/transport.js +0 -330
  147. package/client/turn-client.d.ts +0 -44
  148. package/client/turn-client.js +0 -88
  149. package/client/wire-line.d.ts +0 -56
  150. package/client/wire-line.js +0 -90
  151. package/client/worklets/mic-capture.js +0 -16
  152. package/server/checkpoint-ownership.d.ts +0 -6
  153. package/server/checkpoint-ownership.js +0 -42
  154. package/server/conversation-store.d.ts +0 -92
  155. package/server/conversation-store.js +0 -131
  156. package/server/conversation.d.ts +0 -193
  157. package/server/conversation.js +0 -552
  158. package/server/credential-store.d.ts +0 -24
  159. package/server/credential-store.js +0 -14
  160. package/server/decision-handler.d.ts +0 -42
  161. package/server/decision-handler.js +0 -46
  162. package/server/embedding-handler.d.ts +0 -33
  163. package/server/embedding-handler.js +0 -45
  164. package/server/handler.d.ts +0 -158
  165. package/server/handler.js +0 -775
  166. package/server/json-response.d.ts +0 -2
  167. package/server/json-response.js +0 -7
  168. package/server/mcp-handler.d.ts +0 -46
  169. package/server/mcp-handler.js +0 -312
  170. package/server/page-dispatch.d.ts +0 -22
  171. package/server/page-dispatch.js +0 -127
  172. package/server/request-body.d.ts +0 -2
  173. package/server/request-body.js +0 -42
  174. package/server/request-check.d.ts +0 -21
  175. package/server/request-check.js +0 -49
  176. package/server/session-authority.d.ts +0 -8
  177. package/server/session-authority.js +0 -78
  178. package/server/session-boundary.d.ts +0 -26
  179. package/server/session-boundary.js +0 -64
  180. package/server/session-identity.d.ts +0 -16
  181. package/server/session-identity.js +0 -41
  182. package/server/session-limits.d.ts +0 -12
  183. package/server/session-limits.js +0 -59
  184. package/server/session-store.d.ts +0 -123
  185. package/server/session-store.js +0 -264
  186. package/server/single-action.d.ts +0 -21
  187. package/server/single-action.js +0 -30
  188. package/server/steer-inbox.d.ts +0 -35
  189. package/server/steer-inbox.js +0 -52
  190. package/server/tool-operations.d.ts +0 -6
  191. package/server/tool-operations.js +0 -132
  192. package/server/turn-input.d.ts +0 -10
  193. package/server/turn-input.js +0 -29
@@ -1,7 +1,6 @@
1
1
  import type { LiveProfileInterface } from '@theoremjs/agents/interface';
2
+ import type { LiveCallOptions, LiveConnection } from '@theoremjs/web/client';
2
3
  import { type LiveCaptionState, type LiveCaptionTurn } from '../../client/live/live-captions.ts';
3
- import type { LiveCallOptions } from '../../client/live/live-page-tool.ts';
4
- import type { LiveConnection } from '../../client/live-client.ts';
5
4
  /**
6
5
  * Owns LiveRunner state, session client, and stage callbacks.
7
6
  * `connection` resolves what the call opens: a host with a fixed profile returns
@@ -10,11 +9,11 @@ import type { LiveConnection } from '../../client/live-client.ts';
10
9
  */
11
10
  export declare function useLiveRunnerModel(iface: LiveProfileInterface, connection: () => LiveConnection | Promise<LiveConnection>, options?: LiveCallOptions): {
12
11
  handle: string;
13
- traces: import("../../index.ts").TraceFeed;
12
+ traces: import("@theoremjs/web/client").TraceFeed;
14
13
  callStarted: boolean;
15
14
  pastCalls: LiveCaptionTurn[][];
16
15
  captions: LiveCaptionState;
17
- failure: import("../../index.ts").ClientFailure | null;
16
+ failure: import("@theoremjs/web/client").ClientFailure | null;
18
17
  sessionEnded: string | null;
19
18
  levelsRef: import("react").RefObject<{
20
19
  input: number;
@@ -23,9 +22,9 @@ export declare function useLiveRunnerModel(iface: LiveProfileInterface, connecti
23
22
  isMuted: boolean;
24
23
  isVideoOn: boolean;
25
24
  sessionActive: boolean;
26
- liveState: import("../../index.ts").LiveState;
25
+ liveState: import("@theoremjs/web/client").LiveState;
27
26
  activeTool: string | null;
28
- status: import("../../index.ts").LiveSessionStatus;
27
+ status: import("@theoremjs/web/client").LiveSessionStatus;
29
28
  textAvailable: boolean;
30
29
  textDraft: string;
31
30
  toolActive: boolean;
@@ -34,7 +33,7 @@ export declare function useLiveRunnerModel(iface: LiveProfileInterface, connecti
34
33
  videoPreview: HTMLVideoElement | null;
35
34
  voiceAvailable: boolean;
36
35
  canRestart: boolean;
37
- gatePrompt: import("../../index.ts").LiveToolGatePrompt | null;
36
+ gatePrompt: import("@theoremjs/web/client").LiveToolGatePrompt | null;
38
37
  setTextDraft: import("react").Dispatch<import("react").SetStateAction<string>>;
39
38
  handleEnd: () => void;
40
39
  startCall: (options: {
@@ -45,5 +44,5 @@ export declare function useLiveRunnerModel(iface: LiveProfileInterface, connecti
45
44
  handleToggleMic: () => void;
46
45
  handleFlipCamera: () => Promise<void>;
47
46
  handleToggleVideo: () => Promise<void>;
48
- resolveGateDecision: (resolution: import("../../index.ts").ToolGateResolution) => void;
47
+ resolveGateDecision: (resolution: import("@theoremjs/web/client").ToolGateResolution) => void;
49
48
  };
@@ -1,8 +1,7 @@
1
1
  import { liveIngressEnabledFromSpec } from '@theoremjs/agents';
2
+ import { createTraceFeed, liveState } from '@theoremjs/web/client';
2
3
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
4
  import { stashLiveCaptionCall, } from "../../client/live/live-captions.js";
4
- import { liveState } from "../../client/live/live-state.js";
5
- import { createTraceFeed } from "../../client/trace-feed.js";
6
5
  import { usePageToolWarnings } from "../../hooks/use-page-tool-warnings.js";
7
6
  import { useLiveRunnerControls } from "./use-live-runner-controls.js";
8
7
  import { useLiveRunnerGate, useLiveRunnerUiState } from "./use-live-runner-ui.js";
@@ -1,12 +1,10 @@
1
1
  import { type LabelOverrides, type SessionEventOf } from '@theoremjs/agents';
2
+ import type { LiveConnectPhase, LiveGateAnswer, LiveSessionStatus, LiveToolGatePrompt, ToolGateResolution } from '@theoremjs/web/client';
3
+ import { type ClientFailure } from '@theoremjs/web/client';
2
4
  import { type Dispatch, type SetStateAction } from 'react';
3
- import { type ClientFailure } from '../../client/failure.ts';
4
5
  import { applyLiveTurnToolEvent } from '../../client/live/apply-live-turn-tool-event.ts';
5
6
  import { type LiveCaptionState } from '../../client/live/live-captions.ts';
6
- import type { LiveConnectPhase, LiveSessionStatus } from '../../client/live/live-state.ts';
7
- import type { LiveGateAnswer, LiveToolGatePrompt } from '../../client/live/live-tool.ts';
8
7
  import type { LiveFacingMode, LiveVideoCapture } from '../../client/live/live-video.ts';
9
- import type { ToolGateResolution } from '../../client/tool-resume.ts';
10
8
  /** UI + media state bag for the live runner. `labels` is the interface's: the profile's wording. */
11
9
  export declare function useLiveRunnerUiState(labels: LabelOverrides): {
12
10
  status: LiveSessionStatus;
@@ -1,6 +1,6 @@
1
1
  import { TheoremError } from '@theoremjs/agents';
2
+ import { clientFailure } from '@theoremjs/web/client';
2
3
  import { useCallback, useEffect, useRef, useState, } from 'react';
3
- import { clientFailure } from "../../client/failure.js";
4
4
  import { applyLiveTurnToolEvent } from "../../client/live/apply-live-turn-tool-event.js";
5
5
  import { applyLiveTurnEvent, clearLiveCaptionInterim, emptyLiveCaptionState, } from "../../client/live/live-captions.js";
6
6
  /** UI + media state bag for the live runner. `labels` is the interface's: the profile's wording. */
@@ -1,12 +1,9 @@
1
1
  import { type SessionEventOf, type TurnEvent } from '@theoremjs/agents';
2
+ import type { LiveCallOptions, LiveConnectPhase, LiveGateAnswer, LiveSessionStatus, LiveToolGatePrompt, TraceFeed } from '@theoremjs/web/client';
3
+ import { type LiveConnection, LiveSessionClient } from '@theoremjs/web/client';
2
4
  import { type Dispatch, type MutableRefObject, type SetStateAction } from 'react';
3
5
  import { type LiveCaptionState } from '../../client/live/live-captions.ts';
4
- import type { LiveCallOptions } from '../../client/live/live-page-tool.ts';
5
- import type { LiveConnectPhase, LiveSessionStatus } from '../../client/live/live-state.ts';
6
- import type { LiveGateAnswer, LiveToolGatePrompt } from '../../client/live/live-tool.ts';
7
6
  import type { LiveFacingMode, LiveVideoCapture } from '../../client/live/live-video.ts';
8
- import { type LiveConnection, LiveSessionClient } from '../../client/live-client.ts';
9
- import type { TraceFeed } from '../../client/trace-feed.ts';
10
7
  export type LiveClientBindings = LiveCallOptions & {
11
8
  voiceAvailable: boolean;
12
9
  /** Where the session's trace records go, when the relay delivers them. */
@@ -1,8 +1,8 @@
1
1
  import { TheoremError } from '@theoremjs/agents';
2
+ import { LiveSessionClient } from '@theoremjs/web/client';
2
3
  import { useCallback, useRef, } from 'react';
3
4
  import { applyLiveTranscript } from "../../client/live/live-captions.js";
4
5
  import { runLiveToolCall } from "../../client/live/run-live-tool-call.js";
5
- import { LiveSessionClient } from "../../client/live-client.js";
6
6
  function onLiveStatusChange(next, bindings) {
7
7
  bindings.setStatus(next);
8
8
  if (next === 'listening' || next === 'ready') {
@@ -1,4 +1,4 @@
1
- import { type ClientFailure } from '../client/failure.ts';
1
+ import { type ClientFailure } from '@theoremjs/web/client';
2
2
  /**
3
3
  * What a transport describes, read once per transport; a failure when it can't be read. A new
4
4
  * transport keeps the last description up until it describes itself, so swapping one in (a
@@ -1,5 +1,5 @@
1
+ import { clientFailure } from '@theoremjs/web/client';
1
2
  import { useEffect, useState } from 'react';
2
- import { clientFailure } from "../client/failure.js";
3
3
  /**
4
4
  * What a transport describes, read once per transport; a failure when it can't be read. A new
5
5
  * transport keeps the last description up until it describes itself, so swapping one in (a
@@ -1,5 +1,5 @@
1
1
  import type { EmbeddingInput, EmbeddingUsage } from '@theoremjs/agents';
2
- import type { EmbeddingInterface, EmbeddingTransport } from '../client/embedding-transport.ts';
2
+ import type { EmbeddingInterface, EmbeddingTransport } from '@theoremjs/web/client';
3
3
  import { type OneCallState } from './use-one-call.ts';
4
4
  /** Documents embedded for search: each one's vector, in the order given. */
5
5
  export type EmbeddingIndex = {
@@ -1,5 +1,5 @@
1
+ import { addUsage, embeddingBatches } from '@theoremjs/web/client';
1
2
  import { useState } from 'react';
2
- import { addUsage, embeddingBatches } from "../client/embedding-input.js";
3
3
  import { useOneCall } from "./use-one-call.js";
4
4
  async function indexWith(transport, signal, inputs, rules, onProgress) {
5
5
  const batches = embeddingBatches(inputs, rules);
@@ -1,6 +1,6 @@
1
1
  import type { TraceRecord } from '@theoremjs/agents';
2
- import { type ClientFailure } from '../client/failure.ts';
3
- import type { TraceFeed } from '../client/trace-feed.ts';
2
+ import type { TraceFeed } from '@theoremjs/web/client';
3
+ import { type ClientFailure } from '@theoremjs/web/client';
4
4
  /** A profile that answers in one call: a decision or an embedding. */
5
5
  export type OneCallTransport = {
6
6
  traces?: TraceFeed;
@@ -1,6 +1,5 @@
1
+ import { clientFailure, failedTraces } from '@theoremjs/web/client';
1
2
  import { useCallback, useEffect, useRef, useState } from 'react';
2
- import { failedTraces } from "../client/decision-transport.js";
3
- import { clientFailure } from "../client/failure.js";
4
3
  const IDLE = {
5
4
  status: 'idle',
6
5
  result: null,
@@ -1,4 +1,4 @@
1
- import { type PageTools } from '../client/live/live-page-tool.ts';
1
+ import { type PageTools } from '@theoremjs/web/client';
2
2
  /**
3
3
  * Says in the console, once, where the page's tools and the profile's disagree. A wrong name is
4
4
  * the builder's to fix, so it is never said to the visitor.
@@ -1,5 +1,5 @@
1
+ import { pageToolMismatch } from '@theoremjs/web/client';
1
2
  import { useEffect } from 'react';
2
- import { pageToolMismatch } from "../client/live/live-page-tool.js";
3
3
  /**
4
4
  * Says in the console, once, where the page's tools and the profile's disagree. A wrong name is
5
5
  * the builder's to fix, so it is never said to the visitor.
@@ -1,9 +1,7 @@
1
1
  import type { AttachmentValidationIssue, ComposerMenuAction, ComposerPendingMessage, ComposerProfileInterface, ComposerRunPhase, InterfaceTurnSession, TranscriptBlock } from '@theoremjs/agents/interface';
2
+ import type { RunOutcome, TheoremTransport } from '@theoremjs/web/client';
3
+ import { type AnsweringGate, type ClientFailure, type StreamView, type ToolDecisionAction, type ToolGateResolution } from '@theoremjs/web/client';
2
4
  import { type MutableRefObject } from 'react';
3
- import { type ClientFailure } from '../client/failure.ts';
4
- import { type AnsweringGate, type StreamView, type ToolDecisionAction, type ToolGateResolution } from '../client/index.ts';
5
- import type { RunOutcome } from '../client/run-session.ts';
6
- import type { TheoremTransport } from '../client/transport.ts';
7
5
  import type { MessageDelivery } from './use-theorem-chat-state.ts';
8
6
  export type RunTurnStream = (run: (view: StreamView) => Promise<RunOutcome>, options?: {
9
7
  /** The run sends a message: one that never posts goes back in the composer with its failure. */
@@ -1,9 +1,7 @@
1
1
  import { TheoremError } from '@theoremjs/agents';
2
2
  import { convertSteersToFrontQueued, createComposerPendingMessage, orderComposerPendingMessages, removeComposerPendingMessage, userDraftHasPayload, userDraftToSteerInject, } from '@theoremjs/agents/interface';
3
+ import { clientFailure, composerFieldsFromDraft, encodeComposerDraft, issuedOperationId, resumeInterfaceTool, streamInterfaceDraftTurn, streamInterfaceTurn, } from '@theoremjs/web/client';
3
4
  import { useCallback } from 'react';
4
- import { clientFailure } from "../client/failure.js";
5
- import { composerFieldsFromDraft, encodeComposerDraft, resumeInterfaceTool, streamInterfaceDraftTurn, streamInterfaceTurn, } from "../client/index.js";
6
- import { issuedOperationId } from "../client/turn-client.js";
7
5
  function composerFieldsPayload(text, pendingFiles, pendingVoice) {
8
6
  const meta = (files) => files.map((f) => ({
9
7
  name: f.name,
@@ -1,6 +1,5 @@
1
1
  import { type AttachmentValidationIssue, type ComposerPendingMessage, type InterfaceTurnSession, type TranscriptBlock } from '@theoremjs/agents/interface';
2
- import type { ClientFailure } from '../client/failure.ts';
3
- import type { AnsweringGate } from '../client/tool-resume.ts';
2
+ import type { AnsweringGate, ClientFailure } from '@theoremjs/web/client';
4
3
  type SetSession = (value: InterfaceTurnSession | ((prev: InterfaceTurnSession) => InterfaceTurnSession)) => void;
5
4
  export type { SetSession };
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  import { type ComposerPendingMessage, type ComposerProfileInterface, type ComposerRunPhase, type InterfaceTurnSession, type TranscriptBlock } from '@theoremjs/agents/interface';
2
- import type { PageTools } from '../client/live/live-page-tool.ts';
3
- import type { ConversationView, TheoremTransport, TurnEventSink } from '../client/transport.ts';
2
+ import type { ConversationView, PageTools, TheoremTransport, TurnEventSink } from '@theoremjs/web/client';
4
3
  import { type MessageDelivery } from './use-theorem-chat-state.ts';
5
4
  export type UseTheoremChatOptions = {
6
5
  transport: TheoremTransport;
@@ -57,9 +56,9 @@ export declare function useTheoremChat({ transport, iface, conversation: initial
57
56
  blocks: TranscriptBlock[];
58
57
  chatStarted: boolean;
59
58
  draftText: string;
60
- failure: import("../index.ts").ClientFailure | null;
59
+ failure: import("@theoremjs/web/client").ClientFailure | null;
61
60
  /** The answer on its way to a gate, shown on it until the answer settles or fails. */
62
- answering: import("../index.ts").AnsweringGate | null;
61
+ answering: import("@theoremjs/web/client").AnsweringGate | null;
63
62
  issues: import("@theoremjs/agents").AttachmentValidationIssue[];
64
63
  pendingFiles: File[];
65
64
  pendingMessages: ComposerPendingMessage[];
@@ -83,7 +82,7 @@ export declare function useTheoremChat({ transport, iface, conversation: initial
83
82
  handlePendingQueue: (id: string) => void;
84
83
  handlePendingRestore: (id: string) => Promise<void>;
85
84
  handleSendNow: (draftSource?: ComposerPendingMessage) => Promise<void>;
86
- handleToolDecision: (_index: number, action: import("../index.ts").ToolDecisionAction) => Promise<void>;
85
+ handleToolDecision: (_index: number, action: import("@theoremjs/web/client").ToolDecisionAction) => Promise<void>;
87
86
  handleGenerationChange: (next: {
88
87
  modelId: string;
89
88
  effort?: string;
@@ -1,11 +1,6 @@
1
1
  import { branchInterfaceTurnSession, consumeNextComposerQueue, convertSteersToFrontQueued, defaultInterfaceEffort, orderComposerPendingMessages, promoteComposerPendingKind, removeComposerPendingMessage, removeLandedSteers, } from '@theoremjs/agents/interface';
2
+ import { clientFailure, foldAssistantTurn, followGenerationDefaults, keepsConversation, sessionAfter, stampWorked, turnFailure, withPageToolDispatch, } from '@theoremjs/web/client';
2
3
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
- import { clientFailure, turnFailure } from "../client/failure.js";
4
- import { followGenerationDefaults } from "../client/generation-selection.js";
5
- import { withPageToolDispatch } from "../client/page-dispatch.js";
6
- import { sessionAfter, stampWorked } from "../client/run-commit.js";
7
- import { keepsConversation } from "../client/run-session.js";
8
- import { foldAssistantTurn } from "../client/turn-client.js";
9
4
  import { usePageToolWarnings } from "./use-page-tool-warnings.js";
10
5
  import { useTheoremChatActions } from "./use-theorem-chat-actions.js";
11
6
  import { useTheoremChatState, } from "./use-theorem-chat-state.js";
@@ -1,6 +1,5 @@
1
1
  import type { DecisionAsset, DecisionJson, DecisionResult } from '@theoremjs/agents';
2
- import type { DecisionInterface, DecisionTransport } from '../client/decision-transport.ts';
3
- import type { ClientFailure } from '../client/failure.ts';
2
+ import type { ClientFailure, DecisionInterface, DecisionTransport } from '@theoremjs/web/client';
4
3
  import { type OneCallState } from './use-one-call.ts';
5
4
  export type TheoremDecisionState = {
6
5
  /** The profile as the page sees it; null until the host describes it. */
@@ -1,6 +1,5 @@
1
1
  import type { EmbeddingInput, EmbeddingResult } from '@theoremjs/agents';
2
- import type { EmbeddingInterface, EmbeddingTransport, EmbedOptions } from '../client/embedding-transport.ts';
3
- import type { ClientFailure } from '../client/failure.ts';
2
+ import type { ClientFailure, EmbeddingInterface, EmbeddingTransport, EmbedOptions } from '@theoremjs/web/client';
4
3
  import { type OneCallState } from './use-one-call.ts';
5
4
  export type TheoremEmbeddingState = {
6
5
  /** The profile as the page sees it; null until the host describes it. */
@@ -1,9 +1,7 @@
1
1
  import type { TurnEvent } from '@theoremjs/agents';
2
- import { type ClientFailure } from '../client/failure.ts';
2
+ import type { HostInterface, HostTransport, PageTools } from '@theoremjs/web/client';
3
+ import { type ClientFailure, type PersonGateResolution } from '@theoremjs/web/client';
3
4
  import type { ToolCall } from '../client/host-call.ts';
4
- import type { HostInterface, HostTransport } from '../client/host-transport.ts';
5
- import type { PageTools } from '../client/live/live-page-tool.ts';
6
- import { type PersonGateResolution } from '../client/tool-resume.ts';
7
5
  export type { ToolCall };
8
6
  /** One call of one of the host's tools, as it streams. */
9
7
  export type TheoremHostCall = {
@@ -1,9 +1,6 @@
1
1
  import { toolCallsOf, toolSnapshotFromEvents } from '@theoremjs/agents/interface';
2
+ import { clientFailure, continueGatedToolInvocation, issuedOperationId, withPageToolDispatch, } from '@theoremjs/web/client';
2
3
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
- import { clientFailure } from "../client/failure.js";
4
- import { withPageToolDispatch } from "../client/page-dispatch.js";
5
- import { continueGatedToolInvocation } from "../client/tool-resume.js";
6
- import { issuedOperationId } from "../client/turn-client.js";
7
4
  import { useDescribed } from "./use-described.js";
8
5
  function callId() {
9
6
  return typeof crypto !== 'undefined' && 'randomUUID' in crypto
@@ -1,6 +1,5 @@
1
1
  import type { ProfileInterface } from '@theoremjs/agents/interface';
2
- import type { ClientFailure } from '../client/failure.ts';
3
- import type { TheoremTransport } from '../client/transport.ts';
2
+ import type { ClientFailure, TheoremTransport } from '@theoremjs/web/client';
4
3
  /** `failure` is worded with the default labels: the profile's is not known until it loads. */
5
4
  export type TheoremInterfaceState = {
6
5
  status: 'loading';
@@ -1,4 +1,4 @@
1
1
  import type { TraceRecord } from '@theoremjs/agents';
2
- import type { TraceFeed } from '../client/trace-feed.ts';
2
+ import type { TraceFeed } from '@theoremjs/web/client';
3
3
  /** The records a feed has delivered so far; none without a feed. */
4
4
  export declare function useTraceRecords(feed: TraceFeed | undefined): readonly TraceRecord[];
package/index.d.ts CHANGED
@@ -3,12 +3,11 @@
3
3
  *
4
4
  * - `@theoremjs/react` hooks + transport (this entry)
5
5
  * - `@theoremjs/react/ui` Astryx chat UI built on these hooks
6
- * - `@theoremjs/react/server` `createTheoremHandler` (and `createTheoremDecisionHandler`, `createTheoremEmbeddingHandler`, `createTheoremHostHandler`) for the host side
6
+ * - `@theoremjs/react/server` `@theoremjs/web/server`: `createTheoremHandler` (and `createTheoremDecisionHandler`, `createTheoremEmbeddingHandler`, `createTheoremHostHandler`) for the host side
7
7
  *
8
8
  * @module
9
9
  */
10
- export * from './client/index.ts';
11
- export { type PageDispatchResult, withPageToolDispatch } from './client/page-dispatch.ts';
10
+ export * from '@theoremjs/web/client';
12
11
  export { type EmbeddingIndex, type IndexProgress, useEmbeddingIndex, } from './hooks/use-embedding-index.ts';
13
12
  export { type SentTurn, type UseTheoremChatOptions, useTheoremChat, } from './hooks/use-theorem-chat.ts';
14
13
  export { type TheoremDecisionState, useTheoremDecision } from './hooks/use-theorem-decision.ts';
package/index.js CHANGED
@@ -3,12 +3,11 @@
3
3
  *
4
4
  * - `@theoremjs/react` hooks + transport (this entry)
5
5
  * - `@theoremjs/react/ui` Astryx chat UI built on these hooks
6
- * - `@theoremjs/react/server` `createTheoremHandler` (and `createTheoremDecisionHandler`, `createTheoremEmbeddingHandler`, `createTheoremHostHandler`) for the host side
6
+ * - `@theoremjs/react/server` `@theoremjs/web/server`: `createTheoremHandler` (and `createTheoremDecisionHandler`, `createTheoremEmbeddingHandler`, `createTheoremHostHandler`) for the host side
7
7
  *
8
8
  * @module
9
9
  */
10
- export * from "./client/index.js";
11
- export { withPageToolDispatch } from "./client/page-dispatch.js";
10
+ export * from '@theoremjs/web/client';
12
11
  export { useEmbeddingIndex, } from "./hooks/use-embedding-index.js";
13
12
  export { useTheoremChat, } from "./hooks/use-theorem-chat.js";
14
13
  export { useTheoremDecision } from "./hooks/use-theorem-decision.js";
package/live.d.ts CHANGED
@@ -3,7 +3,6 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- export type { LiveCallOptions, PageTool, PageToolAnswer, PageTools, } from './client/live/live-page-tool.ts';
7
- export type { LiveConnection } from './client/live-client.ts';
6
+ export type { LiveCallOptions, LiveConnection, PageTool, PageToolAnswer, PageTools, } from '@theoremjs/web/client';
8
7
  export type { LiveRunnerProps } from './ui/LiveRunner.tsx';
9
8
  export { LiveRunner } from './ui/LiveRunner.tsx';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/react",
3
- "version": "0.3.4-next.363.g11be542",
3
+ "version": "0.3.4-next.373.gab46e23",
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,7 +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.4-next.363.g11be542"
63
+ "@theoremjs/agents": "^0.3.4-next.373.gab46e23",
64
+ "@theoremjs/web": "^0.3.4-next.373.gab46e23"
64
65
  },
65
66
  "peerDependenciesMeta": {
66
67
  "@astryxdesign/core": {
package/server/mod.d.ts CHANGED
@@ -1,26 +1 @@
1
- /**
2
- * Server half of `@theoremjs/react`: serve one profile to the chat UI, a
3
- * decision profile to the decision UI, or a host profile's tools to the host UI or to MCP clients.
4
- *
5
- * @module
6
- */
7
- export { theoremHostCallRequestSchema } from '../client/host-transport.ts';
8
- export type { LiveClientMessage, LiveOpenMessage } from '../client/live-messages.ts';
9
- export { theoremConversationRequestSchema, theoremInvokeRequestSchema, theoremReplaySchema, theoremRewindRequestSchema, theoremSteerRequestSchema, theoremTurnRequestSchema, } from '../client/transport.ts';
10
- export { answerReply, type ConversationHost, type ConversationUse, conversationView, type IssuedWalkAway, messageReply, type OpenedConversation, openConversation, type PostedMessage, postedMessage, type ReplyLine, type ReplyRunner, type ReplyTurn, readerConversationHost, rewindConversation, startConversation, statelessRefusal, type WalkedAwayCall, waitingCalls, } from './conversation.ts';
11
- export { type ConversationSnapshot, type ConversationWriteResult, createMemoryConversationStore, createSealedConversationStore, emptyConversation, type PausedReply, type SealedConversationStoreOptions, type StoredConversation, storedConversationSchema, type TheoremConversationStore, unknownConversation, } from './conversation-store.ts';
12
- export { createMemoryCredentialStore, type TheoremCredentialStore, type TheoremCredentials, } from './credential-store.ts';
13
- export { createTheoremDecisionHandler, type TheoremDecisionHandlerOptions, } from './decision-handler.ts';
14
- export { createTheoremEmbeddingHandler, embedBodySchema, embedRequest, type TheoremEmbeddingHandlerOptions, } from './embedding-handler.ts';
15
- export { createTheoremHandler, createTheoremHostHandler, readBody, type TheoremHandlerOptions, type TheoremHostHandlerOptions, type TheoremRequestContext, theoremSession, theoremSessionId, } from './handler.ts';
16
- export { createTheoremMcpHandler, type TheoremMcpHandlerOptions } from './mcp-handler.ts';
17
- export { createMemoryPageToolBroker, type PageToolBroker, type PageToolResult, pageToolResultSchema, sessionPageDispatch, } from './page-dispatch.ts';
18
- export { checkRequest, parseLiveClientMessage, parseLiveOpenMessage } from './request-check.ts';
19
- export { sessionStateStore } from './session-authority.ts';
20
- export { createTheoremSessionBoundary, type PreparedLiveOpen, type SessionBoundaryOptions, type TheoremSessionBoundary, } from './session-boundary.ts';
21
- export type { TheoremSessionLimits } from './session-limits.ts';
22
- export { resolveSessionLimits } from './session-limits.ts';
23
- export { createMemorySessionStore, DEFAULT_OPERATION_RETENTION_MS, type MemorySessionStoreOptions, type PendingToolGate, type SessionSnapshot, type SessionToolOperation, type SessionWriteResult, type TheoremSessionState, type TheoremSessionStore, theoremSessionStateSchema, } from './session-store.ts';
24
- export { createMemorySteerInbox, type SteerInbox, type SteerUnit, steerStage, steerUnitOf, } from './steer-inbox.ts';
25
- export { sessionToolCoordinator } from './tool-operations.ts';
26
- export { kernelTurnInput, liveSessionOpen } from './turn-input.ts';
1
+ export * from '@theoremjs/web/server';
package/server/mod.js CHANGED
@@ -1,24 +1 @@
1
- /**
2
- * Server half of `@theoremjs/react`: serve one profile to the chat UI, a
3
- * decision profile to the decision UI, or a host profile's tools to the host UI or to MCP clients.
4
- *
5
- * @module
6
- */
7
- export { theoremHostCallRequestSchema } from "../client/host-transport.js";
8
- export { theoremConversationRequestSchema, theoremInvokeRequestSchema, theoremReplaySchema, theoremRewindRequestSchema, theoremSteerRequestSchema, theoremTurnRequestSchema, } from "../client/transport.js";
9
- export { answerReply, conversationView, messageReply, openConversation, postedMessage, readerConversationHost, rewindConversation, startConversation, statelessRefusal, waitingCalls, } from "./conversation.js";
10
- export { createMemoryConversationStore, createSealedConversationStore, emptyConversation, storedConversationSchema, unknownConversation, } from "./conversation-store.js";
11
- export { createMemoryCredentialStore, } from "./credential-store.js";
12
- export { createTheoremDecisionHandler, } from "./decision-handler.js";
13
- export { createTheoremEmbeddingHandler, embedBodySchema, embedRequest, } from "./embedding-handler.js";
14
- export { createTheoremHandler, createTheoremHostHandler, readBody, theoremSession, theoremSessionId, } from "./handler.js";
15
- export { createTheoremMcpHandler } from "./mcp-handler.js";
16
- export { createMemoryPageToolBroker, pageToolResultSchema, sessionPageDispatch, } from "./page-dispatch.js";
17
- export { checkRequest, parseLiveClientMessage, parseLiveOpenMessage } from "./request-check.js";
18
- export { sessionStateStore } from "./session-authority.js";
19
- export { createTheoremSessionBoundary, } from "./session-boundary.js";
20
- export { resolveSessionLimits } from "./session-limits.js";
21
- export { createMemorySessionStore, DEFAULT_OPERATION_RETENTION_MS, theoremSessionStateSchema, } from "./session-store.js";
22
- export { createMemorySteerInbox, steerStage, steerUnitOf, } from "./steer-inbox.js";
23
- export { sessionToolCoordinator } from "./tool-operations.js";
24
- export { kernelTurnInput, liveSessionOpen } from "./turn-input.js";
1
+ export * from '@theoremjs/web/server';
@@ -1,6 +1,6 @@
1
1
  import { type ChatComposerInputHandle } from '@astryxdesign/core/Chat';
2
2
  import { type AttachmentValidationIssue, type ComposerMenuAction, type ComposerPendingMessage, type ComposerProfileInterface, type ComposerRunPhase, type LiveProfileInterface } from '@theoremjs/agents/interface';
3
- import type { ClientFailure } from '../client/failure.ts';
3
+ import type { ClientFailure } from '@theoremjs/web/client';
4
4
  /** A slot the profile declares: its allowed values, the one chosen, and how to choose another. */
5
5
  /** The effort selector's icon. The studio's Agents list shows the same one. */
6
6
  export declare const EFFORT_ICON: import("react").ForwardRefExoticComponent<import("@tabler/icons-react").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -1,8 +1,8 @@
1
1
  import { type ChatMessageStatus } from '@astryxdesign/core/Chat';
2
2
  import type { LabelOverrides } from '@theoremjs/agents';
3
3
  import { type TranscriptBlock } from '@theoremjs/agents/interface';
4
+ import type { AnsweringGate } from '@theoremjs/web/client';
4
5
  import { type ReactNode } from 'react';
5
- import type { AnsweringGate } from '../client/tool-resume.ts';
6
6
  import { type ToolDecision } from './ToolGateCard.tsx';
7
7
  export type ChatTranscriptProps = {
8
8
  blocks: readonly TranscriptBlock[];
@@ -20,8 +20,8 @@ import { Tooltip as HoverTip } from '@astryxdesign/core/Tooltip';
20
20
  import { VStack } from '@astryxdesign/core/VStack';
21
21
  import { IconCheck, IconCopy } from '@tabler/icons-react';
22
22
  import { stopText } from '@theoremjs/agents/interface';
23
+ import { citationsFromBlock } from '@theoremjs/web/client';
23
24
  import { createContext, useContext, useEffect, useMemo, useRef, useState, } from 'react';
24
- import { citationsFromBlock } from "../client/source-citations.js";
25
25
  import { assistantTurnCopyText, assistantTurnTiming, composeAssistantTurn, groupTranscriptBlocks, pendingPromptOf, promptReplyKey, promptTime, replyKey, toolCallLabel, workStatus, } from "../client/transcript-groups.js";
26
26
  import { useSecondTicker } from "../hooks/use-second-ticker.js";
27
27
  import { useDisclosureMotion } from "./disclosure-motion.js";
@@ -1,6 +1,6 @@
1
1
  import type { DefinedTheme } from '@astryxdesign/core/theme';
2
+ import type { HttpOptions } from '@theoremjs/web/client';
2
3
  import { type CSSProperties, type ReactNode } from 'react';
3
- import type { HttpOptions } from '../client/transport.ts';
4
4
  import type { TheoremLabels } from './labels.ts';
5
5
  import { type TraceInspector } from './TraceInspectorPanel.tsx';
6
6
  /** The props a one-call console page shares: its look, its wording, its trace, and its layout. */
@@ -1,7 +1,7 @@
1
1
  import type { DecisionJson, DecisionResult } from '@theoremjs/agents';
2
+ import type { DecisionInterface } from '@theoremjs/web/client';
2
3
  import { type ReactNode } from 'react';
3
4
  import { type DecisionImages } from '../client/decision-images.ts';
4
- import type { DecisionInterface } from '../client/decision-transport.ts';
5
5
  export type TheoremDecisionAnswersProps = {
6
6
  iface: DecisionInterface;
7
7
  result: DecisionResult;
@@ -1,7 +1,7 @@
1
1
  import { type EmbeddingInput } from '@theoremjs/agents';
2
+ import type { EmbeddingInterface } from '@theoremjs/web/client';
3
+ import { type EmbeddingInputCheck, type EmbeddingMediaPart } from '@theoremjs/web/client';
2
4
  import { type ReactNode } from 'react';
3
- import { type EmbeddingInputCheck, type EmbeddingMediaPart } from '../client/embedding-input.ts';
4
- import type { EmbeddingInterface } from '../client/embedding-transport.ts';
5
5
  import { type ConsoleView } from './ConsoleFrame.tsx';
6
6
  import type { LabelText } from './labels.ts';
7
7
  /** The profile's `inputs`, which every request is held to. */
@@ -13,9 +13,8 @@ import { Tooltip } from '@astryxdesign/core/Tooltip';
13
13
  import { VStack } from '@astryxdesign/core/VStack';
14
14
  import { IconBaselineDensityMedium, IconCsv, IconFileText, IconPilcrow, IconScissors, IconX, } from '@tabler/icons-react';
15
15
  import { attachmentIssueText, base64Bytes } from '@theoremjs/agents';
16
+ import { checkInputs, embeddingBatches, encodeFiles, readEmbeddingInputs, readsAsText, splitText, } from '@theoremjs/web/client';
16
17
  import { useMemo, useState } from 'react';
17
- import { checkInputs, embeddingBatches, readEmbeddingInputs, readsAsText, splitText, } from "../client/embedding-input.js";
18
- import { encodeFiles } from "../client/encode-files.js";
19
18
  import { JsonRequest, RequestCard, RunBar, useBytes } from "./ConsoleFrame.js";
20
19
  import { useLabels } from "./labels-provider.js";
21
20
  import { textRows } from "./StateFields.js";
@@ -1,5 +1,5 @@
1
1
  import { type EmbeddingInput } from '@theoremjs/agents';
2
- import { type EmbeddingFields } from '../client/embedding-input.ts';
2
+ import { type EmbeddingFields } from '@theoremjs/web/client';
3
3
  import { type ConsoleView } from './ConsoleFrame.tsx';
4
4
  import { type Rules } from './EmbeddingDocuments.tsx';
5
5
  /** Where the embedded documents stand for a search: as embedded, or changed since. */
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { TextArea } from '@astryxdesign/core/TextArea';
3
3
  import { base64Bytes } from '@theoremjs/agents';
4
+ import { checkInputs, encodeFiles, fieldsInput, inputFields, readEmbeddingInput, } from '@theoremjs/web/client';
4
5
  import { useState } from 'react';
5
- import { checkInputs, fieldsInput, inputFields, readEmbeddingInput, } from "../client/embedding-input.js";
6
- import { encodeFiles } from "../client/encode-files.js";
7
6
  import { JsonRequest, RequestCard, RunBar, useBytes } from "./ConsoleFrame.js";
8
7
  import { EmbeddingFileDrop, FileTile, inputIssue, TextBesideFile, } from "./EmbeddingDocuments.js";
9
8
  import { useLabels } from "./labels-provider.js";
@@ -1,5 +1,5 @@
1
1
  import type { EmbeddingResult } from '@theoremjs/agents';
2
- import type { EmbeddingMatch } from '../client/embedding-input.ts';
2
+ import type { EmbeddingMatch } from '@theoremjs/web/client';
3
3
  import type { EmbeddingIndex, IndexProgress } from '../hooks/use-embedding-index.ts';
4
4
  import type { OneCallState } from '../hooks/use-one-call.ts';
5
5
  import { type EmbeddingDocument } from './EmbeddingDocuments.tsx';
@@ -10,8 +10,8 @@ import { StackItem } from '@astryxdesign/core/Stack';
10
10
  import { Text } from '@astryxdesign/core/Text';
11
11
  import { VStack } from '@astryxdesign/core/VStack';
12
12
  import { IconCheck, IconCopy } from '@tabler/icons-react';
13
+ import { layoutSpaceSoon, outlierThreshold, placeQuery, } from '@theoremjs/web/client';
13
14
  import { lazy, Suspense, useEffect, useMemo, useState } from 'react';
14
- import { layoutSpaceSoon, outlierThreshold, placeQuery, } from "../client/embedding-space.js";
15
15
  import { Arrive } from "./arrive.js";
16
16
  import { useBytes } from "./ConsoleFrame.js";
17
17
  import { ResultStack, Share, useNumbers } from "./DecisionAnswers.js";
@@ -1,5 +1,4 @@
1
- import type { EmbeddingSpace, SpacePoint } from '../client/embedding-space.ts';
2
- import type { QueryMatch } from '../client/space-geometry.ts';
1
+ import type { EmbeddingSpace, QueryMatch, SpacePoint } from '@theoremjs/web/client';
3
2
  export type EmbeddingSpaceViewProps = {
4
3
  space: EmbeddingSpace;
5
4
  /** Where the last query landed, or `null` before any. */
@@ -1,7 +1,6 @@
1
1
  import type { DefinedTheme } from '@astryxdesign/core/theme';
2
2
  import type { LiveProfileInterface } from '@theoremjs/agents/interface';
3
- import type { LiveCallOptions } from '../client/live/live-page-tool.ts';
4
- import type { LiveConnection } from '../client/live-client.ts';
3
+ import type { LiveCallOptions, LiveConnection } from '@theoremjs/web/client';
5
4
  import { type TheoremLabels } from './labels.ts';
6
5
  export type LiveRunnerProps = {
7
6
  iface: LiveProfileInterface;
@@ -1,4 +1,4 @@
1
- import { type JsonSchema } from '../client/schema-fields.ts';
1
+ import { type JsonSchema } from '@theoremjs/web/client';
2
2
  import { type Edit as StateEdit } from './StateFields.tsx';
3
3
  /**
4
4
  * A tool's request as a form drawn from its input schema: each field the
@@ -14,9 +14,8 @@ import { TextArea } from '@astryxdesign/core/TextArea';
14
14
  import { TextInput } from '@astryxdesign/core/TextInput';
15
15
  import { Tokenizer } from '@astryxdesign/core/Tokenizer';
16
16
  import { VStack } from '@astryxdesign/core/VStack';
17
+ import { blankRow, isRow, json, schemaFields, withField, } from '@theoremjs/web/client';
17
18
  import { useState } from 'react';
18
- import { blankRow, schemaFields, withField, } from "../client/schema-fields.js";
19
- import { isRow, json } from "../client/shaped-data.js";
20
19
  import { useLabels } from "./labels-provider.js";
21
20
  import { useKeyedRows } from "./row-keys.js";
22
21
  import { AddRow, Group, Labelled, RemoveRow } from "./StateFields.js";