@cadraos/sdk 0.3.12 → 0.3.14-p102.1

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.
Files changed (39) hide show
  1. package/dist/board-host/index.cjs +217 -129
  2. package/dist/board-host/index.cjs.map +1 -1
  3. package/dist/board-host/index.d.cts +268 -3
  4. package/dist/board-host/index.d.ts +268 -3
  5. package/dist/board-host/index.js +218 -131
  6. package/dist/board-host/index.js.map +1 -1
  7. package/dist/board-host/server/index.d.cts +218 -2
  8. package/dist/board-host/server/index.d.ts +218 -2
  9. package/dist/chat/index.cjs +528 -47
  10. package/dist/chat/index.cjs.map +1 -1
  11. package/dist/chat/index.d.cts +29 -0
  12. package/dist/chat/index.d.ts +29 -0
  13. package/dist/chat/index.js +528 -47
  14. package/dist/chat/index.js.map +1 -1
  15. package/dist/index.cjs +453 -38
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +81 -1
  18. package/dist/index.d.ts +81 -1
  19. package/dist/index.js +453 -38
  20. package/dist/index.js.map +1 -1
  21. package/dist/kanban/engine/index.cjs +1535 -434
  22. package/dist/kanban/engine/index.cjs.map +1 -1
  23. package/dist/kanban/engine/index.d.cts +628 -6
  24. package/dist/kanban/engine/index.d.ts +628 -6
  25. package/dist/kanban/engine/index.js +1520 -435
  26. package/dist/kanban/engine/index.js.map +1 -1
  27. package/dist/kanban/index.cjs +751 -60
  28. package/dist/kanban/index.cjs.map +1 -1
  29. package/dist/kanban/index.d.cts +555 -9
  30. package/dist/kanban/index.d.ts +555 -9
  31. package/dist/kanban/index.js +747 -61
  32. package/dist/kanban/index.js.map +1 -1
  33. package/dist/teams/index.cjs +453 -38
  34. package/dist/teams/index.cjs.map +1 -1
  35. package/dist/teams/index.d.cts +27 -0
  36. package/dist/teams/index.d.ts +27 -0
  37. package/dist/teams/index.js +453 -38
  38. package/dist/teams/index.js.map +1 -1
  39. package/package.json +1 -1
@@ -2604,7 +2604,17 @@ interface KanbanLane {
2604
2604
  * a tick fans out ⌈cap / chunkSize⌉ runs. Ignored for `per-card`/`event` lanes.
2605
2605
  */
2606
2606
  chunkSize?: number;
2607
+ /**
2608
+ * p46 Handoff contract, OPT-IN per lane (D1). Absent ⇒ `off` (existing boards
2609
+ * are byte-identical). `verdict` ⇒ the engine sends
2610
+ * `HANDOFF_VERDICT_JSON_SCHEMA` as the run's `context.outputSchema` and a
2611
+ * completion MUST carry a valid verdict (else the run fails with a FAILED
2612
+ * handoff). Active only on hosts whose adapter implements the ledger group.
2613
+ */
2614
+ handoff?: KanbanLaneHandoffMode;
2607
2615
  }
2616
+ /** Per-lane Handoff mode (p46 D1). */
2617
+ type KanbanLaneHandoffMode = "off" | "verdict";
2608
2618
  /**
2609
2619
  * A declared edge between two lanes in the lifecycle.
2610
2620
  *
@@ -2696,6 +2706,11 @@ interface KanbanCard {
2696
2706
  configVersion?: number;
2697
2707
  /** Arbitrary shared context carried across transitions. */
2698
2708
  sharedContext?: Record<string, unknown>;
2709
+ /**
2710
+ * p46 (P46-002): the card's id in an external host (a Jira issue key).
2711
+ * Absent on native / crm / yobo cards.
2712
+ */
2713
+ externalRef?: string;
2699
2714
  /**
2700
2715
  * Execution UUID of the card's current/last run, if any.
2701
2716
  *
@@ -2758,6 +2773,18 @@ interface CreateCardInput {
2758
2773
  * in the lifecycle's initial lane.
2759
2774
  */
2760
2775
  lane?: string;
2776
+ /**
2777
+ * p46 (P46-002): the card's id in an EXTERNAL host (a Jira issue key, e.g.
2778
+ * `CAD-231`). Optional. When set, a card is created at most ONCE per
2779
+ * `(boardConfigUuid, externalRef)`: a repeat create returns the existing card
2780
+ * and dispatches nothing. Hosts that don't store it simply ignore it.
2781
+ */
2782
+ externalRef?: string;
2783
+ /**
2784
+ * p46 (P46-002): opaque host facts stored with the card (Jira `statusId`,
2785
+ * `mover`, `detached`, …). Passed through to `adapter.createCard` untouched.
2786
+ */
2787
+ externalMeta?: Record<string, unknown>;
2761
2788
  }
2762
2789
  /**
2763
2790
  * Input for transitioning a card to another lane.
@@ -2604,7 +2604,17 @@ interface KanbanLane {
2604
2604
  * a tick fans out ⌈cap / chunkSize⌉ runs. Ignored for `per-card`/`event` lanes.
2605
2605
  */
2606
2606
  chunkSize?: number;
2607
+ /**
2608
+ * p46 Handoff contract, OPT-IN per lane (D1). Absent ⇒ `off` (existing boards
2609
+ * are byte-identical). `verdict` ⇒ the engine sends
2610
+ * `HANDOFF_VERDICT_JSON_SCHEMA` as the run's `context.outputSchema` and a
2611
+ * completion MUST carry a valid verdict (else the run fails with a FAILED
2612
+ * handoff). Active only on hosts whose adapter implements the ledger group.
2613
+ */
2614
+ handoff?: KanbanLaneHandoffMode;
2607
2615
  }
2616
+ /** Per-lane Handoff mode (p46 D1). */
2617
+ type KanbanLaneHandoffMode = "off" | "verdict";
2608
2618
  /**
2609
2619
  * A declared edge between two lanes in the lifecycle.
2610
2620
  *
@@ -2696,6 +2706,11 @@ interface KanbanCard {
2696
2706
  configVersion?: number;
2697
2707
  /** Arbitrary shared context carried across transitions. */
2698
2708
  sharedContext?: Record<string, unknown>;
2709
+ /**
2710
+ * p46 (P46-002): the card's id in an external host (a Jira issue key).
2711
+ * Absent on native / crm / yobo cards.
2712
+ */
2713
+ externalRef?: string;
2699
2714
  /**
2700
2715
  * Execution UUID of the card's current/last run, if any.
2701
2716
  *
@@ -2758,6 +2773,18 @@ interface CreateCardInput {
2758
2773
  * in the lifecycle's initial lane.
2759
2774
  */
2760
2775
  lane?: string;
2776
+ /**
2777
+ * p46 (P46-002): the card's id in an EXTERNAL host (a Jira issue key, e.g.
2778
+ * `CAD-231`). Optional. When set, a card is created at most ONCE per
2779
+ * `(boardConfigUuid, externalRef)`: a repeat create returns the existing card
2780
+ * and dispatches nothing. Hosts that don't store it simply ignore it.
2781
+ */
2782
+ externalRef?: string;
2783
+ /**
2784
+ * p46 (P46-002): opaque host facts stored with the card (Jira `statusId`,
2785
+ * `mover`, `detached`, …). Passed through to `adapter.createCard` untouched.
2786
+ */
2787
+ externalMeta?: Record<string, unknown>;
2761
2788
  }
2762
2789
  /**
2763
2790
  * Input for transitioning a card to another lane.