@statelyai/sdk 0.8.1 → 0.9.0
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 +2 -0
- package/package.json +1 -1
- package/schemas/statelyai.schema.json +13 -72
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://stately.ai/schemas/statelyai.json",
|
|
4
4
|
"title": "Stately CLI project configuration",
|
|
5
|
-
"description": "Configuration for mapping local machine
|
|
5
|
+
"description": "Configuration for mapping local machine files to a Stately Studio project.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
|
-
"required": ["version", "projectId", "
|
|
8
|
+
"required": ["version", "projectId", "include"],
|
|
9
9
|
"properties": {
|
|
10
10
|
"$schema": {
|
|
11
11
|
"type": "string",
|
|
@@ -34,12 +34,17 @@
|
|
|
34
34
|
"default": 5,
|
|
35
35
|
"description": "Default XState major version for sources that do not override it. Only XState 5+ is supported."
|
|
36
36
|
},
|
|
37
|
-
"
|
|
37
|
+
"include": {
|
|
38
38
|
"type": "array",
|
|
39
|
-
"minItems": 1,
|
|
40
|
-
"description": "Source groups used to discover and classify local machine files.",
|
|
41
39
|
"items": {
|
|
42
|
-
"$ref": "#/$defs/
|
|
40
|
+
"$ref": "#/$defs/globPattern"
|
|
41
|
+
},
|
|
42
|
+
"description": "Glob patterns for local files to scan."
|
|
43
|
+
},
|
|
44
|
+
"exclude": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"$ref": "#/$defs/globPattern"
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
},
|
|
@@ -48,59 +53,6 @@
|
|
|
48
53
|
"type": "string",
|
|
49
54
|
"minLength": 1,
|
|
50
55
|
"description": "A glob pattern evaluated relative to the statelyai.json location."
|
|
51
|
-
},
|
|
52
|
-
"sourceFormat": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"enum": [
|
|
55
|
-
"auto",
|
|
56
|
-
"xstate",
|
|
57
|
-
"xstate-json",
|
|
58
|
-
"xgraph",
|
|
59
|
-
"digraph",
|
|
60
|
-
"mermaid",
|
|
61
|
-
"scxml",
|
|
62
|
-
"asl-json",
|
|
63
|
-
"asl-yaml",
|
|
64
|
-
"redux",
|
|
65
|
-
"zustand"
|
|
66
|
-
],
|
|
67
|
-
"description": "Machine format for matching sources. Use xstate for JavaScript or TypeScript machine source files."
|
|
68
|
-
},
|
|
69
|
-
"source": {
|
|
70
|
-
"type": "object",
|
|
71
|
-
"additionalProperties": false,
|
|
72
|
-
"required": ["include"],
|
|
73
|
-
"properties": {
|
|
74
|
-
"name": {
|
|
75
|
-
"type": "string",
|
|
76
|
-
"minLength": 1,
|
|
77
|
-
"description": "Optional label for this source group."
|
|
78
|
-
},
|
|
79
|
-
"include": {
|
|
80
|
-
"type": "array",
|
|
81
|
-
"minItems": 1,
|
|
82
|
-
"items": {
|
|
83
|
-
"$ref": "#/$defs/globPattern"
|
|
84
|
-
},
|
|
85
|
-
"description": "Glob patterns for files to include in this source group."
|
|
86
|
-
},
|
|
87
|
-
"exclude": {
|
|
88
|
-
"type": "array",
|
|
89
|
-
"items": {
|
|
90
|
-
"$ref": "#/$defs/globPattern"
|
|
91
|
-
},
|
|
92
|
-
"description": "Glob patterns excluded from this source group."
|
|
93
|
-
},
|
|
94
|
-
"format": {
|
|
95
|
-
"$ref": "#/$defs/sourceFormat",
|
|
96
|
-
"default": "auto"
|
|
97
|
-
},
|
|
98
|
-
"xstateVersion": {
|
|
99
|
-
"type": "integer",
|
|
100
|
-
"minimum": 5,
|
|
101
|
-
"description": "Optional XState major version override for this source group. Only XState 5+ is supported."
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
56
|
}
|
|
105
57
|
},
|
|
106
58
|
"examples": [
|
|
@@ -110,19 +62,8 @@
|
|
|
110
62
|
"projectId": "project_123",
|
|
111
63
|
"studioUrl": "https://stately.ai",
|
|
112
64
|
"defaultXStateVersion": 5,
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
"name": "app-machines",
|
|
116
|
-
"include": ["src/**/*.ts", "src/**/*.tsx"],
|
|
117
|
-
"exclude": ["**/*.test.ts", "**/*.spec.ts", "**/dist/**"],
|
|
118
|
-
"format": "xstate"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"name": "docs",
|
|
122
|
-
"include": ["docs/**/*.mmd"],
|
|
123
|
-
"format": "mermaid"
|
|
124
|
-
}
|
|
125
|
-
]
|
|
65
|
+
"include": ["src/**/*.ts", "src/**/*.tsx"],
|
|
66
|
+
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
|
|
126
67
|
}
|
|
127
68
|
]
|
|
128
69
|
}
|