@lensmcp/protocol-types 1.26.17 → 1.26.18
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/lib/backlog.d.ts +19 -0
- package/lib/backlog.js +1 -1
- package/lib/peers.d.ts +29 -29
- package/lib/team.d.ts +31 -4
- package/package.json +1 -1
package/lib/backlog.d.ts
CHANGED
|
@@ -7,6 +7,21 @@ export declare const BACKLOG_PRIORITIES: readonly BacklogPriority[];
|
|
|
7
7
|
export declare const BACKLOG_TITLE_MAX = 200;
|
|
8
8
|
export declare const BACKLOG_BODY_MAX = 8000;
|
|
9
9
|
export declare const BACKLOG_REFS_MAX = 20;
|
|
10
|
+
/** The most characters of a {@link BacklogFrom}'s id and of its title. */
|
|
11
|
+
export declare const BACKLOG_FROM_MAX = 200;
|
|
12
|
+
/**
|
|
13
|
+
* Where the idea was when it was parked (owner, 2026-11-20): a finished goal's follow-up, a goal proposed from
|
|
14
|
+
* follow-ups, a review suggestion, an error, a session summary's action item, or a form the person described it in.
|
|
15
|
+
*/
|
|
16
|
+
export type BacklogFromKind = 'follow-up' | 'proposal' | 'suggestion' | 'error' | 'summary' | 'form';
|
|
17
|
+
export declare const BACKLOG_FROM_KINDS: readonly BacklogFromKind[];
|
|
18
|
+
export interface BacklogFrom {
|
|
19
|
+
kind: BacklogFromKind;
|
|
20
|
+
/** What it was: the follow-up (`<goalId>|<itemId>`), the proposal (`fp-…`), the suggestion (`sg-…`), the error group, the conversation. */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** Its name then — the finished goal's title, the suggestion's target, the error's, the form's («Team › New task»). */
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
10
25
|
export interface BacklogRef {
|
|
11
26
|
kind: BacklogRefKind;
|
|
12
27
|
value: string;
|
|
@@ -44,6 +59,8 @@ export interface DashBacklogItem {
|
|
|
44
59
|
goal?: BacklogGoalLink;
|
|
45
60
|
/** Why it was dropped or marked done. */
|
|
46
61
|
closedWhy?: string;
|
|
62
|
+
/** Where it was parked from — set when it is added, never changed. */
|
|
63
|
+
from?: BacklogFrom;
|
|
47
64
|
}
|
|
48
65
|
export interface DashBacklogAnswer {
|
|
49
66
|
items: DashBacklogItem[];
|
|
@@ -57,6 +74,8 @@ export interface DashBacklogAddRequest {
|
|
|
57
74
|
body?: string;
|
|
58
75
|
priority?: BacklogPriority;
|
|
59
76
|
refs?: BacklogRef[];
|
|
77
|
+
/** Where the idea was: a follow-up, a suggestion, a form (planning/backlog BL-D5). */
|
|
78
|
+
from?: BacklogFrom;
|
|
60
79
|
requestId: string;
|
|
61
80
|
}
|
|
62
81
|
export interface DashBacklogUpdateRequest {
|
package/lib/backlog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export const BACKLOG_KINDS=["bug","feature","task"],BACKLOG_PRIORITIES=["high","medium","low"],BACKLOG_TITLE_MAX=200,BACKLOG_BODY_MAX=8e3,BACKLOG_REFS_MAX=20;
|
|
1
|
+
"use strict";export const BACKLOG_KINDS=["bug","feature","task"],BACKLOG_PRIORITIES=["high","medium","low"],BACKLOG_TITLE_MAX=200,BACKLOG_BODY_MAX=8e3,BACKLOG_REFS_MAX=20,BACKLOG_FROM_MAX=200,BACKLOG_FROM_KINDS=["follow-up","proposal","suggestion","error","summary","form"];
|
package/lib/peers.d.ts
CHANGED
|
@@ -863,8 +863,8 @@ export declare const PeerEnvelopeSchema: z.ZodObject<{
|
|
|
863
863
|
}, z.core.$strict>;
|
|
864
864
|
export declare const PeerErrorBodySchema: z.ZodObject<{
|
|
865
865
|
code: z.ZodEnum<{
|
|
866
|
-
timeout: "timeout";
|
|
867
866
|
lost: "lost";
|
|
867
|
+
timeout: "timeout";
|
|
868
868
|
"unknown-type": "unknown-type";
|
|
869
869
|
"wrong-direction": "wrong-direction";
|
|
870
870
|
"bad-message": "bad-message";
|
|
@@ -912,8 +912,8 @@ export declare const PEER_BODY_SCHEMAS: {
|
|
|
912
912
|
}, z.core.$strict>;
|
|
913
913
|
readonly error: z.ZodObject<{
|
|
914
914
|
code: z.ZodEnum<{
|
|
915
|
-
timeout: "timeout";
|
|
916
915
|
lost: "lost";
|
|
916
|
+
timeout: "timeout";
|
|
917
917
|
"unknown-type": "unknown-type";
|
|
918
918
|
"wrong-direction": "wrong-direction";
|
|
919
919
|
"bad-message": "bad-message";
|
|
@@ -978,8 +978,8 @@ export declare const PAIR_BODY_SCHEMAS: {
|
|
|
978
978
|
}, z.core.$strict>;
|
|
979
979
|
readonly error: z.ZodObject<{
|
|
980
980
|
code: z.ZodEnum<{
|
|
981
|
-
timeout: "timeout";
|
|
982
981
|
lost: "lost";
|
|
982
|
+
timeout: "timeout";
|
|
983
983
|
"unknown-type": "unknown-type";
|
|
984
984
|
"wrong-direction": "wrong-direction";
|
|
985
985
|
"bad-message": "bad-message";
|
|
@@ -1171,10 +1171,10 @@ export declare const MAIN_MIRROR_SCHEMAS: {
|
|
|
1171
1171
|
}, z.core.$strict>;
|
|
1172
1172
|
verdict: z.ZodOptional<z.ZodObject<{
|
|
1173
1173
|
state: z.ZodEnum<{
|
|
1174
|
+
waiting: "waiting";
|
|
1174
1175
|
refused: "refused";
|
|
1175
1176
|
"in-main": "in-main";
|
|
1176
1177
|
"brought-in": "brought-in";
|
|
1177
|
-
waiting: "waiting";
|
|
1178
1178
|
"not-ff": "not-ff";
|
|
1179
1179
|
}>;
|
|
1180
1180
|
count: z.ZodNumber;
|
|
@@ -1204,8 +1204,8 @@ export declare const MAIN_MIRROR_SCHEMAS: {
|
|
|
1204
1204
|
sent: z.ZodBoolean;
|
|
1205
1205
|
}, z.core.$strict>>;
|
|
1206
1206
|
follow: z.ZodEnum<{
|
|
1207
|
-
"in-step": "in-step";
|
|
1208
1207
|
waiting: "waiting";
|
|
1208
|
+
"in-step": "in-step";
|
|
1209
1209
|
"fast-forward": "fast-forward";
|
|
1210
1210
|
ahead: "ahead";
|
|
1211
1211
|
"to-update": "to-update";
|
|
@@ -1214,11 +1214,11 @@ export declare const MAIN_MIRROR_SCHEMAS: {
|
|
|
1214
1214
|
}>;
|
|
1215
1215
|
update: z.ZodOptional<z.ZodObject<{
|
|
1216
1216
|
outcome: z.ZodEnum<{
|
|
1217
|
-
refused: "refused";
|
|
1218
1217
|
waiting: "waiting";
|
|
1218
|
+
current: "current";
|
|
1219
|
+
refused: "refused";
|
|
1219
1220
|
"fast-forward": "fast-forward";
|
|
1220
1221
|
merged: "merged";
|
|
1221
|
-
current: "current";
|
|
1222
1222
|
conflicts: "conflicts";
|
|
1223
1223
|
}>;
|
|
1224
1224
|
at: z.ZodNumber;
|
|
@@ -1247,10 +1247,10 @@ export declare const MAIN_MIRROR_ANSWER_SCHEMAS: {
|
|
|
1247
1247
|
why: z.ZodOptional<z.ZodString>;
|
|
1248
1248
|
verdict: z.ZodOptional<z.ZodObject<{
|
|
1249
1249
|
state: z.ZodEnum<{
|
|
1250
|
+
waiting: "waiting";
|
|
1250
1251
|
refused: "refused";
|
|
1251
1252
|
"in-main": "in-main";
|
|
1252
1253
|
"brought-in": "brought-in";
|
|
1253
|
-
waiting: "waiting";
|
|
1254
1254
|
"not-ff": "not-ff";
|
|
1255
1255
|
}>;
|
|
1256
1256
|
count: z.ZodNumber;
|
|
@@ -1265,8 +1265,8 @@ export declare const MAIN_MIRROR_ANSWER_SCHEMAS: {
|
|
|
1265
1265
|
needWhole: z.ZodOptional<z.ZodBoolean>;
|
|
1266
1266
|
why: z.ZodOptional<z.ZodString>;
|
|
1267
1267
|
follow: z.ZodOptional<z.ZodEnum<{
|
|
1268
|
-
"in-step": "in-step";
|
|
1269
1268
|
waiting: "waiting";
|
|
1269
|
+
"in-step": "in-step";
|
|
1270
1270
|
"fast-forward": "fast-forward";
|
|
1271
1271
|
ahead: "ahead";
|
|
1272
1272
|
"to-update": "to-update";
|
|
@@ -1316,8 +1316,8 @@ export declare const PEER_WORK_SCHEMAS: {
|
|
|
1316
1316
|
at: z.ZodNumber;
|
|
1317
1317
|
started: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1318
1318
|
state: z.ZodOptional<z.ZodEnum<{
|
|
1319
|
-
running: "running";
|
|
1320
1319
|
queued: "queued";
|
|
1320
|
+
running: "running";
|
|
1321
1321
|
}>>;
|
|
1322
1322
|
note: z.ZodOptional<z.ZodString>;
|
|
1323
1323
|
queue: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1333,11 +1333,11 @@ export declare const PEER_WORK_SCHEMAS: {
|
|
|
1333
1333
|
runId: z.ZodString;
|
|
1334
1334
|
at: z.ZodNumber;
|
|
1335
1335
|
state: z.ZodEnum<{
|
|
1336
|
-
failed: "failed";
|
|
1337
|
-
passed: "passed";
|
|
1338
|
-
errored: "errored";
|
|
1339
1336
|
cancelled: "cancelled";
|
|
1337
|
+
passed: "passed";
|
|
1338
|
+
failed: "failed";
|
|
1340
1339
|
timeout: "timeout";
|
|
1340
|
+
errored: "errored";
|
|
1341
1341
|
}>;
|
|
1342
1342
|
note: z.ZodOptional<z.ZodString>;
|
|
1343
1343
|
step: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1430,10 +1430,10 @@ export declare const PEER_WORK_SCHEMAS: {
|
|
|
1430
1430
|
}, z.core.$strict>;
|
|
1431
1431
|
why: z.ZodObject<{
|
|
1432
1432
|
kind: z.ZodEnum<{
|
|
1433
|
+
restarting: "restarting";
|
|
1433
1434
|
protocol: "protocol";
|
|
1434
1435
|
version: "version";
|
|
1435
1436
|
installed: "installed";
|
|
1436
|
-
restarting: "restarting";
|
|
1437
1437
|
"install-failed": "install-failed";
|
|
1438
1438
|
"restart-failed": "restart-failed";
|
|
1439
1439
|
"no-store": "no-store";
|
|
@@ -1504,9 +1504,9 @@ export declare const StoreReplySchema: z.ZodObject<{
|
|
|
1504
1504
|
message: z.ZodString;
|
|
1505
1505
|
room: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1506
1506
|
step: z.ZodOptional<z.ZodEnum<{
|
|
1507
|
+
commit: "commit";
|
|
1507
1508
|
open: "open";
|
|
1508
1509
|
write: "write";
|
|
1509
|
-
commit: "commit";
|
|
1510
1510
|
read: "read";
|
|
1511
1511
|
}>>;
|
|
1512
1512
|
waitedMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1563,8 +1563,8 @@ export declare const PEER_LAUNCH_SCHEMAS: {
|
|
|
1563
1563
|
role: z.ZodString;
|
|
1564
1564
|
by: z.ZodString;
|
|
1565
1565
|
client: z.ZodEnum<{
|
|
1566
|
-
claude: "claude";
|
|
1567
1566
|
codex: "codex";
|
|
1567
|
+
claude: "claude";
|
|
1568
1568
|
}>;
|
|
1569
1569
|
model: z.ZodOptional<z.ZodString>;
|
|
1570
1570
|
effort: z.ZodOptional<z.ZodString>;
|
|
@@ -1594,10 +1594,10 @@ export declare const PEER_LAUNCH_SCHEMAS: {
|
|
|
1594
1594
|
readonly 'launch.state': z.ZodObject<{
|
|
1595
1595
|
launchId: z.ZodString;
|
|
1596
1596
|
state: z.ZodEnum<{
|
|
1597
|
-
running: "running";
|
|
1598
1597
|
failed: "failed";
|
|
1599
|
-
|
|
1598
|
+
running: "running";
|
|
1600
1599
|
stopped: "stopped";
|
|
1600
|
+
exited: "exited";
|
|
1601
1601
|
}>;
|
|
1602
1602
|
at: z.ZodNumber;
|
|
1603
1603
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1607,8 +1607,8 @@ export declare const PEER_LAUNCH_SCHEMAS: {
|
|
|
1607
1607
|
ended: z.ZodOptional<z.ZodObject<{
|
|
1608
1608
|
quota: z.ZodOptional<z.ZodObject<{
|
|
1609
1609
|
client: z.ZodEnum<{
|
|
1610
|
-
claude: "claude";
|
|
1611
1610
|
codex: "codex";
|
|
1611
|
+
claude: "claude";
|
|
1612
1612
|
}>;
|
|
1613
1613
|
why: z.ZodString;
|
|
1614
1614
|
until: z.ZodNumber;
|
|
@@ -1802,8 +1802,8 @@ export declare const GOAL_PEER_SCHEMAS: {
|
|
|
1802
1802
|
sha256: z.ZodString;
|
|
1803
1803
|
}, z.core.$strict>;
|
|
1804
1804
|
services: z.ZodOptional<z.ZodEnum<{
|
|
1805
|
-
"on-demand": "on-demand";
|
|
1806
1805
|
none: "none";
|
|
1806
|
+
"on-demand": "on-demand";
|
|
1807
1807
|
always: "always";
|
|
1808
1808
|
}>>;
|
|
1809
1809
|
at: z.ZodNumber;
|
|
@@ -1863,9 +1863,9 @@ export declare const GOAL_PEER_ANSWER_SCHEMAS: {
|
|
|
1863
1863
|
ref: z.ZodString;
|
|
1864
1864
|
sha: z.ZodOptional<z.ZodString>;
|
|
1865
1865
|
mirror: z.ZodOptional<z.ZodEnum<{
|
|
1866
|
+
current: "current";
|
|
1866
1867
|
"not-ff": "not-ff";
|
|
1867
1868
|
"fast-forward": "fast-forward";
|
|
1868
|
-
current: "current";
|
|
1869
1869
|
created: "created";
|
|
1870
1870
|
"checked-out": "checked-out";
|
|
1871
1871
|
}>>;
|
|
@@ -1882,9 +1882,9 @@ export declare const GOAL_PEER_ANSWER_SCHEMAS: {
|
|
|
1882
1882
|
}, z.core.$strict>;
|
|
1883
1883
|
readonly 'goal.update': z.ZodObject<{
|
|
1884
1884
|
outcome: z.ZodEnum<{
|
|
1885
|
+
current: "current";
|
|
1885
1886
|
refused: "refused";
|
|
1886
1887
|
merged: "merged";
|
|
1887
|
-
current: "current";
|
|
1888
1888
|
conflicts: "conflicts";
|
|
1889
1889
|
asked: "asked";
|
|
1890
1890
|
}>;
|
|
@@ -2035,8 +2035,8 @@ export declare const CONVERSATION_PEER_SCHEMAS: {
|
|
|
2035
2035
|
row: z.ZodObject<{
|
|
2036
2036
|
id: z.ZodString;
|
|
2037
2037
|
client: z.ZodEnum<{
|
|
2038
|
-
claude: "claude";
|
|
2039
2038
|
codex: "codex";
|
|
2039
|
+
claude: "claude";
|
|
2040
2040
|
}>;
|
|
2041
2041
|
nativeId: z.ZodString;
|
|
2042
2042
|
account: z.ZodString;
|
|
@@ -2052,12 +2052,12 @@ export declare const CONVERSATION_PEER_SCHEMAS: {
|
|
|
2052
2052
|
lastAt: z.ZodNumber;
|
|
2053
2053
|
state: z.ZodEnum<{
|
|
2054
2054
|
running: "running";
|
|
2055
|
-
ended: "ended";
|
|
2056
2055
|
kept: "kept";
|
|
2056
|
+
ended: "ended";
|
|
2057
2057
|
}>;
|
|
2058
2058
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2059
|
-
person: "person";
|
|
2060
2059
|
team: "team";
|
|
2060
|
+
person: "person";
|
|
2061
2061
|
outside: "outside";
|
|
2062
2062
|
}>>;
|
|
2063
2063
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -2072,10 +2072,10 @@ export declare const CONVERSATION_PEER_SCHEMAS: {
|
|
|
2072
2072
|
seq: z.ZodNumber;
|
|
2073
2073
|
at: z.ZodOptional<z.ZodNumber>;
|
|
2074
2074
|
kind: z.ZodEnum<{
|
|
2075
|
-
prompt: "prompt";
|
|
2076
|
-
reply: "reply";
|
|
2077
2075
|
tool: "tool";
|
|
2076
|
+
reply: "reply";
|
|
2078
2077
|
compaction: "compaction";
|
|
2078
|
+
prompt: "prompt";
|
|
2079
2079
|
subagent: "subagent";
|
|
2080
2080
|
}>;
|
|
2081
2081
|
text: z.ZodString;
|
|
@@ -2084,8 +2084,8 @@ export declare const CONVERSATION_PEER_SCHEMAS: {
|
|
|
2084
2084
|
name: z.ZodString;
|
|
2085
2085
|
target: z.ZodOptional<z.ZodString>;
|
|
2086
2086
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2087
|
-
ok: "ok";
|
|
2088
2087
|
error: "error";
|
|
2088
|
+
ok: "ok";
|
|
2089
2089
|
}>>;
|
|
2090
2090
|
output: z.ZodOptional<z.ZodString>;
|
|
2091
2091
|
}, z.core.$strict>>;
|
|
@@ -2094,8 +2094,8 @@ export declare const CONVERSATION_PEER_SCHEMAS: {
|
|
|
2094
2094
|
settles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2095
2095
|
seq: z.ZodNumber;
|
|
2096
2096
|
outcome: z.ZodEnum<{
|
|
2097
|
-
ok: "ok";
|
|
2098
2097
|
error: "error";
|
|
2098
|
+
ok: "ok";
|
|
2099
2099
|
}>;
|
|
2100
2100
|
output: z.ZodOptional<z.ZodString>;
|
|
2101
2101
|
}, z.core.$strict>>>;
|
package/lib/team.d.ts
CHANGED
|
@@ -863,8 +863,13 @@ export interface DashTeamOperate {
|
|
|
863
863
|
role?: string;
|
|
864
864
|
/** Take a held (or abandoned) task back, with why. */
|
|
865
865
|
release?: string;
|
|
866
|
-
/**
|
|
866
|
+
/**
|
|
867
|
+
* Cancel it, with why — and the live work under it with it: its open, held and abandoned tasks, and a QA run's live
|
|
868
|
+
* findings (the board's `foundBy`), each with a line saying what it went with.
|
|
869
|
+
*/
|
|
867
870
|
cancel?: string;
|
|
871
|
+
/** With `cancel`: cancel only the task itself — the live work under it stays open. */
|
|
872
|
+
keepUnder?: boolean;
|
|
868
873
|
note?: string;
|
|
869
874
|
/** A goal's capacity, by role, kind or research — null gives a key back to flow.json's (foodguard-179). */
|
|
870
875
|
capacity?: Record<string, number | null>;
|
|
@@ -1487,12 +1492,16 @@ export interface DashTeamLaunchesAnswer {
|
|
|
1487
1492
|
running: number;
|
|
1488
1493
|
launches: DashTeamLaunch[];
|
|
1489
1494
|
/**
|
|
1490
|
-
* The
|
|
1491
|
-
* runs on one until it resets or the person clears it.
|
|
1495
|
+
* The sign-ins stopped on their quota now — out of credits, past a usage limit (issues/closed/overseer-27): no launch
|
|
1496
|
+
* runs on one until it resets or the person clears it. A stop is one sign-in's — an account's, or the client's own
|
|
1497
|
+
* (2026-11-20: FoodGuard's two used-up Codex accounts read «Codex is out of credits» twice while its other two ran).
|
|
1498
|
+
* Absent while none is, and from an older server.
|
|
1492
1499
|
*/
|
|
1493
1500
|
stopped?: DashTeamClientStop[];
|
|
1501
|
+
/** Each client with a stop: its sign-ins as team launches see them — whether any is free, and the one they run on. */
|
|
1502
|
+
signIns?: DashTeamClientSignIns[];
|
|
1494
1503
|
}
|
|
1495
|
-
/** A
|
|
1504
|
+
/** A sign-in stopped on its quota, as Team › Agents shows it (overseer-27). */
|
|
1496
1505
|
export interface DashTeamClientStop {
|
|
1497
1506
|
client: DashTeamLaunchClient;
|
|
1498
1507
|
at: number;
|
|
@@ -1505,6 +1514,24 @@ export interface DashTeamClientStop {
|
|
|
1505
1514
|
reset: 'given' | 'assumed' | 'held';
|
|
1506
1515
|
why: string;
|
|
1507
1516
|
launchId: string;
|
|
1517
|
+
/**
|
|
1518
|
+
* The account it holds (agent-accounts.ts, `ac-…`): its quota is its own, and launches under the client's other
|
|
1519
|
+
* sign-ins go on. Absent: the client's own sign-in — and every stop from a server older than accounts' own stops.
|
|
1520
|
+
*/
|
|
1521
|
+
account?: string;
|
|
1522
|
+
/** That account's nickname, as the Accounts page and `lensmcp agent <nick>` call it. */
|
|
1523
|
+
accountNick?: string;
|
|
1524
|
+
}
|
|
1525
|
+
/** A client's sign-ins as its team launches see them, beside its stops (2026-11-20). */
|
|
1526
|
+
export interface DashTeamClientSignIns {
|
|
1527
|
+
client: DashTeamLaunchClient;
|
|
1528
|
+
/** The sign-ins a team launch may run on: the client's own (its folder is on this Mac) and its accounts not kept standalone. */
|
|
1529
|
+
total: number;
|
|
1530
|
+
/** Of them, the ones no quota stop holds now — none: the client is out. */
|
|
1531
|
+
free: number;
|
|
1532
|
+
/** The one new launches run on: the client's selected account (its id and nickname) — absent, its own sign-in. */
|
|
1533
|
+
selected?: string;
|
|
1534
|
+
selectedNick?: string;
|
|
1508
1535
|
}
|
|
1509
1536
|
/** `progress.json` beside an archive while it is written, and after: what the writer is doing, or how it ended. */
|
|
1510
1537
|
export interface DashTeamArchiveProgress {
|