bamboo-agents 0.1.11-dev.110.c373500 → 0.1.11-dev.111.e48a2e0

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.11-dev.110.c373500
1
+ 0.1.11-dev.111.e48a2e0
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.11-dev.110.c373500";
3040
+ VERSION = "0.1.11-dev.111.e48a2e0";
3041
3041
  }
3042
3042
  });
3043
3043
 
@@ -12757,6 +12757,28 @@ var init_inbox_apply_revision = __esm({
12757
12757
  }
12758
12758
  });
12759
12759
 
12760
+ // ../../src/lib/api-contracts/cli/investigation-review.ts
12761
+ var InvestigationReviewDecisionSchema;
12762
+ var init_investigation_review = __esm({
12763
+ "../../src/lib/api-contracts/cli/investigation-review.ts"() {
12764
+ init_zod();
12765
+ InvestigationReviewDecisionSchema = external_exports.object({
12766
+ operation: external_exports.enum(["conclude_claim", "block_claim", "retire_claim", "close", "reopen", "retire"]),
12767
+ conclusion: external_exports.enum(["supported", "partial", "contradicted", "insufficient_evidence"]).optional(),
12768
+ verdict_tier: external_exports.enum(["eyeballed", "tested", "reviewed"]).optional(),
12769
+ decision: external_exports.enum(["merge", "more_evidence", "drop"]).optional(),
12770
+ next_action: external_exports.string().trim().min(1).max(5e3).optional()
12771
+ }).superRefine((value, ctx) => {
12772
+ if (value.operation === "conclude_claim" && (!value.conclusion || !value.verdict_tier))
12773
+ ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: "A conclusion and verdict tier are required." });
12774
+ if (value.operation === "conclude_claim" && value.decision === "more_evidence" && !value.next_action)
12775
+ ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["next_action"], message: "More evidence requires a next action." });
12776
+ if (value.operation === "block_claim" && !value.next_action)
12777
+ ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["next_action"], message: "A blocker requires the next action that can unblock it." });
12778
+ });
12779
+ }
12780
+ });
12781
+
12760
12782
  // ../../src/lib/api-contracts/cli/inbox-management.ts
12761
12783
  function inboxSourceVersionsMatch(current, reviewed) {
12762
12784
  if (typeof current !== "string" || typeof reviewed !== "string") return current === reviewed;
@@ -12767,6 +12789,7 @@ var InboxUtcTimestampSchema, InboxOperationSchema, InboxManageOperationSchema, I
12767
12789
  var init_inbox_management = __esm({
12768
12790
  "../../src/lib/api-contracts/cli/inbox-management.ts"() {
12769
12791
  init_zod();
12792
+ init_investigation_review();
12770
12793
  InboxUtcTimestampSchema = external_exports.string().datetime({ offset: true }).refine(
12771
12794
  (value) => /(?:Z|\+00:00)$/i.test(value),
12772
12795
  "source version must use UTC (Z or +00:00)"
@@ -13471,7 +13494,8 @@ var init_inbox_management = __esm({
13471
13494
  description: "Execute one server-advertised FDE action command",
13472
13495
  inputs: {
13473
13496
  ...lifecycleMutationInputs,
13474
- required: [...lifecycleMutationInputs.required, "command"]
13497
+ required: [...lifecycleMutationInputs.required, "command"],
13498
+ optional: [...lifecycleMutationInputs.optional, "investigation_decision"]
13475
13499
  },
13476
13500
  approval_required: true,
13477
13501
  side_effect: "applies the selected legal FDE action transition",
@@ -13796,6 +13820,7 @@ var init_inbox_management = __esm({
13796
13820
  "reject"
13797
13821
  ]),
13798
13822
  reason: external_exports.string().trim().min(3).max(1e3),
13823
+ investigation_decision: InvestigationReviewDecisionSchema.optional(),
13799
13824
  approved: external_exports.literal(true),
13800
13825
  approved_effect: external_exports.literal("apply_server_advertised_fde_action_command"),
13801
13826
  approved_reversible: external_exports.literal(true)
@@ -20755,7 +20780,7 @@ async function runInboxManage(options) {
20755
20780
  { code: "organization_scope_mismatch" }
20756
20781
  );
20757
20782
  const suppliedVersion = input.source_version ?? input.subject_revision;
20758
- if (!isProposal && !inboxSourceVersionsMatch(preview.source_version, suppliedVersion))
20783
+ if (!isProposal && !isFdeAction && !inboxSourceVersionsMatch(preview.source_version, suppliedVersion))
20759
20784
  throw Object.assign(
20760
20785
  new Error(
20761
20786
  `The reviewed source revision ${String(suppliedVersion)} is stale; current revision is ${preview.source_version}.`