@takisvc/code-canvas 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/code-canvas.js +29 -24
  2. package/package.json +1 -1
@@ -9,6 +9,31 @@ import { homedir } from "os";
9
9
  import { join } from "path";
10
10
  import ora from "ora";
11
11
  import chalk from "chalk";
12
+ var PROMPT = `You have access to an AI image generation tool. **Auto-run immediately \u2014 do NOT ask for a prompt.**
13
+
14
+ 1. Scan the conversation \u2014 the codebase, language, framework, session activity, AND the developer's personality, tone, and energy.
15
+ 2. Craft a prompt for a **single collectible stat card image** with this layout:
16
+ - **Top half**: A single cute/funny creature (simple, clean, centered \u2014 think mascot, not busy scene). The creature should reflect the developer's vibe or tech stack.
17
+ - **Bottom half**: Stats and text on a clean card background:
18
+ - Character name (funny, personality-driven)
19
+ - HP, Type/Element
20
+ - 2 abilities with short descriptions (based on personality traits, habits, and tone \u2014 NOT specific code features)
21
+ - A one-liner tagline/quote that sounds like something they'd actually say
22
+ - Weakness + Resistance at the bottom
23
+ - **Holographic rainbow border** around the whole card
24
+ - Keep the illustration **simple and uncluttered** \u2014 the creature should be the focus, not a complex scene
25
+ - **Generate exactly one card, not multiple variations**
26
+ 3. Run immediately:
27
+ \`\`\`
28
+ npx @takisvc/code-canvas "<your card prompt>"
29
+ \`\`\`
30
+ 4. Show the saved file path and share-on-X link from the output.
31
+
32
+ If the CLI says the agent is not registered, tell the user to run this in their own terminal (they need to see the QR code):
33
+ \`\`\`
34
+ npx @takisvc/code-canvas setup
35
+ \`\`\`
36
+ Then re-run the image generation.`;
12
37
  function ensureWallet() {
13
38
  const dir = join(homedir(), ".code-canvas");
14
39
  const keyPath = join(dir, "key");
@@ -257,27 +282,7 @@ function runSetup(account2) {
257
282
  console.log();
258
283
  console.log(chalk.bold("Add this prompt to your AI coding assistant:"));
259
284
  console.log();
260
- console.log(chalk.cyan([
261
- "You have access to an AI image generation tool. **Auto-run immediately \u2014 do NOT ask for a prompt.**",
262
- "",
263
- "1. Scan the conversation \u2014 the codebase, language, framework, session activity, AND the developer's personality, tone, and energy.",
264
- "2. Craft a prompt for a **single collectible stat card image** with this layout:",
265
- " - **Top half**: A single cute/funny creature (simple, clean, centered \u2014 think mascot, not busy scene). The creature should reflect the developer's vibe or tech stack.",
266
- " - **Bottom half**: Stats and text on a clean card background:",
267
- " - Character name (funny, personality-driven)",
268
- " - HP, Type/Element",
269
- " - 2 abilities with short descriptions (based on personality traits, habits, and tone \u2014 NOT specific code features)",
270
- " - A one-liner tagline/quote that sounds like something they'd actually say",
271
- " - Weakness + Resistance at the bottom",
272
- " - **Holographic rainbow border** around the whole card",
273
- " - Keep the illustration **simple and uncluttered** \u2014 the creature should be the focus, not a complex scene",
274
- " - **Generate exactly one card, not multiple variations**",
275
- "3. Run immediately:",
276
- " ```",
277
- ' npx @takisvc/code-canvas "<your card prompt>"',
278
- " ```",
279
- "4. Show the saved file path and share-on-X link from the output."
280
- ].join("\n")));
285
+ console.log(chalk.cyan(PROMPT));
281
286
  console.log();
282
287
  console.log(chalk.dim("\u2500".repeat(60)));
283
288
  return true;
@@ -298,9 +303,9 @@ if (!command) {
298
303
  ` ${chalk.bold('code-canvas "<prompt>"')} Generate an image`
299
304
  );
300
305
  console.log();
301
- console.log("Examples:");
302
- console.log(' code-canvas "a cat riding a skateboard"');
303
- console.log(' code-canvas "cyberpunk city at sunset"');
306
+ console.log(
307
+ `Best used with an AI coding assistant \u2014 add the prompt from PROMPT.md to your tool config.`
308
+ );
304
309
  process.exit(1);
305
310
  }
306
311
  var account = ensureWallet();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takisvc/code-canvas",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "code-canvas": "./dist/code-canvas.js"