PageSourceSearch

https://supraos.ai/_next/static/chunks/13790-b3d11abee83ccaf6.js

js supraos.ai collected 2026-10-05 12:43:48 UTC 7,741 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[13790],{13790:(e,t,n)=>{function i(e){let t="number"==typeof e&&Number.isFinite(e)?e:0;return t>0&&t<.01?"$"+t.toFixed(4).replace(/0+$/,""):"$"+t.toFixed(2)}function r(e){let t="number"==typeof e&&Number.isFinite(e)&&e>0?Math.round(e):0;if(0===t)return"~0 min";if(t<90)return"~"+t+" min";let n=t/60;return"~"+(Number.isInteger(n)?n:n.toFixed(1))+" h"}n.d(t,{F9:()=>y,J1:()=>d,Jz:()=>c,Rw:()=>h,Ss:()=>i,YD:()=>f,c4:()=>_,jl:()=>r,ru:()=>s,tQ:()=>k,tU:()=>p,vR:()=>u});let l=new Set(["verify","review"]);function s(e,t,n){let i=0,r=0,s=0,o=!1,a=new Set,u=new Map;for(let e of t){let t="number"==typeof e.est_cost_usd?e.est_cost_usd:0,n="number"==typeof e.est_minutes?e.est_minutes:0;i+=t,s+=n,l.has(e.task_type)&&(r+=t),e.calibration||(o=!0),a.add(e.owner_agent),u.set(e.id,n)}0===i&&"number"==typeof e.est_cost_usd&&(i=e.est_cost_usd),0===s&&"number"==typeof e.est_minutes&&(s=e.est_minutes);let c=new Map,d=new Set;for(let e of n){var f;if("hard"!==e.kind)continue;let t=null!=(f=c.get(e.from_task))?f:[];t.push(e.to_task),c.set(e.from_task,t),d.add(e.to_task)}let h=new Map,m=(e,t)=>{var n,i;let r=h.get(e);if(void 0!==r)return r;if(t.has(e))return 0;t.add(e);let l=0;for(let i of null!=(n=c.get(e))?n:[])l=Math.max(l,m(i,t));t.delete(e);let s=(null!=(i=u.get(e))?i:0)+l;return h.set(e,s),s},v=0;for(let e of t)d.has(e.id)||(v=Math.max(v,m(e.id,new Set)));return 0===v&&(v=s),{totalUsd:Math.round(1e4*i)/1e4,verificationUsd:Math.round(1e4*r)/1e4,serialMinutes:s,parallelMinutes:v,taskCount:t.length,agentCount:a.size,anyGuess:o}}let o=new Set(["done","failed","cancelled"]),a=new Set(["assigned","running"]);function u(e){let t=0;for(let n of e)"done"===n.status&&t++;return{done:t,total:e.length}}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=(e,t)=>({key:e.task_key,title:e.title,owner:e.owner_agent,status:t}),i=e.filter(e=>a.has(e.status)).map(e=>n(e,"running")),r=e.filter(e=>"landing"===e.status).map(e=>n(e,"landing"));return[...i,...r,...e.filter(e=>"blocked"===e.status).map(e=>n(e,"blocked")),...e.filter(e=>"ready"===e.status||"pending"===e.status).map(e=>n(e,"waiting"))].slice(0,t)}function d(e){return e.length>0&&e.every(e=>o.has(e.status))}function f(e){let t=null==e?"unknown":0===e.length?"readonly":"known";return"unknown"===t?"Write scope unknown — paths were not recorded.":"readonly"===t?"Read-only — this task has no write paths.":e.filter(e=>e.trim()).join(", ")}function h(e){let t=v(e);return t?t.toLowerCase():"unknown"}let m=/^(not specified|none declared\.?|missing)$/i;function v(e){if("string"!=typeof e)return null;let t=e.trim();return t.length>0?t:null}function g(e){return e?e.length<=12?e:"".concat(e.slice(0,8),"…").concat(e.slice(-4)):"No profile revision bound"}function p(e,t){var n,i;let r=function(e,t){if(0===e.length)return t;if(0===t.length)return e;let n=new Map(e.map(e=>[e.id,e]));for(let e of t){var i,r;let t=n.get(e.id);if(!t){n.set(e.id,e);continue}n.set(e.id,{...t,verifierKind:null!=(i=t.verifierKind)?i:e.verifierKind,verifierRef:null!=(r=t.verifierRef)?r:e.verifierRef,classification:t.classification||e.classification,evidence:"missing"===t.state?t.evidence:t.evidence||e.evidence,state:"missing"===t.state?"missing":t.state})}return[...n.values()]}(function(e){let t=v(e);if(!t)return[];let n=t.match(/##\s+Acceptance criteria\b([\s\S]*?)(?=\n##\s+|\n\*\*[A-Z][^*]+\*\*\.|$)/i),i=(n?n[1]:t).split(/\n(?=###\s+)/),r=[];for(let e of i){var l,s,o,a,u,c,d,f,h,g,p;let t=e.match(/^###\s+([^\n]+)/);if(!t)continue;let[n,i=""]=t[1].trim().split("\xb7").map(e=>e.trim()),v=n||"criterion-".concat(r.length+1),k=null!=(d=null==(s=e.match(/-\s*Observable:\s*(.+)/i))||null==(l=s[1])?void 0:l.trim())?d:"",_=[...e.matchAll(/-\s*Required evidence:\s*(.+)/gi)].map(e=>e[1].trim()),y=[...e.matchAll(/-\s*Advisory evidence:\s*(.+)/gi)].map(e=>e[1].trim()),w=null!=(f=null==(a=e.match(/-\s*Verifier kind:\s*(.+)/i))||null==(o=a[1])?void 0:o.trim())?f:null,b=null!=(h=null==(c=e.match(/-\s*Verifier reference:\s*(.+)/i))||null==(u=c[1])?void 0:u.trim())?h:null,S=[..._.filter(e=>e&&!m.test(e)&&!/^none declared/i.test(e)),...y.filter(e=>e&&!m.test(e)&&!/^none declared/i.test(e))],A=S.length>0?S.join(" \xb7 "):null!=(p=null!=(g=_[0])?g:y[0])?p:"Not specified",C="required"===i||"advisory"===i?i:"unknown",K=!k||m.test(k),N=!A||m.test(A);r.push({id:v,classification:C,observable:k||"Not specified",evidence:A,verifierKind:w,verifierRef:b,state:"unknown"===C||K||N?"missing":"ready"})}return r}(e.brief_md),Array.isArray(i=Array.isArray(e.criteria)&&e.criteria.length>0?e.criteria:function(e,t){var n;let i=null==t||null==(n=t.tasks)?void 0:n.find(t=>t.task_key===e);return Array.isArray(null==i?void 0:i.criteria)?i.criteria:[]}(e.task_key,t))&&0!==i.length?i.map(e=>{var t,n,i;let r=null!=(t=v(e.verifier_ref))?t:"Not specified",l="required"===e.classification||"advisory"===e.classification?e.classification:"unknown",s="unknown"===l||!r||m.test(r);return{id:e.criterion_id,classification:l,observable:"".concat(e.criterion_id," (").concat(l,")"),evidence:s?"Not specified":"".concat(e.verifier_kind,": ").concat(r),verifierKind:null!=(n=e.verifier_kind)?n:null,verifierRef:null!=(i=e.verifier_ref)?i:null,
1state:s?"missing":"ready"}}):[]),l=r.filter(e=>"missing"===e.state),s=0===r.length&&!!function(e,t){var n,i,r;let l=null==t||null==(n=t.tasks)?void 0:n.find(t=>t.task_key===e.task_key);return v(null!=(r=null!=(i=null==l?void 0:l.no_verifier_rationale)?i:e.no_verifier_rationale)?r:null)}(e,t),o=r.length>0&&0===l.length||s,a=null;o||(a=0===r.length?"No observable criterion was recorded for this task.":"At least one criterion is missing its observable result or required proof.");let u=h(e.risk),c="high"===u||r.some(e=>"review"===(e.verifierKind||"").toLowerCase());return{taskId:e.id,taskKey:e.task_key,title:e.title,risk:u,brief:v(e.brief_md),writeScope:Array.isArray(e.write_scope)?e.write_scope:null,verifyCmd:v(e.verify_cmd),runtime:null!=(n=v(e.runtime))?n:null,criteria:r,complete:o,incompleteReason:a,independentVerifierRequired:c,proofSummary:function(e){let t=[...new Set(e.map(e=>e.verifierKind).filter(e=>!!e))];if(0===t.length){let t=e.map(e=>e.evidence).filter(e=>e&&!m.test(e));return t.length>0?t.slice(0,2).join(" \xb7 "):"No proof declared"}return t.join(" \xb7 ")}(r),criteriaCount:r.length}}function k(e,t){var n;let i=[...e].sort((e,t)=>e.sort_order!==t.sort_order?e.sort_order-t.sort_order:e.id.localeCompare(t.id)).map(e=>p(e,t)),r=i.filter(e=>!e.complete),l=i.length-r.length,s=i.reduce((e,t)=>e+t.criteriaCount,0),o=i.reduce((e,t)=>e+t.criteria.filter(e=>"ready"===e.state).length,0),a=v(null!=(n=null==t?void 0:t.profile_revision_id)?n:null),u=i.filter(e=>null===e.writeScope),c=i.length>0&&0===r.length&&0===u.length,d=0===i.length?0:Math.round(l/i.length*100);return{completeCount:l,totalCount:i.length,coveragePercent:d,incompleteTaskKeys:r.map(e=>e.taskKey),allComplete:c,undeclaredScopeTaskKeys:u.map(e=>e.taskKey),blockingCopy:c?null:r.length>0?1===r.length?"Start blocked — ".concat(r[0].taskKey," still needs an observable criterion."):"Start blocked — ".concat(r.length," task contracts are incomplete."):1===u.length?"Start blocked — ".concat(u[0].taskKey," does not say which files it may change, so the runner would refuse it."):"Start blocked — ".concat(u.length," tasks do not say which files they may change, so the runner would refuse them."),requiredEvidenceCount:o,criteriaTotal:s,profileRevisionId:a,profileRevisionLabel:g(a)}}function _(e){var t;return g(v(null!=(t=null==e?void 0:e.profile_revision_id)?t:null))}function y(e){return!e.loading&&!e.error&&!!(e.data&&k(e.data.tasks,e.data.execution_manifest).allComplete)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.