@flydocs/cli 0.5.0-beta.0 → 0.5.0-beta.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/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.0";
18
+ CLI_VERSION = "0.5.0-beta.1";
19
19
  CLI_NAME = "flydocs";
20
20
  PACKAGE_NAME = "@flydocs/cli";
21
21
  }
@@ -2629,7 +2629,21 @@ var init_self_update = __esm({
2629
2629
 
2630
2630
  // src/cli.ts
2631
2631
  init_constants();
2632
- import { defineCommand as defineCommand8, runCommand, runMain } from "citty";
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 firstPositional = userArgs.find((a) => !a.startsWith("-"));
2644
+ if (!firstPositional || !SUB_COMMANDS.has(firstPositional)) {
2645
+ process.argv.splice(2, 0, "install");
2646
+ }
2633
2647
  var main = defineCommand8({
2634
2648
  meta: {
2635
2649
  name: CLI_NAME,
@@ -2644,23 +2658,6 @@ var main = defineCommand8({
2644
2658
  connect: () => Promise.resolve().then(() => (init_connect(), connect_exports)).then((m) => m.default),
2645
2659
  upgrade: () => Promise.resolve().then(() => (init_upgrade(), upgrade_exports)).then((m) => m.default),
2646
2660
  "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
2661
  }
2665
2662
  });
2666
2663
  runMain(main);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flydocs/cli",
3
- "version": "0.5.0-beta.0",
3
+ "version": "0.5.0-beta.1",
4
4
  "type": "module",
5
5
  "description": "FlyDocs AI CLI — install, setup, and manage FlyDocs projects",
6
6
  "bin": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0",
2
+ "version": "0.5.0-beta.1",
3
3
  "sourceRepo": "github.com/plastrlab/flydocs-core",
4
4
  "tier": "cloud",
5
5
  "setupComplete": false,
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0-beta.1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0",
2
+ "version": "0.5.0-beta.1",
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
- "SKILL.md",
151
- "cursor-rule.mdc",
152
- "scripts/"
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"],