* When rendering to an out-dir, repoint the literal section-base path at the * out-dir so section Reads resolve to the rendered copy, not the global install. * Surgical: ONLY paths containing `/sections/` are rewritten — bin/, browse/, * docs/ references keep pointing at `~/.claude/skills/gstack`
(content: string)
| 165 | * install, which still works). No-op when --out-dir is unset. |
| 166 | */ |
| 167 | function rewriteSectionBase(content: string): string { |
| 168 | if (!OUT_DIR) return content; |
| 169 | return content.replace( |
| 170 | /~\/\.claude\/skills\/gstack\/([^\s)`"'*]+\/sections\/)/g, |
| 171 | `${OUT_DIR}/$1`, |
| 172 | ); |
| 173 | } |
| 174 | |
| 175 | // HostPaths, HOST_PATHS, and TemplateContext imported from ./resolvers/types (line 7-8) |
| 176 | // Design constants (AI_SLOP_BLACKLIST, OPENAI_HARD_REJECTIONS, OPENAI_LITMUS_CHECKS) |
no outgoing calls
no test coverage detected