@50arms/plugin-sdk 0.2.68 → 0.2.70
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 +132 -9
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
106
106
|
type PacingLimit = "five_hour" | "weekly" | "spend";
|
|
107
107
|
type ProvenanceSourceKind = "card" | "comment" | "session_thread" | "problem" | "url" | "evidence";
|
|
108
108
|
type ProvenancePartyKind = "agent" | "person";
|
|
109
|
-
type ResourceType = "design" | "plan" | "problem" | "evidence" | "issue" | "plan_record" | "plan_section" | "decision";
|
|
109
|
+
type ResourceType = "design" | "plan" | "problem" | "evidence" | "issue" | "plan_record" | "plan_section" | "decision" | "behavior_policy" | "behavior_policy_group";
|
|
110
110
|
interface ResourceRef {
|
|
111
111
|
type: ResourceType;
|
|
112
112
|
id: string;
|
|
@@ -591,6 +591,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
591
591
|
live_position: number;
|
|
592
592
|
rule_version: string;
|
|
593
593
|
position: number;
|
|
594
|
+
requires_reasoning: boolean;
|
|
595
|
+
confidence_threshold: number | null;
|
|
594
596
|
}
|
|
595
597
|
interface V2CopyBehaviorPolicy {
|
|
596
598
|
live_name: string;
|
|
@@ -598,6 +600,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
598
600
|
position: number;
|
|
599
601
|
quality_gate_types: string[] | null;
|
|
600
602
|
attached_at: string;
|
|
603
|
+
violation_instructions: string;
|
|
604
|
+
confidence_threshold: number;
|
|
601
605
|
rules: V2CopyBehaviorRule[];
|
|
602
606
|
}
|
|
603
607
|
interface V2CopyBehaviorReview {
|
|
@@ -931,6 +935,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
931
935
|
readonly ref: string;
|
|
932
936
|
readonly text: string;
|
|
933
937
|
readonly rule_version: string;
|
|
938
|
+
readonly requires_reasoning: boolean;
|
|
939
|
+
readonly confidence_threshold: number;
|
|
934
940
|
readonly slots: BehaviorSlotView[];
|
|
935
941
|
}
|
|
936
942
|
interface BehaviorPolicyView {
|
|
@@ -938,6 +944,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
938
944
|
readonly name: string;
|
|
939
945
|
readonly quality_gate_types: string[] | null;
|
|
940
946
|
readonly attached_at: string | null;
|
|
947
|
+
readonly violation_instructions: string;
|
|
948
|
+
readonly confidence_threshold: number;
|
|
941
949
|
readonly rules: BehaviorRuleView[];
|
|
942
950
|
}
|
|
943
951
|
interface CardBehaviorPoliciesView {
|
|
@@ -970,11 +978,27 @@ declare module "@danxbot/card-kit@1" {
|
|
|
970
978
|
readonly evaluated_count: number;
|
|
971
979
|
readonly rows: BehaviorRuleRowView[];
|
|
972
980
|
}
|
|
981
|
+
interface BehaviorRuleEscalationView {
|
|
982
|
+
readonly rule_id: number;
|
|
983
|
+
readonly rule_ref: string;
|
|
984
|
+
readonly rule_text: string;
|
|
985
|
+
readonly policy_ref: string;
|
|
986
|
+
readonly policy_name: string;
|
|
987
|
+
readonly slot: string;
|
|
988
|
+
readonly gate_on_card: boolean;
|
|
989
|
+
readonly confidence: number;
|
|
990
|
+
readonly why: string;
|
|
991
|
+
readonly escalated_by: string;
|
|
992
|
+
readonly escalated_at: string;
|
|
993
|
+
readonly state: "waiting_on_person" | "settled";
|
|
994
|
+
readonly decision: BehaviorDecisionView | null;
|
|
995
|
+
}
|
|
973
996
|
interface BehaviorRulesProblemView {
|
|
974
997
|
readonly total_count: number;
|
|
975
998
|
readonly evaluated_count: number;
|
|
976
999
|
readonly waiting_count: number;
|
|
977
1000
|
readonly groups: BehaviorRuleGroupView[];
|
|
1001
|
+
readonly escalations: BehaviorRuleEscalationView[];
|
|
978
1002
|
}
|
|
979
1003
|
interface DesignSourceFile {
|
|
980
1004
|
path: string;
|
|
@@ -989,8 +1013,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
989
1013
|
text: string;
|
|
990
1014
|
};
|
|
991
1015
|
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
992
|
-
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "
|
|
993
|
-
type
|
|
1016
|
+
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "open_cards";
|
|
1017
|
+
type BehaviorPolicyContextCategoryKey = "rules";
|
|
1018
|
+
type BehaviorGroupContextCategoryKey = "policies";
|
|
1019
|
+
type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey | BehaviorPolicyContextCategoryKey | BehaviorGroupContextCategoryKey;
|
|
994
1020
|
interface ContextCategorySize {
|
|
995
1021
|
key: ContextCategoryKey;
|
|
996
1022
|
tokens: number;
|
|
@@ -1099,6 +1125,93 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1099
1125
|
name: string | null;
|
|
1100
1126
|
card_id: CardRef | null;
|
|
1101
1127
|
}
|
|
1128
|
+
|
|
1129
|
+
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
1130
|
+
|
|
1131
|
+
type MoveKind = "create" | "archive" | "snooze" | "delete" | "retype" | "edit" | "other";
|
|
1132
|
+
|
|
1133
|
+
type SignoffScope = {
|
|
1134
|
+
type: "base";
|
|
1135
|
+
} | {
|
|
1136
|
+
type: "filtered";
|
|
1137
|
+
board: string | null;
|
|
1138
|
+
card_type: string | null;
|
|
1139
|
+
card: string | null;
|
|
1140
|
+
agent_profile: string | null;
|
|
1141
|
+
runtime: string | null;
|
|
1142
|
+
};
|
|
1143
|
+
interface SignedRule {
|
|
1144
|
+
ref: string;
|
|
1145
|
+
version: string;
|
|
1146
|
+
text: string;
|
|
1147
|
+
status: "compliant" | "rejected" | "not_applicable";
|
|
1148
|
+
confidence: number;
|
|
1149
|
+
threshold: number;
|
|
1150
|
+
note: string | null;
|
|
1151
|
+
}
|
|
1152
|
+
interface SignedPolicy {
|
|
1153
|
+
policy: string;
|
|
1154
|
+
name: string;
|
|
1155
|
+
scope: SignoffScope;
|
|
1156
|
+
instructions: string | null;
|
|
1157
|
+
rules: SignedRule[];
|
|
1158
|
+
}
|
|
1159
|
+
interface SignedMove {
|
|
1160
|
+
type: "signed";
|
|
1161
|
+
id: string;
|
|
1162
|
+
at: string;
|
|
1163
|
+
move: MoveKind;
|
|
1164
|
+
route: string;
|
|
1165
|
+
signer: {
|
|
1166
|
+
name: string;
|
|
1167
|
+
via: "session" | "dispatch";
|
|
1168
|
+
};
|
|
1169
|
+
policies: SignedPolicy[];
|
|
1170
|
+
}
|
|
1171
|
+
type SkippedItemView = {
|
|
1172
|
+
type: "write_rule";
|
|
1173
|
+
rule: {
|
|
1174
|
+
ref: string;
|
|
1175
|
+
version: string;
|
|
1176
|
+
text: string;
|
|
1177
|
+
threshold: number;
|
|
1178
|
+
};
|
|
1179
|
+
policies: {
|
|
1180
|
+
policy: string;
|
|
1181
|
+
name: string;
|
|
1182
|
+
scope: SignoffScope;
|
|
1183
|
+
}[];
|
|
1184
|
+
} | {
|
|
1185
|
+
type: "card_slot";
|
|
1186
|
+
rule: {
|
|
1187
|
+
ref: string;
|
|
1188
|
+
version: string;
|
|
1189
|
+
text: string;
|
|
1190
|
+
};
|
|
1191
|
+
policy: string;
|
|
1192
|
+
slot: string;
|
|
1193
|
+
status: "unverified" | "incompliant";
|
|
1194
|
+
} | {
|
|
1195
|
+
type: "open_problem";
|
|
1196
|
+
problem: string;
|
|
1197
|
+
statement: string;
|
|
1198
|
+
};
|
|
1199
|
+
interface BypassMove {
|
|
1200
|
+
type: "bypass";
|
|
1201
|
+
id: string;
|
|
1202
|
+
at: string;
|
|
1203
|
+
move: MoveKind;
|
|
1204
|
+
operation: string;
|
|
1205
|
+
kind: "write" | "completion" | "verdict";
|
|
1206
|
+
person: {
|
|
1207
|
+
name: string;
|
|
1208
|
+
};
|
|
1209
|
+
skipped: SkippedItemView[];
|
|
1210
|
+
}
|
|
1211
|
+
type SignoffMove = SignedMove | BypassMove;
|
|
1212
|
+
interface CardBehaviorSignoffs {
|
|
1213
|
+
moves: SignoffMove[];
|
|
1214
|
+
}
|
|
1102
1215
|
interface RelationPageView {
|
|
1103
1216
|
readonly limit: number;
|
|
1104
1217
|
readonly total: number;
|
|
@@ -1485,6 +1598,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1485
1598
|
problem_total?: undefined | number;
|
|
1486
1599
|
evidence_record_total?: undefined | number;
|
|
1487
1600
|
behavior_policies?: undefined | CardBehaviorPoliciesView;
|
|
1601
|
+
behavior_signoffs?: undefined | CardBehaviorSignoffs;
|
|
1488
1602
|
decision_record_total?: undefined | number;
|
|
1489
1603
|
decision_record_page?: undefined | DecisionRecordPage;
|
|
1490
1604
|
decision_record_approved_total?: undefined | number;
|
|
@@ -1538,7 +1652,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1538
1652
|
content_compaction_history?: undefined | Array<CompactionRun>;
|
|
1539
1653
|
compaction_savings?: undefined | null | CompactionSavings;
|
|
1540
1654
|
agent_notes_count?: undefined | number;
|
|
1541
|
-
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; }; };
|
|
1655
|
+
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; } | { kind: "behavior_policy"; ref: string; name: string; } | { kind: "behavior_policy_group"; ref: string; name: string; }; } | { kind: "exhausted"; tried: number; };
|
|
1542
1656
|
comment_tags?: undefined | Array<CommentTagOption>;
|
|
1543
1657
|
has_retro?: undefined | false | true;
|
|
1544
1658
|
primary_attachment?: undefined | null | AttachmentPreviewV2;
|
|
@@ -1611,13 +1725,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1611
1725
|
version_no: number;
|
|
1612
1726
|
}>);
|
|
1613
1727
|
approvals?: undefined | (Array<{
|
|
1614
|
-
at: string;
|
|
1615
1728
|
action: "approve" | "unapprove";
|
|
1616
1729
|
id: number;
|
|
1617
1730
|
ref: string;
|
|
1618
1731
|
version_no: number;
|
|
1619
1732
|
by_user_id: null | number;
|
|
1620
1733
|
by_name: string;
|
|
1734
|
+
at: string;
|
|
1621
1735
|
}>);
|
|
1622
1736
|
}>);
|
|
1623
1737
|
evidence_records?: undefined | (Array<{
|
|
@@ -1718,13 +1832,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1718
1832
|
version_no: number;
|
|
1719
1833
|
}>);
|
|
1720
1834
|
decision_record_approvals?: undefined | (Array<{
|
|
1721
|
-
at: string;
|
|
1722
1835
|
action: "approve" | "unapprove";
|
|
1723
1836
|
id: number;
|
|
1724
1837
|
ref: string;
|
|
1725
1838
|
version_no: number;
|
|
1726
1839
|
by_user_id: null | number;
|
|
1727
1840
|
by_name: string;
|
|
1841
|
+
at: string;
|
|
1728
1842
|
}>);
|
|
1729
1843
|
work_marks?: undefined | (Array<{
|
|
1730
1844
|
id: number;
|
|
@@ -2189,7 +2303,18 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2189
2303
|
} | {
|
|
2190
2304
|
kind: "card";
|
|
2191
2305
|
id: string;
|
|
2306
|
+
} | {
|
|
2307
|
+
kind: "behavior_policy";
|
|
2308
|
+
ref: string;
|
|
2309
|
+
name: string;
|
|
2310
|
+
} | {
|
|
2311
|
+
kind: "behavior_policy_group";
|
|
2312
|
+
ref: string;
|
|
2313
|
+
name: string;
|
|
2192
2314
|
};
|
|
2315
|
+
} | {
|
|
2316
|
+
kind: "exhausted";
|
|
2317
|
+
tried: number;
|
|
2193
2318
|
};
|
|
2194
2319
|
type CommentReachabilityV2 = {
|
|
2195
2320
|
state: "listening";
|
|
@@ -2212,7 +2337,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2212
2337
|
kind: "agent";
|
|
2213
2338
|
by: AuthorV2;
|
|
2214
2339
|
} | Extract<CommentRecipientV2, {
|
|
2215
|
-
kind: "none";
|
|
2340
|
+
kind: "none" | "exhausted";
|
|
2216
2341
|
}>;
|
|
2217
2342
|
interface CommentReplyStateV2 {
|
|
2218
2343
|
state: CommentReplyStateName;
|
|
@@ -2302,8 +2427,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2302
2427
|
|
|
2303
2428
|
function useIssueDetail(id: string): LiveQueryResult<IssueViewV2>;
|
|
2304
2429
|
|
|
2305
|
-
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
2306
|
-
|
|
2307
2430
|
interface ChildProgress {
|
|
2308
2431
|
done: number;
|
|
2309
2432
|
total: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.70",
|
|
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",
|