@theoremjs/react 0.3.4-next.693.g4ab1526 → 0.3.4-next.711.g78e504a
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/client/host-call.d.ts +1 -1
- package/client/host-call.js +1 -0
- package/package.json +3 -3
- package/ui/ChatTranscript.js +1 -0
- package/ui/TheoremHost.js +1 -0
- package/ui/labels.d.ts +4 -0
- package/ui/labels.js +4 -0
package/client/host-call.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { type JsonSchema } from '@theoremjs/web/client';
|
|
|
10
10
|
export type ToolCall = Extract<TranscriptBlock, {
|
|
11
11
|
kind: 'tool';
|
|
12
12
|
}>['tool'];
|
|
13
|
-
export type HostCallStatus = 'running' | 'gate' | 'complete' | 'error' | 'cancel';
|
|
13
|
+
export type HostCallStatus = 'running' | 'gate' | 'background' | 'complete' | 'error' | 'cancel';
|
|
14
14
|
/** What a call's standing reads from. */
|
|
15
15
|
export type HostCallState = {
|
|
16
16
|
call: ToolCall | null;
|
package/client/host-call.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theoremjs/react",
|
|
3
|
-
"version": "0.3.4-next.
|
|
3
|
+
"version": "0.3.4-next.711.g78e504a",
|
|
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.4-next.
|
|
64
|
-
"@theoremjs/web": "^0.3.4-next.
|
|
63
|
+
"@theoremjs/agents": "^0.3.4-next.711.g78e504a",
|
|
64
|
+
"@theoremjs/web": "^0.3.4-next.711.g78e504a"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@astryxdesign/core": {
|
package/ui/ChatTranscript.js
CHANGED
|
@@ -464,6 +464,7 @@ function toolCallItem(t, id, tool, showUsage) {
|
|
|
464
464
|
resultDetail: toolDetail(t, tool, state.output === undefined ? undefined : (_jsx(ShapedData, { value: state.output, title: t('@theorem.transcript.tool_output') }))),
|
|
465
465
|
};
|
|
466
466
|
case 'running':
|
|
467
|
+
case 'background':
|
|
467
468
|
return { ...base, status: 'running', resultDetail: toolDetail(t, tool) };
|
|
468
469
|
default:
|
|
469
470
|
return { ...base, status: 'pending', resultDetail: toolDetail(t, tool) };
|
package/ui/TheoremHost.js
CHANGED
package/ui/labels.d.ts
CHANGED
|
@@ -903,6 +903,10 @@ export declare const THEOREM_UI_CATALOG: {
|
|
|
903
903
|
readonly defaultMessage: "running";
|
|
904
904
|
readonly description: "A tool call in progress.";
|
|
905
905
|
};
|
|
906
|
+
readonly '@theorem.host.status.background': {
|
|
907
|
+
readonly defaultMessage: "in background";
|
|
908
|
+
readonly description: "A tool call that replied and goes on after the turn.";
|
|
909
|
+
};
|
|
906
910
|
readonly '@theorem.host.status.gate': {
|
|
907
911
|
readonly defaultMessage: "waiting";
|
|
908
912
|
readonly description: "A tool call paused on approval or sign-in.";
|
package/ui/labels.js
CHANGED
|
@@ -860,6 +860,10 @@ export const THEOREM_UI_CATALOG = {
|
|
|
860
860
|
defaultMessage: 'running',
|
|
861
861
|
description: 'A tool call in progress.',
|
|
862
862
|
},
|
|
863
|
+
'@theorem.host.status.background': {
|
|
864
|
+
defaultMessage: 'in background',
|
|
865
|
+
description: 'A tool call that replied and goes on after the turn.',
|
|
866
|
+
},
|
|
863
867
|
'@theorem.host.status.gate': {
|
|
864
868
|
defaultMessage: 'waiting',
|
|
865
869
|
description: 'A tool call paused on approval or sign-in.',
|