statelyai 0.7.7 → 0.7.9
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/README.md +5 -3
- package/dist/bin.mjs +1 -1
- package/dist/{cli-DicCA4VI.mjs → cli-RMsm3QLT.mjs} +12 -0
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -170,9 +170,8 @@ the credential so a later command can retry.
|
|
|
170
170
|
| `exclude` | Globs removed from discovery. Defaults to tests and specs. |
|
|
171
171
|
| `newMachinesDir` | Destination for remote-only machines created by `pull`. |
|
|
172
172
|
|
|
173
|
-
Project-wide discovery identifies
|
|
174
|
-
`
|
|
175
|
-
files. `push` currently supports files configured as `xstate` or `auto`.
|
|
173
|
+
Project-wide discovery identifies configured JavaScript and TypeScript files
|
|
174
|
+
that import XState and call `createMachine(...)` or `.createMachine(...)`.
|
|
176
175
|
|
|
177
176
|
Mutating project commands rewrite legacy configs with one `sources` entry to
|
|
178
177
|
the current top-level shape. `status` and `push --dry-run` normalize legacy
|
|
@@ -420,3 +419,6 @@ statelyai init --base-url https://studio.example.com --scan
|
|
|
420
419
|
statelyai open src/checkout.machine.ts \
|
|
421
420
|
--editor-url https://editor.example.com
|
|
422
421
|
```
|
|
422
|
+
|
|
423
|
+
For enterprise self-hosting options, [see pricing and contact
|
|
424
|
+
us](https://stately.ai/pricing).
|
package/dist/bin.mjs
CHANGED
|
@@ -1240,9 +1240,21 @@ function getSuggestionRoot(relativePath) {
|
|
|
1240
1240
|
if (appMatch) return `apps/${appMatch[1]}/src/`;
|
|
1241
1241
|
return null;
|
|
1242
1242
|
}
|
|
1243
|
+
function getCommonDirectory(relativePaths) {
|
|
1244
|
+
const [firstDirectory, ...remainingDirectories] = relativePaths.map((relativePath) => path.posix.dirname(relativePath).split("/"));
|
|
1245
|
+
if (!firstDirectory) return;
|
|
1246
|
+
const commonSegments = [];
|
|
1247
|
+
for (const [index, segment] of firstDirectory.entries()) {
|
|
1248
|
+
if (!remainingDirectories.every((directory) => directory[index] === segment)) break;
|
|
1249
|
+
commonSegments.push(segment);
|
|
1250
|
+
}
|
|
1251
|
+
return commonSegments.length > 0 ? commonSegments.join("/") : void 0;
|
|
1252
|
+
}
|
|
1243
1253
|
function suggestGroupedInclude(relativePaths, root) {
|
|
1244
1254
|
const extPattern = formatExtensionPattern(relativePaths.map((relativePath) => path.posix.extname(relativePath)));
|
|
1245
1255
|
if (relativePaths.map((relativePath) => path.posix.basename(relativePath, path.posix.extname(relativePath))).every((basename) => basename.toLowerCase().endsWith("machine"))) return `${root}**/*machine${extPattern}`;
|
|
1256
|
+
const commonDirectory = getCommonDirectory(relativePaths);
|
|
1257
|
+
if (commonDirectory) return `${commonDirectory}/${relativePaths.every((relativePath) => path.posix.dirname(relativePath) === commonDirectory) ? "*" : "**/*"}${extPattern}`;
|
|
1246
1258
|
return `${root}**/*${extPattern}`;
|
|
1247
1259
|
}
|
|
1248
1260
|
function suggestStatelySourceConfigs(relativePaths) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as scanProjectMachines, S as run, T as createStatelyProjectConfig, _ 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, 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 scanProjectSources, x as resolveProjectStatus, y as resolveConfiguredPullTargets } from "./cli-
|
|
1
|
+
import { C as scanProjectMachines, S as run, T as createStatelyProjectConfig, _ 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, 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 scanProjectSources, x as resolveProjectStatus, y as resolveConfiguredPullTargets } from "./cli-RMsm3QLT.mjs";
|
|
2
2
|
|
|
3
3
|
export { COMMANDS, buildOAuthLoginStart, classifyPushCandidates, createStatelyProjectConfig, discoverLinkedPullTargets, discoverMachinesInSource, discoverOAuthLogin, discoverRemoteProjectMachineTargets, formatDiscoveredMachines, formatMissingNewMachineDirMessage, formatPlanSummary, formatProjectStatus, formatStoredCredentialSource, getEnvApiKey, getEnvCredential, inferInitProjectName, initProject, isFileGitDirty, resolveApiKey, resolveConfiguredPullTargets, resolveCredentialStatus, resolveProjectStatus, run, scanProjectMachines, scanProjectSources };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "statelyai",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"description": "Command-line tools for Stately",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@oclif/core": "^4.10.3",
|
|
24
|
-
"@statelyai/sdk": "0.13.
|
|
24
|
+
"@statelyai/sdk": "0.13.4"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"tsdown": "0.21.0-beta.2",
|