From 151bf578a7956382d6121c684d22e7cc50c05a07 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 19 Sep 2024 09:31:49 +0000 Subject: [PATCH] Replace `defOutput` with `defOutputProcessor` and update binary files --- demo/genaisrc/genaiscript.d.ts | 5 ----- docs/genaisrc/genaiscript.d.ts | 5 ----- docs/src/content/docs/reference/scripts/annotations.md | 4 ++-- genaisrc/genaiscript.d.ts | 5 ----- packages/auto/genaiscript.d.ts | 5 ----- packages/core/src/genaisrc/genaiscript.d.ts | 5 ----- packages/core/src/types/prompt_type.d.ts | 5 ----- packages/sample/genaisrc/blog/genaiscript.d.ts | 5 ----- packages/sample/genaisrc/genaiscript.d.ts | 5 ----- packages/sample/genaisrc/node/genaiscript.d.ts | 5 ----- packages/sample/genaisrc/python/genaiscript.d.ts | 5 ----- packages/sample/genaisrc/style/genaiscript.d.ts | 5 ----- packages/sample/src/aici/genaiscript.d.ts | 5 ----- packages/sample/src/errors/genaiscript.d.ts | 5 ----- packages/sample/src/genaiscript.d.ts | 5 ----- packages/sample/src/makecode/genaiscript.d.ts | 5 ----- packages/sample/src/tla/genaiscript.d.ts | 5 ----- packages/sample/src/vision/genaiscript.d.ts | 5 ----- packages/vscode/genaisrc/genaiscript.d.ts | 5 ----- slides/genaisrc/genaiscript.d.ts | 5 ----- 20 files changed, 2 insertions(+), 97 deletions(-) diff --git a/demo/genaisrc/genaiscript.d.ts b/demo/genaisrc/genaiscript.d.ts index 81a11db0e9..5a046a174a 100644 --- a/demo/genaisrc/genaiscript.d.ts +++ b/demo/genaisrc/genaiscript.d.ts @@ -1905,8 +1905,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/docs/genaisrc/genaiscript.d.ts b/docs/genaisrc/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/docs/genaisrc/genaiscript.d.ts +++ b/docs/genaisrc/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/docs/src/content/docs/reference/scripts/annotations.md b/docs/src/content/docs/reference/scripts/annotations.md index f2a6591077..4f94246de5 100644 --- a/docs/src/content/docs/reference/scripts/annotations.md +++ b/docs/src/content/docs/reference/scripts/annotations.md @@ -103,10 +103,10 @@ jobs: ## Filtering -You can use the [defOutput](/genaiscript/reference/scripts/custom-output/) function +You can use the [defOutputProcessor](/genaiscript/reference/scripts/custom-output/) function to filter the annotations. -```js "defOutput" +```js "defOutputProcessor" defOutputProcessor((annotations) => { // only allow errors const errors = annotations.filter(({ level }) => level === "error") diff --git a/genaisrc/genaiscript.d.ts b/genaisrc/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/genaisrc/genaiscript.d.ts +++ b/genaisrc/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/auto/genaiscript.d.ts b/packages/auto/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/auto/genaiscript.d.ts +++ b/packages/auto/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/core/src/genaisrc/genaiscript.d.ts b/packages/core/src/genaisrc/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/core/src/genaisrc/genaiscript.d.ts +++ b/packages/core/src/genaisrc/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/core/src/types/prompt_type.d.ts b/packages/core/src/types/prompt_type.d.ts index be32281ae0..8ba528cb63 100644 --- a/packages/core/src/types/prompt_type.d.ts +++ b/packages/core/src/types/prompt_type.d.ts @@ -249,8 +249,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/genaisrc/blog/genaiscript.d.ts b/packages/sample/genaisrc/blog/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/genaisrc/blog/genaiscript.d.ts +++ b/packages/sample/genaisrc/blog/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/genaisrc/genaiscript.d.ts b/packages/sample/genaisrc/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/genaisrc/genaiscript.d.ts +++ b/packages/sample/genaisrc/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/genaisrc/node/genaiscript.d.ts b/packages/sample/genaisrc/node/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/genaisrc/node/genaiscript.d.ts +++ b/packages/sample/genaisrc/node/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/genaisrc/python/genaiscript.d.ts b/packages/sample/genaisrc/python/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/genaisrc/python/genaiscript.d.ts +++ b/packages/sample/genaisrc/python/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/genaisrc/style/genaiscript.d.ts b/packages/sample/genaisrc/style/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/genaisrc/style/genaiscript.d.ts +++ b/packages/sample/genaisrc/style/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/src/aici/genaiscript.d.ts b/packages/sample/src/aici/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/src/aici/genaiscript.d.ts +++ b/packages/sample/src/aici/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/src/errors/genaiscript.d.ts b/packages/sample/src/errors/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/src/errors/genaiscript.d.ts +++ b/packages/sample/src/errors/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/src/genaiscript.d.ts b/packages/sample/src/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/src/genaiscript.d.ts +++ b/packages/sample/src/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/src/makecode/genaiscript.d.ts b/packages/sample/src/makecode/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/src/makecode/genaiscript.d.ts +++ b/packages/sample/src/makecode/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/src/tla/genaiscript.d.ts b/packages/sample/src/tla/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/src/tla/genaiscript.d.ts +++ b/packages/sample/src/tla/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/sample/src/vision/genaiscript.d.ts b/packages/sample/src/vision/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/sample/src/vision/genaiscript.d.ts +++ b/packages/sample/src/vision/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/packages/vscode/genaisrc/genaiscript.d.ts b/packages/vscode/genaisrc/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/packages/vscode/genaisrc/genaiscript.d.ts +++ b/packages/vscode/genaisrc/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void diff --git a/slides/genaisrc/genaiscript.d.ts b/slides/genaisrc/genaiscript.d.ts index e7d9bb7552..e2cdd75c14 100644 --- a/slides/genaisrc/genaiscript.d.ts +++ b/slides/genaisrc/genaiscript.d.ts @@ -2613,8 +2613,3 @@ declare function defChatParticipant( participant: ChatParticipantHandler, options?: ChatParticipantOptions ): void - -/** - * @deprecated Use `defOutputProcessor` instead. - */ -declare function defOutput(fn: PromptOutputProcessorHandler): void