@nano-step/skill-manager 5.5.1 → 5.5.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/dist/index.js +10 -3
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66,7 +66,13 @@ async function run() {
|
|
|
66
66
|
const paths = await (0, utils_1.detectOpenCodePaths)();
|
|
67
67
|
await (0, state_1.migrateV4State)(paths.configDir, paths.stateFilePath, paths.skillsDir);
|
|
68
68
|
const token = await (0, auth_1.resolveToken)();
|
|
69
|
-
const
|
|
69
|
+
const liveRemoteSkills = token ? await (0, remote_registry_1.listRemoteSkills)() : [];
|
|
70
|
+
const bundledPrivate = (0, registry_1.loadPrivateCatalog)(paths.packageSkillsDir);
|
|
71
|
+
const liveNames = new Set(liveRemoteSkills.map((s) => s.name));
|
|
72
|
+
const remoteSkills = [
|
|
73
|
+
...liveRemoteSkills,
|
|
74
|
+
...bundledPrivate.filter((s) => !liveNames.has(s.name)),
|
|
75
|
+
];
|
|
70
76
|
const catalog = await (0, registry_1.loadMergedCatalog)(paths.packageSkillsDir, remoteSkills);
|
|
71
77
|
const state = await (0, state_1.loadState)(paths.stateFilePath);
|
|
72
78
|
if (catalog.length === 0) {
|
|
@@ -92,7 +98,7 @@ async function run() {
|
|
|
92
98
|
if (installed) {
|
|
93
99
|
status = chalk_1.default.green("installed");
|
|
94
100
|
}
|
|
95
|
-
else if (entry.source === "private" && !
|
|
101
|
+
else if (entry.source === "private" && !liveNames.has(skill.name)) {
|
|
96
102
|
status = chalk_1.default.yellow("login required");
|
|
97
103
|
}
|
|
98
104
|
else {
|
|
@@ -107,7 +113,8 @@ async function run() {
|
|
|
107
113
|
skill.description);
|
|
108
114
|
}
|
|
109
115
|
console.log("");
|
|
110
|
-
|
|
116
|
+
const hasUnauthPrivate = catalog.some((e) => e.source === "private" && !liveNames.has(e.manifest.name));
|
|
117
|
+
if (hasUnauthPrivate) {
|
|
111
118
|
console.log(chalk_1.default.gray("Tip: Run 'skill-manager login --token <github-token>' to install private skills."));
|
|
112
119
|
console.log("");
|
|
113
120
|
}
|
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.writeText = writeText;
|
|
|
13
13
|
const path_1 = __importDefault(require("path"));
|
|
14
14
|
const os_1 = __importDefault(require("os"));
|
|
15
15
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
16
|
-
exports.MANAGER_VERSION = "5.5.
|
|
16
|
+
exports.MANAGER_VERSION = "5.5.2";
|
|
17
17
|
async function detectOpenCodePaths() {
|
|
18
18
|
const homeConfig = path_1.default.join(os_1.default.homedir(), ".config", "opencode");
|
|
19
19
|
const cwd = process.cwd();
|
package/package.json
CHANGED