Compare commits

..
1 Commits
Author SHA1 Message Date
Ivor StrelarandClaude Opus 5 292abd93d8 fix: drop the HTTP endpoint that left 1.0.8 pending registry review
1.0.8 registered a ComfyUI server route to power a Refresh button, which
put that version into NodeVersionStatusPending and blocked installs. The
route only ever supplied a pre-run preview of the pending count; IS_CHANGED
already forces a fresh read of the sheet on every run, so removing it costs
no functionality.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 13:35:40 +02:00
4 changed files with 5 additions and 107 deletions
+2 -2
View File
@@ -177,8 +177,8 @@ and skips row 2. Each prompt triggers a separate pass through the downstream gra
- **Marking is manual.** Type anything into the status column — `done`, `x`, `executed` — and that
row is skipped next time. Clear the cell and it gets queued again.
- **Scanning stops at the first empty prompt cell**, so anything below a gap is ignored.
- **Refresh sheet** re-reads the sheet after you've edited it in the browser and reports how many
prompts are still pending.
- **The sheet is re-read on every run**, so edits you make in the browser are picked up
automatically. Add rows or clear status cells and just hit Run again.
---
+2 -29
View File
@@ -156,8 +156,8 @@ A row is treated as finished when its **status_col** cell contains any text at
all. Write `done` next to a prompt in the sheet and the next run skips it; clear
the cell and it gets queued again. Scanning stops at the first empty prompt cell.
Press **Refresh sheet** after editing the sheet in your browser to see the
updated counts.
The sheet is re-read fresh on every run, so edits you make in the browser are
picked up automatically — there is nothing to refresh by hand.
"""
@classmethod
@@ -197,30 +197,3 @@ updated counts.
NODE_CLASS_MAPPINGS = {"SFGoogleSheetPromptQueue": SFGoogleSheetPromptQueue}
NODE_DISPLAY_NAME_MAPPINGS = {"SFGoogleSheetPromptQueue": "SF Google Sheet Prompt Queue"}
# --- Server route backing the node's Refresh button ---------------------------
try:
from aiohttp import web
from server import PromptServer
@PromptServer.instance.routes.post("/sf_gsheet/preview")
async def _preview(request):
body = await request.json()
try:
rows = fetch_rows(body.get("url", ""), body.get("sheet_gid", "0"))
pending, total = scan_rows(
rows,
col_letter_to_index(body.get("prompt_col", "A")),
col_letter_to_index(body.get("status_col", "B")),
bool(body.get("skip_first_row", True)),
)
return web.json_response(
{"ok": True, "total": total, "pending": len(pending)}
)
except Exception as e:
return web.json_response({"ok": False, "error": str(e)})
except ImportError:
pass
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-sf-nodes"
description = "Custom nodes for ComfyUI including LLM Chat with support for Claude, Gemini, and OpenAI models, WaveSpeed AI image/video generation, VertexAI integration, and workflow utilities"
version = "1.0.8"
version = "1.0.9"
license = { file = "LICENSE" }
dependencies = [
"requests>=2.31.0",
-75
View File
@@ -1,75 +0,0 @@
/**
* SF Google Sheet Prompt Queue — adds a Refresh button that re-reads the sheet
* and reports how many prompts are still waiting to run.
*/
import { app } from "../../../scripts/app.js";
import { api } from "../../../scripts/api.js";
const NODE_NAME = "SFGoogleSheetPromptQueue";
function widgetValue(node, name, fallback) {
const widget = node.widgets?.find((w) => w.name === name);
return widget ? widget.value : fallback;
}
app.registerExtension({
name: "Stillfront.GoogleSheetPromptQueue",
async beforeRegisterNodeDef(nodeType, nodeData) {
if (nodeData.name !== NODE_NAME) {
return;
}
const onNodeCreated = nodeType.prototype.onNodeCreated;
nodeType.prototype.onNodeCreated = function () {
const result = onNodeCreated ? onNodeCreated.apply(this, arguments) : undefined;
const node = this;
const status = node.addWidget("text", "", "Press Refresh to read the sheet", () => {});
status.disabled = true;
status.serialize = false;
const setStatus = (text) => {
status.value = text;
node.setDirtyCanvas(true, false);
};
const refreshButton = node.addWidget("button", "Refresh sheet", null, async () => {
setStatus("Reading sheet…");
try {
const response = await api.fetchApi("/sf_gsheet/preview", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
url: widgetValue(node, "url", ""),
sheet_gid: widgetValue(node, "sheet_gid", "0"),
prompt_col: widgetValue(node, "prompt_col", "A"),
status_col: widgetValue(node, "status_col", "B"),
skip_first_row: widgetValue(node, "skip_first_row", true),
}),
});
const data = await response.json();
if (!data.ok) {
setStatus(`Error: ${data.error}`);
return;
}
const cap = widgetValue(node, "max_rows", 10);
const willSend = Math.min(data.pending, cap);
setStatus(
data.pending === 0
? `Nothing pending — all ${data.total} prompt(s) marked`
: `${data.pending} pending of ${data.total} — next run sends ${willSend}`
);
} catch (e) {
setStatus("Could not reach ComfyUI server");
}
});
refreshButton.serialize = false;
return result;
};
},
});