@ranger1/dx 0.1.59 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96,6 +96,7 @@ agent: sisyphus
|
|
|
96
96
|
- `decisionLogFile: ./.cache/decision-log-pr{{PR_NUMBER}}.md`(如存在)
|
|
97
97
|
- reviewer 默认读 `contextFile`;如果 `decisionLogFile` 存在,reviewer 应在 prompt 中提供该文件路径以参考前轮决策;必要时允许用 `git/gh` 只读命令拿 diff
|
|
98
98
|
- 忽略问题:1.格式化代码引起的噪音 2.已经lint检查以外的格式问题 3.忽略单元测试不足的问题
|
|
99
|
+
- 对于重构代码,不必考虑和以前版本数据的兼容性问题,直接切换就行
|
|
99
100
|
- 特别关注: 逻辑、安全、性能、可维护性
|
|
100
101
|
- 遵守 Decision Log:
|
|
101
102
|
- 已修复(Fixed):不再提
|
|
@@ -86,8 +86,22 @@ export async function handleDeploy(cli, args) {
|
|
|
86
86
|
})
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
//
|
|
89
|
+
// 默认仅在缺失/占位时覆盖,避免破坏显式传入的环境变量。
|
|
90
|
+
// 但对 Vercel 部署关键变量,强制使用当前环境层,确保不受 shell 残留值影响。
|
|
91
|
+
const vercelCriticalKeys = new Set([
|
|
92
|
+
'VERCEL_TOKEN',
|
|
93
|
+
'VERCEL_ORG_ID',
|
|
94
|
+
'VERCEL_PROJECT_ID_FRONT',
|
|
95
|
+
'VERCEL_PROJECT_ID_ADMIN',
|
|
96
|
+
'VERCEL_PROJECT_ID_TELEGRAM_BOT',
|
|
97
|
+
])
|
|
98
|
+
|
|
90
99
|
for (const [key, value] of Object.entries(layeredEnv)) {
|
|
100
|
+
if (vercelCriticalKeys.has(key)) {
|
|
101
|
+
process.env[key] = value
|
|
102
|
+
continue
|
|
103
|
+
}
|
|
104
|
+
|
|
91
105
|
const currentValue = process.env[key]
|
|
92
106
|
if (!currentValue || envManager.isPlaceholderEnvValue(currentValue)) {
|
|
93
107
|
process.env[key] = value
|