@lensmcp/protocol-types 1.26.1 → 1.26.3
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 +14 -1
- package/index.js +1 -1
- package/lib/changes.d.ts +15 -3
- package/lib/cluster-hosts.d.ts +272 -0
- package/lib/cluster-hosts.js +1 -0
- package/lib/dashboard-lint.d.ts +22 -0
- package/lib/dashboard-updates.d.ts +80 -0
- package/lib/dashboard-updates.js +1 -0
- package/lib/dashboard.d.ts +54 -1
- package/lib/docker-errors.d.ts +123 -0
- package/lib/docker-errors.js +1 -0
- package/lib/docker-jobs.d.ts +673 -0
- package/lib/docker-jobs.js +1 -0
- package/lib/docker-report.d.ts +99 -0
- package/lib/docker-report.js +2 -0
- package/lib/docker-runs.d.ts +300 -0
- package/lib/docker-runs.js +3 -0
- package/lib/expected-failure.d.ts +251 -0
- package/lib/expected-failure.js +2 -0
- package/lib/host-agents.d.ts +139 -0
- package/lib/host-agents.js +1 -0
- package/lib/hosts.d.ts +206 -0
- package/lib/hosts.js +1 -0
- package/lib/main-mirror.d.ts +117 -0
- package/lib/main-mirror.js +1 -0
- package/lib/peers.d.ts +1881 -0
- package/lib/peers.js +1 -0
- package/lib/proof.d.ts +32 -0
- package/lib/remote-instances.d.ts +129 -0
- package/lib/remote-instances.js +1 -0
- package/lib/resources.d.ts +2 -0
- package/lib/resources.js +1 -1
- package/lib/static-checks.d.ts +290 -0
- package/lib/static-checks.js +1 -0
- package/lib/team-delivery.d.ts +13 -0
- package/lib/team.d.ts +60 -2
- package/lib/workspace-actions.d.ts +104 -1
- package/lib/workspace-actions.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { MainFollowState, MainSendVerdict, MainUpdateReport } from './peers.js';
|
|
2
|
+
/**
|
|
3
|
+
* Main on a worker Mac, as both dashboards' Changes page shows it (planning/docker/00-plan.md § 14, slice D34) —
|
|
4
|
+
* `GET /api/changes/peers`. On the ORGANIZER: one row per worker — its commits to bring into main and where they
|
|
5
|
+
* stand, what is uncommitted on its main and the snapshot's age, what it has not sent, what it lacks of main. On a
|
|
6
|
+
* WORKER: its own main against the organizer's. Read only; the writes are `POST /api/changes/bring-in` (the organizer),
|
|
7
|
+
* `/api/changes/update-main`, `/api/changes/commit-send` and `/api/changes/send-main` (a worker).
|
|
8
|
+
*/
|
|
9
|
+
/** Which side of a pairing this dashboard's checkout is: the organizer's main, a worker's main, or neither. */
|
|
10
|
+
export type DashMainRole = 'organizer' | 'worker' | 'none';
|
|
11
|
+
/** Where a worker's sent commits stand against main NOW (not only at the last attempt). */
|
|
12
|
+
export type DashMainBringIn =
|
|
13
|
+
/** Nothing sent, or every commit sent is on main. */
|
|
14
|
+
'in-main'
|
|
15
|
+
/** A fast-forward on a clean main: «Bring in» moves main. */
|
|
16
|
+
| 'ready'
|
|
17
|
+
/** A fast-forward, and main has uncommitted changes, or is not on its branch: they wait. */
|
|
18
|
+
| 'waiting'
|
|
19
|
+
/** Main moved past what they were made on: the worker updates from main and sends again. */
|
|
20
|
+
| 'not-ff';
|
|
21
|
+
/** What is uncommitted on a worker's main, and the newest snapshot of it. */
|
|
22
|
+
export interface DashMainUncommitted {
|
|
23
|
+
files: number;
|
|
24
|
+
/** When the newest snapshot of it was made (ms) — what «snapshot 3 min ago» counts from. */
|
|
25
|
+
snapshotAt?: number;
|
|
26
|
+
snapshot?: string;
|
|
27
|
+
/** The snapshot reached the organizer (`refs/lensmcp/peers/<worker>/wip/<branch>`). */
|
|
28
|
+
sent?: boolean;
|
|
29
|
+
/** Its files the snapshot holds. */
|
|
30
|
+
snapshotFiles?: number;
|
|
31
|
+
}
|
|
32
|
+
/** A worker's main, as the organizer's Changes page shows it. */
|
|
33
|
+
export interface DashMainWorker {
|
|
34
|
+
/** Its certificate's fingerprint: what its namespace is named by (`refs/lensmcp/peers/<peer>/…`). */
|
|
35
|
+
peer: string;
|
|
36
|
+
name: string;
|
|
37
|
+
paired: boolean;
|
|
38
|
+
connected: boolean;
|
|
39
|
+
/** Its sent commits not on main. */
|
|
40
|
+
toBringIn: number;
|
|
41
|
+
bringIn: DashMainBringIn;
|
|
42
|
+
/** One sentence: where they stand, and what moves them. */
|
|
43
|
+
why: string;
|
|
44
|
+
/** Its sent tip, and when it came. */
|
|
45
|
+
sent?: string;
|
|
46
|
+
sentAt?: number;
|
|
47
|
+
/** The last attempt to bring them in. */
|
|
48
|
+
last?: MainSendVerdict;
|
|
49
|
+
/** What is uncommitted there, as it last said and as its snapshot holds. */
|
|
50
|
+
uncommitted?: DashMainUncommitted;
|
|
51
|
+
/** Its commits it has not sent (as it said). */
|
|
52
|
+
notSent?: number;
|
|
53
|
+
/** Main's commits its main lacks (counted here, from the head it said). */
|
|
54
|
+
toPull?: number;
|
|
55
|
+
follow?: MainFollowState;
|
|
56
|
+
/** Its last «Update from main» — a conflict, and who it asked. */
|
|
57
|
+
update?: MainUpdateReport;
|
|
58
|
+
/** When it last said how its main stands. */
|
|
59
|
+
reportedAt?: number;
|
|
60
|
+
/** «Bring in» does something now. */
|
|
61
|
+
canBringIn: boolean;
|
|
62
|
+
}
|
|
63
|
+
/** A send waiting for the link to the organizer. */
|
|
64
|
+
export interface DashMainPending {
|
|
65
|
+
/** `heads/<branch>` or `wip/<branch>`. */
|
|
66
|
+
ref: string;
|
|
67
|
+
sha: string;
|
|
68
|
+
at: number;
|
|
69
|
+
/** Commits it carries (a send of main), files (a snapshot). */
|
|
70
|
+
count?: number;
|
|
71
|
+
files?: number;
|
|
72
|
+
}
|
|
73
|
+
/** This Mac's main, as a worker's Changes page shows it. */
|
|
74
|
+
export interface DashMainSelf {
|
|
75
|
+
/** The organizer, by its name. */
|
|
76
|
+
organizer: string;
|
|
77
|
+
root: string;
|
|
78
|
+
branch: string;
|
|
79
|
+
head?: string;
|
|
80
|
+
organizerHead?: string;
|
|
81
|
+
follow: MainFollowState;
|
|
82
|
+
/** One sentence: how it stands, and what happens next. */
|
|
83
|
+
why: string;
|
|
84
|
+
/** Its commits the organizer does not hold. */
|
|
85
|
+
notSent: number;
|
|
86
|
+
/** Main's commits it lacks. */
|
|
87
|
+
toPull: number;
|
|
88
|
+
/** Tracked files with changes (what holds a move of main). */
|
|
89
|
+
dirty: number;
|
|
90
|
+
uncommitted: DashMainUncommitted;
|
|
91
|
+
/** Sends waiting for the link. */
|
|
92
|
+
pending: DashMainPending[];
|
|
93
|
+
/** The last send the organizer answered. */
|
|
94
|
+
lastSend?: {
|
|
95
|
+
sha: string;
|
|
96
|
+
at: number;
|
|
97
|
+
verdict?: MainSendVerdict;
|
|
98
|
+
};
|
|
99
|
+
update?: MainUpdateReport;
|
|
100
|
+
/** «Update from main» does something now. */
|
|
101
|
+
canUpdate: boolean;
|
|
102
|
+
/** «Send» does something now: commits not sent, none waiting. */
|
|
103
|
+
canSend: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface DashMainMirror {
|
|
106
|
+
at: number;
|
|
107
|
+
role: DashMainRole;
|
|
108
|
+
/** The branch main is. */
|
|
109
|
+
branch: string;
|
|
110
|
+
/** The organizer: its main's head; a worker: its own main's. */
|
|
111
|
+
mainHead?: string;
|
|
112
|
+
/** The organizer: tracked files changed on main now — what makes a worker's commits wait. */
|
|
113
|
+
mainDirty?: number;
|
|
114
|
+
workers?: DashMainWorker[];
|
|
115
|
+
self?: DashMainSelf;
|
|
116
|
+
notes: string[];
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";export{};
|