image-skill 0.1.52 → 0.1.54
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 +19 -0
- package/bin/image-skill.mjs +41 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ 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.54 - 2026-06-16
|
|
8
|
+
|
|
9
|
+
- Release (activation/self-fund): add explicit `urgency`,
|
|
10
|
+
`urgency_score`, and `urgency_reasons` to quota top-up data and
|
|
11
|
+
`data.next_actions.self_fund`, so activated agents can distinguish
|
|
12
|
+
browserless top-up availability from near-wall or blocked top-up urgency
|
|
13
|
+
without reverse-engineering recommendation reasons. No payment caps, auth
|
|
14
|
+
semantics, provider routing, wallet action, provider spend, media spend,
|
|
15
|
+
hosted deploy, or production write changed in this release bump.
|
|
16
|
+
|
|
17
|
+
## 0.1.53 - 2026-06-16
|
|
18
|
+
|
|
19
|
+
- Release (activation): align `create --guide` `auth_required` blocker copy
|
|
20
|
+
with anonymous signup semantics. Fresh agents are told to sign up once, with
|
|
21
|
+
`--agent-contact` optional and attachable later, instead of implying that a
|
|
22
|
+
durable contact inbox is required before hosted media creation. No auth
|
|
23
|
+
semantics, token storage, payment caps, provider routing, provider spend,
|
|
24
|
+
media spend, hosted deploy, or production write changed in this release bump.
|
|
25
|
+
|
|
7
26
|
## 0.1.52 - 2026-06-16
|
|
8
27
|
|
|
9
28
|
- Release (activation/self-fund): publish the quota
|
package/bin/image-skill.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { Readable } from "node:stream";
|
|
|
15
15
|
import { pipeline } from "node:stream/promises";
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
|
|
18
|
-
const VERSION = "0.1.
|
|
18
|
+
const VERSION = "0.1.54";
|
|
19
19
|
const PACKAGE_NAME = "image-skill";
|
|
20
20
|
const DEFAULT_API_BASE_URL = "https://api.image-skill.com";
|
|
21
21
|
const DEFAULT_DOCS_BASE_URL = "https://image-skill.com";
|
|
@@ -2776,7 +2776,7 @@ function createGuideBlocker(stage, input) {
|
|
|
2776
2776
|
return {
|
|
2777
2777
|
code: "auth_required",
|
|
2778
2778
|
message:
|
|
2779
|
-
"Sign up once
|
|
2779
|
+
"Sign up once before creating hosted media; --agent-contact is optional and can be attached later.",
|
|
2780
2780
|
};
|
|
2781
2781
|
}
|
|
2782
2782
|
if (stage === "quota_required") {
|
|
@@ -6132,6 +6132,7 @@ function quotaTopUpNextActions(topUp) {
|
|
|
6132
6132
|
available: true,
|
|
6133
6133
|
recommended: topUp.recommended === true,
|
|
6134
6134
|
recommendation_reason: topUp.recommendation_reason ?? "available",
|
|
6135
|
+
...quotaTopUpUrgencyFields(topUp),
|
|
6135
6136
|
path: topUp.path,
|
|
6136
6137
|
first_safe_command: commands.inspect_methods,
|
|
6137
6138
|
first_safe_command_effect: {
|
|
@@ -6162,6 +6163,44 @@ function quotaTopUpNextActions(topUp) {
|
|
|
6162
6163
|
};
|
|
6163
6164
|
}
|
|
6164
6165
|
|
|
6166
|
+
function quotaTopUpUrgencyFields(topUp) {
|
|
6167
|
+
const reason = topUp?.recommendation_reason ?? "available";
|
|
6168
|
+
const fallback = quotaTopUpUrgencyFromReason(reason);
|
|
6169
|
+
const urgency =
|
|
6170
|
+
typeof topUp?.urgency === "string" && topUp.urgency.length > 0
|
|
6171
|
+
? topUp.urgency
|
|
6172
|
+
: fallback.urgency;
|
|
6173
|
+
const urgencyScore =
|
|
6174
|
+
typeof topUp?.urgency_score === "number"
|
|
6175
|
+
? topUp.urgency_score
|
|
6176
|
+
: fallback.score;
|
|
6177
|
+
const urgencyReasons = Array.isArray(topUp?.urgency_reasons)
|
|
6178
|
+
? topUp.urgency_reasons
|
|
6179
|
+
.filter((entry) => typeof entry === "string" && entry.length > 0)
|
|
6180
|
+
.map((entry) => entry)
|
|
6181
|
+
: reason === "available"
|
|
6182
|
+
? []
|
|
6183
|
+
: [reason];
|
|
6184
|
+
return {
|
|
6185
|
+
urgency,
|
|
6186
|
+
urgency_score: urgencyScore,
|
|
6187
|
+
urgency_reasons: urgencyReasons,
|
|
6188
|
+
};
|
|
6189
|
+
}
|
|
6190
|
+
|
|
6191
|
+
function quotaTopUpUrgencyFromReason(reason) {
|
|
6192
|
+
if (reason === "credits_depleted" || reason === "daily_job_cap_reached") {
|
|
6193
|
+
return { urgency: "blocked", score: 100 };
|
|
6194
|
+
}
|
|
6195
|
+
if (reason === "low_remaining_credits") {
|
|
6196
|
+
return { urgency: "near_wall", score: 80 };
|
|
6197
|
+
}
|
|
6198
|
+
if (reason === "self_fund_setup_missing") {
|
|
6199
|
+
return { urgency: "setup_recommended", score: 60 };
|
|
6200
|
+
}
|
|
6201
|
+
return { urgency: "available", score: 0 };
|
|
6202
|
+
}
|
|
6203
|
+
|
|
6165
6204
|
function failure(command, exitCode, code, message, retryable, recovery) {
|
|
6166
6205
|
return {
|
|
6167
6206
|
exitCode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "image-skill",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
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,
|