@50arms/plugin-sdk 0.2.60 → 0.2.61
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 +40 -2
- package/dist/publish.d.ts +5 -0
- package/dist/vite.d.ts +5 -0
- package/dist/vite.js +2 -0
- package/dist/widgets.d.ts +5 -0
- package/package.json +2 -2
package/dist/card-kit.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
206
206
|
answers_decision: V2CopyDecisionRef | null;
|
|
207
207
|
tags: V2CopyCommentTag[];
|
|
208
208
|
sign_off: V2CopySignOff | null;
|
|
209
|
+
quoted_request: V2CopyProvenanceRecord | null;
|
|
209
210
|
team_agent: string | null;
|
|
210
211
|
author_email: string | null;
|
|
211
212
|
created_at: string;
|
|
@@ -292,6 +293,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
292
293
|
interface V2CopyAgentNote {
|
|
293
294
|
author: string;
|
|
294
295
|
text: string;
|
|
296
|
+
reduced_text: string | null;
|
|
295
297
|
team_agent: string | null;
|
|
296
298
|
metadata: Record<string, unknown> | null;
|
|
297
299
|
ordinal: number;
|
|
@@ -590,6 +592,39 @@ declare module "@danxbot/card-kit@1" {
|
|
|
590
592
|
text: string;
|
|
591
593
|
};
|
|
592
594
|
|
|
595
|
+
interface CompactionJobWho {
|
|
596
|
+
name: string;
|
|
597
|
+
avatar_url: string | null;
|
|
598
|
+
profile: string | null;
|
|
599
|
+
}
|
|
600
|
+
type CompactionJobWhere = {
|
|
601
|
+
kind: "worker";
|
|
602
|
+
worker: string;
|
|
603
|
+
} | {
|
|
604
|
+
kind: "session";
|
|
605
|
+
session: string;
|
|
606
|
+
};
|
|
607
|
+
interface CompactionFigures {
|
|
608
|
+
tool_calls: number;
|
|
609
|
+
turns: number;
|
|
610
|
+
spend_usd: number;
|
|
611
|
+
}
|
|
612
|
+
interface CompactionJobProgress {
|
|
613
|
+
dispatch_id: string;
|
|
614
|
+
baseline: CompactionFigures;
|
|
615
|
+
now: CompactionFigures;
|
|
616
|
+
}
|
|
617
|
+
interface CompactionJob {
|
|
618
|
+
who: CompactionJobWho;
|
|
619
|
+
where: CompactionJobWhere;
|
|
620
|
+
started_at: string;
|
|
621
|
+
progress: CompactionJobProgress | null;
|
|
622
|
+
}
|
|
623
|
+
interface CompactionSizes {
|
|
624
|
+
before_tokens: number | null;
|
|
625
|
+
after_tokens: number | null;
|
|
626
|
+
}
|
|
627
|
+
|
|
593
628
|
type PreGateHold = {
|
|
594
629
|
kind: "awaiting_person";
|
|
595
630
|
} | {
|
|
@@ -698,7 +733,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
698
733
|
orchestrator_profile: string | null;
|
|
699
734
|
}
|
|
700
735
|
type CardContextCategoryKey = "comments" | "checklists" | "content" | "agent_notes" | "problems" | "decisions" | "designs";
|
|
701
|
-
type PlanContextCategoryKey = "architecture" | "comments" | "records" | "notes" | "open_cards";
|
|
736
|
+
type PlanContextCategoryKey = "architecture" | "comments" | "heading" | "records" | "notes" | "open_cards";
|
|
702
737
|
type ContextCategoryKey = CardContextCategoryKey | PlanContextCategoryKey;
|
|
703
738
|
interface ContextCategorySize {
|
|
704
739
|
key: ContextCategoryKey;
|
|
@@ -848,6 +883,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
848
883
|
metadata?: unknown;
|
|
849
884
|
answers_decision_id?: undefined | null | number;
|
|
850
885
|
sign_off?: undefined | null | CommentSignOffViewV2;
|
|
886
|
+
quoted_request?: undefined | null | ProvenanceRecordV2;
|
|
851
887
|
tags: Array<{ kind: "problem"; ref: number; } | { kind: "design"; ref: number; } | { kind: "decision"; ref: number; }>;
|
|
852
888
|
resource_tags: Array<CommentResourceTag>;
|
|
853
889
|
parent_comment_id: null | number;
|
|
@@ -880,6 +916,8 @@ declare module "@danxbot/card-kit@1" {
|
|
|
880
916
|
timestamp: string;
|
|
881
917
|
updated_at: string;
|
|
882
918
|
text: string;
|
|
919
|
+
reduced?: undefined | true;
|
|
920
|
+
reduced_text?: undefined | null | string;
|
|
883
921
|
metadata: unknown;
|
|
884
922
|
}>);
|
|
885
923
|
designs?: undefined | (Array<{
|
|
@@ -1013,7 +1051,7 @@ declare module "@danxbot/card-kit@1" {
|
|
|
1013
1051
|
unread_comments_count?: undefined | number;
|
|
1014
1052
|
unread_decision_comment_counts?: undefined | Record<string, number>;
|
|
1015
1053
|
context_size?: undefined | ContextSize;
|
|
1016
|
-
content_compaction?: undefined | null | { requested_at: string; } & { status: "waiting" | "working"; ended_at: null; failure_reason: null; } | { requested_at: string; } & { status: "done"; ended_at: string; failure_reason: null; } | { requested_at: string; } & { status: "failed"; ended_at: string; failure_reason: NotificationText; };
|
|
1054
|
+
content_compaction?: undefined | null | { id: number; requested_at: string; } & { status: "waiting"; ended_at: null; failure_reason: null; } | { id: number; requested_at: string; } & { status: "working"; ended_at: null; failure_reason: null; job: CompactionJob; } | { id: number; requested_at: string; } & { status: "done"; ended_at: string; failure_reason: null; sizes: CompactionSizes; } | { id: number; requested_at: string; } & { status: "failed"; ended_at: string; failure_reason: NotificationText; };
|
|
1017
1055
|
agent_notes_count?: undefined | number;
|
|
1018
1056
|
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; }; };
|
|
1019
1057
|
comment_tags?: undefined | Array<CommentTagOption>;
|
package/dist/publish.d.ts
CHANGED
|
@@ -37,6 +37,11 @@ type ValueField = {
|
|
|
37
37
|
readonly enum?: readonly string[];
|
|
38
38
|
/** The words for each option of `enum`, by option id; present exactly when `enum` is, naming every option and no other. The stored value is the id. */
|
|
39
39
|
readonly optionLabels?: Readonly<Record<string, FieldText>>;
|
|
40
|
+
/**
|
|
41
|
+
* DX-7112: the value is the id of one of the team's things, chosen from them in the Configure form instead of typed (a machine's id). The server checks the value as any text; an empty default means none is chosen yet.
|
|
42
|
+
* Not with `enum`: a field offers either its own fixed options or a team's things.
|
|
43
|
+
*/
|
|
44
|
+
readonly source?: "machine";
|
|
40
45
|
} | {
|
|
41
46
|
readonly type: "number";
|
|
42
47
|
readonly label: FieldText;
|
package/dist/vite.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ type ValueField = {
|
|
|
29
29
|
readonly enum?: readonly string[];
|
|
30
30
|
/** The words for each option of `enum`, by option id; present exactly when `enum` is, naming every option and no other. The stored value is the id. */
|
|
31
31
|
readonly optionLabels?: Readonly<Record<string, FieldText>>;
|
|
32
|
+
/**
|
|
33
|
+
* DX-7112: the value is the id of one of the team's things, chosen from them in the Configure form instead of typed (a machine's id). The server checks the value as any text; an empty default means none is chosen yet.
|
|
34
|
+
* Not with `enum`: a field offers either its own fixed options or a team's things.
|
|
35
|
+
*/
|
|
36
|
+
readonly source?: "machine";
|
|
32
37
|
} | {
|
|
33
38
|
readonly type: "number";
|
|
34
39
|
readonly label: FieldText;
|
package/dist/vite.js
CHANGED
|
@@ -150,6 +150,8 @@ function labelIssues(schema) {
|
|
|
150
150
|
for (const [name, field] of Object.entries(schema)) {
|
|
151
151
|
if (blank(field.label)) issues.push(`field "${name}" has an empty label`);
|
|
152
152
|
if (field.type !== "string") continue;
|
|
153
|
+
if (field.source !== void 0 && field.enum !== void 0)
|
|
154
|
+
issues.push(`field "${name}" offers options and a source of them`);
|
|
153
155
|
const options = field.enum ?? [];
|
|
154
156
|
const labelled = Object.keys(field.optionLabels ?? {});
|
|
155
157
|
if (field.enum !== void 0 && field.optionLabels === void 0)
|
package/dist/widgets.d.ts
CHANGED
|
@@ -34,6 +34,11 @@ type ValueField = {
|
|
|
34
34
|
readonly enum?: readonly string[];
|
|
35
35
|
/** The words for each option of `enum`, by option id; present exactly when `enum` is, naming every option and no other. The stored value is the id. */
|
|
36
36
|
readonly optionLabels?: Readonly<Record<string, FieldText>>;
|
|
37
|
+
/**
|
|
38
|
+
* DX-7112: the value is the id of one of the team's things, chosen from them in the Configure form instead of typed (a machine's id). The server checks the value as any text; an empty default means none is chosen yet.
|
|
39
|
+
* Not with `enum`: a field offers either its own fixed options or a team's things.
|
|
40
|
+
*/
|
|
41
|
+
readonly source?: "machine";
|
|
37
42
|
} | {
|
|
38
43
|
readonly type: "number";
|
|
39
44
|
readonly label: FieldText;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@50arms/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.61",
|
|
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",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"test": "vitest run"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@50arms/ui": "36.
|
|
53
|
+
"@50arms/ui": "36.7.0",
|
|
54
54
|
"@types/node": "^22.0.0",
|
|
55
55
|
"@types/react": "^19.2.2",
|
|
56
56
|
"esbuild": "^0.25.0",
|