@justin_666/square-couplets-master-skills 1.0.12 → 1.0.13
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": "@justin_666/square-couplets-master-skills",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Claude Agent Skills for generating Chinese New Year Doufang (diamond-shaped couplet) artwork using Google Gemini AI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/doufang-skills.js",
|
|
@@ -11,31 +11,6 @@ import { readFileSync, writeFileSync, existsSync, statSync, mkdirSync } from 'fs
|
|
|
11
11
|
import { execSync } from 'child_process';
|
|
12
12
|
import { createRequire } from 'module';
|
|
13
13
|
|
|
14
|
-
// Load environment variables helper
|
|
15
|
-
async function loadEnvironmentVariables() {
|
|
16
|
-
try {
|
|
17
|
-
const dotenv = await import('dotenv');
|
|
18
|
-
const envLocalPath = join(projectRoot, '.env.local');
|
|
19
|
-
const envPath = join(projectRoot, '.env');
|
|
20
|
-
const cwdEnvLocalPath = join(process.cwd(), '.env.local');
|
|
21
|
-
const cwdEnvPath = join(process.cwd(), '.env');
|
|
22
|
-
|
|
23
|
-
if (existsSync(envLocalPath)) {
|
|
24
|
-
dotenv.config({ path: envLocalPath });
|
|
25
|
-
} else if (existsSync(envPath)) {
|
|
26
|
-
dotenv.config({ path: envPath });
|
|
27
|
-
} else if (existsSync(cwdEnvLocalPath)) {
|
|
28
|
-
dotenv.config({ path: cwdEnvLocalPath });
|
|
29
|
-
} else if (existsSync(cwdEnvPath)) {
|
|
30
|
-
dotenv.config({ path: cwdEnvPath });
|
|
31
|
-
} else {
|
|
32
|
-
dotenv.config();
|
|
33
|
-
}
|
|
34
|
-
} catch (e) {
|
|
35
|
-
// dotenv not available, continue without it (will use environment variables)
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
14
|
// Resolve project root and service path
|
|
40
15
|
const __filename = fileURLToPath(import.meta.url);
|
|
41
16
|
const __dirname = dirname(__filename);
|
|
@@ -112,6 +87,9 @@ if (existsSync(envLocalPath)) {
|
|
|
112
87
|
|
|
113
88
|
async function main() {
|
|
114
89
|
try {
|
|
90
|
+
// Load environment variables first
|
|
91
|
+
await loadEnvironmentVariables();
|
|
92
|
+
|
|
115
93
|
// Parse command line arguments
|
|
116
94
|
const args = process.argv.slice(2);
|
|
117
95
|
const prompt = args[0];
|