@synopackageland/cli 0.52.17 → 0.53.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/CHANGELOG.md +13 -0
- package/README.md +19 -16
- package/dist/build-spk/install-wizard.d.ts +8 -3
- package/dist/build-spk/install-wizard.js +38 -10
- package/dist/build-spk/wizard-messages.d.ts +22 -0
- package/dist/build-spk/wizard-messages.js +22 -0
- package/dist/e2e/dsm.d.ts +1 -1
- package/dist/e2e/dsm.js +1 -1
- package/dist/error-registry.js +6 -5
- package/dist/init.js +10 -8
- package/dist/native-http-schema/source.json +1 -1
- package/dist/package-manager.d.ts +4 -0
- package/dist/package-manager.js +48 -0
- package/dist/standalone/bridge-app.js +4 -2
- package/dist/standalone/build.js +6 -5
- package/dist/standalone/inspect-spk.d.ts +2 -0
- package/dist/standalone/inspect-spk.js +14 -10
- package/dist/standalone/install-memory.d.ts +25 -2
- package/dist/standalone/install-memory.js +90 -6
- package/dist/standalone/manifest.d.ts +3 -0
- package/dist/standalone/manifest.js +4 -2
- package/dist/standalone/sdk-check.js +2 -4
- package/dist/standalone/shared-folder.js +3 -3
- package/dist/standalone/spk.js +2 -1
- package/docs/install-memory.md +29 -1
- package/package.json +6 -5
- package/schema/dsm-api-contract.json +1 -1
- package/schema/dsm-package.schema.json +6 -0
- package/skills/SKILL.md +9 -9
- package/skills/reference/compose.md +1 -1
- package/skills/reference/create.md +1 -1
- package/skills/reference/ctl.md +1 -1
- package/skills/reference/install.md +2 -1
- package/skills/reference/testing.md +7 -7
- package/skills/reference/ui-json.md +8 -8
- package/skills/reference/ui-vue.md +6 -6
- package/skills/reference/upstream-fork.md +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# JSON UI for DSM apps
|
|
2
2
|
|
|
3
3
|
Use the project's installed `@synopackageland/ui` from the frontend directory.
|
|
4
|
-
Run `
|
|
4
|
+
Run `pnpm install --frozen-lockfile` first if dependencies are missing. Run `pnpm exec syno-pkg-land-ui <command>`
|
|
5
5
|
to use the package bin, or add `node_modules/.bin` to PATH and use `syno-pkg-land-ui <command>`
|
|
6
6
|
for the commands below. Discovery and validation must use the app's installed SDK
|
|
7
7
|
and lockfile. If the installed bin is missing, report the missing CLI and stop the
|
|
@@ -11,11 +11,11 @@ Check the installed package CLI usage for its supported options.
|
|
|
11
11
|
## Discover before generating
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
pnpm exec syno-pkg-land-ui prompt
|
|
15
|
+
pnpm exec syno-pkg-land-ui catalog --json
|
|
16
|
+
pnpm exec syno-pkg-land-ui schema
|
|
17
|
+
pnpm exec syno-pkg-land-ui describe AppRoot --json
|
|
18
|
+
pnpm exec syno-pkg-land-ui describe AppShell --json
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Read these outputs and describe each additional component you need. Use the
|
|
@@ -59,7 +59,7 @@ This is authoring guidance; it does not add validation to the commands below.
|
|
|
59
59
|
After saving the generated spec as `ui.json`, run:
|
|
60
60
|
|
|
61
61
|
```sh
|
|
62
|
-
|
|
62
|
+
pnpm exec syno-pkg-land-ui validate ui.json --json --strict
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
Pass the actual host contracts when needed: `--actions save,refresh`,
|
|
@@ -72,7 +72,7 @@ Fix every reported JSON Pointer `path` using its `hint`, then validate again
|
|
|
72
72
|
until exit 0 with no warnings. Next run:
|
|
73
73
|
|
|
74
74
|
```sh
|
|
75
|
-
|
|
75
|
+
pnpm exec syno-pkg-land-ui render ui.json --json --strict --widths 390,700,960,1350 --out shots
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
Render needs Node 22 or newer and local Chrome/Chromium; set `CHROME` to its
|
|
@@ -31,12 +31,12 @@ Do not convert the existing app merely to run the JSON checker.
|
|
|
31
31
|
|
|
32
32
|
## Discover the installed contract
|
|
33
33
|
|
|
34
|
-
Work from `frontend` after `
|
|
34
|
+
Work from `frontend` after `pnpm install --frozen-lockfile`. See [ui-json.md](ui-json.md) for the shared
|
|
35
35
|
package-bin setup. Query the installed package before choosing components:
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
pnpm exec syno-pkg-land-ui catalog --json
|
|
39
|
+
pnpm exec syno-pkg-land-ui describe Button --json
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Describe each component you intend to use. The CLI catalog describes the JSON
|
|
@@ -153,9 +153,9 @@ excluding upstream source; this guidance does not add a CLI check or gate.
|
|
|
153
153
|
From `frontend`, run:
|
|
154
154
|
|
|
155
155
|
```sh
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
pnpm exec vue-tsc --noEmit
|
|
157
|
+
pnpm run build
|
|
158
|
+
pnpm test
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
Inspect screenshots of the actual app at its minimum DSM width and a maximized
|
|
@@ -154,7 +154,7 @@ When the upstream web panel is the only UI, configure `daemon` and
|
|
|
154
154
|
`i18n/messages/` for its localized responses. Keep the manifest's i18n
|
|
155
155
|
declaration, wrapper lifecycle files, notices and any explicitly authorized ctl
|
|
156
156
|
adapters/registry. Delete the unused `ui/` (or Vue `frontend/`) and UI e2e files
|
|
157
|
-
under `tests/e2e/`, along with unused e2e configs,
|
|
157
|
+
under `tests/e2e/`, along with unused e2e configs, package scripts and dependencies.
|
|
158
158
|
Retain any local/backend tests you choose to use.
|
|
159
159
|
|
|
160
160
|
The DSM menu and Package Center Open both use `sso/open.cgi` to open the
|