@qablehq/atto 0.0.40 → 0.0.41

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/out/main/index.js CHANGED
@@ -11577,7 +11577,8 @@ function describeIntent(intent) {
11577
11577
  return "Unknown intent";
11578
11578
  }
11579
11579
  }
11580
- function resolveHeaded(project) {
11580
+ function resolveHeaded(project, opts) {
11581
+ if (opts?.remoteChatJob) return false;
11581
11582
  if (process.env.TAA_HEADED === "1") return true;
11582
11583
  if (process.env.TAA_HEADED === "0") return false;
11583
11584
  return (project.browserMode ?? DEFAULT_BROWSER_MODE) === "headed";
@@ -11687,6 +11688,8 @@ class RealEngine {
11687
11688
  await writeSessionMeta(meta);
11688
11689
  if (cmd.remoteJobId) {
11689
11690
  bindRemoteSessionJob(cmd.remoteJobId, sessionId);
11691
+ const bound = this.sessions.get(sessionId);
11692
+ if (bound) bound.remoteChatJob = true;
11690
11693
  }
11691
11694
  void this.runTracked(sessionId, (signal) => this.startSession(sessionId, signal));
11692
11695
  return sessionId;
@@ -11717,7 +11720,7 @@ class RealEngine {
11717
11720
  emitter,
11718
11721
  askUser: (question) => this.ask(sessionId, question),
11719
11722
  llm,
11720
- headed: resolveHeaded(state.meta.project),
11723
+ headed: resolveHeaded(state.meta.project, { remoteChatJob: Boolean(state.remoteChatJob) }),
11721
11724
  onArtifacts: (artifacts) => {
11722
11725
  const current = this.sessions.get(sessionId);
11723
11726
  if (current) current.artifacts = artifacts;
@@ -11771,7 +11774,7 @@ class RealEngine {
11771
11774
  fixtureContent,
11772
11775
  pageObjects,
11773
11776
  baseUrl: framework.baseUrl ?? state.meta.targetUrl,
11774
- headed: resolveHeaded(state.meta.project),
11777
+ headed: resolveHeaded(state.meta.project, { remoteChatJob: Boolean(state.remoteChatJob) }),
11775
11778
  signal
11776
11779
  });
11777
11780
  emitter.emit({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qablehq/atto",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "Atto — AI-assisted desktop test automation",
5
5
  "homepage": "https://github.com/QAbleHQ/Atto",
6
6
  "author": {