@50arms/plugin-sdk 0.2.55 → 0.2.58

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 (2) hide show
  1. package/dist/card-kit.d.ts +82 -68
  2. package/package.json +2 -2
@@ -645,11 +645,24 @@ declare module "@danxbot/card-kit@1" {
645
645
  gate: string;
646
646
  detail: string;
647
647
  }[];
648
+ runnable_review: string | null;
648
649
  picker_routing: PickerRouting;
649
650
  dispatch_key_blockers: DispatchKeyBlocker[];
650
651
  worker_readiness_blockers: ReadinessBlocker[];
651
652
  agent_wait: StatusReason | null;
652
653
  }
654
+ type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
655
+ type PlanContextCategoryKey = "comments" | "architecture" | "records" | "notes" | "open_cards";
656
+ type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey;
657
+ interface ContextCategorySize {
658
+ key: ContextCategoryKey;
659
+ tokens: number;
660
+ items: number;
661
+ }
662
+ interface ContextSize {
663
+ total_tokens: number;
664
+ categories: ContextCategorySize[];
665
+ }
653
666
  interface BuildGradeView {
654
667
  readonly grade: string;
655
668
  readonly model: string;
@@ -781,7 +794,7 @@ declare module "@danxbot/card-kit@1" {
781
794
  messages: Array<string>;
782
795
  reduced?: undefined | true;
783
796
  reduced_text?: undefined | null | string;
784
- reply_to_removed?: undefined | true;
797
+ parent_removed?: undefined | true;
785
798
  updated_at: string;
786
799
  origin: "" | "trello" | "slack" | "asana" | "danxbot";
787
800
  via_key?: undefined | null | ViaKey;
@@ -790,7 +803,7 @@ declare module "@danxbot/card-kit@1" {
790
803
  sign_off?: undefined | null | CommentSignOffViewV2;
791
804
  tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; } | { kind: "decision"; ref: number; }>;
792
805
  resource_tags: Array<CommentResourceTag>;
793
- reply_to_comment_id: null | number;
806
+ parent_comment_id: null | number;
794
807
  reply_phase: null | "ack" | "reply";
795
808
  reply_state: null | CommentReplyStateV2;
796
809
  }>);
@@ -812,6 +825,59 @@ declare module "@danxbot/card-kit@1" {
812
825
  status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
813
826
  type: string;
814
827
  priority: number;
828
+ agent_notes?: undefined | (Array<{
829
+ id: string;
830
+ author: string;
831
+ by: AuthorV2;
832
+ via_key: null | ViaKey;
833
+ timestamp: string;
834
+ updated_at: string;
835
+ text: string;
836
+ metadata: unknown;
837
+ }>);
838
+ designs?: undefined | (Array<{
839
+ ref_num: number;
840
+ design_no: number;
841
+ title: string;
842
+ created_by: string;
843
+ created_at: string;
844
+ archived_at: null | string;
845
+ review_state: "approved" | "awaiting_review" | "changes_requested" | "rejected";
846
+ revision_count: number;
847
+ latest_revision_no: number;
848
+ chosen_options: null | OptionSelection;
849
+ comment_count?: undefined | number;
850
+ unread_comment_count?: undefined | number;
851
+ revisions?: undefined | (Array<{
852
+ revision_no: number;
853
+ target: string;
854
+ design_dir: string;
855
+ built_from_commit: string;
856
+ note: string;
857
+ created_by: string;
858
+ created_by_ref: ActorRef;
859
+ created_at: string;
860
+ bundle_bytes: null | number;
861
+ bundle_available: boolean;
862
+ screenshot_available: boolean;
863
+ option_groups: Array<DesignOptionGroup>;
864
+ checklist: Array<string>;
865
+ browser_check: "checked" | "not_checked" | "not_recorded";
866
+ browser_check_note: string;
867
+ source_files?: undefined | Array<DesignSourceFile>;
868
+ }>);
869
+ decisions?: undefined | (Array<{
870
+ decision_id: number;
871
+ revision_no: number;
872
+ outcome: "approved" | "changes_requested" | "rejected";
873
+ note: null | string;
874
+ comment_id: number;
875
+ decided_by: string;
876
+ decided_by_ref: ActorRef;
877
+ created_at: string;
878
+ options: null | OptionSelection;
879
+ }>);
880
+ }>);
815
881
  id: string;
816
882
  parent_id: null | string;
817
883
  rev: number;
@@ -896,6 +962,7 @@ declare module "@danxbot/card-kit@1" {
896
962
  comments_count?: undefined | number;
897
963
  unread_comments_count?: undefined | number;
898
964
  unread_decision_comment_counts?: undefined | Record<string, number>;
965
+ context_size?: undefined | ContextSize;
899
966
  agent_notes_count?: undefined | number;
900
967
  comment_recipient?: undefined | { kind: "agent"; by: AuthorV2; reachability: CommentReachabilityV2; } | { kind: "none"; waiting_on: { kind: "plan"; id: PlanRefNum; ref: string; name: string; } | { kind: "card"; id: string; }; };
901
968
  comment_tags?: undefined | Array<CommentTagOption>;
@@ -914,19 +981,10 @@ declare module "@danxbot/card-kit@1" {
914
981
  triage_last_status?: undefined | string;
915
982
  triage_last_decision_at?: undefined | null | string;
916
983
  next_pre_gate?: undefined | null | string;
984
+ review_runnable?: undefined | false | true;
917
985
  dispatchable_explain?: undefined | DispatchableExplainView;
918
986
  copy_payload?: undefined | V2CopyPayload;
919
987
  copy_issue?: undefined | V2CopyIssue;
920
- agent_notes?: undefined | (Array<{
921
- id: string;
922
- author: string;
923
- by: AuthorV2;
924
- via_key: null | ViaKey;
925
- timestamp: string;
926
- updated_at: string;
927
- text: string;
928
- metadata: unknown;
929
- }>);
930
988
  decision_records?: undefined | (Array<{
931
989
  title: string;
932
990
  kind: "design" | "business_rule" | "architecture" | "other";
@@ -1027,49 +1085,6 @@ declare module "@danxbot/card-kit@1" {
1027
1085
  started_at: string;
1028
1086
  expires_at: string;
1029
1087
  }>;
1030
- designs?: undefined | (Array<{
1031
- ref_num: number;
1032
- design_no: number;
1033
- title: string;
1034
- created_by: string;
1035
- created_at: string;
1036
- archived_at: null | string;
1037
- review_state: "approved" | "awaiting_review" | "changes_requested" | "rejected";
1038
- revision_count: number;
1039
- latest_revision_no: number;
1040
- chosen_options: null | OptionSelection;
1041
- comment_count?: undefined | number;
1042
- unread_comment_count?: undefined | number;
1043
- revisions?: undefined | (Array<{
1044
- revision_no: number;
1045
- target: string;
1046
- design_dir: string;
1047
- built_from_commit: string;
1048
- note: string;
1049
- created_by: string;
1050
- created_by_ref: ActorRef;
1051
- created_at: string;
1052
- bundle_bytes: null | number;
1053
- bundle_available: boolean;
1054
- screenshot_available: boolean;
1055
- option_groups: Array<DesignOptionGroup>;
1056
- checklist: Array<string>;
1057
- browser_check: "checked" | "not_checked" | "not_recorded";
1058
- browser_check_note: string;
1059
- source_files?: undefined | Array<DesignSourceFile>;
1060
- }>);
1061
- decisions?: undefined | (Array<{
1062
- decision_id: number;
1063
- revision_no: number;
1064
- outcome: "approved" | "changes_requested" | "rejected";
1065
- note: null | string;
1066
- comment_id: number;
1067
- decided_by: string;
1068
- decided_by_ref: ActorRef;
1069
- created_at: string;
1070
- options: null | OptionSelection;
1071
- }>);
1072
- }>);
1073
1088
  pull_request_reviews?: undefined | (Array<{
1074
1089
  id: number;
1075
1090
  kind: "comment" | "review" | "thread";
@@ -1082,6 +1097,7 @@ declare module "@danxbot/card-kit@1" {
1082
1097
  resolved: null | false | true;
1083
1098
  occurred_at: string;
1084
1099
  }>);
1100
+ changed_fields?: undefined | Array<string>;
1085
1101
  code_review_items?: undefined | Array<{
1086
1102
  gate_name: string;
1087
1103
  title: string;
@@ -1185,13 +1201,6 @@ declare module "@danxbot/card-kit@1" {
1185
1201
  type: "design" | "question" | "action" | "decision_review";
1186
1202
  open: boolean;
1187
1203
  ordinal: number;
1188
- created_at: string;
1189
- updated_at: string;
1190
- content_hash: string;
1191
- summary: null | string;
1192
- ref_num: number;
1193
- comment_count: number;
1194
- unread_comment_count: number;
1195
1204
  decisions: Array<{
1196
1205
  id: number;
1197
1206
  solution_id: null | number;
@@ -1207,6 +1216,13 @@ declare module "@danxbot/card-kit@1" {
1207
1216
  provenance: null | ProvenanceRecordV2;
1208
1217
  content_hash: string;
1209
1218
  }>;
1219
+ created_at: string;
1220
+ updated_at: string;
1221
+ content_hash: string;
1222
+ summary: null | string;
1223
+ ref_num: number;
1224
+ comment_count: number;
1225
+ unread_comment_count: number;
1210
1226
  issue_id: string;
1211
1227
  feedback_consent: boolean;
1212
1228
  choice_locked: boolean;
@@ -1217,6 +1233,7 @@ declare module "@danxbot/card-kit@1" {
1217
1233
  context: null | string;
1218
1234
  design_element: null | string;
1219
1235
  solutions: Array<SolutionViewV2>;
1236
+ changed_fields?: undefined | Array<string>;
1220
1237
  decision_review?: undefined | (Array<{
1221
1238
  problem_ref_num: number;
1222
1239
  record_ref: string;
@@ -1268,6 +1285,7 @@ declare module "@danxbot/card-kit@1" {
1268
1285
  pro: string;
1269
1286
  con: string;
1270
1287
  recommended: boolean;
1288
+ changed_fields?: undefined | Array<string>;
1271
1289
  design?: undefined | (Array<{
1272
1290
  ref_num: number;
1273
1291
  design_no: number;
@@ -1881,11 +1899,7 @@ declare module "@danxbot/card-kit@1" {
1881
1899
  status: CardStatusPresentation;
1882
1900
  list: CardFaceList | null;
1883
1901
  to: string;
1884
- parent: {
1885
- id: string;
1886
- title: string | null;
1887
- to: string;
1888
- } | null;
1902
+ cardPath: (cardId: string) => string;
1889
1903
  needsHuman: {
1890
1904
  questions: number;
1891
1905
  actions: number;
@@ -1941,7 +1955,7 @@ declare module "@danxbot/card-kit@1" {
1941
1955
  cover?: ReactNode;
1942
1956
  inParentBox?: boolean;
1943
1957
  }
1944
- function CardFace({ card, renderTitle, trailing, statusMark, cover, inParentBox }: CardFaceProps): react.JSX.Element;
1958
+ function CardFace({ card, renderTitle, trailing, statusMark, cover }: CardFaceProps): react.JSX.Element;
1945
1959
 
1946
1960
  function CardBoard({ state, cardPath, }: {
1947
1961
  state: BoardLaneState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@50arms/plugin-sdk",
3
- "version": "0.2.55",
3
+ "version": "0.2.58",
4
4
  "description": "SDK for building 50 Arms plugins (DX-5170): the card kit's type declarations, the Widget declaration kit, a Vite preset that builds a plugin against the app's shared runtime and writes its manifest, and the danx-plugin CLI.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -50,7 +50,7 @@
50
50
  "test": "vitest run"
51
51
  },
52
52
  "devDependencies": {
53
- "@50arms/ui": "36.1.0",
53
+ "@50arms/ui": "36.2.0",
54
54
  "@types/node": "^22.0.0",
55
55
  "@types/react": "^19.2.2",
56
56
  "esbuild": "^0.25.0",