@synopackageland/ui 0.6.1 → 0.8.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.
@@ -905,6 +905,6 @@ export declare const synoJsonCatalog: import('@json-render/core').Catalog<{
905
905
  }>;
906
906
  export declare const synoJsonAiRules: string[];
907
907
  /** The self-check loop an AI follows after generating a spec. */
908
- export declare const synoJsonAiWorkflow = "## Self-check workflow\n\n1. List components with `npx syno-ui catalog`; read props with `npx syno-ui describe <Component>`.\n2. Write the spec as JSON: {\"root\", \"elements\", \"state\"}. Seed every state path you bind or read.\n3. Run `npx syno-ui validate ui.json --json` (add --actions, --functions, --state, --messages for host-provided names).\n Fix every error at its JSON Pointer `path` using its `hint`, then validate again until it passes.\n4. Run `npx syno-ui render ui.json --out shots` to screenshot phone, DSM window and wide widths and to\n report layout overflow; fix reported elements and repeat.\n5. Hand over the spec only when validate and render both exit 0.";
908
+ export declare const synoJsonAiWorkflow = "## Self-check workflow\n\nInstall `@synopackageland/ui` first. Without a local install, use\n`npx -y -p @synopackageland/ui syno-pkg-land-ui <command>` (pin the package version for reproducibility).\n\n1. List components with `npx --no syno-pkg-land-ui catalog`; read props with `npx --no syno-pkg-land-ui describe <Component>`.\n2. Write the spec as JSON: {\"root\", \"elements\", \"state\"}. Seed every state path you bind or read.\n3. Run `npx --no syno-pkg-land-ui validate ui.json --json` (add --actions, --functions, --state, --messages for host-provided names).\n Fix every error at its JSON Pointer `path` using its `hint`, then validate again until it passes.\n4. Run `npx --no syno-pkg-land-ui render ui.json --out shots` to screenshot phone, DSM window and wide widths and to\n report layout overflow; fix reported elements and repeat.\n5. Hand over the spec only when validate and render both exit 0.";
909
909
  /** The complete AI system prompt: catalog, rules and the self-check workflow. */
910
910
  export declare function synoJsonAiPrompt(): string;
@@ -175,10 +175,13 @@ RULES:
175
175
 
176
176
  ## Self-check workflow
177
177
 
178
- 1. List components with `npx syno-ui catalog`; read props with `npx syno-ui describe <Component>`.
178
+ Install `@synopackageland/ui` first. Without a local install, use
179
+ `npx -y -p @synopackageland/ui syno-pkg-land-ui <command>` (pin the package version for reproducibility).
180
+
181
+ 1. List components with `npx --no syno-pkg-land-ui catalog`; read props with `npx --no syno-pkg-land-ui describe <Component>`.
179
182
  2. Write the spec as JSON: {"root", "elements", "state"}. Seed every state path you bind or read.
180
- 3. Run `npx syno-ui validate ui.json --json` (add --actions, --functions, --state, --messages for host-provided names).
183
+ 3. Run `npx --no syno-pkg-land-ui validate ui.json --json` (add --actions, --functions, --state, --messages for host-provided names).
181
184
  Fix every error at its JSON Pointer `path` using its `hint`, then validate again until it passes.
182
- 4. Run `npx syno-ui render ui.json --out shots` to screenshot phone, DSM window and wide widths and to
185
+ 4. Run `npx --no syno-pkg-land-ui render ui.json --out shots` to screenshot phone, DSM window and wide widths and to
183
186
  report layout overflow; fix reported elements and repeat.
184
187
  5. Hand over the spec only when validate and render both exit 0.