@flydocs/cli 0.5.0-beta.15 → 0.5.0-beta.16
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 +26 -8
- package/package.json +1 -1
- package/template/.flydocs/config.json +1 -1
- package/template/.flydocs/version +1 -1
- package/template/CHANGELOG.md +10 -0
- package/template/manifest.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ var CLI_VERSION, CLI_NAME, PACKAGE_NAME;
|
|
|
15
15
|
var init_constants = __esm({
|
|
16
16
|
"src/lib/constants.ts"() {
|
|
17
17
|
"use strict";
|
|
18
|
-
CLI_VERSION = "0.5.0-beta.
|
|
18
|
+
CLI_VERSION = "0.5.0-beta.16";
|
|
19
19
|
CLI_NAME = "flydocs";
|
|
20
20
|
PACKAGE_NAME = "@flydocs/cli";
|
|
21
21
|
}
|
|
@@ -365,13 +365,21 @@ async function installOwnedSkills(templateDir, targetDir, tier) {
|
|
|
365
365
|
if (await pathExists(inactivePath)) {
|
|
366
366
|
await rm5(inactivePath, { recursive: true, force: true });
|
|
367
367
|
}
|
|
368
|
-
for (const skill of
|
|
368
|
+
for (const skill of CORE_SKILLS) {
|
|
369
369
|
if (skill === "flydocs-workflow") continue;
|
|
370
370
|
const src = join4(templateSkillsDir, skill);
|
|
371
371
|
if (await pathExists(src)) {
|
|
372
372
|
await replaceDirectory(src, join4(skillsDir, skill));
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
+
if (tier === "cloud") {
|
|
376
|
+
for (const skill of CLOUD_ONLY_SKILLS) {
|
|
377
|
+
const src = join4(templateSkillsDir, skill);
|
|
378
|
+
if (await pathExists(src)) {
|
|
379
|
+
await replaceDirectory(src, join4(skillsDir, skill));
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
375
383
|
const readmeSrc = join4(templateSkillsDir, "README.md");
|
|
376
384
|
if (await pathExists(readmeSrc)) {
|
|
377
385
|
await copyFile(readmeSrc, join4(skillsDir, "README.md"));
|
|
@@ -380,13 +388,24 @@ async function installOwnedSkills(templateDir, targetDir, tier) {
|
|
|
380
388
|
async function replaceOwnedSkills(templateDir, targetDir, tier) {
|
|
381
389
|
const skillsDir = join4(targetDir, ".claude", "skills");
|
|
382
390
|
const templateSkillsDir = join4(templateDir, ".claude", "skills");
|
|
383
|
-
|
|
391
|
+
const { rm: rm5 } = await import("fs/promises");
|
|
392
|
+
for (const skill of CORE_SKILLS) {
|
|
384
393
|
const src = join4(templateSkillsDir, skill);
|
|
385
394
|
if (await pathExists(src)) {
|
|
386
395
|
await replaceDirectory(src, join4(skillsDir, skill));
|
|
387
396
|
}
|
|
388
397
|
}
|
|
389
|
-
const
|
|
398
|
+
for (const skill of CLOUD_ONLY_SKILLS) {
|
|
399
|
+
const dest = join4(skillsDir, skill);
|
|
400
|
+
if (tier === "cloud") {
|
|
401
|
+
const src = join4(templateSkillsDir, skill);
|
|
402
|
+
if (await pathExists(src)) {
|
|
403
|
+
await replaceDirectory(src, dest);
|
|
404
|
+
}
|
|
405
|
+
} else if (await pathExists(dest)) {
|
|
406
|
+
await rm5(dest, { recursive: true, force: true });
|
|
407
|
+
}
|
|
408
|
+
}
|
|
390
409
|
const activeMech = MECHANISM_SKILLS[tier];
|
|
391
410
|
const inactiveMech = tier === "local" ? MECHANISM_SKILLS.cloud : MECHANISM_SKILLS.local;
|
|
392
411
|
const inactivePath = join4(skillsDir, inactiveMech);
|
|
@@ -439,18 +458,17 @@ async function copyCursorRules(targetDir) {
|
|
|
439
458
|
await copyFile(context7Rule, join4(rulesDir, "flydocs-context7.mdc"));
|
|
440
459
|
}
|
|
441
460
|
}
|
|
442
|
-
var
|
|
461
|
+
var CORE_SKILLS, CLOUD_ONLY_SKILLS, MECHANISM_SKILLS;
|
|
443
462
|
var init_skills = __esm({
|
|
444
463
|
"src/lib/skills.ts"() {
|
|
445
464
|
"use strict";
|
|
446
465
|
init_fs_ops();
|
|
447
|
-
|
|
466
|
+
CORE_SKILLS = [
|
|
448
467
|
"flydocs-workflow",
|
|
449
|
-
"flydocs-figma",
|
|
450
|
-
"flydocs-estimates",
|
|
451
468
|
"flydocs-context-graph",
|
|
452
469
|
"flydocs-context7"
|
|
453
470
|
];
|
|
471
|
+
CLOUD_ONLY_SKILLS = ["flydocs-figma", "flydocs-estimates"];
|
|
454
472
|
MECHANISM_SKILLS = {
|
|
455
473
|
local: "flydocs-local",
|
|
456
474
|
cloud: "flydocs-cloud"
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.0-beta.
|
|
1
|
+
0.5.0-beta.16
|
package/template/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ Versioning: [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [0.5.0-beta.16] — 2026-02-24
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **Premium skills are cloud-only** — `flydocs-figma` and `flydocs-estimates` are no
|
|
15
|
+
longer installed on local tier. Existing local installs have them cleaned up on
|
|
16
|
+
next update. Core skills (workflow, context-graph, context7) remain on all tiers.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
10
20
|
## [0.5.0-beta.15] — 2026-02-24
|
|
11
21
|
|
|
12
22
|
### Changed
|
package/template/manifest.json
CHANGED