@qablehq/atto 0.0.41 → 0.0.42
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
|
@@ -522,6 +522,7 @@ async function pullRemoteSessionAnswers() {
|
|
|
522
522
|
async function pullAndDispatchPendingSessions() {
|
|
523
523
|
const link = readLink();
|
|
524
524
|
if (!link) return { started: 0, errors: [] };
|
|
525
|
+
await fetchAttoRemoteConfig().catch(() => null);
|
|
525
526
|
const response = await tesboFetch(link, "/api/atto/sessions/pending");
|
|
526
527
|
if (response.status === 401) {
|
|
527
528
|
clearLink();
|
|
@@ -806,6 +807,7 @@ async function pullAndHandleDesktopCommands() {
|
|
|
806
807
|
}
|
|
807
808
|
}
|
|
808
809
|
let commandPollTimer = null;
|
|
810
|
+
let remoteConfigPollTimer = null;
|
|
809
811
|
function startAttoScriptPoller(intervalMs = 5e3) {
|
|
810
812
|
if (scriptPollTimer) return;
|
|
811
813
|
const tick = () => {
|
|
@@ -815,6 +817,14 @@ function startAttoScriptPoller(intervalMs = 5e3) {
|
|
|
815
817
|
tick();
|
|
816
818
|
scriptPollTimer = setInterval(tick, intervalMs);
|
|
817
819
|
scriptPollTimer.unref?.();
|
|
820
|
+
if (!remoteConfigPollTimer) {
|
|
821
|
+
const configTick = () => {
|
|
822
|
+
void fetchAttoRemoteConfig().catch(() => void 0);
|
|
823
|
+
};
|
|
824
|
+
configTick();
|
|
825
|
+
remoteConfigPollTimer = setInterval(configTick, 3e3);
|
|
826
|
+
remoteConfigPollTimer.unref?.();
|
|
827
|
+
}
|
|
818
828
|
if (!commandPollTimer) {
|
|
819
829
|
const commandTick = () => {
|
|
820
830
|
void pullAndHandleDesktopCommands().catch(() => void 0);
|
|
@@ -33481,7 +33481,7 @@ function ProjectList() {
|
|
|
33481
33481
|
}
|
|
33482
33482
|
};
|
|
33483
33483
|
void refresh();
|
|
33484
|
-
const timer = window.setInterval(() => void refresh(),
|
|
33484
|
+
const timer = window.setInterval(() => void refresh(), 3e3);
|
|
33485
33485
|
return () => {
|
|
33486
33486
|
cancelled = true;
|
|
33487
33487
|
window.clearInterval(timer);
|
|
@@ -35166,6 +35166,7 @@ async function startRemoteSession(job) {
|
|
|
35166
35166
|
}
|
|
35167
35167
|
setActiveProject(id, { force: true });
|
|
35168
35168
|
setView("session");
|
|
35169
|
+
const remote = await window.taa.tesbo.remoteConfig().catch(() => null);
|
|
35169
35170
|
const bindings = await window.taa.ai.listBindings().catch(() => ({}));
|
|
35170
35171
|
if (bindings[id]) setProjectAiBinding2(id, bindings[id]);
|
|
35171
35172
|
let project = useAppStore.getState().projectsById[id];
|
|
@@ -35173,15 +35174,9 @@ async function startRemoteSession(job) {
|
|
|
35173
35174
|
throw new Error("No folder path on this PC for the Atto user. Set save location under Agents → Atto.");
|
|
35174
35175
|
}
|
|
35175
35176
|
if (!project.aiBinding) {
|
|
35176
|
-
|
|
35177
|
-
|
|
35178
|
-
|
|
35179
|
-
project = useAppStore.getState().projectsById[id];
|
|
35180
|
-
if (!project?.aiBinding) {
|
|
35181
|
-
throw new Error(
|
|
35182
|
-
remote?.aiSynced ? "Website AI key synced but project binding is missing. Reconnect Atto, then retry." : "Allocate an AI key to this project on Tesbo (Workspace → AI Providers), or connect a key in Atto project settings on this PC."
|
|
35183
|
-
);
|
|
35184
|
-
}
|
|
35177
|
+
throw new Error(
|
|
35178
|
+
remote?.aiSynced ? "Website AI key synced but project binding is missing. Reconnect Atto, then retry." : "Allocate an AI key to this project on Tesbo (Workspace → AI Providers), or connect a key in Atto project settings on this PC."
|
|
35179
|
+
);
|
|
35185
35180
|
}
|
|
35186
35181
|
if (project.analysis?.status !== "ready") {
|
|
35187
35182
|
setProjectAnalysis2(id, { status: "analyzing" });
|
package/out/renderer/index.html
CHANGED
|
@@ -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-
|
|
11
|
+
<script type="module" crossorigin src="./assets/index-CugGXqpv.js"></script>
|
|
12
12
|
<link rel="stylesheet" crossorigin href="./assets/index-DyJdhPcb.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|