sprag-cli 3.75.0 → 3.75.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprag-cli",
3
- "version": "3.75.0",
3
+ "version": "3.75.1",
4
4
  "description": "Model-delegation router for Claude Code and Codex: lookups, checks and test runs go to cheaper models, documents go in as compact Markdown, and a live statusline shows spend and savings.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -71,6 +71,12 @@ export function isTrustedProject(cwd = process.cwd(), { home = homedir() } = {})
71
71
  *
72
72
  * 헬퍼 실행은 비용이 있으므로 갱신 경로(5분에 한 번 뜨는 detached 자식)에서만
73
73
  * 부릅니다. 수 초 간격으로 도는 렌더 경로에서 부르면 통계선이 그만큼 느려집니다.
74
+ *
75
+ * 헬퍼에는 APIKEY_HELPER_NONINTERACTIVE=1 을 넘겨, 캐시된 토큰이 없을 때 로그인
76
+ * 창을 띄우지 말고 바로 실패하라고 알립니다. 이 호출은 사용자 입력과 무관하게 5분마다
77
+ * 일어나므로, 헬퍼가 브라우저 인증을 시작하면 자리를 비운 동안 인증창이 쌓입니다.
78
+ * 게다가 HELPER_TIMEOUT_MS 안에 인증이 끝날 수 없어서 그 창은 어차피 쓸모가 없습니다.
79
+ * 이 변수를 모르는 헬퍼는 그대로 동작합니다.
74
80
  */
75
81
  export function keyFromApiKeyHelper(cwd = process.cwd()) {
76
82
  // 프로젝트 설정의 헬퍼는 그 저장소가 넣어 둔 셸 명령입니다. Claude Code 는 신뢰
@@ -96,6 +102,7 @@ export function keyFromApiKeyHelper(cwd = process.cwd()) {
96
102
  encoding: 'utf8',
97
103
  timeout: HELPER_TIMEOUT_MS,
98
104
  stdio: ['ignore', 'pipe', 'ignore'],
105
+ env: { ...process.env, APIKEY_HELPER_NONINTERACTIVE: '1' },
99
106
  });
100
107
  // 진행 로그를 함께 출력하는 헬퍼가 있으므로 마지막 비어 있지 않은 줄을 취합니다.
101
108
  const token = out.trim().split(/\r?\n/).filter(Boolean).pop();