image-skill 0.1.32 → 0.1.33

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/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ This changelog tracks the public `image-skill` CLI package and public skill
4
4
  mirror. The npm package metadata remains the authority for tarball integrity and
5
5
  provenance; this file is the human- and agent-readable release map.
6
6
 
7
+ ## 0.1.33 - 2026-06-04
8
+
9
+ - Fix (guide): public `create --guide` replay commands now preserve explicit
10
+ `--model`, `--provider`, `--intent`, and
11
+ `--max-estimated-usd-per-image` context in `after_next`, auth rerun, and
12
+ self-fund handoff commands. Modality-specific aliases can send an agent
13
+ through signup or quota recovery without silently falling back to the default
14
+ image guide.
15
+
7
16
  ## 0.1.32 - 2026-06-04
8
17
 
9
18
  - Fix (payments): public `create --guide` payment suggestions and
@@ -7,7 +7,7 @@ import { Readable } from "node:stream";
7
7
  import { pipeline } from "node:stream/promises";
8
8
  import os from "node:os";
9
9
 
10
- const VERSION = "0.1.32";
10
+ const VERSION = "0.1.33";
11
11
  const PACKAGE_NAME = "image-skill";
12
12
  const DEFAULT_API_BASE_URL = "https://api.image-skill.com";
13
13
  const DEFAULT_DOCS_BASE_URL = "https://image-skill.com";
@@ -1400,7 +1400,8 @@ async function createGuide(args) {
1400
1400
  const trimmedPrompt = prompt.trim();
1401
1401
  const requestedModelId = flagString(args, "model");
1402
1402
  const requestedProviderId = flagString(args, "provider");
1403
- const requestedIntent = flagString(args, "intent") ?? "explore";
1403
+ const requestedIntentFlag = flagString(args, "intent");
1404
+ const requestedIntent = requestedIntentFlag ?? "explore";
1404
1405
  const maxEstimatedUsdPerImage = flagNumber(
1405
1406
  args,
1406
1407
  "max-estimated-usd-per-image",
@@ -1494,6 +1495,9 @@ async function createGuide(args) {
1494
1495
  selected,
1495
1496
  requestedProviderId,
1496
1497
  requestedIntent,
1498
+ requestedIntentFlag,
1499
+ requestedModelId,
1500
+ maxEstimatedUsdPerImage,
1497
1501
  budgetGuard,
1498
1502
  aspectRatio: selectedAspectRatio,
1499
1503
  apiBaseUrl: explicitApiBaseUrl(args),
@@ -1506,6 +1510,9 @@ async function createGuide(args) {
1506
1510
  selected,
1507
1511
  requestedProviderId,
1508
1512
  requestedIntent,
1513
+ requestedIntentFlag,
1514
+ requestedModelId,
1515
+ maxEstimatedUsdPerImage,
1509
1516
  budgetGuard,
1510
1517
  aspectRatio: selectedAspectRatio,
1511
1518
  apiBaseUrl: explicitApiBaseUrl(args),
@@ -1545,6 +1552,12 @@ async function createGuide(args) {
1545
1552
  trimmedPrompt,
1546
1553
  explicitApiBaseUrl(args),
1547
1554
  guideCommandPrefix,
1555
+ {
1556
+ modelId: requestedModelId,
1557
+ providerId: requestedProviderId,
1558
+ intent: requestedIntentFlag,
1559
+ maxEstimatedUsdPerImage,
1560
+ },
1548
1561
  )
1549
1562
  : null;
1550
1563
  const authHandoff = createGuideAuthHandoff(stage, {
@@ -2567,7 +2580,12 @@ function createGuideWarning(stage, input) {
2567
2580
 
2568
2581
  function createGuideNextCommand(stage, input) {
2569
2582
  if (stage === "prompt_required") {
2570
- return renderGuideCommand("PROMPT", input.apiBaseUrl, input.commandPrefix);
2583
+ return renderGuideCommand("PROMPT", input.apiBaseUrl, input.commandPrefix, {
2584
+ modelId: input.requestedModelId,
2585
+ providerId: input.requestedProviderId,
2586
+ intent: input.requestedIntentFlag,
2587
+ maxEstimatedUsdPerImage: input.maxEstimatedUsdPerImage,
2588
+ });
2571
2589
  }
2572
2590
  if (stage === "no_executable_model" || stage === "service_unreachable") {
2573
2591
  return renderGuidePrefixedCommand(
@@ -2657,11 +2675,38 @@ function createGuideEscapeHatches(input) {
2657
2675
  };
2658
2676
  }
2659
2677
 
2660
- function renderGuideCommand(prompt, apiBaseUrl, commandPrefix = "image-skill") {
2678
+ function renderGuideCommand(
2679
+ prompt,
2680
+ apiBaseUrl,
2681
+ commandPrefix = "image-skill",
2682
+ options = {},
2683
+ ) {
2661
2684
  return [
2662
2685
  commandPrefix,
2663
2686
  "create --guide --prompt",
2664
2687
  shellQuote(prompt),
2688
+ ...(options.modelId === null ||
2689
+ options.modelId === undefined ||
2690
+ options.modelId === ""
2691
+ ? []
2692
+ : ["--model", shellQuote(options.modelId)]),
2693
+ ...(options.providerId === null ||
2694
+ options.providerId === undefined ||
2695
+ options.providerId === ""
2696
+ ? []
2697
+ : ["--provider", shellQuote(options.providerId)]),
2698
+ ...(options.intent === null ||
2699
+ options.intent === undefined ||
2700
+ options.intent === ""
2701
+ ? []
2702
+ : ["--intent", shellQuote(options.intent)]),
2703
+ ...(options.maxEstimatedUsdPerImage === null ||
2704
+ options.maxEstimatedUsdPerImage === undefined
2705
+ ? []
2706
+ : [
2707
+ "--max-estimated-usd-per-image",
2708
+ shellQuote(formatUsd(options.maxEstimatedUsdPerImage)),
2709
+ ]),
2665
2710
  ...(apiBaseUrl === null ? [] : ["--api-base-url", shellQuote(apiBaseUrl)]),
2666
2711
  "--json",
2667
2712
  ].join(" ");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "image-skill",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "Zero-setup durable creative-media CLI for agents (image + video + audio + 3D): guide-first creation, model and cost inspection, owned URLs, JSON recovery, payments, reusable assets, and feedback.",
5
5
  "type": "module",
6
6
  "private": false,