@haenah/u1z 0.1.2 → 0.1.3

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": "@haenah/u1z",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "AI 집 비서 — Raspberry Pi home assistant powered by Claude + Discord",
5
5
  "type": "module",
6
6
  "bin": {
@@ -87,7 +87,15 @@ async function checks(): Promise<CheckResult[]> {
87
87
  "GOOGLE_GENERATIVE_AI_API_KEY",
88
88
  "TAVILY_API_KEY",
89
89
  ];
90
- const missingVars = requiredVars.filter((k) => !process.env[k]);
90
+ const configVars: Record<string, string> = {};
91
+ if (existsSync(configPath)) {
92
+ const content = await Bun.file(configPath).text();
93
+ for (const line of content.split("\n")) {
94
+ const match = line.match(/^([A-Z_][A-Z0-9_]*)=(.*)$/);
95
+ if (match) configVars[match[1]] = match[2];
96
+ }
97
+ }
98
+ const missingVars = requiredVars.filter((k) => !configVars[k] && !process.env[k]);
91
99
  results.push({
92
100
  label: "설정 파일 필수 변수",
93
101
  ok: missingVars.length === 0,