nanoodle 0.5.0 → 0.5.1
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 +1 -1
- package/src/nodes.mjs +10 -0
- package/src/workflow.mjs +7 -1
package/package.json
CHANGED
package/src/nodes.mjs
CHANGED
|
@@ -193,6 +193,13 @@ function isValidCustomAir(air) {
|
|
|
193
193
|
// 400 FLUX.2/klein. Mirrors the app.
|
|
194
194
|
function airTakesNegative(air) { return !/^runware:(100|101|103|104|106|107|111|160|400)@/i.test(String(air || "")); }
|
|
195
195
|
|
|
196
|
+
// The NanoGPT catalog also lists AIR-style ids as DIRECT models (e.g. persona:376130@2456367) —
|
|
197
|
+
// same Runware path, same negative_prompt support, same FLUX gate.
|
|
198
|
+
function airModelTakesNegative(model) {
|
|
199
|
+
const m = String(model || "");
|
|
200
|
+
return /^(persona:|civitai:|runware:)/i.test(m) && airTakesNegative(m);
|
|
201
|
+
}
|
|
202
|
+
|
|
196
203
|
/** Per-call image extras: LoRA params + fixed seed (when numeric) + custom-civitai AIR. */
|
|
197
204
|
function imgExtra(n) {
|
|
198
205
|
const e = loraParams(n);
|
|
@@ -209,6 +216,9 @@ function imgExtra(n) {
|
|
|
209
216
|
// probe on persona:376130@2456367 confirmed negative_prompt reaches the sampler (2026-07-18)
|
|
210
217
|
const np = String(n.fields.negativePrompt || "").trim();
|
|
211
218
|
if (np && airTakesNegative(air)) e.negative_prompt = np;
|
|
219
|
+
} else if (airModelTakesNegative(n.fields.model)) {
|
|
220
|
+
const np = String(n.fields.negativePrompt || "").trim();
|
|
221
|
+
if (np) e.negative_prompt = np;
|
|
212
222
|
}
|
|
213
223
|
return e;
|
|
214
224
|
}
|
package/src/workflow.mjs
CHANGED
|
@@ -360,7 +360,13 @@ export class Workflow {
|
|
|
360
360
|
|
|
361
361
|
const failedSinks = this.outputs.filter((o) => nodesRec[o.nodeId] && nodesRec[o.nodeId].status === "error");
|
|
362
362
|
if (failedSinks.length) {
|
|
363
|
-
|
|
363
|
+
let detail = failedSinks.map((o) => `"${o.key}": ${nodesRec[o.nodeId].error}`).join("; ");
|
|
364
|
+
// "upstream failed: X" only names the sink's neighbor — name the node(s) that actually broke
|
|
365
|
+
const sinkIds = new Set(failedSinks.map((o) => o.nodeId));
|
|
366
|
+
const roots = errors.filter((e) => !sinkIds.has(e.nodeId) && !/^upstream failed: /.test(e.message));
|
|
367
|
+
if (roots.length) {
|
|
368
|
+
detail += ` (root cause — ${roots.map((e) => `"${e.name}": ${e.message}`).join("; ")})`;
|
|
369
|
+
}
|
|
364
370
|
throw new RunError("run failed — " + detail, result);
|
|
365
371
|
}
|
|
366
372
|
return result;
|