bamboo-agents 0.1.15-dev.129.f105aa4 → 0.1.15-dev.131.ba9b62e

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.15-dev.129.f105aa4
1
+ 0.1.15-dev.131.ba9b62e
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.15-dev.129.f105aa4";
3040
+ VERSION = "0.1.15-dev.131.ba9b62e";
3041
3041
  }
3042
3042
  });
3043
3043
 
@@ -13793,6 +13793,8 @@ var init_inbox_management = __esm({
13793
13793
  "recipient_mismatch",
13794
13794
  "proposal_failed",
13795
13795
  "graph_decision_conflict",
13796
+ "audit_opportunity_requires_customer_wording",
13797
+ "shaping_pending",
13796
13798
  "opportunity_not_decidable",
13797
13799
  "opportunity_applied_receipt_unavailable",
13798
13800
  "opportunity_preflight_failed",
@@ -14144,7 +14146,8 @@ var init_inbox_management = __esm({
14144
14146
  "graph_decision_assignee_invalid",
14145
14147
  "graph_decision_invalid",
14146
14148
  "graph_decision_command_id_required",
14147
- "graph_decision_command_id_too_long"
14149
+ "graph_decision_command_id_too_long",
14150
+ "shaping_pending"
14148
14151
  ];
14149
14152
  OPPORTUNITY_MANAGEMENT_BINDINGS = [
14150
14153
  {
@@ -14208,6 +14211,7 @@ var init_inbox_management = __esm({
14208
14211
  "brain_opportunity_stale",
14209
14212
  "brain_opportunity_assignment_target_invalid",
14210
14213
  "missing_assignment",
14214
+ "audit_opportunity_requires_customer_wording",
14211
14215
  "wording_mismatch",
14212
14216
  "recipient_mismatch",
14213
14217
  "graph_decision_conflict",
@@ -14267,6 +14271,7 @@ var init_inbox_management = __esm({
14267
14271
  ...opportunityCommon.error_codes,
14268
14272
  "brain_opportunity_answer_stale_source",
14269
14273
  "brain_opportunity_answer_idempotency_conflict",
14274
+ "shaping_pending",
14270
14275
  "unknown_outcome"
14271
14276
  ]
14272
14277
  }
@@ -15572,6 +15577,7 @@ var init_eval_baseline_promote = __esm({
15572
15577
  demote: external_exports.literal(true),
15573
15578
  brand_id: external_exports.string().uuid(),
15574
15579
  qrels_version: external_exports.string().min(1).describe("The key to empty: its current baseline is tombstoned."),
15580
+ question_set_kind: external_exports.enum(["qrels", "sync_brain"]).default("qrels").describe("The baseline key to tombstone. Absent on an un-upgraded CLI, which means qrels."),
15575
15581
  reason: Reason,
15576
15582
  pr_url: PrUrl
15577
15583
  });
@@ -15584,6 +15590,7 @@ var init_eval_baseline_promote = __esm({
15584
15590
  kind: external_exports.enum(["promote", "demote"]),
15585
15591
  brand_id: external_exports.string().uuid(),
15586
15592
  qrels_version: external_exports.string(),
15593
+ question_set_kind: external_exports.enum(["qrels", "sync_brain"]),
15587
15594
  /** Null after a demotion. */
15588
15595
  run_id: external_exports.string().uuid().nullable(),
15589
15596
  /** What the head pointed at before this row; null when the version had no baseline. */
@@ -23102,7 +23109,7 @@ function render(data, opts) {
23102
23109
  human("", opts);
23103
23110
  if (data.kind === "demote") {
23104
23111
  human(
23105
- ` Baseline demoted for qrels_version ${short(data.qrels_version)} (was run ${data.previous_run_id}).`,
23112
+ ` Baseline demoted for qrels_version ${short(data.qrels_version)} (${data.question_set_kind}, was run ${data.previous_run_id}).`,
23106
23113
  opts
23107
23114
  );
23108
23115
  human(
@@ -23111,7 +23118,7 @@ function render(data, opts) {
23111
23118
  );
23112
23119
  } else {
23113
23120
  human(
23114
- ` Baseline promoted: run ${data.run_id} is the reference for qrels_version ${short(data.qrels_version)}` + (data.previous_run_id ? ` (was ${data.previous_run_id}).` : " (the version had none)."),
23121
+ ` Baseline promoted: run ${data.run_id} is the reference for qrels_version ${short(data.qrels_version)} (${data.question_set_kind})` + (data.previous_run_id ? ` (was ${data.previous_run_id}).` : " (the version had none)."),
23115
23122
  opts
23116
23123
  );
23117
23124
  human(" Re-run the PR's retrieval-evals check: it compares flat against its own run.", opts);
@@ -23134,10 +23141,24 @@ async function runEvalPromote(options) {
23134
23141
  );
23135
23142
  return;
23136
23143
  }
23144
+ const kind = options.kind;
23145
+ if (kind !== void 0 && kind !== "qrels" && kind !== "sync_brain") {
23146
+ emitError(
23147
+ {
23148
+ code: "invalid_kind",
23149
+ message: `--kind must be "qrels" or "sync_brain", got "${kind}".`,
23150
+ hint: "Omit --kind to demote the qrels baseline."
23151
+ },
23152
+ opts,
23153
+ 1
23154
+ );
23155
+ return;
23156
+ }
23137
23157
  body = {
23138
23158
  demote: true,
23139
23159
  brand_id: options.brand,
23140
23160
  qrels_version: options.qrelsVersion,
23161
+ ...kind ? { question_set_kind: kind } : {},
23141
23162
  reason: options.reason,
23142
23163
  ...options.pr ? { pr_url: options.pr } : {}
23143
23164
  };
@@ -23925,7 +23946,7 @@ evals.command("ablate").description(
23925
23946
  );
23926
23947
  evals.command("promote").description(
23927
23948
  "Promote a correctness run as the baseline for its qrels version, or --demote the current one"
23928
- ).argument("[run-id]", "Run id printed by the correctness gate (omit with --demote)").requiredOption("--reason <text>", "Why this run is the reference now \u2014 recorded on the row").option("--pr <url>", "PR URL to record as the promotion's source").option("--demote", "Write a tombstone: the version has no baseline until a human promotes one").option("--brand <id>", "Brand id (with --demote)").option("--qrels-version <hash>", "qrels version to demote (with --demote)").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").option("--no-sync", "Skip the auto-sync git pull on this command").action(
23949
+ ).argument("[run-id]", "Run id printed by the correctness gate (omit with --demote)").requiredOption("--reason <text>", "Why this run is the reference now \u2014 recorded on the row").option("--pr <url>", "PR URL to record as the promotion's source").option("--demote", "Write a tombstone: the version has no baseline until a human promotes one").option("--brand <id>", "Brand id (with --demote)").option("--qrels-version <hash>", "qrels version to demote (with --demote)").option("--kind <kind>", "Question set kind to demote: qrels | sync_brain (with --demote)").option("--json", "Emit a JSON envelope for agent consumption").option("--fields <list>", "Project only these dotted field paths from data (comma-separated)").option("--quiet", "Suppress human chatter (data/errors only)").option("--no-sync", "Skip the auto-sync git pull on this command").action(
23929
23950
  async (runId, options) => {
23930
23951
  const { runEvalPromote: runEvalPromote2 } = await Promise.resolve().then(() => (init_eval_promote(), eval_promote_exports));
23931
23952
  await runEvalPromote2({ runId, ...options });