@mattstack/rt-client 0.6.0 → 0.6.1
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/commands.d.ts +7 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/commands.ts +7 -1
- package/src/settings/registry-defs.ts +7 -0
package/dist/commands.d.ts
CHANGED
|
@@ -10,17 +10,24 @@ export type Discussion = MRDetail["discussions"][number];
|
|
|
10
10
|
export interface DemandDecl {
|
|
11
11
|
client: string;
|
|
12
12
|
authors: string[];
|
|
13
|
+
/** Codeowner sections this client needs covered (spec: second demand axis). */
|
|
14
|
+
codeownerSections?: string[];
|
|
13
15
|
declaredAt: number;
|
|
14
16
|
}
|
|
15
17
|
export interface ProjectMRsScope {
|
|
16
18
|
authors: string[];
|
|
17
19
|
windowDays: number;
|
|
18
20
|
uncovered: string[];
|
|
21
|
+
/** Effective synced section union; absent from a pre-sections daemon. */
|
|
22
|
+
sections?: string[];
|
|
23
|
+
/** Demanded sections not yet swept for this client. */
|
|
24
|
+
uncoveredSections?: string[];
|
|
19
25
|
}
|
|
20
26
|
export interface ProjectMRsData {
|
|
21
27
|
mrs: Record<string, {
|
|
22
28
|
pr: PullRequest;
|
|
23
29
|
fetchedAt: number;
|
|
30
|
+
codeownerSections?: string[];
|
|
24
31
|
}>;
|
|
25
32
|
listSyncedAt: number;
|
|
26
33
|
source: "poll" | "events" | "mutation";
|
package/dist/index.js
CHANGED
|
@@ -703,6 +703,13 @@ var REGISTRY = [
|
|
|
703
703
|
merge: "replace",
|
|
704
704
|
description: "Doctor skill the board's own API-tier triage sweep runs on your MRs; deliberately never resolved through a repo's skills.jsonc manifest. A sibling flat key of board.triage, not a field inside it — the board reader assembles the two independently."
|
|
705
705
|
},
|
|
706
|
+
{
|
|
707
|
+
key: "board.tabs",
|
|
708
|
+
type: "array",
|
|
709
|
+
scopes: ["team"],
|
|
710
|
+
merge: "replace",
|
|
711
|
+
description: "Board tab definitions ({id, label, source, slackChannel?, reviewSkill?}); source.kind 'authors' is the classic roster board, 'codeowners' lists MRs blocked on an unapproved CODEOWNERS section. Absent = one implicit authors tab (fallback lives in the board reader, never here)."
|
|
712
|
+
},
|
|
706
713
|
{
|
|
707
714
|
key: "board.staleAfterDays",
|
|
708
715
|
type: "number",
|
package/package.json
CHANGED
package/src/commands.ts
CHANGED
|
@@ -12,6 +12,8 @@ export type Discussion = MRDetail["discussions"][number];
|
|
|
12
12
|
export interface DemandDecl {
|
|
13
13
|
client: string;
|
|
14
14
|
authors: string[];
|
|
15
|
+
/** Codeowner sections this client needs covered (spec: second demand axis). */
|
|
16
|
+
codeownerSections?: string[];
|
|
15
17
|
declaredAt: number;
|
|
16
18
|
}
|
|
17
19
|
|
|
@@ -19,10 +21,14 @@ export interface ProjectMRsScope {
|
|
|
19
21
|
authors: string[];
|
|
20
22
|
windowDays: number;
|
|
21
23
|
uncovered: string[];
|
|
24
|
+
/** Effective synced section union; absent from a pre-sections daemon. */
|
|
25
|
+
sections?: string[];
|
|
26
|
+
/** Demanded sections not yet swept for this client. */
|
|
27
|
+
uncoveredSections?: string[];
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
export interface ProjectMRsData {
|
|
25
|
-
mrs: Record<string, { pr: PullRequest; fetchedAt: number }>;
|
|
31
|
+
mrs: Record<string, { pr: PullRequest; fetchedAt: number; codeownerSections?: string[] }>;
|
|
26
32
|
listSyncedAt: number;
|
|
27
33
|
source: "poll" | "events" | "mutation";
|
|
28
34
|
syncedAt: number;
|
|
@@ -352,6 +352,13 @@ export const REGISTRY: readonly SettingDef[] = [
|
|
|
352
352
|
merge: "replace",
|
|
353
353
|
description: "Doctor skill the board's own API-tier triage sweep runs on your MRs; deliberately never resolved through a repo's skills.jsonc manifest. A sibling flat key of board.triage, not a field inside it — the board reader assembles the two independently.",
|
|
354
354
|
},
|
|
355
|
+
{
|
|
356
|
+
key: "board.tabs",
|
|
357
|
+
type: "array",
|
|
358
|
+
scopes: ["team"],
|
|
359
|
+
merge: "replace",
|
|
360
|
+
description: "Board tab definitions ({id, label, source, slackChannel?, reviewSkill?}); source.kind 'authors' is the classic roster board, 'codeowners' lists MRs blocked on an unapproved CODEOWNERS section. Absent = one implicit authors tab (fallback lives in the board reader, never here).",
|
|
361
|
+
},
|
|
355
362
|
|
|
356
363
|
// --- board (user) ----------------------------------------------------------
|
|
357
364
|
{
|