bamboo-agents 0.1.5-dev.26 → 0.1.5-dev.27
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 +1 -1
- package/dist/index.js +44 -4
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.5-dev.
|
|
1
|
+
0.1.5-dev.27
|
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.5-dev.
|
|
3040
|
+
VERSION = "0.1.5-dev.27";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -12785,8 +12785,8 @@ var init_prompt = __esm({
|
|
|
12785
12785
|
});
|
|
12786
12786
|
|
|
12787
12787
|
// src/lib/phases-impl/pick-first-user-agent-phase.ts
|
|
12788
|
-
import { readFile as readFile3 } from "node:fs/promises";
|
|
12789
|
-
import { resolve as pathResolve3 } from "node:path";
|
|
12788
|
+
import { readFile as readFile3, stat } from "node:fs/promises";
|
|
12789
|
+
import { join as pathJoin, resolve as pathResolve3 } from "node:path";
|
|
12790
12790
|
async function runCaseA(ctx) {
|
|
12791
12791
|
console.log(" Let's set up YOUR first agent. How would you like to start?");
|
|
12792
12792
|
console.log("");
|
|
@@ -12877,7 +12877,34 @@ async function runUploadFlow(ctx) {
|
|
|
12877
12877
|
` Path to the CLAUDE.md/AGENTS.md file (default: ${defaultsHint}): `
|
|
12878
12878
|
);
|
|
12879
12879
|
const filePath = filePathInput ?? UPLOAD_DEFAULT_PATHS[0];
|
|
12880
|
-
const
|
|
12880
|
+
const requestedPath = pathResolve3(ctx.cwd, filePath);
|
|
12881
|
+
let absPath = requestedPath;
|
|
12882
|
+
try {
|
|
12883
|
+
const s = await stat(requestedPath);
|
|
12884
|
+
if (s.isDirectory()) {
|
|
12885
|
+
let resolved = null;
|
|
12886
|
+
for (const name2 of UPLOAD_DEFAULT_PATHS) {
|
|
12887
|
+
const candidate = pathJoin(requestedPath, name2);
|
|
12888
|
+
try {
|
|
12889
|
+
const cs = await stat(candidate);
|
|
12890
|
+
if (cs.isFile()) {
|
|
12891
|
+
resolved = candidate;
|
|
12892
|
+
break;
|
|
12893
|
+
}
|
|
12894
|
+
} catch {
|
|
12895
|
+
}
|
|
12896
|
+
}
|
|
12897
|
+
if (!resolved) {
|
|
12898
|
+
console.log("");
|
|
12899
|
+
console.log(
|
|
12900
|
+
` ${requestedPath} is a directory and doesn't contain a ${UPLOAD_DEFAULT_PATHS.join(" or ")}.`
|
|
12901
|
+
);
|
|
12902
|
+
return null;
|
|
12903
|
+
}
|
|
12904
|
+
absPath = resolved;
|
|
12905
|
+
}
|
|
12906
|
+
} catch {
|
|
12907
|
+
}
|
|
12881
12908
|
let content;
|
|
12882
12909
|
try {
|
|
12883
12910
|
content = await readFile3(absPath, "utf8");
|
|
@@ -13060,6 +13087,19 @@ var init_pick_first_user_agent_phase = __esm({
|
|
|
13060
13087
|
const preInstalled = listing.agents.filter((a) => a.is_auto_installed);
|
|
13061
13088
|
const cap = listing.tier_cap;
|
|
13062
13089
|
const atCap = cap.limit > -1 && cap.current >= cap.limit;
|
|
13090
|
+
await Promise.all(
|
|
13091
|
+
userCreated.map(async (a) => {
|
|
13092
|
+
try {
|
|
13093
|
+
const h = await getAgentHealth(
|
|
13094
|
+
ctx.credentials.bamboo_session,
|
|
13095
|
+
a.id
|
|
13096
|
+
);
|
|
13097
|
+
a.health_score = h?.score ?? null;
|
|
13098
|
+
} catch {
|
|
13099
|
+
a.health_score = null;
|
|
13100
|
+
}
|
|
13101
|
+
})
|
|
13102
|
+
);
|
|
13063
13103
|
console.log("");
|
|
13064
13104
|
if (preInstalled.length > 0) {
|
|
13065
13105
|
console.log(
|