feat: externalize artifact engine URL to shared config - #2
Merged
Conversation
- Replace hardcoded ~/.fusion with getClaudeConfigHomeDir() (~/.fusion-code) - Replace custom parseYAMLSection with existing parseYaml() utility - Fix cache guard: cachedURL !== null instead of truthy check - Add logging for config load and errors Co-Authored-By: Claude <noreply@anthropic.com>
dahai80
force-pushed
the
feature/artifacts-config-externalize
branch
from
July 27, 2026 01:30
5c95d1f to
507df09
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
配置外部化:所有项目配置从配置文件读取,不能写死在代码里。
改动
src/utils/artifactConfig.ts— 集中读取 artifacts-engine URLARTIFACT_ENGINE_URL环境变量 >~/.fusion/artifacts/config.yaml> 默认值ArtifactCreateTool.ts— 替换硬编码ARTIFACT_ENGINE_URL→getArtifactEngineURL()ArtifactUpdateTool.ts— 同上artifactInjection.ts— 同上配置文件格式
与
fusion-artifacts-engine的default_config.yaml一致:用户修改
~/.fusion/artifacts/config.yaml即可改变所有客户端连接地址,无需改代码。🤖 Generated with Claude Code