@lensmcp/protocol-types 1.26.17 → 1.26.19
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/ai-cache-facts.js +1 -1
- package/lib/ai-cache-verdict.js +1 -1
- package/lib/ai-cache.js +3 -3
- package/lib/ai-call-groups.js +2 -2
- package/lib/ai-call-row.js +3 -3
- package/lib/ai-call.js +9 -9
- package/lib/ai-compare.js +3 -3
- package/lib/ai-context.js +6 -6
- package/lib/ai-origins.js +9 -9
- package/lib/ai-together.js +5 -5
- package/lib/backlog.d.ts +19 -0
- package/lib/backlog.js +1 -1
- package/lib/bounded-clone.js +1 -1
- package/lib/bounded-map.js +1 -1
- package/lib/bounded-writer.js +1 -1
- package/lib/capture-demand.js +1 -1
- package/lib/dashboard-path.js +1 -1
- package/lib/dashboard.d.ts +7 -1
- package/lib/dashboard.js +1 -1
- package/lib/docker-errors.js +1 -1
- package/lib/docker-jobs.js +1 -1
- package/lib/docker-report.js +2 -2
- package/lib/docker-runs.js +3 -3
- package/lib/error-cause.js +6 -6
- package/lib/error-dismissal.js +1 -1
- package/lib/error-verdict.js +3 -3
- package/lib/event-loop.js +1 -1
- package/lib/expected-failure.js +2 -2
- package/lib/finding-proof.js +1 -1
- package/lib/flood-guard.js +1 -1
- package/lib/goal-design.js +1 -1
- package/lib/host-agents.js +1 -1
- package/lib/lint-coverage.js +1 -1
- package/lib/lint-ignores.js +2 -2
- package/lib/log-query.js +1 -1
- package/lib/metrics-reset.js +1 -1
- package/lib/overseer-findings.js +1 -1
- package/lib/peers.d.ts +7 -7
- package/lib/peers.js +1 -1
- package/lib/perf-rules.js +1 -1
- package/lib/pod-memory.js +1 -1
- package/lib/producer-health.js +1 -1
- package/lib/remote-instances.js +1 -1
- package/lib/sessions.d.ts +88 -1
- package/lib/sources.js +1 -1
- package/lib/static-checks.js +1 -1
- package/lib/system-report.js +1 -1
- package/lib/team.d.ts +31 -4
- package/lib/team.js +1 -1
- package/package.json +1 -1
package/lib/static-checks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var p=Object.defineProperty;var c=(e,o)=>p(e,"name",{value:o,configurable:!0});var g=Object.defineProperty,l=c((e,o)=>g(e,"name",{value:o,configurable:!0}),"c");export const OWNER_WORKSPACE="(workspace)",OWNER_EXTERNAL="(external)",UNCOVERED_REASONS=["no-route","needs-build","tsgo-refused","parity-unproven","parity-differs","held-for-memory","not-in-census"],TOOL_ERROR_KINDS=["config-refused","program-error","timeout","signal","exit-without-diagnostics","spawn-failed","unparseable-output"];export function typecheckFindingKey(e){return`${e.file}:${e.line}:${e.col}:${e.code}`}c(typecheckFindingKey,"typecheckFindingKey"),l(typecheckFindingKey,"typecheckFindingKey");export function lintFindingKey(e){return`${e.file}:${e.line}:${e.col}:${e.ruleId??""}`}c(lintFindingKey,"lintFindingKey"),l(lintFindingKey,"lintFindingKey");const a=l((e,o)=>e.file<o.file?-1:e.file>o.file?1:e.line-o.line||e.col-o.col,"byPosition");export function dedupeTypecheckFindings(e,o){const n=new Map;for(const{program:i,diagnostics:r}of e)for(const t of r){const s=typecheckFindingKey(t),u=n.get(s);if(!u){n.set(s,{file:t.file,line:t.line,col:t.col,code:t.code,severity:t.severity,message:t.message,project:o(t.file),programs:[i]});continue}u.programs.includes(i)||u.programs.push(i),t.severity==="error"&&(u.severity="error")}const d=[...n.values()];for(const i of d)i.programs.sort();return d.sort((i,r)=>a(i,r)||(i.code<r.code?-1:i.code>r.code?1:0))}c(dedupeTypecheckFindings,"dedupeTypecheckFindings"),l(dedupeTypecheckFindings,"dedupeTypecheckFindings");export function dedupeLintFindings(e,o){const n=new Map;for(const{unit:r,messages:t}of e)for(const s of t){const u=lintFindingKey(s),f=n.get(u);if(!f){n.set(u,{file:s.file,line:s.line,col:s.col,ruleId:s.ruleId,severity:s.severity,message:s.message,project:o(s.file),units:[r],...s.fixable?{fixable:!0}:{}});continue}f.units.includes(r)||f.units.push(r),s.severity==="error"&&(f.severity="error")}const d=[...n.values()];for(const r of d)r.units.sort();const i=l(r=>r.ruleId??"","rule");return d.sort((r,t)=>a(r,t)||(i(r)<i(t)?-1:i(r)>i(t)?1:0))}c(dedupeLintFindings,"dedupeLintFindings"),l(dedupeLintFindings,"dedupeLintFindings");export function verdictOf(e){const{errors:o,coverage:n}=e;return o>0?"errors":n.toolErrors.length>0||n.inScope<=0||n.checked.count<=0?"no-verdict":n.stale.length>0||n.notCovered.length>0||n.checked.count<n.inScope?"partial":"clean"}c(verdictOf,"verdictOf"),l(verdictOf,"verdictOf");export function exitCodeOf(e,o={}){return e==="errors"?1:e==="clean"||e==="partial"&&o.allowPartial?0:2}c(exitCodeOf,"exitCodeOf"),l(exitCodeOf,"exitCodeOf");
|
package/lib/system-report.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var
|
|
1
|
+
"use strict";var o=Object.defineProperty;var r=(e,n)=>o(e,"name",{value:n,configurable:!0});var a=Object.defineProperty,s=r((e,n)=>a(e,"name",{value:n,configurable:!0}),"n");export function systemScopeId(e){return e.kind==="machine"?"machine":e.kind==="repository"?`repo:${e.repoId}`:`ws:${e.key}`}r(systemScopeId,"systemScopeId"),s(systemScopeId,"systemScopeId");export function systemItemKey(e,n){return`${systemScopeId(e)}/${n}`}r(systemItemKey,"systemItemKey"),s(systemItemKey,"systemItemKey");export function systemValue(e,n){switch(n){case"bytes":{const t=e/1073741824;return t>=1?`${t.toFixed(t>=100?0:1)} GB`:`${Math.round(e/1024**2)} MB`}case"ms":return e>=1e3?`${(e/1e3).toFixed(1)} s`:`${Math.round(e)} ms`;case"percent":return`${Math.round(e)} %`;case"usd":return`$${e.toFixed(2)}`;case"load":return`load ${e.toFixed(1)}`;case"minutes":return`${Math.round(e)} min`;default:return String(e)}}r(systemValue,"systemValue"),s(systemValue,"systemValue");export function systemScopeLabel(e){return e.kind==="machine"?"machine":e.kind==="repository"?e.name:`${e.name} lens`}r(systemScopeLabel,"systemScopeLabel"),s(systemScopeLabel,"systemScopeLabel");const u={"n/a":0,ok:1,warn:2,bad:3};export function systemStatusRank(e){return u[e]}r(systemStatusRank,"systemStatusRank"),s(systemStatusRank,"systemStatusRank");
|
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 {
|
package/lib/team.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
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;
|