@50arms/plugin-sdk 0.2.69 → 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 +112 -2
- package/package.json +1 -1
package/dist/card-kit.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1101,6 +1125,93 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1101
1125
|
name: string | null;
|
|
1102
1126
|
card_id: CardRef | null;
|
|
1103
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
|
+
}
|
|
1104
1215
|
interface RelationPageView {
|
|
1105
1216
|
readonly limit: number;
|
|
1106
1217
|
readonly total: number;
|
|
@@ -1487,6 +1598,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1487
1598
|
problem_total?: undefined | number;
|
|
1488
1599
|
evidence_record_total?: undefined | number;
|
|
1489
1600
|
behavior_policies?: undefined | CardBehaviorPoliciesView;
|
|
1601
|
+
behavior_signoffs?: undefined | CardBehaviorSignoffs;
|
|
1490
1602
|
decision_record_total?: undefined | number;
|
|
1491
1603
|
decision_record_page?: undefined | DecisionRecordPage;
|
|
1492
1604
|
decision_record_approved_total?: undefined | number;
|
|
@@ -2315,8 +2427,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2315
2427
|
|
|
2316
2428
|
function useIssueDetail(id: string): LiveQueryResult<IssueViewV2>;
|
|
2317
2429
|
|
|
2318
|
-
type TransitionAction = "ready" | "unready" | "pickup" | "rollback_pickup" | "gate_release" | "gate_repin" | "claim_repin" | "landing_hold" | "complete" | "cancel" | "block" | "unblock" | "archive" | "snooze" | "coerce" | "reopen";
|
|
2319
|
-
|
|
2320
2430
|
interface ChildProgress {
|
|
2321
2431
|
done: number;
|
|
2322
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",
|