foldrun 9.0.1 → 9.0.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/package.json +1 -1
- package/src/commands.mjs +4 -3
package/package.json
CHANGED
package/src/commands.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { fileURLToPath } from "node:url";
|
|
|
12
12
|
import { writeAgentFiles, hasCurrentAgentRules, agentRulesBlock, codingAgent, docsDir, docPages, docPage } from "./guide.mjs";
|
|
13
13
|
import { createRequire } from "node:module";
|
|
14
14
|
import { execFileSync } from "node:child_process";
|
|
15
|
-
import { defaultPlatform, saveCredential, removeCredential,
|
|
15
|
+
import { defaultPlatform, saveCredential, removeCredential, normaliseUrl, profileByName, currentProfile, useProfile, listProfiles, credentialsDir } from "./credentials.mjs";
|
|
16
16
|
|
|
17
17
|
// NO_COLOR (no-color.org) turns the escapes off — for a log file, a CI
|
|
18
18
|
// job, or a test that wants to match what a person reads. The tests had
|
|
@@ -3748,7 +3748,8 @@ async function connect(positional, flags) {
|
|
|
3748
3748
|
// this machine's vault otherwise. Decided before the browser opens, so a
|
|
3749
3749
|
// consent is never spent on a store that then refuses it.
|
|
3750
3750
|
const url = flags.local === true ? undefined : remoteUrl(flags);
|
|
3751
|
-
|
|
3751
|
+
// Signed in (and the token renewed) before the browser opens.
|
|
3752
|
+
if (url) await renewedToken(url, flags);
|
|
3752
3753
|
const workspaceName = flags.to ?? (flags.workspace ? path.basename(path.resolve(flags.workspace)) : undefined);
|
|
3753
3754
|
|
|
3754
3755
|
// Reconnecting: the platform already holds the client this secret (or this
|
|
@@ -4528,7 +4529,7 @@ const NO_ACCOUNT_FILE_API =
|
|
|
4528
4529
|
* --platform --yes` is the deliberate way.
|
|
4529
4530
|
*/
|
|
4530
4531
|
async function deployAccount(layout, flags, only) {
|
|
4531
|
-
const { accountTreeFrom
|
|
4532
|
+
const { accountTreeFrom } = await core();
|
|
4532
4533
|
// Ask from the workspace, not the account root, unless this IS an account
|
|
4533
4534
|
// root: for a flat folder the account root is its parent, and reading the
|
|
4534
4535
|
// tree from there would find a directory that is not a workspace at all.
|