statelyai 0.7.5 → 0.7.6
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/dist/bin.mjs +1 -1
- package/dist/{cli-DRKY520A.mjs → cli-D0TeuFzR.mjs} +10 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -168,7 +168,13 @@ var RemoteEditorSession = class {
|
|
|
168
168
|
activePanels: []
|
|
169
169
|
});
|
|
170
170
|
} catch (error) {
|
|
171
|
-
|
|
171
|
+
const message = formatError(error, "Failed to initialize the visual editor.");
|
|
172
|
+
this.postMessage({
|
|
173
|
+
type: "@statelyai.error",
|
|
174
|
+
code: "initialization_failed",
|
|
175
|
+
message
|
|
176
|
+
});
|
|
177
|
+
this.showError(message);
|
|
172
178
|
return;
|
|
173
179
|
}
|
|
174
180
|
for (const pending of this.pendingMessages) this.sendMessage(pending);
|
|
@@ -530,6 +536,8 @@ function watchWorkspace(rootDir, listener) {
|
|
|
530
536
|
}
|
|
531
537
|
function getCliWebviewContent(options) {
|
|
532
538
|
const baseUrl = normalizedBaseUrl(options.editorUrl);
|
|
539
|
+
const url = new URL(`${baseUrl}/embed`);
|
|
540
|
+
url.searchParams.set("auth", "message");
|
|
533
541
|
return `<!DOCTYPE html>
|
|
534
542
|
<html lang="en" style="height:100%;margin:0">
|
|
535
543
|
<head>
|
|
@@ -543,7 +551,7 @@ function getCliWebviewContent(options) {
|
|
|
543
551
|
<body>
|
|
544
552
|
<iframe
|
|
545
553
|
id="stately-editor"
|
|
546
|
-
src="${escapeAttribute(
|
|
554
|
+
src="${escapeAttribute(url.toString())}"
|
|
547
555
|
allow="clipboard-read; clipboard-write"
|
|
548
556
|
></iframe>
|
|
549
557
|
<script>
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as createStatelyProjectConfig, _ as resolveConfiguredPullTargets, a as discoverOAuthLogin, b as run, c as formatPlanSummary, d as getEnvApiKey, f as getEnvCredential, g as resolveApiKey, h as isFileGitDirty, i as discoverLinkedPullTargets, l as formatProjectStatus, m as initProject, n as buildOAuthLoginStart, o as discoverRemoteProjectMachineTargets, p as inferInitProjectName, r as classifyPushCandidates, s as formatMissingNewMachineDirMessage, t as COMMANDS, u as formatStoredCredentialSource, v as resolveCredentialStatus, x as scanProjectSources, y as resolveProjectStatus } from "./cli-
|
|
1
|
+
import { S as createStatelyProjectConfig, _ as resolveConfiguredPullTargets, a as discoverOAuthLogin, b as run, c as formatPlanSummary, d as getEnvApiKey, f as getEnvCredential, g as resolveApiKey, h as isFileGitDirty, i as discoverLinkedPullTargets, l as formatProjectStatus, m as initProject, n as buildOAuthLoginStart, o as discoverRemoteProjectMachineTargets, p as inferInitProjectName, r as classifyPushCandidates, s as formatMissingNewMachineDirMessage, t as COMMANDS, u as formatStoredCredentialSource, v as resolveCredentialStatus, x as scanProjectSources, y as resolveProjectStatus } from "./cli-D0TeuFzR.mjs";
|
|
2
2
|
|
|
3
3
|
export { COMMANDS, buildOAuthLoginStart, classifyPushCandidates, createStatelyProjectConfig, discoverLinkedPullTargets, discoverOAuthLogin, discoverRemoteProjectMachineTargets, formatMissingNewMachineDirMessage, formatPlanSummary, formatProjectStatus, formatStoredCredentialSource, getEnvApiKey, getEnvCredential, inferInitProjectName, initProject, isFileGitDirty, resolveApiKey, resolveConfiguredPullTargets, resolveCredentialStatus, resolveProjectStatus, run, scanProjectSources };
|