pattyeng 1.0.0 → 1.0.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/lib/install.js +18 -4
- package/package.json +7 -2
package/lib/install.js
CHANGED
|
@@ -374,7 +374,21 @@ async function ssoLogin() {
|
|
|
374
374
|
// ─── Step 5: Write API key to rc ─────────────────────────────────────────────
|
|
375
375
|
function writeApiKeyToRc(apiKey) {
|
|
376
376
|
step('PATTY_AGENT_API_KEY 환경변수 등록 중...');
|
|
377
|
-
|
|
377
|
+
|
|
378
|
+
if (IS_WIN) {
|
|
379
|
+
// PowerShell profile (new PS sessions)
|
|
380
|
+
appendToRc(`# pattyeng — Patty Agent API Key\n$env:PATTY_AGENT_API_KEY = "${apiKey}"`);
|
|
381
|
+
// setx: Windows user-level env var — persists across ALL new terminals (cmd, PS, git bash)
|
|
382
|
+
try {
|
|
383
|
+
execSync(`setx PATTY_AGENT_API_KEY "${apiKey}"`, { stdio: 'pipe' });
|
|
384
|
+
log(' → Windows 사용자 환경변수 등록 완료 (setx)');
|
|
385
|
+
} catch (e) {
|
|
386
|
+
warn('setx 실패: ' + e.message);
|
|
387
|
+
}
|
|
388
|
+
} else {
|
|
389
|
+
appendToRc(`# pattyeng — Patty Agent API Key\nexport PATTY_AGENT_API_KEY="${apiKey}"`);
|
|
390
|
+
}
|
|
391
|
+
|
|
378
392
|
process.env.PATTY_AGENT_API_KEY = apiKey;
|
|
379
393
|
ok('PATTY_AGENT_API_KEY 등록 완료');
|
|
380
394
|
}
|
|
@@ -437,9 +451,9 @@ ${username ? ` 👤 로그인: ${username}\n` : ''}
|
|
|
437
451
|
|
|
438
452
|
📋 마지막 단계 (딱 한 번만):
|
|
439
453
|
지금 터미널에 이 명령어 하나만 실행하세요:
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
454
|
+
${IS_WIN
|
|
455
|
+
? '\n > 터미널을 닫고 새로 열기\n (환경변수는 setx로 이미 영구 등록되었습니다)\n'
|
|
456
|
+
: '\n $ exec zsh # zsh 사용자\n $ exec bash # bash 사용자\n'}
|
|
443
457
|
💡 그 다음부터는 바로 사용 가능:
|
|
444
458
|
$ codex "안녕하세요!"
|
|
445
459
|
$ codex --session xyz "작업 시작"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pattyeng",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Patty Engineering CLI - Codex SSO setup tool",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pattyeng": "./bin/pattyeng.js"
|
|
@@ -15,7 +15,12 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=18.0.0"
|
|
17
17
|
},
|
|
18
|
-
"keywords": [
|
|
18
|
+
"keywords": [
|
|
19
|
+
"patty",
|
|
20
|
+
"codex",
|
|
21
|
+
"cli",
|
|
22
|
+
"engineering"
|
|
23
|
+
],
|
|
19
24
|
"license": "MIT",
|
|
20
25
|
"publishConfig": {
|
|
21
26
|
"access": "public"
|