@theoremjs/react 0.3.5-next.1030.g3b5fcaa → 0.3.5-next.1031.g1faef7b
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 +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -525,7 +525,7 @@ Three more values for `useLiveCall` come from the page. The profile declares eac
|
|
|
525
525
|
| --- | --- | --- |
|
|
526
526
|
| `options` | `inputs.options` | The value chosen for each option. It is read when the call starts. A value that changes during a call takes the call up again with it when the profile has resumption on; otherwise the next call has it. |
|
|
527
527
|
| `context` | `inputs.context` with `from: ['client']` | Any JSON the agent should know, such as the page the person is on. |
|
|
528
|
-
| `pageTools` | A function tool with `answeredBy: 'page'` | A function for each page tool, by name. It returns `{ output }
|
|
528
|
+
| `pageTools` | A function tool with `answeredBy: 'page'` | A function for each page tool, by name. It returns `{ output }`, or `{ failed: { code, message?, details? } }` when it cannot do the call. |
|
|
529
529
|
|
|
530
530
|
`stated` is a fourth value, for a page you trust as yourself. It says the `path` and the `options` from `identity.options` that choose the call's prompt lines, and the server reads it only with `pageStatesTurn` set. A change during a call takes the call up again, as an option does. `TheoremChat` takes the same prop, on each turn.
|
|
531
531
|
|
|
@@ -598,7 +598,7 @@ const call = useLiveCall({
|
|
|
598
598
|
pageTools: {
|
|
599
599
|
capture_frame: async () => {
|
|
600
600
|
const frame = callRef.current?.grabFrame() ?? null;
|
|
601
|
-
if (!frame) return {
|
|
601
|
+
if (!frame) return { failed: { code: 'camera_off', message: 'The camera is off.' } };
|
|
602
602
|
return { output: { photoId: await savePhoto(frame.bytes, frame.mimeType) } };
|
|
603
603
|
},
|
|
604
604
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theoremjs/react",
|
|
3
|
-
"version": "0.3.5-next.
|
|
3
|
+
"version": "0.3.5-next.1031.g1faef7b",
|
|
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.
|
|
64
|
-
"@theoremjs/web": "^0.3.5-next.
|
|
63
|
+
"@theoremjs/agents": "^0.3.5-next.1031.g1faef7b",
|
|
64
|
+
"@theoremjs/web": "^0.3.5-next.1031.g1faef7b"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@astryxdesign/core": {
|