@jxsuite/studio 0.31.1 → 0.33.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/dist/studio.js +10033 -450
- package/dist/studio.js.map +113 -17
- package/package.json +10 -5
- package/src/files/files.ts +6 -1
- package/src/panels/ai-panel.ts +388 -328
- package/src/panels/quick-search.ts +116 -31
- package/src/panels/toolbar.ts +101 -58
- package/src/panels/welcome-screen.ts +34 -10
- package/src/platforms/devserver.ts +3 -47
- package/src/recent-projects.ts +119 -21
- package/src/services/ai-settings.ts +107 -0
- package/src/services/ai-system-prompt.ts +617 -0
- package/src/services/ai-tools.ts +854 -0
- package/src/services/context-manager.ts +200 -0
- package/src/services/document-assistant.ts +183 -0
- package/src/services/jx-validate.ts +65 -0
- package/src/services/render-critic.ts +75 -0
- package/src/services/token-lint.ts +140 -0
- package/src/services/tool-executor.ts +156 -0
- package/src/state.ts +29 -0
- package/src/studio.ts +15 -2
- package/src/tabs/transact.ts +37 -1
- package/src/types.ts +18 -6
- package/src/ui/media-picker.ts +5 -1
- package/src/utils/studio-utils.ts +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jxsuite/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Jx Studio — visual builder for Jx documents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
"build": "bun run scripts/build.ts",
|
|
27
27
|
"build:metafile": "bun build ./src/studio.ts --outdir dist --target browser --sourcemap=linked --metafile=metafile.json",
|
|
28
28
|
"gen:webdata": "bun run scripts/gen-webdata.js",
|
|
29
|
+
"eval": "bun run evals/cli.ts",
|
|
30
|
+
"eval:headless": "bun run tests/harness/run-eval.ts",
|
|
29
31
|
"lint:styles": "bun run scripts/check-styles.ts",
|
|
30
32
|
"test": "bun run lint:styles && bun test --isolate",
|
|
31
33
|
"test:coverage": "bun test --isolate --coverage",
|
|
@@ -34,9 +36,10 @@
|
|
|
34
36
|
"dependencies": {
|
|
35
37
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.1",
|
|
36
38
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.0.0",
|
|
37
|
-
"@jxsuite/
|
|
38
|
-
"@jxsuite/
|
|
39
|
-
"@jxsuite/
|
|
39
|
+
"@jxsuite/ai": "^0.1.0",
|
|
40
|
+
"@jxsuite/parser": "^0.33.0",
|
|
41
|
+
"@jxsuite/runtime": "^0.33.0",
|
|
42
|
+
"@jxsuite/schema": "^0.33.0",
|
|
40
43
|
"@spectrum-web-components/accordion": "^1.12.1",
|
|
41
44
|
"@spectrum-web-components/action-bar": "1.12.1",
|
|
42
45
|
"@spectrum-web-components/action-button": "^1.12.1",
|
|
@@ -73,7 +76,9 @@
|
|
|
73
76
|
"@spectrum-web-components/toast": "^1.12.1",
|
|
74
77
|
"@spectrum-web-components/tooltip": "^1.12.1",
|
|
75
78
|
"@spectrum-web-components/underlay": "^1.12.1",
|
|
76
|
-
"@vue/reactivity": "3.5.
|
|
79
|
+
"@vue/reactivity": "3.5.39",
|
|
80
|
+
"ajv": "^8.20.0",
|
|
81
|
+
"ajv-formats": "^3.0.1",
|
|
77
82
|
"lit": "^3.3.3",
|
|
78
83
|
"lit-html": "^3.3.3",
|
|
79
84
|
"monaco-editor": "^0.55.1",
|
package/src/files/files.ts
CHANGED
|
@@ -95,6 +95,7 @@ export async function loadProject() {
|
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
if (info.isSiteProject) {
|
|
98
|
+
addRecentProject(requireProjectState().name, meta.root);
|
|
98
99
|
await ensureDependenciesInstalled();
|
|
99
100
|
await loadDirectory(".");
|
|
100
101
|
await loadComponentRegistry();
|
|
@@ -1053,7 +1054,11 @@ export async function openFileInTab(path: string) {
|
|
|
1053
1054
|
sourceFormat: format?.name ?? null,
|
|
1054
1055
|
});
|
|
1055
1056
|
requireProjectState().selectedPath = path;
|
|
1056
|
-
trackRecentFile({
|
|
1057
|
+
trackRecentFile({
|
|
1058
|
+
name: path.split("/").pop() || path,
|
|
1059
|
+
path,
|
|
1060
|
+
root: requireProjectState().projectRoot,
|
|
1061
|
+
});
|
|
1057
1062
|
|
|
1058
1063
|
statusMessage(`Opened ${path.split("/").pop()}`);
|
|
1059
1064
|
} catch (error) {
|