From 794e8f8f954a6f5000d7377959264bc5ceaccc6f Mon Sep 17 00:00:00 2001 From: Markus Ecker Date: Mon, 20 Jan 2025 18:00:53 +0100 Subject: [PATCH] Release 1.5.12 (#1260) Co-authored-by: Ariel Weinberger --- CopilotKit/.changeset/pre.json | 2 +- .../src/lib/runtime/copilot-runtime.ts | 3 +++ .../release/publish-snapshot-release.sh | 21 +++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 CopilotKit/scripts/release/publish-snapshot-release.sh diff --git a/CopilotKit/.changeset/pre.json b/CopilotKit/.changeset/pre.json index 6f7e104149..0338242d4d 100644 --- a/CopilotKit/.changeset/pre.json +++ b/CopilotKit/.changeset/pre.json @@ -1,5 +1,5 @@ { - "mode": "pre", + "mode": "exit", "tag": "next", "initialVersions": { "next-openai": "1.4.6", diff --git a/CopilotKit/packages/runtime/src/lib/runtime/copilot-runtime.ts b/CopilotKit/packages/runtime/src/lib/runtime/copilot-runtime.ts index b89a99f784..82d9c82506 100644 --- a/CopilotKit/packages/runtime/src/lib/runtime/copilot-runtime.ts +++ b/CopilotKit/packages/runtime/src/lib/runtime/copilot-runtime.ts @@ -30,12 +30,14 @@ import { RemoteChain, RemoteChainParameters, } from "../../service-adapters"; + import { MessageInput } from "../../graphql/inputs/message.input"; import { ActionInput } from "../../graphql/inputs/action.input"; import { RuntimeEventSource } from "../../service-adapters/events"; import { convertGqlInputToMessages } from "../../service-adapters/conversion"; import { Message } from "../../graphql/types/converted"; import { ForwardedParametersInput } from "../../graphql/inputs/forwarded-parameters.input"; + import { isLangGraphAgentAction, LangGraphAgentAction, @@ -45,6 +47,7 @@ import { CopilotKitEndpoint, LangGraphPlatformEndpoint, } from "./remote-actions"; + import { GraphQLContext } from "../integrations/shared"; import { AgentSessionInput } from "../../graphql/inputs/agent-session.input"; import { from } from "rxjs"; diff --git a/CopilotKit/scripts/release/publish-snapshot-release.sh b/CopilotKit/scripts/release/publish-snapshot-release.sh new file mode 100755 index 0000000000..8765b14044 --- /dev/null +++ b/CopilotKit/scripts/release/publish-snapshot-release.sh @@ -0,0 +1,21 @@ + +# save the current branch +current_branch=$(git branch --show-current) + +# check if branch starts with "pre/" +suggested_tag=$(echo $current_branch | sed 's/_/-/g') + +# replace all non-alphanumeric characters except hyphens +suggested_tag=$(echo $suggested_tag | sed 's/[^a-zA-Z0-9-]/-/g') + +# chop leading and trailing hyphens +suggested_tag=$(echo $suggested_tag | sed 's/^-//;s/-$//') + +# exit pre mode if already in pre mode +pnpm changeset pre exit + +# version +pnpm changeset version --snapshot $suggested_tag --tag pr --no-git-tag + +# publish +pnpm changeset publish --no-git-tag --snapshot $suggested_tag --tag pr --no-git-tag \ No newline at end of file