@awak-app/simy-cli 0.7.12 → 0.7.13
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/agent.js +3 -1
- package/src/cli-contract.js +1 -1
package/package.json
CHANGED
package/src/agent.js
CHANGED
|
@@ -650,7 +650,9 @@ export async function startAgent({
|
|
|
650
650
|
if (!isSessionValid(session, Date.now(), apiOrigin)) throw new Error("Sign in before switching organizations.");
|
|
651
651
|
if (organizationState !== "ready" || !organizationItems.some(org => org.id === organizationId)) throw new Error("Refresh the organization list before selecting an organization.");
|
|
652
652
|
const choice = organizationItems.find(org => org.id === organizationId);
|
|
653
|
-
|
|
653
|
+
// Selecting an authenticated membership is separate from permission to run.
|
|
654
|
+
// The new session still requires a fresh server entitlement before work.
|
|
655
|
+
if (choice.desktopAccess === "unavailable") throw new Error("Refresh organizations before switching; access could not be verified.");
|
|
654
656
|
organizationSlug = choice.slug;
|
|
655
657
|
if (!organizationSlug) throw new Error('Refresh organizations before switching; its verified slug is unavailable.');
|
|
656
658
|
authNonce = randomBytes(16).toString("base64url");
|
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.7.
|
|
16
|
+
export const CLI_VERSION = "0.7.13";
|
|
17
17
|
export const CLI_API_CONTRACT_VERSION = 10;
|
|
18
18
|
|
|
19
19
|
export function narrativeImageCapabilityMetadata() {
|