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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/commands.mjs +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foldrun",
3
- "version": "9.0.1",
3
+ "version": "9.0.2",
4
4
  "description": "Agents are just folders. Write them, check them, run them — on your machine.",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",
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, readCredentials, normaliseUrl, profileByName, currentProfile, useProfile, listProfiles, credentialsDir } from "./credentials.mjs";
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
- const token = url ? await renewedToken(url, flags) : null;
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, LIBRARY_KINDS } = await core();
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.