@lensmcp/protocol-types 1.26.36 → 1.26.38

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.
Files changed (79) hide show
  1. package/index.d.ts +7 -0
  2. package/index.js +1 -1
  3. package/lib/account-drain.js +1 -1
  4. package/lib/ai-cache-facts.js +1 -1
  5. package/lib/ai-cache-verdict.js +1 -1
  6. package/lib/ai-cache.js +3 -3
  7. package/lib/ai-call-groups.js +2 -2
  8. package/lib/ai-call-row.js +3 -3
  9. package/lib/ai-call.js +9 -9
  10. package/lib/ai-compare.js +3 -3
  11. package/lib/ai-context.js +6 -6
  12. package/lib/ai-origins.js +9 -9
  13. package/lib/ai-together.js +5 -5
  14. package/lib/bounded-clone.js +1 -1
  15. package/lib/bounded-map.js +1 -1
  16. package/lib/bounded-writer.js +1 -1
  17. package/lib/canvas-attachments.js +1 -1
  18. package/lib/canvas-catalog.d.ts +10 -5
  19. package/lib/canvas-catalog.js +1 -1
  20. package/lib/canvas-chat.js +2 -2
  21. package/lib/canvas-diagram.d.ts +130 -0
  22. package/lib/canvas-diagram.js +8 -0
  23. package/lib/canvas-editing.js +4 -4
  24. package/lib/canvas-frame-policy.js +1 -1
  25. package/lib/canvas-hub.js +1 -1
  26. package/lib/canvas.d.ts +9 -5
  27. package/lib/capture-demand.js +1 -1
  28. package/lib/dashboard-path.js +1 -1
  29. package/lib/dashboard.d.ts +2 -0
  30. package/lib/delivery-actions.d.ts +257 -0
  31. package/lib/delivery-actions.js +1 -0
  32. package/lib/delivery-status.d.ts +201 -4
  33. package/lib/docker-errors.js +1 -1
  34. package/lib/docker-jobs.js +1 -1
  35. package/lib/docker-report.js +2 -2
  36. package/lib/docker-runs.js +3 -3
  37. package/lib/error-cause.js +6 -6
  38. package/lib/error-dismissal.js +1 -1
  39. package/lib/error-verdict.js +3 -3
  40. package/lib/event-loop.js +1 -1
  41. package/lib/expected-failure.js +2 -2
  42. package/lib/finding-proof.js +1 -1
  43. package/lib/flood-guard.js +1 -1
  44. package/lib/goal-design.js +1 -1
  45. package/lib/goal-main-follow.d.ts +103 -0
  46. package/lib/goal-main-follow.js +1 -0
  47. package/lib/goal-number.js +1 -1
  48. package/lib/goal-process.d.ts +449 -0
  49. package/lib/goal-process.js +1 -0
  50. package/lib/goal-review.d.ts +126 -0
  51. package/lib/goal-review.js +6 -0
  52. package/lib/host-agents.js +1 -1
  53. package/lib/lens-hosts.js +1 -1
  54. package/lib/lint-coverage.js +1 -1
  55. package/lib/lint-ignores.js +2 -2
  56. package/lib/log-query.js +1 -1
  57. package/lib/metrics-reset.js +1 -1
  58. package/lib/overseer-findings.js +1 -1
  59. package/lib/peers.d.ts +31 -31
  60. package/lib/peers.js +1 -1
  61. package/lib/perf-rules.js +1 -1
  62. package/lib/pod-memory.js +1 -1
  63. package/lib/producer-health.js +1 -1
  64. package/lib/pull-requests.d.ts +33 -2
  65. package/lib/remote-instances.js +1 -1
  66. package/lib/source.d.ts +414 -0
  67. package/lib/source.js +1 -0
  68. package/lib/sources.js +1 -1
  69. package/lib/static-checks.js +1 -1
  70. package/lib/system-report.js +1 -1
  71. package/lib/team-decide.d.ts +191 -0
  72. package/lib/team-decide.js +1 -0
  73. package/lib/team-design.d.ts +43 -7
  74. package/lib/team-design.js +1 -1
  75. package/lib/team-library.d.ts +2 -0
  76. package/lib/team-roadmap.d.ts +44 -2
  77. package/lib/team.d.ts +63 -3
  78. package/lib/team.js +1 -1
  79. package/package.json +1 -1
@@ -0,0 +1,191 @@
1
+ import { type DashTeamDesignRun, type TeamDesignOff, type TeamDesignRole, type TeamTuneChange } from './team-design.js';
2
+ /**
3
+ * What the person decides on Team › Design, and what «Accept all» may take (issues/closed/hub-09) — shared by the page
4
+ * (libs/dashboard-ui DesignView.tsx, which shows the plan) and the server (servers/lensmcp-mcp team-accept-all.ts, which
5
+ * works it out again and accepts only what it still finds safe). Pure; the spec pins it on the real answers' shapes.
6
+ *
7
+ * Two runs make changes to the team's files: the newest tune (small edits, one file each) and the newest design (whole
8
+ * role files, the brief, the flow, roles switched off, first goals). Every change neither accepted nor rejected is to
9
+ * decide. «Accept all» takes the SAFE ones, in one request, in order — the tune's edits file by file, then the design's
10
+ * files. A change is safe when:
11
+ * 1. it still applies — a tune edit whose old text no longer stands in its file does not;
12
+ * 2. it undoes no tune change the person accepted since the design ran;
13
+ * 3. it is not a whole-file rewrite of a file changed since the design read it — nor of a file a safe tune change edits;
14
+ * 4. it switches no role off (and drops no role's file);
15
+ * 5. it sets no manager's `agents` below the goals that run at once (issues/closed/foodguard-336 — `seats`);
16
+ * and it is a change to the team's files: a first goal puts work on the board, and is the person's to place.
17
+ * What it leaves out stays to decide by itself, each with why, in the person's words.
18
+ */
19
+ /** A part of a design the person decides: a role, a role off, the flow, the brief, a first goal. */
20
+ export type DesignPartKey = `role:${string}` | `off:${string}` | 'flow' | 'brief' | `goal:${number}`;
21
+ /** «25 Nov», in the reader's own time. */
22
+ export declare const teamDay: (at: number) => string;
23
+ /** A tune run as the plan reads it. */
24
+ export interface PlanTuneRun {
25
+ id: string;
26
+ status: DashTeamDesignRun['status'];
27
+ startedAt: number;
28
+ finishedAt?: number | undefined;
29
+ tune?: {
30
+ changes: ReadonlyArray<Pick<TeamTuneChange, 'id' | 'file' | 'title' | 'verdict' | 'now'> & {
31
+ effect?: Pick<NonNullable<TeamTuneChange['effect']>, 'agents'> | undefined;
32
+ }>;
33
+ } | undefined;
34
+ }
35
+ /** A design as the plan reads it. */
36
+ export interface PlanDesign {
37
+ version: number;
38
+ roles: ReadonlyArray<Pick<TeamDesignRole, 'id' | 'title' | 'status'>>;
39
+ off: ReadonlyArray<Pick<TeamDesignOff, 'id' | 'own'>>;
40
+ flow: {
41
+ keep: boolean;
42
+ handOffs?: readonly unknown[];
43
+ };
44
+ firstGoals: ReadonlyArray<{
45
+ title: string;
46
+ tasks: readonly unknown[];
47
+ }>;
48
+ }
49
+ /** A design run as the plan reads it. */
50
+ export interface PlanDesignRun {
51
+ id: string;
52
+ status: DashTeamDesignRun['status'];
53
+ startedAt: number;
54
+ finishedAt?: number | undefined;
55
+ design?: PlanDesign | undefined;
56
+ accepted?: DashTeamDesignRun['accepted'] | undefined;
57
+ parts?: DashTeamDesignRun['parts'] | undefined;
58
+ now?: DashTeamDesignRun['now'] | undefined;
59
+ }
60
+ /**
61
+ * The parts of a design the person decides, in the page's order: each role it writes (one already so writes nothing),
62
+ * each role it switches off or drops (a flow-step role never is), the flow when it adds to it, the brief, each first goal.
63
+ */
64
+ export declare function designPartKeys(design: PlanDesign): DesignPartKey[];
65
+ /**
66
+ * The parts of a design run still to decide: none for a run not done or with no design, and none for one accepted
67
+ * before the parts were kept (it was decided whole).
68
+ */
69
+ export declare function designOpenParts(run: PlanDesignRun | undefined): DesignPartKey[];
70
+ /** A tune change still to decide: no verdict, or accepted but not written. */
71
+ export declare const tuneChangeOpen: (c: Pick<TeamTuneChange, "verdict">) => boolean;
72
+ /** What a change does, in a word the page shows beside it. */
73
+ export type TeamDecideWhat = 'edit' | 'new' | 'rewrite' | 'refine' | 'off' | 'drop' | 'flow' | 'brief' | 'goal';
74
+ /** One change to decide. */
75
+ export interface TeamDecideItem {
76
+ /** Unique on the page and in an «Accept all» request: `tune:<runId>:<change id>`, `design:<runId>:<part>`. */
77
+ key: string;
78
+ from: 'tune' | 'design';
79
+ runId: string;
80
+ /** The tune's change id (`c3`), or the design's part (`role:manager`, `off:bug-reporter`, `flow`, `brief`, `goal:0`). */
81
+ id: string;
82
+ /** The file it writes, `.lensmcp/team/…` — none for a first goal. */
83
+ file?: string;
84
+ /** One line: what it changes. */
85
+ title: string;
86
+ what: TeamDecideWhat;
87
+ }
88
+ /** Why «Accept all» leaves a change out. */
89
+ export type TeamLeftReason = 'outdated' | 'undoes' | 'changed-since' | 'clashes' | 'switches-off' | 'goal' | 'version' | 'seats' | 'unknown';
90
+ /**
91
+ * What the plan holds a manager's `agents` to: the roles that run goals (those that take `goal`) and the goals that run
92
+ * at once — Team › Limits, else flow.json `goals.running`, else LensMCP's default.
93
+ */
94
+ export interface TeamManagerSeats {
95
+ roles: string[];
96
+ goalsRunning: number;
97
+ }
98
+ /** A role that runs goals: it takes `goal` — each of its agents claims one, so each running goal needs one of them. */
99
+ export declare const runsGoals: (role: {
100
+ takes: readonly string[];
101
+ }) => boolean;
102
+ /**
103
+ * A manager's `agents` below the goals that run at once (issues/closed/foodguard-336), in the person's words: «manager
104
+ * agents 1 is below goals.running 3: only one goal can have a manager at a time». FoodGuard's manager.md said
105
+ * `agents: 1` with three goals at once: a manager launched for a second goal found the role full at agent_join and
106
+ * exited, paid — twice on 25 Nov. With no `agents`, the role takes one manager per running goal (each LensMCP launch is
107
+ * for one goal). Undefined: the role runs no goals, sets no number, or has a seat for every running goal.
108
+ */
109
+ export declare function managerSeatsShort(role: {
110
+ id: string;
111
+ takes: readonly string[];
112
+ agents?: number | null | undefined;
113
+ }, goalsRunning: number): string | undefined;
114
+ /** A change «Accept all» leaves to the person, with why — accepted or rejected by itself. */
115
+ export interface TeamLeftItem extends TeamDecideItem {
116
+ reason: TeamLeftReason;
117
+ /** In the person's words, with the numbers and the day. */
118
+ why: string;
119
+ /** Accepting it by itself can write it — not an out-of-date tune edit (tune again), nor a design of another version. */
120
+ canAccept: boolean;
121
+ }
122
+ export interface TeamAcceptAllPlan {
123
+ /** Every change to decide: the tune's, then the design's. */
124
+ items: TeamDecideItem[];
125
+ /** What «Accept all» takes, in the order it writes it: the tune's edits file by file, then the design's files. */
126
+ safe: TeamDecideItem[];
127
+ /** What it leaves to the person, each with why — in the order of `items`. */
128
+ left: TeamLeftItem[];
129
+ /** The files «Accept all» writes, in order, each with its changes. */
130
+ files: Array<{
131
+ file: string;
132
+ items: TeamDecideItem[];
133
+ }>;
134
+ }
135
+ /**
136
+ * Every change to decide, what «Accept all» takes and what it leaves out, and why. `tune`: the newest tune run with a
137
+ * change set; `design`: the design the page shows (the newest done one) — each read against the team as it is now (the
138
+ * API's `now`); `seats`: the roles that run goals and the goals at once, which a change's `agents` is held to.
139
+ */
140
+ export declare function teamAcceptAllPlan(input: {
141
+ tune?: PlanTuneRun | undefined;
142
+ design?: PlanDesignRun | undefined;
143
+ seats?: TeamManagerSeats | undefined;
144
+ }): TeamAcceptAllPlan;
145
+ /** `POST /api/team/accept-all`: the safe changes the page showed — `TeamDecideItem.key`s; the server takes those still safe. */
146
+ export interface DashTeamAcceptAll {
147
+ items: string[];
148
+ /** The page's, one per click: the team is told once, a design's goals are never made twice. */
149
+ requestId: string;
150
+ }
151
+ /** What «Accept all» did: the files it wrote in order, the changes written, and what it did not write and why. */
152
+ export interface DashTeamAcceptedAll {
153
+ written: string[];
154
+ accepted: string[];
155
+ /** A change the page showed that is not safe now, or of a file whose changes did not all apply — none of that file's is written. */
156
+ left: Array<{
157
+ key: string;
158
+ file?: string;
159
+ title: string;
160
+ why: string;
161
+ }>;
162
+ problems: string[];
163
+ /** The agents on the team were told to agent_join again. */
164
+ notified?: boolean;
165
+ }
166
+ /** `POST /api/team/design/reject`: parts of a design the person rejects — kept with the run, never written. */
167
+ export interface DashTeamDesignReject {
168
+ runId: string;
169
+ parts: string[];
170
+ }
171
+ /** A run in the History. */
172
+ export interface TeamRunHistory {
173
+ /** What it proposed, in words: «12 changes in 7 files», «5 roles, the brief and 2 goals». */
174
+ proposed: string;
175
+ /** Its parts to decide, and what became of them; `left`: none decided yet. */
176
+ parts: number;
177
+ accepted: number;
178
+ rejected: number;
179
+ left: number;
180
+ /** A design accepted whole, before its parts were kept: the files it wrote and the goals it placed. */
181
+ wrote?: number;
182
+ goals?: number;
183
+ }
184
+ /** A tune's change set in the History: «12 changes in 7 files» — accepted (and written), rejected, still to decide. */
185
+ export declare function tuneHistory(tune: {
186
+ changes: ReadonlyArray<Pick<TeamTuneChange, 'file' | 'verdict'>>;
187
+ }): TeamRunHistory;
188
+ /** A design in the History: «5 roles, the brief and 2 goals» — its parts accepted, rejected, left; or what an accept of the whole wrote. */
189
+ export declare function designHistory(run: Pick<PlanDesignRun, 'design' | 'accepted' | 'parts'> & {
190
+ design: PlanDesign;
191
+ }): TeamRunHistory;
@@ -0,0 +1 @@
1
+ "use strict";var R=Object.defineProperty;var p=(e,t)=>R(e,"name",{value:t,configurable:!0});var N=Object.defineProperty,w=p((e,t)=>N(e,"name",{value:t,configurable:!0}),"p"),E=Object.defineProperty,l=w((e,t)=>E(e,"name",{value:t,configurable:!0}),"i");import{TEAM_DESIGN_VERSION as J}from"./team-design.js";const B=["tester","reviewer","qa","docs"],M=".lensmcp/team",O=l(e=>`${M}/roles/${e}.md`,"roleFile"),F=`${M}/project.md`,K=`${M}/flow.json`,C=l(e=>e.slice(e.lastIndexOf("/")+1),"base"),v=l((e,t,n=`${t}s`)=>`${e.toLocaleString("en-US")} ${e===1?t:n}`,"plural"),T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];export const teamDay=l(e=>{const t=new Date(e);return`${t.getDate()} ${T[t.getMonth()]}`},"teamDay");export function designPartKeys(e){return[...e.roles.filter(t=>t.status!=="same").map(t=>`role:${t.id}`),...e.off.filter(t=>!B.includes(t.id)).map(t=>`off:${t.id}`),...e.flow.keep===!1?["flow"]:[],"brief",...e.firstGoals.map((t,n)=>`goal:${n}`)]}p(designPartKeys,"designPartKeys"),w(designPartKeys,"designPartKeys"),l(designPartKeys,"designPartKeys");export function designOpenParts(e){return!e||e.status!=="done"||!e.design?[]:e.accepted&&!e.parts?[]:designPartKeys(e.design).filter(t=>!e.parts?.[t])}p(designOpenParts,"designOpenParts"),w(designOpenParts,"designOpenParts"),l(designOpenParts,"designOpenParts");export const tuneChangeOpen=l(e=>!e.verdict||e.verdict.is==="accepted"&&!!e.verdict.problem,"tuneChangeOpen"),runsGoals=l(e=>e.takes.includes("goal"),"runsGoals");export function managerSeatsShort(e,t){const n=e.agents;if(!(!runsGoals(e)||n===void 0||n===null||n>=t))return`${e.id} agents ${n} is below goals.running ${t}: ${P(e.id,n)}`}p(managerSeatsShort,"managerSeatsShort"),w(managerSeatsShort,"managerSeatsShort"),l(managerSeatsShort,"managerSeatsShort");function P(e,t){const n=e==="manager"?"a manager":`a ${e}`;return t===0?`no goal can have ${n}`:t===1?`only one goal can have ${n} at a time`:`only ${t} goals can have ${n} at a time`}p(P,"M"),w(P,"P"),l(P,"seatsLeft");function j(e,t,n){if(!n||!e.file||!t?.agents)return;const o=n.roles.find(c=>e.file===O(c)),s=t.agents[1];if(!(!o||s===void 0||s===null||s>=n.goalsRunning))return`It sets ${o} agents to ${s}, below goals.running ${n.goalsRunning}: ${P(o,s)}. Leave the line out \u2014 one ${o} per running goal \u2014 or set it to ${n.goalsRunning} or more.`}p(j,"P"),w(j,"W"),l(j,"seatsWhy");const _={new:l(e=>`Adds the ${e} role \u2014 a new file, ${e}.md`,"new"),rewrite:l(e=>`Rewrites ${e}.md whole`,"rewrite"),refine:l(e=>`Writes ${e}.md over LensMCP\u2019s default ${e}`,"refine")};function G(e,t,n){const o={from:"design",runId:e.id,id:n,key:`design:${e.id}:${n}`};if(n.startsWith("role:")){const f=n.slice(5),a=e.now?.roles.find($=>$.id===f),g=t.roles.find($=>$.id===f),y=a?a.is==="new"?"new":a.is==="refines"?"refine":"rewrite":g?.status==="new"?"new":"rewrite";return{...o,file:a?.file??O(f),title:_[y](f),what:y}}if(n.startsWith("off:")){const f=n.slice(4),a=!!t.off.find(g=>g.id===f)?.own;return{...o,file:O(f),title:a?`Drops the ${f} role \u2014 deletes ${f}.md`:`Switches the ${f} role off`,what:a?"drop":"off"}}if(n==="flow"){const f=t.flow.handOffs?.length??0;return{...o,file:K,title:`Adds ${v(f,"hand-off")} to the flow (flow.json)`,what:"flow"}}if(n==="brief")return{...o,file:F,title:e.now?.brief?.exists===!1?"Writes the project brief (project.md)":"Rewrites the project brief (project.md) whole",what:"brief"};const s=Number(n.slice(5)),c=t.firstGoals[s];return{...o,title:`Puts the goal \xAB${c?.title??`first goal ${s+1}`}\xBB on the board`,what:"goal"}}p(G,"L"),w(G,"C"),l(G,"designItem");export function teamAcceptAllPlan(e){const t=[],n=[],o=[],s=l((i,d,m,u=!0)=>n.push({...i,reason:d,why:m,canAccept:u}),"leave"),c=e.tune?.status==="done"?e.tune:void 0;for(const i of c?.tune?.changes??[]){if(!tuneChangeOpen(i))continue;const d={key:`tune:${c.id}:${i.id}`,from:"tune",runId:c.id,id:i.id,file:i.file,title:i.title,what:"edit"};t.push(d);const m=j(d,i.effect,e.seats);i.now?.applies===!1?s(d,"outdated",`It no longer fits ${C(i.file)} as it is now \u2014 the file changed after the tune read it. Tune again for a fresh change.`,!1):m?s(d,"seats",m):o.push(d)}const f=new Map;for(const i of o)f.set(i.file,(f.get(i.file)??0)+1);const a=e.design,g=a?.design,y=[];if(a&&g){const i=teamDay(a.startedAt),d=(c?.tune?.changes??[]).filter(u=>u.verdict?.is==="accepted"&&!u.verdict.problem),m=new Map(d.map(u=>[u.id,u.verdict.at]));for(const u of designOpenParts(a)){const r=G(a,g,u);t.push(r);const x=r.file?C(r.file):"";if(g.version!==J){s(r,"version","It was made by another version of LensMCP and cannot be written \u2014 design again.",!1);continue}if(r.what==="goal"){const h=g.firstGoals[Number(u.slice(5))]?.tasks.length??0;s(r,"goal",`It puts work on the board${h?` \u2014 a goal and ${v(h,"task")}`:""}: a manager staffs it and agents start. Place it yourself.`);continue}if(r.what==="off"||r.what==="drop"){const h=u.slice(4);s(r,"switches-off",r.what==="drop"?`It deletes ${x}: the ${h} role goes, and its open tasks wait for no one.`:`It switches ${h} off: its open tasks wait for no one until another role takes them.`);continue}const b=u.startsWith("role:")?a.now?.roles.find(h=>h.id===u.slice(5)):void 0,k=u==="brief"?a.now?.brief:u==="flow"?a.now?.flow:b?{exists:b.is==="replaces",changedSince:b.changedSince}:void 0;if(!k){s(r,"unknown",`LensMCP cannot tell whether ${x} changed after the design read it on ${i} \u2014 look at it first.`);continue}const A=b?b.undoes??[]:d.filter(h=>h.file===r.file&&h.verdict.at>a.startedAt).map(h=>({id:h.id}));if(A.length){const h=A.map(I=>m.get(I.id)).filter(I=>I!==void 0),L=h.length?` on ${teamDay(Math.max(...h))}`:" since this design ran";s(r,"undoes",`It would undo ${v(A.length,"tune change")} you accepted${L}.`);continue}if(k.exists&&k.changedSince){s(r,"changed-since",`${x} changed after the design read it on ${i}: rewriting it whole would lose those changes.`);continue}const D=j(r,b?.effect,e.seats);if(D){s(r,"seats",D);continue}const S=r.file?f.get(r.file):void 0;if(k.exists&&S){s(r,"clashes",`It rewrites ${x} whole, and \xABAccept all\xBB takes ${v(S,"tune change")} to ${x}: it would undo ${S===1?"it":"them"}.`);continue}y.push(r)}}const $=[];for(const i of[...o,...y]){const d=$.find(m=>m.file===i.file);d?d.items.push(i):$.push({file:i.file,items:[i]})}const H=$.flatMap(i=>i.items),W=new Map(t.map((i,d)=>[i.key,d]));return{items:t,safe:H,left:n.sort((i,d)=>W.get(i.key)-W.get(d.key)),files:$}}p(teamAcceptAllPlan,"teamAcceptAllPlan"),w(teamAcceptAllPlan,"teamAcceptAllPlan"),l(teamAcceptAllPlan,"teamAcceptAllPlan");const q=l(e=>e.length>1?`${e.slice(0,-1).join(", ")} and ${e.at(-1)}`:e.join(""),"listWords");export function tuneHistory(e){const t=e.changes.length,n=new Set(e.changes.map(c=>c.file)).size,o=e.changes.filter(c=>c.verdict?.is==="accepted"&&!c.verdict.problem).length,s=e.changes.filter(c=>c.verdict?.is==="rejected").length;return{proposed:t?`${v(t,"change")} in ${v(n,"file")}`:"no change",parts:t,accepted:o,rejected:s,left:t-o-s}}p(tuneHistory,"tuneHistory"),w(tuneHistory,"tuneHistory"),l(tuneHistory,"tuneHistory");export function designHistory(e){const t=e.design,n=t.off.filter(g=>!B.includes(g.id)).length,o=q([v(t.roles.length,"role"),...n?[`${n} off`]:[],...t.flow.keep===!1?["the flow"]:[],"the brief",...t.firstGoals.length?[v(t.firstGoals.length,"goal")]:[]]),s=designPartKeys(t);if(e.accepted&&!e.parts)return{proposed:o,parts:s.length,accepted:0,rejected:0,left:0,wrote:e.accepted.files.length,goals:e.accepted.goals.length};const c=s.map(g=>e.parts?.[g]?.is),f=c.filter(g=>g==="accepted").length,a=c.filter(g=>g==="rejected").length;return{proposed:o,parts:s.length,accepted:f,rejected:a,left:s.length-f-a}}p(designHistory,"designHistory"),w(designHistory,"designHistory"),l(designHistory,"designHistory");
@@ -1,4 +1,5 @@
1
1
  import type { DashTeamKind } from './team.js';
2
+ import type { TeamManagerSeats, TeamRunHistory } from './team-decide.js';
2
3
  /**
3
4
  * Team design (planning/team/01-team-design.md): LensMCP reads a project — a dossier it builds itself, then Claude's
4
5
  * own research with the code tools — and proposes the team that should work on it: the project as understood, its
@@ -53,8 +54,11 @@ export interface TeamDesignRole {
53
54
  creates: DashTeamKind[] | 'any';
54
55
  wip: number;
55
56
  worktree: 'own' | 'shared' | 'any';
56
- /** How many agents to run in it, and whether to start them now or once the work is there. */
57
- agents: number;
57
+ /**
58
+ * How many agents to run in it, and whether to start them now or once the work is there. None for the role that runs
59
+ * goals (the manager): one per running goal — a design never caps it (issues/closed/foodguard-336).
60
+ */
61
+ agents?: number;
58
62
  start: 'now' | 'later';
59
63
  /** Its rules, as tagged sections (`<rules id note>…</rules>`). */
60
64
  rules: string;
@@ -113,6 +117,18 @@ export interface TeamDesignFirstGoal {
113
117
  title: string;
114
118
  description: string;
115
119
  priority: number;
120
+ /**
121
+ * How long it takes a manager's team of agents, in agent hours (issues/closed/foodguard-335): accepted, the goal goes
122
+ * on the roadmap with it as a rough estimate (`design`) until the planner's. `rough`: the model gave none and LensMCP
123
+ * made it from the tasks (1.5 h each).
124
+ */
125
+ estimate?: {
126
+ low: number;
127
+ likely: number;
128
+ high: number;
129
+ why?: string;
130
+ rough?: true;
131
+ };
116
132
  tasks: Array<{
117
133
  kind: DashTeamKind;
118
134
  role?: string;
@@ -227,12 +243,24 @@ export interface DashTeamDesignRun {
227
243
  error?: string;
228
244
  refused?: 'no-key' | 'over-daily-cap' | 'no-room';
229
245
  design?: TeamDesign;
230
- /** The design was accepted (when, and what it wrote). */
246
+ /** The design was accepted (when, and what it wrote) — the newest accept's time, every accept's files and goals. */
231
247
  accepted?: {
232
248
  at: number;
233
249
  files: string[];
234
250
  goals: string[];
235
251
  };
252
+ /**
253
+ * Each part the person decided (issues/closed/hub-09, team-decide.ts `designPartKeys`): `role:<id>`, `off:<id>`,
254
+ * `flow`, `brief`, `goal:<index>` — accepted (written, or put on the board) or rejected, and when. A part with no
255
+ * verdict is still to decide, so a design accepted in part stays open for the rest. A design accepted before the parts
256
+ * were kept (`accepted` and no `parts`) was decided whole.
257
+ */
258
+ parts?: Record<string, {
259
+ is: 'accepted' | 'rejected';
260
+ at: number;
261
+ }>;
262
+ /** On a light run (the History): what it proposed and what became of it — team-decide.ts `designHistory`, `tuneHistory`. */
263
+ history?: TeamRunHistory;
236
264
  /**
237
265
  * A done design not accepted yet, against the team as it is NOW (planning/team/27): per role what accepting it would
238
266
  * change in that role's file, and what it would undo. Worked out on every read with no model; never kept.
@@ -395,6 +423,11 @@ export interface DashTeamDesignState {
395
423
  roles: number;
396
424
  tuned: number;
397
425
  };
426
+ /**
427
+ * The roles that run goals and the goals at once (issues/closed/foodguard-336): a change that sets such a role's
428
+ * `agents` below them waits under «Needs a look» (team-decide.ts). Unreadable: not said, and nothing is held for it.
429
+ */
430
+ seats?: TeamManagerSeats;
398
431
  /**
399
432
  * What a design started now may spend and research (planning/team/08 TH-D1): Settings › Features «Team design
400
433
  * ceiling» ($50 unless set), and the tool calls that buys — its own, apart from the click and agent allowances.
@@ -442,9 +475,10 @@ export type TeamCheckupGroup = (typeof TEAM_CHECKUP_GROUPS)[number];
442
475
  * What an item says, by group:
443
476
  * - drift — `base-moved`: the library role a role file builds on changed since the file was written against it;
444
477
  * `base-unrecorded`: the file does not say which version of its base it was written against;
445
- * - lint — the team lint's kinds (libs/storage team-lint.ts): `dangling-role`, `dangling-tool`, `dangling-skill`,
446
- * `old-flow`, `duplicate-of-base`, `filler-reason`, `cap-mismatch`, `copied`, `check-unread`, `failed-twice`,
447
- * `lesson-stale`;
478
+ * - lint — `manager-seats`: the role that runs goals takes fewer agents than the goals that run at once, so a goal past
479
+ * them has no manager (issues/closed/foodguard-336); and the team lint's kinds (libs/storage team-lint.ts):
480
+ * `dangling-role`, `dangling-tool`, `dangling-skill`, `old-flow`, `duplicate-of-base`, `filler-reason`,
481
+ * `cap-mismatch`, `copied`, `check-unread`, `failed-twice`, `lesson-stale`;
448
482
  * - skills — `skills-unheld`: project skills no role holds; `role-without-skills`: a role whose kind of work has
449
483
  * project skills and holds none — a finding with the names that match, never a patch: names are not the skills'
450
484
  * descriptions, and «Tune the team» reads those (planning/team/27 F2);
@@ -452,7 +486,7 @@ export type TeamCheckupGroup = (typeof TEAM_CHECKUP_GROUPS)[number];
452
486
  * a role file's rules past the length a join carries well; `past-cut`, `long-craft`: text a join cuts or carries long;
453
487
  * - proposals — `open-proposal`: a retrospective's or the overseer's open proposal about the team's files.
454
488
  */
455
- export declare const TEAM_CHECKUP_KINDS: readonly ["base-moved", "base-unrecorded", "dangling-role", "dangling-tool", "dangling-skill", "old-flow", "duplicate-of-base", "filler-reason", "cap-mismatch", "copied", "check-unread", "failed-twice", "lesson-stale", "skills-unheld", "role-without-skills", "heavy-instructions", "heavy-rules", "past-cut", "long-craft", "open-proposal"];
489
+ export declare const TEAM_CHECKUP_KINDS: readonly ["base-moved", "base-unrecorded", "manager-seats", "dangling-role", "dangling-tool", "dangling-skill", "old-flow", "duplicate-of-base", "filler-reason", "cap-mismatch", "copied", "check-unread", "failed-twice", "lesson-stale", "skills-unheld", "role-without-skills", "heavy-instructions", "heavy-rules", "past-cut", "long-craft", "open-proposal"];
456
490
  export type TeamCheckupKind = (typeof TEAM_CHECKUP_KINDS)[number];
457
491
  /** One line of a team file changed: replaced, removed, or a new line put after it. `old` is the whole line as it is now. */
458
492
  export interface TeamCheckupEdit {
@@ -649,6 +683,8 @@ export interface DashTeamDesignState {
649
683
  latest?: DashTeamDesignRun;
650
684
  /** The newest finished tune, when the newest run is another. */
651
685
  done?: DashTeamDesignRun;
686
+ /** Every tune run, newest first, at most 20 — light, each with its `history` (the page's History). */
687
+ runs?: DashTeamDesignRun[];
652
688
  /** Settings › Design «Team tune ceiling» ($10 unless set), held to what the day's design allowance has left. */
653
689
  ceiling: {
654
690
  usd: number;
@@ -1 +1 @@
1
- "use strict";export const TEAM_DESIGN_VERSION=1,TEAM_CHECKUP_GROUPS=["drift","lint","skills","weight","proposals"],TEAM_CHECKUP_KINDS=["base-moved","base-unrecorded","dangling-role","dangling-tool","dangling-skill","old-flow","duplicate-of-base","filler-reason","cap-mismatch","copied","check-unread","failed-twice","lesson-stale","skills-unheld","role-without-skills","heavy-instructions","heavy-rules","past-cut","long-craft","open-proposal"];
1
+ "use strict";export const TEAM_DESIGN_VERSION=1,TEAM_CHECKUP_GROUPS=["drift","lint","skills","weight","proposals"],TEAM_CHECKUP_KINDS=["base-moved","base-unrecorded","manager-seats","dangling-role","dangling-tool","dangling-skill","old-flow","duplicate-of-base","filler-reason","cap-mismatch","copied","check-unread","failed-twice","lesson-stale","skills-unheld","role-without-skills","heavy-instructions","heavy-rules","past-cut","long-craft","open-proposal"];
@@ -62,6 +62,8 @@ export interface DashTeamTemplateMember {
62
62
  member: string;
63
63
  title: string;
64
64
  agents: number;
65
+ /** It runs goals (the manager): its file sets no `agents` — one per running goal (issues/closed/foodguard-336). */
66
+ perGoal?: true;
65
67
  start?: 'now' | 'later';
66
68
  }
67
69
  /**
@@ -44,10 +44,18 @@ 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, an accepted planner proposal, or a user-directed agent edit. */
47
+ /**
48
+ * Where a goal's estimate came from: the person's numbers (`user`), an accepted planner proposal (`planner`), a
49
+ * user-directed agent edit (`agent`) — or LensMCP's own, for a goal that had none (issues/closed/foodguard-335): the
50
+ * planner's estimate it applied itself (`lensmcp`), or a rough one from the goal's design — its budget's hours, its
51
+ * plan's minutes, or the team design that proposed it — until the planner's (`design`). LensMCP replaces only its own;
52
+ * a proposal that would change anyone else's waits for the person (RM-D5).
53
+ */
48
54
  export interface EstimateSource {
49
- by: 'user' | 'planner' | 'agent';
55
+ by: 'user' | 'planner' | 'agent' | 'lensmcp' | 'design';
50
56
  at: number;
57
+ /** LensMCP's own (`lensmcp`, `design`): the version of the goal's design it was made for — 0 before the first. */
58
+ version?: number;
51
59
  /** The planner proposal the estimate was accepted from. */
52
60
  proposalId?: string;
53
61
  confidence?: 'low' | 'medium' | 'high';
@@ -200,6 +208,8 @@ export interface RoadmapGoal {
200
208
  * took. After a squash the tip is not on main, so this commit is the goal's output there.
201
209
  */
202
210
  integration?: import('./team.js').DashTeamGoalIntegration;
211
+ /** How many versions of its design were handed in (0: none yet) — what LensMCP's own estimate was made for (foodguard-335). */
212
+ designVersion?: number;
203
213
  }
204
214
  export interface RoadmapAnswer {
205
215
  now: number;
@@ -272,6 +282,11 @@ export interface PlannerGoalProposal {
272
282
  }>;
273
283
  /** Design prerequisite keys it could not match to a goal. */
274
284
  unmapped?: string[];
285
+ /**
286
+ * When LensMCP applied this estimate (and label) itself (issues/closed/foodguard-335): the goal had none, or only
287
+ * LensMCP's own. Its links still wait for the person; with none, the goal is `accepted`.
288
+ */
289
+ applied?: number;
275
290
  state: 'proposed' | 'accepted' | 'skipped';
276
291
  }
277
292
  export interface PlannerProposal {
@@ -279,6 +294,8 @@ export interface PlannerProposal {
279
294
  at: number;
280
295
  /** `all` = Plan all (a click), `goal` = one goal on design approval, `remaining` = a running goal past its high. */
281
296
  kind: 'all' | 'goal' | 'remaining';
297
+ /** Who started it: the person (`click`), or the planner's own look (`auto`: a goal with no estimate, foodguard-335). */
298
+ trigger?: 'click' | 'auto';
282
299
  state: 'running' | 'ready' | 'failed' | 'decided';
283
300
  model?: string;
284
301
  costUsd?: number;
@@ -309,12 +326,37 @@ export interface RoadmapPlannerState {
309
326
  dailyUsd: number;
310
327
  /** Goals live and not estimated (what Plan all would plan). */
311
328
  unplanned: number;
329
+ /** LensMCP's automatic estimates (issues/closed/foodguard-335): what waits for one, and why none runs now. */
330
+ auto?: PlannerAutoState;
312
331
  /** When «next week» starts (RM-D9: Settings `roadmapWeekStart` + `roadmapDayStart`, the machine's time zone), UTC ms. */
313
332
  nextWeekAt: number;
314
333
  /** Tomorrow at the day's start hour, UTC ms. */
315
334
  tomorrowAt: number;
316
335
  proposals: PlannerProposal[];
317
336
  }
337
+ /**
338
+ * LensMCP's automatic estimates (issues/closed/foodguard-335): every live goal with no estimate — or only LensMCP's own,
339
+ * made for an older version of its design — gets the planner's, one call per goal and version on the `auto` trigger,
340
+ * within the planner's daily allowance, at most one a minute, with a backoff after a failure.
341
+ */
342
+ export interface PlannerAutoState {
343
+ /** Why no automatic estimate is made now, in words — absent while they run. */
344
+ paused?: string;
345
+ /** What stops them: the planner off, no key, today's allowance spent, a backoff after a failure, the team off here. */
346
+ pausedBy?: 'off' | 'key' | 'spent' | 'backoff' | 'disabled';
347
+ /** The goals waiting for one, first first. */
348
+ queued: string[];
349
+ /** The one being estimated now. */
350
+ running?: string;
351
+ /** After a failed call, none starts before this. */
352
+ backoffUntil?: number;
353
+ /** The last failure, in words. */
354
+ lastError?: string;
355
+ /** Goals LensMCP gave up on for the version they are at (three failed calls): Plan it tries again. */
356
+ gaveUp?: string[];
357
+ /** When the planner first queued every live goal with no estimate (once, on the first look after the upgrade). */
358
+ backfilledAt?: number;
359
+ }
318
360
  /**
319
361
  * POST /api/team/roadmap/ask `{ text, revision }`: Claude reads the sentence into operations; LensMCP previews them at
320
362
  * the given revision. Nothing is applied — the page sends `ops` back as `{ action: 'ops', preview: false }`.
package/lib/team.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { DashTeamTaskDesign, DesignStage } from './goal-design.js';
2
+ import type { DashGoalAutoMerge, DashGoalMainFollow, DashMergeOf } from './goal-main-follow.js';
2
3
  import type { TaskTiming } from './task-timing.js';
3
4
  import type { ForcedIntegration, ForcedItem, GoalAdmission, PackageDeliverySummary } from './team-delivery.js';
4
5
  /**
@@ -11,13 +12,13 @@ import type { ForcedIntegration, ForcedItem, GoalAdmission, PackageDeliverySumma
11
12
  * What kind of work a task is: it names the role that takes it. `goal`: what a manager breaks into the others' tasks;
12
13
  * `marketing`: telling people about the product (launch posts, release notes, landing and store copy).
13
14
  */
14
- export declare const DASH_TEAM_KINDS: readonly ["goal", "build", "bug", "review", "test", "qa", "docs", "marketing", "research", "chore"];
15
+ export declare const DASH_TEAM_KINDS: readonly ["goal", "build", "bug", "review", "test", "qa", "docs", "marketing", "research", "chore", "merge"];
15
16
  export type DashTeamKind = (typeof DASH_TEAM_KINDS)[number];
16
17
  /** `design`: a goal waiting for its design to be approved (planning/team/20 DF-D1) — no one claims it, or anything under it. */
17
18
  export type DashTeamTaskState = 'design' | 'open' | 'claimed' | 'recovery' | 'completed' | 'cancelled';
18
19
  export type DashTeamOutcome = 'done' | 'approved' | 'changes-requested' | 'passed' | 'failed' | 'wontfix';
19
20
  /** What a task points at in the lens or the repository. */
20
- export declare const DASH_TEAM_LINK_KINDS: readonly ["task", "flow", "error", "suggestion", "ai-call", "review", "page", "route", "commit", "branch", "worktree", "file", "finding", "test"];
21
+ export declare const DASH_TEAM_LINK_KINDS: readonly ["task", "flow", "error", "suggestion", "ai-call", "review", "page", "route", "commit", "branch", "worktree", "file", "finding", "test", "canvas"];
21
22
  export interface DashTeamLink {
22
23
  kind: (typeof DASH_TEAM_LINK_KINDS)[number];
23
24
  id: string;
@@ -106,6 +107,8 @@ export interface DashTeamGoalPr {
106
107
  mergedAt?: number;
107
108
  /** The commit its merge made on origin's main. */
108
109
  mergeCommit?: string;
110
+ /** What LensMCP's auto-merge waits on, and the merge it ran (issues/closed/hub-19). */
111
+ autoMerge?: DashGoalAutoMerge;
109
112
  }
110
113
  export interface DashTeamTask {
111
114
  delivery?: PackageDeliverySummary;
@@ -170,6 +173,10 @@ export interface DashTeamTask {
170
173
  integration?: DashTeamGoalIntegration;
171
174
  /** A goal's ONE pull request as the team keeps it (issues/closed/foodguard-313): on the board and in the drawer. */
172
175
  pr?: DashTeamGoalPr;
176
+ /** A goal's branch against origin's main (issues/closed/hub-19): behind it by how much, and whether its manager was told. */
177
+ mainFollow?: DashGoalMainFollow;
178
+ /** A `merge` task's pull request (the PR merger's, hub-19): the goal, the pull request, what it waits on. */
179
+ mergeOf?: DashMergeOf;
173
180
  /** Marked done by the person (issues/closed/overseer-70): the commit, why, who — its proof not run, never a QA pass. */
174
181
  personDone?: DashTeamPersonDone;
175
182
  /** Closed «not run — the person's decision» (issues/closed/overseer-78): who, why — never passed, never written. */
@@ -451,7 +458,7 @@ export interface DashTeamLimitsChange {
451
458
  session?: string;
452
459
  name?: string;
453
460
  why?: string;
454
- /** `goalsMax`, `share`, `capacity.<key>`, `ceilings.<key>`; `null`: none — no cap; `cleared`: back to the files or the default. */
461
+ /** `goalsMax`, `share`, `qaRuns`, `capacity.<key>`, `ceilings.<key>`; `null`: none — no cap; `cleared`: back to the files or the default. */
455
462
  changes: Array<{
456
463
  key: string;
457
464
  from: number | null;
@@ -479,6 +486,10 @@ export interface DashTeamLimits {
479
486
  share: DashTeamLimitValue & {
480
487
  value: number;
481
488
  };
489
+ /** Goal QA runs at once in the repository — flow.json `caps.qa`, set live here (issues/closed/foodguard-326). None: an older dashboard. */
490
+ qaRuns?: DashTeamLimitValue & {
491
+ value: number;
492
+ };
482
493
  rows: DashTeamLimitRow[];
483
494
  power?: DashTeamGoalPower;
484
495
  /** The goals running now, the oldest first. */
@@ -506,6 +517,10 @@ export interface DashTeamLimits {
506
517
  min: number;
507
518
  max: number;
508
519
  };
520
+ qaRuns?: {
521
+ min: number;
522
+ max: number;
523
+ };
509
524
  shares: number[];
510
525
  most: number;
511
526
  };
@@ -520,6 +535,7 @@ export interface DashTeamLimits {
520
535
  export interface DashTeamLimitsPatch {
521
536
  goalsMax?: number | null;
522
537
  share?: number | null;
538
+ qaRuns?: number | null;
523
539
  capacity?: Record<string, number | null>;
524
540
  ceilings?: Record<string, number | null>;
525
541
  }
@@ -1484,6 +1500,24 @@ export interface DashTeamLaunchKit {
1484
1500
  why: string;
1485
1501
  lists: number;
1486
1502
  }>;
1503
+ /**
1504
+ * What the client listed at its first request (issues/closed/foodguard-329), read once from the opening `system/init`
1505
+ * of its stream: how many skills, and the plugins that listed skills though the launch switched them off (`back`) or
1506
+ * never named them (`stray`), each with how many. `miss`: why that is not the listing the launch made — absent when it is.
1507
+ */
1508
+ seen?: {
1509
+ at: number;
1510
+ skills: number;
1511
+ back: Array<{
1512
+ plugin: string;
1513
+ skills: number;
1514
+ }>;
1515
+ stray: Array<{
1516
+ plugin: string;
1517
+ skills: number;
1518
+ }>;
1519
+ miss?: string;
1520
+ };
1487
1521
  };
1488
1522
  }
1489
1523
  export interface DashTeamLaunch {
@@ -1606,6 +1640,12 @@ export interface DashTeamManagerSignIns {
1606
1640
  client?: DashTeamLaunchClient;
1607
1641
  /** The goal's own account (`lensmcp agent task <goal> --account`): Auto takes it, and it alone. */
1608
1642
  goalAccount?: string;
1643
+ /**
1644
+ * Why a start would be refused now, before anything starts (issues/closed/foodguard-336) — the manager role's seats
1645
+ * full among the reasons: «The manager role takes 1 agent at once and G-182's manager holds it. Raise manager agents
1646
+ * to 3 in Team › Roles, or wait for G-182». Absent: it may start.
1647
+ */
1648
+ refused?: string;
1609
1649
  clients: Array<{
1610
1650
  client: DashTeamLaunchClient;
1611
1651
  /** The sign-in Auto takes now — its account id, `null` its own sign-in; absent: none is ready. */
@@ -1969,6 +2009,16 @@ export type DashTeamQuestionState = 'manager' | 'person' | 'answered' | 'withdra
1969
2009
  export interface DashTeamQuestionOption {
1970
2010
  label: string;
1971
2011
  detail?: string;
2012
+ /** The team limits it sets when the person picks it (issues/closed/foodguard-326) — LensMCP applies them as the person's change. */
2013
+ limits?: DashTeamLimitsPatch;
2014
+ /** The runs of a goal's QA task it waives as environment failures when the person picks it (foodguard-326), and why. */
2015
+ waive?: {
2016
+ taskId: string;
2017
+ runs: string[];
2018
+ why: string;
2019
+ };
2020
+ /** LensMCP's words for what picking it does: «LensMCP sets goal QA runs at once 1 → 2 …», «LensMCP records the person's waiver of wa_… …». */
2021
+ applies?: string;
1972
2022
  }
1973
2023
  /** Who answered: the manager it went to, the person (the dashboard's Inbox, the CLI), or the person's delegate — their inbox session. */
1974
2024
  export interface DashTeamQuestionAnswer {
@@ -1980,6 +2030,16 @@ export interface DashTeamQuestionAnswer {
1980
2030
  byName?: string;
1981
2031
  as: 'manager' | 'person' | 'delegate';
1982
2032
  at: number;
2033
+ /** What came of the picked option's limits change: applied by the person's pick, or not (a delegate's pick changes none). */
2034
+ limits?: {
2035
+ applied: boolean;
2036
+ text: string;
2037
+ };
2038
+ /** What came of the picked option's waiver: recorded on its QA task by the person's pick, or not. */
2039
+ waiver?: {
2040
+ applied: boolean;
2041
+ text: string;
2042
+ };
1983
2043
  }
1984
2044
  /**
1985
2045
  * One agent's question (agent_ask, the store's `CoordinationQuestion`): its asker, the task and goal it is about, the
package/lib/team.js CHANGED
@@ -1 +1 @@
1
- "use strict";var o=Object.defineProperty;var r=(t,e)=>o(t,"name",{value:e,configurable:!0});var i=Object.defineProperty,n=r((t,e)=>i(t,"name",{value:e,configurable:!0}),"o");export const DASH_TEAM_KINDS=["goal","build","bug","review","test","qa","docs","marketing","research","chore"],DASH_TEAM_LINK_KINDS=["task","flow","error","suggestion","ai-call","review","page","route","commit","branch","worktree","file","finding","test"];export function modelClient(t){const e=t?.trim()??"";if(/\b(claude|opus|sonnet|haiku|fable)\b/i.test(e))return"claude";if(/^(gpt|o\d+|codex)\b/i.test(e))return"codex"}r(modelClient,"modelClient"),n(modelClient,"modelClient");export const DASH_TEAM_SEARCH_QUESTION_MAX=300;
1
+ "use strict";var o=Object.defineProperty;var r=(t,e)=>o(t,"name",{value:e,configurable:!0});var i=Object.defineProperty,a=r((t,e)=>i(t,"name",{value:e,configurable:!0}),"r");export const DASH_TEAM_KINDS=["goal","build","bug","review","test","qa","docs","marketing","research","chore","merge"],DASH_TEAM_LINK_KINDS=["task","flow","error","suggestion","ai-call","review","page","route","commit","branch","worktree","file","finding","test","canvas"];export function modelClient(t){const e=t?.trim()??"";if(/\b(claude|opus|sonnet|haiku|fable)\b/i.test(e))return"claude";if(/^(gpt|o\d+|codex)\b/i.test(e))return"codex"}r(modelClient,"modelClient"),a(modelClient,"modelClient");export const DASH_TEAM_SEARCH_QUESTION_MAX=300;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensmcp/protocol-types",
3
- "version": "1.26.36",
3
+ "version": "1.26.38",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",