@pantoken/scaffold 1.2.0 → 1.3.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.
@@ -1,9 +1,5 @@
1
- import { Preset } from "@pantoken/scaffold-base";
2
- //#region generated/preset-ledger.d.ts
3
- /**
4
- * Registry of all available pantoken scaffold presets, keyed by platform name.
5
- */
6
- declare const PRESET_LEDGER: Record<string, Preset>;
1
+ //#region generated/scaffolds.d.ts
2
+ declare const SCAFFOLDS: Record<string, Record<string, string>>;
7
3
  //#endregion
8
4
  //#region src/theme.d.ts
9
5
  /** A pantoken token theme variant. */
@@ -25,12 +21,37 @@ declare function validateThemeVariant(value: string): ThemeVariant;
25
21
  */
26
22
  declare function validateThemeMode(value: string): ThemeMode;
27
23
  //#endregion
24
+ //#region generated/assets.d.ts
25
+ declare const ASSETS: Record<string, string>;
26
+ //#endregion
27
+ //#region src/agent-assets.d.ts
28
+ /** An agent/editor tool pantoken can install assets for. */
29
+ type AgentTool = "agents" | "llms" | "cursor" | "copilot" | "windsurf" | "claude";
30
+ /** Every installable tool key. */
31
+ declare const AGENT_TOOLS: readonly AgentTool[];
32
+ /**
33
+ * Write pantoken's agent assets for a tool into a consumer repo.
34
+ *
35
+ * @param tool - A specific {@link AgentTool}, or `"all"` for every asset.
36
+ * @param dir - The target directory (default `"."`).
37
+ * @returns The paths written.
38
+ */
39
+ declare function installAgentAssets(tool: AgentTool | "all", dir?: string): string[];
40
+ //#endregion
28
41
  //#region src/index.d.ts
42
+ /** Package managers whose commands can be reflected in scaffolded project files. */
43
+ type ScaffoldPackageManager = "npm" | "pnpm" | "yarn" | "bun" | "deno" | "vp";
44
+ interface ScaffoldProjectOptions {
45
+ theme?: ThemeVariant;
46
+ mode?: ThemeMode;
47
+ cdn?: string;
48
+ locale?: string;
49
+ packageManager?: ScaffoldPackageManager;
50
+ }
29
51
  /**
30
- * A platform pantoken can scaffold a starter project for — either preset-ledger-backed (Bingo)
31
- * or a legacy template-only entry (e.g. `canvas-theme-editor`) with no preset yet.
52
+ * A platform pantoken can scaffold a starter project for.
32
53
  */
33
- type ScaffoldPlatform = keyof typeof PRESET_LEDGER;
54
+ type ScaffoldPlatform = keyof typeof SCAFFOLDS;
34
55
  /**
35
56
  * Every scaffoldable platform key (discovered from available presets, plus any legacy
36
57
  * template-only platforms not yet backed by a preset).
@@ -74,11 +95,6 @@ declare function resolveScaffoldPlatform(platform: string): ScaffoldPlatform;
74
95
  * scaffoldProject("vue", "./my-vue-app", { theme: "canvas", locale: "hu" });
75
96
  * ```
76
97
  */
77
- declare function scaffoldProject(platform: string, dir?: string, options?: {
78
- theme?: ThemeVariant;
79
- mode?: ThemeMode;
80
- cdn?: string;
81
- locale?: string;
82
- }): Promise<string[]>;
98
+ declare function scaffoldProject(platform: string, dir?: string, options?: ScaffoldProjectOptions): Promise<string[]>;
83
99
  //#endregion
84
- export { scaffoldProject as a, themeStylesheetImport as c, resolveScaffoldPlatform as i, validateThemeMode as l, ScaffoldPlatform as n, ThemeMode as o, isScaffoldPlatform as r, ThemeVariant as s, SCAFFOLD_PLATFORMS as t, validateThemeVariant as u };
100
+ export { resolveScaffoldPlatform as a, AgentTool as c, ThemeMode as d, ThemeVariant as f, validateThemeVariant as h, isScaffoldPlatform as i, installAgentAssets as l, validateThemeMode as m, ScaffoldPackageManager as n, scaffoldProject as o, themeStylesheetImport as p, ScaffoldPlatform as r, AGENT_TOOLS as s, SCAFFOLD_PLATFORMS as t, ASSETS as u };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as scaffoldProject, c as themeStylesheetImport, i as resolveScaffoldPlatform, l as validateThemeMode, n as ScaffoldPlatform, o as ThemeMode, r as isScaffoldPlatform, s as ThemeVariant, t as SCAFFOLD_PLATFORMS, u as validateThemeVariant } from "./index-D2-Dhvt8.mjs";
2
- export { SCAFFOLD_PLATFORMS, ScaffoldPlatform, type ThemeMode, type ThemeVariant, isScaffoldPlatform, resolveScaffoldPlatform, scaffoldProject, themeStylesheetImport, validateThemeMode, validateThemeVariant };
1
+ import { a as resolveScaffoldPlatform, c as AgentTool, d as ThemeMode, f as ThemeVariant, h as validateThemeVariant, i as isScaffoldPlatform, l as installAgentAssets, m as validateThemeMode, n as ScaffoldPackageManager, o as scaffoldProject, p as themeStylesheetImport, r as ScaffoldPlatform, s as AGENT_TOOLS, t as SCAFFOLD_PLATFORMS, u as ASSETS } from "./index-rJolJRZa.mjs";
2
+ export { AGENT_TOOLS, ASSETS, type AgentTool, SCAFFOLD_PLATFORMS, ScaffoldPackageManager, ScaffoldPlatform, type ThemeMode, type ThemeVariant, installAgentAssets, isScaffoldPlatform, resolveScaffoldPlatform, scaffoldProject, themeStylesheetImport, validateThemeMode, validateThemeVariant };
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as themeStylesheetImport, i as scaffoldProject, n as isScaffoldPlatform, o as validateThemeMode, r as resolveScaffoldPlatform, s as validateThemeVariant, t as SCAFFOLD_PLATFORMS } from "./src-DxBSPAO9.mjs";
2
- export { SCAFFOLD_PLATFORMS, isScaffoldPlatform, resolveScaffoldPlatform, scaffoldProject, themeStylesheetImport, validateThemeMode, validateThemeVariant };
1
+ import { a as AGENT_TOOLS, c as themeStylesheetImport, i as scaffoldProject, l as validateThemeMode, n as isScaffoldPlatform, o as installAgentAssets, r as resolveScaffoldPlatform, s as ASSETS, t as SCAFFOLD_PLATFORMS, u as validateThemeVariant } from "./src-diIfZCKN.mjs";
2
+ export { AGENT_TOOLS, ASSETS, SCAFFOLD_PLATFORMS, installAgentAssets, isScaffoldPlatform, resolveScaffoldPlatform, scaffoldProject, themeStylesheetImport, validateThemeMode, validateThemeVariant };