From 8f6508e6dede8d4f4ceba6493464de64ffc214f5 Mon Sep 17 00:00:00 2001 From: Umar Adilov <99314948+adilovcode@users.noreply.github.com> Date: Fri, 9 Jan 2026 01:29:16 +0500 Subject: [PATCH] Fixed build plugin --- .opencode/plugin/{dev-server-hmr.ts => build.ts} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename .opencode/plugin/{dev-server-hmr.ts => build.ts} (96%) diff --git a/.opencode/plugin/dev-server-hmr.ts b/.opencode/plugin/build.ts similarity index 96% rename from .opencode/plugin/dev-server-hmr.ts rename to .opencode/plugin/build.ts index 42935e3..5e2bbf4 100644 --- a/.opencode/plugin/dev-server-hmr.ts +++ b/.opencode/plugin/build.ts @@ -33,7 +33,7 @@ const updateAppStatus = async (status: "Errored" | "Active" | "Pending") => { const sessionRetries: Record = {}; -export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => { +export const BuildPlugin: Plugin = async ({ client, $ }) => { return { event: async ({ event }) => { const isMessagedDone = @@ -52,6 +52,8 @@ export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => { (await $`git status --porcelain`.quiet()).stdout.toString().trim() !== ""; + console.log({ isAnyChange }); + if (!isAnyChange || isAbortionError) { await updateAppStatus("Active"); @@ -136,6 +138,7 @@ export const DevServerHMRPlugin: Plugin = async ({ client, $ }) => { JSON.stringify(packageJson, null, 2) ); + console.log("Pushing"); await $`git add .`.quiet(); await $`GIT_AUTHOR_NAME="Taylor AI" GIT_AUTHOR_EMAIL="ai@taylordb.io" GIT_COMMITTER_NAME="Taylor AI" GIT_COMMITTER_EMAIL="ai@taylordb.io" git commit -m ${commitMessage}`.quiet(); await $`git tag v${newVersion}`.quiet();