@lensmcp/protocol-types 1.25.74 → 1.25.76
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 +1 -0
- package/index.js +1 -1
- package/lib/changes.d.ts +136 -0
- package/lib/changes.js +1 -0
- package/lib/team-delivery.d.ts +18 -0
- package/lib/team-roadmap.d.ts +4 -4
- package/lib/team.d.ts +2 -0
- 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';
|
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/team-delivery.d.ts
CHANGED
|
@@ -214,6 +214,24 @@ export interface PackageDelivery {
|
|
|
214
214
|
after: string[];
|
|
215
215
|
text: string;
|
|
216
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* What an amendment of the integrated package replaced (issues/closed/overseer-57): put back whole when every repair it
|
|
219
|
+
* opened is cancelled or moved to the next list before a new publication. Gone once a new candidate is made.
|
|
220
|
+
*/
|
|
221
|
+
reopened?: PackageReopened;
|
|
222
|
+
}
|
|
223
|
+
export interface PackageReopened {
|
|
224
|
+
candidate: string;
|
|
225
|
+
at: number;
|
|
226
|
+
repairs: string[];
|
|
227
|
+
writers: Array<'implementation' | 'tests'>;
|
|
228
|
+
base: string;
|
|
229
|
+
contract: PackageContract;
|
|
230
|
+
reviewRoles: string[];
|
|
231
|
+
paths: string[];
|
|
232
|
+
testPaths?: string[];
|
|
233
|
+
implementation?: PackagePublication;
|
|
234
|
+
tests?: PackagePublication;
|
|
217
235
|
}
|
|
218
236
|
export interface DeliveryAssignment {
|
|
219
237
|
packageId: string;
|
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
|
@@ -1281,6 +1281,8 @@ export interface DashTeamLaunch {
|
|
|
1281
1281
|
/** The checkout it works in — its goal's worktree — and that worktree's branch. */
|
|
1282
1282
|
worktree: string;
|
|
1283
1283
|
branch?: string;
|
|
1284
|
+
/** The MCP servers it was launched with (overseer-58). */
|
|
1285
|
+
mcp?: string[];
|
|
1284
1286
|
pid: number;
|
|
1285
1287
|
/** `running` until it exits; `stopped` by the person or its deadline; `failed`: it could not start. */
|
|
1286
1288
|
state: 'running' | 'exited' | 'stopped' | 'failed';
|