imagegen-smarto 0.1.0 → 0.1.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/README.md +31 -0
- package/bin/cli.js +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,6 +34,37 @@ imagegen-smarto path
|
|
|
34
34
|
If npm lifecycle scripts are disabled, run `imagegen-smarto install` once after
|
|
35
35
|
the global npm installation.
|
|
36
36
|
|
|
37
|
+
## Uninstall globally
|
|
38
|
+
|
|
39
|
+
Remove the Codex skill first, then remove the npm package:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
imagegen-smarto uninstall
|
|
43
|
+
npm uninstall --global imagegen-smarto
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The uninstall command removes only
|
|
47
|
+
`CODEX_HOME/skills/imagegen-smarto` (or `~/.codex/skills/imagegen-smarto` when
|
|
48
|
+
`CODEX_HOME` is not set). It does not remove other Codex skills.
|
|
49
|
+
|
|
50
|
+
If the npm package has already been removed, delete the skill directory
|
|
51
|
+
manually:
|
|
52
|
+
|
|
53
|
+
Linux/macOS:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
rm -rf ~/.codex/skills/imagegen-smarto
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Windows PowerShell:
|
|
60
|
+
|
|
61
|
+
```powershell
|
|
62
|
+
Remove-Item -Recurse -Force "$env:USERPROFILE\.codex\skills\imagegen-smarto"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
When using a custom `CODEX_HOME`, replace `~/.codex` or
|
|
66
|
+
`%USERPROFILE%\.codex` with that directory.
|
|
67
|
+
|
|
37
68
|
## Install with the Codex installer
|
|
38
69
|
|
|
39
70
|
The preinstalled Codex skill installer remains available as a fallback:
|
package/bin/cli.js
CHANGED
|
@@ -14,6 +14,7 @@ function printHelp() {
|
|
|
14
14
|
|
|
15
15
|
Usage:
|
|
16
16
|
imagegen-smarto install [--codex-home <path>]
|
|
17
|
+
imagegen-smarto uninstall [--codex-home <path>]
|
|
17
18
|
imagegen-smarto path [--codex-home <path>]
|
|
18
19
|
imagegen-smarto --help
|
|
19
20
|
|
|
@@ -73,6 +74,12 @@ function installSkill(codexHome) {
|
|
|
73
74
|
return target
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
function uninstallSkill(codexHome) {
|
|
78
|
+
const target = getSkillTarget(codexHome)
|
|
79
|
+
fs.rmSync(target, { recursive: true, force: true })
|
|
80
|
+
return target
|
|
81
|
+
}
|
|
82
|
+
|
|
76
83
|
function main() {
|
|
77
84
|
const { command, codexHome: explicitCodexHome, quiet } = parseArgs(process.argv.slice(2))
|
|
78
85
|
|
|
@@ -87,6 +94,14 @@ function main() {
|
|
|
87
94
|
return
|
|
88
95
|
}
|
|
89
96
|
|
|
97
|
+
if (command === 'uninstall') {
|
|
98
|
+
const target = uninstallSkill(codexHome)
|
|
99
|
+
if (!quiet) {
|
|
100
|
+
console.log(`Removed imagegen-smarto from ${target}`)
|
|
101
|
+
}
|
|
102
|
+
return
|
|
103
|
+
}
|
|
104
|
+
|
|
90
105
|
if (command !== 'install') {
|
|
91
106
|
throw new Error(`unknown command: ${command}`)
|
|
92
107
|
}
|