bamboo-agents 0.1.12-dev.119.a75e584 → 0.1.12-dev.120.271df93

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.12-dev.119.a75e584
1
+ 0.1.12-dev.120.271df93
package/dist/index.js CHANGED
@@ -3037,7 +3037,7 @@ var VERSION;
3037
3037
  var init_version = __esm({
3038
3038
  "src/version.ts"() {
3039
3039
  "use strict";
3040
- VERSION = "0.1.12-dev.119.a75e584";
3040
+ VERSION = "0.1.12-dev.120.271df93";
3041
3041
  }
3042
3042
  });
3043
3043
 
@@ -21455,8 +21455,8 @@ __export(history_exports2, {
21455
21455
  runHistory: () => runHistory
21456
21456
  });
21457
21457
  async function requireSession5(opts) {
21458
- const creds = await readCredentials();
21459
- if (!creds) {
21458
+ const session = await resolveSession();
21459
+ if (!session) {
21460
21460
  emitError(
21461
21461
  {
21462
21462
  code: "not_signed_in",
@@ -21468,7 +21468,7 @@ async function requireSession5(opts) {
21468
21468
  );
21469
21469
  throw new Error("unreachable");
21470
21470
  }
21471
- return creds.bamboo_session;
21471
+ return session;
21472
21472
  }
21473
21473
  function parseLimit(raw) {
21474
21474
  if (raw === void 0) return void 0;
@@ -21591,8 +21591,8 @@ __export(context_exports, {
21591
21591
  runContextHealth: () => runContextHealth
21592
21592
  });
21593
21593
  async function requireSession6(opts) {
21594
- const creds = await readCredentials();
21595
- if (!creds) {
21594
+ const session = await resolveSession();
21595
+ if (!session) {
21596
21596
  emitError(
21597
21597
  {
21598
21598
  code: "not_signed_in",
@@ -21604,7 +21604,7 @@ async function requireSession6(opts) {
21604
21604
  );
21605
21605
  throw new Error("unreachable");
21606
21606
  }
21607
- return creds.bamboo_session;
21607
+ return session;
21608
21608
  }
21609
21609
  function gradeSymbol(grade) {
21610
21610
  return grade === "A" ? "\u2713" : grade === "B" || grade === "C" ? "\u2022" : "\u2717";
@@ -21696,8 +21696,8 @@ __export(usage_exports, {
21696
21696
  runUsage: () => runUsage
21697
21697
  });
21698
21698
  async function requireSession7(opts) {
21699
- const creds = await readCredentials();
21700
- if (!creds) {
21699
+ const session = await resolveSession();
21700
+ if (!session) {
21701
21701
  emitError(
21702
21702
  {
21703
21703
  code: "not_signed_in",
@@ -21709,7 +21709,7 @@ async function requireSession7(opts) {
21709
21709
  );
21710
21710
  throw new Error("unreachable");
21711
21711
  }
21712
- return creds.bamboo_session;
21712
+ return session;
21713
21713
  }
21714
21714
  function printUsage(data, opts) {
21715
21715
  const scopeLabel = data.agentId ? `agent (${data.agentId})` : "org";
@@ -21817,8 +21817,8 @@ __export(onboarding_exports, {
21817
21817
  runOnboardingStatus: () => runOnboardingStatus
21818
21818
  });
21819
21819
  async function requireSession8(opts) {
21820
- const creds = await readCredentials();
21821
- if (!creds) {
21820
+ const session = await resolveSession();
21821
+ if (!session) {
21822
21822
  emitError(
21823
21823
  {
21824
21824
  code: "not_signed_in",
@@ -21830,7 +21830,7 @@ async function requireSession8(opts) {
21830
21830
  );
21831
21831
  throw new Error("unreachable");
21832
21832
  }
21833
- return creds.bamboo_session;
21833
+ return session;
21834
21834
  }
21835
21835
  function printStatus(data, opts) {
21836
21836
  const g = data.composite_gate;
@@ -21999,8 +21999,8 @@ __export(agents_exports2, {
21999
21999
  runAgentsUpdate: () => runAgentsUpdate
22000
22000
  });
22001
22001
  async function requireSession10(opts) {
22002
- const creds = await readCredentials();
22003
- if (!creds) {
22002
+ const session = await resolveSession();
22003
+ if (!session) {
22004
22004
  emitError(
22005
22005
  {
22006
22006
  code: "not_signed_in",
@@ -22012,7 +22012,7 @@ async function requireSession10(opts) {
22012
22012
  );
22013
22013
  throw new Error("unreachable");
22014
22014
  }
22015
- return creds.bamboo_session;
22015
+ return session;
22016
22016
  }
22017
22017
  function padRight4(s, n) {
22018
22018
  return s.length >= n ? s : s + " ".repeat(n - s.length);