@50arms/plugin-sdk 0.2.70 → 0.2.71
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 +60 -34
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -31,11 +31,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
type CardTypeKey = string;
|
|
34
|
-
|
|
35
|
-
interface Justification {
|
|
36
|
-
quote: string;
|
|
37
|
-
reasoning: string;
|
|
38
|
-
}
|
|
39
34
|
type MirrorProviderId = "trello" | "slack" | "asana" | "linear";
|
|
40
35
|
type SourceOrigin = "danxbot" | MirrorProviderId | "";
|
|
41
36
|
type DecisionRecordKind = "business_rule" | "architecture" | "design" | "other";
|
|
@@ -61,7 +56,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
61
56
|
made_by_name: string | null;
|
|
62
57
|
made_by_author: AuthorV2;
|
|
63
58
|
made_by_is_writer: boolean;
|
|
64
|
-
provenance: ProvenanceRecordV2
|
|
59
|
+
provenance: ProvenanceRecordV2 | null;
|
|
65
60
|
author: string;
|
|
66
61
|
by: AuthorV2;
|
|
67
62
|
via_key: ViaKey | null;
|
|
@@ -104,9 +99,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
104
99
|
values: StatusReasonValues;
|
|
105
100
|
}
|
|
106
101
|
type PacingLimit = "five_hour" | "weekly" | "spend";
|
|
107
|
-
type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url" | "
|
|
102
|
+
type ProvenanceSourceKind = "design" | "agent" | "plan" | "card" | "comment" | "session_thread" | "problem" | "evidence" | "url" | "decision" | "plan_record" | "plan_section" | "behavior_rule" | "behavior_policy" | "docs_page" | "commit" | "user" | "system";
|
|
108
103
|
type ProvenancePartyKind = "agent" | "person";
|
|
109
|
-
type ResourceType = "design" | "plan" | "problem" | "evidence" | "
|
|
104
|
+
type ResourceType = "design" | "plan" | "problem" | "evidence" | "decision" | "plan_record" | "plan_section" | "behavior_policy" | "issue" | "behavior_policy_group";
|
|
110
105
|
interface ResourceRef {
|
|
111
106
|
type: ResourceType;
|
|
112
107
|
id: string;
|
|
@@ -257,7 +252,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
257
252
|
subjects: string[];
|
|
258
253
|
reasoning: string;
|
|
259
254
|
confidence: number;
|
|
260
|
-
provenance: ProvenanceRecordV2
|
|
255
|
+
provenance: ProvenanceRecordV2 | null;
|
|
261
256
|
}
|
|
262
257
|
interface EvidenceKeyFigure {
|
|
263
258
|
value: string;
|
|
@@ -271,8 +266,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
271
266
|
version_no: number;
|
|
272
267
|
answer: string;
|
|
273
268
|
confidence: number;
|
|
274
|
-
|
|
275
|
-
cites: string[];
|
|
269
|
+
provenance: ProvenanceRecordV2;
|
|
276
270
|
key_figures: EvidenceKeyFigure[];
|
|
277
271
|
confidence_reason: string | null;
|
|
278
272
|
unverified: string[];
|
|
@@ -318,7 +312,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
318
312
|
ref: string;
|
|
319
313
|
card_id: string;
|
|
320
314
|
}
|
|
321
|
-
type WorkMarkResourceType = "design" | "plan" | "problem" | "
|
|
315
|
+
type WorkMarkResourceType = "design" | "plan" | "problem" | "decision" | "plan_record" | "plan_section";
|
|
322
316
|
type ClaimResourceType = "design" | "evidence";
|
|
323
317
|
interface ClaimResource extends ResourceRef {
|
|
324
318
|
type: ClaimResourceType;
|
|
@@ -328,6 +322,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
328
322
|
}
|
|
329
323
|
|
|
330
324
|
type QualityGatePhase = "plan" | "code";
|
|
325
|
+
|
|
331
326
|
type ControlValue = boolean | string;
|
|
332
327
|
|
|
333
328
|
type ControlSource = "card" | "plan" | "board" | "team" | "system";
|
|
@@ -489,7 +484,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
489
484
|
made_by_email: string | null;
|
|
490
485
|
made_by_name: string | null;
|
|
491
486
|
made_by_team_agent: string | null;
|
|
492
|
-
provenance: V2CopyProvenanceRecord
|
|
487
|
+
provenance: V2CopyProvenanceRecord | null;
|
|
493
488
|
author: string;
|
|
494
489
|
team_agent: string | null;
|
|
495
490
|
created_at: string;
|
|
@@ -535,7 +530,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
535
530
|
exhibits: V2CopyEvidenceExhibit[];
|
|
536
531
|
subjects: string[];
|
|
537
532
|
approvals: V2CopyEvidenceApproval[];
|
|
538
|
-
provenance: V2CopyProvenanceRecord
|
|
533
|
+
provenance: V2CopyProvenanceRecord | null;
|
|
539
534
|
}
|
|
540
535
|
interface V2CopyEvidenceKeyFigure {
|
|
541
536
|
value: string;
|
|
@@ -548,8 +543,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
548
543
|
version_no: number;
|
|
549
544
|
answer: string;
|
|
550
545
|
confidence: number;
|
|
551
|
-
|
|
552
|
-
cites: number[];
|
|
546
|
+
provenance: V2CopyProvenanceRecord;
|
|
553
547
|
key_figures: V2CopyEvidenceKeyFigure[];
|
|
554
548
|
confidence_reason: string | null;
|
|
555
549
|
unverified: string[];
|
|
@@ -615,6 +609,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
615
609
|
interface V2CopyBehaviorSignoff {
|
|
616
610
|
policy_index: number;
|
|
617
611
|
rule_index: number;
|
|
612
|
+
pin_no: number;
|
|
618
613
|
slot: string;
|
|
619
614
|
status: "compliant" | "incompliant" | "rejected" | "not_applicable";
|
|
620
615
|
note: string | null;
|
|
@@ -738,17 +733,26 @@ declare module "@danxbot/card-kit@1" {
|
|
|
738
733
|
interface V2CopyProvenanceSource {
|
|
739
734
|
kind: ProvenanceSourceKind;
|
|
740
735
|
ref: string;
|
|
736
|
+
quote: string | null;
|
|
737
|
+
quote_verified: boolean;
|
|
741
738
|
comment_index: number | null;
|
|
742
739
|
problem_index: number | null;
|
|
743
740
|
evidence_index: number | null;
|
|
741
|
+
design_index: number | null;
|
|
744
742
|
card_linked: boolean;
|
|
745
743
|
author: V2CopyProvenanceParty | null;
|
|
746
744
|
at: string | null;
|
|
745
|
+
added_by: V2CopyProvenanceParty;
|
|
746
|
+
added_at: string;
|
|
747
|
+
}
|
|
748
|
+
interface V2CopyJustification {
|
|
749
|
+
card_type: string;
|
|
750
|
+
provenance: V2CopyProvenanceRecord;
|
|
747
751
|
}
|
|
748
752
|
interface V2CopyProvenanceRecord {
|
|
749
|
-
quote: string | null;
|
|
750
753
|
reasoning: string | null;
|
|
751
|
-
|
|
754
|
+
confidence: number | null;
|
|
755
|
+
sources: V2CopyProvenanceSource[];
|
|
752
756
|
recorded_by: V2CopyProvenanceParty;
|
|
753
757
|
recorded_at: string;
|
|
754
758
|
}
|
|
@@ -791,8 +795,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
791
795
|
comments: V2CopyComment[];
|
|
792
796
|
agent_notes: V2CopyAgentNote[];
|
|
793
797
|
decision_records: V2CopyDecisionRecord[];
|
|
798
|
+
justifications: V2CopyJustification[];
|
|
794
799
|
evidence_records: V2CopyEvidenceRecord[];
|
|
795
800
|
behavior_policies_pinned_at: string | null;
|
|
801
|
+
behavior_policies_pin_no: number | null;
|
|
796
802
|
behavior_policies: V2CopyBehaviorPolicy[];
|
|
797
803
|
behavior_signoffs: V2CopyBehaviorSignoff[];
|
|
798
804
|
created_tags: V2CopyCommentTag[];
|
|
@@ -912,6 +918,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
912
918
|
readonly name: string;
|
|
913
919
|
readonly user_id: number | null;
|
|
914
920
|
};
|
|
921
|
+
readonly pin_no: number;
|
|
915
922
|
readonly signed_at: string;
|
|
916
923
|
}
|
|
917
924
|
interface BehaviorSlotView {
|
|
@@ -923,6 +930,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
923
930
|
readonly confidence: number | null;
|
|
924
931
|
readonly review: "surfaced" | "auto_approved" | null;
|
|
925
932
|
readonly signer: BehaviorDecisionView["signer"] | null;
|
|
933
|
+
readonly pin_no: number | null;
|
|
926
934
|
readonly signed_at: string | null;
|
|
927
935
|
readonly problem: {
|
|
928
936
|
readonly ref: string;
|
|
@@ -937,6 +945,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
937
945
|
readonly rule_version: string;
|
|
938
946
|
readonly requires_reasoning: boolean;
|
|
939
947
|
readonly confidence_threshold: number;
|
|
948
|
+
readonly provenance: ProvenanceRecordV2 | null;
|
|
940
949
|
readonly slots: BehaviorSlotView[];
|
|
941
950
|
}
|
|
942
951
|
interface BehaviorPolicyView {
|
|
@@ -944,12 +953,15 @@ declare module "@danxbot/card-kit@1" {
|
|
|
944
953
|
readonly name: string;
|
|
945
954
|
readonly quality_gate_types: string[] | null;
|
|
946
955
|
readonly attached_at: string | null;
|
|
956
|
+
readonly stale: boolean;
|
|
947
957
|
readonly violation_instructions: string;
|
|
948
958
|
readonly confidence_threshold: number;
|
|
949
959
|
readonly rules: BehaviorRuleView[];
|
|
950
960
|
}
|
|
951
961
|
interface CardBehaviorPoliciesView {
|
|
952
962
|
readonly behavior_policies_pinned_at: string | null;
|
|
963
|
+
readonly behavior_policies_pin_no: number | null;
|
|
964
|
+
readonly stale: boolean;
|
|
953
965
|
readonly open_slot_count: number;
|
|
954
966
|
readonly policies: BehaviorPolicyView[];
|
|
955
967
|
}
|
|
@@ -997,6 +1009,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
997
1009
|
readonly total_count: number;
|
|
998
1010
|
readonly evaluated_count: number;
|
|
999
1011
|
readonly waiting_count: number;
|
|
1012
|
+
readonly pin_no: number | null;
|
|
1000
1013
|
readonly groups: BehaviorRuleGroupView[];
|
|
1001
1014
|
readonly escalations: BehaviorRuleEscalationView[];
|
|
1002
1015
|
}
|
|
@@ -1222,6 +1235,15 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1222
1235
|
readonly card_id: CardRef;
|
|
1223
1236
|
readonly card_title: string;
|
|
1224
1237
|
readonly card_status: string;
|
|
1238
|
+
readonly card_priority: number;
|
|
1239
|
+
readonly card_created_at: string;
|
|
1240
|
+
readonly card_updated_at: string;
|
|
1241
|
+
readonly parent: {
|
|
1242
|
+
readonly id: CardRef;
|
|
1243
|
+
readonly title: string;
|
|
1244
|
+
readonly created_at: string;
|
|
1245
|
+
readonly updated_at: string;
|
|
1246
|
+
} | null;
|
|
1225
1247
|
readonly problems: readonly {
|
|
1226
1248
|
readonly ref_num: number;
|
|
1227
1249
|
readonly type: IssueProblemType;
|
|
@@ -1592,7 +1614,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1592
1614
|
risk_reason?: undefined | null | string;
|
|
1593
1615
|
risk_set?: undefined | null | { at: string; by: AuthorV2; };
|
|
1594
1616
|
risk_raise_reason?: undefined | null | string;
|
|
1595
|
-
justification?: undefined | null |
|
|
1617
|
+
justification?: undefined | null | ProvenanceRecordV2;
|
|
1618
|
+
justification_history?: undefined | Array<ProvenanceRecordV2>;
|
|
1596
1619
|
bump_size?: undefined | "patch" | "minor" | "major";
|
|
1597
1620
|
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; };
|
|
1598
1621
|
problem_total?: undefined | number;
|
|
@@ -1699,7 +1722,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1699
1722
|
made_by_name: null | string;
|
|
1700
1723
|
made_by_author: AuthorV2;
|
|
1701
1724
|
made_by_is_writer: boolean;
|
|
1702
|
-
provenance:
|
|
1725
|
+
provenance: null | ProvenanceRecordV2;
|
|
1703
1726
|
comment_count: number;
|
|
1704
1727
|
unread_comment_count: number;
|
|
1705
1728
|
versions?: undefined | (Array<{
|
|
@@ -1721,7 +1744,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1721
1744
|
made_by_name: null | string;
|
|
1722
1745
|
made_by_author: AuthorV2;
|
|
1723
1746
|
made_by_is_writer: boolean;
|
|
1724
|
-
provenance:
|
|
1747
|
+
provenance: null | ProvenanceRecordV2;
|
|
1725
1748
|
version_no: number;
|
|
1726
1749
|
}>);
|
|
1727
1750
|
approvals?: undefined | (Array<{
|
|
@@ -1770,7 +1793,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1770
1793
|
subjects: Array<string>;
|
|
1771
1794
|
reasoning: string;
|
|
1772
1795
|
confidence: number;
|
|
1773
|
-
provenance:
|
|
1796
|
+
provenance: null | ProvenanceRecordV2;
|
|
1774
1797
|
author: string;
|
|
1775
1798
|
by: AuthorV2;
|
|
1776
1799
|
via_key: null | ViaKey;
|
|
@@ -1789,8 +1812,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1789
1812
|
version_no: number;
|
|
1790
1813
|
answer: string;
|
|
1791
1814
|
confidence: number;
|
|
1792
|
-
|
|
1793
|
-
cites: Array<string>;
|
|
1815
|
+
provenance: ProvenanceRecordV2;
|
|
1794
1816
|
key_figures: Array<EvidenceKeyFigure>;
|
|
1795
1817
|
confidence_reason: null | string;
|
|
1796
1818
|
unverified: Array<string>;
|
|
@@ -1828,7 +1850,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1828
1850
|
made_by_name: null | string;
|
|
1829
1851
|
made_by_author: AuthorV2;
|
|
1830
1852
|
made_by_is_writer: boolean;
|
|
1831
|
-
provenance:
|
|
1853
|
+
provenance: null | ProvenanceRecordV2;
|
|
1832
1854
|
version_no: number;
|
|
1833
1855
|
}>);
|
|
1834
1856
|
decision_record_approvals?: undefined | (Array<{
|
|
@@ -2014,7 +2036,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2014
2036
|
made_by_name: null | string;
|
|
2015
2037
|
made_by_author: AuthorV2;
|
|
2016
2038
|
made_by_is_writer: boolean;
|
|
2017
|
-
provenance:
|
|
2039
|
+
provenance: null | ProvenanceRecordV2;
|
|
2018
2040
|
version_no: number;
|
|
2019
2041
|
}>);
|
|
2020
2042
|
}>);
|
|
@@ -2036,7 +2058,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2036
2058
|
subjects: Array<string>;
|
|
2037
2059
|
reasoning: string;
|
|
2038
2060
|
confidence: number;
|
|
2039
|
-
provenance:
|
|
2061
|
+
provenance: null | ProvenanceRecordV2;
|
|
2040
2062
|
author: string;
|
|
2041
2063
|
by: AuthorV2;
|
|
2042
2064
|
via_key: null | ViaKey;
|
|
@@ -2055,8 +2077,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2055
2077
|
version_no: number;
|
|
2056
2078
|
answer: string;
|
|
2057
2079
|
confidence: number;
|
|
2058
|
-
|
|
2059
|
-
cites: Array<string>;
|
|
2080
|
+
provenance: ProvenanceRecordV2;
|
|
2060
2081
|
key_figures: Array<EvidenceKeyFigure>;
|
|
2061
2082
|
confidence_reason: null | string;
|
|
2062
2083
|
unverified: Array<string>;
|
|
@@ -2205,10 +2226,9 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2205
2226
|
risk_set_via_key_name: string | null;
|
|
2206
2227
|
risk_set_team_agent_id: number | null;
|
|
2207
2228
|
risk_raise_reason: string | null;
|
|
2208
|
-
justification_quote: string | null;
|
|
2209
|
-
justification_reasoning: string | null;
|
|
2210
2229
|
bump_size: BumpSize;
|
|
2211
2230
|
behavior_policies_pinned_at: string | null;
|
|
2231
|
+
behavior_policies_pin_no: number | null;
|
|
2212
2232
|
start_commit_sha: string | null;
|
|
2213
2233
|
start_commit_at: string | null;
|
|
2214
2234
|
start_commit_error: StartCommitError | null;
|
|
@@ -2411,18 +2431,24 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2411
2431
|
}
|
|
2412
2432
|
interface ProvenanceRecordV2 {
|
|
2413
2433
|
id: number;
|
|
2414
|
-
quote: string | null;
|
|
2415
2434
|
reasoning: string | null;
|
|
2416
|
-
|
|
2435
|
+
confidence: number | null;
|
|
2436
|
+
sources: ProvenanceSourceV2[];
|
|
2417
2437
|
recorded_by: AuthorV2;
|
|
2418
2438
|
recorded_at: string;
|
|
2419
2439
|
}
|
|
2420
2440
|
interface ProvenanceSourceV2 {
|
|
2421
2441
|
kind: ProvenanceSourceKind;
|
|
2422
2442
|
ref: string;
|
|
2423
|
-
|
|
2443
|
+
quote: string | null;
|
|
2444
|
+
quote_verified: boolean;
|
|
2445
|
+
label: string;
|
|
2446
|
+
url: string | null;
|
|
2447
|
+
external: boolean;
|
|
2424
2448
|
author: AuthorV2 | null;
|
|
2425
2449
|
at: string | null;
|
|
2450
|
+
added_by: AuthorV2;
|
|
2451
|
+
added_at: string;
|
|
2426
2452
|
}
|
|
2427
2453
|
|
|
2428
2454
|
function useIssueDetail(id: string): LiveQueryResult<IssueViewV2>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.71",
|
|
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",
|