@funkai/cli 0.2.0 → 0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkai/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "CLI for the funkai AI SDK framework",
6
6
  "keywords": [
@@ -32,14 +32,17 @@
32
32
  "@kidd-cli/core": "^0.10.0",
33
33
  "es-toolkit": "^1.45.1",
34
34
  "liquidjs": "^10.25.0",
35
+ "picomatch": "^4.0.3",
35
36
  "ts-pattern": "^5.9.0",
36
37
  "yaml": "^2.8.2",
37
38
  "zod": "^4.3.6",
38
- "@funkai/prompts": "0.3.0"
39
+ "@funkai/config": "0.2.0",
40
+ "@funkai/prompts": "0.4.0"
39
41
  },
40
42
  "devDependencies": {
41
43
  "@kidd-cli/cli": "^0.4.9",
42
44
  "@types/node": "^25.5.0",
45
+ "@types/picomatch": "^4.0.2",
43
46
  "@vitest/coverage-v8": "^4.1.0",
44
47
  "tsdown": "^0.21.4",
45
48
  "typescript": "^5.9.3",
@@ -1,19 +1,26 @@
1
1
  import { command } from "@kidd-cli/core";
2
2
 
3
3
  import { generateArgs, handleGenerate } from "./prompts/generate.js";
4
+ import { getConfig } from "@/config.js";
4
5
 
5
6
  export default command({
6
7
  description: "Run all code generation across the funkai SDK",
7
8
  options: generateArgs,
8
9
  handler(ctx) {
9
10
  const { silent } = ctx.args;
11
+ const config = getConfig(ctx);
10
12
 
11
13
  // --- Prompts codegen ---
12
14
  if (!silent) {
13
15
  ctx.logger.info("Running prompts code generation...");
14
16
  }
15
17
 
16
- handleGenerate({ args: ctx.args, logger: ctx.logger, fail: ctx.fail });
18
+ handleGenerate({
19
+ args: ctx.args,
20
+ config: config.prompts,
21
+ logger: ctx.logger,
22
+ fail: ctx.fail,
23
+ });
17
24
 
18
25
  // --- Future: agents codegen ---
19
26
  },
@@ -5,6 +5,8 @@ import { command } from "@kidd-cli/core";
5
5
  import { match, P } from "ts-pattern";
6
6
  import { z } from "zod";
7
7
 
8
+ import { getConfig } from "@/config.js";
9
+
8
10
  /** @private */
9
11
  const createTemplate = (name: string) => `---
10
12
  name: ${name}
@@ -16,15 +18,41 @@ export default command({
16
18
  description: "Create a new .prompt file",
17
19
  options: z.object({
18
20
  name: z.string().describe("Prompt name (kebab-case)"),
19
- out: z.string().optional().describe("Output directory (defaults to cwd)"),
21
+ out: z
22
+ .string()
23
+ .optional()
24
+ .describe("Output directory (defaults to first root in config or cwd)"),
20
25
  partial: z.boolean().default(false).describe("Create as a partial in .prompts/partials/"),
21
26
  }),
22
27
  handler(ctx) {
23
28
  const { name, out, partial } = ctx.args;
29
+ const config = getConfig(ctx);
30
+ const promptsConfig = config.prompts;
31
+ const firstInclude = match(promptsConfig)
32
+ .with({ includes: P.array(P.string).select() }, (includes) => {
33
+ if (includes.length > 0) {
34
+ // Extract the static base directory from the first include pattern
35
+ const [pattern] = includes;
36
+ const parts = pattern.split("/");
37
+ const staticParts = parts.filter((p) => !p.includes("*") && !p.includes("?"));
38
+ if (staticParts.length > 0) {
39
+ return staticParts.join("/");
40
+ }
41
+ return undefined;
42
+ }
43
+ return undefined;
44
+ })
45
+ .otherwise(() => undefined);
46
+
24
47
  const dir = match({ partial, out })
25
48
  .with({ partial: true }, () => resolve(".prompts/partials"))
26
49
  .with({ out: P.string }, ({ out: outDir }) => resolve(outDir))
27
- .otherwise(() => process.cwd());
50
+ .otherwise(() => {
51
+ if (firstInclude) {
52
+ return resolve(firstInclude);
53
+ }
54
+ return process.cwd();
55
+ });
28
56
  const filePath = resolve(dir, `${name}.prompt`);
29
57
 
30
58
  // oxlint-disable-next-line security/detect-non-literal-fs-filename -- safe: user-provided CLI argument for prompt file creation
@@ -1,18 +1,20 @@
1
1
  import { mkdirSync, writeFileSync } from "node:fs";
2
2
  import { resolve } from "node:path";
3
3
 
4
+ import type { FunkaiConfig } from "@funkai/config";
4
5
  import { command } from "@kidd-cli/core";
5
6
  import { match } from "ts-pattern";
6
7
  import { z } from "zod";
7
8
 
8
- import { generatePromptModule, generateRegistry } from "@/lib/prompts/codegen.js";
9
+ import { getConfig } from "@/config.js";
10
+ import { generatePromptModule, generateRegistry, toFileSlug } from "@/lib/prompts/codegen.js";
9
11
  import { hasLintErrors } from "@/lib/prompts/lint.js";
10
12
  import { runGeneratePipeline } from "@/lib/prompts/pipeline.js";
11
13
 
12
14
  /** Zod schema for the `prompts generate` CLI arguments. */
13
15
  export const generateArgs = z.object({
14
- out: z.string().describe("Output directory for generated files"),
15
- roots: z.array(z.string()).describe("Root directories to scan for .prompt files"),
16
+ out: z.string().optional().describe("Output directory for generated files"),
17
+ includes: z.array(z.string()).optional().describe("Glob patterns to scan for .prompt files"),
16
18
  partials: z.string().optional().describe("Custom partials directory"),
17
19
  silent: z.boolean().default(false).describe("Suppress output except errors"),
18
20
  });
@@ -25,11 +27,12 @@ export type GenerateArgs = z.infer<typeof generateArgs>;
25
27
  */
26
28
  export interface HandleGenerateParams {
27
29
  readonly args: {
28
- readonly out: string;
29
- readonly roots: readonly string[];
30
+ readonly out?: string;
31
+ readonly includes?: readonly string[];
30
32
  readonly partials?: string;
31
33
  readonly silent: boolean;
32
34
  };
35
+ readonly config?: FunkaiConfig["prompts"];
33
36
  readonly logger: {
34
37
  info: (msg: string) => void;
35
38
  step: (msg: string) => void;
@@ -40,15 +43,52 @@ export interface HandleGenerateParams {
40
43
  readonly fail: (msg: string) => never;
41
44
  }
42
45
 
46
+ /**
47
+ * Resolve generate args by merging CLI flags with config defaults.
48
+ *
49
+ * @param args - CLI arguments (take precedence).
50
+ * @param config - Prompts config from funkai.config.ts (fallback).
51
+ * @param fail - Error handler for missing required values.
52
+ * @returns Resolved args with required fields guaranteed.
53
+ */
54
+ function resolveGenerateArgs(
55
+ args: HandleGenerateParams["args"],
56
+ config: FunkaiConfig["prompts"],
57
+ fail: (msg: string) => never,
58
+ ): {
59
+ readonly out: string;
60
+ readonly includes: readonly string[];
61
+ readonly excludes: readonly string[];
62
+ readonly partials?: string;
63
+ readonly silent: boolean;
64
+ } {
65
+ const out = args.out ?? (config && config.out);
66
+ const includes = args.includes ?? (config && config.includes) ?? ["./**"];
67
+ const excludes = (config && config.excludes) ?? [];
68
+ const partials = args.partials ?? (config && config.partials);
69
+
70
+ if (!out) {
71
+ fail("Missing --out flag. Provide it via CLI or set prompts.out in funkai.config.ts.");
72
+ }
73
+
74
+ return { out, includes, excludes, partials, silent: args.silent };
75
+ }
76
+
43
77
  /**
44
78
  * Shared handler for prompts code generation.
45
79
  *
46
- * @param params - Handler context with args, logger, and fail callback.
80
+ * @param params - Handler context with args, config, logger, and fail callback.
47
81
  */
48
- export function handleGenerate({ args, logger, fail }: HandleGenerateParams): void {
49
- const { out, roots, partials, silent } = args;
82
+ export function handleGenerate({ args, config, logger, fail }: HandleGenerateParams): void {
83
+ const { out, includes, excludes, partials, silent } = resolveGenerateArgs(args, config, fail);
50
84
 
51
- const { discovered, lintResults, prompts } = runGeneratePipeline({ roots, out, partials });
85
+ const { discovered, lintResults, prompts } = runGeneratePipeline({
86
+ includes,
87
+ excludes,
88
+ out,
89
+ partials,
90
+ groups: config && config.groups,
91
+ });
52
92
 
53
93
  if (!silent) {
54
94
  logger.info(`Found ${discovered} prompt(s)`);
@@ -82,8 +122,9 @@ export function handleGenerate({ args, logger, fail }: HandleGenerateParams): vo
82
122
 
83
123
  for (const prompt of prompts) {
84
124
  const content = generatePromptModule(prompt);
125
+ const fileSlug = toFileSlug(prompt.name, prompt.group);
85
126
  // oxlint-disable-next-line security/detect-non-literal-fs-filename -- safe: writing generated module to output directory
86
- writeFileSync(resolve(outDir, `${prompt.name}.ts`), content, "utf8");
127
+ writeFileSync(resolve(outDir, `${fileSlug}.ts`), content, "utf8");
87
128
  }
88
129
 
89
130
  const registryContent = generateRegistry(prompts);
@@ -107,6 +148,12 @@ export default command({
107
148
  description: "Generate TypeScript modules from .prompt files",
108
149
  options: generateArgs,
109
150
  handler(ctx) {
110
- handleGenerate({ args: ctx.args, logger: ctx.logger, fail: ctx.fail });
151
+ const config = getConfig(ctx);
152
+ handleGenerate({
153
+ args: ctx.args,
154
+ config: config.prompts,
155
+ logger: ctx.logger,
156
+ fail: ctx.fail,
157
+ });
111
158
  },
112
159
  });
@@ -1,13 +1,15 @@
1
+ import type { FunkaiConfig } from "@funkai/config";
1
2
  import { command } from "@kidd-cli/core";
2
3
  import { match } from "ts-pattern";
3
4
  import { z } from "zod";
4
5
 
6
+ import { getConfig } from "@/config.js";
5
7
  import { hasLintErrors } from "@/lib/prompts/lint.js";
6
8
  import { runLintPipeline } from "@/lib/prompts/pipeline.js";
7
9
 
8
10
  /** Zod schema for the `prompts lint` CLI arguments. */
9
11
  export const lintArgs = z.object({
10
- roots: z.array(z.string()).describe("Root directories to scan for .prompt files"),
12
+ includes: z.array(z.string()).optional().describe("Glob patterns to scan for .prompt files"),
11
13
  partials: z.string().optional().describe("Custom partials directory"),
12
14
  silent: z.boolean().default(false).describe("Suppress output except errors"),
13
15
  });
@@ -20,10 +22,11 @@ export type LintArgs = z.infer<typeof lintArgs>;
20
22
  */
21
23
  export interface HandleLintParams {
22
24
  readonly args: {
23
- readonly roots: readonly string[];
25
+ readonly includes?: readonly string[];
24
26
  readonly partials?: string;
25
27
  readonly silent: boolean;
26
28
  };
29
+ readonly config?: FunkaiConfig["prompts"];
27
30
  readonly logger: {
28
31
  info: (msg: string) => void;
29
32
  error: (msg: string) => void;
@@ -32,15 +35,40 @@ export interface HandleLintParams {
32
35
  readonly fail: (msg: string) => never;
33
36
  }
34
37
 
38
+ /**
39
+ * Resolve lint args by merging CLI flags with config defaults.
40
+ *
41
+ * @param args - CLI arguments (take precedence).
42
+ * @param config - Prompts config from funkai.config.ts (fallback).
43
+ * @param fail - Error handler for missing required values.
44
+ * @returns Resolved args with required fields guaranteed.
45
+ */
46
+ function resolveLintArgs(
47
+ args: HandleLintParams["args"],
48
+ config: FunkaiConfig["prompts"],
49
+ _fail: (msg: string) => never,
50
+ ): {
51
+ readonly includes: readonly string[];
52
+ readonly excludes: readonly string[];
53
+ readonly partials?: string;
54
+ readonly silent: boolean;
55
+ } {
56
+ const includes = args.includes ?? (config && config.includes) ?? ["./**"];
57
+ const excludes = (config && config.excludes) ?? [];
58
+ const partials = args.partials ?? (config && config.partials);
59
+
60
+ return { includes, excludes, partials, silent: args.silent };
61
+ }
62
+
35
63
  /**
36
64
  * Shared handler for prompts lint/validation.
37
65
  *
38
- * @param params - Handler context with args, logger, and fail callback.
66
+ * @param params - Handler context with args, config, logger, and fail callback.
39
67
  */
40
- export function handleLint({ args, logger, fail }: HandleLintParams): void {
41
- const { roots, partials, silent } = args;
68
+ export function handleLint({ args, config, logger, fail }: HandleLintParams): void {
69
+ const { includes, excludes, partials, silent } = resolveLintArgs(args, config, fail);
42
70
 
43
- const { discovered, results } = runLintPipeline({ roots, partials });
71
+ const { discovered, results } = runLintPipeline({ includes, excludes, partials });
44
72
 
45
73
  if (!silent) {
46
74
  logger.info(`Linting ${discovered} prompt(s)...`);
@@ -80,6 +108,12 @@ export default command({
80
108
  description: "Validate .prompt files for schema/template mismatches",
81
109
  options: lintArgs,
82
110
  handler(ctx) {
83
- handleLint({ args: ctx.args, logger: ctx.logger, fail: ctx.fail });
111
+ const config = getConfig(ctx);
112
+ handleLint({
113
+ args: ctx.args,
114
+ config: config.prompts,
115
+ logger: ctx.logger,
116
+ fail: ctx.fail,
117
+ });
84
118
  },
85
119
  });
@@ -1,6 +1,7 @@
1
1
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
2
  import { resolve } from "node:path";
3
3
 
4
+ import type { Context } from "@kidd-cli/core";
4
5
  import { command } from "@kidd-cli/core";
5
6
 
6
7
  const VSCODE_DIR = ".vscode";
@@ -12,114 +13,121 @@ const GITIGNORE_ENTRY = ".prompts/client/";
12
13
  const PROMPTS_ALIAS = "~prompts";
13
14
  const PROMPTS_ALIAS_PATH = "./.prompts/client/index.ts";
14
15
 
15
- export default command({
16
- description: "Configure VSCode IDE settings for .prompt files",
17
- async handler(ctx) {
18
- ctx.logger.intro("Prompt SDK Project Setup");
19
-
20
- const shouldConfigure = await ctx.prompts.confirm({
21
- message: "Configure VSCode to treat .prompt files as Markdown with Liquid syntax?",
22
- initialValue: true,
23
- });
24
-
25
- if (shouldConfigure) {
26
- const vscodeDir = resolve(VSCODE_DIR);
27
- mkdirSync(vscodeDir, { recursive: true });
28
-
29
- const settingsPath = resolve(vscodeDir, SETTINGS_FILE);
30
- const settings = readJsonFile(settingsPath);
31
-
32
- const updatedSettings = {
33
- ...settings,
34
- "files.associations": {
35
- ...((settings["files.associations"] ?? {}) as Record<string, string>),
36
- "*.prompt": "markdown",
37
- },
38
- "liquid.engine": "standard",
39
- };
40
-
41
- writeFileSync(settingsPath, `${JSON.stringify(updatedSettings, null, 2)}\n`, "utf8");
42
- ctx.logger.success(`Updated ${settingsPath}`);
43
- }
16
+ /**
17
+ * Shared prompts setup logic used by both `funkai prompts setup` and `funkai setup`.
18
+ *
19
+ * @param ctx - The CLI context with prompts and logger.
20
+ */
21
+ export async function setupPrompts(ctx: Pick<Context, "prompts" | "logger">): Promise<void> {
22
+ const shouldConfigure = await ctx.prompts.confirm({
23
+ message: "Configure VSCode to treat .prompt files as Markdown with Liquid syntax?",
24
+ initialValue: true,
25
+ });
26
+
27
+ if (shouldConfigure) {
28
+ const vscodeDir = resolve(VSCODE_DIR);
29
+ mkdirSync(vscodeDir, { recursive: true });
30
+
31
+ const settingsPath = resolve(vscodeDir, SETTINGS_FILE);
32
+ const settings = readJsonFile(settingsPath);
33
+
34
+ const updatedSettings = {
35
+ ...settings,
36
+ "files.associations": {
37
+ ...((settings["files.associations"] ?? {}) as Record<string, string>),
38
+ "*.prompt": "markdown",
39
+ },
40
+ "liquid.engine": "standard",
41
+ };
42
+
43
+ writeFileSync(settingsPath, `${JSON.stringify(updatedSettings, null, 2)}\n`, "utf8");
44
+ ctx.logger.success(`Updated ${settingsPath}`);
45
+ }
44
46
 
45
- const shouldRecommend = await ctx.prompts.confirm({
46
- message: "Add Shopify Liquid extension to VSCode recommendations?",
47
- initialValue: true,
48
- });
47
+ const shouldRecommend = await ctx.prompts.confirm({
48
+ message: "Add Shopify Liquid extension to VSCode recommendations?",
49
+ initialValue: true,
50
+ });
49
51
 
50
- if (shouldRecommend) {
51
- const vscodeDir = resolve(VSCODE_DIR);
52
- mkdirSync(vscodeDir, { recursive: true });
52
+ if (shouldRecommend) {
53
+ const vscodeDir = resolve(VSCODE_DIR);
54
+ mkdirSync(vscodeDir, { recursive: true });
53
55
 
54
- const extensionsPath = resolve(vscodeDir, EXTENSIONS_FILE);
55
- const extensions = readJsonFile(extensionsPath);
56
+ const extensionsPath = resolve(vscodeDir, EXTENSIONS_FILE);
57
+ const extensions = readJsonFile(extensionsPath);
56
58
 
57
- const currentRecs = (extensions.recommendations ?? []) as string[];
58
- const extensionId = "sissel.shopify-liquid";
59
+ const currentRecs = (extensions.recommendations ?? []) as string[];
60
+ const extensionId = "sissel.shopify-liquid";
59
61
 
60
- const recommendations = ensureRecommendation(currentRecs, extensionId);
61
- const updatedExtensions = {
62
- ...extensions,
63
- recommendations,
64
- };
62
+ const recommendations = ensureRecommendation(currentRecs, extensionId);
63
+ const updatedExtensions = {
64
+ ...extensions,
65
+ recommendations,
66
+ };
65
67
 
66
- writeFileSync(extensionsPath, `${JSON.stringify(updatedExtensions, null, 2)}\n`, "utf8");
67
- ctx.logger.success(`Updated ${extensionsPath}`);
68
- }
68
+ writeFileSync(extensionsPath, `${JSON.stringify(updatedExtensions, null, 2)}\n`, "utf8");
69
+ ctx.logger.success(`Updated ${extensionsPath}`);
70
+ }
69
71
 
70
- const shouldGitignore = await ctx.prompts.confirm({
71
- message: "Add .prompts/client/ to .gitignore? (generated client should not be committed)",
72
- initialValue: true,
73
- });
74
-
75
- if (shouldGitignore) {
76
- const gitignorePath = resolve(GITIGNORE_FILE);
77
- const existing = readFileOrEmpty(gitignorePath);
78
-
79
- if (existing.includes(GITIGNORE_ENTRY)) {
80
- ctx.logger.info(`${GITIGNORE_ENTRY} already in ${gitignorePath}`);
81
- } else {
82
- const separator = trailingSeparator(existing);
83
- const block = `${separator}\n# Generated prompt client (created by \`funkai prompts generate\`)\n${GITIGNORE_ENTRY}\n`;
84
- writeFileSync(gitignorePath, `${existing}${block}`, "utf8");
85
- ctx.logger.success(`Added ${GITIGNORE_ENTRY} to ${gitignorePath}`);
86
- }
72
+ const shouldGitignore = await ctx.prompts.confirm({
73
+ message: "Add .prompts/client/ to .gitignore? (generated client should not be committed)",
74
+ initialValue: true,
75
+ });
76
+
77
+ if (shouldGitignore) {
78
+ const gitignorePath = resolve(GITIGNORE_FILE);
79
+ const existing = readFileOrEmpty(gitignorePath);
80
+
81
+ if (existing.includes(GITIGNORE_ENTRY)) {
82
+ ctx.logger.info(`${GITIGNORE_ENTRY} already in ${gitignorePath}`);
83
+ } else {
84
+ const separator = trailingSeparator(existing);
85
+ const block = `${separator}\n# Generated prompt client (created by \`funkai prompts generate\`)\n${GITIGNORE_ENTRY}\n`;
86
+ writeFileSync(gitignorePath, `${existing}${block}`, "utf8");
87
+ ctx.logger.success(`Added ${GITIGNORE_ENTRY} to ${gitignorePath}`);
87
88
  }
89
+ }
88
90
 
89
- const shouldTsconfig = await ctx.prompts.confirm({
90
- message: "Add ~prompts path alias to tsconfig.json?",
91
- initialValue: true,
92
- });
93
-
94
- if (shouldTsconfig) {
95
- const tsconfigPath = resolve(TSCONFIG_FILE);
96
- const tsconfig = readJsonFile(tsconfigPath);
97
-
98
- const compilerOptions = (tsconfig.compilerOptions ?? {}) as Record<string, unknown>;
99
- const existingPaths = (compilerOptions.paths ?? {}) as Record<string, string[]>;
100
-
101
- // oxlint-disable-next-line security/detect-object-injection -- safe: PROMPTS_ALIAS is a known constant string
102
- if (existingPaths[PROMPTS_ALIAS]) {
103
- ctx.logger.info(`${PROMPTS_ALIAS} alias already in ${tsconfigPath}`);
104
- } else {
105
- const updatedTsconfig = {
106
- ...tsconfig,
107
- compilerOptions: {
108
- ...compilerOptions,
109
- paths: {
110
- ...existingPaths,
111
- // oxlint-disable-next-line security/detect-object-injection -- safe: PROMPTS_ALIAS is a known constant string
112
- [PROMPTS_ALIAS]: [PROMPTS_ALIAS_PATH],
113
- },
91
+ const shouldTsconfig = await ctx.prompts.confirm({
92
+ message: "Add ~prompts path alias to tsconfig.json?",
93
+ initialValue: true,
94
+ });
95
+
96
+ if (shouldTsconfig) {
97
+ const tsconfigPath = resolve(TSCONFIG_FILE);
98
+ const tsconfig = readJsonFile(tsconfigPath);
99
+
100
+ const compilerOptions = (tsconfig.compilerOptions ?? {}) as Record<string, unknown>;
101
+ const existingPaths = (compilerOptions.paths ?? {}) as Record<string, string[]>;
102
+
103
+ // oxlint-disable-next-line security/detect-object-injection -- safe: PROMPTS_ALIAS is a known constant string
104
+ if (existingPaths[PROMPTS_ALIAS]) {
105
+ ctx.logger.info(`${PROMPTS_ALIAS} alias already in ${tsconfigPath}`);
106
+ } else {
107
+ const updatedTsconfig = {
108
+ ...tsconfig,
109
+ compilerOptions: {
110
+ ...compilerOptions,
111
+ paths: {
112
+ ...existingPaths,
113
+ // oxlint-disable-next-line security/detect-object-injection -- safe: PROMPTS_ALIAS is a known constant string
114
+ [PROMPTS_ALIAS]: [PROMPTS_ALIAS_PATH],
114
115
  },
115
- };
116
+ },
117
+ };
116
118
 
117
- writeFileSync(tsconfigPath, `${JSON.stringify(updatedTsconfig, null, 2)}\n`, "utf8");
118
- ctx.logger.success(`Added ${PROMPTS_ALIAS} alias to ${tsconfigPath}`);
119
- }
119
+ writeFileSync(tsconfigPath, `${JSON.stringify(updatedTsconfig, null, 2)}\n`, "utf8");
120
+ ctx.logger.success(`Added ${PROMPTS_ALIAS} alias to ${tsconfigPath}`);
120
121
  }
122
+ }
123
+ }
121
124
 
122
- ctx.logger.outro("Project setup complete.");
125
+ export default command({
126
+ description: "Configure VSCode IDE settings for .prompt files",
127
+ async handler(ctx) {
128
+ ctx.logger.intro("Prompt SDK — Project Setup");
129
+ await setupPrompts(ctx);
130
+ ctx.logger.outro("Prompts setup complete.");
123
131
  },
124
132
  });
125
133