@qablehq/atto 0.0.14 → 0.0.16

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.
@@ -47,6 +47,8 @@ const IPC_CHANNELS = {
47
47
  /** Main → renderer: start a Chat-queued desktop session (New session equivalent). */
48
48
  tesboRemoteSession: "taa:tesbo:remoteSession",
49
49
  tesboAckRemoteSession: "taa:tesbo:ackRemoteSession",
50
+ /** Renderer → main: bind a RealEngine session to a Chat job for live mirroring. */
51
+ tesboBindRemoteSession: "taa:tesbo:bindRemoteSession",
50
52
  // Contextual command handling
51
53
  submitCommand: "taa:sessions:submitCommand",
52
54
  getCommandQueue: "taa:sessions:getCommandQueue",
@@ -119,7 +121,8 @@ const api = {
119
121
  electron.ipcRenderer.on(IPC_CHANNELS.tesboRemoteSession, listener);
120
122
  return () => electron.ipcRenderer.removeListener(IPC_CHANNELS.tesboRemoteSession, listener);
121
123
  },
122
- ackRemoteSession: (cmd) => electron.ipcRenderer.invoke(IPC_CHANNELS.tesboAckRemoteSession, cmd)
124
+ ackRemoteSession: (cmd) => electron.ipcRenderer.invoke(IPC_CHANNELS.tesboAckRemoteSession, cmd),
125
+ bindRemoteSession: (cmd) => electron.ipcRenderer.invoke(IPC_CHANNELS.tesboBindRemoteSession, cmd)
123
126
  }
124
127
  };
125
128
  electron.contextBridge.exposeInMainWorld("taa", api);
@@ -16969,6 +16969,8 @@ function patchProject(slice, id, patch) {
16969
16969
  };
16970
16970
  }
16971
16971
  function setProjectFolderPath(slice, id, folderPath) {
16972
+ const existing = slice.projectsById[id];
16973
+ if (existing && existing.folderPath === folderPath) return slice;
16972
16974
  return patchProject(slice, id, { folderPath, analysis: { status: "idle" } });
16973
16975
  }
16974
16976
  function setProjectAiBinding(slice, id, aiBinding) {
@@ -34904,6 +34906,7 @@ async function startRemoteSession(job) {
34904
34906
  linkSessionToProject2(id, sessionId);
34905
34907
  setActiveSession(sessionId);
34906
34908
  setStreamingSession(sessionId);
34909
+ await window.taa.tesbo.bindRemoteSession({ jobId: job.id, desktopSessionId: sessionId });
34907
34910
  }
34908
34911
  let started = false;
34909
34912
  function startRemoteSessionListener() {
@@ -34913,7 +34916,6 @@ function startRemoteSessionListener() {
34913
34916
  void (async () => {
34914
34917
  try {
34915
34918
  await startRemoteSession(job);
34916
- await window.taa.tesbo.ackRemoteSession({ id: job.id, status: "done" });
34917
34919
  } catch (error) {
34918
34920
  const message = error instanceof Error ? error.message : "Could not start remote session.";
34919
34921
  await window.taa.tesbo.ackRemoteSession({ id: job.id, status: "failed", error: message }).catch(() => void 0);
@@ -8,7 +8,7 @@
8
8
  />
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
10
10
  <title>Tesbo Automate</title>
11
- <script type="module" crossorigin src="./assets/index-B6r2KnCj.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-DPu6kKU4.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="./assets/index-CKtSvvUQ.css">
13
13
  </head>
14
14
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qablehq/atto",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "Atto \u2014 AI-assisted desktop test automation",
5
5
  "homepage": "https://github.com/QAbleHQ/Atto",
6
6
  "author": {