busa-cli 0.13.0 → 0.14.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.
@@ -1038,7 +1038,7 @@ var folderNodeType = {
1038
1038
  var formNodeType = {
1039
1039
  type: "form",
1040
1040
  label: "Form",
1041
- icon: "clipboard-list",
1041
+ icon: "form",
1042
1042
  capabilities: { hasDetail: true, creatable: true },
1043
1043
  operations: []
1044
1044
  };
@@ -2943,6 +2943,9 @@ async function deviceLogin(baseUrl, useBrowser) {
2943
2943
  const deadline = Date.now() + expiresInSeconds * 1e3;
2944
2944
  let intervalSeconds = Math.max(1, code.interval ?? 5);
2945
2945
  let consecutiveNetworkFailures = 0;
2946
+ let pendingPollCount = 0;
2947
+ let reassuredAfterApprovalHint = false;
2948
+ const REASSURE_AFTER_POLLS = 4;
2946
2949
  while (Date.now() < deadline) {
2947
2950
  await delay(intervalSeconds * 1e3);
2948
2951
  let tokenResponse;
@@ -2990,6 +2993,13 @@ async function deviceLogin(baseUrl, useBrowser) {
2990
2993
  }
2991
2994
  switch (payload.error) {
2992
2995
  case "authorization_pending":
2996
+ pendingPollCount += 1;
2997
+ if (pendingPollCount >= REASSURE_AFTER_POLLS && !reassuredAfterApprovalHint) {
2998
+ reassuredAfterApprovalHint = true;
2999
+ say2(
3000
+ "Still waiting\u2026 if you already approved in the browser, this can take a few extra seconds to register \u2014 no need to retry."
3001
+ );
3002
+ }
2993
3003
  continue;
2994
3004
  case "slow_down":
2995
3005
  intervalSeconds += 5;
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-KX5SSSEN.js";
4
+ } from "./chunk-SGFYTGDF.js";
5
5
 
6
6
  // src/cli.ts
7
7
  process.exit(await runCli(process.argv.slice(2)));
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  HELP,
3
3
  render,
4
4
  runCli
5
- } from "./chunk-KX5SSSEN.js";
5
+ } from "./chunk-SGFYTGDF.js";
6
6
 
7
7
  // src/index.ts
8
8
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "busa-cli",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "description": "Command-line client for the Busabase OpenAPI REST API. Talks to a local or remote `busabase server`. Short-name alias for busabase-cli.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/busabase/busabase/tree/main/apps/busabase-cli",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@zip.js/zip.js": "^2.8.20",
35
35
  "busabase-package": "workspace:*",
36
- "busabase-sdk": "0.13.0",
36
+ "busabase-sdk": "0.14.1",
37
37
  "commander": "^14.0.0",
38
38
  "tar-stream": "^3.1.7",
39
39
  "yaml": "^2.9.0",