@checksum-ai/runtime 4.1.0-beta → 4.1.1-beta.2

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/.env CHANGED
@@ -1 +1 @@
1
- CHECKSUM_RUNTIME_BUILD_TIME=2026-05-21T00:07:19.361Z
1
+ CHECKSUM_RUNTIME_BUILD_TIME=2026-05-25T07:06:42.664Z
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var l=(r,t)=>s(r,"name",{value:t,configurable:!0});var b=(r,t)=>{for(var e in t)s(r,e,{get:t[e],enumerable:!0})},A=(r,t,e,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of f(t))!T.call(r,o)&&o!==e&&s(r,o,{get:()=>t[o],enumerable:!(a=y(t,o))||a.enumerable});return r};var x=r=>A(s({},"__esModule",{value:!0}),r);var M={};b(M,{default:()=>n});module.exports=x(M);var h=require("path");var m=2e3;function k(r){switch(r){case"passed":return"passed";case"timedOut":return"timedOut";case"skipped":return"skipped";case"interrupted":return"interrupted";case"failed":default:return"failed"}}l(k,"toProgressStatus");var p=class p{constructor(){this.monitorPort=process.env.CHECKSUM_UPLOAD_AGENT_PORT;this.startedAt=Date.now();this.rootDir=process.cwd();this.testsById=new Map;this.lastFlushAt=0;this.sendChain=Promise.resolve()}printsToStdio(){return!1}onBegin(t,e){this.guard(()=>{var a;t!=null&&t.rootDir&&(this.rootDir=t.rootDir);for(let o of((a=e==null?void 0:e.allTests)==null?void 0:a.call(e))??[])this.register(o);this.flush(!0)})}onTestBegin(t,e){this.guard(()=>{var o;let a=this.itemFor(t);a.status="running",a.startedAt=((o=e==null?void 0:e.startTime)==null?void 0:o.getTime())??Date.now(),a.endedAt=null,a.durationMs=null,a.retry=(e==null?void 0:e.retry)??0,this.flush()})}onTestEnd(t,e){this.guard(()=>{var o;let a=this.itemFor(t);a.status=k(e==null?void 0:e.status),a.endedAt=Date.now(),a.durationMs=(e==null?void 0:e.duration)??null,a.retry=(e==null?void 0:e.retry)??a.retry,a.startedAt==null&&(a.startedAt=((o=e==null?void 0:e.startTime)==null?void 0:o.getTime())??null),this.flush()})}async onEnd(){this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=void 0),await this.send()}itemFor(t){return this.testsById.get(t.id)??this.register(t)}register(t){var i,c,d,g,u;let e="";try{e=((d=(c=(i=t.parent)==null?void 0:i.project)==null?void 0:c.call(i))==null?void 0:d.name)??""}catch{}let a=((g=t.location)==null?void 0:g.file)??"";try{a&&(a=(0,h.relative)(this.rootDir,a))}catch{}let o={id:t.id,title:t.title??"",titlePath:this.titlePathOf(t),file:a,line:((u=t.location)==null?void 0:u.line)??0,project:e,status:"pending",startedAt:null,endedAt:null,durationMs:null,retry:0};return this.testsById.set(o.id,o),o}titlePathOf(t){var e;try{return(((e=t.titlePath)==null?void 0:e.call(t))??[]).filter(a=>!!a)}catch{return t.title?[t.title]:[]}}snapshot(){return{schemaVersion:1,source:"playwright",startedAt:this.startedAt,updatedAt:Date.now(),tests:[...this.testsById.values()]}}flush(t=!1){if(!this.monitorPort)return;let e=Date.now()-this.lastFlushAt;if(t||e>=m){this.lastFlushAt=Date.now(),this.send();return}this.flushTimer||(this.flushTimer=setTimeout(()=>{this.flushTimer=void 0,this.lastFlushAt=Date.now(),this.send()},m-e))}send(){return this.monitorPort?(this.sendChain=this.sendChain.then(()=>this.postSnapshot()),this.sendChain):Promise.resolve()}async postSnapshot(){try{await fetch(`http://127.0.0.1:${this.monitorPort}/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"runProgress",payload:this.snapshot()})})}catch{}}guard(t){try{t()}catch{}}};l(p,"ChecksumProgressReporter");var n=p;
@@ -17,9 +17,12 @@ export default defineConfig<{ playwrightExtra?: PuppeteerExtraPlugin[] }>({
17
17
  /* Opt out of parallel tests on CI. */
18
18
  workers: process.env.CI ? 1 : 1,
19
19
  /* Reporter to use. See https://playwright.dev/docs/test-reporters */
20
- reporter: process.env.CI
21
- ? [["html", { open: "never", outputFolder: "test-results" }], ["line"]]
22
- : "html",
20
+ reporter:
21
+ process.env.CHECKSUM_SHARD_MODE === "true"
22
+ ? [["blob", { outputDir: "blob-report" }], ["line"]]
23
+ : process.env.CI
24
+ ? [["html", { open: "never", outputFolder: "test-results" }], ["line"]]
25
+ : "html",
23
26
  /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
24
27
  use: {
25
28
  trace: