@lensmcp/protocol-types 1.25.73 → 1.25.75
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/index.d.ts +2 -1
- package/index.js +1 -1
- package/lib/changes.d.ts +136 -0
- package/lib/changes.js +1 -0
- package/lib/goal-retro.d.ts +7 -2
- package/lib/team-delivery.d.ts +43 -0
- package/lib/team-roadmap.d.ts +4 -4
- package/lib/team.d.ts +26 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './lib/team.js';
|
|
|
35
35
|
export * from './lib/team-review-changes.js';
|
|
36
36
|
export * from './lib/goal-outcome.js';
|
|
37
37
|
export * from './lib/goal-retro.js';
|
|
38
|
+
export * from './lib/changes.js';
|
|
38
39
|
export * from './lib/team-design.js';
|
|
39
40
|
export * from './lib/team-library.js';
|
|
40
41
|
export * from './lib/system-report.js';
|
|
@@ -46,4 +47,4 @@ export * from './lib/team-roadmap.js';
|
|
|
46
47
|
export * from './lib/team-prompts.js';
|
|
47
48
|
export type { TaskTimePhase, TaskAttempt, TaskTiming } from './lib/task-timing.js';
|
|
48
49
|
export type { ProofFingerprint, ProofEvidence, RuntimeProofIdentity } from './lib/proof.js';
|
|
49
|
-
export type { GoalAdmission, GoalDeliveryPolicy, DeliveryProofRequirement, PackageContract, PackagePublication, PackageCandidate, DeliveryFailureKind, DeliveryFinding, PackageDelivery, DeliveryAssignment, PackageDeliverySummary, ProofWaiver } from './lib/team-delivery.js';
|
|
50
|
+
export type { GoalAdmission, GoalDeliveryPolicy, DeliveryProofRequirement, PackageContract, PackagePublication, PackageCandidate, DeliveryFailureKind, DeliveryFinding, PackageDelivery, DeliveryAssignment, PackageDeliverySummary, ProofWaiver, ForcedItem, ForcedIntegration } from './lib/team-delivery.js';
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export*from"./lib/schema-version.js";export*from"./lib/source-location.js";export*from"./lib/context.js";export*from"./lib/event.js";export*from"./lib/node.js";export*from"./lib/edge.js";export*from"./lib/attributes.js";export*from"./lib/producer-health.js";export*from"./lib/resources.js";export*from"./lib/tokens.js";export*from"./lib/capture-demand.js";export*from"./lib/bounded-clone.js";export*from"./lib/bounded-map.js";export*from"./lib/flood-guard.js";export*from"./lib/dashboard.js";export*from"./lib/log-query.js";export*from"./lib/error-dismissal.js";export*from"./lib/metrics-reset.js";export*from"./lib/ai-content.js";export*from"./lib/http-exchange.js";export*from"./lib/ai-call.js";export*from"./lib/ai-call-row.js";export*from"./lib/ai-call-groups.js";export*from"./lib/ai-context.js";export*from"./lib/ai-origins.js";export*from"./lib/ai-playground.js";export*from"./lib/pod-memory.js";export*from"./lib/perf-rules.js";export*from"./lib/sources.js";export*from"./lib/page-visit.js";export*from"./lib/replay.js";export*from"./lib/event-loop.js";export*from"./lib/workspace-actions.js";export*from"./lib/team.js";export*from"./lib/team-review-changes.js";export*from"./lib/goal-outcome.js";export*from"./lib/goal-retro.js";export*from"./lib/team-design.js";export*from"./lib/team-library.js";export*from"./lib/system-report.js";export*from"./lib/overseer-findings.js";export*from"./lib/overseer-rounds.js";export*from"./lib/goal-design.js";export*from"./lib/overseer-messages.js";export*from"./lib/team-roadmap.js";export*from"./lib/team-prompts.js";
|
|
1
|
+
"use strict";export*from"./lib/schema-version.js";export*from"./lib/source-location.js";export*from"./lib/context.js";export*from"./lib/event.js";export*from"./lib/node.js";export*from"./lib/edge.js";export*from"./lib/attributes.js";export*from"./lib/producer-health.js";export*from"./lib/resources.js";export*from"./lib/tokens.js";export*from"./lib/capture-demand.js";export*from"./lib/bounded-clone.js";export*from"./lib/bounded-map.js";export*from"./lib/flood-guard.js";export*from"./lib/dashboard.js";export*from"./lib/log-query.js";export*from"./lib/error-dismissal.js";export*from"./lib/metrics-reset.js";export*from"./lib/ai-content.js";export*from"./lib/http-exchange.js";export*from"./lib/ai-call.js";export*from"./lib/ai-call-row.js";export*from"./lib/ai-call-groups.js";export*from"./lib/ai-context.js";export*from"./lib/ai-origins.js";export*from"./lib/ai-playground.js";export*from"./lib/pod-memory.js";export*from"./lib/perf-rules.js";export*from"./lib/sources.js";export*from"./lib/page-visit.js";export*from"./lib/replay.js";export*from"./lib/event-loop.js";export*from"./lib/workspace-actions.js";export*from"./lib/team.js";export*from"./lib/team-review-changes.js";export*from"./lib/goal-outcome.js";export*from"./lib/goal-retro.js";export*from"./lib/changes.js";export*from"./lib/team-design.js";export*from"./lib/team-library.js";export*from"./lib/system-report.js";export*from"./lib/overseer-findings.js";export*from"./lib/overseer-rounds.js";export*from"./lib/goal-design.js";export*from"./lib/overseer-messages.js";export*from"./lib/team-roadmap.js";export*from"./lib/team-prompts.js";
|
package/lib/changes.d.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dashboard's Changes page (planning/changes/00-plan.md): every git checkout of the repository — main, the lens's
|
|
3
|
+
* worktrees, the team's package checkouts, any other — with what is uncommitted in it, what it has to push, what it
|
|
4
|
+
* has that main has not; one checkout's files, commits and each file's diff. Read only.
|
|
5
|
+
*/
|
|
6
|
+
/** Which part of the page a checkout is listed in. */
|
|
7
|
+
export type DashChangesGroup = 'main' | 'worktree' | 'package' | 'other';
|
|
8
|
+
/** A package checkout's part: a writer's implementation or tests, or a combined candidate. */
|
|
9
|
+
export type DashChangesPart = 'implementation' | 'tests' | 'candidate';
|
|
10
|
+
/** A goal or a package task a checkout belongs to, as the coordination store names it. */
|
|
11
|
+
export interface DashChangesTask {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
state: string;
|
|
15
|
+
}
|
|
16
|
+
/** A checkout's uncommitted work, counted. */
|
|
17
|
+
export interface DashChangesCounts {
|
|
18
|
+
/** Files with any change: each counts once, whatever its columns. */
|
|
19
|
+
files: number;
|
|
20
|
+
staged: number;
|
|
21
|
+
unstaged: number;
|
|
22
|
+
untracked: number;
|
|
23
|
+
conflicted: number;
|
|
24
|
+
/** Lines added and removed in tracked files, HEAD to the disk (untracked files are not counted). */
|
|
25
|
+
added?: number;
|
|
26
|
+
removed?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface DashChangesCheckout {
|
|
29
|
+
/** `main`, or 12 hex characters of the sha-256 of its root — what `/changes/<key>` names. */
|
|
30
|
+
key: string;
|
|
31
|
+
root: string;
|
|
32
|
+
/** The root with the home folder as `~`. */
|
|
33
|
+
where: string;
|
|
34
|
+
group: DashChangesGroup;
|
|
35
|
+
/** `main`, a lens worktree's name, a package checkout's part, or the folder's name. */
|
|
36
|
+
name: string;
|
|
37
|
+
/** A lens worktree's instance key (instances.json): what Cluster › Worktrees opens it by. */
|
|
38
|
+
lens?: string;
|
|
39
|
+
/** The goal it works for: a goal worktree's, a package checkout's. */
|
|
40
|
+
goal?: DashChangesTask;
|
|
41
|
+
/** A package checkout's package task. */
|
|
42
|
+
task?: DashChangesTask;
|
|
43
|
+
part?: DashChangesPart;
|
|
44
|
+
/** The branch checked out; absent: a detached HEAD. */
|
|
45
|
+
branch?: string;
|
|
46
|
+
head?: string;
|
|
47
|
+
/** The HEAD commit's time (epoch ms) and subject. */
|
|
48
|
+
headAt?: number;
|
|
49
|
+
headSubject?: string;
|
|
50
|
+
/** The branch's remote (`origin/main`); absent: it has none. */
|
|
51
|
+
upstream?: string;
|
|
52
|
+
/** Commits ahead of and behind the remote — with one only. */
|
|
53
|
+
toPush?: number;
|
|
54
|
+
toPull?: number;
|
|
55
|
+
/** Commits on its HEAD not on main's, and on main's not on its — absent for main. */
|
|
56
|
+
ahead?: number;
|
|
57
|
+
behind?: number;
|
|
58
|
+
changes: DashChangesCounts;
|
|
59
|
+
/** The newest change: the newest changed file's mtime, else the HEAD's time (epoch ms). */
|
|
60
|
+
changedAt?: number;
|
|
61
|
+
/** Its directory is gone (git lists it as prunable). */
|
|
62
|
+
missing?: true;
|
|
63
|
+
/** Git could not read it; what it said. */
|
|
64
|
+
error?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface DashChanges {
|
|
67
|
+
at: number;
|
|
68
|
+
mainRoot: string;
|
|
69
|
+
/** Main first, then lens worktrees, then package checkouts by goal, then the others. */
|
|
70
|
+
checkouts: DashChangesCheckout[];
|
|
71
|
+
/** How the numbers were read, and what was left out. */
|
|
72
|
+
notes: string[];
|
|
73
|
+
}
|
|
74
|
+
/** A changed file's kind, as the page shows it. */
|
|
75
|
+
export type DashChangesFileKind = 'added' | 'modified' | 'deleted' | 'renamed' | 'copied' | 'type-changed' | 'untracked' | 'conflicted';
|
|
76
|
+
export interface DashChangesFile {
|
|
77
|
+
path: string;
|
|
78
|
+
/** A rename's or copy's old path. */
|
|
79
|
+
from?: string;
|
|
80
|
+
kind: DashChangesFileKind;
|
|
81
|
+
/** The staged and unstaged columns (`git status` X and Y; `.` unchanged) — a commit's files have neither. */
|
|
82
|
+
staged?: string;
|
|
83
|
+
unstaged?: string;
|
|
84
|
+
added?: number;
|
|
85
|
+
removed?: number;
|
|
86
|
+
binary?: true;
|
|
87
|
+
/** A content stamp (size and mtime, or the blob ids): what a «Viewed» tick is kept against. */
|
|
88
|
+
stamp?: string;
|
|
89
|
+
}
|
|
90
|
+
/** One checkout's uncommitted files, or one commit's. */
|
|
91
|
+
export interface DashChangesFiles {
|
|
92
|
+
key: string;
|
|
93
|
+
at: number;
|
|
94
|
+
head?: string;
|
|
95
|
+
branch?: string;
|
|
96
|
+
/** A commit's: its sha. */
|
|
97
|
+
sha?: string;
|
|
98
|
+
files: DashChangesFile[];
|
|
99
|
+
total: number;
|
|
100
|
+
/** More than the page shows (2,000): inspect it with git. */
|
|
101
|
+
truncated?: true;
|
|
102
|
+
}
|
|
103
|
+
export interface DashChangesCommit {
|
|
104
|
+
sha: string;
|
|
105
|
+
subject: string;
|
|
106
|
+
author: string;
|
|
107
|
+
at: number;
|
|
108
|
+
/** Its first parent; absent: a root commit. */
|
|
109
|
+
parent?: string;
|
|
110
|
+
/** More than one parent: a merge, diffed against its first. */
|
|
111
|
+
merge?: true;
|
|
112
|
+
}
|
|
113
|
+
export interface DashChangesCommits {
|
|
114
|
+
key: string;
|
|
115
|
+
at: number;
|
|
116
|
+
branch?: string;
|
|
117
|
+
upstream?: string;
|
|
118
|
+
/** Commits ahead of the remote, newest first — with one only. */
|
|
119
|
+
toPush?: DashChangesCommit[];
|
|
120
|
+
/** Commits not on main's HEAD, newest first — absent for main. */
|
|
121
|
+
notInMain?: DashChangesCommit[];
|
|
122
|
+
/** A list cut at 200. */
|
|
123
|
+
truncated?: true;
|
|
124
|
+
}
|
|
125
|
+
export interface DashChangesDiff {
|
|
126
|
+
key: string;
|
|
127
|
+
path: string;
|
|
128
|
+
sha?: string;
|
|
129
|
+
/** A unified patch of redacted copies; absent with `unavailable`. */
|
|
130
|
+
text?: string;
|
|
131
|
+
unavailable?: string;
|
|
132
|
+
/** Cut at 256 KiB. */
|
|
133
|
+
truncated?: true;
|
|
134
|
+
/** Read with the whole file as context: no unchanged lines are hidden. */
|
|
135
|
+
full?: true;
|
|
136
|
+
}
|
package/lib/changes.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";export{};
|
package/lib/goal-retro.d.ts
CHANGED
|
@@ -19,8 +19,13 @@ export interface DashGoalRetro {
|
|
|
19
19
|
by: 'archive' | 'person';
|
|
20
20
|
queuedAt: number;
|
|
21
21
|
state: DashGoalRetroState;
|
|
22
|
-
/**
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* What it waits on: Retrospectives switched off, no working key, the day's allowance spent — or the team's coordination
|
|
24
|
+
* store, busy at the last look before anything was spent (it runs again at the next look).
|
|
25
|
+
*/
|
|
26
|
+
wait?: 'off' | 'key' | 'allowance' | 'store';
|
|
27
|
+
/** The looks in a row that found the coordination store busy before any spend: past RETRO_BUSY_LOOKS, it fails. */
|
|
28
|
+
busy?: number;
|
|
24
29
|
reason?: string;
|
|
25
30
|
startedAt?: number;
|
|
26
31
|
endedAt?: number;
|
package/lib/team-delivery.d.ts
CHANGED
|
@@ -120,6 +120,10 @@ export interface DeliveryFinding {
|
|
|
120
120
|
requirementId: string;
|
|
121
121
|
at: number;
|
|
122
122
|
};
|
|
123
|
+
/** Resolved by the person's forced integration of its candidate (issues/closed/overseer-46): when. */
|
|
124
|
+
forced?: {
|
|
125
|
+
at: number;
|
|
126
|
+
};
|
|
123
127
|
}
|
|
124
128
|
/**
|
|
125
129
|
* The person's waiver of one required proof of one candidate (issues/closed/overseer-34 case 2). The check fails on Main
|
|
@@ -150,6 +154,41 @@ export interface ProofWaiver {
|
|
|
150
154
|
delegate?: string;
|
|
151
155
|
};
|
|
152
156
|
}
|
|
157
|
+
/** One check the person forced a candidate past (issues/closed/overseer-46), as it stood when they forced it. */
|
|
158
|
+
export interface ForcedItem {
|
|
159
|
+
kind: 'proof' | 'review' | 'finding';
|
|
160
|
+
/** The proof's requirement id, the review's role, or the finding's id. */
|
|
161
|
+
id: string;
|
|
162
|
+
/** `failed`, `queued`, `not run`, `changes-requested`, `pending`, `none`, or a finding's kind (`unclassified` without one). */
|
|
163
|
+
state: string;
|
|
164
|
+
runId?: string;
|
|
165
|
+
taskId?: string;
|
|
166
|
+
/** A failure's reason, a finding's summary, or a review's open findings: bounded. */
|
|
167
|
+
detail?: string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* The person's forced integration of one candidate (issues/closed/overseer-46): David's «we need to have option to force
|
|
171
|
+
* merge worktrees to continue work even if failing check!» — goal b23de504 waited two hours on a one-line fix. The
|
|
172
|
+
* candidate counts as ready in place of what it lacks, listed in `items`; the goal's manager integrates it as any other,
|
|
173
|
+
* so the merge, clean-tree and goal-head checks still run. It holds for that candidate only.
|
|
174
|
+
*/
|
|
175
|
+
export interface ForcedIntegration {
|
|
176
|
+
candidate: string;
|
|
177
|
+
items: ForcedItem[];
|
|
178
|
+
/** The package's tasks in flight the force cancelled: its open writer repairs and its candidate's reviews. */
|
|
179
|
+
cancelled: string[];
|
|
180
|
+
reason: string;
|
|
181
|
+
/** Always the person: at the machine, or `delegate`, the person's delegate (the Inbox session) that forced it for them. */
|
|
182
|
+
by: 'user';
|
|
183
|
+
delegate?: string;
|
|
184
|
+
at: number;
|
|
185
|
+
/** Withdrawn by the person before it integrated: it no longer counts. */
|
|
186
|
+
revoked?: {
|
|
187
|
+
at: number;
|
|
188
|
+
why: string;
|
|
189
|
+
delegate?: string;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
153
192
|
export interface PackageDelivery {
|
|
154
193
|
version: 1;
|
|
155
194
|
contract: PackageContract;
|
|
@@ -167,6 +206,8 @@ export interface PackageDelivery {
|
|
|
167
206
|
failedRepairs: string[];
|
|
168
207
|
/** The person's waivers of required proofs (issues/closed/overseer-34), newest last; revoked ones are kept. */
|
|
169
208
|
waivers?: ProofWaiver[];
|
|
209
|
+
/** The person's forced integrations (issues/closed/overseer-46), newest last; revoked ones are kept. */
|
|
210
|
+
forced?: ForcedIntegration[];
|
|
170
211
|
diagnosis?: {
|
|
171
212
|
at: number;
|
|
172
213
|
by: string;
|
|
@@ -195,6 +236,8 @@ export interface PackageDeliverySummary {
|
|
|
195
236
|
approved: number;
|
|
196
237
|
required: number;
|
|
197
238
|
};
|
|
239
|
+
/** The person forced its current candidate past this many unmet checks (issues/closed/overseer-46): it is `ready`. */
|
|
240
|
+
forced?: number;
|
|
198
241
|
unresolvedFindings: number;
|
|
199
242
|
revisions: number;
|
|
200
243
|
/**
|
package/lib/team-roadmap.d.ts
CHANGED
|
@@ -44,9 +44,9 @@ export interface GoalSchedule {
|
|
|
44
44
|
/** Who set `estimate`/`remaining`, when and why (RM-D2: agent hours, kept as minutes in the ranges above). */
|
|
45
45
|
estimateSource?: EstimateSource;
|
|
46
46
|
}
|
|
47
|
-
/** Where a goal's estimate came from: the person's numbers,
|
|
47
|
+
/** Where a goal's estimate came from: the person's numbers, an accepted planner proposal, or a user-directed agent edit. */
|
|
48
48
|
export interface EstimateSource {
|
|
49
|
-
by: 'user' | 'planner';
|
|
49
|
+
by: 'user' | 'planner' | 'agent';
|
|
50
50
|
at: number;
|
|
51
51
|
/** The planner proposal the estimate was accepted from. */
|
|
52
52
|
proposalId?: string;
|
|
@@ -74,7 +74,7 @@ export interface GoalLink {
|
|
|
74
74
|
on: string;
|
|
75
75
|
kind: GoalLinkKind;
|
|
76
76
|
why?: string;
|
|
77
|
-
by: 'user' | 'planner';
|
|
77
|
+
by: 'user' | 'planner' | 'agent';
|
|
78
78
|
at: number;
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
@@ -149,7 +149,7 @@ export interface HeldGoalOutput {
|
|
|
149
149
|
why: string;
|
|
150
150
|
at: number;
|
|
151
151
|
}
|
|
152
|
-
/** `by`: `user` (the person), `planner`, or `lensmcp` — an output it accepted on its goal's proof (overseer-24). */
|
|
152
|
+
/** `by`: `user` (the person), `planner`, `agent:<session>:<generation>`, or `lensmcp` — an output it accepted on its goal's proof (overseer-24). */
|
|
153
153
|
export interface DeliveryAudit {
|
|
154
154
|
at: number;
|
|
155
155
|
by: string;
|
package/lib/team.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DashTeamTaskDesign, DesignStage } from './goal-design.js';
|
|
2
2
|
import type { TaskTiming } from './task-timing.js';
|
|
3
|
-
import type { GoalAdmission, PackageDeliverySummary } from './team-delivery.js';
|
|
3
|
+
import type { ForcedIntegration, ForcedItem, GoalAdmission, PackageDeliverySummary } from './team-delivery.js';
|
|
4
4
|
/**
|
|
5
5
|
* The Team page (servers/lensmcp-mcp/src/dashboard/team.ts): the repository's agent team as its coordination store
|
|
6
6
|
* holds it — the agents in their roles, the tasks they take and hand on, each task's work log — and what the person at
|
|
@@ -526,6 +526,31 @@ export interface DashTeamReviewItem {
|
|
|
526
526
|
not?: string;
|
|
527
527
|
why?: string;
|
|
528
528
|
}
|
|
529
|
+
/**
|
|
530
|
+
* What forcing a package's current candidate would do, read before the person confirms it (issues/closed/overseer-46):
|
|
531
|
+
* the candidate, each check it lacks, the tasks in flight it cancels, the writers at work it waits for, and why it is
|
|
532
|
+
* refused when it is. `GET /api/team/package/force?id=`; `POST` it with `{ packageId, candidate, reason }` to force.
|
|
533
|
+
*/
|
|
534
|
+
export interface DashTeamForcePreview {
|
|
535
|
+
packageId: string;
|
|
536
|
+
title: string;
|
|
537
|
+
candidate?: string;
|
|
538
|
+
items: ForcedItem[];
|
|
539
|
+
cancels: Array<{
|
|
540
|
+
id: string;
|
|
541
|
+
title: string;
|
|
542
|
+
state: string;
|
|
543
|
+
stage: string;
|
|
544
|
+
owner?: string;
|
|
545
|
+
}>;
|
|
546
|
+
writing: Array<{
|
|
547
|
+
id: string;
|
|
548
|
+
title: string;
|
|
549
|
+
owner?: string;
|
|
550
|
+
}>;
|
|
551
|
+
forced?: ForcedIntegration;
|
|
552
|
+
refused?: string;
|
|
553
|
+
}
|
|
529
554
|
/**
|
|
530
555
|
* A goal's checks as the Team page's drawer shows them (planning/team/17 SK-D7): the pick's state and its picks — each
|
|
531
556
|
* with why, the paths it was picked for, and whether the model or the person chose it — the ids the person removed,
|