@soederpop/luca 0.0.11 → 0.0.14
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 +8 -3
- package/src/agi/features/claude-code.ts +7 -0
- package/src/bootstrap/generated.ts +1 -1
- package/src/commands/prompt.ts +3 -0
- package/src/introspection/generated.agi.ts +1002 -986
- package/src/introspection/generated.node.ts +469 -469
- package/src/introspection/generated.web.ts +1 -1
- package/src/scaffolds/generated.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setBuildTimeData, setContainerBuildTimeData } from './index.js';
|
|
2
2
|
|
|
3
3
|
// Auto-generated introspection registry data
|
|
4
|
-
// Generated at: 2026-03-
|
|
4
|
+
// Generated at: 2026-03-20T03:57:55.838Z
|
|
5
5
|
|
|
6
6
|
setBuildTimeData('features.googleDocs', {
|
|
7
7
|
"id": "features.googleDocs",
|
|
@@ -9519,198 +9519,270 @@ setBuildTimeData('clients.websocket', {
|
|
|
9519
9519
|
]
|
|
9520
9520
|
});
|
|
9521
9521
|
|
|
9522
|
-
setBuildTimeData('clients.
|
|
9523
|
-
"id": "clients.
|
|
9524
|
-
"description": "
|
|
9525
|
-
"shortcut": "clients.
|
|
9526
|
-
"className": "
|
|
9522
|
+
setBuildTimeData('clients.openai', {
|
|
9523
|
+
"id": "clients.openai",
|
|
9524
|
+
"description": "OpenAI client — wraps the OpenAI SDK for chat completions, responses API, embeddings, and image generation. Provides convenience methods for common operations while tracking token usage and request counts. Supports both the Chat Completions API and the newer Responses API.",
|
|
9525
|
+
"shortcut": "clients.openai",
|
|
9526
|
+
"className": "OpenAIClient",
|
|
9527
9527
|
"methods": {
|
|
9528
|
-
"
|
|
9529
|
-
"description": "
|
|
9528
|
+
"connect": {
|
|
9529
|
+
"description": "Test the API connection by listing models.",
|
|
9530
|
+
"parameters": {},
|
|
9531
|
+
"required": [],
|
|
9532
|
+
"returns": "Promise<this>",
|
|
9533
|
+
"examples": [
|
|
9534
|
+
{
|
|
9535
|
+
"language": "ts",
|
|
9536
|
+
"code": "await openai.connect()"
|
|
9537
|
+
}
|
|
9538
|
+
]
|
|
9539
|
+
},
|
|
9540
|
+
"createChatCompletion": {
|
|
9541
|
+
"description": "Create a chat completion using the Chat Completions API.",
|
|
9530
9542
|
"parameters": {
|
|
9531
|
-
"
|
|
9532
|
-
"type": "
|
|
9533
|
-
"description": "
|
|
9543
|
+
"messages": {
|
|
9544
|
+
"type": "OpenAI.Chat.Completions.ChatCompletionMessageParam[]",
|
|
9545
|
+
"description": "Array of chat messages"
|
|
9546
|
+
},
|
|
9547
|
+
"options": {
|
|
9548
|
+
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
9549
|
+
"description": "Additional parameters for the completion"
|
|
9534
9550
|
}
|
|
9535
9551
|
},
|
|
9536
9552
|
"required": [
|
|
9537
|
-
"
|
|
9553
|
+
"messages"
|
|
9538
9554
|
],
|
|
9539
|
-
"returns": "
|
|
9555
|
+
"returns": "Promise<OpenAI.Chat.Completions.ChatCompletion>",
|
|
9556
|
+
"examples": [
|
|
9557
|
+
{
|
|
9558
|
+
"language": "ts",
|
|
9559
|
+
"code": "const response = await openai.createChatCompletion([\n { role: 'system', content: 'You are a helpful assistant.' },\n { role: 'user', content: 'Hello!' }\n])\nconsole.log(response.choices[0]?.message?.content)"
|
|
9560
|
+
}
|
|
9561
|
+
]
|
|
9540
9562
|
},
|
|
9541
|
-
"
|
|
9542
|
-
"description": "
|
|
9563
|
+
"createResponse": {
|
|
9564
|
+
"description": "Create a response using the Responses API.",
|
|
9543
9565
|
"parameters": {
|
|
9544
|
-
"
|
|
9545
|
-
"type": "string",
|
|
9546
|
-
"description": "The
|
|
9547
|
-
},
|
|
9548
|
-
"params": {
|
|
9549
|
-
"type": "Record<string, unknown>",
|
|
9550
|
-
"description": "Arguments to pass to the function"
|
|
9566
|
+
"input": {
|
|
9567
|
+
"type": "OpenAI.Responses.ResponseInput | string",
|
|
9568
|
+
"description": "The input prompt or message array"
|
|
9551
9569
|
},
|
|
9552
9570
|
"options": {
|
|
9553
|
-
"type": "
|
|
9554
|
-
"description": "
|
|
9571
|
+
"type": "Partial<OpenAI.Responses.ResponseCreateParamsNonStreaming>",
|
|
9572
|
+
"description": "Additional parameters for the response"
|
|
9555
9573
|
}
|
|
9556
9574
|
},
|
|
9557
9575
|
"required": [
|
|
9558
|
-
"
|
|
9576
|
+
"input"
|
|
9559
9577
|
],
|
|
9560
|
-
"returns": "
|
|
9578
|
+
"returns": "Promise<OpenAI.Responses.Response>",
|
|
9579
|
+
"examples": [
|
|
9580
|
+
{
|
|
9581
|
+
"language": "ts",
|
|
9582
|
+
"code": "const response = await openai.createResponse('Explain quantum computing')"
|
|
9583
|
+
}
|
|
9584
|
+
]
|
|
9561
9585
|
},
|
|
9562
|
-
"
|
|
9563
|
-
"description": "
|
|
9586
|
+
"streamResponse": {
|
|
9587
|
+
"description": "Stream a response using the Responses API.",
|
|
9564
9588
|
"parameters": {
|
|
9565
|
-
"
|
|
9566
|
-
"type": "string",
|
|
9567
|
-
"description": "
|
|
9589
|
+
"input": {
|
|
9590
|
+
"type": "OpenAI.Responses.ResponseInput | string",
|
|
9591
|
+
"description": "The input prompt or message array"
|
|
9568
9592
|
},
|
|
9569
|
-
"
|
|
9570
|
-
"type": "
|
|
9571
|
-
"description": "
|
|
9593
|
+
"options": {
|
|
9594
|
+
"type": "Partial<OpenAI.Responses.ResponseCreateParamsStreaming>",
|
|
9595
|
+
"description": "Additional parameters for the streaming response"
|
|
9572
9596
|
}
|
|
9573
9597
|
},
|
|
9574
9598
|
"required": [
|
|
9575
|
-
"
|
|
9576
|
-
"password"
|
|
9599
|
+
"input"
|
|
9577
9600
|
],
|
|
9578
|
-
"returns": "
|
|
9601
|
+
"returns": "Promise<AsyncIterable<OpenAI.Responses.ResponseStreamEvent>>",
|
|
9602
|
+
"examples": [
|
|
9603
|
+
{
|
|
9604
|
+
"language": "ts",
|
|
9605
|
+
"code": "const stream = await openai.streamResponse('Write a poem')\nfor await (const event of stream) {\n if (event.type === 'response.output_text.delta') {\n process.stdout.write(event.delta)\n }\n}"
|
|
9606
|
+
}
|
|
9607
|
+
]
|
|
9579
9608
|
},
|
|
9580
|
-
"
|
|
9581
|
-
"description": "Create a
|
|
9609
|
+
"createCompletion": {
|
|
9610
|
+
"description": "Create a legacy text completion.",
|
|
9582
9611
|
"parameters": {
|
|
9583
|
-
"
|
|
9612
|
+
"prompt": {
|
|
9584
9613
|
"type": "string",
|
|
9585
|
-
"description": "
|
|
9614
|
+
"description": "The text prompt to complete"
|
|
9586
9615
|
},
|
|
9587
|
-
"
|
|
9588
|
-
"type": "
|
|
9589
|
-
"description": "
|
|
9616
|
+
"options": {
|
|
9617
|
+
"type": "Partial<OpenAI.Completions.CompletionCreateParams>",
|
|
9618
|
+
"description": "Additional parameters for the completion"
|
|
9590
9619
|
}
|
|
9591
9620
|
},
|
|
9592
9621
|
"required": [
|
|
9593
|
-
"
|
|
9594
|
-
"password"
|
|
9622
|
+
"prompt"
|
|
9595
9623
|
],
|
|
9596
|
-
"returns": "
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
},
|
|
9604
|
-
"getSession": {
|
|
9605
|
-
"description": "Get the current session, if any.",
|
|
9606
|
-
"parameters": {},
|
|
9607
|
-
"required": [],
|
|
9608
|
-
"returns": "void"
|
|
9609
|
-
},
|
|
9610
|
-
"getUser": {
|
|
9611
|
-
"description": "Get the current user, if any.",
|
|
9612
|
-
"parameters": {},
|
|
9613
|
-
"required": [],
|
|
9614
|
-
"returns": "void"
|
|
9624
|
+
"returns": "Promise<OpenAI.Completions.Completion>",
|
|
9625
|
+
"examples": [
|
|
9626
|
+
{
|
|
9627
|
+
"language": "ts",
|
|
9628
|
+
"code": "const response = await openai.createCompletion('Once upon a time')"
|
|
9629
|
+
}
|
|
9630
|
+
]
|
|
9615
9631
|
},
|
|
9616
|
-
"
|
|
9617
|
-
"description": "
|
|
9632
|
+
"createEmbedding": {
|
|
9633
|
+
"description": "Create text embeddings for semantic search or similarity comparisons.",
|
|
9618
9634
|
"parameters": {
|
|
9619
|
-
"
|
|
9620
|
-
"type": "string",
|
|
9621
|
-
"description": "
|
|
9635
|
+
"input": {
|
|
9636
|
+
"type": "string | string[]",
|
|
9637
|
+
"description": "A string or array of strings to embed"
|
|
9622
9638
|
},
|
|
9623
|
-
"
|
|
9624
|
-
"type": "
|
|
9625
|
-
"description": "
|
|
9639
|
+
"options": {
|
|
9640
|
+
"type": "Partial<OpenAI.Embeddings.EmbeddingCreateParams>",
|
|
9641
|
+
"description": "Additional parameters (model, etc.)"
|
|
9626
9642
|
}
|
|
9627
9643
|
},
|
|
9628
9644
|
"required": [
|
|
9629
|
-
"
|
|
9645
|
+
"input"
|
|
9630
9646
|
],
|
|
9631
|
-
"returns": "
|
|
9647
|
+
"returns": "Promise<OpenAI.Embeddings.CreateEmbeddingResponse>",
|
|
9648
|
+
"examples": [
|
|
9649
|
+
{
|
|
9650
|
+
"language": "ts",
|
|
9651
|
+
"code": "const response = await openai.createEmbedding('Hello world')\nconsole.log(response.data[0].embedding.length)"
|
|
9652
|
+
}
|
|
9653
|
+
]
|
|
9632
9654
|
},
|
|
9633
|
-
"
|
|
9634
|
-
"description": "
|
|
9655
|
+
"createImage": {
|
|
9656
|
+
"description": "Generate an image from a text prompt using DALL-E.",
|
|
9635
9657
|
"parameters": {
|
|
9636
|
-
"
|
|
9637
|
-
"type": "string",
|
|
9638
|
-
"description": "A name for this subscription channel"
|
|
9639
|
-
},
|
|
9640
|
-
"table": {
|
|
9658
|
+
"prompt": {
|
|
9641
9659
|
"type": "string",
|
|
9642
|
-
"description": "
|
|
9643
|
-
},
|
|
9644
|
-
"callback": {
|
|
9645
|
-
"type": "(payload: any) => void",
|
|
9646
|
-
"description": "Called with the payload on each change"
|
|
9660
|
+
"description": "Description of the image to generate"
|
|
9647
9661
|
},
|
|
9648
|
-
"
|
|
9649
|
-
"type": "
|
|
9650
|
-
"description": "
|
|
9662
|
+
"options": {
|
|
9663
|
+
"type": "Partial<OpenAI.Images.ImageGenerateParams>",
|
|
9664
|
+
"description": "Additional parameters (size, n, etc.)"
|
|
9651
9665
|
}
|
|
9652
9666
|
},
|
|
9653
9667
|
"required": [
|
|
9654
|
-
"
|
|
9655
|
-
"table",
|
|
9656
|
-
"callback"
|
|
9668
|
+
"prompt"
|
|
9657
9669
|
],
|
|
9658
|
-
"returns": "
|
|
9670
|
+
"returns": "Promise<OpenAI.Images.ImagesResponse>",
|
|
9671
|
+
"examples": [
|
|
9672
|
+
{
|
|
9673
|
+
"language": "ts",
|
|
9674
|
+
"code": "const response = await openai.createImage('A sunset over mountains')\nconsole.log(response.data[0].url)"
|
|
9675
|
+
}
|
|
9676
|
+
]
|
|
9659
9677
|
},
|
|
9660
|
-
"
|
|
9661
|
-
"description": "
|
|
9678
|
+
"listModels": {
|
|
9679
|
+
"description": "List all available models.",
|
|
9680
|
+
"parameters": {},
|
|
9681
|
+
"required": [],
|
|
9682
|
+
"returns": "Promise<OpenAI.Models.ModelsPage>",
|
|
9683
|
+
"examples": [
|
|
9684
|
+
{
|
|
9685
|
+
"language": "ts",
|
|
9686
|
+
"code": "const models = await openai.listModels()"
|
|
9687
|
+
}
|
|
9688
|
+
]
|
|
9689
|
+
},
|
|
9690
|
+
"ask": {
|
|
9691
|
+
"description": "Ask a single question and get a text response. Convenience wrapper around `createChatCompletion` for simple Q&A.",
|
|
9662
9692
|
"parameters": {
|
|
9663
|
-
"
|
|
9693
|
+
"question": {
|
|
9664
9694
|
"type": "string",
|
|
9665
|
-
"description": "The
|
|
9695
|
+
"description": "The question to ask"
|
|
9696
|
+
},
|
|
9697
|
+
"options": {
|
|
9698
|
+
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
9699
|
+
"description": "Additional completion parameters"
|
|
9666
9700
|
}
|
|
9667
9701
|
},
|
|
9668
9702
|
"required": [
|
|
9669
|
-
"
|
|
9703
|
+
"question"
|
|
9670
9704
|
],
|
|
9671
|
-
"returns": "
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
},
|
|
9679
|
-
"connect": {
|
|
9680
|
-
"description": "Connect is a no-op since the Supabase SDK initializes on construction. The client is ready to use immediately after creation.",
|
|
9681
|
-
"parameters": {},
|
|
9682
|
-
"required": [],
|
|
9683
|
-
"returns": "void"
|
|
9705
|
+
"returns": "Promise<string>",
|
|
9706
|
+
"examples": [
|
|
9707
|
+
{
|
|
9708
|
+
"language": "ts",
|
|
9709
|
+
"code": "const answer = await openai.ask('What is 2 + 2?')\nconsole.log(answer) // '4'"
|
|
9710
|
+
}
|
|
9711
|
+
]
|
|
9684
9712
|
},
|
|
9685
|
-
"
|
|
9686
|
-
"description": "
|
|
9687
|
-
"parameters": {
|
|
9688
|
-
|
|
9689
|
-
|
|
9713
|
+
"chat": {
|
|
9714
|
+
"description": "Send a multi-turn conversation and get a text response. Convenience wrapper around `createChatCompletion` that returns just the text.",
|
|
9715
|
+
"parameters": {
|
|
9716
|
+
"messages": {
|
|
9717
|
+
"type": "OpenAI.Chat.Completions.ChatCompletionMessageParam[]",
|
|
9718
|
+
"description": "Array of chat messages"
|
|
9719
|
+
},
|
|
9720
|
+
"options": {
|
|
9721
|
+
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
9722
|
+
"description": "Additional completion parameters"
|
|
9723
|
+
}
|
|
9724
|
+
},
|
|
9725
|
+
"required": [
|
|
9726
|
+
"messages"
|
|
9727
|
+
],
|
|
9728
|
+
"returns": "Promise<string>",
|
|
9729
|
+
"examples": [
|
|
9730
|
+
{
|
|
9731
|
+
"language": "ts",
|
|
9732
|
+
"code": "const reply = await openai.chat([\n { role: 'system', content: 'You are a pirate.' },\n { role: 'user', content: 'Hello!' }\n])"
|
|
9733
|
+
}
|
|
9734
|
+
]
|
|
9690
9735
|
}
|
|
9691
9736
|
},
|
|
9692
9737
|
"getters": {
|
|
9693
|
-
"
|
|
9694
|
-
"description": "
|
|
9695
|
-
"returns": "
|
|
9738
|
+
"defaultModel": {
|
|
9739
|
+
"description": "The default model used for completions, from options or 'gpt-4o'.",
|
|
9740
|
+
"returns": "string"
|
|
9696
9741
|
},
|
|
9697
|
-
"
|
|
9698
|
-
"description": "
|
|
9699
|
-
"returns": "
|
|
9742
|
+
"raw": {
|
|
9743
|
+
"description": "The underlying OpenAI SDK instance for advanced use cases.",
|
|
9744
|
+
"returns": "OpenAI"
|
|
9745
|
+
}
|
|
9746
|
+
},
|
|
9747
|
+
"events": {
|
|
9748
|
+
"connected": {
|
|
9749
|
+
"name": "connected",
|
|
9750
|
+
"description": "Event emitted by OpenAIClient",
|
|
9751
|
+
"arguments": {}
|
|
9700
9752
|
},
|
|
9701
|
-
"
|
|
9702
|
-
"
|
|
9703
|
-
"
|
|
9753
|
+
"failure": {
|
|
9754
|
+
"name": "failure",
|
|
9755
|
+
"description": "Event emitted by OpenAIClient",
|
|
9756
|
+
"arguments": {}
|
|
9757
|
+
},
|
|
9758
|
+
"completion": {
|
|
9759
|
+
"name": "completion",
|
|
9760
|
+
"description": "Event emitted by OpenAIClient",
|
|
9761
|
+
"arguments": {}
|
|
9762
|
+
},
|
|
9763
|
+
"embedding": {
|
|
9764
|
+
"name": "embedding",
|
|
9765
|
+
"description": "Event emitted by OpenAIClient",
|
|
9766
|
+
"arguments": {}
|
|
9767
|
+
},
|
|
9768
|
+
"image": {
|
|
9769
|
+
"name": "image",
|
|
9770
|
+
"description": "Event emitted by OpenAIClient",
|
|
9771
|
+
"arguments": {}
|
|
9772
|
+
},
|
|
9773
|
+
"models": {
|
|
9774
|
+
"name": "models",
|
|
9775
|
+
"description": "Event emitted by OpenAIClient",
|
|
9776
|
+
"arguments": {}
|
|
9704
9777
|
}
|
|
9705
9778
|
},
|
|
9706
|
-
"events": {},
|
|
9707
9779
|
"state": {},
|
|
9708
9780
|
"options": {},
|
|
9709
9781
|
"envVars": [],
|
|
9710
9782
|
"examples": [
|
|
9711
9783
|
{
|
|
9712
9784
|
"language": "ts",
|
|
9713
|
-
"code": "const
|
|
9785
|
+
"code": "const openai = container.client('openai', { defaultModel: 'gpt-4o' })\nconst answer = await openai.ask('What is the meaning of life?')\nconsole.log(answer)"
|
|
9714
9786
|
}
|
|
9715
9787
|
]
|
|
9716
9788
|
});
|
|
@@ -9917,512 +9989,440 @@ setBuildTimeData('clients.elevenlabs', {
|
|
|
9917
9989
|
]
|
|
9918
9990
|
});
|
|
9919
9991
|
|
|
9920
|
-
setBuildTimeData('clients.
|
|
9921
|
-
"id": "clients.
|
|
9922
|
-
"description": "
|
|
9923
|
-
"shortcut": "clients.
|
|
9924
|
-
"className": "
|
|
9992
|
+
setBuildTimeData('clients.supabase', {
|
|
9993
|
+
"id": "clients.supabase",
|
|
9994
|
+
"description": "Supabase client for the Luca container system. Wraps the official `@supabase/supabase-js` SDK and exposes it through Luca's typed state, events, and introspection system. The SDK is isomorphic so this single implementation works in both Node and browser containers. Use `client.sdk` for full SDK access, or use the convenience wrappers for common operations (auth, database queries, storage, edge functions, realtime).",
|
|
9995
|
+
"shortcut": "clients.supabase",
|
|
9996
|
+
"className": "SupabaseClient",
|
|
9925
9997
|
"methods": {
|
|
9926
|
-
"
|
|
9927
|
-
"description": "
|
|
9998
|
+
"from": {
|
|
9999
|
+
"description": "Start a query on a Postgres table or view.",
|
|
9928
10000
|
"parameters": {
|
|
9929
|
-
"
|
|
9930
|
-
"type": "Record<string, any>",
|
|
9931
|
-
"description": "The API-format workflow object"
|
|
9932
|
-
},
|
|
9933
|
-
"clientId": {
|
|
10001
|
+
"table": {
|
|
9934
10002
|
"type": "string",
|
|
9935
|
-
"description": "
|
|
10003
|
+
"description": "The table or view name to query"
|
|
9936
10004
|
}
|
|
9937
10005
|
},
|
|
9938
10006
|
"required": [
|
|
9939
|
-
"
|
|
10007
|
+
"table"
|
|
9940
10008
|
],
|
|
9941
|
-
"returns": "
|
|
9942
|
-
"examples": [
|
|
9943
|
-
{
|
|
9944
|
-
"language": "ts",
|
|
9945
|
-
"code": "const { prompt_id } = await comfy.queuePrompt(apiWorkflow)"
|
|
9946
|
-
}
|
|
9947
|
-
]
|
|
9948
|
-
},
|
|
9949
|
-
"getQueue": {
|
|
9950
|
-
"description": "Get the current prompt queue status.",
|
|
9951
|
-
"parameters": {},
|
|
9952
|
-
"required": [],
|
|
9953
|
-
"returns": "Promise<{ queue_running: any[]; queue_pending: any[] }>"
|
|
9954
|
-
},
|
|
9955
|
-
"getHistory": {
|
|
9956
|
-
"description": "Get execution history, optionally for a specific prompt.",
|
|
9957
|
-
"parameters": {
|
|
9958
|
-
"promptId": {
|
|
9959
|
-
"type": "string",
|
|
9960
|
-
"description": "If provided, returns history for this prompt only"
|
|
9961
|
-
}
|
|
9962
|
-
},
|
|
9963
|
-
"required": [],
|
|
9964
|
-
"returns": "Promise<Record<string, any>>"
|
|
9965
|
-
},
|
|
9966
|
-
"getSystemStats": {
|
|
9967
|
-
"description": "Get system stats including GPU memory and queue info.",
|
|
9968
|
-
"parameters": {},
|
|
9969
|
-
"required": [],
|
|
9970
|
-
"returns": "Promise<any>"
|
|
9971
|
-
},
|
|
9972
|
-
"getObjectInfo": {
|
|
9973
|
-
"description": "Get node type info with input/output schemas.",
|
|
9974
|
-
"parameters": {
|
|
9975
|
-
"nodeClass": {
|
|
9976
|
-
"type": "string",
|
|
9977
|
-
"description": "If provided, returns info for this node type only"
|
|
9978
|
-
}
|
|
9979
|
-
},
|
|
9980
|
-
"required": [],
|
|
9981
|
-
"returns": "Promise<any>"
|
|
9982
|
-
},
|
|
9983
|
-
"interrupt": {
|
|
9984
|
-
"description": "Interrupt the currently executing prompt.",
|
|
9985
|
-
"parameters": {},
|
|
9986
|
-
"required": [],
|
|
9987
|
-
"returns": "Promise<void>"
|
|
10009
|
+
"returns": "void"
|
|
9988
10010
|
},
|
|
9989
|
-
"
|
|
9990
|
-
"description": "
|
|
10011
|
+
"rpc": {
|
|
10012
|
+
"description": "Call a Postgres function (RPC).",
|
|
9991
10013
|
"parameters": {
|
|
9992
|
-
"
|
|
10014
|
+
"fn": {
|
|
9993
10015
|
"type": "string",
|
|
9994
|
-
"description": "
|
|
10016
|
+
"description": "The function name"
|
|
10017
|
+
},
|
|
10018
|
+
"params": {
|
|
10019
|
+
"type": "Record<string, unknown>",
|
|
10020
|
+
"description": "Arguments to pass to the function"
|
|
10021
|
+
},
|
|
10022
|
+
"options": {
|
|
10023
|
+
"type": "{ head?: boolean; get?: boolean; count?: \"exact\" | \"planned\" | \"estimated\" }",
|
|
10024
|
+
"description": "Optional settings (head, get, count)"
|
|
9995
10025
|
}
|
|
9996
10026
|
},
|
|
9997
|
-
"required": [
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
"description": "List available embedding models.",
|
|
10002
|
-
"parameters": {},
|
|
10003
|
-
"required": [],
|
|
10004
|
-
"returns": "Promise<string[]>"
|
|
10027
|
+
"required": [
|
|
10028
|
+
"fn"
|
|
10029
|
+
],
|
|
10030
|
+
"returns": "void"
|
|
10005
10031
|
},
|
|
10006
|
-
"
|
|
10007
|
-
"description": "
|
|
10032
|
+
"signInWithPassword": {
|
|
10033
|
+
"description": "Sign in with email and password.",
|
|
10008
10034
|
"parameters": {
|
|
10009
|
-
"
|
|
10010
|
-
"type": "Buffer | Blob",
|
|
10011
|
-
"description": "The image data as Buffer or Blob"
|
|
10012
|
-
},
|
|
10013
|
-
"filename": {
|
|
10035
|
+
"email": {
|
|
10014
10036
|
"type": "string",
|
|
10015
|
-
"description": "
|
|
10037
|
+
"description": "Parameter email"
|
|
10016
10038
|
},
|
|
10017
|
-
"
|
|
10018
|
-
"type": "
|
|
10019
|
-
"description": "
|
|
10039
|
+
"password": {
|
|
10040
|
+
"type": "string",
|
|
10041
|
+
"description": "Parameter password"
|
|
10020
10042
|
}
|
|
10021
10043
|
},
|
|
10022
10044
|
"required": [
|
|
10023
|
-
"
|
|
10024
|
-
"
|
|
10045
|
+
"email",
|
|
10046
|
+
"password"
|
|
10025
10047
|
],
|
|
10026
|
-
"returns": "
|
|
10048
|
+
"returns": "void"
|
|
10027
10049
|
},
|
|
10028
|
-
"
|
|
10029
|
-
"description": "
|
|
10050
|
+
"signUp": {
|
|
10051
|
+
"description": "Create a new user account with email and password.",
|
|
10030
10052
|
"parameters": {
|
|
10031
|
-
"
|
|
10053
|
+
"email": {
|
|
10032
10054
|
"type": "string",
|
|
10033
|
-
"description": "
|
|
10034
|
-
},
|
|
10035
|
-
"subfolder": {
|
|
10036
|
-
"type": "any",
|
|
10037
|
-
"description": "Subfolder within the output directory"
|
|
10055
|
+
"description": "Parameter email"
|
|
10038
10056
|
},
|
|
10039
|
-
"
|
|
10040
|
-
"type": "
|
|
10041
|
-
"description": "
|
|
10057
|
+
"password": {
|
|
10058
|
+
"type": "string",
|
|
10059
|
+
"description": "Parameter password"
|
|
10042
10060
|
}
|
|
10043
10061
|
},
|
|
10044
10062
|
"required": [
|
|
10045
|
-
"
|
|
10063
|
+
"email",
|
|
10064
|
+
"password"
|
|
10046
10065
|
],
|
|
10047
|
-
"returns": "
|
|
10066
|
+
"returns": "void"
|
|
10048
10067
|
},
|
|
10049
|
-
"
|
|
10050
|
-
"description": "
|
|
10068
|
+
"signOut": {
|
|
10069
|
+
"description": "Sign the current user out.",
|
|
10051
10070
|
"parameters": {},
|
|
10052
10071
|
"required": [],
|
|
10053
|
-
"returns": "
|
|
10072
|
+
"returns": "void"
|
|
10054
10073
|
},
|
|
10055
|
-
"
|
|
10056
|
-
"description": "
|
|
10074
|
+
"getSession": {
|
|
10075
|
+
"description": "Get the current session, if any.",
|
|
10057
10076
|
"parameters": {},
|
|
10058
10077
|
"required": [],
|
|
10059
10078
|
"returns": "void"
|
|
10060
10079
|
},
|
|
10061
|
-
"
|
|
10062
|
-
"description": "
|
|
10080
|
+
"getUser": {
|
|
10081
|
+
"description": "Get the current user, if any.",
|
|
10082
|
+
"parameters": {},
|
|
10083
|
+
"required": [],
|
|
10084
|
+
"returns": "void"
|
|
10085
|
+
},
|
|
10086
|
+
"invoke": {
|
|
10087
|
+
"description": "Invoke a Supabase Edge Function by name.",
|
|
10063
10088
|
"parameters": {
|
|
10064
|
-
"
|
|
10065
|
-
"type": "
|
|
10066
|
-
"description": "Parameter
|
|
10089
|
+
"name": {
|
|
10090
|
+
"type": "string",
|
|
10091
|
+
"description": "Parameter name"
|
|
10092
|
+
},
|
|
10093
|
+
"body": {
|
|
10094
|
+
"type": "any",
|
|
10095
|
+
"description": "Parameter body"
|
|
10067
10096
|
}
|
|
10068
10097
|
},
|
|
10069
10098
|
"required": [
|
|
10070
|
-
"
|
|
10099
|
+
"name"
|
|
10071
10100
|
],
|
|
10072
|
-
"returns": "
|
|
10101
|
+
"returns": "void"
|
|
10073
10102
|
},
|
|
10074
|
-
"
|
|
10075
|
-
"description": "
|
|
10103
|
+
"subscribe": {
|
|
10104
|
+
"description": "Subscribe to realtime changes on a Postgres table.",
|
|
10076
10105
|
"parameters": {
|
|
10077
|
-
"
|
|
10078
|
-
"type": "
|
|
10079
|
-
"description": "
|
|
10106
|
+
"channelName": {
|
|
10107
|
+
"type": "string",
|
|
10108
|
+
"description": "A name for this subscription channel"
|
|
10080
10109
|
},
|
|
10081
|
-
"
|
|
10082
|
-
"type": "
|
|
10083
|
-
"description": "
|
|
10110
|
+
"table": {
|
|
10111
|
+
"type": "string",
|
|
10112
|
+
"description": "The table to listen to"
|
|
10084
10113
|
},
|
|
10085
|
-
"
|
|
10086
|
-
"type": "
|
|
10087
|
-
"description": "
|
|
10088
|
-
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
},
|
|
10093
|
-
"pollInterval": {
|
|
10094
|
-
"type": "number",
|
|
10095
|
-
"description": "Polling interval in ms (default 1000)"
|
|
10096
|
-
},
|
|
10097
|
-
"inputMap": {
|
|
10098
|
-
"type": "InputMapping",
|
|
10099
|
-
"description": "Named input mapping: semantic name -> { nodeId, field }"
|
|
10100
|
-
},
|
|
10101
|
-
"outputDir": {
|
|
10102
|
-
"type": "string",
|
|
10103
|
-
"description": "If provided, output images are downloaded to this directory"
|
|
10104
|
-
}
|
|
10105
|
-
}
|
|
10114
|
+
"callback": {
|
|
10115
|
+
"type": "(payload: any) => void",
|
|
10116
|
+
"description": "Called with the payload on each change"
|
|
10117
|
+
},
|
|
10118
|
+
"event": {
|
|
10119
|
+
"type": "\"INSERT\" | \"UPDATE\" | \"DELETE\" | \"*\"",
|
|
10120
|
+
"description": "The event type to listen for (default: all changes)"
|
|
10106
10121
|
}
|
|
10107
10122
|
},
|
|
10108
10123
|
"required": [
|
|
10109
|
-
"
|
|
10124
|
+
"channelName",
|
|
10125
|
+
"table",
|
|
10126
|
+
"callback"
|
|
10110
10127
|
],
|
|
10111
|
-
"returns": "
|
|
10112
|
-
}
|
|
10113
|
-
},
|
|
10114
|
-
"getters": {
|
|
10115
|
-
"clientId": {
|
|
10116
|
-
"description": "The unique client ID used for WebSocket session tracking.",
|
|
10117
|
-
"returns": "string"
|
|
10118
|
-
},
|
|
10119
|
-
"wsURL": {
|
|
10120
|
-
"description": "The WebSocket URL derived from baseURL or overridden via options.",
|
|
10121
|
-
"returns": "string"
|
|
10122
|
-
}
|
|
10123
|
-
},
|
|
10124
|
-
"events": {
|
|
10125
|
-
"execution_start": {
|
|
10126
|
-
"name": "execution_start",
|
|
10127
|
-
"description": "Event emitted by ComfyUIClient",
|
|
10128
|
-
"arguments": {}
|
|
10128
|
+
"returns": "RealtimeChannel"
|
|
10129
10129
|
},
|
|
10130
|
-
"
|
|
10131
|
-
"
|
|
10132
|
-
"
|
|
10133
|
-
|
|
10130
|
+
"unsubscribe": {
|
|
10131
|
+
"description": "Unsubscribe and remove a realtime channel by name.",
|
|
10132
|
+
"parameters": {
|
|
10133
|
+
"channelName": {
|
|
10134
|
+
"type": "string",
|
|
10135
|
+
"description": "The channel name to remove"
|
|
10136
|
+
}
|
|
10137
|
+
},
|
|
10138
|
+
"required": [
|
|
10139
|
+
"channelName"
|
|
10140
|
+
],
|
|
10141
|
+
"returns": "void"
|
|
10134
10142
|
},
|
|
10135
|
-
"
|
|
10136
|
-
"
|
|
10137
|
-
"
|
|
10138
|
-
"
|
|
10143
|
+
"unsubscribeAll": {
|
|
10144
|
+
"description": "Unsubscribe and remove all realtime channels.",
|
|
10145
|
+
"parameters": {},
|
|
10146
|
+
"required": [],
|
|
10147
|
+
"returns": "void"
|
|
10139
10148
|
},
|
|
10140
|
-
"
|
|
10141
|
-
"
|
|
10142
|
-
"
|
|
10143
|
-
"
|
|
10149
|
+
"connect": {
|
|
10150
|
+
"description": "Connect is a no-op since the Supabase SDK initializes on construction. The client is ready to use immediately after creation.",
|
|
10151
|
+
"parameters": {},
|
|
10152
|
+
"required": [],
|
|
10153
|
+
"returns": "void"
|
|
10144
10154
|
},
|
|
10145
|
-
"
|
|
10146
|
-
"
|
|
10147
|
-
"
|
|
10148
|
-
"
|
|
10155
|
+
"disconnect": {
|
|
10156
|
+
"description": "Disconnect by signing out and removing all realtime channels.",
|
|
10157
|
+
"parameters": {},
|
|
10158
|
+
"required": [],
|
|
10159
|
+
"returns": "void"
|
|
10160
|
+
}
|
|
10161
|
+
},
|
|
10162
|
+
"getters": {
|
|
10163
|
+
"sdk": {
|
|
10164
|
+
"description": "Returns the raw Supabase SDK client for full access to all SDK methods.",
|
|
10165
|
+
"returns": "SupabaseSDKClient<any, any>"
|
|
10149
10166
|
},
|
|
10150
|
-
"
|
|
10151
|
-
"
|
|
10152
|
-
"
|
|
10153
|
-
"arguments": {}
|
|
10167
|
+
"storage": {
|
|
10168
|
+
"description": "Returns the Supabase Storage client for managing buckets and files.",
|
|
10169
|
+
"returns": "any"
|
|
10154
10170
|
},
|
|
10155
|
-
"
|
|
10156
|
-
"
|
|
10157
|
-
"
|
|
10158
|
-
"arguments": {}
|
|
10171
|
+
"functions": {
|
|
10172
|
+
"description": "Returns the Supabase Functions client.",
|
|
10173
|
+
"returns": "any"
|
|
10159
10174
|
}
|
|
10160
10175
|
},
|
|
10176
|
+
"events": {},
|
|
10161
10177
|
"state": {},
|
|
10162
10178
|
"options": {},
|
|
10163
10179
|
"envVars": [],
|
|
10164
10180
|
"examples": [
|
|
10165
10181
|
{
|
|
10166
10182
|
"language": "ts",
|
|
10167
|
-
"code": "const
|
|
10183
|
+
"code": "const supabase = container.client('supabase', {\n supabaseUrl: 'https://xyz.supabase.co',\n supabaseKey: 'your-anon-key',\n})\n\n// Query data\nconst { data } = await supabase.from('users').select('*')\n\n// Auth\nawait supabase.signInWithPassword('user@example.com', 'password')\n\n// Realtime\nsupabase.subscribe('changes', 'users', (payload) => {\n console.log('Change:', payload)\n})"
|
|
10168
10184
|
}
|
|
10169
10185
|
]
|
|
10170
10186
|
});
|
|
10171
10187
|
|
|
10172
|
-
setBuildTimeData('clients.
|
|
10173
|
-
"id": "clients.
|
|
10174
|
-
"description": "
|
|
10175
|
-
"shortcut": "clients.
|
|
10176
|
-
"className": "
|
|
10188
|
+
setBuildTimeData('clients.comfyui', {
|
|
10189
|
+
"id": "clients.comfyui",
|
|
10190
|
+
"description": "ComfyUI client — execute Stable Diffusion workflows via the ComfyUI API. Connects to a ComfyUI instance to queue prompts, track execution via WebSocket or polling, and download generated images. Supports both UI-format and API-format workflows with automatic conversion.",
|
|
10191
|
+
"shortcut": "clients.comfyui",
|
|
10192
|
+
"className": "ComfyUIClient",
|
|
10177
10193
|
"methods": {
|
|
10178
|
-
"
|
|
10179
|
-
"description": "
|
|
10180
|
-
"parameters": {},
|
|
10181
|
-
"required": [],
|
|
10182
|
-
"returns": "Promise<this>",
|
|
10183
|
-
"examples": [
|
|
10184
|
-
{
|
|
10185
|
-
"language": "ts",
|
|
10186
|
-
"code": "await openai.connect()"
|
|
10187
|
-
}
|
|
10188
|
-
]
|
|
10189
|
-
},
|
|
10190
|
-
"createChatCompletion": {
|
|
10191
|
-
"description": "Create a chat completion using the Chat Completions API.",
|
|
10192
|
-
"parameters": {
|
|
10193
|
-
"messages": {
|
|
10194
|
-
"type": "OpenAI.Chat.Completions.ChatCompletionMessageParam[]",
|
|
10195
|
-
"description": "Array of chat messages"
|
|
10196
|
-
},
|
|
10197
|
-
"options": {
|
|
10198
|
-
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
10199
|
-
"description": "Additional parameters for the completion"
|
|
10200
|
-
}
|
|
10201
|
-
},
|
|
10202
|
-
"required": [
|
|
10203
|
-
"messages"
|
|
10204
|
-
],
|
|
10205
|
-
"returns": "Promise<OpenAI.Chat.Completions.ChatCompletion>",
|
|
10206
|
-
"examples": [
|
|
10207
|
-
{
|
|
10208
|
-
"language": "ts",
|
|
10209
|
-
"code": "const response = await openai.createChatCompletion([\n { role: 'system', content: 'You are a helpful assistant.' },\n { role: 'user', content: 'Hello!' }\n])\nconsole.log(response.choices[0]?.message?.content)"
|
|
10210
|
-
}
|
|
10211
|
-
]
|
|
10212
|
-
},
|
|
10213
|
-
"createResponse": {
|
|
10214
|
-
"description": "Create a response using the Responses API.",
|
|
10194
|
+
"queuePrompt": {
|
|
10195
|
+
"description": "Queue a prompt (API-format workflow) for execution.",
|
|
10215
10196
|
"parameters": {
|
|
10216
|
-
"
|
|
10217
|
-
"type": "
|
|
10218
|
-
"description": "The
|
|
10219
|
-
},
|
|
10220
|
-
"
|
|
10221
|
-
"type": "
|
|
10222
|
-
"description": "
|
|
10197
|
+
"prompt": {
|
|
10198
|
+
"type": "Record<string, any>",
|
|
10199
|
+
"description": "The API-format workflow object"
|
|
10200
|
+
},
|
|
10201
|
+
"clientId": {
|
|
10202
|
+
"type": "string",
|
|
10203
|
+
"description": "Override the client ID for this request"
|
|
10223
10204
|
}
|
|
10224
10205
|
},
|
|
10225
10206
|
"required": [
|
|
10226
|
-
"
|
|
10207
|
+
"prompt"
|
|
10227
10208
|
],
|
|
10228
|
-
"returns": "Promise<
|
|
10209
|
+
"returns": "Promise<{ prompt_id: string; number: number }>",
|
|
10229
10210
|
"examples": [
|
|
10230
10211
|
{
|
|
10231
10212
|
"language": "ts",
|
|
10232
|
-
"code": "const
|
|
10213
|
+
"code": "const { prompt_id } = await comfy.queuePrompt(apiWorkflow)"
|
|
10233
10214
|
}
|
|
10234
10215
|
]
|
|
10235
10216
|
},
|
|
10236
|
-
"
|
|
10237
|
-
"description": "
|
|
10217
|
+
"getQueue": {
|
|
10218
|
+
"description": "Get the current prompt queue status.",
|
|
10219
|
+
"parameters": {},
|
|
10220
|
+
"required": [],
|
|
10221
|
+
"returns": "Promise<{ queue_running: any[]; queue_pending: any[] }>"
|
|
10222
|
+
},
|
|
10223
|
+
"getHistory": {
|
|
10224
|
+
"description": "Get execution history, optionally for a specific prompt.",
|
|
10238
10225
|
"parameters": {
|
|
10239
|
-
"
|
|
10240
|
-
"type": "
|
|
10241
|
-
"description": "
|
|
10242
|
-
},
|
|
10243
|
-
"options": {
|
|
10244
|
-
"type": "Partial<OpenAI.Responses.ResponseCreateParamsStreaming>",
|
|
10245
|
-
"description": "Additional parameters for the streaming response"
|
|
10226
|
+
"promptId": {
|
|
10227
|
+
"type": "string",
|
|
10228
|
+
"description": "If provided, returns history for this prompt only"
|
|
10246
10229
|
}
|
|
10247
10230
|
},
|
|
10248
|
-
"required": [
|
|
10249
|
-
|
|
10250
|
-
],
|
|
10251
|
-
"returns": "Promise<AsyncIterable<OpenAI.Responses.ResponseStreamEvent>>",
|
|
10252
|
-
"examples": [
|
|
10253
|
-
{
|
|
10254
|
-
"language": "ts",
|
|
10255
|
-
"code": "const stream = await openai.streamResponse('Write a poem')\nfor await (const event of stream) {\n if (event.type === 'response.output_text.delta') {\n process.stdout.write(event.delta)\n }\n}"
|
|
10256
|
-
}
|
|
10257
|
-
]
|
|
10231
|
+
"required": [],
|
|
10232
|
+
"returns": "Promise<Record<string, any>>"
|
|
10258
10233
|
},
|
|
10259
|
-
"
|
|
10260
|
-
"description": "
|
|
10234
|
+
"getSystemStats": {
|
|
10235
|
+
"description": "Get system stats including GPU memory and queue info.",
|
|
10236
|
+
"parameters": {},
|
|
10237
|
+
"required": [],
|
|
10238
|
+
"returns": "Promise<any>"
|
|
10239
|
+
},
|
|
10240
|
+
"getObjectInfo": {
|
|
10241
|
+
"description": "Get node type info with input/output schemas.",
|
|
10261
10242
|
"parameters": {
|
|
10262
|
-
"
|
|
10243
|
+
"nodeClass": {
|
|
10263
10244
|
"type": "string",
|
|
10264
|
-
"description": "
|
|
10265
|
-
},
|
|
10266
|
-
"options": {
|
|
10267
|
-
"type": "Partial<OpenAI.Completions.CompletionCreateParams>",
|
|
10268
|
-
"description": "Additional parameters for the completion"
|
|
10245
|
+
"description": "If provided, returns info for this node type only"
|
|
10269
10246
|
}
|
|
10270
10247
|
},
|
|
10271
|
-
"required": [
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
"
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10248
|
+
"required": [],
|
|
10249
|
+
"returns": "Promise<any>"
|
|
10250
|
+
},
|
|
10251
|
+
"interrupt": {
|
|
10252
|
+
"description": "Interrupt the currently executing prompt.",
|
|
10253
|
+
"parameters": {},
|
|
10254
|
+
"required": [],
|
|
10255
|
+
"returns": "Promise<void>"
|
|
10256
|
+
},
|
|
10257
|
+
"getModels": {
|
|
10258
|
+
"description": "List available models, optionally filtered by type.",
|
|
10259
|
+
"parameters": {
|
|
10260
|
+
"type": {
|
|
10261
|
+
"type": "string",
|
|
10262
|
+
"description": "Model type filter (e.g., 'checkpoints', 'loras')"
|
|
10279
10263
|
}
|
|
10280
|
-
|
|
10264
|
+
},
|
|
10265
|
+
"required": [],
|
|
10266
|
+
"returns": "Promise<string[]>"
|
|
10281
10267
|
},
|
|
10282
|
-
"
|
|
10283
|
-
"description": "
|
|
10268
|
+
"getEmbeddings": {
|
|
10269
|
+
"description": "List available embedding models.",
|
|
10270
|
+
"parameters": {},
|
|
10271
|
+
"required": [],
|
|
10272
|
+
"returns": "Promise<string[]>"
|
|
10273
|
+
},
|
|
10274
|
+
"uploadImage": {
|
|
10275
|
+
"description": "Upload an image to ComfyUI's input directory.",
|
|
10284
10276
|
"parameters": {
|
|
10285
|
-
"
|
|
10286
|
-
"type": "
|
|
10287
|
-
"description": "
|
|
10277
|
+
"file": {
|
|
10278
|
+
"type": "Buffer | Blob",
|
|
10279
|
+
"description": "The image data as Buffer or Blob"
|
|
10288
10280
|
},
|
|
10289
|
-
"
|
|
10290
|
-
"type": "
|
|
10291
|
-
"description": "
|
|
10281
|
+
"filename": {
|
|
10282
|
+
"type": "string",
|
|
10283
|
+
"description": "File name for the upload"
|
|
10284
|
+
},
|
|
10285
|
+
"opts": {
|
|
10286
|
+
"type": "{ subfolder?: string; type?: string; overwrite?: boolean }",
|
|
10287
|
+
"description": "Upload options (subfolder, type, overwrite)"
|
|
10292
10288
|
}
|
|
10293
10289
|
},
|
|
10294
10290
|
"required": [
|
|
10295
|
-
"
|
|
10291
|
+
"file",
|
|
10292
|
+
"filename"
|
|
10296
10293
|
],
|
|
10297
|
-
"returns": "Promise<
|
|
10298
|
-
"examples": [
|
|
10299
|
-
{
|
|
10300
|
-
"language": "ts",
|
|
10301
|
-
"code": "const response = await openai.createEmbedding('Hello world')\nconsole.log(response.data[0].embedding.length)"
|
|
10302
|
-
}
|
|
10303
|
-
]
|
|
10294
|
+
"returns": "Promise<any>"
|
|
10304
10295
|
},
|
|
10305
|
-
"
|
|
10306
|
-
"description": "
|
|
10296
|
+
"viewImage": {
|
|
10297
|
+
"description": "Download a generated image from ComfyUI as a Buffer.",
|
|
10307
10298
|
"parameters": {
|
|
10308
|
-
"
|
|
10299
|
+
"filename": {
|
|
10309
10300
|
"type": "string",
|
|
10310
|
-
"description": "
|
|
10301
|
+
"description": "The image filename"
|
|
10311
10302
|
},
|
|
10312
|
-
"
|
|
10313
|
-
"type": "
|
|
10314
|
-
"description": "
|
|
10303
|
+
"subfolder": {
|
|
10304
|
+
"type": "any",
|
|
10305
|
+
"description": "Subfolder within the output directory"
|
|
10306
|
+
},
|
|
10307
|
+
"type": {
|
|
10308
|
+
"type": "any",
|
|
10309
|
+
"description": "Image type ('output', 'input', 'temp')"
|
|
10315
10310
|
}
|
|
10316
10311
|
},
|
|
10317
10312
|
"required": [
|
|
10318
|
-
"
|
|
10313
|
+
"filename"
|
|
10319
10314
|
],
|
|
10320
|
-
"returns": "Promise<
|
|
10321
|
-
"examples": [
|
|
10322
|
-
{
|
|
10323
|
-
"language": "ts",
|
|
10324
|
-
"code": "const response = await openai.createImage('A sunset over mountains')\nconsole.log(response.data[0].url)"
|
|
10325
|
-
}
|
|
10326
|
-
]
|
|
10315
|
+
"returns": "Promise<Buffer>"
|
|
10327
10316
|
},
|
|
10328
|
-
"
|
|
10329
|
-
"description": "
|
|
10317
|
+
"connectWs": {
|
|
10318
|
+
"description": "Open a WebSocket connection to ComfyUI for real-time execution tracking. Events emitted: `execution_start`, `executing`, `progress`, `executed`, `execution_cached`, `execution_error`, `execution_complete`.",
|
|
10330
10319
|
"parameters": {},
|
|
10331
10320
|
"required": [],
|
|
10332
|
-
"returns": "Promise<
|
|
10333
|
-
"examples": [
|
|
10334
|
-
{
|
|
10335
|
-
"language": "ts",
|
|
10336
|
-
"code": "const models = await openai.listModels()"
|
|
10337
|
-
}
|
|
10338
|
-
]
|
|
10321
|
+
"returns": "Promise<void>"
|
|
10339
10322
|
},
|
|
10340
|
-
"
|
|
10341
|
-
"description": "
|
|
10323
|
+
"disconnectWs": {
|
|
10324
|
+
"description": "Close the WebSocket connection.",
|
|
10325
|
+
"parameters": {},
|
|
10326
|
+
"required": [],
|
|
10327
|
+
"returns": "void"
|
|
10328
|
+
},
|
|
10329
|
+
"toApiFormat": {
|
|
10330
|
+
"description": "Convert a UI-format workflow to the API format that /prompt expects. Requires a running ComfyUI instance to fetch `object_info` so we can map positional `widgets_values` to their named input fields. If the workflow is already in API format, it's returned as-is.",
|
|
10342
10331
|
"parameters": {
|
|
10343
|
-
"
|
|
10344
|
-
"type": "string",
|
|
10345
|
-
"description": "
|
|
10346
|
-
},
|
|
10347
|
-
"options": {
|
|
10348
|
-
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
10349
|
-
"description": "Additional completion parameters"
|
|
10332
|
+
"workflow": {
|
|
10333
|
+
"type": "Record<string, any>",
|
|
10334
|
+
"description": "Parameter workflow"
|
|
10350
10335
|
}
|
|
10351
10336
|
},
|
|
10352
10337
|
"required": [
|
|
10353
|
-
"
|
|
10338
|
+
"workflow"
|
|
10354
10339
|
],
|
|
10355
|
-
"returns": "Promise<string
|
|
10356
|
-
"examples": [
|
|
10357
|
-
{
|
|
10358
|
-
"language": "ts",
|
|
10359
|
-
"code": "const answer = await openai.ask('What is 2 + 2?')\nconsole.log(answer) // '4'"
|
|
10360
|
-
}
|
|
10361
|
-
]
|
|
10340
|
+
"returns": "Promise<Record<string, any>>"
|
|
10362
10341
|
},
|
|
10363
|
-
"
|
|
10364
|
-
"description": "
|
|
10342
|
+
"runWorkflow": {
|
|
10343
|
+
"description": "Run a ComfyUI workflow with optional runtime input overrides. Inputs can be provided in two forms: **Direct node mapping** (when no `inputMap` in options): ``` { '3': { seed: 42 }, '6': { text: 'a cat' } } ``` **Named inputs** (when `inputMap` is provided in options): ``` inputs: { positive_prompt: 'a cat', seed: 42 } options.inputMap: { positive_prompt: { nodeId: '6', field: 'text' }, seed: { nodeId: '3', field: 'seed' } } ```",
|
|
10365
10344
|
"parameters": {
|
|
10366
|
-
"
|
|
10367
|
-
"type": "
|
|
10368
|
-
"description": "
|
|
10345
|
+
"workflow": {
|
|
10346
|
+
"type": "Record<string, any>",
|
|
10347
|
+
"description": "Parameter workflow"
|
|
10348
|
+
},
|
|
10349
|
+
"inputs": {
|
|
10350
|
+
"type": "Record<string, any>",
|
|
10351
|
+
"description": "Parameter inputs"
|
|
10369
10352
|
},
|
|
10370
10353
|
"options": {
|
|
10371
|
-
"type": "
|
|
10372
|
-
"description": "
|
|
10354
|
+
"type": "WorkflowRunOptions",
|
|
10355
|
+
"description": "Parameter options",
|
|
10356
|
+
"properties": {
|
|
10357
|
+
"poll": {
|
|
10358
|
+
"type": "boolean",
|
|
10359
|
+
"description": "Use polling instead of WebSocket for tracking execution"
|
|
10360
|
+
},
|
|
10361
|
+
"pollInterval": {
|
|
10362
|
+
"type": "number",
|
|
10363
|
+
"description": "Polling interval in ms (default 1000)"
|
|
10364
|
+
},
|
|
10365
|
+
"inputMap": {
|
|
10366
|
+
"type": "InputMapping",
|
|
10367
|
+
"description": "Named input mapping: semantic name -> { nodeId, field }"
|
|
10368
|
+
},
|
|
10369
|
+
"outputDir": {
|
|
10370
|
+
"type": "string",
|
|
10371
|
+
"description": "If provided, output images are downloaded to this directory"
|
|
10372
|
+
}
|
|
10373
|
+
}
|
|
10373
10374
|
}
|
|
10374
10375
|
},
|
|
10375
10376
|
"required": [
|
|
10376
|
-
"
|
|
10377
|
+
"workflow"
|
|
10377
10378
|
],
|
|
10378
|
-
"returns": "Promise<
|
|
10379
|
-
"examples": [
|
|
10380
|
-
{
|
|
10381
|
-
"language": "ts",
|
|
10382
|
-
"code": "const reply = await openai.chat([\n { role: 'system', content: 'You are a pirate.' },\n { role: 'user', content: 'Hello!' }\n])"
|
|
10383
|
-
}
|
|
10384
|
-
]
|
|
10379
|
+
"returns": "Promise<WorkflowResult>"
|
|
10385
10380
|
}
|
|
10386
10381
|
},
|
|
10387
10382
|
"getters": {
|
|
10388
|
-
"
|
|
10389
|
-
"description": "The
|
|
10383
|
+
"clientId": {
|
|
10384
|
+
"description": "The unique client ID used for WebSocket session tracking.",
|
|
10390
10385
|
"returns": "string"
|
|
10391
10386
|
},
|
|
10392
|
-
"
|
|
10393
|
-
"description": "The
|
|
10394
|
-
"returns": "
|
|
10387
|
+
"wsURL": {
|
|
10388
|
+
"description": "The WebSocket URL derived from baseURL or overridden via options.",
|
|
10389
|
+
"returns": "string"
|
|
10395
10390
|
}
|
|
10396
10391
|
},
|
|
10397
10392
|
"events": {
|
|
10398
|
-
"
|
|
10399
|
-
"name": "
|
|
10400
|
-
"description": "Event emitted by
|
|
10393
|
+
"execution_start": {
|
|
10394
|
+
"name": "execution_start",
|
|
10395
|
+
"description": "Event emitted by ComfyUIClient",
|
|
10401
10396
|
"arguments": {}
|
|
10402
10397
|
},
|
|
10403
|
-
"
|
|
10404
|
-
"name": "
|
|
10405
|
-
"description": "Event emitted by
|
|
10398
|
+
"execution_complete": {
|
|
10399
|
+
"name": "execution_complete",
|
|
10400
|
+
"description": "Event emitted by ComfyUIClient",
|
|
10406
10401
|
"arguments": {}
|
|
10407
10402
|
},
|
|
10408
|
-
"
|
|
10409
|
-
"name": "
|
|
10410
|
-
"description": "Event emitted by
|
|
10403
|
+
"executing": {
|
|
10404
|
+
"name": "executing",
|
|
10405
|
+
"description": "Event emitted by ComfyUIClient",
|
|
10411
10406
|
"arguments": {}
|
|
10412
10407
|
},
|
|
10413
|
-
"
|
|
10414
|
-
"name": "
|
|
10415
|
-
"description": "Event emitted by
|
|
10408
|
+
"progress": {
|
|
10409
|
+
"name": "progress",
|
|
10410
|
+
"description": "Event emitted by ComfyUIClient",
|
|
10416
10411
|
"arguments": {}
|
|
10417
10412
|
},
|
|
10418
|
-
"
|
|
10419
|
-
"name": "
|
|
10420
|
-
"description": "Event emitted by
|
|
10413
|
+
"executed": {
|
|
10414
|
+
"name": "executed",
|
|
10415
|
+
"description": "Event emitted by ComfyUIClient",
|
|
10421
10416
|
"arguments": {}
|
|
10422
10417
|
},
|
|
10423
|
-
"
|
|
10424
|
-
"name": "
|
|
10425
|
-
"description": "Event emitted by
|
|
10418
|
+
"execution_cached": {
|
|
10419
|
+
"name": "execution_cached",
|
|
10420
|
+
"description": "Event emitted by ComfyUIClient",
|
|
10421
|
+
"arguments": {}
|
|
10422
|
+
},
|
|
10423
|
+
"execution_error": {
|
|
10424
|
+
"name": "execution_error",
|
|
10425
|
+
"description": "Event emitted by ComfyUIClient",
|
|
10426
10426
|
"arguments": {}
|
|
10427
10427
|
}
|
|
10428
10428
|
},
|
|
@@ -10432,7 +10432,7 @@ setBuildTimeData('clients.openai', {
|
|
|
10432
10432
|
"examples": [
|
|
10433
10433
|
{
|
|
10434
10434
|
"language": "ts",
|
|
10435
|
-
"code": "const
|
|
10435
|
+
"code": "const comfy = container.client('comfyui', { baseURL: 'http://localhost:8188' })\nconst result = await comfy.runWorkflow(workflow, {\n '6': { text: 'a beautiful sunset' }\n})\nconsole.log(result.images)"
|
|
10436
10436
|
}
|
|
10437
10437
|
]
|
|
10438
10438
|
});
|
|
@@ -11980,6 +11980,10 @@ setBuildTimeData('features.claudeCode', {
|
|
|
11980
11980
|
"settingsFile": {
|
|
11981
11981
|
"type": "string",
|
|
11982
11982
|
"description": "Path to a custom settings file."
|
|
11983
|
+
},
|
|
11984
|
+
"chrome": {
|
|
11985
|
+
"type": "boolean",
|
|
11986
|
+
"description": "Launch Claude Code with a Chrome browser tool."
|
|
11983
11987
|
}
|
|
11984
11988
|
}
|
|
11985
11989
|
}
|
|
@@ -12129,6 +12133,10 @@ setBuildTimeData('features.claudeCode', {
|
|
|
12129
12133
|
"settingsFile": {
|
|
12130
12134
|
"type": "string",
|
|
12131
12135
|
"description": "Path to a custom settings file."
|
|
12136
|
+
},
|
|
12137
|
+
"chrome": {
|
|
12138
|
+
"type": "boolean",
|
|
12139
|
+
"description": "Launch Claude Code with a Chrome browser tool."
|
|
12132
12140
|
}
|
|
12133
12141
|
}
|
|
12134
12142
|
}
|
|
@@ -22978,197 +22986,269 @@ export const introspectionData = [
|
|
|
22978
22986
|
]
|
|
22979
22987
|
},
|
|
22980
22988
|
{
|
|
22981
|
-
"id": "clients.
|
|
22982
|
-
"description": "
|
|
22983
|
-
"shortcut": "clients.
|
|
22984
|
-
"className": "
|
|
22989
|
+
"id": "clients.openai",
|
|
22990
|
+
"description": "OpenAI client — wraps the OpenAI SDK for chat completions, responses API, embeddings, and image generation. Provides convenience methods for common operations while tracking token usage and request counts. Supports both the Chat Completions API and the newer Responses API.",
|
|
22991
|
+
"shortcut": "clients.openai",
|
|
22992
|
+
"className": "OpenAIClient",
|
|
22985
22993
|
"methods": {
|
|
22986
|
-
"
|
|
22987
|
-
"description": "
|
|
22994
|
+
"connect": {
|
|
22995
|
+
"description": "Test the API connection by listing models.",
|
|
22996
|
+
"parameters": {},
|
|
22997
|
+
"required": [],
|
|
22998
|
+
"returns": "Promise<this>",
|
|
22999
|
+
"examples": [
|
|
23000
|
+
{
|
|
23001
|
+
"language": "ts",
|
|
23002
|
+
"code": "await openai.connect()"
|
|
23003
|
+
}
|
|
23004
|
+
]
|
|
23005
|
+
},
|
|
23006
|
+
"createChatCompletion": {
|
|
23007
|
+
"description": "Create a chat completion using the Chat Completions API.",
|
|
22988
23008
|
"parameters": {
|
|
22989
|
-
"
|
|
22990
|
-
"type": "
|
|
22991
|
-
"description": "
|
|
23009
|
+
"messages": {
|
|
23010
|
+
"type": "OpenAI.Chat.Completions.ChatCompletionMessageParam[]",
|
|
23011
|
+
"description": "Array of chat messages"
|
|
23012
|
+
},
|
|
23013
|
+
"options": {
|
|
23014
|
+
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
23015
|
+
"description": "Additional parameters for the completion"
|
|
22992
23016
|
}
|
|
22993
23017
|
},
|
|
22994
23018
|
"required": [
|
|
22995
|
-
"
|
|
23019
|
+
"messages"
|
|
22996
23020
|
],
|
|
22997
|
-
"returns": "
|
|
23021
|
+
"returns": "Promise<OpenAI.Chat.Completions.ChatCompletion>",
|
|
23022
|
+
"examples": [
|
|
23023
|
+
{
|
|
23024
|
+
"language": "ts",
|
|
23025
|
+
"code": "const response = await openai.createChatCompletion([\n { role: 'system', content: 'You are a helpful assistant.' },\n { role: 'user', content: 'Hello!' }\n])\nconsole.log(response.choices[0]?.message?.content)"
|
|
23026
|
+
}
|
|
23027
|
+
]
|
|
22998
23028
|
},
|
|
22999
|
-
"
|
|
23000
|
-
"description": "
|
|
23029
|
+
"createResponse": {
|
|
23030
|
+
"description": "Create a response using the Responses API.",
|
|
23001
23031
|
"parameters": {
|
|
23002
|
-
"
|
|
23003
|
-
"type": "string",
|
|
23004
|
-
"description": "The
|
|
23005
|
-
},
|
|
23006
|
-
"params": {
|
|
23007
|
-
"type": "Record<string, unknown>",
|
|
23008
|
-
"description": "Arguments to pass to the function"
|
|
23032
|
+
"input": {
|
|
23033
|
+
"type": "OpenAI.Responses.ResponseInput | string",
|
|
23034
|
+
"description": "The input prompt or message array"
|
|
23009
23035
|
},
|
|
23010
23036
|
"options": {
|
|
23011
|
-
"type": "
|
|
23012
|
-
"description": "
|
|
23037
|
+
"type": "Partial<OpenAI.Responses.ResponseCreateParamsNonStreaming>",
|
|
23038
|
+
"description": "Additional parameters for the response"
|
|
23013
23039
|
}
|
|
23014
23040
|
},
|
|
23015
23041
|
"required": [
|
|
23016
|
-
"
|
|
23042
|
+
"input"
|
|
23017
23043
|
],
|
|
23018
|
-
"returns": "
|
|
23044
|
+
"returns": "Promise<OpenAI.Responses.Response>",
|
|
23045
|
+
"examples": [
|
|
23046
|
+
{
|
|
23047
|
+
"language": "ts",
|
|
23048
|
+
"code": "const response = await openai.createResponse('Explain quantum computing')"
|
|
23049
|
+
}
|
|
23050
|
+
]
|
|
23019
23051
|
},
|
|
23020
|
-
"
|
|
23021
|
-
"description": "
|
|
23052
|
+
"streamResponse": {
|
|
23053
|
+
"description": "Stream a response using the Responses API.",
|
|
23022
23054
|
"parameters": {
|
|
23023
|
-
"
|
|
23024
|
-
"type": "string",
|
|
23025
|
-
"description": "
|
|
23055
|
+
"input": {
|
|
23056
|
+
"type": "OpenAI.Responses.ResponseInput | string",
|
|
23057
|
+
"description": "The input prompt or message array"
|
|
23026
23058
|
},
|
|
23027
|
-
"
|
|
23028
|
-
"type": "
|
|
23029
|
-
"description": "
|
|
23059
|
+
"options": {
|
|
23060
|
+
"type": "Partial<OpenAI.Responses.ResponseCreateParamsStreaming>",
|
|
23061
|
+
"description": "Additional parameters for the streaming response"
|
|
23030
23062
|
}
|
|
23031
23063
|
},
|
|
23032
23064
|
"required": [
|
|
23033
|
-
"
|
|
23034
|
-
"password"
|
|
23065
|
+
"input"
|
|
23035
23066
|
],
|
|
23036
|
-
"returns": "
|
|
23067
|
+
"returns": "Promise<AsyncIterable<OpenAI.Responses.ResponseStreamEvent>>",
|
|
23068
|
+
"examples": [
|
|
23069
|
+
{
|
|
23070
|
+
"language": "ts",
|
|
23071
|
+
"code": "const stream = await openai.streamResponse('Write a poem')\nfor await (const event of stream) {\n if (event.type === 'response.output_text.delta') {\n process.stdout.write(event.delta)\n }\n}"
|
|
23072
|
+
}
|
|
23073
|
+
]
|
|
23037
23074
|
},
|
|
23038
|
-
"
|
|
23039
|
-
"description": "Create a
|
|
23075
|
+
"createCompletion": {
|
|
23076
|
+
"description": "Create a legacy text completion.",
|
|
23040
23077
|
"parameters": {
|
|
23041
|
-
"
|
|
23078
|
+
"prompt": {
|
|
23042
23079
|
"type": "string",
|
|
23043
|
-
"description": "
|
|
23080
|
+
"description": "The text prompt to complete"
|
|
23044
23081
|
},
|
|
23045
|
-
"
|
|
23046
|
-
"type": "
|
|
23047
|
-
"description": "
|
|
23082
|
+
"options": {
|
|
23083
|
+
"type": "Partial<OpenAI.Completions.CompletionCreateParams>",
|
|
23084
|
+
"description": "Additional parameters for the completion"
|
|
23048
23085
|
}
|
|
23049
23086
|
},
|
|
23050
23087
|
"required": [
|
|
23051
|
-
"
|
|
23052
|
-
"password"
|
|
23088
|
+
"prompt"
|
|
23053
23089
|
],
|
|
23054
|
-
"returns": "
|
|
23055
|
-
|
|
23056
|
-
|
|
23057
|
-
|
|
23058
|
-
|
|
23059
|
-
|
|
23060
|
-
|
|
23061
|
-
},
|
|
23062
|
-
"getSession": {
|
|
23063
|
-
"description": "Get the current session, if any.",
|
|
23064
|
-
"parameters": {},
|
|
23065
|
-
"required": [],
|
|
23066
|
-
"returns": "void"
|
|
23067
|
-
},
|
|
23068
|
-
"getUser": {
|
|
23069
|
-
"description": "Get the current user, if any.",
|
|
23070
|
-
"parameters": {},
|
|
23071
|
-
"required": [],
|
|
23072
|
-
"returns": "void"
|
|
23090
|
+
"returns": "Promise<OpenAI.Completions.Completion>",
|
|
23091
|
+
"examples": [
|
|
23092
|
+
{
|
|
23093
|
+
"language": "ts",
|
|
23094
|
+
"code": "const response = await openai.createCompletion('Once upon a time')"
|
|
23095
|
+
}
|
|
23096
|
+
]
|
|
23073
23097
|
},
|
|
23074
|
-
"
|
|
23075
|
-
"description": "
|
|
23098
|
+
"createEmbedding": {
|
|
23099
|
+
"description": "Create text embeddings for semantic search or similarity comparisons.",
|
|
23076
23100
|
"parameters": {
|
|
23077
|
-
"
|
|
23078
|
-
"type": "string",
|
|
23079
|
-
"description": "
|
|
23101
|
+
"input": {
|
|
23102
|
+
"type": "string | string[]",
|
|
23103
|
+
"description": "A string or array of strings to embed"
|
|
23080
23104
|
},
|
|
23081
|
-
"
|
|
23082
|
-
"type": "
|
|
23083
|
-
"description": "
|
|
23105
|
+
"options": {
|
|
23106
|
+
"type": "Partial<OpenAI.Embeddings.EmbeddingCreateParams>",
|
|
23107
|
+
"description": "Additional parameters (model, etc.)"
|
|
23084
23108
|
}
|
|
23085
23109
|
},
|
|
23086
23110
|
"required": [
|
|
23087
|
-
"
|
|
23111
|
+
"input"
|
|
23088
23112
|
],
|
|
23089
|
-
"returns": "
|
|
23113
|
+
"returns": "Promise<OpenAI.Embeddings.CreateEmbeddingResponse>",
|
|
23114
|
+
"examples": [
|
|
23115
|
+
{
|
|
23116
|
+
"language": "ts",
|
|
23117
|
+
"code": "const response = await openai.createEmbedding('Hello world')\nconsole.log(response.data[0].embedding.length)"
|
|
23118
|
+
}
|
|
23119
|
+
]
|
|
23090
23120
|
},
|
|
23091
|
-
"
|
|
23092
|
-
"description": "
|
|
23121
|
+
"createImage": {
|
|
23122
|
+
"description": "Generate an image from a text prompt using DALL-E.",
|
|
23093
23123
|
"parameters": {
|
|
23094
|
-
"
|
|
23124
|
+
"prompt": {
|
|
23095
23125
|
"type": "string",
|
|
23096
|
-
"description": "
|
|
23126
|
+
"description": "Description of the image to generate"
|
|
23097
23127
|
},
|
|
23098
|
-
"
|
|
23128
|
+
"options": {
|
|
23129
|
+
"type": "Partial<OpenAI.Images.ImageGenerateParams>",
|
|
23130
|
+
"description": "Additional parameters (size, n, etc.)"
|
|
23131
|
+
}
|
|
23132
|
+
},
|
|
23133
|
+
"required": [
|
|
23134
|
+
"prompt"
|
|
23135
|
+
],
|
|
23136
|
+
"returns": "Promise<OpenAI.Images.ImagesResponse>",
|
|
23137
|
+
"examples": [
|
|
23138
|
+
{
|
|
23139
|
+
"language": "ts",
|
|
23140
|
+
"code": "const response = await openai.createImage('A sunset over mountains')\nconsole.log(response.data[0].url)"
|
|
23141
|
+
}
|
|
23142
|
+
]
|
|
23143
|
+
},
|
|
23144
|
+
"listModels": {
|
|
23145
|
+
"description": "List all available models.",
|
|
23146
|
+
"parameters": {},
|
|
23147
|
+
"required": [],
|
|
23148
|
+
"returns": "Promise<OpenAI.Models.ModelsPage>",
|
|
23149
|
+
"examples": [
|
|
23150
|
+
{
|
|
23151
|
+
"language": "ts",
|
|
23152
|
+
"code": "const models = await openai.listModels()"
|
|
23153
|
+
}
|
|
23154
|
+
]
|
|
23155
|
+
},
|
|
23156
|
+
"ask": {
|
|
23157
|
+
"description": "Ask a single question and get a text response. Convenience wrapper around `createChatCompletion` for simple Q&A.",
|
|
23158
|
+
"parameters": {
|
|
23159
|
+
"question": {
|
|
23099
23160
|
"type": "string",
|
|
23100
|
-
"description": "The
|
|
23101
|
-
},
|
|
23102
|
-
"callback": {
|
|
23103
|
-
"type": "(payload: any) => void",
|
|
23104
|
-
"description": "Called with the payload on each change"
|
|
23161
|
+
"description": "The question to ask"
|
|
23105
23162
|
},
|
|
23106
|
-
"
|
|
23107
|
-
"type": "
|
|
23108
|
-
"description": "
|
|
23163
|
+
"options": {
|
|
23164
|
+
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
23165
|
+
"description": "Additional completion parameters"
|
|
23109
23166
|
}
|
|
23110
23167
|
},
|
|
23111
23168
|
"required": [
|
|
23112
|
-
"
|
|
23113
|
-
"table",
|
|
23114
|
-
"callback"
|
|
23169
|
+
"question"
|
|
23115
23170
|
],
|
|
23116
|
-
"returns": "
|
|
23171
|
+
"returns": "Promise<string>",
|
|
23172
|
+
"examples": [
|
|
23173
|
+
{
|
|
23174
|
+
"language": "ts",
|
|
23175
|
+
"code": "const answer = await openai.ask('What is 2 + 2?')\nconsole.log(answer) // '4'"
|
|
23176
|
+
}
|
|
23177
|
+
]
|
|
23117
23178
|
},
|
|
23118
|
-
"
|
|
23119
|
-
"description": "
|
|
23179
|
+
"chat": {
|
|
23180
|
+
"description": "Send a multi-turn conversation and get a text response. Convenience wrapper around `createChatCompletion` that returns just the text.",
|
|
23120
23181
|
"parameters": {
|
|
23121
|
-
"
|
|
23122
|
-
"type": "
|
|
23123
|
-
"description": "
|
|
23182
|
+
"messages": {
|
|
23183
|
+
"type": "OpenAI.Chat.Completions.ChatCompletionMessageParam[]",
|
|
23184
|
+
"description": "Array of chat messages"
|
|
23185
|
+
},
|
|
23186
|
+
"options": {
|
|
23187
|
+
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
23188
|
+
"description": "Additional completion parameters"
|
|
23124
23189
|
}
|
|
23125
23190
|
},
|
|
23126
23191
|
"required": [
|
|
23127
|
-
"
|
|
23192
|
+
"messages"
|
|
23128
23193
|
],
|
|
23129
|
-
"returns": "
|
|
23130
|
-
|
|
23131
|
-
|
|
23132
|
-
|
|
23133
|
-
|
|
23134
|
-
|
|
23135
|
-
|
|
23136
|
-
},
|
|
23137
|
-
"connect": {
|
|
23138
|
-
"description": "Connect is a no-op since the Supabase SDK initializes on construction. The client is ready to use immediately after creation.",
|
|
23139
|
-
"parameters": {},
|
|
23140
|
-
"required": [],
|
|
23141
|
-
"returns": "void"
|
|
23142
|
-
},
|
|
23143
|
-
"disconnect": {
|
|
23144
|
-
"description": "Disconnect by signing out and removing all realtime channels.",
|
|
23145
|
-
"parameters": {},
|
|
23146
|
-
"required": [],
|
|
23147
|
-
"returns": "void"
|
|
23194
|
+
"returns": "Promise<string>",
|
|
23195
|
+
"examples": [
|
|
23196
|
+
{
|
|
23197
|
+
"language": "ts",
|
|
23198
|
+
"code": "const reply = await openai.chat([\n { role: 'system', content: 'You are a pirate.' },\n { role: 'user', content: 'Hello!' }\n])"
|
|
23199
|
+
}
|
|
23200
|
+
]
|
|
23148
23201
|
}
|
|
23149
23202
|
},
|
|
23150
23203
|
"getters": {
|
|
23151
|
-
"
|
|
23152
|
-
"description": "
|
|
23153
|
-
"returns": "
|
|
23204
|
+
"defaultModel": {
|
|
23205
|
+
"description": "The default model used for completions, from options or 'gpt-4o'.",
|
|
23206
|
+
"returns": "string"
|
|
23154
23207
|
},
|
|
23155
|
-
"
|
|
23156
|
-
"description": "
|
|
23157
|
-
"returns": "
|
|
23208
|
+
"raw": {
|
|
23209
|
+
"description": "The underlying OpenAI SDK instance for advanced use cases.",
|
|
23210
|
+
"returns": "OpenAI"
|
|
23211
|
+
}
|
|
23212
|
+
},
|
|
23213
|
+
"events": {
|
|
23214
|
+
"connected": {
|
|
23215
|
+
"name": "connected",
|
|
23216
|
+
"description": "Event emitted by OpenAIClient",
|
|
23217
|
+
"arguments": {}
|
|
23158
23218
|
},
|
|
23159
|
-
"
|
|
23160
|
-
"
|
|
23161
|
-
"
|
|
23219
|
+
"failure": {
|
|
23220
|
+
"name": "failure",
|
|
23221
|
+
"description": "Event emitted by OpenAIClient",
|
|
23222
|
+
"arguments": {}
|
|
23223
|
+
},
|
|
23224
|
+
"completion": {
|
|
23225
|
+
"name": "completion",
|
|
23226
|
+
"description": "Event emitted by OpenAIClient",
|
|
23227
|
+
"arguments": {}
|
|
23228
|
+
},
|
|
23229
|
+
"embedding": {
|
|
23230
|
+
"name": "embedding",
|
|
23231
|
+
"description": "Event emitted by OpenAIClient",
|
|
23232
|
+
"arguments": {}
|
|
23233
|
+
},
|
|
23234
|
+
"image": {
|
|
23235
|
+
"name": "image",
|
|
23236
|
+
"description": "Event emitted by OpenAIClient",
|
|
23237
|
+
"arguments": {}
|
|
23238
|
+
},
|
|
23239
|
+
"models": {
|
|
23240
|
+
"name": "models",
|
|
23241
|
+
"description": "Event emitted by OpenAIClient",
|
|
23242
|
+
"arguments": {}
|
|
23162
23243
|
}
|
|
23163
23244
|
},
|
|
23164
|
-
"events": {},
|
|
23165
23245
|
"state": {},
|
|
23166
23246
|
"options": {},
|
|
23167
23247
|
"envVars": [],
|
|
23168
23248
|
"examples": [
|
|
23169
23249
|
{
|
|
23170
23250
|
"language": "ts",
|
|
23171
|
-
"code": "const
|
|
23251
|
+
"code": "const openai = container.client('openai', { defaultModel: 'gpt-4o' })\nconst answer = await openai.ask('What is the meaning of life?')\nconsole.log(answer)"
|
|
23172
23252
|
}
|
|
23173
23253
|
]
|
|
23174
23254
|
},
|
|
@@ -23374,510 +23454,438 @@ export const introspectionData = [
|
|
|
23374
23454
|
]
|
|
23375
23455
|
},
|
|
23376
23456
|
{
|
|
23377
|
-
"id": "clients.
|
|
23378
|
-
"description": "
|
|
23379
|
-
"shortcut": "clients.
|
|
23380
|
-
"className": "
|
|
23457
|
+
"id": "clients.supabase",
|
|
23458
|
+
"description": "Supabase client for the Luca container system. Wraps the official `@supabase/supabase-js` SDK and exposes it through Luca's typed state, events, and introspection system. The SDK is isomorphic so this single implementation works in both Node and browser containers. Use `client.sdk` for full SDK access, or use the convenience wrappers for common operations (auth, database queries, storage, edge functions, realtime).",
|
|
23459
|
+
"shortcut": "clients.supabase",
|
|
23460
|
+
"className": "SupabaseClient",
|
|
23381
23461
|
"methods": {
|
|
23382
|
-
"
|
|
23383
|
-
"description": "
|
|
23462
|
+
"from": {
|
|
23463
|
+
"description": "Start a query on a Postgres table or view.",
|
|
23384
23464
|
"parameters": {
|
|
23385
|
-
"
|
|
23386
|
-
"type": "Record<string, any>",
|
|
23387
|
-
"description": "The API-format workflow object"
|
|
23388
|
-
},
|
|
23389
|
-
"clientId": {
|
|
23465
|
+
"table": {
|
|
23390
23466
|
"type": "string",
|
|
23391
|
-
"description": "
|
|
23467
|
+
"description": "The table or view name to query"
|
|
23392
23468
|
}
|
|
23393
23469
|
},
|
|
23394
23470
|
"required": [
|
|
23395
|
-
"
|
|
23471
|
+
"table"
|
|
23396
23472
|
],
|
|
23397
|
-
"returns": "
|
|
23398
|
-
"examples": [
|
|
23399
|
-
{
|
|
23400
|
-
"language": "ts",
|
|
23401
|
-
"code": "const { prompt_id } = await comfy.queuePrompt(apiWorkflow)"
|
|
23402
|
-
}
|
|
23403
|
-
]
|
|
23404
|
-
},
|
|
23405
|
-
"getQueue": {
|
|
23406
|
-
"description": "Get the current prompt queue status.",
|
|
23407
|
-
"parameters": {},
|
|
23408
|
-
"required": [],
|
|
23409
|
-
"returns": "Promise<{ queue_running: any[]; queue_pending: any[] }>"
|
|
23410
|
-
},
|
|
23411
|
-
"getHistory": {
|
|
23412
|
-
"description": "Get execution history, optionally for a specific prompt.",
|
|
23413
|
-
"parameters": {
|
|
23414
|
-
"promptId": {
|
|
23415
|
-
"type": "string",
|
|
23416
|
-
"description": "If provided, returns history for this prompt only"
|
|
23417
|
-
}
|
|
23418
|
-
},
|
|
23419
|
-
"required": [],
|
|
23420
|
-
"returns": "Promise<Record<string, any>>"
|
|
23421
|
-
},
|
|
23422
|
-
"getSystemStats": {
|
|
23423
|
-
"description": "Get system stats including GPU memory and queue info.",
|
|
23424
|
-
"parameters": {},
|
|
23425
|
-
"required": [],
|
|
23426
|
-
"returns": "Promise<any>"
|
|
23473
|
+
"returns": "void"
|
|
23427
23474
|
},
|
|
23428
|
-
"
|
|
23429
|
-
"description": "
|
|
23475
|
+
"rpc": {
|
|
23476
|
+
"description": "Call a Postgres function (RPC).",
|
|
23430
23477
|
"parameters": {
|
|
23431
|
-
"
|
|
23478
|
+
"fn": {
|
|
23432
23479
|
"type": "string",
|
|
23433
|
-
"description": "
|
|
23480
|
+
"description": "The function name"
|
|
23481
|
+
},
|
|
23482
|
+
"params": {
|
|
23483
|
+
"type": "Record<string, unknown>",
|
|
23484
|
+
"description": "Arguments to pass to the function"
|
|
23485
|
+
},
|
|
23486
|
+
"options": {
|
|
23487
|
+
"type": "{ head?: boolean; get?: boolean; count?: \"exact\" | \"planned\" | \"estimated\" }",
|
|
23488
|
+
"description": "Optional settings (head, get, count)"
|
|
23434
23489
|
}
|
|
23435
23490
|
},
|
|
23436
|
-
"required": [
|
|
23437
|
-
|
|
23438
|
-
|
|
23439
|
-
|
|
23440
|
-
"description": "Interrupt the currently executing prompt.",
|
|
23441
|
-
"parameters": {},
|
|
23442
|
-
"required": [],
|
|
23443
|
-
"returns": "Promise<void>"
|
|
23491
|
+
"required": [
|
|
23492
|
+
"fn"
|
|
23493
|
+
],
|
|
23494
|
+
"returns": "void"
|
|
23444
23495
|
},
|
|
23445
|
-
"
|
|
23446
|
-
"description": "
|
|
23496
|
+
"signInWithPassword": {
|
|
23497
|
+
"description": "Sign in with email and password.",
|
|
23447
23498
|
"parameters": {
|
|
23448
|
-
"
|
|
23499
|
+
"email": {
|
|
23449
23500
|
"type": "string",
|
|
23450
|
-
"description": "
|
|
23451
|
-
}
|
|
23452
|
-
},
|
|
23453
|
-
"required": [],
|
|
23454
|
-
"returns": "Promise<string[]>"
|
|
23455
|
-
},
|
|
23456
|
-
"getEmbeddings": {
|
|
23457
|
-
"description": "List available embedding models.",
|
|
23458
|
-
"parameters": {},
|
|
23459
|
-
"required": [],
|
|
23460
|
-
"returns": "Promise<string[]>"
|
|
23461
|
-
},
|
|
23462
|
-
"uploadImage": {
|
|
23463
|
-
"description": "Upload an image to ComfyUI's input directory.",
|
|
23464
|
-
"parameters": {
|
|
23465
|
-
"file": {
|
|
23466
|
-
"type": "Buffer | Blob",
|
|
23467
|
-
"description": "The image data as Buffer or Blob"
|
|
23501
|
+
"description": "Parameter email"
|
|
23468
23502
|
},
|
|
23469
|
-
"
|
|
23503
|
+
"password": {
|
|
23470
23504
|
"type": "string",
|
|
23471
|
-
"description": "
|
|
23472
|
-
},
|
|
23473
|
-
"opts": {
|
|
23474
|
-
"type": "{ subfolder?: string; type?: string; overwrite?: boolean }",
|
|
23475
|
-
"description": "Upload options (subfolder, type, overwrite)"
|
|
23505
|
+
"description": "Parameter password"
|
|
23476
23506
|
}
|
|
23477
23507
|
},
|
|
23478
23508
|
"required": [
|
|
23479
|
-
"
|
|
23480
|
-
"
|
|
23509
|
+
"email",
|
|
23510
|
+
"password"
|
|
23481
23511
|
],
|
|
23482
|
-
"returns": "
|
|
23512
|
+
"returns": "void"
|
|
23483
23513
|
},
|
|
23484
|
-
"
|
|
23485
|
-
"description": "
|
|
23514
|
+
"signUp": {
|
|
23515
|
+
"description": "Create a new user account with email and password.",
|
|
23486
23516
|
"parameters": {
|
|
23487
|
-
"
|
|
23517
|
+
"email": {
|
|
23488
23518
|
"type": "string",
|
|
23489
|
-
"description": "
|
|
23490
|
-
},
|
|
23491
|
-
"subfolder": {
|
|
23492
|
-
"type": "any",
|
|
23493
|
-
"description": "Subfolder within the output directory"
|
|
23519
|
+
"description": "Parameter email"
|
|
23494
23520
|
},
|
|
23495
|
-
"
|
|
23496
|
-
"type": "
|
|
23497
|
-
"description": "
|
|
23521
|
+
"password": {
|
|
23522
|
+
"type": "string",
|
|
23523
|
+
"description": "Parameter password"
|
|
23498
23524
|
}
|
|
23499
23525
|
},
|
|
23500
23526
|
"required": [
|
|
23501
|
-
"
|
|
23527
|
+
"email",
|
|
23528
|
+
"password"
|
|
23502
23529
|
],
|
|
23503
|
-
"returns": "
|
|
23530
|
+
"returns": "void"
|
|
23531
|
+
},
|
|
23532
|
+
"signOut": {
|
|
23533
|
+
"description": "Sign the current user out.",
|
|
23534
|
+
"parameters": {},
|
|
23535
|
+
"required": [],
|
|
23536
|
+
"returns": "void"
|
|
23504
23537
|
},
|
|
23505
|
-
"
|
|
23506
|
-
"description": "
|
|
23538
|
+
"getSession": {
|
|
23539
|
+
"description": "Get the current session, if any.",
|
|
23507
23540
|
"parameters": {},
|
|
23508
23541
|
"required": [],
|
|
23509
|
-
"returns": "
|
|
23542
|
+
"returns": "void"
|
|
23510
23543
|
},
|
|
23511
|
-
"
|
|
23512
|
-
"description": "
|
|
23544
|
+
"getUser": {
|
|
23545
|
+
"description": "Get the current user, if any.",
|
|
23513
23546
|
"parameters": {},
|
|
23514
23547
|
"required": [],
|
|
23515
23548
|
"returns": "void"
|
|
23516
23549
|
},
|
|
23517
|
-
"
|
|
23518
|
-
"description": "
|
|
23550
|
+
"invoke": {
|
|
23551
|
+
"description": "Invoke a Supabase Edge Function by name.",
|
|
23519
23552
|
"parameters": {
|
|
23520
|
-
"
|
|
23521
|
-
"type": "
|
|
23522
|
-
"description": "Parameter
|
|
23553
|
+
"name": {
|
|
23554
|
+
"type": "string",
|
|
23555
|
+
"description": "Parameter name"
|
|
23556
|
+
},
|
|
23557
|
+
"body": {
|
|
23558
|
+
"type": "any",
|
|
23559
|
+
"description": "Parameter body"
|
|
23523
23560
|
}
|
|
23524
23561
|
},
|
|
23525
23562
|
"required": [
|
|
23526
|
-
"
|
|
23563
|
+
"name"
|
|
23527
23564
|
],
|
|
23528
|
-
"returns": "
|
|
23565
|
+
"returns": "void"
|
|
23529
23566
|
},
|
|
23530
|
-
"
|
|
23531
|
-
"description": "
|
|
23567
|
+
"subscribe": {
|
|
23568
|
+
"description": "Subscribe to realtime changes on a Postgres table.",
|
|
23532
23569
|
"parameters": {
|
|
23533
|
-
"
|
|
23534
|
-
"type": "
|
|
23535
|
-
"description": "
|
|
23570
|
+
"channelName": {
|
|
23571
|
+
"type": "string",
|
|
23572
|
+
"description": "A name for this subscription channel"
|
|
23536
23573
|
},
|
|
23537
|
-
"
|
|
23538
|
-
"type": "
|
|
23539
|
-
"description": "
|
|
23574
|
+
"table": {
|
|
23575
|
+
"type": "string",
|
|
23576
|
+
"description": "The table to listen to"
|
|
23540
23577
|
},
|
|
23541
|
-
"
|
|
23542
|
-
"type": "
|
|
23543
|
-
"description": "
|
|
23544
|
-
|
|
23545
|
-
|
|
23546
|
-
|
|
23547
|
-
|
|
23548
|
-
},
|
|
23549
|
-
"pollInterval": {
|
|
23550
|
-
"type": "number",
|
|
23551
|
-
"description": "Polling interval in ms (default 1000)"
|
|
23552
|
-
},
|
|
23553
|
-
"inputMap": {
|
|
23554
|
-
"type": "InputMapping",
|
|
23555
|
-
"description": "Named input mapping: semantic name -> { nodeId, field }"
|
|
23556
|
-
},
|
|
23557
|
-
"outputDir": {
|
|
23558
|
-
"type": "string",
|
|
23559
|
-
"description": "If provided, output images are downloaded to this directory"
|
|
23560
|
-
}
|
|
23561
|
-
}
|
|
23578
|
+
"callback": {
|
|
23579
|
+
"type": "(payload: any) => void",
|
|
23580
|
+
"description": "Called with the payload on each change"
|
|
23581
|
+
},
|
|
23582
|
+
"event": {
|
|
23583
|
+
"type": "\"INSERT\" | \"UPDATE\" | \"DELETE\" | \"*\"",
|
|
23584
|
+
"description": "The event type to listen for (default: all changes)"
|
|
23562
23585
|
}
|
|
23563
23586
|
},
|
|
23564
23587
|
"required": [
|
|
23565
|
-
"
|
|
23588
|
+
"channelName",
|
|
23589
|
+
"table",
|
|
23590
|
+
"callback"
|
|
23566
23591
|
],
|
|
23567
|
-
"returns": "
|
|
23568
|
-
}
|
|
23569
|
-
},
|
|
23570
|
-
"getters": {
|
|
23571
|
-
"clientId": {
|
|
23572
|
-
"description": "The unique client ID used for WebSocket session tracking.",
|
|
23573
|
-
"returns": "string"
|
|
23574
|
-
},
|
|
23575
|
-
"wsURL": {
|
|
23576
|
-
"description": "The WebSocket URL derived from baseURL or overridden via options.",
|
|
23577
|
-
"returns": "string"
|
|
23578
|
-
}
|
|
23579
|
-
},
|
|
23580
|
-
"events": {
|
|
23581
|
-
"execution_start": {
|
|
23582
|
-
"name": "execution_start",
|
|
23583
|
-
"description": "Event emitted by ComfyUIClient",
|
|
23584
|
-
"arguments": {}
|
|
23592
|
+
"returns": "RealtimeChannel"
|
|
23585
23593
|
},
|
|
23586
|
-
"
|
|
23587
|
-
"
|
|
23588
|
-
"
|
|
23589
|
-
|
|
23594
|
+
"unsubscribe": {
|
|
23595
|
+
"description": "Unsubscribe and remove a realtime channel by name.",
|
|
23596
|
+
"parameters": {
|
|
23597
|
+
"channelName": {
|
|
23598
|
+
"type": "string",
|
|
23599
|
+
"description": "The channel name to remove"
|
|
23600
|
+
}
|
|
23601
|
+
},
|
|
23602
|
+
"required": [
|
|
23603
|
+
"channelName"
|
|
23604
|
+
],
|
|
23605
|
+
"returns": "void"
|
|
23590
23606
|
},
|
|
23591
|
-
"
|
|
23592
|
-
"
|
|
23593
|
-
"
|
|
23594
|
-
"
|
|
23607
|
+
"unsubscribeAll": {
|
|
23608
|
+
"description": "Unsubscribe and remove all realtime channels.",
|
|
23609
|
+
"parameters": {},
|
|
23610
|
+
"required": [],
|
|
23611
|
+
"returns": "void"
|
|
23595
23612
|
},
|
|
23596
|
-
"
|
|
23597
|
-
"
|
|
23598
|
-
"
|
|
23599
|
-
"
|
|
23613
|
+
"connect": {
|
|
23614
|
+
"description": "Connect is a no-op since the Supabase SDK initializes on construction. The client is ready to use immediately after creation.",
|
|
23615
|
+
"parameters": {},
|
|
23616
|
+
"required": [],
|
|
23617
|
+
"returns": "void"
|
|
23600
23618
|
},
|
|
23601
|
-
"
|
|
23602
|
-
"
|
|
23603
|
-
"
|
|
23604
|
-
"
|
|
23619
|
+
"disconnect": {
|
|
23620
|
+
"description": "Disconnect by signing out and removing all realtime channels.",
|
|
23621
|
+
"parameters": {},
|
|
23622
|
+
"required": [],
|
|
23623
|
+
"returns": "void"
|
|
23624
|
+
}
|
|
23625
|
+
},
|
|
23626
|
+
"getters": {
|
|
23627
|
+
"sdk": {
|
|
23628
|
+
"description": "Returns the raw Supabase SDK client for full access to all SDK methods.",
|
|
23629
|
+
"returns": "SupabaseSDKClient<any, any>"
|
|
23605
23630
|
},
|
|
23606
|
-
"
|
|
23607
|
-
"
|
|
23608
|
-
"
|
|
23609
|
-
"arguments": {}
|
|
23631
|
+
"storage": {
|
|
23632
|
+
"description": "Returns the Supabase Storage client for managing buckets and files.",
|
|
23633
|
+
"returns": "any"
|
|
23610
23634
|
},
|
|
23611
|
-
"
|
|
23612
|
-
"
|
|
23613
|
-
"
|
|
23614
|
-
"arguments": {}
|
|
23635
|
+
"functions": {
|
|
23636
|
+
"description": "Returns the Supabase Functions client.",
|
|
23637
|
+
"returns": "any"
|
|
23615
23638
|
}
|
|
23616
23639
|
},
|
|
23640
|
+
"events": {},
|
|
23617
23641
|
"state": {},
|
|
23618
23642
|
"options": {},
|
|
23619
23643
|
"envVars": [],
|
|
23620
23644
|
"examples": [
|
|
23621
23645
|
{
|
|
23622
23646
|
"language": "ts",
|
|
23623
|
-
"code": "const
|
|
23647
|
+
"code": "const supabase = container.client('supabase', {\n supabaseUrl: 'https://xyz.supabase.co',\n supabaseKey: 'your-anon-key',\n})\n\n// Query data\nconst { data } = await supabase.from('users').select('*')\n\n// Auth\nawait supabase.signInWithPassword('user@example.com', 'password')\n\n// Realtime\nsupabase.subscribe('changes', 'users', (payload) => {\n console.log('Change:', payload)\n})"
|
|
23624
23648
|
}
|
|
23625
23649
|
]
|
|
23626
23650
|
},
|
|
23627
23651
|
{
|
|
23628
|
-
"id": "clients.
|
|
23629
|
-
"description": "
|
|
23630
|
-
"shortcut": "clients.
|
|
23631
|
-
"className": "
|
|
23652
|
+
"id": "clients.comfyui",
|
|
23653
|
+
"description": "ComfyUI client — execute Stable Diffusion workflows via the ComfyUI API. Connects to a ComfyUI instance to queue prompts, track execution via WebSocket or polling, and download generated images. Supports both UI-format and API-format workflows with automatic conversion.",
|
|
23654
|
+
"shortcut": "clients.comfyui",
|
|
23655
|
+
"className": "ComfyUIClient",
|
|
23632
23656
|
"methods": {
|
|
23633
|
-
"
|
|
23634
|
-
"description": "
|
|
23635
|
-
"parameters": {},
|
|
23636
|
-
"required": [],
|
|
23637
|
-
"returns": "Promise<this>",
|
|
23638
|
-
"examples": [
|
|
23639
|
-
{
|
|
23640
|
-
"language": "ts",
|
|
23641
|
-
"code": "await openai.connect()"
|
|
23642
|
-
}
|
|
23643
|
-
]
|
|
23644
|
-
},
|
|
23645
|
-
"createChatCompletion": {
|
|
23646
|
-
"description": "Create a chat completion using the Chat Completions API.",
|
|
23657
|
+
"queuePrompt": {
|
|
23658
|
+
"description": "Queue a prompt (API-format workflow) for execution.",
|
|
23647
23659
|
"parameters": {
|
|
23648
|
-
"
|
|
23649
|
-
"type": "
|
|
23650
|
-
"description": "
|
|
23660
|
+
"prompt": {
|
|
23661
|
+
"type": "Record<string, any>",
|
|
23662
|
+
"description": "The API-format workflow object"
|
|
23651
23663
|
},
|
|
23652
|
-
"
|
|
23653
|
-
"type": "
|
|
23654
|
-
"description": "
|
|
23664
|
+
"clientId": {
|
|
23665
|
+
"type": "string",
|
|
23666
|
+
"description": "Override the client ID for this request"
|
|
23655
23667
|
}
|
|
23656
23668
|
},
|
|
23657
23669
|
"required": [
|
|
23658
|
-
"
|
|
23670
|
+
"prompt"
|
|
23659
23671
|
],
|
|
23660
|
-
"returns": "Promise<
|
|
23672
|
+
"returns": "Promise<{ prompt_id: string; number: number }>",
|
|
23661
23673
|
"examples": [
|
|
23662
23674
|
{
|
|
23663
23675
|
"language": "ts",
|
|
23664
|
-
"code": "const
|
|
23676
|
+
"code": "const { prompt_id } = await comfy.queuePrompt(apiWorkflow)"
|
|
23665
23677
|
}
|
|
23666
23678
|
]
|
|
23667
23679
|
},
|
|
23668
|
-
"
|
|
23669
|
-
"description": "
|
|
23680
|
+
"getQueue": {
|
|
23681
|
+
"description": "Get the current prompt queue status.",
|
|
23682
|
+
"parameters": {},
|
|
23683
|
+
"required": [],
|
|
23684
|
+
"returns": "Promise<{ queue_running: any[]; queue_pending: any[] }>"
|
|
23685
|
+
},
|
|
23686
|
+
"getHistory": {
|
|
23687
|
+
"description": "Get execution history, optionally for a specific prompt.",
|
|
23670
23688
|
"parameters": {
|
|
23671
|
-
"
|
|
23672
|
-
"type": "
|
|
23673
|
-
"description": "
|
|
23674
|
-
},
|
|
23675
|
-
"options": {
|
|
23676
|
-
"type": "Partial<OpenAI.Responses.ResponseCreateParamsNonStreaming>",
|
|
23677
|
-
"description": "Additional parameters for the response"
|
|
23689
|
+
"promptId": {
|
|
23690
|
+
"type": "string",
|
|
23691
|
+
"description": "If provided, returns history for this prompt only"
|
|
23678
23692
|
}
|
|
23679
23693
|
},
|
|
23680
|
-
"required": [
|
|
23681
|
-
|
|
23682
|
-
],
|
|
23683
|
-
"returns": "Promise<OpenAI.Responses.Response>",
|
|
23684
|
-
"examples": [
|
|
23685
|
-
{
|
|
23686
|
-
"language": "ts",
|
|
23687
|
-
"code": "const response = await openai.createResponse('Explain quantum computing')"
|
|
23688
|
-
}
|
|
23689
|
-
]
|
|
23694
|
+
"required": [],
|
|
23695
|
+
"returns": "Promise<Record<string, any>>"
|
|
23690
23696
|
},
|
|
23691
|
-
"
|
|
23692
|
-
"description": "
|
|
23693
|
-
"parameters": {
|
|
23694
|
-
|
|
23695
|
-
|
|
23696
|
-
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
|
|
23700
|
-
|
|
23697
|
+
"getSystemStats": {
|
|
23698
|
+
"description": "Get system stats including GPU memory and queue info.",
|
|
23699
|
+
"parameters": {},
|
|
23700
|
+
"required": [],
|
|
23701
|
+
"returns": "Promise<any>"
|
|
23702
|
+
},
|
|
23703
|
+
"getObjectInfo": {
|
|
23704
|
+
"description": "Get node type info with input/output schemas.",
|
|
23705
|
+
"parameters": {
|
|
23706
|
+
"nodeClass": {
|
|
23707
|
+
"type": "string",
|
|
23708
|
+
"description": "If provided, returns info for this node type only"
|
|
23701
23709
|
}
|
|
23702
23710
|
},
|
|
23703
|
-
"required": [
|
|
23704
|
-
|
|
23705
|
-
],
|
|
23706
|
-
"returns": "Promise<AsyncIterable<OpenAI.Responses.ResponseStreamEvent>>",
|
|
23707
|
-
"examples": [
|
|
23708
|
-
{
|
|
23709
|
-
"language": "ts",
|
|
23710
|
-
"code": "const stream = await openai.streamResponse('Write a poem')\nfor await (const event of stream) {\n if (event.type === 'response.output_text.delta') {\n process.stdout.write(event.delta)\n }\n}"
|
|
23711
|
-
}
|
|
23712
|
-
]
|
|
23711
|
+
"required": [],
|
|
23712
|
+
"returns": "Promise<any>"
|
|
23713
23713
|
},
|
|
23714
|
-
"
|
|
23715
|
-
"description": "
|
|
23714
|
+
"interrupt": {
|
|
23715
|
+
"description": "Interrupt the currently executing prompt.",
|
|
23716
|
+
"parameters": {},
|
|
23717
|
+
"required": [],
|
|
23718
|
+
"returns": "Promise<void>"
|
|
23719
|
+
},
|
|
23720
|
+
"getModels": {
|
|
23721
|
+
"description": "List available models, optionally filtered by type.",
|
|
23716
23722
|
"parameters": {
|
|
23717
|
-
"
|
|
23723
|
+
"type": {
|
|
23718
23724
|
"type": "string",
|
|
23719
|
-
"description": "
|
|
23720
|
-
},
|
|
23721
|
-
"options": {
|
|
23722
|
-
"type": "Partial<OpenAI.Completions.CompletionCreateParams>",
|
|
23723
|
-
"description": "Additional parameters for the completion"
|
|
23725
|
+
"description": "Model type filter (e.g., 'checkpoints', 'loras')"
|
|
23724
23726
|
}
|
|
23725
23727
|
},
|
|
23726
|
-
"required": [
|
|
23727
|
-
|
|
23728
|
-
],
|
|
23729
|
-
"returns": "Promise<OpenAI.Completions.Completion>",
|
|
23730
|
-
"examples": [
|
|
23731
|
-
{
|
|
23732
|
-
"language": "ts",
|
|
23733
|
-
"code": "const response = await openai.createCompletion('Once upon a time')"
|
|
23734
|
-
}
|
|
23735
|
-
]
|
|
23728
|
+
"required": [],
|
|
23729
|
+
"returns": "Promise<string[]>"
|
|
23736
23730
|
},
|
|
23737
|
-
"
|
|
23738
|
-
"description": "
|
|
23731
|
+
"getEmbeddings": {
|
|
23732
|
+
"description": "List available embedding models.",
|
|
23733
|
+
"parameters": {},
|
|
23734
|
+
"required": [],
|
|
23735
|
+
"returns": "Promise<string[]>"
|
|
23736
|
+
},
|
|
23737
|
+
"uploadImage": {
|
|
23738
|
+
"description": "Upload an image to ComfyUI's input directory.",
|
|
23739
23739
|
"parameters": {
|
|
23740
|
-
"
|
|
23741
|
-
"type": "
|
|
23742
|
-
"description": "
|
|
23740
|
+
"file": {
|
|
23741
|
+
"type": "Buffer | Blob",
|
|
23742
|
+
"description": "The image data as Buffer or Blob"
|
|
23743
23743
|
},
|
|
23744
|
-
"
|
|
23745
|
-
"type": "
|
|
23746
|
-
"description": "
|
|
23744
|
+
"filename": {
|
|
23745
|
+
"type": "string",
|
|
23746
|
+
"description": "File name for the upload"
|
|
23747
|
+
},
|
|
23748
|
+
"opts": {
|
|
23749
|
+
"type": "{ subfolder?: string; type?: string; overwrite?: boolean }",
|
|
23750
|
+
"description": "Upload options (subfolder, type, overwrite)"
|
|
23747
23751
|
}
|
|
23748
23752
|
},
|
|
23749
23753
|
"required": [
|
|
23750
|
-
"
|
|
23754
|
+
"file",
|
|
23755
|
+
"filename"
|
|
23751
23756
|
],
|
|
23752
|
-
"returns": "Promise<
|
|
23753
|
-
"examples": [
|
|
23754
|
-
{
|
|
23755
|
-
"language": "ts",
|
|
23756
|
-
"code": "const response = await openai.createEmbedding('Hello world')\nconsole.log(response.data[0].embedding.length)"
|
|
23757
|
-
}
|
|
23758
|
-
]
|
|
23757
|
+
"returns": "Promise<any>"
|
|
23759
23758
|
},
|
|
23760
|
-
"
|
|
23761
|
-
"description": "
|
|
23759
|
+
"viewImage": {
|
|
23760
|
+
"description": "Download a generated image from ComfyUI as a Buffer.",
|
|
23762
23761
|
"parameters": {
|
|
23763
|
-
"
|
|
23762
|
+
"filename": {
|
|
23764
23763
|
"type": "string",
|
|
23765
|
-
"description": "
|
|
23764
|
+
"description": "The image filename"
|
|
23766
23765
|
},
|
|
23767
|
-
"
|
|
23768
|
-
"type": "
|
|
23769
|
-
"description": "
|
|
23766
|
+
"subfolder": {
|
|
23767
|
+
"type": "any",
|
|
23768
|
+
"description": "Subfolder within the output directory"
|
|
23769
|
+
},
|
|
23770
|
+
"type": {
|
|
23771
|
+
"type": "any",
|
|
23772
|
+
"description": "Image type ('output', 'input', 'temp')"
|
|
23770
23773
|
}
|
|
23771
23774
|
},
|
|
23772
23775
|
"required": [
|
|
23773
|
-
"
|
|
23776
|
+
"filename"
|
|
23774
23777
|
],
|
|
23775
|
-
"returns": "Promise<
|
|
23776
|
-
"examples": [
|
|
23777
|
-
{
|
|
23778
|
-
"language": "ts",
|
|
23779
|
-
"code": "const response = await openai.createImage('A sunset over mountains')\nconsole.log(response.data[0].url)"
|
|
23780
|
-
}
|
|
23781
|
-
]
|
|
23778
|
+
"returns": "Promise<Buffer>"
|
|
23782
23779
|
},
|
|
23783
|
-
"
|
|
23784
|
-
"description": "
|
|
23780
|
+
"connectWs": {
|
|
23781
|
+
"description": "Open a WebSocket connection to ComfyUI for real-time execution tracking. Events emitted: `execution_start`, `executing`, `progress`, `executed`, `execution_cached`, `execution_error`, `execution_complete`.",
|
|
23785
23782
|
"parameters": {},
|
|
23786
23783
|
"required": [],
|
|
23787
|
-
"returns": "Promise<
|
|
23788
|
-
"examples": [
|
|
23789
|
-
{
|
|
23790
|
-
"language": "ts",
|
|
23791
|
-
"code": "const models = await openai.listModels()"
|
|
23792
|
-
}
|
|
23793
|
-
]
|
|
23784
|
+
"returns": "Promise<void>"
|
|
23794
23785
|
},
|
|
23795
|
-
"
|
|
23796
|
-
"description": "
|
|
23786
|
+
"disconnectWs": {
|
|
23787
|
+
"description": "Close the WebSocket connection.",
|
|
23788
|
+
"parameters": {},
|
|
23789
|
+
"required": [],
|
|
23790
|
+
"returns": "void"
|
|
23791
|
+
},
|
|
23792
|
+
"toApiFormat": {
|
|
23793
|
+
"description": "Convert a UI-format workflow to the API format that /prompt expects. Requires a running ComfyUI instance to fetch `object_info` so we can map positional `widgets_values` to their named input fields. If the workflow is already in API format, it's returned as-is.",
|
|
23797
23794
|
"parameters": {
|
|
23798
|
-
"
|
|
23799
|
-
"type": "string",
|
|
23800
|
-
"description": "
|
|
23801
|
-
},
|
|
23802
|
-
"options": {
|
|
23803
|
-
"type": "Partial<OpenAI.Chat.Completions.ChatCompletionCreateParams>",
|
|
23804
|
-
"description": "Additional completion parameters"
|
|
23795
|
+
"workflow": {
|
|
23796
|
+
"type": "Record<string, any>",
|
|
23797
|
+
"description": "Parameter workflow"
|
|
23805
23798
|
}
|
|
23806
23799
|
},
|
|
23807
23800
|
"required": [
|
|
23808
|
-
"
|
|
23801
|
+
"workflow"
|
|
23809
23802
|
],
|
|
23810
|
-
"returns": "Promise<string
|
|
23811
|
-
"examples": [
|
|
23812
|
-
{
|
|
23813
|
-
"language": "ts",
|
|
23814
|
-
"code": "const answer = await openai.ask('What is 2 + 2?')\nconsole.log(answer) // '4'"
|
|
23815
|
-
}
|
|
23816
|
-
]
|
|
23803
|
+
"returns": "Promise<Record<string, any>>"
|
|
23817
23804
|
},
|
|
23818
|
-
"
|
|
23819
|
-
"description": "
|
|
23805
|
+
"runWorkflow": {
|
|
23806
|
+
"description": "Run a ComfyUI workflow with optional runtime input overrides. Inputs can be provided in two forms: **Direct node mapping** (when no `inputMap` in options): ``` { '3': { seed: 42 }, '6': { text: 'a cat' } } ``` **Named inputs** (when `inputMap` is provided in options): ``` inputs: { positive_prompt: 'a cat', seed: 42 } options.inputMap: { positive_prompt: { nodeId: '6', field: 'text' }, seed: { nodeId: '3', field: 'seed' } } ```",
|
|
23820
23807
|
"parameters": {
|
|
23821
|
-
"
|
|
23822
|
-
"type": "
|
|
23823
|
-
"description": "
|
|
23808
|
+
"workflow": {
|
|
23809
|
+
"type": "Record<string, any>",
|
|
23810
|
+
"description": "Parameter workflow"
|
|
23811
|
+
},
|
|
23812
|
+
"inputs": {
|
|
23813
|
+
"type": "Record<string, any>",
|
|
23814
|
+
"description": "Parameter inputs"
|
|
23824
23815
|
},
|
|
23825
23816
|
"options": {
|
|
23826
|
-
"type": "
|
|
23827
|
-
"description": "
|
|
23817
|
+
"type": "WorkflowRunOptions",
|
|
23818
|
+
"description": "Parameter options",
|
|
23819
|
+
"properties": {
|
|
23820
|
+
"poll": {
|
|
23821
|
+
"type": "boolean",
|
|
23822
|
+
"description": "Use polling instead of WebSocket for tracking execution"
|
|
23823
|
+
},
|
|
23824
|
+
"pollInterval": {
|
|
23825
|
+
"type": "number",
|
|
23826
|
+
"description": "Polling interval in ms (default 1000)"
|
|
23827
|
+
},
|
|
23828
|
+
"inputMap": {
|
|
23829
|
+
"type": "InputMapping",
|
|
23830
|
+
"description": "Named input mapping: semantic name -> { nodeId, field }"
|
|
23831
|
+
},
|
|
23832
|
+
"outputDir": {
|
|
23833
|
+
"type": "string",
|
|
23834
|
+
"description": "If provided, output images are downloaded to this directory"
|
|
23835
|
+
}
|
|
23836
|
+
}
|
|
23828
23837
|
}
|
|
23829
23838
|
},
|
|
23830
23839
|
"required": [
|
|
23831
|
-
"
|
|
23840
|
+
"workflow"
|
|
23832
23841
|
],
|
|
23833
|
-
"returns": "Promise<
|
|
23834
|
-
"examples": [
|
|
23835
|
-
{
|
|
23836
|
-
"language": "ts",
|
|
23837
|
-
"code": "const reply = await openai.chat([\n { role: 'system', content: 'You are a pirate.' },\n { role: 'user', content: 'Hello!' }\n])"
|
|
23838
|
-
}
|
|
23839
|
-
]
|
|
23842
|
+
"returns": "Promise<WorkflowResult>"
|
|
23840
23843
|
}
|
|
23841
23844
|
},
|
|
23842
23845
|
"getters": {
|
|
23843
|
-
"
|
|
23844
|
-
"description": "The
|
|
23846
|
+
"clientId": {
|
|
23847
|
+
"description": "The unique client ID used for WebSocket session tracking.",
|
|
23845
23848
|
"returns": "string"
|
|
23846
23849
|
},
|
|
23847
|
-
"
|
|
23848
|
-
"description": "The
|
|
23849
|
-
"returns": "
|
|
23850
|
+
"wsURL": {
|
|
23851
|
+
"description": "The WebSocket URL derived from baseURL or overridden via options.",
|
|
23852
|
+
"returns": "string"
|
|
23850
23853
|
}
|
|
23851
23854
|
},
|
|
23852
23855
|
"events": {
|
|
23853
|
-
"
|
|
23854
|
-
"name": "
|
|
23855
|
-
"description": "Event emitted by
|
|
23856
|
+
"execution_start": {
|
|
23857
|
+
"name": "execution_start",
|
|
23858
|
+
"description": "Event emitted by ComfyUIClient",
|
|
23856
23859
|
"arguments": {}
|
|
23857
23860
|
},
|
|
23858
|
-
"
|
|
23859
|
-
"name": "
|
|
23860
|
-
"description": "Event emitted by
|
|
23861
|
+
"execution_complete": {
|
|
23862
|
+
"name": "execution_complete",
|
|
23863
|
+
"description": "Event emitted by ComfyUIClient",
|
|
23861
23864
|
"arguments": {}
|
|
23862
23865
|
},
|
|
23863
|
-
"
|
|
23864
|
-
"name": "
|
|
23865
|
-
"description": "Event emitted by
|
|
23866
|
+
"executing": {
|
|
23867
|
+
"name": "executing",
|
|
23868
|
+
"description": "Event emitted by ComfyUIClient",
|
|
23866
23869
|
"arguments": {}
|
|
23867
23870
|
},
|
|
23868
|
-
"
|
|
23869
|
-
"name": "
|
|
23870
|
-
"description": "Event emitted by
|
|
23871
|
+
"progress": {
|
|
23872
|
+
"name": "progress",
|
|
23873
|
+
"description": "Event emitted by ComfyUIClient",
|
|
23871
23874
|
"arguments": {}
|
|
23872
23875
|
},
|
|
23873
|
-
"
|
|
23874
|
-
"name": "
|
|
23875
|
-
"description": "Event emitted by
|
|
23876
|
+
"executed": {
|
|
23877
|
+
"name": "executed",
|
|
23878
|
+
"description": "Event emitted by ComfyUIClient",
|
|
23876
23879
|
"arguments": {}
|
|
23877
23880
|
},
|
|
23878
|
-
"
|
|
23879
|
-
"name": "
|
|
23880
|
-
"description": "Event emitted by
|
|
23881
|
+
"execution_cached": {
|
|
23882
|
+
"name": "execution_cached",
|
|
23883
|
+
"description": "Event emitted by ComfyUIClient",
|
|
23884
|
+
"arguments": {}
|
|
23885
|
+
},
|
|
23886
|
+
"execution_error": {
|
|
23887
|
+
"name": "execution_error",
|
|
23888
|
+
"description": "Event emitted by ComfyUIClient",
|
|
23881
23889
|
"arguments": {}
|
|
23882
23890
|
}
|
|
23883
23891
|
},
|
|
@@ -23887,7 +23895,7 @@ export const introspectionData = [
|
|
|
23887
23895
|
"examples": [
|
|
23888
23896
|
{
|
|
23889
23897
|
"language": "ts",
|
|
23890
|
-
"code": "const
|
|
23898
|
+
"code": "const comfy = container.client('comfyui', { baseURL: 'http://localhost:8188' })\nconst result = await comfy.runWorkflow(workflow, {\n '6': { text: 'a beautiful sunset' }\n})\nconsole.log(result.images)"
|
|
23891
23899
|
}
|
|
23892
23900
|
]
|
|
23893
23901
|
},
|
|
@@ -25426,6 +25434,10 @@ export const introspectionData = [
|
|
|
25426
25434
|
"settingsFile": {
|
|
25427
25435
|
"type": "string",
|
|
25428
25436
|
"description": "Path to a custom settings file."
|
|
25437
|
+
},
|
|
25438
|
+
"chrome": {
|
|
25439
|
+
"type": "boolean",
|
|
25440
|
+
"description": "Launch Claude Code with a Chrome browser tool."
|
|
25429
25441
|
}
|
|
25430
25442
|
}
|
|
25431
25443
|
}
|
|
@@ -25575,6 +25587,10 @@ export const introspectionData = [
|
|
|
25575
25587
|
"settingsFile": {
|
|
25576
25588
|
"type": "string",
|
|
25577
25589
|
"description": "Path to a custom settings file."
|
|
25590
|
+
},
|
|
25591
|
+
"chrome": {
|
|
25592
|
+
"type": "boolean",
|
|
25593
|
+
"description": "Launch Claude Code with a Chrome browser tool."
|
|
25578
25594
|
}
|
|
25579
25595
|
}
|
|
25580
25596
|
}
|