Skip to content

Commit 0d1cee5

Browse files
committed
Improve code formatting and improve readability in various nodes
1 parent ee28b9d commit 0d1cee5

38 files changed

Lines changed: 2366 additions & 2429 deletions

apps/api/src/nodes/cloudflare-node-registry.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,25 @@ import { RagAiSearchNode } from "./rag/rag-ai-search-node";
207207
import { RagSearchNode } from "./rag/rag-search-node";
208208
import { BartLargeCnnNode } from "./text/bart-large-cnn-node";
209209
import { BgeRerankerBaseNode } from "./text/bge-reranker-base-node";
210+
import { Claude3OpusNode } from "./text/claude-3-opus-node";
211+
import { Claude35HaikuNode } from "./text/claude-35-haiku-node";
212+
import { Claude35SonnetNode } from "./text/claude-35-sonnet-node";
213+
import { Claude37SonnetNode } from "./text/claude-37-sonnet-node";
214+
import { ClaudeOpus4Node } from "./text/claude-opus-4-node";
215+
import { ClaudeOpus41Node } from "./text/claude-opus-41-node";
216+
import { ClaudeSonnet4Node } from "./text/claude-sonnet-4-node";
210217
import { DeepseekR1DistillQwen32BNode } from "./text/deepseek-r1-distill-qwen-32b-node";
211218
import { DistilbertSst2Int8Node } from "./text/distilbert-sst-2-int8-node";
219+
import { Gpt5MiniNode } from "./text/gpt-5-mini-node";
220+
import { Gpt5NanoNode } from "./text/gpt-5-nano-node";
221+
import { Gpt5Node } from "./text/gpt-5-node";
222+
import { Gpt41Node } from "./text/gpt-41-node";
223+
import { GptOss20BNode } from "./text/gpt-oss-20b-node";
224+
import { GptOss120BNode } from "./text/gpt-oss-120b-node";
212225
import { Hermes2ProMistral7BNode } from "./text/hermes-2-pro-mistral-7b-node";
213226
import { InputTextNode } from "./text/input-text-node";
214227
import { Llama318BInstructFastNode } from "./text/llama-3-1-8b-instruct-fast-node";
215228
import { Llama3370BInstructFastNode } from "./text/llama-3-3-70b-instruct-fp8-fast-node";
216-
import { Gpt41Node } from "./text/gpt-41-node";
217-
import { Gpt5Node } from "./text/gpt-5-node";
218-
import { Gpt5MiniNode } from "./text/gpt-5-mini-node";
219-
import { Gpt5NanoNode } from "./text/gpt-5-nano-node";
220-
import { GptOss120BNode } from "./text/gpt-oss-120b-node";
221-
import { GptOss20BNode } from "./text/gpt-oss-20b-node";
222229
import { Llama4Scout17B16EInstructNode } from "./text/llama-4-scout-17b-16e-instruct-node";
223230
import { M2m10012bNode } from "./text/m2m100-1-2b-node";
224231
import { MistralSmall31_24BInstructNode } from "./text/mistral-small-3-1-24b-instruct-node";
@@ -241,13 +248,6 @@ import { TextAreaNode } from "./text/text-area-node";
241248
import { ToJsonNode } from "./text/to-json-node";
242249
import { ToStringNode } from "./text/to-string-node";
243250
import { TwilioSmsNode } from "./text/twilio-sms-node";
244-
import { ClaudeOpus41Node } from "./text/claude-opus-41-node";
245-
import { ClaudeOpus4Node } from "./text/claude-opus-4-node";
246-
import { ClaudeSonnet4Node } from "./text/claude-sonnet-4-node";
247-
import { Claude37SonnetNode } from "./text/claude-37-sonnet-node";
248-
import { Claude35SonnetNode } from "./text/claude-35-sonnet-node";
249-
import { Claude35HaikuNode } from "./text/claude-35-haiku-node";
250-
import { Claude3OpusNode } from "./text/claude-3-opus-node";
251251

252252
export class CloudflareNodeRegistry extends BaseNodeRegistry {
253253
protected registerNodes(): void {
@@ -554,7 +554,7 @@ export class CloudflareNodeRegistry extends BaseNodeRegistry {
554554
this.registerImplementation(Gpt5MiniNode);
555555
this.registerImplementation(Gpt5NanoNode);
556556
}
557-
557+
558558
// Anthropic Claude nodes
559559
if (hasAnthropic) {
560560
this.registerImplementation(ClaudeOpus41Node);

apps/api/src/nodes/javascript/javascript-script-node.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Node } from "@dafthunk/types";
2-
import { describe, it, expect } from "vitest";
2+
import { describe, expect, it } from "vitest";
33

44
import { NodeContext } from "../types";
55
import { JavascriptScriptNode } from "./javascript-script-node";

apps/api/src/nodes/javascript/javascript-script-node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export class JavascriptScriptNode extends ExecutableNode {
8080
vm = QuickJSModule.newContext();
8181

8282
// Capture console output
83-
const stdout: string[] = [];
84-
const stderr: string[] = [];
83+
const _stdout: string[] = [];
84+
const _stderr: string[] = [];
8585

8686
// Create a bootstrap script that sets up the environment
8787
const bootstrapScript = `

0 commit comments

Comments
 (0)