Repository navigation
ci(lint): guard duplicate launch environment names - #1607
huong8373tt-beep wants to merge 2 commits into
Conversation
|
No findings in the scoped diff. The PR description documents sufficient testing: focused rule tests, typecheck, lint, build, and real-CLI runs ( Review was read-only; I did not run, build, or install anything from the PR. |
SaulMoro
left a comment
There was a problem hiding this comment.
This was generated by AI during triage.
The rule itself looks right: it reports the three launch names as string literals, bare templates and process.env.<NAME> outside src/launch-context.ts and the tests, and lint is clean with it.
[P1 blocking] The branch conflicts with main. Since it was opened, #1601, #1602 and #1604 have each registered a rule in oxlint-plugin-teamai/index.js and turned one on in .oxlintrc.json, so both files conflict. Please rebase and keep every existing entry next to launch-env.
The Windows job timed out in hooks-windows-bash.test.ts ("uses and executes a PowerShell project gate when Git Bash is unavailable"), which this change doesn't touch. A rerun after the rebase should clear it.
@jeff-r2026 Your call once rebased.
808c689 to
8442d5e
Compare
|
Rebased onto current The existing Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content. |
|
No findings in the scoped diff. The PR description documents sufficient testing: focused rule tests, typecheck, lint, build, and real-CLI runs ( The earlier review raised no findings, so none require resolution. Review was read-only; I did not run, build, or install anything from the PR. |
SaulMoro
left a comment
There was a problem hiding this comment.
This was generated by AI during triage.
Re-checked at 8442d5e3. The rebase resolves the conflict cleanly: launch-env is registered next to home-env, remove-delivered and learnings-root in index.js and .oxlintrc.json, and nothing else changed. The rule was fine in the earlier round, so the conflict was the only blocker.
@jeff-r2026 Your call: ready from my side once CI is green.
SaulMoro
left a comment
There was a problem hiding this comment.
This was generated by AI during triage.
[P1 blocking] #1590 moves each static check into lint and deletes the Vitest test it replaces, so CI gets shorter. This PR adds teamai/launch-env but keeps the the launch variables have one spelling (#1384) block in src/__tests__/launch-context.test.ts (the sourceFiles walk over src/), which checks the same thing. Delete that describe block in this PR.
@jeff-r2026 Your call once the old scan is gone.
SaulMoro
left a comment
There was a problem hiding this comment.
This was generated by AI during triage.
Requesting changes for the [P1 blocking] point above (#1607 (review)): this slice must delete the Vitest scan it replaces, per #1590.
|
Pushed |
|
Follow-up verification after |
Thank you for this. #1630 has just merged and moved all of #1590 into |
teamai/launch-env also rejects dotted process.env reads of TEAMAI_MODE, TEAMAI_LAUNCHED_BY and TEAMAI_WORKFLOW_ATTEMPT outside src/launch-context.ts. Closes #1607
teamai/launch-env also rejects dotted process.env reads of TEAMAI_MODE, TEAMAI_LAUNCHED_BY and TEAMAI_WORKFLOW_ATTEMPT outside src/launch-context.ts. Closes Tencent#1607
Summary
Add the next independent #1590 static-check slice:
teamai/launch-env.TEAMAI_MODE,TEAMAI_LAUNCHED_BY, andTEAMAI_WORKFLOW_ATTEMPTstring names owned bysrc/launch-context.ts;.oxlintrc.json.Validation
npx vitest run oxlint-plugin-teamai/rules/launch-env.test.ts --maxWorkers=2— 5 passednpm run typecheck— passednpm run lint— 0 warnings, 0 errorsnpm run build— passednode dist/index.js --version—0.22.0node dist/index.js list --help— exit 0git diff --check— passedRelated
Part of #1590.
Disclosure
Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.