@50arms/plugin-sdk 0.2.67 → 0.2.69
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 +22 -39
- 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;
|
|
@@ -342,36 +342,6 @@ declare module "@danxbot/card-kit@1" {
|
|
|
342
342
|
name: string;
|
|
343
343
|
reason: StatusReason | ProfileName | null;
|
|
344
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
|
-
}
|
|
375
345
|
type BrowserCheckStatus = "checked" | "not_checked" | "not_recorded";
|
|
376
346
|
|
|
377
347
|
type ListType = "archived" | "review" | "ready" | "in_progress" | "completed" | "cancelled";
|
|
@@ -1019,8 +989,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1019
989
|
text: string;
|
|
1020
990
|
};
|
|
1021
991
|
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
1022
|
-
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "
|
|
1023
|
-
type
|
|
992
|
+
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "open_cards";
|
|
993
|
+
type BehaviorPolicyContextCategoryKey = "rules";
|
|
994
|
+
type BehaviorGroupContextCategoryKey = "policies";
|
|
995
|
+
type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey | BehaviorPolicyContextCategoryKey | BehaviorGroupContextCategoryKey;
|
|
1024
996
|
interface ContextCategorySize {
|
|
1025
997
|
key: ContextCategoryKey;
|
|
1026
998
|
tokens: number;
|
|
@@ -1214,6 +1186,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1214
1186
|
card: string;
|
|
1215
1187
|
state: PartnerState;
|
|
1216
1188
|
shas: string[];
|
|
1189
|
+
landed_sha: string | null;
|
|
1217
1190
|
}
|
|
1218
1191
|
type PartnerState = "live" | "cancelled" | "deleted";
|
|
1219
1192
|
|
|
@@ -1567,7 +1540,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1567
1540
|
content_compaction_history?: undefined | Array<CompactionRun>;
|
|
1568
1541
|
compaction_savings?: undefined | null | CompactionSavings;
|
|
1569
1542
|
agent_notes_count?: undefined | number;
|
|
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; }; };
|
|
1543
|
+
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; };
|
|
1571
1544
|
comment_tags?: undefined | Array<CommentTagOption>;
|
|
1572
1545
|
has_retro?: undefined | false | true;
|
|
1573
1546
|
primary_attachment?: undefined | null | AttachmentPreviewV2;
|
|
@@ -1640,13 +1613,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1640
1613
|
version_no: number;
|
|
1641
1614
|
}>);
|
|
1642
1615
|
approvals?: undefined | (Array<{
|
|
1643
|
-
at: string;
|
|
1644
1616
|
action: "approve" | "unapprove";
|
|
1645
1617
|
id: number;
|
|
1646
1618
|
ref: string;
|
|
1647
1619
|
version_no: number;
|
|
1648
1620
|
by_user_id: null | number;
|
|
1649
1621
|
by_name: string;
|
|
1622
|
+
at: string;
|
|
1650
1623
|
}>);
|
|
1651
1624
|
}>);
|
|
1652
1625
|
evidence_records?: undefined | (Array<{
|
|
@@ -1747,13 +1720,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1747
1720
|
version_no: number;
|
|
1748
1721
|
}>);
|
|
1749
1722
|
decision_record_approvals?: undefined | (Array<{
|
|
1750
|
-
at: string;
|
|
1751
1723
|
action: "approve" | "unapprove";
|
|
1752
1724
|
id: number;
|
|
1753
1725
|
ref: string;
|
|
1754
1726
|
version_no: number;
|
|
1755
1727
|
by_user_id: null | number;
|
|
1756
1728
|
by_name: string;
|
|
1729
|
+
at: string;
|
|
1757
1730
|
}>);
|
|
1758
1731
|
work_marks?: undefined | (Array<{
|
|
1759
1732
|
id: number;
|
|
@@ -1897,14 +1870,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1897
1870
|
issue_id: string;
|
|
1898
1871
|
feedback_consent: boolean;
|
|
1899
1872
|
choice_locked: boolean;
|
|
1900
|
-
docs_review: null | DocsReviewView;
|
|
1901
1873
|
docs_land: boolean;
|
|
1902
1874
|
needs_person: boolean;
|
|
1903
1875
|
statement: string;
|
|
1904
1876
|
context: null | string;
|
|
1905
1877
|
design_element: null | string;
|
|
1906
1878
|
solutions: Array<SolutionViewV2>;
|
|
1907
|
-
raised_by
|
|
1879
|
+
raised_by: null | ProblemRaisedBy;
|
|
1908
1880
|
changed_fields?: undefined | Array<string>;
|
|
1909
1881
|
decision_review?: undefined | (Array<{
|
|
1910
1882
|
problem_ref_num: number;
|
|
@@ -2219,7 +2191,18 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2219
2191
|
} | {
|
|
2220
2192
|
kind: "card";
|
|
2221
2193
|
id: string;
|
|
2194
|
+
} | {
|
|
2195
|
+
kind: "behavior_policy";
|
|
2196
|
+
ref: string;
|
|
2197
|
+
name: string;
|
|
2198
|
+
} | {
|
|
2199
|
+
kind: "behavior_policy_group";
|
|
2200
|
+
ref: string;
|
|
2201
|
+
name: string;
|
|
2222
2202
|
};
|
|
2203
|
+
} | {
|
|
2204
|
+
kind: "exhausted";
|
|
2205
|
+
tried: number;
|
|
2223
2206
|
};
|
|
2224
2207
|
type CommentReachabilityV2 = {
|
|
2225
2208
|
state: "listening";
|
|
@@ -2242,7 +2225,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2242
2225
|
kind: "agent";
|
|
2243
2226
|
by: AuthorV2;
|
|
2244
2227
|
} | Extract<CommentRecipientV2, {
|
|
2245
|
-
kind: "none";
|
|
2228
|
+
kind: "none" | "exhausted";
|
|
2246
2229
|
}>;
|
|
2247
2230
|
interface CommentReplyStateV2 {
|
|
2248
2231
|
state: CommentReplyStateName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.69",
|
|
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",
|