Commit a373c51
committed
fix(cli): match bundleSkills indexer env with main worker indexer
The bundleSkills indexer pass runs a child process to import every task
file and read its skill registrations. It was passed `env: process.env`,
but the main worker indexer (devSupervisor.#getEnvVars) injects
TRIGGER_API_URL and TRIGGER_SECRET_KEY from the active CLI profile, not
from .env.
So any task file that reads process.env.TRIGGER_API_URL (or related
CLI-injected vars) at module top level imported fine in the real worker
but threw in the bundleSkills indexer, surfacing as a spurious
[bundleSkills] skill discovery failed, skipping skill bundling:
Failed to import some task files
warning on every dev rebuild for any project that doesn't duplicate
TRIGGER_API_URL into its .env.
Fix: thread TRIGGER_API_URL + TRIGGER_SECRET_KEY from the client into
the bundleSkills env so the two indexer passes see the same environment.1 parent 9ff410b commit a373c51
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
134 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
135 | 143 | | |
136 | 144 | | |
137 | 145 | | |
| |||
0 commit comments