@50arms/plugin-sdk 0.2.65 → 0.2.67
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/card-kit.d.ts +437 -112
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -111,77 +111,15 @@ declare module "@danxbot/card-kit@1" {
|
|
|
111
111
|
type: ResourceType;
|
|
112
112
|
id: string;
|
|
113
113
|
}
|
|
114
|
-
type WorkMarkResourceType = "design" | "plan" | "problem" | "plan_record" | "plan_section" | "decision";
|
|
115
|
-
interface WorkMarkResource extends ResourceRef {
|
|
116
|
-
type: WorkMarkResourceType;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
type QualityGatePhase = "plan" | "code";
|
|
120
|
-
type ControlValue = boolean | string;
|
|
121
|
-
|
|
122
|
-
type ControlSource = "card" | "plan" | "board" | "team" | "system";
|
|
123
|
-
interface ControlFallback {
|
|
124
|
-
readonly value: ControlValue;
|
|
125
|
-
readonly source: Exclude<ControlSource, "card">;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
type ActorKind = "person" | "system" | "dispatch_agent" | "worker" | "agent_profile" | "plan_session" | "unresolved";
|
|
129
|
-
interface ActorRef {
|
|
130
|
-
kind: ActorKind;
|
|
131
|
-
name: string;
|
|
132
|
-
reason: StatusReason | ProfileName | null;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
type DocsPromotionStatus = "running" | "drafted" | "failed" | "landing" | "landed" | "superseded" | "waiting";
|
|
136
|
-
|
|
137
|
-
type DocsLandStage = "direct" | "resolving" | "needs_person" | "pull_request";
|
|
138
|
-
|
|
139
|
-
type DocsLandWorker = {
|
|
140
|
-
kind: "dispatch";
|
|
141
|
-
dispatch_id: string;
|
|
142
|
-
} | {
|
|
143
|
-
kind: "session";
|
|
144
|
-
session_id: string;
|
|
145
|
-
plan_id: PlanRefNum;
|
|
146
|
-
};
|
|
147
|
-
interface DocsLandWire {
|
|
148
|
-
land_stage: DocsLandStage | null;
|
|
149
|
-
land_conflict_files: string[] | null;
|
|
150
|
-
land_reason: string | null;
|
|
151
|
-
land_worker: DocsLandWorker | null;
|
|
152
|
-
land_problem_ref_num: number | null;
|
|
153
|
-
land_pull_request_url: string | null;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
interface DocsReviewView extends DocsLandWire {
|
|
157
|
-
plan_id: PlanRefNum;
|
|
158
|
-
repo_name: string;
|
|
159
|
-
attempt: number;
|
|
160
|
-
status: DocsPromotionStatus;
|
|
161
|
-
summary: string;
|
|
162
|
-
head_sha: string;
|
|
163
|
-
change_counts: {
|
|
164
|
-
added: number;
|
|
165
|
-
changed: number;
|
|
166
|
-
removed: number;
|
|
167
|
-
} | null;
|
|
168
|
-
landed_sha: string | null;
|
|
169
|
-
failure_reason: string | null;
|
|
170
|
-
waiting_board_id: BoardRefNum | null;
|
|
171
|
-
approve_solution_id: number;
|
|
172
|
-
withdraw_solution_id: number;
|
|
173
|
-
compare_url: string | null;
|
|
174
|
-
updated_at: string;
|
|
175
|
-
}
|
|
176
|
-
interface DecisionRecordPage {
|
|
177
|
-
offset: number;
|
|
178
|
-
target_found: boolean | null;
|
|
179
|
-
}
|
|
180
114
|
type EvidenceBlockType = "note" | "steps" | "command" | "table" | "code" | "diff" | "log" | "samples";
|
|
181
115
|
type EvidenceMadeBy = "human" | "agent";
|
|
182
116
|
type EvidenceColumnType = "number" | "boolean" | "text" | "date";
|
|
183
117
|
type EvidenceChartKind = "line" | "time_series" | "bar";
|
|
184
118
|
type EvidenceAttachmentRole = "samples" | "file" | "csv";
|
|
119
|
+
type EvidencePart = "hypothesis" | "verdict";
|
|
120
|
+
type EvidenceApprovalAction = "approve" | "reject";
|
|
121
|
+
type EvidenceAutoBasis = "threshold" | "pre_gate" | "subjects_only";
|
|
122
|
+
type EvidenceThresholdLayer = "board" | "team" | "default";
|
|
185
123
|
|
|
186
124
|
interface EvidenceColumn {
|
|
187
125
|
name: string;
|
|
@@ -292,23 +230,58 @@ declare module "@danxbot/card-kit@1" {
|
|
|
292
230
|
block_type: EvidenceBlockType;
|
|
293
231
|
method: string;
|
|
294
232
|
}
|
|
295
|
-
interface
|
|
233
|
+
interface EvidenceApprovalEventView {
|
|
234
|
+
action: EvidenceApprovalAction;
|
|
235
|
+
approver: "person" | "auto";
|
|
236
|
+
by_user_id: number | null;
|
|
237
|
+
by_name: string | null;
|
|
238
|
+
basis: EvidenceAutoBasis | null;
|
|
239
|
+
threshold: string | null;
|
|
240
|
+
layer: EvidenceThresholdLayer | null;
|
|
241
|
+
reason: string | null;
|
|
242
|
+
at: string;
|
|
243
|
+
}
|
|
244
|
+
type EvidenceApprovalState = "approved" | "rejected" | "waiting" | "unreviewed";
|
|
245
|
+
interface EvidenceVersionApprovalView {
|
|
246
|
+
approval_state: EvidenceApprovalState;
|
|
247
|
+
approvals: EvidenceApprovalEventView[];
|
|
248
|
+
review_problem_ref_num: number | null;
|
|
249
|
+
}
|
|
250
|
+
interface EvidenceHypothesisVersionView extends EvidenceWriterView, EvidenceMakerView, EvidenceVersionApprovalView {
|
|
296
251
|
id: number;
|
|
297
252
|
version_no: number;
|
|
298
253
|
question: string;
|
|
299
254
|
expected_answer: string;
|
|
255
|
+
wrong_if: string | null;
|
|
300
256
|
exhibits: EvidenceExhibitView[];
|
|
301
257
|
subjects: string[];
|
|
302
258
|
reasoning: string;
|
|
303
259
|
confidence: number;
|
|
260
|
+
provenance: ProvenanceRecordV2[];
|
|
261
|
+
}
|
|
262
|
+
interface EvidenceKeyFigure {
|
|
263
|
+
value: string;
|
|
264
|
+
label: string;
|
|
265
|
+
alt: string | null;
|
|
266
|
+
basis: string;
|
|
267
|
+
cites: string[];
|
|
304
268
|
}
|
|
305
|
-
interface EvidenceVerdictVersionView extends EvidenceWriterView, EvidenceMakerView {
|
|
269
|
+
interface EvidenceVerdictVersionView extends EvidenceWriterView, EvidenceMakerView, EvidenceVersionApprovalView {
|
|
306
270
|
id: number;
|
|
307
271
|
version_no: number;
|
|
308
272
|
answer: string;
|
|
309
273
|
confidence: number;
|
|
310
274
|
reasoning: string;
|
|
311
275
|
cites: string[];
|
|
276
|
+
key_figures: EvidenceKeyFigure[];
|
|
277
|
+
confidence_reason: string | null;
|
|
278
|
+
unverified: string[];
|
|
279
|
+
method: string | null;
|
|
280
|
+
}
|
|
281
|
+
interface EvidenceRaisedProblemView {
|
|
282
|
+
card_id: string;
|
|
283
|
+
problem_ref_num: number;
|
|
284
|
+
open: boolean;
|
|
312
285
|
}
|
|
313
286
|
interface EvidenceBlockAttachmentView {
|
|
314
287
|
role: EvidenceAttachmentRole;
|
|
@@ -337,6 +310,68 @@ declare module "@danxbot/card-kit@1" {
|
|
|
337
310
|
block_count: number;
|
|
338
311
|
gathered: boolean;
|
|
339
312
|
}
|
|
313
|
+
interface DecisionRecordPage {
|
|
314
|
+
offset: number;
|
|
315
|
+
target_found: boolean | null;
|
|
316
|
+
}
|
|
317
|
+
interface ProblemRaisedBy {
|
|
318
|
+
ref: string;
|
|
319
|
+
card_id: string;
|
|
320
|
+
}
|
|
321
|
+
type WorkMarkResourceType = "design" | "plan" | "problem" | "plan_record" | "plan_section" | "decision";
|
|
322
|
+
type ClaimResourceType = "design" | "evidence";
|
|
323
|
+
interface ClaimResource extends ResourceRef {
|
|
324
|
+
type: ClaimResourceType;
|
|
325
|
+
}
|
|
326
|
+
interface WorkMarkResource extends ResourceRef {
|
|
327
|
+
type: WorkMarkResourceType;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
type QualityGatePhase = "plan" | "code";
|
|
331
|
+
type ControlValue = boolean | string;
|
|
332
|
+
|
|
333
|
+
type ControlSource = "card" | "plan" | "board" | "team" | "system";
|
|
334
|
+
interface ControlFallback {
|
|
335
|
+
readonly value: ControlValue;
|
|
336
|
+
readonly source: Exclude<ControlSource, "card">;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
type ActorKind = "person" | "system" | "dispatch_agent" | "worker" | "agent_profile" | "plan_session" | "unresolved";
|
|
340
|
+
interface ActorRef {
|
|
341
|
+
kind: ActorKind;
|
|
342
|
+
name: string;
|
|
343
|
+
reason: StatusReason | ProfileName | null;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
type DocsPromotionStatus = "running" | "drafted" | "failed" | "landing" | "landed" | "superseded" | "waiting";
|
|
347
|
+
|
|
348
|
+
type DocsLandStage = "resolving" | "accept";
|
|
349
|
+
|
|
350
|
+
interface DocsLandWire {
|
|
351
|
+
land_stage: DocsLandStage | null;
|
|
352
|
+
land_problem_ref_num: number | null;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
interface DocsReviewView extends DocsLandWire {
|
|
356
|
+
plan_id: PlanRefNum;
|
|
357
|
+
repo_name: string;
|
|
358
|
+
attempt: number;
|
|
359
|
+
status: DocsPromotionStatus;
|
|
360
|
+
summary: string;
|
|
361
|
+
head_sha: string;
|
|
362
|
+
change_counts: {
|
|
363
|
+
added: number;
|
|
364
|
+
changed: number;
|
|
365
|
+
removed: number;
|
|
366
|
+
} | null;
|
|
367
|
+
landed_sha: string | null;
|
|
368
|
+
failure_reason: string | null;
|
|
369
|
+
waiting_board_id: BoardRefNum | null;
|
|
370
|
+
approve_solution_id: number;
|
|
371
|
+
withdraw_solution_id: number;
|
|
372
|
+
compare_url: string | null;
|
|
373
|
+
updated_at: string;
|
|
374
|
+
}
|
|
340
375
|
type BrowserCheckStatus = "checked" | "not_checked" | "not_recorded";
|
|
341
376
|
|
|
342
377
|
type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
|
|
@@ -357,7 +392,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
357
392
|
con: string;
|
|
358
393
|
recommended: boolean;
|
|
359
394
|
}
|
|
360
|
-
type DecisionReviewChoiceKind = "
|
|
395
|
+
type DecisionReviewChoiceKind = "reject" | "accept" | "revert" | "restore";
|
|
396
|
+
type EvidenceReviewReason = "threshold" | "rejected_before" | "refreshed";
|
|
361
397
|
|
|
362
398
|
interface V2CopyComment {
|
|
363
399
|
author: string;
|
|
@@ -508,14 +544,35 @@ declare module "@danxbot/card-kit@1" {
|
|
|
508
544
|
block_type: EvidenceBlockType;
|
|
509
545
|
method: string;
|
|
510
546
|
}
|
|
547
|
+
interface V2CopyEvidenceApproval {
|
|
548
|
+
action: EvidenceApprovalAction;
|
|
549
|
+
reason: string | null;
|
|
550
|
+
approver: "person" | "auto";
|
|
551
|
+
by_email: string | null;
|
|
552
|
+
by_name: string | null;
|
|
553
|
+
basis: EvidenceAutoBasis | null;
|
|
554
|
+
threshold: string | null;
|
|
555
|
+
layer: EvidenceThresholdLayer | null;
|
|
556
|
+
at: string;
|
|
557
|
+
}
|
|
511
558
|
interface V2CopyEvidenceHypothesisVersion extends V2CopyEvidenceMaker {
|
|
512
559
|
version_no: number;
|
|
513
560
|
question: string;
|
|
514
561
|
expected_answer: string;
|
|
562
|
+
wrong_if: string | null;
|
|
515
563
|
reasoning: string;
|
|
516
564
|
confidence: number;
|
|
517
565
|
exhibits: V2CopyEvidenceExhibit[];
|
|
518
566
|
subjects: string[];
|
|
567
|
+
approvals: V2CopyEvidenceApproval[];
|
|
568
|
+
provenance: V2CopyProvenanceRecord[];
|
|
569
|
+
}
|
|
570
|
+
interface V2CopyEvidenceKeyFigure {
|
|
571
|
+
value: string;
|
|
572
|
+
label: string;
|
|
573
|
+
alt: string | null;
|
|
574
|
+
basis: string;
|
|
575
|
+
cites: number[];
|
|
519
576
|
}
|
|
520
577
|
interface V2CopyEvidenceVerdictVersion extends V2CopyEvidenceMaker {
|
|
521
578
|
version_no: number;
|
|
@@ -523,6 +580,11 @@ declare module "@danxbot/card-kit@1" {
|
|
|
523
580
|
confidence: number;
|
|
524
581
|
reasoning: string;
|
|
525
582
|
cites: number[];
|
|
583
|
+
key_figures: V2CopyEvidenceKeyFigure[];
|
|
584
|
+
confidence_reason: string | null;
|
|
585
|
+
unverified: string[];
|
|
586
|
+
method: string | null;
|
|
587
|
+
approvals: V2CopyEvidenceApproval[];
|
|
526
588
|
}
|
|
527
589
|
interface V2CopyEvidenceBlockAttachment {
|
|
528
590
|
role: EvidenceAttachmentRole;
|
|
@@ -555,6 +617,45 @@ declare module "@danxbot/card-kit@1" {
|
|
|
555
617
|
rounds: V2CopyEvidenceRound[];
|
|
556
618
|
verdict_versions: V2CopyEvidenceVerdictVersion[];
|
|
557
619
|
}
|
|
620
|
+
interface V2CopyBehaviorRule {
|
|
621
|
+
live_position: number;
|
|
622
|
+
rule_version: string;
|
|
623
|
+
position: number;
|
|
624
|
+
}
|
|
625
|
+
interface V2CopyBehaviorPolicy {
|
|
626
|
+
live_name: string;
|
|
627
|
+
name: string;
|
|
628
|
+
position: number;
|
|
629
|
+
quality_gate_types: string[] | null;
|
|
630
|
+
attached_at: string;
|
|
631
|
+
rules: V2CopyBehaviorRule[];
|
|
632
|
+
}
|
|
633
|
+
interface V2CopyBehaviorReview {
|
|
634
|
+
verdict: "accepted" | "rejected";
|
|
635
|
+
note: string | null;
|
|
636
|
+
reviewed_by_email: string | null;
|
|
637
|
+
reviewed_by_name: string;
|
|
638
|
+
comment_index: number | null;
|
|
639
|
+
created_at: string;
|
|
640
|
+
}
|
|
641
|
+
interface V2CopyBehaviorSignoff {
|
|
642
|
+
policy_index: number;
|
|
643
|
+
rule_index: number;
|
|
644
|
+
slot: string;
|
|
645
|
+
status: "compliant" | "incompliant" | "rejected" | "not_applicable";
|
|
646
|
+
note: string | null;
|
|
647
|
+
confidence: number | null;
|
|
648
|
+
review: "surfaced" | "auto_approved" | null;
|
|
649
|
+
problem_index: number | null;
|
|
650
|
+
signed_by_kind: "person" | "agent";
|
|
651
|
+
signed_by_email: string | null;
|
|
652
|
+
signed_by_name: string | null;
|
|
653
|
+
author: string;
|
|
654
|
+
team_agent: string | null;
|
|
655
|
+
quality_gate_round: V2CopyRoundRef | null;
|
|
656
|
+
created_at: string;
|
|
657
|
+
reviews: V2CopyBehaviorReview[];
|
|
658
|
+
}
|
|
558
659
|
interface V2CopyAc {
|
|
559
660
|
title: string;
|
|
560
661
|
checked: boolean;
|
|
@@ -633,6 +734,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
633
734
|
record_index: number;
|
|
634
735
|
answered_version_no: number | null;
|
|
635
736
|
}
|
|
737
|
+
interface V2CopyEvidenceReview {
|
|
738
|
+
record_index: number;
|
|
739
|
+
part: EvidencePart;
|
|
740
|
+
answered_version_no: number | null;
|
|
741
|
+
asked_because: EvidenceReviewReason | null;
|
|
742
|
+
}
|
|
636
743
|
interface V2CopyStep {
|
|
637
744
|
title: string;
|
|
638
745
|
description: string | null;
|
|
@@ -671,6 +778,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
671
778
|
recorded_by: V2CopyProvenanceParty;
|
|
672
779
|
recorded_at: string;
|
|
673
780
|
}
|
|
781
|
+
interface V2CopyProblemEvidenceRecord {
|
|
782
|
+
record_index: number | null;
|
|
783
|
+
ref_num: number;
|
|
784
|
+
}
|
|
674
785
|
interface V2CopyProblem {
|
|
675
786
|
ref_num: number;
|
|
676
787
|
statement: string;
|
|
@@ -679,6 +790,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
679
790
|
summary: string | null;
|
|
680
791
|
design_element: string | null;
|
|
681
792
|
decision_review: V2CopyDecisionReview | null;
|
|
793
|
+
evidence_review: V2CopyEvidenceReview | null;
|
|
794
|
+
evidence_record: V2CopyProblemEvidenceRecord | null;
|
|
682
795
|
removed: boolean;
|
|
683
796
|
solutions: V2CopySolution[];
|
|
684
797
|
decisions: V2CopyDecision[];
|
|
@@ -705,6 +818,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
705
818
|
agent_notes: V2CopyAgentNote[];
|
|
706
819
|
decision_records: V2CopyDecisionRecord[];
|
|
707
820
|
evidence_records: V2CopyEvidenceRecord[];
|
|
821
|
+
behavior_policies_pinned_at: string | null;
|
|
822
|
+
behavior_policies: V2CopyBehaviorPolicy[];
|
|
823
|
+
behavior_signoffs: V2CopyBehaviorSignoff[];
|
|
708
824
|
created_tags: V2CopyCommentTag[];
|
|
709
825
|
dependencies: V2CopyDependency[];
|
|
710
826
|
retro: V2CopyRetro | null;
|
|
@@ -807,6 +923,89 @@ declare module "@danxbot/card-kit@1" {
|
|
|
807
923
|
};
|
|
808
924
|
}
|
|
809
925
|
type CardUsage = UsageSummary | UsageError | null;
|
|
926
|
+
type BehaviorSignoffStatus = "compliant" | "incompliant" | "rejected" | "not_applicable";
|
|
927
|
+
type SlotStatus = BehaviorSignoffStatus | "unverified";
|
|
928
|
+
type BehaviorSlotProblemState = "waiting_on_person" | "waiting_on_agent" | "accepted";
|
|
929
|
+
|
|
930
|
+
interface BehaviorDecisionView {
|
|
931
|
+
readonly signoff_id: number;
|
|
932
|
+
readonly status: Exclude<SlotStatus, "unverified">;
|
|
933
|
+
readonly note: string | null;
|
|
934
|
+
readonly confidence: number | null;
|
|
935
|
+
readonly review: "surfaced" | "auto_approved" | null;
|
|
936
|
+
readonly signer: {
|
|
937
|
+
readonly kind: "person" | "agent";
|
|
938
|
+
readonly name: string;
|
|
939
|
+
readonly user_id: number | null;
|
|
940
|
+
};
|
|
941
|
+
readonly signed_at: string;
|
|
942
|
+
}
|
|
943
|
+
interface BehaviorSlotView {
|
|
944
|
+
readonly slot: string;
|
|
945
|
+
readonly gate_on_card: boolean;
|
|
946
|
+
readonly status: SlotStatus;
|
|
947
|
+
readonly signoff_id: number | null;
|
|
948
|
+
readonly note: string | null;
|
|
949
|
+
readonly confidence: number | null;
|
|
950
|
+
readonly review: "surfaced" | "auto_approved" | null;
|
|
951
|
+
readonly signer: BehaviorDecisionView["signer"] | null;
|
|
952
|
+
readonly signed_at: string | null;
|
|
953
|
+
readonly problem: {
|
|
954
|
+
readonly ref: string;
|
|
955
|
+
readonly state: BehaviorSlotProblemState;
|
|
956
|
+
} | null;
|
|
957
|
+
readonly earlier: BehaviorDecisionView[];
|
|
958
|
+
}
|
|
959
|
+
interface BehaviorRuleView {
|
|
960
|
+
readonly rule_id: number;
|
|
961
|
+
readonly ref: string;
|
|
962
|
+
readonly text: string;
|
|
963
|
+
readonly rule_version: string;
|
|
964
|
+
readonly slots: BehaviorSlotView[];
|
|
965
|
+
}
|
|
966
|
+
interface BehaviorPolicyView {
|
|
967
|
+
readonly ref: string;
|
|
968
|
+
readonly name: string;
|
|
969
|
+
readonly quality_gate_types: string[] | null;
|
|
970
|
+
readonly attached_at: string | null;
|
|
971
|
+
readonly rules: BehaviorRuleView[];
|
|
972
|
+
}
|
|
973
|
+
interface CardBehaviorPoliciesView {
|
|
974
|
+
readonly behavior_policies_pinned_at: string | null;
|
|
975
|
+
readonly open_slot_count: number;
|
|
976
|
+
readonly policies: BehaviorPolicyView[];
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
interface BehaviorRuleReviewView {
|
|
980
|
+
readonly verdict: "accepted" | "rejected";
|
|
981
|
+
readonly note: string | null;
|
|
982
|
+
readonly reviewed_by_name: string;
|
|
983
|
+
readonly comment_id: number | null;
|
|
984
|
+
readonly created_at: string;
|
|
985
|
+
}
|
|
986
|
+
interface BehaviorRuleRowView {
|
|
987
|
+
readonly rule_id: number;
|
|
988
|
+
readonly rule_ref: string;
|
|
989
|
+
readonly rule_text: string;
|
|
990
|
+
readonly slot: string;
|
|
991
|
+
readonly gate_on_card: boolean;
|
|
992
|
+
readonly state: BehaviorSlotProblemState;
|
|
993
|
+
readonly decision: BehaviorDecisionView;
|
|
994
|
+
readonly reviews: BehaviorRuleReviewView[];
|
|
995
|
+
}
|
|
996
|
+
interface BehaviorRuleGroupView {
|
|
997
|
+
readonly policy_ref: string;
|
|
998
|
+
readonly policy_name: string;
|
|
999
|
+
readonly total_count: number;
|
|
1000
|
+
readonly evaluated_count: number;
|
|
1001
|
+
readonly rows: BehaviorRuleRowView[];
|
|
1002
|
+
}
|
|
1003
|
+
interface BehaviorRulesProblemView {
|
|
1004
|
+
readonly total_count: number;
|
|
1005
|
+
readonly evaluated_count: number;
|
|
1006
|
+
readonly waiting_count: number;
|
|
1007
|
+
readonly groups: BehaviorRuleGroupView[];
|
|
1008
|
+
}
|
|
810
1009
|
interface DesignSourceFile {
|
|
811
1010
|
path: string;
|
|
812
1011
|
content: string;
|
|
@@ -819,6 +1018,49 @@ declare module "@danxbot/card-kit@1" {
|
|
|
819
1018
|
kind: "external";
|
|
820
1019
|
text: string;
|
|
821
1020
|
};
|
|
1021
|
+
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
1022
|
+
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "notes" | "open_cards";
|
|
1023
|
+
type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey;
|
|
1024
|
+
interface ContextCategorySize {
|
|
1025
|
+
key: ContextCategoryKey;
|
|
1026
|
+
tokens: number;
|
|
1027
|
+
items: number;
|
|
1028
|
+
}
|
|
1029
|
+
interface ContextSize {
|
|
1030
|
+
total_tokens: number;
|
|
1031
|
+
categories: ContextCategorySize[];
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
interface CategorySizes {
|
|
1035
|
+
key: ContextCategoryKey;
|
|
1036
|
+
covered: boolean;
|
|
1037
|
+
before: number;
|
|
1038
|
+
after: number | null;
|
|
1039
|
+
}
|
|
1040
|
+
interface ItemSizes {
|
|
1041
|
+
before_tokens: number | null;
|
|
1042
|
+
after_tokens: number | null;
|
|
1043
|
+
categories: CategorySizes[] | null;
|
|
1044
|
+
}
|
|
1045
|
+
interface RunCard {
|
|
1046
|
+
ref: string;
|
|
1047
|
+
title: string;
|
|
1048
|
+
sizes: ItemSizes;
|
|
1049
|
+
}
|
|
1050
|
+
interface CompactionRun {
|
|
1051
|
+
id: number;
|
|
1052
|
+
pressed_at: string;
|
|
1053
|
+
started_at: string | null;
|
|
1054
|
+
ended_at: string;
|
|
1055
|
+
outcome: "done" | "failed";
|
|
1056
|
+
failure_reason: NotificationText | null;
|
|
1057
|
+
tool_calls: number | null;
|
|
1058
|
+
turns: number | null;
|
|
1059
|
+
spend_usd: number | null;
|
|
1060
|
+
model: string | null;
|
|
1061
|
+
own: ItemSizes;
|
|
1062
|
+
cards: RunCard[] | null;
|
|
1063
|
+
}
|
|
822
1064
|
|
|
823
1065
|
interface CompactionJobWho {
|
|
824
1066
|
name: string;
|
|
@@ -988,17 +1230,20 @@ declare module "@danxbot/card-kit@1" {
|
|
|
988
1230
|
readonly stacked_on: readonly StackedOnWire[];
|
|
989
1231
|
readonly ahead: readonly LandingAheadRegistration[];
|
|
990
1232
|
}
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1233
|
+
|
|
1234
|
+
interface CompactionSavings {
|
|
1235
|
+
loads: number;
|
|
1236
|
+
dispatches: number;
|
|
1237
|
+
running: number;
|
|
1238
|
+
avg_tokens_fewer: number;
|
|
1239
|
+
avg_later_turns: number;
|
|
1240
|
+
tokens_saved: number;
|
|
1241
|
+
usd_saved: number;
|
|
1242
|
+
unpriced_loads: number;
|
|
1243
|
+
unresolved_loads: number;
|
|
1244
|
+
compact_usd: number;
|
|
1245
|
+
compact_runs: number;
|
|
1246
|
+
counted_since: string;
|
|
1002
1247
|
}
|
|
1003
1248
|
interface BuildGradeView {
|
|
1004
1249
|
readonly grade: string;
|
|
@@ -1100,7 +1345,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1100
1345
|
quality_gate_round_id: number | null;
|
|
1101
1346
|
items: ChecklistItemView[];
|
|
1102
1347
|
}
|
|
1103
|
-
type DesignDecisionOutcome = "approved" | "
|
|
1348
|
+
type DesignDecisionOutcome = "approved" | "rejected" | "changes_requested";
|
|
1104
1349
|
interface ChecklistHistoryViewV2 {
|
|
1105
1350
|
action: "create" | "rename" | "remove" | "add_item" | "update_item" | "remove_item";
|
|
1106
1351
|
checklist: string;
|
|
@@ -1159,10 +1404,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1159
1404
|
thumbnail_error: null | string;
|
|
1160
1405
|
created_at: string;
|
|
1161
1406
|
}>);
|
|
1162
|
-
title: string;
|
|
1163
1407
|
description?: undefined | string;
|
|
1164
|
-
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1165
1408
|
type: string;
|
|
1409
|
+
title: string;
|
|
1410
|
+
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1166
1411
|
priority: number;
|
|
1167
1412
|
agent_notes?: undefined | (Array<{
|
|
1168
1413
|
id: string;
|
|
@@ -1183,7 +1428,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1183
1428
|
created_by: string;
|
|
1184
1429
|
created_at: string;
|
|
1185
1430
|
archived_at: null | string;
|
|
1186
|
-
review_state: "approved" | "
|
|
1431
|
+
review_state: "approved" | "rejected" | "awaiting_review" | "changes_requested";
|
|
1187
1432
|
revision_count: number;
|
|
1188
1433
|
latest_revision_no: number;
|
|
1189
1434
|
chosen_options: null | OptionSelection;
|
|
@@ -1210,7 +1455,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1210
1455
|
decisions?: undefined | (Array<{
|
|
1211
1456
|
decision_id: number;
|
|
1212
1457
|
revision_no: number;
|
|
1213
|
-
outcome: "approved" | "
|
|
1458
|
+
outcome: "approved" | "rejected" | "changes_requested";
|
|
1214
1459
|
note: null | string;
|
|
1215
1460
|
comment_id: number;
|
|
1216
1461
|
decided_by: string;
|
|
@@ -1268,11 +1513,15 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1268
1513
|
start_commit?: undefined | null | { at: string; sha: string | null; error: "no_repo" | "not_github_repo" | "no_token" | "github_refused" | "github_unreachable" | "unreadable_tip" | "unexpected" | null; error_detail: string | null; };
|
|
1269
1514
|
problem_total?: undefined | number;
|
|
1270
1515
|
evidence_record_total?: undefined | number;
|
|
1516
|
+
behavior_policies?: undefined | CardBehaviorPoliciesView;
|
|
1271
1517
|
decision_record_total?: undefined | number;
|
|
1272
1518
|
decision_record_page?: undefined | DecisionRecordPage;
|
|
1273
1519
|
decision_record_approved_total?: undefined | number;
|
|
1274
1520
|
lane_header?: undefined | false | true;
|
|
1275
1521
|
design_count?: undefined | number;
|
|
1522
|
+
docs_unaccepted_count?: undefined | number;
|
|
1523
|
+
docs_unit_count?: undefined | number;
|
|
1524
|
+
docs_repos?: undefined | Array<string>;
|
|
1276
1525
|
open_action_count?: undefined | number;
|
|
1277
1526
|
open_problem_count?: undefined | number;
|
|
1278
1527
|
ac?: undefined | Array<AcItemViewV2>;
|
|
@@ -1314,7 +1563,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1314
1563
|
unread_decision_comment_counts?: undefined | Record<string, number>;
|
|
1315
1564
|
unread_evidence_comment_counts?: undefined | Record<string, number>;
|
|
1316
1565
|
context_size?: undefined | ContextSize;
|
|
1317
|
-
content_compaction?: undefined | null | { id: number; requested_at: string; } & { status: "waiting"; ended_at: null; failure_reason: null; } | { id: number; requested_at: string; } & { status: "working"; ended_at: null; failure_reason: null; job: CompactionJob; } | { id: number; requested_at: string; } & { status: "done"; ended_at: string; failure_reason: null; sizes: CompactionSizes; } | { id: number; requested_at: string; } & { status: "failed"; ended_at: string; failure_reason: NotificationText; };
|
|
1566
|
+
content_compaction?: undefined | null | { id: number; requested_at: string; categories: ContextCategoryKey[]; card_categories: ContextCategoryKey[] | null; finished_runs: number; } & { status: "waiting"; ended_at: null; failure_reason: null; } | { id: number; requested_at: string; categories: ContextCategoryKey[]; card_categories: ContextCategoryKey[] | null; finished_runs: number; } & { status: "working"; ended_at: null; failure_reason: null; job: CompactionJob; } | { id: number; requested_at: string; categories: ContextCategoryKey[]; card_categories: ContextCategoryKey[] | null; finished_runs: number; } & { status: "done"; ended_at: string; failure_reason: null; sizes: CompactionSizes; } | { id: number; requested_at: string; categories: ContextCategoryKey[]; card_categories: ContextCategoryKey[] | null; finished_runs: number; } & { status: "failed"; ended_at: string; failure_reason: NotificationText; };
|
|
1567
|
+
content_compaction_history?: undefined | Array<CompactionRun>;
|
|
1568
|
+
compaction_savings?: undefined | null | CompactionSavings;
|
|
1318
1569
|
agent_notes_count?: undefined | number;
|
|
1319
1570
|
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; }; };
|
|
1320
1571
|
comment_tags?: undefined | Array<CommentTagOption>;
|
|
@@ -1339,14 +1590,14 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1339
1590
|
landing_ahead?: undefined | LandingAheadView;
|
|
1340
1591
|
copy_issue?: undefined | V2CopyIssue;
|
|
1341
1592
|
decision_records?: undefined | (Array<{
|
|
1342
|
-
|
|
1343
|
-
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1344
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1593
|
+
text: string;
|
|
1345
1594
|
made_by: "human" | "agent";
|
|
1595
|
+
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1346
1596
|
approved: boolean;
|
|
1347
1597
|
impact: number;
|
|
1348
1598
|
confidence: number;
|
|
1349
|
-
|
|
1599
|
+
title: string;
|
|
1600
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1350
1601
|
rev: number;
|
|
1351
1602
|
created_at: string;
|
|
1352
1603
|
updated_at: string;
|
|
@@ -1367,13 +1618,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1367
1618
|
comment_count: number;
|
|
1368
1619
|
unread_comment_count: number;
|
|
1369
1620
|
versions?: undefined | (Array<{
|
|
1370
|
-
|
|
1371
|
-
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1372
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1621
|
+
text: string;
|
|
1373
1622
|
made_by: "human" | "agent";
|
|
1623
|
+
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1374
1624
|
impact: number;
|
|
1375
1625
|
confidence: number;
|
|
1376
|
-
|
|
1626
|
+
title: string;
|
|
1627
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1377
1628
|
id: number;
|
|
1378
1629
|
created_at: string;
|
|
1379
1630
|
author: string;
|
|
@@ -1399,17 +1650,18 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1399
1650
|
}>);
|
|
1400
1651
|
}>);
|
|
1401
1652
|
evidence_records?: undefined | (Array<{
|
|
1653
|
+
hypothesis: EvidenceHypothesisVersionView;
|
|
1654
|
+
verdict: null | EvidenceVerdictVersionView;
|
|
1402
1655
|
rev: number;
|
|
1403
1656
|
created_at: string;
|
|
1404
1657
|
updated_at: string;
|
|
1405
1658
|
ref: string;
|
|
1406
1659
|
ref_num: number;
|
|
1407
|
-
hypothesis: EvidenceHypothesisVersionView;
|
|
1408
|
-
verdict: null | EvidenceVerdictVersionView;
|
|
1409
1660
|
exhibits: Array<EvidenceExhibitStatusView>;
|
|
1410
1661
|
other_block_count: number;
|
|
1411
1662
|
round_count: number;
|
|
1412
1663
|
block_count: number;
|
|
1664
|
+
raised_problems: Array<EvidenceRaisedProblemView>;
|
|
1413
1665
|
comment_count: number;
|
|
1414
1666
|
unread_comment_count: number;
|
|
1415
1667
|
rounds?: undefined | (Array<{
|
|
@@ -1428,10 +1680,12 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1428
1680
|
version_no: number;
|
|
1429
1681
|
question: string;
|
|
1430
1682
|
expected_answer: string;
|
|
1683
|
+
wrong_if: null | string;
|
|
1431
1684
|
exhibits: Array<EvidenceExhibitView>;
|
|
1432
1685
|
subjects: Array<string>;
|
|
1433
1686
|
reasoning: string;
|
|
1434
1687
|
confidence: number;
|
|
1688
|
+
provenance: Array<ProvenanceRecordV2>;
|
|
1435
1689
|
author: string;
|
|
1436
1690
|
by: AuthorV2;
|
|
1437
1691
|
via_key: null | ViaKey;
|
|
@@ -1441,6 +1695,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1441
1695
|
made_by_name: null | string;
|
|
1442
1696
|
made_by_author: AuthorV2;
|
|
1443
1697
|
made_by_is_writer: boolean;
|
|
1698
|
+
approval_state: "approved" | "rejected" | "waiting" | "unreviewed";
|
|
1699
|
+
approvals: Array<EvidenceApprovalEventView>;
|
|
1700
|
+
review_problem_ref_num: null | number;
|
|
1444
1701
|
}>);
|
|
1445
1702
|
verdict_versions?: undefined | (Array<{
|
|
1446
1703
|
id: number;
|
|
@@ -1449,6 +1706,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1449
1706
|
confidence: number;
|
|
1450
1707
|
reasoning: string;
|
|
1451
1708
|
cites: Array<string>;
|
|
1709
|
+
key_figures: Array<EvidenceKeyFigure>;
|
|
1710
|
+
confidence_reason: null | string;
|
|
1711
|
+
unverified: Array<string>;
|
|
1712
|
+
method: null | string;
|
|
1452
1713
|
author: string;
|
|
1453
1714
|
by: AuthorV2;
|
|
1454
1715
|
via_key: null | ViaKey;
|
|
@@ -1458,16 +1719,19 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1458
1719
|
made_by_name: null | string;
|
|
1459
1720
|
made_by_author: AuthorV2;
|
|
1460
1721
|
made_by_is_writer: boolean;
|
|
1722
|
+
approval_state: "approved" | "rejected" | "waiting" | "unreviewed";
|
|
1723
|
+
approvals: Array<EvidenceApprovalEventView>;
|
|
1724
|
+
review_problem_ref_num: null | number;
|
|
1461
1725
|
}>);
|
|
1462
1726
|
}>);
|
|
1463
1727
|
decision_record_versions?: undefined | (Array<{
|
|
1464
|
-
|
|
1465
|
-
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1466
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1728
|
+
text: string;
|
|
1467
1729
|
made_by: "human" | "agent";
|
|
1730
|
+
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1468
1731
|
impact: number;
|
|
1469
1732
|
confidence: number;
|
|
1470
|
-
|
|
1733
|
+
title: string;
|
|
1734
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1471
1735
|
id: number;
|
|
1472
1736
|
created_at: string;
|
|
1473
1737
|
author: string;
|
|
@@ -1494,7 +1758,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1494
1758
|
work_marks?: undefined | (Array<{
|
|
1495
1759
|
id: number;
|
|
1496
1760
|
via_key_id: number;
|
|
1497
|
-
resource: WorkMarkResource;
|
|
1761
|
+
resource: WorkMarkResource | ClaimResource;
|
|
1498
1762
|
note: string;
|
|
1499
1763
|
by: AuthorV2;
|
|
1500
1764
|
started_at: string;
|
|
@@ -1514,8 +1778,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1514
1778
|
}>);
|
|
1515
1779
|
changed_fields?: undefined | Array<string>;
|
|
1516
1780
|
children_detail?: undefined | (Array<{
|
|
1517
|
-
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1518
1781
|
type: string;
|
|
1782
|
+
status: "Cancelled" | "Review" | "ToDo" | "In Progress" | "Backlog" | "Done";
|
|
1519
1783
|
priority: number;
|
|
1520
1784
|
name: string;
|
|
1521
1785
|
id: string;
|
|
@@ -1540,7 +1804,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1540
1804
|
dead_reason: "" | "deleted" | "archived" | "left";
|
|
1541
1805
|
source_ref: string;
|
|
1542
1806
|
last_error: null | StatusReason;
|
|
1543
|
-
owed: Array<"comments" | "checklists" | "attachments" | "
|
|
1807
|
+
owed: Array<"comments" | "checklists" | "attachments" | "description" | "type" | "title" | "status" | "priority" | "parent_child" | "dependencies" | "card_create" | "card_delete">;
|
|
1544
1808
|
description_unreadable: boolean;
|
|
1545
1809
|
target_ref: string;
|
|
1546
1810
|
target_label: string;
|
|
@@ -1605,7 +1869,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1605
1869
|
phase: "plan" | "code";
|
|
1606
1870
|
};
|
|
1607
1871
|
type ProblemViewV2 = {
|
|
1608
|
-
type: "design" | "question" | "action" | "decision_review";
|
|
1872
|
+
type: "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules";
|
|
1609
1873
|
open: boolean;
|
|
1610
1874
|
ordinal: number;
|
|
1611
1875
|
decisions: Array<{
|
|
@@ -1640,6 +1904,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1640
1904
|
context: null | string;
|
|
1641
1905
|
design_element: null | string;
|
|
1642
1906
|
solutions: Array<SolutionViewV2>;
|
|
1907
|
+
raised_by?: undefined | null | ProblemRaisedBy;
|
|
1643
1908
|
changed_fields?: undefined | Array<string>;
|
|
1644
1909
|
decision_review?: undefined | (Array<{
|
|
1645
1910
|
problem_ref_num: number;
|
|
@@ -1647,13 +1912,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1647
1912
|
answered_version_no: null | number;
|
|
1648
1913
|
choices: Array<{ solution_id: number; kind: DecisionReviewChoiceKind; version_no: number; title: string; }>;
|
|
1649
1914
|
versions?: undefined | (Array<{
|
|
1650
|
-
|
|
1651
|
-
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1652
|
-
action: "created" | "changed" | "deleted" | "restored";
|
|
1915
|
+
text: string;
|
|
1653
1916
|
made_by: "human" | "agent";
|
|
1917
|
+
kind: "business_rule" | "architecture" | "design" | "other";
|
|
1654
1918
|
impact: number;
|
|
1655
1919
|
confidence: number;
|
|
1656
|
-
|
|
1920
|
+
title: string;
|
|
1921
|
+
action: "created" | "changed" | "deleted" | "restored";
|
|
1657
1922
|
id: number;
|
|
1658
1923
|
created_at: string;
|
|
1659
1924
|
author: string;
|
|
@@ -1669,9 +1934,66 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1669
1934
|
version_no: number;
|
|
1670
1935
|
}>);
|
|
1671
1936
|
}>);
|
|
1937
|
+
evidence_review?: undefined | (Array<{
|
|
1938
|
+
version_no: null | number;
|
|
1939
|
+
problem_ref_num: number;
|
|
1940
|
+
record_ref: string;
|
|
1941
|
+
answered_version_no: null | number;
|
|
1942
|
+
choices: Array<{ solution_id: number; kind: DecisionReviewChoiceKind; version_no: number; title: string; }>;
|
|
1943
|
+
part: "hypothesis" | "verdict";
|
|
1944
|
+
asked_because: null | "threshold" | "rejected_before" | "refreshed";
|
|
1945
|
+
hypothesis_versions?: undefined | (Array<{
|
|
1946
|
+
id: number;
|
|
1947
|
+
version_no: number;
|
|
1948
|
+
question: string;
|
|
1949
|
+
expected_answer: string;
|
|
1950
|
+
wrong_if: null | string;
|
|
1951
|
+
exhibits: Array<EvidenceExhibitView>;
|
|
1952
|
+
subjects: Array<string>;
|
|
1953
|
+
reasoning: string;
|
|
1954
|
+
confidence: number;
|
|
1955
|
+
provenance: Array<ProvenanceRecordV2>;
|
|
1956
|
+
author: string;
|
|
1957
|
+
by: AuthorV2;
|
|
1958
|
+
via_key: null | ViaKey;
|
|
1959
|
+
created_at: string;
|
|
1960
|
+
made_by: "human" | "agent";
|
|
1961
|
+
made_by_user_id: null | number;
|
|
1962
|
+
made_by_name: null | string;
|
|
1963
|
+
made_by_author: AuthorV2;
|
|
1964
|
+
made_by_is_writer: boolean;
|
|
1965
|
+
approval_state: "approved" | "rejected" | "waiting" | "unreviewed";
|
|
1966
|
+
approvals: Array<EvidenceApprovalEventView>;
|
|
1967
|
+
review_problem_ref_num: null | number;
|
|
1968
|
+
}>);
|
|
1969
|
+
verdict_versions?: undefined | (Array<{
|
|
1970
|
+
id: number;
|
|
1971
|
+
version_no: number;
|
|
1972
|
+
answer: string;
|
|
1973
|
+
confidence: number;
|
|
1974
|
+
reasoning: string;
|
|
1975
|
+
cites: Array<string>;
|
|
1976
|
+
key_figures: Array<EvidenceKeyFigure>;
|
|
1977
|
+
confidence_reason: null | string;
|
|
1978
|
+
unverified: Array<string>;
|
|
1979
|
+
method: null | string;
|
|
1980
|
+
author: string;
|
|
1981
|
+
by: AuthorV2;
|
|
1982
|
+
via_key: null | ViaKey;
|
|
1983
|
+
created_at: string;
|
|
1984
|
+
made_by: "human" | "agent";
|
|
1985
|
+
made_by_user_id: null | number;
|
|
1986
|
+
made_by_name: null | string;
|
|
1987
|
+
made_by_author: AuthorV2;
|
|
1988
|
+
made_by_is_writer: boolean;
|
|
1989
|
+
approval_state: "approved" | "rejected" | "waiting" | "unreviewed";
|
|
1990
|
+
approvals: Array<EvidenceApprovalEventView>;
|
|
1991
|
+
review_problem_ref_num: null | number;
|
|
1992
|
+
}>);
|
|
1993
|
+
}>);
|
|
1994
|
+
behavior_rules?: undefined | null | BehaviorRulesProblemView;
|
|
1672
1995
|
};
|
|
1673
1996
|
type SolutionViewV2 = {
|
|
1674
|
-
title: string;
|
|
1675
1997
|
steps: Array<{
|
|
1676
1998
|
id: number;
|
|
1677
1999
|
solution_id: number;
|
|
@@ -1684,6 +2006,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1684
2006
|
checked_by: null | string;
|
|
1685
2007
|
steps: Array<SolutionStepViewV2>;
|
|
1686
2008
|
}>;
|
|
2009
|
+
title: string;
|
|
1687
2010
|
id: number;
|
|
1688
2011
|
content_hash: string;
|
|
1689
2012
|
body: string;
|
|
@@ -1700,7 +2023,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1700
2023
|
created_by: string;
|
|
1701
2024
|
created_at: string;
|
|
1702
2025
|
archived_at: null | string;
|
|
1703
|
-
review_state: "approved" | "
|
|
2026
|
+
review_state: "approved" | "rejected" | "awaiting_review" | "changes_requested";
|
|
1704
2027
|
revision_count: number;
|
|
1705
2028
|
latest_revision_no: number;
|
|
1706
2029
|
chosen_options: null | OptionSelection;
|
|
@@ -1727,7 +2050,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1727
2050
|
decisions?: undefined | (Array<{
|
|
1728
2051
|
decision_id: number;
|
|
1729
2052
|
revision_no: number;
|
|
1730
|
-
outcome: "approved" | "
|
|
2053
|
+
outcome: "approved" | "rejected" | "changes_requested";
|
|
1731
2054
|
note: null | string;
|
|
1732
2055
|
comment_id: number;
|
|
1733
2056
|
decided_by: string;
|
|
@@ -1772,7 +2095,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1772
2095
|
|
|
1773
2096
|
type IssueStatus = "Review" | "ToDo" | "In Progress" | "Backlog" | "Done" | "Cancelled";
|
|
1774
2097
|
type EffortLevelName = "min" | "very_low" | "low" | "medium" | "high" | "very_high" | "max";
|
|
1775
|
-
type IssueProblemType = "design" | "question" | "action" | "decision_review";
|
|
2098
|
+
type IssueProblemType = "design" | "question" | "action" | "decision_review" | "evidence_review" | "behavior_rules";
|
|
1776
2099
|
type DecisionOutcome = "rejected" | "answered";
|
|
1777
2100
|
type GatingDependencyKind = "conflict_on" | "depends_on";
|
|
1778
2101
|
type IssueDependencyKind = GatingDependencyKind | "depends_on_landing";
|
|
@@ -1801,6 +2124,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1801
2124
|
justification_quote: string | null;
|
|
1802
2125
|
justification_reasoning: string | null;
|
|
1803
2126
|
bump_size: BumpSize;
|
|
2127
|
+
behavior_policies_pinned_at: string | null;
|
|
1804
2128
|
start_commit_sha: string | null;
|
|
1805
2129
|
start_commit_at: string | null;
|
|
1806
2130
|
start_commit_error: StartCommitError | null;
|
|
@@ -2084,6 +2408,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2084
2408
|
interface CardMutation {
|
|
2085
2409
|
pending: string | null;
|
|
2086
2410
|
run: (key: string, failureTitle: string, op: () => Promise<void>) => Promise<boolean>;
|
|
2411
|
+
onProblemResolved?: () => void;
|
|
2087
2412
|
}
|
|
2088
2413
|
function useCardMutation(): CardMutation;
|
|
2089
2414
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.67",
|
|
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",
|