@flydocs/cli 0.5.0-beta.0 → 0.5.0-beta.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/cli.js +19 -19
- package/package.json +1 -1
- package/template/.flydocs/config.json +1 -1
- package/template/.flydocs/version +1 -1
- package/template/manifest.json +8 -34
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.2";
|
|
19
19
|
CLI_NAME = "flydocs";
|
|
20
20
|
PACKAGE_NAME = "@flydocs/cli";
|
|
21
21
|
}
|
|
@@ -2629,7 +2629,24 @@ var init_self_update = __esm({
|
|
|
2629
2629
|
|
|
2630
2630
|
// src/cli.ts
|
|
2631
2631
|
init_constants();
|
|
2632
|
-
import { defineCommand as defineCommand8,
|
|
2632
|
+
import { defineCommand as defineCommand8, runMain } from "citty";
|
|
2633
|
+
var SUB_COMMANDS = /* @__PURE__ */ new Set([
|
|
2634
|
+
"install",
|
|
2635
|
+
"update",
|
|
2636
|
+
"setup",
|
|
2637
|
+
"skills",
|
|
2638
|
+
"connect",
|
|
2639
|
+
"upgrade",
|
|
2640
|
+
"self-update"
|
|
2641
|
+
]);
|
|
2642
|
+
var userArgs = process.argv.slice(2);
|
|
2643
|
+
var hasMetaFlag = userArgs.some(
|
|
2644
|
+
(a) => a === "--version" || a === "--help" || a === "-h"
|
|
2645
|
+
);
|
|
2646
|
+
var firstPositional = userArgs.find((a) => !a.startsWith("-"));
|
|
2647
|
+
if (!hasMetaFlag && (!firstPositional || !SUB_COMMANDS.has(firstPositional))) {
|
|
2648
|
+
process.argv.splice(2, 0, "install");
|
|
2649
|
+
}
|
|
2633
2650
|
var main = defineCommand8({
|
|
2634
2651
|
meta: {
|
|
2635
2652
|
name: CLI_NAME,
|
|
@@ -2644,23 +2661,6 @@ var main = defineCommand8({
|
|
|
2644
2661
|
connect: () => Promise.resolve().then(() => (init_connect(), connect_exports)).then((m) => m.default),
|
|
2645
2662
|
upgrade: () => Promise.resolve().then(() => (init_upgrade(), upgrade_exports)).then((m) => m.default),
|
|
2646
2663
|
"self-update": () => Promise.resolve().then(() => (init_self_update(), self_update_exports)).then((m) => m.default)
|
|
2647
|
-
},
|
|
2648
|
-
async run({ rawArgs }) {
|
|
2649
|
-
const subCommandNames = /* @__PURE__ */ new Set([
|
|
2650
|
-
"install",
|
|
2651
|
-
"update",
|
|
2652
|
-
"setup",
|
|
2653
|
-
"skills",
|
|
2654
|
-
"connect",
|
|
2655
|
-
"upgrade",
|
|
2656
|
-
"self-update"
|
|
2657
|
-
]);
|
|
2658
|
-
const firstArg = rawArgs.find((a) => !a.startsWith("-"));
|
|
2659
|
-
if (firstArg && subCommandNames.has(firstArg)) return;
|
|
2660
|
-
const installCmd = await Promise.resolve().then(() => (init_install(), install_exports)).then(
|
|
2661
|
-
(m) => m.default
|
|
2662
|
-
);
|
|
2663
|
-
await runCommand(installCmd, { rawArgs });
|
|
2664
2664
|
}
|
|
2665
2665
|
});
|
|
2666
2666
|
runMain(main);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.5.0-beta.2
|
package/template/manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.5.0-beta.2",
|
|
3
3
|
"description": "FlyDocs Core - Manifest of all managed files",
|
|
4
4
|
"repository": "github.com/plastrlab/flydocs-core",
|
|
5
5
|
|
|
@@ -146,29 +146,11 @@
|
|
|
146
146
|
"templates/",
|
|
147
147
|
"reference/"
|
|
148
148
|
],
|
|
149
|
-
"flydocs-cloud": [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
],
|
|
154
|
-
"flydocs-local": [
|
|
155
|
-
"SKILL.md",
|
|
156
|
-
"cursor-rule.mdc",
|
|
157
|
-
"scripts/"
|
|
158
|
-
],
|
|
159
|
-
"flydocs-figma": [
|
|
160
|
-
"SKILL.md",
|
|
161
|
-
"references/"
|
|
162
|
-
],
|
|
163
|
-
"flydocs-estimates": [
|
|
164
|
-
"SKILL.md",
|
|
165
|
-
"references/"
|
|
166
|
-
],
|
|
167
|
-
"flydocs-context-graph": [
|
|
168
|
-
"SKILL.md",
|
|
169
|
-
"schema.md",
|
|
170
|
-
"scripts/"
|
|
171
|
-
],
|
|
149
|
+
"flydocs-cloud": ["SKILL.md", "cursor-rule.mdc", "scripts/"],
|
|
150
|
+
"flydocs-local": ["SKILL.md", "cursor-rule.mdc", "scripts/"],
|
|
151
|
+
"flydocs-figma": ["SKILL.md", "references/"],
|
|
152
|
+
"flydocs-estimates": ["SKILL.md", "references/"],
|
|
153
|
+
"flydocs-context-graph": ["SKILL.md", "schema.md", "scripts/"],
|
|
172
154
|
"implementation-flow": ["SKILL.md"],
|
|
173
155
|
"review-workflow": ["SKILL.md"],
|
|
174
156
|
"spec-templates": ["SKILL.md"]
|
|
@@ -185,22 +167,14 @@
|
|
|
185
167
|
},
|
|
186
168
|
".flydocs": {
|
|
187
169
|
"root": ["config.json", "version", "CHANGELOG.md"],
|
|
188
|
-
"scripts": [
|
|
189
|
-
"generate_manifest.py",
|
|
190
|
-
"skill_manager.py"
|
|
191
|
-
],
|
|
170
|
+
"scripts": ["generate_manifest.py", "skill_manager.py"],
|
|
192
171
|
"hooks": [
|
|
193
172
|
"auto-approve.py",
|
|
194
173
|
"prefer-scripts.py",
|
|
195
174
|
"post-edit.py",
|
|
196
175
|
"prompt-submit.py"
|
|
197
176
|
],
|
|
198
|
-
"templates": [
|
|
199
|
-
"bug.md",
|
|
200
|
-
"chore.md",
|
|
201
|
-
"feature.md",
|
|
202
|
-
"idea.md"
|
|
203
|
-
]
|
|
177
|
+
"templates": ["bug.md", "chore.md", "feature.md", "idea.md"]
|
|
204
178
|
},
|
|
205
179
|
"flydocs": {
|
|
206
180
|
"root": ["README.md"],
|