From e6db078669eaa84d32effd57f11de6abce83a7b5 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 15:58:52 +0330 Subject: [PATCH 01/28] init --- packages/app/server/routes/publish.post.ts | 37 ++++++++++++++++++++++ packages/app/server/routes/webhook.post.ts | 18 +++++++++++ 2 files changed, 55 insertions(+) diff --git a/packages/app/server/routes/publish.post.ts b/packages/app/server/routes/publish.post.ts index e97f9ad0..3b4687c4 100644 --- a/packages/app/server/routes/publish.post.ts +++ b/packages/app/server/routes/publish.post.ts @@ -38,6 +38,19 @@ export default eventHandler(async (event) => { const workflowsBucket = useWorkflowsBucket(event); const workflowData = await workflowsBucket.getItem(key); + console.log("[PUBLISH] Publish request received:", { + key, + runId, + headers: { + "sb-key": key, + "sb-run-id": runIdHeader, + "sb-comment": commentHeader, + "sb-compact": compactHeader, + }, + workflowData, + workflowDataExists: !!workflowData, + }); + if (!workflowData) { throw createError({ statusCode: 404, @@ -229,9 +242,22 @@ export default eventHandler(async (event) => { checkRunUrl = html_url!; } + // 🔍 DEBUG: Log PR commenting decision + const isPRRef = isPullRequest(workflowData.ref); + const prNumber = Number(workflowData.ref); + console.log("🔍 [PUBLISH DEBUG] PR commenting analysis:", { + workflowDataRef: workflowData.ref, + isPRRef, + prNumber, + willCommentOnPR: isPRRef, + prNumberToCommentOn: isPRRef ? prNumber : null, + }); + if (isPullRequest(workflowData.ref)) { let prevComment: OctokitComponents["schemas"]["issue-comment"]; + console.log("🔍 [PUBLISH DEBUG] Fetching comments for PR #" + prNumber); + await installation.paginate( "GET /repos/{owner}/{repo}/issues/{issue_number}/comments", { @@ -261,6 +287,9 @@ export default eventHandler(async (event) => { try { if (comment === "update" && prevComment!) { + console.log( + "🔍 [PUBLISH DEBUG] Updating existing comment on PR #" + prNumber, + ); await installation.request( "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}", { @@ -282,6 +311,11 @@ export default eventHandler(async (event) => { }, ); } else { + console.log( + "🔍 [PUBLISH DEBUG] Creating NEW comment on PR #" + + prNumber + + " (SHOULD BE CURRENT PR, NOT OLD!)", + ); await installation.request( "POST /repos/{owner}/{repo}/issues/{issue_number}/comments", { @@ -303,6 +337,9 @@ export default eventHandler(async (event) => { }, ); } + console.log( + "🔍 [PUBLISH DEBUG] Comment posted successfully to PR #" + prNumber, + ); } catch (error) { console.error("failed to create/update comment", error, permissions); } diff --git a/packages/app/server/routes/webhook.post.ts b/packages/app/server/routes/webhook.post.ts index 05425acb..16618f6e 100644 --- a/packages/app/server/routes/webhook.post.ts +++ b/packages/app/server/routes/webhook.post.ts @@ -55,6 +55,16 @@ export default eventHandler(async (event) => { isNewPullRequest ? prKey : oldPrDataHash, ); + console.log("[WEBHOOK] PR number lookup:", { + prData, + prKey, + oldPrDataHash, + isNewPullRequest, + isOldPullRequest, + isPullRequest, + prNumber, + }); + const data: WorkflowData = { owner, repo, @@ -62,6 +72,14 @@ export default eventHandler(async (event) => { ref: isPullRequest ? `${prNumber}` : payload.workflow_run.head_branch!, // it's a pull request workflow }; + console.log("[WEBHOOK] Final WorkflowData stored:", { + workflowData: data, + originalHeadBranch: payload.workflow_run.head_branch, + isPullRequestDetected: isPullRequest, + computedRef: data.ref, + hashKey, + }); + // Publishing is only available throughout the lifetime of a workflow_job await workflowsBucket.setItem(hashKey, data); } From ae98e7c6755e25aa46a89b62386b5e9f05268a86 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 15:59:27 +0330 Subject: [PATCH 02/28] init --- packages/app/server/routes/publish.post.ts | 4 ++-- packages/cli/index.ts | 27 ++++++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/packages/app/server/routes/publish.post.ts b/packages/app/server/routes/publish.post.ts index 3b4687c4..b3c17b89 100644 --- a/packages/app/server/routes/publish.post.ts +++ b/packages/app/server/routes/publish.post.ts @@ -313,8 +313,8 @@ export default eventHandler(async (event) => { } else { console.log( "🔍 [PUBLISH DEBUG] Creating NEW comment on PR #" + - prNumber + - " (SHOULD BE CURRENT PR, NOT OLD!)", + prNumber + + " (SHOULD BE CURRENT PR, NOT OLD!)", ); await installation.request( "POST /repos/{owner}/{repo}/issues/{issue_number}/comments", diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 063b7dc3..c11edb87 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -109,10 +109,10 @@ const main = defineCommand({ const paths = args._.length > 0 ? await glob(args._, { - expandDirectories: false, - onlyDirectories: true, - absolute: true, - }) + expandDirectories: false, + onlyDirectories: true, + absolute: true, + }) : [process.cwd()]; const templates = await glob(args.template || [], { @@ -177,6 +177,25 @@ const main = defineCommand({ const key = hash(metadata); + console.log("Publishing with metadata:", { + owner, + repo, + run: Number(GITHUB_RUN_ID), + attempt: Number(GITHUB_RUN_ATTEMPT), + actor: Number(GITHUB_ACTOR_ID), + key, + apiUrl, + env: { + GITHUB_REPOSITORY, + GITHUB_RUN_ID, + GITHUB_RUN_ATTEMPT, + GITHUB_ACTOR_ID, + GITHUB_SHA: process.env.GITHUB_SHA, + GITHUB_REF: process.env.GITHUB_REF, + GITHUB_REF_NAME: process.env.GITHUB_REF_NAME, + } + }); + const checkResponse = await fetch(new URL("/check", apiUrl), { method: "POST", body: JSON.stringify({ From 8aadbae076f77e92627cb869831ba8b123f41028 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 16:09:42 +0330 Subject: [PATCH 03/28] update --- packages/app/server/routes/publish.post.ts | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/app/server/routes/publish.post.ts b/packages/app/server/routes/publish.post.ts index b3c17b89..c2e814b6 100644 --- a/packages/app/server/routes/publish.post.ts +++ b/packages/app/server/routes/publish.post.ts @@ -242,10 +242,9 @@ export default eventHandler(async (event) => { checkRunUrl = html_url!; } - // 🔍 DEBUG: Log PR commenting decision const isPRRef = isPullRequest(workflowData.ref); const prNumber = Number(workflowData.ref); - console.log("🔍 [PUBLISH DEBUG] PR commenting analysis:", { + console.log("[PUBLISH] PR commenting analysis:", { workflowDataRef: workflowData.ref, isPRRef, prNumber, @@ -256,7 +255,7 @@ export default eventHandler(async (event) => { if (isPullRequest(workflowData.ref)) { let prevComment: OctokitComponents["schemas"]["issue-comment"]; - console.log("🔍 [PUBLISH DEBUG] Fetching comments for PR #" + prNumber); + console.log("[PUBLISH] Fetching comments for PR #" + prNumber); await installation.paginate( "GET /repos/{owner}/{repo}/issues/{issue_number}/comments", @@ -287,9 +286,7 @@ export default eventHandler(async (event) => { try { if (comment === "update" && prevComment!) { - console.log( - "🔍 [PUBLISH DEBUG] Updating existing comment on PR #" + prNumber, - ); + console.log("[PUBLISH] Updating existing comment on PR #" + prNumber); await installation.request( "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}", { @@ -312,9 +309,9 @@ export default eventHandler(async (event) => { ); } else { console.log( - "🔍 [PUBLISH DEBUG] Creating NEW comment on PR #" + - prNumber + - " (SHOULD BE CURRENT PR, NOT OLD!)", + "[PUBLISH] Creating NEW comment on PR #" + + prNumber + + " (SHOULD BE CURRENT PR, NOT OLD!)", ); await installation.request( "POST /repos/{owner}/{repo}/issues/{issue_number}/comments", @@ -337,9 +334,7 @@ export default eventHandler(async (event) => { }, ); } - console.log( - "🔍 [PUBLISH DEBUG] Comment posted successfully to PR #" + prNumber, - ); + console.log("[PUBLISH] Comment posted successfully to PR #" + prNumber); } catch (error) { console.error("failed to create/update comment", error, permissions); } From d6c4a0b2df6e5b28c0a96223200bed9fb5373163 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 16:17:37 +0330 Subject: [PATCH 04/28] update --- packages/app/server/routes/publish.post.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/app/server/routes/publish.post.ts b/packages/app/server/routes/publish.post.ts index c2e814b6..52c41021 100644 --- a/packages/app/server/routes/publish.post.ts +++ b/packages/app/server/routes/publish.post.ts @@ -308,11 +308,7 @@ export default eventHandler(async (event) => { }, ); } else { - console.log( - "[PUBLISH] Creating NEW comment on PR #" + - prNumber + - " (SHOULD BE CURRENT PR, NOT OLD!)", - ); + console.log("[PUBLISH] Creating new comment on PR #" + prNumber); await installation.request( "POST /repos/{owner}/{repo}/issues/{issue_number}/comments", { From 58e305961a058ec76d8543b633364def439b0dd7 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 19:54:32 +0330 Subject: [PATCH 05/28] update --- packages/app/server/routes/publish.post.ts | 48 +++++++++------------- packages/app/server/routes/webhook.post.ts | 18 -------- 2 files changed, 20 insertions(+), 46 deletions(-) diff --git a/packages/app/server/routes/publish.post.ts b/packages/app/server/routes/publish.post.ts index 52c41021..3c6c03cb 100644 --- a/packages/app/server/routes/publish.post.ts +++ b/packages/app/server/routes/publish.post.ts @@ -38,19 +38,6 @@ export default eventHandler(async (event) => { const workflowsBucket = useWorkflowsBucket(event); const workflowData = await workflowsBucket.getItem(key); - console.log("[PUBLISH] Publish request received:", { - key, - runId, - headers: { - "sb-key": key, - "sb-run-id": runIdHeader, - "sb-comment": commentHeader, - "sb-compact": compactHeader, - }, - workflowData, - workflowDataExists: !!workflowData, - }); - if (!workflowData) { throw createError({ statusCode: 404, @@ -242,21 +229,9 @@ export default eventHandler(async (event) => { checkRunUrl = html_url!; } - const isPRRef = isPullRequest(workflowData.ref); - const prNumber = Number(workflowData.ref); - console.log("[PUBLISH] PR commenting analysis:", { - workflowDataRef: workflowData.ref, - isPRRef, - prNumber, - willCommentOnPR: isPRRef, - prNumberToCommentOn: isPRRef ? prNumber : null, - }); - if (isPullRequest(workflowData.ref)) { let prevComment: OctokitComponents["schemas"]["issue-comment"]; - console.log("[PUBLISH] Fetching comments for PR #" + prNumber); - await installation.paginate( "GET /repos/{owner}/{repo}/issues/{issue_number}/comments", { @@ -286,7 +261,6 @@ export default eventHandler(async (event) => { try { if (comment === "update" && prevComment!) { - console.log("[PUBLISH] Updating existing comment on PR #" + prNumber); await installation.request( "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}", { @@ -308,7 +282,6 @@ export default eventHandler(async (event) => { }, ); } else { - console.log("[PUBLISH] Creating new comment on PR #" + prNumber); await installation.request( "POST /repos/{owner}/{repo}/issues/{issue_number}/comments", { @@ -330,7 +303,6 @@ export default eventHandler(async (event) => { }, ); } - console.log("[PUBLISH] Comment posted successfully to PR #" + prNumber); } catch (error) { console.error("failed to create/update comment", error, permissions); } @@ -347,6 +319,26 @@ export default eventHandler(async (event) => { return { ok: true, urls, + debug: { + workflowData: { + owner: workflowData.owner, + repo: workflowData.repo, + sha: workflowData.sha, + ref: workflowData.ref, + }, + prAnalysis: { + isPullRequest: isPullRequest(workflowData.ref), + refValue: workflowData.ref, + computedPRNumber: Number(workflowData.ref), + willCommentOnPR: isPullRequest(workflowData.ref), + }, + bucketInfo: { + usedKey: key, + runId: runId, + bucketPrefixBug: + "usePullRequestNumbersBucket uses 'downloaded-at' prefix instead of 'pr-number'", + }, + }, }; }); diff --git a/packages/app/server/routes/webhook.post.ts b/packages/app/server/routes/webhook.post.ts index 16618f6e..05425acb 100644 --- a/packages/app/server/routes/webhook.post.ts +++ b/packages/app/server/routes/webhook.post.ts @@ -55,16 +55,6 @@ export default eventHandler(async (event) => { isNewPullRequest ? prKey : oldPrDataHash, ); - console.log("[WEBHOOK] PR number lookup:", { - prData, - prKey, - oldPrDataHash, - isNewPullRequest, - isOldPullRequest, - isPullRequest, - prNumber, - }); - const data: WorkflowData = { owner, repo, @@ -72,14 +62,6 @@ export default eventHandler(async (event) => { ref: isPullRequest ? `${prNumber}` : payload.workflow_run.head_branch!, // it's a pull request workflow }; - console.log("[WEBHOOK] Final WorkflowData stored:", { - workflowData: data, - originalHeadBranch: payload.workflow_run.head_branch, - isPullRequestDetected: isPullRequest, - computedRef: data.ref, - hashKey, - }); - // Publishing is only available throughout the lifetime of a workflow_job await workflowsBucket.setItem(hashKey, data); } From 89fcc2c39e3a1d7b1e6df92cd60b4c9d7a5901b0 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 19:56:50 +0330 Subject: [PATCH 06/28] update --- packages/cli/index.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index c11edb87..e10d160e 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -535,6 +535,34 @@ const main = defineCommand({ `publishing failed: ${await res.text()}`, ); + if (laterRes.debug) { + const debug = laterRes.debug; + console.log("::group::🔍 Backend Debug Information"); + console.log("::notice title=WorkflowData Retrieved::ref=%s sha=%s owner=%s repo=%s", + debug.workflowData.ref, + debug.workflowData.sha, + debug.workflowData.owner, + debug.workflowData.repo + ); + console.log("::notice title=PR Analysis::isPR=%s refValue=%s prNumber=%d willComment=%s", + debug.prAnalysis.isPullRequest, + debug.prAnalysis.refValue, + debug.prAnalysis.computedPRNumber, + debug.prAnalysis.willCommentOnPR + ); + console.log("::warning title=Bucket Bug Detected::%s", debug.bucketInfo.bucketPrefixBug); + console.log("::notice title=Request Info::key=%s runId=%s", debug.bucketInfo.usedKey, debug.bucketInfo.runId); + console.log("::endgroup::"); + console.log(""); + if (debug.prAnalysis.willCommentOnPR) { + console.log("::error title=Sequential PR Bug::Will comment on PR #%d instead of current branch '%s'. This is the bucket prefix bug!", + debug.prAnalysis.computedPRNumber, + process.env.GITHUB_REF_NAME || 'unknown' + ); + } + console.log(""); + } + console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From c24d48966ccb9d938cc1790d070f1b6f9bd7146e Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 20:00:05 +0330 Subject: [PATCH 07/28] update --- packages/cli/index.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index e10d160e..92c16aa0 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -177,25 +177,6 @@ const main = defineCommand({ const key = hash(metadata); - console.log("Publishing with metadata:", { - owner, - repo, - run: Number(GITHUB_RUN_ID), - attempt: Number(GITHUB_RUN_ATTEMPT), - actor: Number(GITHUB_ACTOR_ID), - key, - apiUrl, - env: { - GITHUB_REPOSITORY, - GITHUB_RUN_ID, - GITHUB_RUN_ATTEMPT, - GITHUB_ACTOR_ID, - GITHUB_SHA: process.env.GITHUB_SHA, - GITHUB_REF: process.env.GITHUB_REF, - GITHUB_REF_NAME: process.env.GITHUB_REF_NAME, - } - }); - const checkResponse = await fetch(new URL("/check", apiUrl), { method: "POST", body: JSON.stringify({ From 27e90bc22b2fbcedad5831ebd8f08a6ae6ee3244 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 20:35:04 +0330 Subject: [PATCH 08/28] update --- packages/app/server/routes/publish.post.ts | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/packages/app/server/routes/publish.post.ts b/packages/app/server/routes/publish.post.ts index 3c6c03cb..d37734fd 100644 --- a/packages/app/server/routes/publish.post.ts +++ b/packages/app/server/routes/publish.post.ts @@ -320,24 +320,10 @@ export default eventHandler(async (event) => { ok: true, urls, debug: { - workflowData: { - owner: workflowData.owner, - repo: workflowData.repo, - sha: workflowData.sha, - ref: workflowData.ref, - }, - prAnalysis: { - isPullRequest: isPullRequest(workflowData.ref), - refValue: workflowData.ref, - computedPRNumber: Number(workflowData.ref), - willCommentOnPR: isPullRequest(workflowData.ref), - }, - bucketInfo: { - usedKey: key, - runId: runId, - bucketPrefixBug: - "usePullRequestNumbersBucket uses 'downloaded-at' prefix instead of 'pr-number'", - }, + workflowData, + key, + runId, + isPullRequest: isPullRequest(workflowData.ref), }, }; }); From 0ab9a5b615512510dfcdae77cc2b57adef170074 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 20:35:25 +0330 Subject: [PATCH 09/28] update --- packages/cli/index.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 92c16aa0..b71a676f 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -516,34 +516,6 @@ const main = defineCommand({ `publishing failed: ${await res.text()}`, ); - if (laterRes.debug) { - const debug = laterRes.debug; - console.log("::group::🔍 Backend Debug Information"); - console.log("::notice title=WorkflowData Retrieved::ref=%s sha=%s owner=%s repo=%s", - debug.workflowData.ref, - debug.workflowData.sha, - debug.workflowData.owner, - debug.workflowData.repo - ); - console.log("::notice title=PR Analysis::isPR=%s refValue=%s prNumber=%d willComment=%s", - debug.prAnalysis.isPullRequest, - debug.prAnalysis.refValue, - debug.prAnalysis.computedPRNumber, - debug.prAnalysis.willCommentOnPR - ); - console.log("::warning title=Bucket Bug Detected::%s", debug.bucketInfo.bucketPrefixBug); - console.log("::notice title=Request Info::key=%s runId=%s", debug.bucketInfo.usedKey, debug.bucketInfo.runId); - console.log("::endgroup::"); - console.log(""); - if (debug.prAnalysis.willCommentOnPR) { - console.log("::error title=Sequential PR Bug::Will comment on PR #%d instead of current branch '%s'. This is the bucket prefix bug!", - debug.prAnalysis.computedPRNumber, - process.env.GITHUB_REF_NAME || 'unknown' - ); - } - console.log(""); - } - console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From 4ec65bea3eff890dd4b6c113b68331b601a2898b Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 20:57:11 +0330 Subject: [PATCH 10/28] update --- packages/cli/index.ts | 9 +++++++++ packages/cli/package.json | 1 + pnpm-lock.yaml | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index b71a676f..7997555c 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -21,6 +21,7 @@ import { isBinaryFile } from "isbinaryfile"; import { writePackageJSON, type PackageJson } from "pkg-types"; import pkg from "./package.json" with { type: "json" }; import { createDefaultTemplate } from "./template"; +import * as core from "@actions/core"; declare global { const API_URL: string; @@ -516,6 +517,14 @@ const main = defineCommand({ `publishing failed: ${await res.text()}`, ); + const debug = laterRes.debug; + core.startGroup("🔍 Backend Debug Information"); + core.debug(`workflowData: ${JSON.stringify(debug.workflowData, null, 2)}`); + core.debug(`key: ${debug.key}`); + core.debug(`runId: ${debug.runId}`); + core.debug(`isPullRequest: ${debug.isPullRequest}`); + core.endGroup(); + console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); diff --git a/packages/cli/package.json b/packages/cli/package.json index 287aa973..1c08e72a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -21,6 +21,7 @@ "author": "", "license": "MIT", "dependencies": { + "@actions/core": "^1.11.1", "@jsdevtools/ez-spawn": "^3.0.4", "@octokit/action": "^6.1.0", "ignore": "^5.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9add72de..e54fe56e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -207,6 +207,9 @@ importers: packages/cli: dependencies: + '@actions/core': + specifier: ^1.11.1 + version: 1.11.1 '@jsdevtools/ez-spawn': specifier: ^3.0.4 version: 3.0.4 @@ -276,6 +279,18 @@ importers: packages: + '@actions/core@1.11.1': + resolution: {integrity: sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==} + + '@actions/exec@1.1.1': + resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==} + + '@actions/http-client@2.2.3': + resolution: {integrity: sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==} + + '@actions/io@1.1.3': + resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==} + '@alloc/quick-lru@5.2.0': resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} engines: {node: '>=10'} @@ -7331,6 +7346,10 @@ packages: engines: {node: '>=18.0.0'} hasBin: true + tunnel@0.0.6: + resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==} + engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} + type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -8121,6 +8140,22 @@ packages: snapshots: + '@actions/core@1.11.1': + dependencies: + '@actions/exec': 1.1.1 + '@actions/http-client': 2.2.3 + + '@actions/exec@1.1.1': + dependencies: + '@actions/io': 1.1.3 + + '@actions/http-client@2.2.3': + dependencies: + tunnel: 0.0.6 + undici: 5.28.4 + + '@actions/io@1.1.3': {} + '@alloc/quick-lru@5.2.0': {} '@ampproject/remapping@2.3.0': @@ -16590,6 +16625,8 @@ snapshots: optionalDependencies: fsevents: 2.3.3 + tunnel@0.0.6: {} + type-check@0.4.0: dependencies: prelude-ls: 1.2.1 From f3cd461908bea4847294e3e05845f5537976ee82 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 20:58:41 +0330 Subject: [PATCH 11/28] update --- packages/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 7997555c..718c1619 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -518,7 +518,7 @@ const main = defineCommand({ ); const debug = laterRes.debug; - core.startGroup("🔍 Backend Debug Information"); + core.startGroup("Backend response"); core.debug(`workflowData: ${JSON.stringify(debug.workflowData, null, 2)}`); core.debug(`key: ${debug.key}`); core.debug(`runId: ${debug.runId}`); From 73f473a22a5c10d350bb23030f16604302277261 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 21:15:41 +0330 Subject: [PATCH 12/28] update --- packages/app/server/routes/publish.post.ts | 1 - packages/cli/index.ts | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/app/server/routes/publish.post.ts b/packages/app/server/routes/publish.post.ts index d37734fd..0c5022ac 100644 --- a/packages/app/server/routes/publish.post.ts +++ b/packages/app/server/routes/publish.post.ts @@ -323,7 +323,6 @@ export default eventHandler(async (event) => { workflowData, key, runId, - isPullRequest: isPullRequest(workflowData.ref), }, }; }); diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 718c1619..601ac31b 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -518,11 +518,8 @@ const main = defineCommand({ ); const debug = laterRes.debug; - core.startGroup("Backend response"); - core.debug(`workflowData: ${JSON.stringify(debug.workflowData, null, 2)}`); - core.debug(`key: ${debug.key}`); - core.debug(`runId: ${debug.runId}`); - core.debug(`isPullRequest: ${debug.isPullRequest}`); + core.startGroup("[INFO]"); + core.info(`Debug Data: ${JSON.stringify(debug, null, 2)}`); core.endGroup(); console.warn("\n"); From fc5e6ee2f97dbe05856ff9cc5fdf9083d1f11683 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 21:21:30 +0330 Subject: [PATCH 13/28] update --- packages/cli/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 601ac31b..483466a2 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -518,9 +518,7 @@ const main = defineCommand({ ); const debug = laterRes.debug; - core.startGroup("[INFO]"); - core.info(`Debug Data: ${JSON.stringify(debug, null, 2)}`); - core.endGroup(); + core.notice(`Debug:\n${JSON.stringify(debug, null, 2)}`); console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From d686fde1fdb8be7d1b356c7b40735b0b84ffda6a Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 23:35:49 +0330 Subject: [PATCH 14/28] update --- packages/cli/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 483466a2..32926dfa 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -518,7 +518,9 @@ const main = defineCommand({ ); const debug = laterRes.debug; - core.notice(`Debug:\n${JSON.stringify(debug, null, 2)}`); + core.startGroup("[INFO]"); + core.info(JSON.stringify(debug, null, 2)); + core.endGroup(); console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From 87539bf76a34721c3224dda5e1eccf3f995cbf3a Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 23:47:00 +0330 Subject: [PATCH 15/28] update --- packages/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 32926dfa..913cd7bc 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -519,7 +519,7 @@ const main = defineCommand({ const debug = laterRes.debug; core.startGroup("[INFO]"); - core.info(JSON.stringify(debug, null, 2)); + core.debug(JSON.stringify(debug, null, 2)); core.endGroup(); console.warn("\n"); From 9068988eb315cadab91c58210f8957598c86cee6 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Sun, 24 Aug 2025 23:53:39 +0330 Subject: [PATCH 16/28] update --- packages/cli/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 913cd7bc..018f01ec 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -518,9 +518,12 @@ const main = defineCommand({ ); const debug = laterRes.debug; - core.startGroup("[INFO]"); - core.debug(JSON.stringify(debug, null, 2)); - core.endGroup(); + await core.summary + .addDetails( + "[INFO]", + `\`\`\`json\n${JSON.stringify(debug, null, 2)}\n\`\`\`` + ) + .write(); console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From a5ad13f1dd15f3f70c34c5f97845d78ecb5d370d Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 00:00:16 +0330 Subject: [PATCH 17/28] test --- packages/cli/index.ts | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 018f01ec..0ef83d24 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -518,12 +518,24 @@ const main = defineCommand({ ); const debug = laterRes.debug; - await core.summary - .addDetails( - "[INFO]", - `\`\`\`json\n${JSON.stringify(debug, null, 2)}\n\`\`\`` - ) - .write(); + + // Test if debug data exists + console.log("DEBUG DATA EXISTS:", !!debug); + console.log("DEBUG DATA:", debug); + + if (debug) { + await core.summary + .addDetails( + "[INFO]", + `\`\`\`json\n${JSON.stringify(debug, null, 2)}\n\`\`\`` + ) + .write(); + } else { + await core.summary + .addHeading("⚠️ No Debug Data") + .addRaw("Backend did not return debug data") + .write(); + } console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From b2b6985ab098561344bf28bb6bb38be869f7b619 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 00:07:05 +0330 Subject: [PATCH 18/28] upsate --- packages/cli/index.ts | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 0ef83d24..ff9673c8 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -519,23 +519,9 @@ const main = defineCommand({ const debug = laterRes.debug; - // Test if debug data exists - console.log("DEBUG DATA EXISTS:", !!debug); - console.log("DEBUG DATA:", debug); - - if (debug) { - await core.summary - .addDetails( - "[INFO]", - `\`\`\`json\n${JSON.stringify(debug, null, 2)}\n\`\`\`` - ) - .write(); - } else { - await core.summary - .addHeading("⚠️ No Debug Data") - .addRaw("Backend did not return debug data") - .write(); - } + core.startGroup("[INFO]"); + core.info(JSON.stringify(debug, null, 2)); + core.endGroup(); console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From 1f467667ee28103eee1c231025229a5afa27b3b2 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 00:12:43 +0330 Subject: [PATCH 19/28] test --- packages/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index ff9673c8..ac17680d 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -520,7 +520,7 @@ const main = defineCommand({ const debug = laterRes.debug; core.startGroup("[INFO]"); - core.info(JSON.stringify(debug, null, 2)); + core.notice(JSON.stringify(debug, null, 2)); core.endGroup(); console.warn("\n"); From e7e416b5b14d518c7d092478e166a60a0e3e8200 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 00:19:56 +0330 Subject: [PATCH 20/28] test --- packages/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index ac17680d..2b83f87f 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -520,7 +520,7 @@ const main = defineCommand({ const debug = laterRes.debug; core.startGroup("[INFO]"); - core.notice(JSON.stringify(debug, null, 2)); + core.warning(`Debug Data:\n${JSON.stringify(debug, null, 2)}`); core.endGroup(); console.warn("\n"); From bbd5e9730ff2ddd3b7276ab43f331497733a7fc2 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 00:49:33 +0330 Subject: [PATCH 21/28] test addDetails --- packages/cli/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 2b83f87f..4b9d6281 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -519,9 +519,12 @@ const main = defineCommand({ const debug = laterRes.debug; - core.startGroup("[INFO]"); - core.warning(`Debug Data:\n${JSON.stringify(debug, null, 2)}`); - core.endGroup(); + await core.summary + .addDetails( + "Debug Data", + `\`\`\`json\n${JSON.stringify(debug, null, 2)}\n\`\`\`` + ) + .write(); console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From f8ddd0ddb2666da0940aa2325e7f97060eb82cd5 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 01:21:47 +0330 Subject: [PATCH 22/28] test --- packages/cli/index.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 4b9d6281..edf97864 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -519,11 +519,20 @@ const main = defineCommand({ const debug = laterRes.debug; + // Visible warning in logs + core.warning(`🔍 Debug Data:\n${JSON.stringify(debug, null, 2)}`); + + // Try Job Summary with manual HTML await core.summary - .addDetails( - "Debug Data", - `\`\`\`json\n${JSON.stringify(debug, null, 2)}\n\`\`\`` - ) + .addRaw(` +
+🔍 Backend Debug Data + +\`\`\`json +${JSON.stringify(debug, null, 2)} +\`\`\` + +
`) .write(); console.warn("\n"); From 64cee7c1b34269290612c31cb9a856700f2c5cc6 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 01:28:10 +0330 Subject: [PATCH 23/28] manual --- packages/cli/index.ts | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index edf97864..d6af5349 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -519,21 +519,9 @@ const main = defineCommand({ const debug = laterRes.debug; - // Visible warning in logs - core.warning(`🔍 Debug Data:\n${JSON.stringify(debug, null, 2)}`); - - // Try Job Summary with manual HTML - await core.summary - .addRaw(` -
-🔍 Backend Debug Data - -\`\`\`json -${JSON.stringify(debug, null, 2)} -\`\`\` - -
`) - .write(); + console.log("::group::🔍 Backend Debug Data"); + console.log(JSON.stringify(debug, null, 2)); + console.log("::endgroup::"); console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); From 9495f5484695256dcc46a9bbd56c214cebab29a6 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 01:35:14 +0330 Subject: [PATCH 24/28] manual and clean --- packages/cli/index.ts | 11 +++++----- packages/cli/package.json | 1 - pnpm-lock.yaml | 43 +++++---------------------------------- 3 files changed, 10 insertions(+), 45 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index d6af5349..d2c05e51 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -21,7 +21,6 @@ import { isBinaryFile } from "isbinaryfile"; import { writePackageJSON, type PackageJson } from "pkg-types"; import pkg from "./package.json" with { type: "json" }; import { createDefaultTemplate } from "./template"; -import * as core from "@actions/core"; declare global { const API_URL: string; @@ -110,10 +109,10 @@ const main = defineCommand({ const paths = args._.length > 0 ? await glob(args._, { - expandDirectories: false, - onlyDirectories: true, - absolute: true, - }) + expandDirectories: false, + onlyDirectories: true, + absolute: true, + }) : [process.cwd()]; const templates = await glob(args.template || [], { @@ -519,7 +518,7 @@ const main = defineCommand({ const debug = laterRes.debug; - console.log("::group::🔍 Backend Debug Data"); + console.log("::group::[INFO]"); console.log(JSON.stringify(debug, null, 2)); console.log("::endgroup::"); diff --git a/packages/cli/package.json b/packages/cli/package.json index 1c08e72a..287aa973 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -21,7 +21,6 @@ "author": "", "license": "MIT", "dependencies": { - "@actions/core": "^1.11.1", "@jsdevtools/ez-spawn": "^3.0.4", "@octokit/action": "^6.1.0", "ignore": "^5.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e54fe56e..db67d16f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -207,9 +207,6 @@ importers: packages/cli: dependencies: - '@actions/core': - specifier: ^1.11.1 - version: 1.11.1 '@jsdevtools/ez-spawn': specifier: ^3.0.4 version: 3.0.4 @@ -279,18 +276,6 @@ importers: packages: - '@actions/core@1.11.1': - resolution: {integrity: sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==} - - '@actions/exec@1.1.1': - resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==} - - '@actions/http-client@2.2.3': - resolution: {integrity: sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==} - - '@actions/io@1.1.3': - resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==} - '@alloc/quick-lru@5.2.0': resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} engines: {node: '>=10'} @@ -7346,10 +7331,6 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - tunnel@0.0.6: - resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==} - engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} - type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -8140,22 +8121,6 @@ packages: snapshots: - '@actions/core@1.11.1': - dependencies: - '@actions/exec': 1.1.1 - '@actions/http-client': 2.2.3 - - '@actions/exec@1.1.1': - dependencies: - '@actions/io': 1.1.3 - - '@actions/http-client@2.2.3': - dependencies: - tunnel: 0.0.6 - undici: 5.28.4 - - '@actions/io@1.1.3': {} - '@alloc/quick-lru@5.2.0': {} '@ampproject/remapping@2.3.0': @@ -12106,6 +12071,10 @@ snapshots: dependencies: ms: 2.1.3 + debug@4.4.0: + dependencies: + ms: 2.1.3 + debug@4.4.0(supports-color@9.4.0): dependencies: ms: 2.1.3 @@ -16592,7 +16561,7 @@ snapshots: cac: 6.7.14 chokidar: 4.0.3 consola: 3.3.1 - debug: 4.4.0(supports-color@9.4.0) + debug: 4.4.0 esbuild: 0.24.2 joycon: 3.1.1 picocolors: 1.1.1 @@ -16625,8 +16594,6 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - tunnel@0.0.6: {} - type-check@0.4.0: dependencies: prelude-ls: 1.2.1 From 4bb0734d88c61f3f95722ae6b1802b5791a3480b Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 01:42:55 +0330 Subject: [PATCH 25/28] test package again --- packages/cli/index.ts | 15 +++++++------- packages/cli/package.json | 1 + pnpm-lock.yaml | 43 ++++++++++++++++++++++++++++++++++----- 3 files changed, 47 insertions(+), 12 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index d2c05e51..8332c75c 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -21,6 +21,7 @@ import { isBinaryFile } from "isbinaryfile"; import { writePackageJSON, type PackageJson } from "pkg-types"; import pkg from "./package.json" with { type: "json" }; import { createDefaultTemplate } from "./template"; +import * as core from "@actions/core"; declare global { const API_URL: string; @@ -109,10 +110,10 @@ const main = defineCommand({ const paths = args._.length > 0 ? await glob(args._, { - expandDirectories: false, - onlyDirectories: true, - absolute: true, - }) + expandDirectories: false, + onlyDirectories: true, + absolute: true, + }) : [process.cwd()]; const templates = await glob(args.template || [], { @@ -518,9 +519,9 @@ const main = defineCommand({ const debug = laterRes.debug; - console.log("::group::[INFO]"); - console.log(JSON.stringify(debug, null, 2)); - console.log("::endgroup::"); + core.startGroup("🔍 Backend Debug Data"); + core.info(JSON.stringify(debug, null, 2)); + core.endGroup(); console.warn("\n"); console.warn("⚡️ Your npm packages are published.\n"); diff --git a/packages/cli/package.json b/packages/cli/package.json index 287aa973..1c08e72a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -21,6 +21,7 @@ "author": "", "license": "MIT", "dependencies": { + "@actions/core": "^1.11.1", "@jsdevtools/ez-spawn": "^3.0.4", "@octokit/action": "^6.1.0", "ignore": "^5.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index db67d16f..e54fe56e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -207,6 +207,9 @@ importers: packages/cli: dependencies: + '@actions/core': + specifier: ^1.11.1 + version: 1.11.1 '@jsdevtools/ez-spawn': specifier: ^3.0.4 version: 3.0.4 @@ -276,6 +279,18 @@ importers: packages: + '@actions/core@1.11.1': + resolution: {integrity: sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==} + + '@actions/exec@1.1.1': + resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==} + + '@actions/http-client@2.2.3': + resolution: {integrity: sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==} + + '@actions/io@1.1.3': + resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==} + '@alloc/quick-lru@5.2.0': resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} engines: {node: '>=10'} @@ -7331,6 +7346,10 @@ packages: engines: {node: '>=18.0.0'} hasBin: true + tunnel@0.0.6: + resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==} + engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} + type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -8121,6 +8140,22 @@ packages: snapshots: + '@actions/core@1.11.1': + dependencies: + '@actions/exec': 1.1.1 + '@actions/http-client': 2.2.3 + + '@actions/exec@1.1.1': + dependencies: + '@actions/io': 1.1.3 + + '@actions/http-client@2.2.3': + dependencies: + tunnel: 0.0.6 + undici: 5.28.4 + + '@actions/io@1.1.3': {} + '@alloc/quick-lru@5.2.0': {} '@ampproject/remapping@2.3.0': @@ -12071,10 +12106,6 @@ snapshots: dependencies: ms: 2.1.3 - debug@4.4.0: - dependencies: - ms: 2.1.3 - debug@4.4.0(supports-color@9.4.0): dependencies: ms: 2.1.3 @@ -16561,7 +16592,7 @@ snapshots: cac: 6.7.14 chokidar: 4.0.3 consola: 3.3.1 - debug: 4.4.0 + debug: 4.4.0(supports-color@9.4.0) esbuild: 0.24.2 joycon: 3.1.1 picocolors: 1.1.1 @@ -16594,6 +16625,8 @@ snapshots: optionalDependencies: fsevents: 2.3.3 + tunnel@0.0.6: {} + type-check@0.4.0: dependencies: prelude-ls: 1.2.1 From c9d97ff3a2635bda99521d13a45856ad9567a41a Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 01:56:43 +0330 Subject: [PATCH 26/28] final --- packages/cli/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 8332c75c..ff617d00 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -110,10 +110,10 @@ const main = defineCommand({ const paths = args._.length > 0 ? await glob(args._, { - expandDirectories: false, - onlyDirectories: true, - absolute: true, - }) + expandDirectories: false, + onlyDirectories: true, + absolute: true, + }) : [process.cwd()]; const templates = await glob(args.template || [], { @@ -519,7 +519,7 @@ const main = defineCommand({ const debug = laterRes.debug; - core.startGroup("🔍 Backend Debug Data"); + core.startGroup("INFO"); core.info(JSON.stringify(debug, null, 2)); core.endGroup(); From 3728133c275cab0eca8013454db14fa2510cb8cd Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 02:07:47 +0330 Subject: [PATCH 27/28] last --- packages/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index ff617d00..80e74e3e 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -519,7 +519,7 @@ const main = defineCommand({ const debug = laterRes.debug; - core.startGroup("INFO"); + core.startGroup("🔍 Info"); core.info(JSON.stringify(debug, null, 2)); core.endGroup(); From 32b5a97909b6da87c72876b376c92ff8d1c05320 Mon Sep 17 00:00:00 2001 From: AmirSa12 Date: Mon, 25 Aug 2025 02:15:35 +0330 Subject: [PATCH 28/28] final --- packages/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 80e74e3e..376be6b4 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -520,7 +520,7 @@ const main = defineCommand({ const debug = laterRes.debug; core.startGroup("🔍 Info"); - core.info(JSON.stringify(debug, null, 2)); + core.notice(JSON.stringify(debug, null, 2)); core.endGroup(); console.warn("\n");