bamboo-agents 0.1.17-dev.142.9f623ff → 0.1.17-dev.144.166e07d
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 +9 -5
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.17-dev.
|
|
1
|
+
0.1.17-dev.144.166e07d
|
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.17-dev.
|
|
3040
|
+
VERSION = "0.1.17-dev.144.166e07d";
|
|
3041
3041
|
}
|
|
3042
3042
|
});
|
|
3043
3043
|
|
|
@@ -7310,6 +7310,7 @@ var init_save = __esm({
|
|
|
7310
7310
|
pr_number: external_exports.number().optional(),
|
|
7311
7311
|
/** Present on a rejected/forbidden batch — short machine-friendly reason. */
|
|
7312
7312
|
reason: external_exports.string().optional(),
|
|
7313
|
+
message: external_exports.string().optional(),
|
|
7313
7314
|
/** BAM-2588: true when this was a --dry-run preview (nothing was written). */
|
|
7314
7315
|
dry_run: external_exports.boolean().optional()
|
|
7315
7316
|
});
|
|
@@ -7325,6 +7326,7 @@ var init_save = __esm({
|
|
|
7325
7326
|
routed: external_exports.literal("rejected"),
|
|
7326
7327
|
classification: external_exports.enum(["self_only", "cross_scope", "forbidden"]),
|
|
7327
7328
|
reason: external_exports.string(),
|
|
7329
|
+
message: external_exports.string().optional(),
|
|
7328
7330
|
findings: external_exports.array(SaveFindingSchema)
|
|
7329
7331
|
});
|
|
7330
7332
|
}
|
|
@@ -7372,6 +7374,7 @@ var init_knowledge_save = __esm({
|
|
|
7372
7374
|
pr_number: external_exports.number().optional(),
|
|
7373
7375
|
/** Present on `rejected` / `noop` / `conflict` — short machine-friendly reason. */
|
|
7374
7376
|
reason: external_exports.string().optional(),
|
|
7377
|
+
message: external_exports.string().optional(),
|
|
7375
7378
|
findings: external_exports.array(SaveFindingSchema).optional()
|
|
7376
7379
|
});
|
|
7377
7380
|
}
|
|
@@ -16138,17 +16141,18 @@ async function parseError(res, options = {}) {
|
|
|
16138
16141
|
}
|
|
16139
16142
|
const nested = typeof body.error === "object" ? body.error : void 0;
|
|
16140
16143
|
const flatError = typeof body.error === "string" ? body.error : void 0;
|
|
16141
|
-
let message = saveRefusalMessage(options.saveReason, body.reason) ?? nested?.message ?? body.message ?? flatError ?? `HTTP ${res.status} from ${res.url}`;
|
|
16144
|
+
let message = saveRefusalMessage(options.saveReason, body.reason, body.message) ?? nested?.message ?? body.message ?? flatError ?? `HTTP ${res.status} from ${res.url}`;
|
|
16142
16145
|
const code = nested?.code ?? flatError;
|
|
16143
16146
|
if (res.status === 401 && !options.preserveMessage) {
|
|
16144
16147
|
message += " \u2014 run `bamboo-agents login` to re-authenticate.";
|
|
16145
16148
|
}
|
|
16146
16149
|
return new ApiError(message, res.status, code, nested?.details);
|
|
16147
16150
|
}
|
|
16148
|
-
function saveRefusalMessage(enabled, reason) {
|
|
16151
|
+
function saveRefusalMessage(enabled, reason, message) {
|
|
16149
16152
|
if (!enabled || !reason) return void 0;
|
|
16153
|
+
if (typeof message === "string" && message) return message;
|
|
16150
16154
|
if (reason === "lifecycle_not_allowed")
|
|
16151
|
-
return "Only the person who created this page or a team admin can
|
|
16155
|
+
return "Only the person who created this page or a team admin can change it.";
|
|
16152
16156
|
return reason;
|
|
16153
16157
|
}
|
|
16154
16158
|
function userAgent() {
|
|
@@ -21250,7 +21254,7 @@ async function runSkillsGet(name) {
|
|
|
21250
21254
|
return withFreshWorkspace(async () => {
|
|
21251
21255
|
if (!name || !name.trim()) {
|
|
21252
21256
|
console.error("bamboo-agents: skills get requires a skill name.");
|
|
21253
|
-
console.error("Example: bamboo-agents skills get
|
|
21257
|
+
console.error("Example: bamboo-agents skills get improve-skill");
|
|
21254
21258
|
process.exit(2);
|
|
21255
21259
|
}
|
|
21256
21260
|
const repoPath = await resolveWorkspacePath();
|