From ae2f8a5e92ce26109741ad91a24887bf2ad558fb Mon Sep 17 00:00:00 2001 From: devteamaegis Date: Thu, 21 May 2026 20:24:03 -0400 Subject: [PATCH] fix: remove duplicate-word typos across SDK error, run-engine docs, and schemaTask doc --- .changeset/fix-ai-task-tool-error-typo.md | 5 +++++ docs/tasks/schemaTask.mdx | 2 +- internal-packages/run-engine/README.md | 2 +- internal-packages/run-engine/src/engine/index.ts | 2 +- packages/trigger-sdk/src/v3/ai.ts | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/fix-ai-task-tool-error-typo.md diff --git a/.changeset/fix-ai-task-tool-error-typo.md b/.changeset/fix-ai-task-tool-error-typo.md new file mode 100644 index 00000000000..b62678290ba --- /dev/null +++ b/.changeset/fix-ai-task-tool-error-typo.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/sdk": patch +--- + +Fix duplicated word in `assertTaskUsableAsTool` error message: "to to a tool" → "to a tool". diff --git a/docs/tasks/schemaTask.mdx b/docs/tasks/schemaTask.mdx index a551fb1af49..1dc20789411 100644 --- a/docs/tasks/schemaTask.mdx +++ b/docs/tasks/schemaTask.mdx @@ -24,7 +24,7 @@ const myTask = schemaTask({ }); ``` -`schemaTask` takes all the same options as [task](/tasks/overview), with the addition of a `schema` field. The `schema` field is a schema parser function from a schema library or or a custom parser function. +`schemaTask` takes all the same options as [task](/tasks/overview), with the addition of a `schema` field. The `schema` field is a schema parser function from a schema library or a custom parser function. We will probably eventually combine `task` and `schemaTask` into a single function, but because diff --git a/internal-packages/run-engine/README.md b/internal-packages/run-engine/README.md index a2b80b5f916..c3c84204c7b 100644 --- a/internal-packages/run-engine/README.md +++ b/internal-packages/run-engine/README.md @@ -189,7 +189,7 @@ Wait for a future time, then continue. We should add the option to pass an `idem ```ts //Note if the idempotency key is a string, it will get prefixed with the run id. -//you can explicitly pass in an idempotency key created with the the global scope. +//you can explicitly pass in an idempotency key created with the global scope. await wait.until(new Date("2022-01-01T00:00:00Z"), { idempotencyKey: "first-wait" }); await wait.until(new Date("2022-01-01T00:00:00Z"), { idempotencyKey: "second-wait" }); ``` diff --git a/internal-packages/run-engine/src/engine/index.ts b/internal-packages/run-engine/src/engine/index.ts index e0af0f2c4ff..6e854856761 100644 --- a/internal-packages/run-engine/src/engine/index.ts +++ b/internal-packages/run-engine/src/engine/index.ts @@ -1584,7 +1584,7 @@ export class RunEngine { } /** - Send a heartbeat to signal the the run is still executing. + Send a heartbeat to signal the run is still executing. If a heartbeat isn't received, after a while the run is considered "stalled" and some logic will be run to try recover it. @returns The ExecutionResult, which could be a different snapshot. diff --git a/packages/trigger-sdk/src/v3/ai.ts b/packages/trigger-sdk/src/v3/ai.ts index d5c176a4a56..f2fdc8a98be 100644 --- a/packages/trigger-sdk/src/v3/ai.ts +++ b/packages/trigger-sdk/src/v3/ai.ts @@ -858,7 +858,7 @@ type ToolSetCompatible> = T & NonNullable