Skip to content

[Copilot Dreaming] Avoid incompatible service typecheck diagnostics - #11

Open
Copilot wants to merge 1 commit into
mainfrom
copilot/dream-curate-memories-20261124040900
Open

Copilot wants to merge 1 commit into
mainfrom
copilot/dream-curate-memories-20261124040900

Conversation

@Copilot

Copilot AI commented Nov 24, 2026

Copy link
Copy Markdown

🧠 How this helps Copilot

Copilot can follow the service validation example into CommonJS-only compiler diagnostics even though service dependencies use import.meta. Selecting the ESM project already used by the service build avoids that configuration detour and keeps actual source errors visible; it does not promise a clean whole-service check.

Review commit by commit for each change's rationale and evidence.

Note

Copilot Dreaming curates this repository's Copilot instructions and skills in the background, proposing updates to help agents work here. Learn more about Copilot Dreaming.

Automated details

Source: curate-memories Dream, analyzing main at c7bf37d.

Copilot can follow the service validation example into CommonJS-only diagnostics even though imported sources use import.meta. Selecting the service's ESM compiler project avoids that configuration detour while preserving no-emit checking and real source diagnostics.

The default service compiler project selects CommonJS.
https://github.com/nosportugal/code-interpreter/blob/c7bf37d6977dffcccc687e29c0b1514036c24e63/service/tsconfig.json#L2-L5

An imported package source uses import.meta.
https://github.com/nosportugal/code-interpreter/blob/c7bf37d6977dffcccc687e29c0b1514036c24e63/packages/code/src/root-access.ts#L31-L37

The service build already selects its ESM compiler project.
https://github.com/nosportugal/code-interpreter/blob/c7bf37d6977dffcccc687e29c0b1514036c24e63/service/rollup.config.js#L39-L47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant