Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2511,6 +2511,9 @@ var OpenCodeIntercomPlugin = async ({ client, directory, serverUrl }) => {
return { value: error };
}
async function logResult(step, result, details = {}) {
if (!debugInject) {
return;
}
const responseBody = result.response ? await result.response.clone().text().catch(() => void 0) : void 0;
logInject(step, {
...details,
Expand Down
3 changes: 3 additions & 0 deletions dist/plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2511,6 +2511,9 @@ var OpenCodeIntercomPlugin = async ({ client, directory, serverUrl }) => {
return { value: error };
}
async function logResult(step, result, details = {}) {
if (!debugInject) {
return;
}
const responseBody = result.response ? await result.response.clone().text().catch(() => void 0) : void 0;
logInject(step, {
...details,
Expand Down
3 changes: 3 additions & 0 deletions opencode/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ const OpenCodeIntercomPlugin: Plugin = async ({ client, directory, serverUrl })
error?: unknown;
response?: Response;
}, details: Record<string, unknown> = {}): Promise<void> {
if (!debugInject) {
return;
}
const responseBody = result.response
? await result.response.clone().text().catch(() => undefined)
: undefined;
Expand Down