@arbidocs/react 0.5.126 → 0.5.127
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/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/remote-control.js +12 -2
- package/dist/remote-control.js.map +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -17081,6 +17081,7 @@ function remoteControlActions(session) {
|
|
|
17081
17081
|
/** Directly set the session enabled flag. Turning it OFF revokes immediately: clears any
|
|
17082
17082
|
* pending prompt and the controlling banner (GUARANTEE #5). */
|
|
17083
17083
|
setEnabled: (enabled) => update2(() => enabled ? { enabled } : { enabled, pending: null, controllingAgent: null }),
|
|
17084
|
+
setSharing: (sharing) => update2(() => ({ sharing })),
|
|
17084
17085
|
/** Set (or clear) the agent whose run is currently executing. */
|
|
17085
17086
|
setControllingAgent: (agent) => update2(() => ({ controllingAgent: agent })),
|
|
17086
17087
|
/** Back to the session start: off, nothing pending, nobody driving (a sign-in or sign-out). */
|
|
@@ -17103,7 +17104,7 @@ function toGuidedSteps(steps) {
|
|
|
17103
17104
|
function toRemoteControlRequest(msg, isSequenceId) {
|
|
17104
17105
|
const steps = hasRunnableSteps(msg.steps) ? toGuidedSteps(msg.steps) : void 0;
|
|
17105
17106
|
const sequenceId = typeof msg.sequence_id === "string" && isSequenceId(msg.sequence_id) ? msg.sequence_id : void 0;
|
|
17106
|
-
if (!steps && !sequenceId) {
|
|
17107
|
+
if (!steps && !sequenceId && !(msg.screen_request_id && msg.workspace_ext_id)) {
|
|
17107
17108
|
client.logger.warn("[RemoteControl] Ignoring message with no runnable action", msg.sequence_id);
|
|
17108
17109
|
return null;
|
|
17109
17110
|
}
|
|
@@ -17113,7 +17114,16 @@ function toRemoteControlRequest(msg, isSequenceId) {
|
|
|
17113
17114
|
agentName: msg.agent_name.trim() || "An assistant",
|
|
17114
17115
|
agentExtId: msg.agent_ext_id ?? void 0,
|
|
17115
17116
|
sequenceId,
|
|
17116
|
-
steps
|
|
17117
|
+
steps,
|
|
17118
|
+
...msg.action_request_id ? {
|
|
17119
|
+
actionRequestId: msg.action_request_id,
|
|
17120
|
+
workspaceExtId: msg.workspace_ext_id ?? void 0
|
|
17121
|
+
} : {},
|
|
17122
|
+
...msg.screen_request_id ? {
|
|
17123
|
+
screenRequestId: msg.screen_request_id,
|
|
17124
|
+
screenQuestion: msg.screen_question ?? void 0,
|
|
17125
|
+
workspaceExtId: msg.workspace_ext_id ?? void 0
|
|
17126
|
+
} : {}
|
|
17117
17127
|
};
|
|
17118
17128
|
}
|
|
17119
17129
|
function useSupportTickets(options = {}) {
|