@50arms/plugin-sdk 0.2.68 → 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 +20 -7
- 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;
|
|
@@ -989,8 +989,10 @@ declare module "@danxbot/card-kit@1" {
|
|
|
989
989
|
text: string;
|
|
990
990
|
};
|
|
991
991
|
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
992
|
-
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "
|
|
993
|
-
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;
|
|
994
996
|
interface ContextCategorySize {
|
|
995
997
|
key: ContextCategoryKey;
|
|
996
998
|
tokens: number;
|
|
@@ -1538,7 +1540,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1538
1540
|
content_compaction_history?: undefined | Array<CompactionRun>;
|
|
1539
1541
|
compaction_savings?: undefined | null | CompactionSavings;
|
|
1540
1542
|
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; }; };
|
|
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; };
|
|
1542
1544
|
comment_tags?: undefined | Array<CommentTagOption>;
|
|
1543
1545
|
has_retro?: undefined | false | true;
|
|
1544
1546
|
primary_attachment?: undefined | null | AttachmentPreviewV2;
|
|
@@ -1611,13 +1613,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1611
1613
|
version_no: number;
|
|
1612
1614
|
}>);
|
|
1613
1615
|
approvals?: undefined | (Array<{
|
|
1614
|
-
at: string;
|
|
1615
1616
|
action: "approve" | "unapprove";
|
|
1616
1617
|
id: number;
|
|
1617
1618
|
ref: string;
|
|
1618
1619
|
version_no: number;
|
|
1619
1620
|
by_user_id: null | number;
|
|
1620
1621
|
by_name: string;
|
|
1622
|
+
at: string;
|
|
1621
1623
|
}>);
|
|
1622
1624
|
}>);
|
|
1623
1625
|
evidence_records?: undefined | (Array<{
|
|
@@ -1718,13 +1720,13 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1718
1720
|
version_no: number;
|
|
1719
1721
|
}>);
|
|
1720
1722
|
decision_record_approvals?: undefined | (Array<{
|
|
1721
|
-
at: string;
|
|
1722
1723
|
action: "approve" | "unapprove";
|
|
1723
1724
|
id: number;
|
|
1724
1725
|
ref: string;
|
|
1725
1726
|
version_no: number;
|
|
1726
1727
|
by_user_id: null | number;
|
|
1727
1728
|
by_name: string;
|
|
1729
|
+
at: string;
|
|
1728
1730
|
}>);
|
|
1729
1731
|
work_marks?: undefined | (Array<{
|
|
1730
1732
|
id: number;
|
|
@@ -2189,7 +2191,18 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2189
2191
|
} | {
|
|
2190
2192
|
kind: "card";
|
|
2191
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;
|
|
2192
2202
|
};
|
|
2203
|
+
} | {
|
|
2204
|
+
kind: "exhausted";
|
|
2205
|
+
tried: number;
|
|
2193
2206
|
};
|
|
2194
2207
|
type CommentReachabilityV2 = {
|
|
2195
2208
|
state: "listening";
|
|
@@ -2212,7 +2225,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
2212
2225
|
kind: "agent";
|
|
2213
2226
|
by: AuthorV2;
|
|
2214
2227
|
} | Extract<CommentRecipientV2, {
|
|
2215
|
-
kind: "none";
|
|
2228
|
+
kind: "none" | "exhausted";
|
|
2216
2229
|
}>;
|
|
2217
2230
|
interface CommentReplyStateV2 {
|
|
2218
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",
|