Skip to content

Commit

Permalink
Improved the repo structure for the examples II
Browse files Browse the repository at this point in the history
  • Loading branch information
karurochari committed Aug 17, 2024
1 parent 39649d7 commit 08909b0
Show file tree
Hide file tree
Showing 7 changed files with 53,527 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/run-full-job/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ComfyClient } from 'comfyui-bun-client'

console.log('Waiting for prompt 1 to submit')
{
const wf = await client.schedule_job({ ...(await import("./assets/workflow-a-reduced.json")).default, client_id: client.uid }, [], [{ from: 10, to: (x) => `./tmp/asset-${x}.png` }], {});
const wf = await client.schedule_job({ ...(await import("./workflows/reduced.json")).default, client_id: client.uid }, [], [{ from: 10, to: (x) => `./tmp/asset-${x}.png` }], {});
}
console.log('Prompt 1 done!')

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion workflows/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@interface.ts
/interface.ts
6 changes: 3 additions & 3 deletions workflows/scripts/gen-interface.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ComfyClient, ComfyJSONToTypescript } from '../../index'

import { ComfyClient, ComfyJSONToTypescript } from 'comfyui-bun-client'
import { join } from "node:path"

{
//Variable with a scope-contrained lifetime
using client = new ComfyClient(process.env.COMFY ?? 'localhost:8188', { debug: false })

await ComfyJSONToTypescript(client, './workflows/@interface.ts')
await ComfyJSONToTypescript(client, join(import.meta.dir, "../interface.ts"))

}
2 changes: 1 addition & 1 deletion workflows/src/base-gen.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Workflow, dyn } from "../@interface.ts"
import { Workflow, dyn } from "../interface.ts"
import type { Node } from "comfyui-bun-client"

export default async ({ model, positive, negative, fast, batch }: {
Expand Down
Loading

0 comments on commit 08909b0

Please sign in to comment.