@lensmcp/protocol-types 1.26.25 → 1.26.26

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 (50) hide show
  1. package/lib/ai-cache-facts.js +1 -1
  2. package/lib/ai-cache-verdict.js +1 -1
  3. package/lib/ai-cache.js +3 -3
  4. package/lib/ai-call-groups.js +2 -2
  5. package/lib/ai-call-row.js +3 -3
  6. package/lib/ai-call.js +9 -9
  7. package/lib/ai-compare.js +3 -3
  8. package/lib/ai-context.js +6 -6
  9. package/lib/ai-origins.js +9 -9
  10. package/lib/ai-together.js +5 -5
  11. package/lib/bounded-clone.js +1 -1
  12. package/lib/bounded-map.js +1 -1
  13. package/lib/bounded-writer.js +1 -1
  14. package/lib/canvas-attachments.js +1 -1
  15. package/lib/canvas-catalog.js +3 -3
  16. package/lib/canvas-editing.js +4 -4
  17. package/lib/canvas-frame-policy.js +1 -1
  18. package/lib/canvas-hub.js +1 -1
  19. package/lib/canvas.js +1 -1
  20. package/lib/capture-demand.js +1 -1
  21. package/lib/dashboard-path.js +1 -1
  22. package/lib/docker-errors.js +1 -1
  23. package/lib/docker-jobs.js +1 -1
  24. package/lib/docker-report.js +2 -2
  25. package/lib/docker-runs.js +3 -3
  26. package/lib/error-cause.js +6 -6
  27. package/lib/error-dismissal.js +1 -1
  28. package/lib/error-verdict.js +3 -3
  29. package/lib/event-loop.js +1 -1
  30. package/lib/expected-failure.js +2 -2
  31. package/lib/finding-proof.js +1 -1
  32. package/lib/flood-guard.js +1 -1
  33. package/lib/goal-design.js +1 -1
  34. package/lib/host-agents.js +1 -1
  35. package/lib/lens-hosts.js +1 -1
  36. package/lib/lint-coverage.js +1 -1
  37. package/lib/lint-ignores.js +2 -2
  38. package/lib/log-query.js +1 -1
  39. package/lib/metrics-reset.js +1 -1
  40. package/lib/overseer-findings.js +1 -1
  41. package/lib/peers.js +1 -1
  42. package/lib/perf-rules.js +1 -1
  43. package/lib/pod-memory.js +1 -1
  44. package/lib/producer-health.js +1 -1
  45. package/lib/remote-instances.js +1 -1
  46. package/lib/sources.js +1 -1
  47. package/lib/static-checks.js +1 -1
  48. package/lib/system-report.js +1 -1
  49. package/lib/team.js +1 -1
  50. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";var g=Object.defineProperty;var l=(e,t)=>g(e,"name",{value:t,configurable:!0});var y=Object.defineProperty,u=l((e,t)=>y(e,"name",{value:t,configurable:!0}),"l"),m=Object.defineProperty,a=u((e,t)=>m(e,"name",{value:t,configurable:!0}),"l");export const OWNER_WORKSPACE="(workspace)",OWNER_EXTERNAL="(external)";export function workspacePath(e){return e.replace(/\\/g,"/").replace(/^(\.\/)+/,"")}l(workspacePath,"workspacePath"),u(workspacePath,"workspacePath"),a(workspacePath,"workspacePath");export function ownerMap(e){const t=Object.entries(e).map(([o,r])=>({name:o,root:workspacePath(r.root).replace(/\/+$/,"")})).filter(o=>o.root!==""&&o.root!==".").sort((o,r)=>r.root.length-o.root.length||(o.name<r.name?-1:o.name>r.name?1:0)),s=Object.entries(e).filter(([,o])=>["","."].includes(workspacePath(o.root).replace(/\/+$/,""))).map(([o])=>o).sort()[0];return o=>{const r=workspacePath(o);if(r.startsWith("/")||r.startsWith("../")||r===".."||/^[A-Za-z]:\//.test(r)||r.split("/").includes("node_modules"))return OWNER_EXTERNAL;for(const{name:n,root:i}of t)if(r===i||r.startsWith(`${i}/`))return n;return s??OWNER_WORKSPACE}}l(ownerMap,"ownerMap"),u(ownerMap,"ownerMap"),a(ownerMap,"ownerMap");export const 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}`}l(typecheckFindingKey,"typecheckFindingKey"),u(typecheckFindingKey,"typecheckFindingKey"),a(typecheckFindingKey,"typecheckFindingKey");export function lintFindingKey(e){return`${e.file}:${e.line}:${e.col}:${e.ruleId??""}`}l(lintFindingKey,"lintFindingKey"),u(lintFindingKey,"lintFindingKey"),a(lintFindingKey,"lintFindingKey");const f=a((e,t)=>e.file<t.file?-1:e.file>t.file?1:e.line-t.line||e.col-t.col,"byPosition");export function dedupeTypecheckFindings(e,t){const s=new Map;for(const{program:r,diagnostics:n}of e)for(const i of n){const c=typecheckFindingKey(i),d=s.get(c);if(!d){s.set(c,{file:i.file,line:i.line,col:i.col,code:i.code,severity:i.severity,message:i.message,project:t(i.file),programs:[r]});continue}d.programs.includes(r)||d.programs.push(r),i.severity==="error"&&(d.severity="error")}const o=[...s.values()];for(const r of o)r.programs.sort();return o.sort((r,n)=>f(r,n)||(r.code<n.code?-1:r.code>n.code?1:0))}l(dedupeTypecheckFindings,"dedupeTypecheckFindings"),u(dedupeTypecheckFindings,"dedupeTypecheckFindings"),a(dedupeTypecheckFindings,"dedupeTypecheckFindings");export function dedupeLintFindings(e,t){const s=new Map;for(const{unit:n,messages:i}of e)for(const c of i){const d=lintFindingKey(c),p=s.get(d);if(!p){s.set(d,{file:c.file,line:c.line,col:c.col,ruleId:c.ruleId,severity:c.severity,message:c.message,project:t(c.file),units:[n],...c.fixable?{fixable:!0}:{}});continue}p.units.includes(n)||p.units.push(n),c.severity==="error"&&(p.severity="error")}const o=[...s.values()];for(const n of o)n.units.sort();const r=a(n=>n.ruleId??"","rule");return o.sort((n,i)=>f(n,i)||(r(n)<r(i)?-1:r(n)>r(i)?1:0))}l(dedupeLintFindings,"dedupeLintFindings"),u(dedupeLintFindings,"dedupeLintFindings"),a(dedupeLintFindings,"dedupeLintFindings");export function verdictOf(e){const{errors:t,coverage:s}=e;return t>0?"errors":s.toolErrors.length>0||s.inScope<=0||s.checked.count<=0?"no-verdict":s.stale.length>0||s.notCovered.length>0||s.checked.count<s.inScope?"partial":"clean"}l(verdictOf,"verdictOf"),u(verdictOf,"verdictOf"),a(verdictOf,"verdictOf");export function exitCodeOf(e,t={}){return e==="errors"?1:e==="clean"||e==="partial"&&t.allowPartial?0:2}l(exitCodeOf,"exitCodeOf"),u(exitCodeOf,"exitCodeOf"),a(exitCodeOf,"exitCodeOf");
1
+ "use strict";var d=Object.defineProperty;var l=(e,n)=>d(e,"name",{value:n,configurable:!0});var g=Object.defineProperty,a=l((e,n)=>g(e,"name",{value:n,configurable:!0}),"l");export const OWNER_WORKSPACE="(workspace)",OWNER_EXTERNAL="(external)";export function workspacePath(e){return e.replace(/\\/g,"/").replace(/^(\.\/)+/,"")}l(workspacePath,"workspacePath"),a(workspacePath,"workspacePath");export function ownerMap(e){const n=Object.entries(e).map(([t,r])=>({name:t,root:workspacePath(r.root).replace(/\/+$/,"")})).filter(t=>t.root!==""&&t.root!==".").sort((t,r)=>r.root.length-t.root.length||(t.name<r.name?-1:t.name>r.name?1:0)),s=Object.entries(e).filter(([,t])=>["","."].includes(workspacePath(t.root).replace(/\/+$/,""))).map(([t])=>t).sort()[0];return t=>{const r=workspacePath(t);if(r.startsWith("/")||r.startsWith("../")||r===".."||/^[A-Za-z]:\//.test(r)||r.split("/").includes("node_modules"))return OWNER_EXTERNAL;for(const{name:o,root:i}of n)if(r===i||r.startsWith(`${i}/`))return o;return s??OWNER_WORKSPACE}}l(ownerMap,"ownerMap"),a(ownerMap,"ownerMap");export const 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}`}l(typecheckFindingKey,"typecheckFindingKey"),a(typecheckFindingKey,"typecheckFindingKey");export function lintFindingKey(e){return`${e.file}:${e.line}:${e.col}:${e.ruleId??""}`}l(lintFindingKey,"lintFindingKey"),a(lintFindingKey,"lintFindingKey");const p=a((e,n)=>e.file<n.file?-1:e.file>n.file?1:e.line-n.line||e.col-n.col,"byPosition");export function dedupeTypecheckFindings(e,n){const s=new Map;for(const{program:r,diagnostics:o}of e)for(const i of o){const c=typecheckFindingKey(i),u=s.get(c);if(!u){s.set(c,{file:i.file,line:i.line,col:i.col,code:i.code,severity:i.severity,message:i.message,project:n(i.file),programs:[r]});continue}u.programs.includes(r)||u.programs.push(r),i.severity==="error"&&(u.severity="error")}const t=[...s.values()];for(const r of t)r.programs.sort();return t.sort((r,o)=>p(r,o)||(r.code<o.code?-1:r.code>o.code?1:0))}l(dedupeTypecheckFindings,"dedupeTypecheckFindings"),a(dedupeTypecheckFindings,"dedupeTypecheckFindings");export function dedupeLintFindings(e,n){const s=new Map;for(const{unit:o,messages:i}of e)for(const c of i){const u=lintFindingKey(c),f=s.get(u);if(!f){s.set(u,{file:c.file,line:c.line,col:c.col,ruleId:c.ruleId,severity:c.severity,message:c.message,project:n(c.file),units:[o],...c.fixable?{fixable:!0}:{}});continue}f.units.includes(o)||f.units.push(o),c.severity==="error"&&(f.severity="error")}const t=[...s.values()];for(const o of t)o.units.sort();const r=a(o=>o.ruleId??"","rule");return t.sort((o,i)=>p(o,i)||(r(o)<r(i)?-1:r(o)>r(i)?1:0))}l(dedupeLintFindings,"dedupeLintFindings"),a(dedupeLintFindings,"dedupeLintFindings");export function verdictOf(e){const{errors:n,coverage:s}=e;return n>0?"errors":s.toolErrors.length>0||s.inScope<=0||s.checked.count<=0?"no-verdict":s.stale.length>0||s.notCovered.length>0||s.checked.count<s.inScope?"partial":"clean"}l(verdictOf,"verdictOf"),a(verdictOf,"verdictOf");export function exitCodeOf(e,n={}){return e==="errors"?1:e==="clean"||e==="partial"&&n.allowPartial?0:2}l(exitCodeOf,"exitCodeOf"),a(exitCodeOf,"exitCodeOf");
@@ -1 +1 @@
1
- "use strict";var o=Object.defineProperty;var s=(e,t)=>o(e,"name",{value:t,configurable:!0});var u=Object.defineProperty,n=s((e,t)=>u(e,"name",{value:t,configurable:!0}),"r"),c=Object.defineProperty,r=n((e,t)=>c(e,"name",{value:t,configurable:!0}),"n");export function systemScopeId(e){return e.kind==="machine"?"machine":e.kind==="repository"?`repo:${e.repoId}`:`ws:${e.key}`}s(systemScopeId,"systemScopeId"),n(systemScopeId,"systemScopeId"),r(systemScopeId,"systemScopeId");export function systemItemKey(e,t){return`${systemScopeId(e)}/${t}`}s(systemItemKey,"systemItemKey"),n(systemItemKey,"systemItemKey"),r(systemItemKey,"systemItemKey");export function systemValue(e,t){switch(t){case"bytes":{const a=e/1073741824;return a>=1?`${a.toFixed(a>=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)}}s(systemValue,"systemValue"),n(systemValue,"systemValue"),r(systemValue,"systemValue");export function systemScopeLabel(e){return e.kind==="machine"?"machine":e.kind==="repository"?e.name:`${e.name} lens`}s(systemScopeLabel,"systemScopeLabel"),n(systemScopeLabel,"systemScopeLabel"),r(systemScopeLabel,"systemScopeLabel");const m={"n/a":0,ok:1,warn:2,bad:3};export function systemStatusRank(e){return m[e]}s(systemStatusRank,"systemStatusRank"),n(systemStatusRank,"systemStatusRank"),r(systemStatusRank,"systemStatusRank");
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.js CHANGED
@@ -1 +1 @@
1
- "use strict";var i=Object.defineProperty;var r=(t,e)=>i(t,"name",{value:e,configurable:!0});var n=Object.defineProperty,o=r((t,e)=>n(t,"name",{value:e,configurable:!0}),"r"),a=Object.defineProperty,c=o((t,e)=>a(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"),o(modelClient,"modelClient"),c(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,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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensmcp/protocol-types",
3
- "version": "1.26.25",
3
+ "version": "1.26.26",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",