Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41b72c45a8 | ||
|
|
0fdd9276ac | ||
|
|
ab02676118 | ||
|
|
3c2412952f | ||
|
|
7c831e17dd | ||
|
|
cbf44f350c | ||
|
|
cfa473e1dc | ||
|
|
f9f6a245b6 | ||
|
|
018d925e09 |
@@ -0,0 +1,25 @@
|
||||
name: Publish to Comfy registry
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "pyproject.toml"
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
publish-node:
|
||||
name: Publish Custom Node to registry
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'DigitalIO' }}
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
- name: Publish Custom Node
|
||||
uses: Comfy-Org/publish-node-action@v1
|
||||
with:
|
||||
## Add your own personal access token to your Github Repository secrets and reference it here.
|
||||
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||
+24
-19
@@ -70,30 +70,35 @@ function stableWildcardNodeCreated(node, app) {
|
||||
false
|
||||
);
|
||||
|
||||
// TRIAGE: The below code was commented out due to breaking fundamental behavior
|
||||
// in ComfyUI in later versions.
|
||||
// Fixing/finding an alternative to the proxy will be necessary in order to
|
||||
// re-enable updating the node title.
|
||||
|
||||
// The seed widget does not offer a change callback.
|
||||
// Instead proxy the widget and hook the set function
|
||||
node.widgets[1] = new Proxy(node.widgets[1], {
|
||||
set(target, p, newValue, receiver) {
|
||||
// node.widgets[1] = new Proxy(node.widgets[1], {
|
||||
// set(target, p, newValue, receiver) {
|
||||
|
||||
// We are now responsible for all updates
|
||||
target[p] = newValue;
|
||||
// // We are now responsible for all updates
|
||||
// target[p] = newValue;
|
||||
|
||||
// If the property updated was the value (thats the seed we care about)
|
||||
if (p === 'value') {
|
||||
// Using the UI slider to change the seed can call this function
|
||||
// hundreds of times per second. We don't want to send a server request for
|
||||
// every update, so only update once the value has stoped changing
|
||||
if (lastCall) {
|
||||
clearTimeout(lastCall);
|
||||
}
|
||||
// // If the property updated was the value (thats the seed we care about)
|
||||
// if (p === 'value') {
|
||||
// // Using the UI slider to change the seed can call this function
|
||||
// // hundreds of times per second. We don't want to send a server request for
|
||||
// // every update, so only update once the value has stoped changing
|
||||
// if (lastCall) {
|
||||
// clearTimeout(lastCall);
|
||||
// }
|
||||
|
||||
lastCall = setTimeout(updateTitle.bind(null, node), 250);
|
||||
}
|
||||
// lastCall = setTimeout(updateTitle.bind(null, node), 250);
|
||||
// }
|
||||
|
||||
// Return true for no issues
|
||||
return true;
|
||||
}
|
||||
});
|
||||
// // Return true for no issues
|
||||
// return true;
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
// Create the Stable Wildcard extension
|
||||
@@ -114,4 +119,4 @@ const StableWildcardsExtension = {
|
||||
}
|
||||
|
||||
// Register app
|
||||
app.registerExtension(StableWildcardsExtension);
|
||||
app.registerExtension(StableWildcardsExtension);
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
[project]
|
||||
name = "comfyui-stable-wildcards"
|
||||
description = "Wildcard implementation that can be reproduced with workflows."
|
||||
version = "1.1.3"
|
||||
license = { text = "MIT License" }
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/DigitalIO/ComfyUI-stable-wildcards"
|
||||
# Used by Comfy Registry https://comfyregistry.org
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = "digitalio"
|
||||
DisplayName = "ComfyUI-stable-wildcards"
|
||||
Icon = ""
|
||||
Reference in New Issue
Block a user