@flydocs/cli 0.6.0-alpha.29 → 0.6.0-alpha.30
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 +12 -8
- package/package.json +1 -1
- package/template/.flydocs/config.json +1 -1
- package/template/.flydocs/version +1 -1
- package/template/manifest.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ var CLI_VERSION, CLI_NAME, PACKAGE_NAME, POSTHOG_API_KEY;
|
|
|
15
15
|
var init_constants = __esm({
|
|
16
16
|
"src/lib/constants.ts"() {
|
|
17
17
|
"use strict";
|
|
18
|
-
CLI_VERSION = "0.6.0-alpha.
|
|
18
|
+
CLI_VERSION = "0.6.0-alpha.30";
|
|
19
19
|
CLI_NAME = "flydocs";
|
|
20
20
|
PACKAGE_NAME = "@flydocs/cli";
|
|
21
21
|
POSTHOG_API_KEY = "phc_v1MSJTQDFkMS90CBh3mxIz3v8bYCCnKU6v1ir6bz0Xn";
|
|
@@ -3440,11 +3440,9 @@ async function resolveAndValidateKey(keyArg, targetDir) {
|
|
|
3440
3440
|
await checkCredentialPermissions();
|
|
3441
3441
|
return { apiKey, workspaceId };
|
|
3442
3442
|
}
|
|
3443
|
-
async function pullServerConfig(apiKey, targetDir, workspaceId) {
|
|
3443
|
+
async function pullServerConfig(apiKey, targetDir, workspaceId, forceIncludeContext = false) {
|
|
3444
3444
|
printInfo("Pulling config from server...");
|
|
3445
|
-
const isFirstInit = !await pathExists(
|
|
3446
|
-
join20(targetDir, ".flydocs", "config.json")
|
|
3447
|
-
);
|
|
3445
|
+
const isFirstInit = forceIncludeContext || !await pathExists(join20(targetDir, ".flydocs", "config.json"));
|
|
3448
3446
|
try {
|
|
3449
3447
|
const response = await fetchConfigV2(apiKey, {
|
|
3450
3448
|
includeContext: isFirstInit,
|
|
@@ -3576,7 +3574,9 @@ async function runCloneAndInit(targetDir, keyArg, repos, apiKey, workspaceId) {
|
|
|
3576
3574
|
const serverResponse = await pullServerConfig(
|
|
3577
3575
|
apiKey,
|
|
3578
3576
|
cloneDir,
|
|
3579
|
-
workspaceId
|
|
3577
|
+
workspaceId,
|
|
3578
|
+
true
|
|
3579
|
+
// always include context on fresh clone
|
|
3580
3580
|
);
|
|
3581
3581
|
const { actions, skipped } = await initSingleRepo(
|
|
3582
3582
|
cloneDir,
|
|
@@ -3629,7 +3629,9 @@ async function runCloneAndInit(targetDir, keyArg, repos, apiKey, workspaceId) {
|
|
|
3629
3629
|
const serverResponse = await pullServerConfig(
|
|
3630
3630
|
apiKey,
|
|
3631
3631
|
cloneDir,
|
|
3632
|
-
workspaceId
|
|
3632
|
+
workspaceId,
|
|
3633
|
+
true
|
|
3634
|
+
// always include context on fresh clone
|
|
3633
3635
|
);
|
|
3634
3636
|
if (!firstResponse) firstResponse = serverResponse;
|
|
3635
3637
|
const { actions, skipped } = await initSingleRepo(
|
|
@@ -3862,7 +3864,9 @@ var init_init = __esm({
|
|
|
3862
3864
|
const serverResponse = await pullServerConfig(
|
|
3863
3865
|
apiKey,
|
|
3864
3866
|
targetDir,
|
|
3865
|
-
workspaceId
|
|
3867
|
+
workspaceId,
|
|
3868
|
+
true
|
|
3869
|
+
// init always requests context
|
|
3866
3870
|
);
|
|
3867
3871
|
const { actions, skipped } = await initSingleRepo(
|
|
3868
3872
|
targetDir,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.0-alpha.
|
|
1
|
+
0.6.0-alpha.30
|
package/template/manifest.json
CHANGED