@cadraos/sdk 0.3.13 → 0.3.14-p102.2

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/index.d.cts CHANGED
@@ -2795,7 +2795,17 @@ interface KanbanLane {
2795
2795
  * a tick fans out ⌈cap / chunkSize⌉ runs. Ignored for `per-card`/`event` lanes.
2796
2796
  */
2797
2797
  chunkSize?: number;
2798
+ /**
2799
+ * p46 Handoff contract, OPT-IN per lane (D1). Absent ⇒ `off` (existing boards
2800
+ * are byte-identical). `verdict` ⇒ the engine sends
2801
+ * `HANDOFF_VERDICT_JSON_SCHEMA` as the run's `context.outputSchema` and a
2802
+ * completion MUST carry a valid verdict (else the run fails with a FAILED
2803
+ * handoff). Active only on hosts whose adapter implements the ledger group.
2804
+ */
2805
+ handoff?: KanbanLaneHandoffMode;
2798
2806
  }
2807
+ /** Per-lane Handoff mode (p46 D1). */
2808
+ type KanbanLaneHandoffMode = "off" | "verdict";
2799
2809
  /**
2800
2810
  * A declared edge between two lanes in the lifecycle.
2801
2811
  *
@@ -2887,6 +2897,11 @@ interface KanbanCard {
2887
2897
  configVersion?: number;
2888
2898
  /** Arbitrary shared context carried across transitions. */
2889
2899
  sharedContext?: Record<string, unknown>;
2900
+ /**
2901
+ * p46 (P46-002): the card's id in an external host (a Jira issue key).
2902
+ * Absent on native / crm / yobo cards.
2903
+ */
2904
+ externalRef?: string;
2890
2905
  /**
2891
2906
  * Execution UUID of the card's current/last run, if any.
2892
2907
  *
@@ -2949,6 +2964,18 @@ interface CreateCardInput {
2949
2964
  * in the lifecycle's initial lane.
2950
2965
  */
2951
2966
  lane?: string;
2967
+ /**
2968
+ * p46 (P46-002): the card's id in an EXTERNAL host (a Jira issue key, e.g.
2969
+ * `CAD-231`). Optional. When set, a card is created at most ONCE per
2970
+ * `(boardConfigUuid, externalRef)`: a repeat create returns the existing card
2971
+ * and dispatches nothing. Hosts that don't store it simply ignore it.
2972
+ */
2973
+ externalRef?: string;
2974
+ /**
2975
+ * p46 (P46-002): opaque host facts stored with the card (Jira `statusId`,
2976
+ * `mover`, `detached`, …). Passed through to `adapter.createCard` untouched.
2977
+ */
2978
+ externalMeta?: Record<string, unknown>;
2952
2979
  }
2953
2980
  /**
2954
2981
  * Input for transitioning a card to another lane.
package/dist/index.d.ts CHANGED
@@ -2795,7 +2795,17 @@ interface KanbanLane {
2795
2795
  * a tick fans out ⌈cap / chunkSize⌉ runs. Ignored for `per-card`/`event` lanes.
2796
2796
  */
2797
2797
  chunkSize?: number;
2798
+ /**
2799
+ * p46 Handoff contract, OPT-IN per lane (D1). Absent ⇒ `off` (existing boards
2800
+ * are byte-identical). `verdict` ⇒ the engine sends
2801
+ * `HANDOFF_VERDICT_JSON_SCHEMA` as the run's `context.outputSchema` and a
2802
+ * completion MUST carry a valid verdict (else the run fails with a FAILED
2803
+ * handoff). Active only on hosts whose adapter implements the ledger group.
2804
+ */
2805
+ handoff?: KanbanLaneHandoffMode;
2798
2806
  }
2807
+ /** Per-lane Handoff mode (p46 D1). */
2808
+ type KanbanLaneHandoffMode = "off" | "verdict";
2799
2809
  /**
2800
2810
  * A declared edge between two lanes in the lifecycle.
2801
2811
  *
@@ -2887,6 +2897,11 @@ interface KanbanCard {
2887
2897
  configVersion?: number;
2888
2898
  /** Arbitrary shared context carried across transitions. */
2889
2899
  sharedContext?: Record<string, unknown>;
2900
+ /**
2901
+ * p46 (P46-002): the card's id in an external host (a Jira issue key).
2902
+ * Absent on native / crm / yobo cards.
2903
+ */
2904
+ externalRef?: string;
2890
2905
  /**
2891
2906
  * Execution UUID of the card's current/last run, if any.
2892
2907
  *
@@ -2949,6 +2964,18 @@ interface CreateCardInput {
2949
2964
  * in the lifecycle's initial lane.
2950
2965
  */
2951
2966
  lane?: string;
2967
+ /**
2968
+ * p46 (P46-002): the card's id in an EXTERNAL host (a Jira issue key, e.g.
2969
+ * `CAD-231`). Optional. When set, a card is created at most ONCE per
2970
+ * `(boardConfigUuid, externalRef)`: a repeat create returns the existing card
2971
+ * and dispatches nothing. Hosts that don't store it simply ignore it.
2972
+ */
2973
+ externalRef?: string;
2974
+ /**
2975
+ * p46 (P46-002): opaque host facts stored with the card (Jira `statusId`,
2976
+ * `mover`, `detached`, …). Passed through to `adapter.createCard` untouched.
2977
+ */
2978
+ externalMeta?: Record<string, unknown>;
2952
2979
  }
2953
2980
  /**
2954
2981
  * Input for transitioning a card to another lane.