@unityclaw/skills 1.0.0 → 1.0.2
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/README.md +16 -1
- package/dist/{chunk-KHQZYC3Y.js → chunk-4GBZWV4P.js} +8 -5
- package/dist/cli.cjs +8 -5
- package/dist/cli.js +1 -1
- package/dist/index.cjs +8 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/unityclaw-document-convert/SKILL.md +5 -1
- package/unityclaw-document-translation/SKILL.md +5 -1
- package/unityclaw-image-compress/SKILL.md +5 -1
- package/unityclaw-image-generation/SKILL.md +5 -1
- package/unityclaw-media-analysis/SKILL.md +5 -1
- package/unityclaw-video-generation-kling/SKILL.md +5 -1
- package/unityclaw-video-generation-other/SKILL.md +5 -1
- package/unityclaw-video-generation-sora/SKILL.md +5 -1
- package/unityclaw-video-generation-veo/SKILL.md +5 -1
package/README.md
CHANGED
|
@@ -12,7 +12,22 @@ npm install -g @unityclaw/skills
|
|
|
12
12
|
npx @unityclaw/skills --help
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## API Key Configuration
|
|
16
|
+
|
|
17
|
+
All skills require an API key. You can configure it using the SDK CLI:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Install SDK globally
|
|
21
|
+
npm install -g @unityclaw/sdk
|
|
22
|
+
|
|
23
|
+
# Configure API key (stored in ~/.unityclaw/config.json)
|
|
24
|
+
unityclaw-sdk config set apiKey your-api-key
|
|
25
|
+
|
|
26
|
+
# Verify configuration
|
|
27
|
+
unityclaw-sdk config
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or set the environment variable:
|
|
16
31
|
|
|
17
32
|
```bash
|
|
18
33
|
export UNITYCLAW_API_KEY=your-api-key
|
|
@@ -131,13 +131,16 @@ Installing ${skillsToInstall.length} skill(s):
|
|
|
131
131
|
\u2728 Done! Skills installed to: ${targetDir}`);
|
|
132
132
|
}
|
|
133
133
|
async function executeSkill(skillCommand) {
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const args = [
|
|
135
|
+
"--print",
|
|
136
|
+
"--dangerously-skip-permissions",
|
|
137
|
+
skillCommand
|
|
138
|
+
];
|
|
139
|
+
console.log(`Executing: claude ${args.join(" ")}
|
|
136
140
|
`);
|
|
137
141
|
return new Promise((resolve, reject) => {
|
|
138
|
-
const child = spawn("claude",
|
|
139
|
-
stdio: "inherit"
|
|
140
|
-
shell: true
|
|
142
|
+
const child = spawn("claude", args, {
|
|
143
|
+
stdio: "inherit"
|
|
141
144
|
});
|
|
142
145
|
child.on("close", (code) => {
|
|
143
146
|
if (code === 0) {
|
package/dist/cli.cjs
CHANGED
|
@@ -154,13 +154,16 @@ Installing ${skillsToInstall.length} skill(s):
|
|
|
154
154
|
\u2728 Done! Skills installed to: ${targetDir}`);
|
|
155
155
|
}
|
|
156
156
|
async function executeSkill(skillCommand) {
|
|
157
|
-
const
|
|
158
|
-
|
|
157
|
+
const args2 = [
|
|
158
|
+
"--print",
|
|
159
|
+
"--dangerously-skip-permissions",
|
|
160
|
+
skillCommand
|
|
161
|
+
];
|
|
162
|
+
console.log(`Executing: claude ${args2.join(" ")}
|
|
159
163
|
`);
|
|
160
164
|
return new Promise((resolve, reject) => {
|
|
161
|
-
const child = (0, import_child_process.spawn)("claude",
|
|
162
|
-
stdio: "inherit"
|
|
163
|
-
shell: true
|
|
165
|
+
const child = (0, import_child_process.spawn)("claude", args2, {
|
|
166
|
+
stdio: "inherit"
|
|
164
167
|
});
|
|
165
168
|
child.on("close", (code) => {
|
|
166
169
|
if (code === 0) {
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -165,13 +165,16 @@ Installing ${skillsToInstall.length} skill(s):
|
|
|
165
165
|
\u2728 Done! Skills installed to: ${targetDir}`);
|
|
166
166
|
}
|
|
167
167
|
async function executeSkill(skillCommand) {
|
|
168
|
-
const
|
|
169
|
-
|
|
168
|
+
const args = [
|
|
169
|
+
"--print",
|
|
170
|
+
"--dangerously-skip-permissions",
|
|
171
|
+
skillCommand
|
|
172
|
+
];
|
|
173
|
+
console.log(`Executing: claude ${args.join(" ")}
|
|
170
174
|
`);
|
|
171
175
|
return new Promise((resolve, reject) => {
|
|
172
|
-
const child = (0, import_child_process.spawn)("claude",
|
|
173
|
-
stdio: "inherit"
|
|
174
|
-
shell: true
|
|
176
|
+
const child = (0, import_child_process.spawn)("claude", args, {
|
|
177
|
+
stdio: "inherit"
|
|
175
178
|
});
|
|
176
179
|
child.on("close", (code) => {
|
|
177
180
|
if (code === 0) {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
|
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
34
|
-
Set your API key
|
|
34
|
+
Set your API key using one of these methods:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
+
# Method 1: Use SDK CLI (recommended - persists across sessions)
|
|
38
|
+
npx @unityclaw/sdk config set apiKey your-api-key
|
|
39
|
+
|
|
40
|
+
# Method 2: Environment variable
|
|
37
41
|
export UNITYCLAW_API_KEY=your-api-key
|
|
38
42
|
```
|
|
39
43
|
|