statelyai 0.12.7 → 0.12.8

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as run } from "./cli-BRxosLYY.mjs";
2
+ import { C as run } from "./cli-B2Dd5vY-.mjs";
3
3
 
4
4
  //#region src/bin.ts
5
5
  run();
@@ -7552,10 +7552,16 @@ function graphToMachineConfig(graph, options = {}) {
7552
7552
  const tags = node.data.tags;
7553
7553
  const stateMeta = showMeta ? buildMeta({
7554
7554
  ...node.data.meta,
7555
- ...node.data.assets?.length ? { "@statelyai.assets": node.data.assets.map(({ type, url, size }) => ({
7555
+ ...node.data.assets?.length ? { "@statelyai.assets": node.data.assets.map(({ type, url, size, width, height, name, metadata }) => ({
7556
7556
  type,
7557
7557
  url,
7558
- ...size ? { size } : {}
7558
+ ...size ? { size } : {},
7559
+ ...name !== void 0 ? { name } : {},
7560
+ ...metadata !== void 0 ? { metadata } : {},
7561
+ ...type === "iframe" ? {
7562
+ ...width !== void 0 ? { width } : {},
7563
+ ...height !== void 0 ? { height } : {}
7564
+ } : {}
7559
7565
  })) } : {},
7560
7566
  ...node.data.appearance ? { "@statelyai.appearance": node.data.appearance } : {}
7561
7567
  }, node.data.color, showStatelyMeta) : void 0;
@@ -7609,10 +7615,16 @@ function graphToMachineConfig(graph, options = {}) {
7609
7615
  const type = edge.data.eventType ?? "";
7610
7616
  const transitionMeta = showMeta ? buildMeta({
7611
7617
  ...edge.data.meta,
7612
- ...edge.data.assets?.length ? { "@statelyai.assets": edge.data.assets.map(({ type, url, size }) => ({
7618
+ ...edge.data.assets?.length ? { "@statelyai.assets": edge.data.assets.map(({ type, url, size, width, height, name, metadata }) => ({
7613
7619
  type,
7614
7620
  url,
7615
- ...size ? { size } : {}
7621
+ ...size ? { size } : {},
7622
+ ...name !== void 0 ? { name } : {},
7623
+ ...metadata !== void 0 ? { metadata } : {},
7624
+ ...type === "iframe" ? {
7625
+ ...width !== void 0 ? { width } : {},
7626
+ ...height !== void 0 ? { height } : {}
7627
+ } : {}
7616
7628
  })) } : {},
7617
7629
  ...edge.data.appearance ? { "@statelyai.appearance": edge.data.appearance } : {}
7618
7630
  }, edge.data.color, showStatelyMeta) : edge.data.meta?.[FN_PROJECTION_META] ? { [FN_PROJECTION_META]: edge.data.meta[FN_PROJECTION_META] } : void 0;
@@ -20636,7 +20648,7 @@ function sourceLocationUris(sourceLocations) {
20636
20648
 
20637
20649
  //#endregion
20638
20650
  //#region src/version.ts
20639
- const CLI_VERSION = "0.12.7";
20651
+ const CLI_VERSION = "0.12.8";
20640
20652
 
20641
20653
  //#endregion
20642
20654
  //#region src/cliHost.ts
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { C as run, D as verifyProject, E as resolveVerificationRequest, O as formatVerificationJUnit, S as resolveProjectStatus, T as scanProjectSources, _ as isFileGitDirty, a as discoverMachinesInSource, b as resolveCredentialStatus, c as formatDiscoveredMachines, d as formatProjectStatus, f as formatStoredCredentialSource, g as initProject, h as inferInitProjectName, i as discoverLinkedPullTargets, k as createStatelyProjectConfig, l as formatMissingNewMachineDirMessage, m as getEnvCredential, n as buildOAuthLoginStart, o as discoverOAuthLogin, p as getEnvApiKey, r as classifyPushCandidates, s as discoverRemoteProjectMachineTargets, t as COMMANDS, u as formatPlanSummary, v as resolveApiKey, w as scanProjectMachines, x as resolveOpenRootDir, y as resolveConfiguredPullTargets } from "./cli-BRxosLYY.mjs";
1
+ import { C as run, D as verifyProject, E as resolveVerificationRequest, O as formatVerificationJUnit, S as resolveProjectStatus, T as scanProjectSources, _ as isFileGitDirty, a as discoverMachinesInSource, b as resolveCredentialStatus, c as formatDiscoveredMachines, d as formatProjectStatus, f as formatStoredCredentialSource, g as initProject, h as inferInitProjectName, i as discoverLinkedPullTargets, k as createStatelyProjectConfig, l as formatMissingNewMachineDirMessage, m as getEnvCredential, n as buildOAuthLoginStart, o as discoverOAuthLogin, p as getEnvApiKey, r as classifyPushCandidates, s as discoverRemoteProjectMachineTargets, t as COMMANDS, u as formatPlanSummary, v as resolveApiKey, w as scanProjectMachines, x as resolveOpenRootDir, y as resolveConfiguredPullTargets } from "./cli-B2Dd5vY-.mjs";
2
2
 
3
3
  export { COMMANDS, buildOAuthLoginStart, classifyPushCandidates, createStatelyProjectConfig, discoverLinkedPullTargets, discoverMachinesInSource, discoverOAuthLogin, discoverRemoteProjectMachineTargets, formatDiscoveredMachines, formatMissingNewMachineDirMessage, formatPlanSummary, formatProjectStatus, formatStoredCredentialSource, formatVerificationJUnit, getEnvApiKey, getEnvCredential, inferInitProjectName, initProject, isFileGitDirty, resolveApiKey, resolveConfiguredPullTargets, resolveCredentialStatus, resolveOpenRootDir, resolveProjectStatus, resolveVerificationRequest, run, scanProjectMachines, scanProjectSources, verifyProject };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "statelyai",
3
- "version": "0.12.7",
3
+ "version": "0.12.8",
4
4
  "description": "Command-line tools for Stately",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -24,14 +24,14 @@
24
24
  "typescript": "^5.9.3",
25
25
  "ws": "^8.21.0",
26
26
  "zod": "^4.4.1",
27
- "@statelyai/sdk": "0.38.1"
27
+ "@statelyai/sdk": "0.38.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/ws": "^8.18.1",
31
31
  "tsdown": "0.21.0-beta.2",
32
32
  "vitest": "^3.2.4",
33
- "@statelyai/api-contract": "0.6.2",
34
- "@statelyai/editor-sync": "0.1.50"
33
+ "@statelyai/api-contract": "0.6.3",
34
+ "@statelyai/editor-sync": "0.1.51"
35
35
  },
36
36
  "oclif": {
37
37
  "bin": "statelyai",