@awak-app/simy-cli 0.5.76 → 0.5.77
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/package.json +1 -1
- package/src/cli-contract.js +1 -1
- package/src/desktop-host.js +6 -0
package/package.json
CHANGED
package/src/cli-contract.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./durable-local-task-steps-contract.js";
|
|
14
14
|
import { buildExecutionCapabilityContract } from "./execution-capability-contract.js";
|
|
15
15
|
|
|
16
|
-
export const CLI_VERSION = "0.5.
|
|
16
|
+
export const CLI_VERSION = "0.5.77";
|
|
17
17
|
export const CLI_API_CONTRACT_VERSION = 10;
|
|
18
18
|
|
|
19
19
|
export function withCliContract(
|
package/src/desktop-host.js
CHANGED
|
@@ -404,6 +404,10 @@ export async function startDesktopHost({ input = process.stdin, output = process
|
|
|
404
404
|
// Keep these commands ordered with each other; the agent still owns all
|
|
405
405
|
// membership, active-work and nonce checks.
|
|
406
406
|
let authorizationQueue = Promise.resolve();
|
|
407
|
+
// The initial My AI handoff must not wait for provider refresh/detail work,
|
|
408
|
+
// or hold up sign-out/account changes. Serialize tickets with each other:
|
|
409
|
+
// issuing another Supabase link can invalidate the previous one.
|
|
410
|
+
let myAiSessionQueue = Promise.resolve();
|
|
407
411
|
// Saving/revoking opt-in must not queue behind provider or remote work.
|
|
408
412
|
let preferenceQueue = Promise.resolve();
|
|
409
413
|
let activeQueuedAction = null;
|
|
@@ -598,6 +602,8 @@ export async function startDesktopHost({ input = process.stdin, output = process
|
|
|
598
602
|
};
|
|
599
603
|
if (["login", "organization_select", "organization_cancel", "authorization_open"].includes(command.action)) {
|
|
600
604
|
authorizationQueue = authorizationQueue.then(execute).catch(() => {});
|
|
605
|
+
} else if (command.action === "my_ai_session") {
|
|
606
|
+
myAiSessionQueue = myAiSessionQueue.then(execute).catch(() => {});
|
|
601
607
|
} else if (command.action === "session_set_auto_continue") {
|
|
602
608
|
preferenceQueue = preferenceQueue.then(execute).catch(() => {});
|
|
603
609
|
} else {
|