@jvittechs/j 1.0.34 → 1.0.35
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/cli.js +23 -26
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -149,7 +149,7 @@ import { basename as basename5 } from "path";
|
|
|
149
149
|
// package.json
|
|
150
150
|
var package_default = {
|
|
151
151
|
name: "@jvittechs/j",
|
|
152
|
-
version: "1.0.
|
|
152
|
+
version: "1.0.35",
|
|
153
153
|
description: "A unified CLI tool for JV-IT TECHS developers to manage Jai1 Framework. Supports both `j` and `jai1` commands. Please contact TeamAI for usage instructions.",
|
|
154
154
|
type: "module",
|
|
155
155
|
bin: {
|
|
@@ -13243,7 +13243,7 @@ var SkillsService = class {
|
|
|
13243
13243
|
*/
|
|
13244
13244
|
async npmSkillsAdd(source, projectRoot) {
|
|
13245
13245
|
const { repo, skill } = this.parseSkillshSource(source);
|
|
13246
|
-
const args = ["-y", "skills", "add", repo, "--copy", "
|
|
13246
|
+
const args = ["-y", "skills", "add", repo, "--copy", "-a", "universal", "-y"];
|
|
13247
13247
|
if (skill) {
|
|
13248
13248
|
args.push("--skill", skill);
|
|
13249
13249
|
}
|
|
@@ -13274,36 +13274,33 @@ var SkillsService = class {
|
|
|
13274
13274
|
return { repo: source };
|
|
13275
13275
|
}
|
|
13276
13276
|
/**
|
|
13277
|
-
* After npx skills add, copy newly installed skills from
|
|
13277
|
+
* After npx skills add, copy newly installed skills from .agents/skills/ into .jai1/skills/
|
|
13278
13278
|
*/
|
|
13279
13279
|
async copySkillshResultsToJai1(projectRoot, specificSkill) {
|
|
13280
13280
|
const jai1SkillsDir = join18(projectRoot, ".jai1", "skills");
|
|
13281
13281
|
await fs27.mkdir(jai1SkillsDir, { recursive: true });
|
|
13282
|
-
const
|
|
13283
|
-
|
|
13284
|
-
const
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
await fs27.mkdir(targetSkill, { recursive: true });
|
|
13302
|
-
await this.copyDir(srcSkill, targetSkill);
|
|
13303
|
-
}
|
|
13282
|
+
const universalDir = join18(projectRoot, ".agents", "skills");
|
|
13283
|
+
try {
|
|
13284
|
+
const entries = await fs27.readdir(universalDir, { withFileTypes: true });
|
|
13285
|
+
for (const entry of entries) {
|
|
13286
|
+
if (!entry.isDirectory()) continue;
|
|
13287
|
+
if (specificSkill && entry.name !== specificSkill) continue;
|
|
13288
|
+
const srcSkill = join18(universalDir, entry.name);
|
|
13289
|
+
const skillMd = join18(srcSkill, "SKILL.md");
|
|
13290
|
+
try {
|
|
13291
|
+
await fs27.access(skillMd);
|
|
13292
|
+
} catch {
|
|
13293
|
+
continue;
|
|
13294
|
+
}
|
|
13295
|
+
const targetSkill = join18(jai1SkillsDir, entry.name);
|
|
13296
|
+
try {
|
|
13297
|
+
await fs27.access(targetSkill);
|
|
13298
|
+
} catch {
|
|
13299
|
+
await fs27.mkdir(targetSkill, { recursive: true });
|
|
13300
|
+
await this.copyDir(srcSkill, targetSkill);
|
|
13304
13301
|
}
|
|
13305
|
-
} catch {
|
|
13306
13302
|
}
|
|
13303
|
+
} catch {
|
|
13307
13304
|
}
|
|
13308
13305
|
}
|
|
13309
13306
|
/**
|