@askewly/design 0.6.1 → 0.6.2

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/index.js CHANGED
@@ -10,7 +10,7 @@ import { verifyDir } from "./verify.js";
10
10
  import { loadKnowledge, loadRecipes, loadTerms, loadTokens, loadTokensCss, searchKnowledge, searchTerms, tokensForTier, } from "./load.js";
11
11
  import { recall, RECALL_AXES } from "./data.js";
12
12
  import { assetUrl, buildPrompt, loadAssets, searchAssets, suggestAssets } from "./assets.js";
13
- import { getSite, listSites, SiteError } from "./site.js";
13
+ import { getSite, listSites, siteNextStep, SiteError } from "./site.js";
14
14
  const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
15
15
  const program = new Command();
16
16
  program
@@ -443,8 +443,8 @@ siteCmd
443
443
  try {
444
444
  const target = dir ?? slug;
445
445
  const n = await getSite(slug, target);
446
- console.log(`${n} files -> ${target}
447
- read ${path.join(target, "ASKEWLY-BUNDLE.md")} for what was left out and how to run it`);
446
+ console.log(`${n} files -> ${target}
447
+ ${siteNextStep(target)}`);
448
448
  }
449
449
  catch (error) {
450
450
  if (error instanceof SiteError)
package/dist/site.js CHANGED
@@ -79,6 +79,12 @@ export function readZip(buf) {
79
79
  }
80
80
  return out;
81
81
  }
82
+ export function siteNextStep(dir) {
83
+ if (existsSync(path.join(dir, "content.json"))) {
84
+ return "edit content.json with your text and media paths, then run the page; read blueprint.md for how it is built";
85
+ }
86
+ return `read ${path.join(dir, "ASKEWLY-BUNDLE.md")} for what was left out and how to run it`;
87
+ }
82
88
  export async function listSites(base = bundleBaseUrl()) {
83
89
  return fetchSiteIndex(base);
84
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askewly/design",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Query, inject, and verify the Askewly Design system (tokens, UI vocabulary, recipes) from your terminal or coding agent.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://ui.askewly.com",