@tansr/cli 0.10.0 → 0.10.1

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 (63) hide show
  1. package/package.json +1 -1
  2. package/tansr-artifacts.json +604 -586
  3. package/{tansr-bg-FHDDUMK4.mjs → tansr-bg-OUP4JX3I.mjs} +2 -2
  4. package/tansr-chunk-2AJTBN37.mjs +29 -0
  5. package/{tansr-chunk-6NUB6YQJ.mjs → tansr-chunk-2C6JKHKM.mjs} +5 -5
  6. package/{tansr-chunk-PQHOHOTR.mjs → tansr-chunk-3GJD3L4B.mjs} +2 -2
  7. package/{tansr-chunk-2HKJ4JJS.mjs → tansr-chunk-4R5ZK4RG.mjs} +3 -3
  8. package/{tansr-chunk-Z6RSXE57.mjs → tansr-chunk-54YMMSEF.mjs} +7 -7
  9. package/{tansr-chunk-RS3LZ6KA.mjs → tansr-chunk-5T7X32UX.mjs} +2 -2
  10. package/{tansr-chunk-PQNOMC4A.mjs → tansr-chunk-726Y5F3M.mjs} +2 -2
  11. package/{tansr-chunk-4OSB7HBB.mjs → tansr-chunk-AEIS2NWD.mjs} +3 -3
  12. package/{tansr-chunk-UIBBDNRB.mjs → tansr-chunk-BCOFZJWA.mjs} +2 -2
  13. package/{tansr-chunk-WT5YKFE7.mjs → tansr-chunk-C6COFFZK.mjs} +2 -2
  14. package/{tansr-chunk-5YXIDPAQ.mjs → tansr-chunk-HQY7FXGU.mjs} +2 -2
  15. package/{tansr-chunk-VJGAX34A.mjs → tansr-chunk-J2ED6CI4.mjs} +2 -2
  16. package/tansr-chunk-LLW6GX7K.mjs +38 -0
  17. package/{tansr-chunk-XAR42OOH.mjs → tansr-chunk-LSGFLGLS.mjs} +2 -2
  18. package/{tansr-chunk-NKZP22Y6.mjs → tansr-chunk-M63EZH2M.mjs} +2 -2
  19. package/{tansr-chunk-ZGQJIXK7.mjs → tansr-chunk-MXYVQZY3.mjs} +2 -2
  20. package/tansr-chunk-NA22YT73.mjs +5 -0
  21. package/{tansr-chunk-MKOKKJTO.mjs → tansr-chunk-NCIMR6LB.mjs} +2 -2
  22. package/{tansr-chunk-JOAFKQNW.mjs → tansr-chunk-OSK64SU3.mjs} +1 -1
  23. package/{tansr-chunk-Y4DBYZRC.mjs → tansr-chunk-Q6MUMULP.mjs} +2 -2
  24. package/{tansr-chunk-YOQS3FJQ.mjs → tansr-chunk-QNHXB55W.mjs} +2 -2
  25. package/{tansr-chunk-MX3N5PNJ.mjs → tansr-chunk-R4W5HKDF.mjs} +2 -2
  26. package/{tansr-chunk-2GVQN2VL.mjs → tansr-chunk-S77B4PI7.mjs} +2 -2
  27. package/{tansr-chunk-B3GJDJ7R.mjs → tansr-chunk-TYJWMSVW.mjs} +2 -2
  28. package/{tansr-chunk-A5EC3Z2Z.mjs → tansr-chunk-UAEARRRH.mjs} +2 -2
  29. package/{tansr-chunk-T2BVA5NV.mjs → tansr-chunk-XIOD3RQD.mjs} +2 -2
  30. package/{tansr-chunk-O32ZFMNV.mjs → tansr-chunk-YAYVXUHY.mjs} +2 -2
  31. package/tansr-main-O6RSYTGN.mjs +7 -0
  32. package/tansr-marked.esm-R6UL3675.mjs +68 -0
  33. package/{tansr-render-RTEKXH54.mjs → tansr-render-PUEISX75.mjs} +2 -2
  34. package/{tansr-run-acp-entry-OYTDDWDR.mjs → tansr-run-acp-entry-XJMGBZ7Q.mjs} +3 -3
  35. package/{tansr-run-approvals-entry-53SR25ZU.mjs → tansr-run-approvals-entry-I6FX6AYX.mjs} +2 -2
  36. package/{tansr-run-auth-entry-QFMRITYM.mjs → tansr-run-auth-entry-LJC3UJWR.mjs} +2 -2
  37. package/{tansr-run-doctor-DO6CXMRK.mjs → tansr-run-doctor-RFMVNKS5.mjs} +3 -3
  38. package/{tansr-run-headless-entry-7TNISK4Y.mjs → tansr-run-headless-entry-G2G44HY3.mjs} +2 -2
  39. package/tansr-run-init-entry-JVJEH4PI.mjs +5 -0
  40. package/tansr-run-logout-entry-DI42PBLR.mjs +5 -0
  41. package/{tansr-run-mcp-serve-entry-M5N7JSAX.mjs → tansr-run-mcp-serve-entry-ZPOSEKDA.mjs} +2 -2
  42. package/{tansr-run-orchestrate-entry-MFDKPE4I.mjs → tansr-run-orchestrate-entry-43QIZUZA.mjs} +2 -2
  43. package/{tansr-run-org-entry-TGWBHE55.mjs → tansr-run-org-entry-D2FTJY7E.mjs} +2 -2
  44. package/{tansr-run-policy-entry-E3XZEYGV.mjs → tansr-run-policy-entry-SLI4BZ2I.mjs} +2 -2
  45. package/{tansr-run-profile-entry-R2KK52TF.mjs → tansr-run-profile-entry-643TLJUU.mjs} +2 -2
  46. package/tansr-run-serve-entry-CX6EBQAV.mjs +99 -0
  47. package/{tansr-run-sessions-entry-PZQIF7KY.mjs → tansr-run-sessions-entry-MROXZKQS.mjs} +2 -2
  48. package/tansr-run-update-entry-BOZIZIWN.mjs +5 -0
  49. package/tansr-src-5BMLUX6E.mjs +143 -0
  50. package/{tansr-startup-account-WI54Z7UU.mjs → tansr-startup-account-YMNFBBH2.mjs} +4 -4
  51. package/{tansr-startup-model-2MIOO25G.mjs → tansr-startup-model-LYYMNZ32.mjs} +3 -3
  52. package/tansr-tui-4EYUVRFQ.mjs +75 -0
  53. package/tansr.mjs +1 -2
  54. package/tansrd.mjs +233 -233
  55. package/tansr-chunk-G5YDZOSH.mjs +0 -38
  56. package/tansr-chunk-IHFZ4MW7.mjs +0 -5
  57. package/tansr-chunk-WMHXOCGD.mjs +0 -29
  58. package/tansr-run-init-entry-EJ4UX6S7.mjs +0 -5
  59. package/tansr-run-logout-entry-YJMC6FYS.mjs +0 -5
  60. package/tansr-run-serve-entry-JVHHZEKM.mjs +0 -99
  61. package/tansr-run-update-entry-GOW6DQH3.mjs +0 -5
  62. package/tansr-src-NSNVE7OD.mjs +0 -206
  63. package/tansr-tui-LUXKR56D.mjs +0 -75
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __tansrCreateRequire } from 'module';const require=__tansrCreateRequire(import.meta.url);
2
2
  import { fileURLToPath as __tansrFileURLToPath } from 'url';import { dirname as __tansrDirname } from 'path';
3
3
  const __filename=__tansrFileURLToPath(import.meta.url);const __dirname=__tansrDirname(__filename);
4
- import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./tansr-chunk-WMHXOCGD.mjs";import"./tansr-chunk-Y4DBYZRC.mjs";import"./tansr-chunk-AMMPDY4V.mjs";import"./tansr-chunk-NKZP22Y6.mjs";import"./tansr-chunk-PQHOHOTR.mjs";import"./tansr-chunk-UIBBDNRB.mjs";import"./tansr-chunk-6NUB6YQJ.mjs";import"./tansr-chunk-JOAFKQNW.mjs";import"./tansr-chunk-ZQ3ZK7IL.mjs";import"./tansr-chunk-I3TOVAA6.mjs";import"./tansr-chunk-F7C6ITED.mjs";import"./tansr-chunk-XXBNISJJ.mjs";import"./tansr-chunk-HRKJLVKC.mjs";import"./tansr-chunk-C7GGA5ID.mjs";import"./tansr-chunk-OKAA4BJC.mjs";import"./tansr-chunk-DIT3PBNB.mjs";import"./tansr-chunk-IHFZ4MW7.mjs";import"./tansr-chunk-QWGSXFEJ.mjs";import"./tansr-chunk-RRAMVVYF.mjs";export{c as BACKGROUND_DIR_NAME,f as BACKGROUND_SELF_HEAL_SOURCES,e as BACKGROUND_TASK_STATUSES,a as BG_MESSAGE_KEY,b as BG_MESSAGE_KEYS,A as BG_RUNNER_ENDPOINT_ENV,B as BG_RUNNER_TOKEN_ENV,Q as BG_TASK_ID_ENV,Z as DEFAULT_KILL_GRACE_MS,_ as KILL_POLL_INTERVAL_MS,X as LOG_TAIL_MAX_BYTES,Y as LOG_TAIL_MAX_LINES,I as PROCESS_IDENTITY_PROBE_TIMEOUT_MS,d as PROMPT_SUMMARY_MAX_CHARS,g as RENAME_RETRY_DELAYS_MS,C as RUNNER_REQUEST_TIMEOUT_MS,L as WORKTREES_DIR_NAME,U as attachBackgroundSessionId,h as backgroundDirPath,k as backgroundFinalSentinelPath,j as backgroundLogPath,i as backgroundRecordPath,K as compareProcessIdentity,R as createRunnerIdentity,z as displayStatusOf,t as finalizeBackgroundRecord,W as finalizeBackgroundTask,l as generateBackgroundTaskId,N as generateWorktreeName,y as isPidAlive,O as isValidWorktreeName,T as killProcessTree,S as launchBackgroundTask,u as listBackgroundRecords,v as listBackgroundRecordsSync,p as parseBackgroundRecord,$ as parseBgArgs,J as probeProcessIdentity,r as readBackgroundRecord,aa as readLogTail,n as redactArgv,x as removeBackgroundRecord,F as requestRunner,H as requestRunnerStop,ca as runBgEntry,D as runnerEndpointFor,P as setupWorktree,V as startBackgroundRunnerEndpoint,E as startRunnerEndpoint,m as summarizePrompt,ba as toDisplayRecord,q as toPublicRecord,s as updateBackgroundRecord,G as verifyRunnerIdentity,M as worktreesDirPath,o as writeBackgroundRecord,w as writeBackgroundRecordSync};
5
- //# sourceMappingURL=tansr-bg-FHDDUMK4.mjs.map
4
+ import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./tansr-chunk-2AJTBN37.mjs";import"./tansr-chunk-Q6MUMULP.mjs";import"./tansr-chunk-AMMPDY4V.mjs";import"./tansr-chunk-M63EZH2M.mjs";import"./tansr-chunk-XXBNISJJ.mjs";import"./tansr-chunk-3GJD3L4B.mjs";import"./tansr-chunk-HRKJLVKC.mjs";import"./tansr-chunk-BCOFZJWA.mjs";import"./tansr-chunk-C7GGA5ID.mjs";import"./tansr-chunk-2C6JKHKM.mjs";import"./tansr-chunk-OKAA4BJC.mjs";import"./tansr-chunk-OSK64SU3.mjs";import"./tansr-chunk-ZQ3ZK7IL.mjs";import"./tansr-chunk-I3TOVAA6.mjs";import"./tansr-chunk-F7C6ITED.mjs";import"./tansr-chunk-DIT3PBNB.mjs";import"./tansr-chunk-NA22YT73.mjs";import"./tansr-chunk-QWGSXFEJ.mjs";import"./tansr-chunk-RRAMVVYF.mjs";export{c as BACKGROUND_DIR_NAME,f as BACKGROUND_SELF_HEAL_SOURCES,e as BACKGROUND_TASK_STATUSES,a as BG_MESSAGE_KEY,b as BG_MESSAGE_KEYS,A as BG_RUNNER_ENDPOINT_ENV,B as BG_RUNNER_TOKEN_ENV,Q as BG_TASK_ID_ENV,Z as DEFAULT_KILL_GRACE_MS,_ as KILL_POLL_INTERVAL_MS,X as LOG_TAIL_MAX_BYTES,Y as LOG_TAIL_MAX_LINES,I as PROCESS_IDENTITY_PROBE_TIMEOUT_MS,d as PROMPT_SUMMARY_MAX_CHARS,g as RENAME_RETRY_DELAYS_MS,C as RUNNER_REQUEST_TIMEOUT_MS,L as WORKTREES_DIR_NAME,U as attachBackgroundSessionId,h as backgroundDirPath,k as backgroundFinalSentinelPath,j as backgroundLogPath,i as backgroundRecordPath,K as compareProcessIdentity,R as createRunnerIdentity,z as displayStatusOf,t as finalizeBackgroundRecord,W as finalizeBackgroundTask,l as generateBackgroundTaskId,N as generateWorktreeName,y as isPidAlive,O as isValidWorktreeName,T as killProcessTree,S as launchBackgroundTask,u as listBackgroundRecords,v as listBackgroundRecordsSync,p as parseBackgroundRecord,$ as parseBgArgs,J as probeProcessIdentity,r as readBackgroundRecord,aa as readLogTail,n as redactArgv,x as removeBackgroundRecord,F as requestRunner,H as requestRunnerStop,ca as runBgEntry,D as runnerEndpointFor,P as setupWorktree,V as startBackgroundRunnerEndpoint,E as startRunnerEndpoint,m as summarizePrompt,ba as toDisplayRecord,q as toPublicRecord,s as updateBackgroundRecord,G as verifyRunnerIdentity,M as worktreesDirPath,o as writeBackgroundRecord,w as writeBackgroundRecordSync};
5
+ //# sourceMappingURL=tansr-bg-OUP4JX3I.mjs.map
@@ -0,0 +1,29 @@
1
+ import { createRequire as __tansrCreateRequire } from 'module';const require=__tansrCreateRequire(import.meta.url);
2
+ import { fileURLToPath as __tansrFileURLToPath } from 'url';import { dirname as __tansrDirname } from 'path';
3
+ const __filename=__tansrFileURLToPath(import.meta.url);const __dirname=__tansrDirname(__filename);
4
+ import{a as N}from"./tansr-chunk-Q6MUMULP.mjs";import{a as Z}from"./tansr-chunk-AMMPDY4V.mjs";import{x as Ae}from"./tansr-chunk-M63EZH2M.mjs";import{l as V}from"./tansr-chunk-HRKJLVKC.mjs";import{ef as R}from"./tansr-chunk-BCOFZJWA.mjs";import{k as xe,m as c,o as Ie}from"./tansr-chunk-NA22YT73.mjs";import{Fb as F}from"./tansr-chunk-QWGSXFEJ.mjs";var d={launchTask:"cli.bg.launch.task",launchLog:"cli.bg.launch.log",launchWorktree:"cli.bg.launch.worktree",listHeader:"cli.bg.list.header",listEmpty:"cli.bg.list.empty",listLine:"cli.bg.list.line",showHeader:"cli.bg.show.header",showStatus:"cli.bg.show.status",showSelfHealed:"cli.bg.show.self_healed",showPid:"cli.bg.show.pid",showStarted:"cli.bg.show.started",showEnded:"cli.bg.show.ended",showExitCode:"cli.bg.show.exit_code",showCwd:"cli.bg.show.cwd",showWorktree:"cli.bg.show.worktree",showSession:"cli.bg.show.session",showPrompt:"cli.bg.show.prompt",showLog:"cli.bg.show.log",showTailHeader:"cli.bg.show.tail_header",notFound:"cli.bg.error.not_found",showUsage:"cli.bg.error.show_usage",killUsage:"cli.bg.error.kill_usage",killNotRunning:"cli.bg.kill.not_running",killStale:"cli.bg.kill.stale",killFailed:"cli.bg.error.kill_failed",killDone:"cli.bg.kill.done",killStopped:"cli.bg.kill.stopped",killExited:"cli.bg.kill.exited",killIdentity:"cli.bg.kill.identity",killForceIdentity:"cli.bg.kill.force_identity",killForced:"cli.bg.kill.forced",runnerEndpointFailed:"cli.bg.error.runner_endpoint_failed",cleanDone:"cli.bg.clean.done",cleanDoneWithLogs:"cli.bg.clean.done_with_logs",cleanEmpty:"cli.bg.clean.empty",registryWriteFailed:"cli.bg.error.registry_write_failed"},gt=Object.values(d);import{randomBytes as oe}from"node:crypto";import{mkdir as mt,readFile as ie,readdir as kt,rename as Ne,rm as I,writeFile as Oe}from"node:fs/promises";import{existsSync as yt,mkdirSync as Rt,readFileSync as ee,readdirSync as ht,renameSync as St,rmSync as te,writeFileSync as wt}from"node:fs";import E from"node:path";var ve="background",ne=120,De=["running","completed","failed"],Ce=["sentinel","pid-probe"],Le=[15,30,60,120,250,500,1e3],Pt=new Set(["EPERM","EACCES","EBUSY"]),Tt=e=>new Promise(t=>setTimeout(t,e));function Me(e){let t=e.code;return typeof t=="string"&&Pt.has(t)}async function Fe(e,t){let n=e?.sleep??Tt;for(let r=0;;r+=1)try{return await t()}catch(i){let o=Le[r];if(!Me(i)||o===void 0)throw i;await n(o)}}function T(e){return E.join(V(e),ve)}function _(e,t){return E.join(T(e),`${t}.json`)}function se(e,t){return E.join(T(e),`${t}.log`)}function U(e,t){return E.join(T(e),`${t}.final`)}var ae=".sock";function ue(e,t){return E.join(T(e),`${t}${ae}`)}function ce(e=()=>new Date){return`bg-${e().getTime().toString(36)}-${oe(2).toString("hex")}`}function de(e){let t=F(e).replace(/\s+/g," ").trim();return t.length<=ne?t:`${t.slice(0,ne-1)}…`}function le(e){return e.map(t=>F(t))}async function Ge(e,t,n){let r=_(e,t.id);await mt(E.dirname(r),{recursive:!0});let i=`${r}.tmp-${process.pid}-${oe(2).toString("hex")}`;try{await Oe(i,JSON.stringify(t,null,2),"utf8"),await n(i,r)}catch(o){throw await I(i,{force:!0}).catch(()=>{}),o}}async function G(e,t,n){let r=n?.rename??(async(i,o)=>Ne(i,o));await Fe(n,()=>Ge(e,t,r))}function A(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let n=t;if(n.schemaVersion!==1||typeof n.id!="string"||n.id===""||typeof n.promptSummary!="string"||typeof n.cwd!="string"||!Array.isArray(n.argv)||n.argv.some(o=>typeof o!="string")||typeof n.logPath!="string"||!De.includes(n.status)||typeof n.startedAt!="string"||!((n.pid===void 0||typeof n.pid=="number")&&(n.sessionId===void 0||typeof n.sessionId=="string")&&(n.worktreePath===void 0||typeof n.worktreePath=="string")&&(n.endedAt===void 0||typeof n.endedAt=="string")&&(n.exitCode===void 0||typeof n.exitCode=="number")&&(n.selfHealed===void 0||Ce.includes(n.selfHealed))&&(n.runner===void 0||Et(n.runner))&&(n.process===void 0||Bt(n.process))))return null;let i={schemaVersion:1,id:n.id,promptSummary:n.promptSummary,cwd:n.cwd,argv:n.argv,logPath:n.logPath,status:n.status,startedAt:n.startedAt};if(n.pid!==void 0&&(i.pid=n.pid),n.sessionId!==void 0&&(i.sessionId=n.sessionId),n.worktreePath!==void 0&&(i.worktreePath=n.worktreePath),n.endedAt!==void 0&&(i.endedAt=n.endedAt),n.exitCode!==void 0&&(i.exitCode=n.exitCode),n.selfHealed!==void 0&&(i.selfHealed=n.selfHealed),n.runner!==void 0){let o=n.runner;i.runner={endpoint:o.endpoint,token:o.token}}if(n.process!==void 0){let o=n.process;i.process={...o.startTime!==void 0?{startTime:o.startTime}:{},...o.cmdlineSha256!==void 0?{cmdlineSha256:o.cmdlineSha256}:{}}}return i}function Et(e){if(typeof e!="object"||e===null)return!1;let t=e;return typeof t.endpoint=="string"&&t.endpoint!==""&&typeof t.token=="string"&&t.token!==""}function Bt(e){if(typeof e!="object"||e===null)return!1;let t=e,n=r=>r===void 0||typeof r=="string"&&r!=="";return n(t.startTime)&&n(t.cmdlineSha256)}function H(e){let{runner:t,...n}=e;return t===void 0?n:{...n,runner:{endpoint:t.endpoint}}}function Ue(e,t){let n;try{n=JSON.parse(e)}catch{return null}if(typeof n!="object"||n===null)return null;let r=n;if(r.schemaVersion!==1||r.id!==t||r.status!=="completed"&&r.status!=="failed"||typeof r.endedAt!="string"||r.exitCode!==void 0&&typeof r.exitCode!="number")return null;let i={status:r.status,endedAt:r.endedAt};return r.exitCode!==void 0&&(i.exitCode=r.exitCode),i}async function q(e,t){let n;try{n=await ie(_(e,t),"utf8")}catch{return null}return A(n)}function He(e,t){return{...e,status:t.status,endedAt:t.endedAt,...t.exitCode!==void 0?{exitCode:t.exitCode}:{},selfHealed:"sentinel"}}async function $e(e,t,n,r){let i=U(e,t.id),o=r??yt(i);if(t.status!=="running")return o&&await I(i,{force:!0}).catch(()=>{}),t;if(o){let l=null;try{l=Ue(await ie(i,"utf8"),t.id)}catch{l=null}if(l!==null){let h=He(t,l);return await G(e,h,n.io).then(()=>!0).catch(()=>!1)&&await I(i,{force:!0}).catch(()=>{}),h}}let s=n.pidAlive??D;if(t.pid===void 0||s(t.pid))return t;let a=await q(e,t.id);if(a===null)return null;if(a.status!=="running")return a;let u=n.now??(()=>new Date),f={...a,status:"failed",endedAt:u().toISOString(),selfHealed:"pid-probe"};return await G(e,f,n.io).catch(()=>{}),f}function _t(e,t,n,r){let i=U(e,t.id);if(t.status!=="running"){if(r)try{te(i,{force:!0})}catch{}return t}if(r){let f=null;try{f=Ue(ee(i,"utf8"),t.id)}catch{f=null}if(f!==null){let l=He(t,f);try{re(e,l),te(i,{force:!0})}catch{}return l}}let o=n.pidAlive??D;if(t.pid===void 0||o(t.pid))return t;let s=null;try{s=A(ee(_(e,t.id),"utf8"))}catch{return null}if(s===null)return null;if(s.status!=="running")return s;let a=n.now??(()=>new Date),u={...s,status:"failed",endedAt:a().toISOString(),selfHealed:"pid-probe"};try{re(e,u)}catch{}return u}async function Y(e,t,n={}){let r=await q(e,t);return r===null?null:$e(e,r,n)}async function O(e,t,n,r){let i=r?.rename??(async(o,s)=>Ne(o,s));return Fe(r,async()=>{let o=await q(e,t);if(o===null)return null;let s={...o,...n,schemaVersion:1,id:o.id};return await Ge(e,s,i),s})}async function v(e,t,n,r){try{let s=await O(e,t,n,r);return s===null?null:{record:s,via:"record"}}catch(s){if(!Me(s))throw s}let i=await q(e,t);if(i===null)return null;let o={schemaVersion:1,id:t,...n};return await Oe(U(e,t),JSON.stringify(o,null,2),"utf8"),{record:{...i,...n},via:"sentinel"}}async function z(e,t={}){let n;try{n=await kt(T(e))}catch{return[]}let r=new Set(n.filter(o=>o.endsWith(".final"))),i=[];for(let o of n.filter(s=>s.endsWith(".json")))try{let s=await ie(E.join(T(e),o),"utf8"),a=A(s);if(a===null)continue;let u=await $e(e,a,t,r.has(`${a.id}.final`));u!==null&&i.push(u)}catch{continue}return i.sort((o,s)=>s.startedAt.localeCompare(o.startedAt)||s.id.localeCompare(o.id)),i}function bt(e,t={}){let n;try{n=ht(T(e))}catch{return[]}let r=new Set(n.filter(o=>o.endsWith(".final"))),i=[];for(let o of n.filter(s=>s.endsWith(".json")))try{let s=A(ee(E.join(T(e),o),"utf8"));if(s===null)continue;let a=_t(e,s,t,r.has(`${s.id}.final`));a!==null&&i.push(a)}catch{continue}return i.sort((o,s)=>s.startedAt.localeCompare(o.startedAt)||s.id.localeCompare(o.id)),i}function re(e,t){let n=_(e,t.id);Rt(E.dirname(n),{recursive:!0});let r=`${n}.tmp-${process.pid}-${oe(2).toString("hex")}`;try{wt(r,JSON.stringify(t,null,2),"utf8"),St(r,n)}catch(i){try{te(r,{force:!0})}catch{}throw i}}async function fe(e,t,n){await I(_(e,t.id),{force:!0}),await I(U(e,t.id),{force:!0}),await I(ue(e,t.id),{force:!0}),n&&await I(t.logPath,{force:!0})}function D(e){try{return process.kill(e,0),!0}catch(t){return t.code==="EPERM"}}function $(e,t=D){return e.status!=="running"?e.status:e.pid===void 0||!t(e.pid)?"stale":"running"}import{createHash as xt}from"node:crypto";import{rm as Ke}from"node:fs/promises";import je from"node:net";import It from"node:os";import At from"node:path";var X="TANSR_BG_RUNNER_ENDPOINT",K="TANSR_BG_RUNNER_TOKEN",We=1e3,Nt=2e3,Ot=4096,vt=100;function pe(e,t,n=process.platform){if(n==="win32"){let i=xt("sha1").update(e).digest("hex").slice(0,8);return`\\\\.\\pipe\\tansr-bg-${t}-${i}`}let r=ue(e,t);return Buffer.byteLength(r)<=vt?r:At.join(It.tmpdir(),`tansr-${t}${ae}`)}function Dt(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let n=t;return typeof n.op!="string"||typeof n.token!="string"?null:{op:n.op,token:n.token}}function Ct(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r+=1)n|=e.charCodeAt(r)^t.charCodeAt(r);return n===0}async function ge(e){let t=e.platform??process.platform,n=e.pid??process.pid,r=!1,i=new Set,o=je.createServer(a=>{i.add(a),a.setEncoding("utf8"),a.setTimeout(Nt,()=>a.destroy()),a.on("close",()=>{i.delete(a)}),a.on("error",()=>{});let u="",f=!1,l=h=>{f||(f=!0,a.end(JSON.stringify(h)+`
5
+ `))};a.on("data",h=>{if(f)return;if(u+=h,Buffer.byteLength(u)>Ot){l({ok:!1,error:"malformed"});return}let k=u.indexOf(`
6
+ `);if(k<0)return;let B=Dt(u.slice(0,k));if(B===null){l({ok:!1,error:"malformed"});return}if(!Ct(B.token,e.token)){l({ok:!1,error:"token_mismatch"});return}if(B.op==="ping"){l({ok:!0,id:e.id,pid:n});return}if(B.op==="stop"){l({ok:!0,id:e.id,pid:n,stopping:!0}),r||(r=!0,a.once("finish",()=>{e.onStop()}));return}l({ok:!1,error:"unknown_op"})})});t!=="win32"&&await Ke(e.endpoint,{force:!0}).catch(()=>{});let s=await new Promise(a=>{o.once("error",u=>{a({ok:!1,message:u.message})}),o.listen(e.endpoint,()=>{a({ok:!0})})});return s.ok?(o.unref(),{ok:!0,handle:{endpoint:e.endpoint,close:async()=>{for(let a of i)a.destroy();await new Promise(a=>{o.close(()=>a())}),t!=="win32"&&await Ke(e.endpoint,{force:!0}).catch(()=>{})}}}):s}function me(e,t,n,r={}){let i=r.timeoutMs??We;return new Promise(o=>{let s=!1,a="",u=je.connect(e),f=k=>{s||(s=!0,clearTimeout(l),u.destroy(),o(k))},l=setTimeout(()=>f({ok:!1,code:"timeout"}),i);u.setEncoding("utf8"),u.once("connect",()=>{u.write(JSON.stringify({op:n,token:t})+`
7
+ `)}),u.on("error",()=>f({ok:!1,code:"unreachable"}));let h=()=>{let k=a.indexOf(`
8
+ `),B=k>=0?a.slice(0,k):a;if(k<0&&!u.readableEnded)return;let b;try{b=JSON.parse(B)}catch{f({ok:!1,code:"malformed"});return}let P=typeof b=="object"&&b!==null?b:{};if(P.ok===!0&&typeof P.id=="string"&&typeof P.pid=="number"){f({ok:!0,id:P.id,pid:P.pid,stopping:P.stopping===!0});return}f({ok:!1,code:P.error==="token_mismatch"?"mismatch":"malformed"})};u.on("data",k=>{a+=k,h()}),u.on("end",()=>{a===""?f({ok:!1,code:"malformed"}):h()})})}async function ke(e,t={}){let n=e.runner;if(n===void 0)return{state:"legacy",reason:"runner_identity_unverifiable"};let r=await me(n.endpoint,n.token,"ping",t);return r.ok?r.id!==e.id||e.pid!==void 0&&r.pid!==e.pid?{state:"mismatch",reason:"runner_identity_mismatch"}:{state:"match",pid:r.pid}:r.code==="mismatch"?{state:"mismatch",reason:"runner_identity_mismatch"}:{state:"unreachable",reason:"runner_unreachable",code:r.code}}async function ye(e,t={}){if((t.platform??process.platform)!=="win32"&&e.pid!==void 0){let i=t.signal??((o,s)=>{process.kill(o,s)});try{return i(e.pid,"SIGTERM"),{ok:!0,via:"signal"}}catch(o){return{ok:!1,message:o instanceof Error?o.message:String(o)}}}if(e.runner===void 0)return{ok:!1,message:"runner_identity_unverifiable"};let r=await me(e.runner.endpoint,e.runner.token,"stop",t);return r.ok?{ok:!0,via:"ipc"}:{ok:!1,message:r.code}}import{spawn as Lt}from"node:child_process";import{createHash as Mt}from"node:crypto";import{readFile as Je}from"node:fs/promises";import Ve from"node:path";var qe=1e4;async function j(e,t={}){if(!Number.isInteger(e)||e<=0)return null;let n=t.platform??process.platform,r=t.timeoutMs??qe;try{return n==="linux"?await Ft(e):n==="win32"?await $t(e,r,t.env??process.env):await Kt(e,r)}catch{return null}}function he(e,t){return e===void 0||t===null?{state:"unverifiable"}:e.startTime!==void 0&&t.startTime!==void 0?{state:e.startTime===t.startTime?"match":"mismatch",via:"start_time"}:e.cmdlineSha256!==void 0&&t.cmdlineSha256!==void 0?{state:e.cmdlineSha256===t.cmdlineSha256?"match":"mismatch",via:"cmdline"}:{state:"unverifiable"}}function Se(e){return Mt("sha256").update(e).digest("hex")}async function Ft(e){let t=await Je(`/proc/${e}/stat`,"utf8"),n=t.lastIndexOf(")");if(n<0)return null;let i=t.slice(n+1).trim().split(/\s+/)[19];if(i===void 0||!/^\d+$/.test(i))return null;let o={startTime:i};try{let s=await Je(`/proc/${e}/cmdline`);s.length>0&&(o.cmdlineSha256=Se(s))}catch{}return o}function Gt(e){return["Import-Module -Name CimCmdlets,Microsoft.PowerShell.Utility","[Console]::OutputEncoding = [System.Text.Encoding]::UTF8",`$p = Get-CimInstance -ClassName Win32_Process -Filter "ProcessId = ${e}" -ErrorAction SilentlyContinue`,"if ($p) {",' $s = if ($p.CreationDate) { $p.CreationDate.ToUniversalTime().ToString("o") } else { $null }'," [pscustomobject]@{ start = $s; cmd = $p.CommandLine } | ConvertTo-Json -Compress","}"].join(`
9
+ `)}function Ut(e){let t=e.SystemRoot??e.SYSTEMROOT??e.windir;return t!==void 0&&t!==""?Ve.join(t,"System32","WindowsPowerShell","v1.0","powershell.exe"):"powershell.exe"}function Ht(e){let t=e.SystemRoot??e.SYSTEMROOT??e.windir;return t===void 0||t===""?e:{...e,PSModulePath:Ve.join(t,"System32","WindowsPowerShell","v1.0","Modules")}}async function $t(e,t,n){let r=Buffer.from(Gt(e),"utf16le").toString("base64"),i=await Re(Ut(n),["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand",r],t,Ht(n));if(i===null||i.code!==0)return null;let o=i.stdout.trim();if(o==="")return null;let s=JSON.parse(o);if(typeof s!="object"||s===null)return null;let a=s,u={};return typeof a.start=="string"&&a.start!==""&&(u.startTime=a.start),typeof a.cmd=="string"&&a.cmd!==""&&(u.cmdlineSha256=Se(Buffer.from(a.cmd,"utf8"))),u.startTime===void 0&&u.cmdlineSha256===void 0?null:u}async function Kt(e,t){let n=await Re("ps",["-o","lstart=","-p",String(e)],t);if(n===null||n.code!==0)return null;let r=n.stdout.trim();if(r==="")return null;let i={startTime:r},o=await Re("ps",["-ww","-o","command=","-p",String(e)],t);if(o!==null&&o.code===0){let s=o.stdout.trim();s!==""&&(i.cmdlineSha256=Se(Buffer.from(s,"utf8")))}return i}function Re(e,t,n,r){return new Promise(i=>{let o;try{o=Lt(e,t,{stdio:["ignore","pipe","ignore"],windowsHide:!0,...r===void 0?{}:{env:r}})}catch{i(null);return}let s=!1,a=l=>{s||(s=!0,clearTimeout(f),i(l))},u=[],f=setTimeout(()=>{try{o.kill()}catch{}a(null)},n);o.stdout?.on("data",l=>u.push(l)),o.on("error",()=>a(null)),o.on("close",l=>a({code:l,stdout:Buffer.concat(u).toString("utf8")}))})}import{execFile as jt}from"node:child_process";import{randomBytes as Wt}from"node:crypto";import{mkdir as Jt}from"node:fs/promises";import{existsSync as Vt}from"node:fs";import ze from"node:path";var Xe="worktrees",qt=/^[A-Za-z0-9._-]{1,64}$/,Yt=300;function we(e){return ze.join(V(e),Xe)}function Qe(e=()=>new Date){let t=e(),n=i=>String(i).padStart(2,"0");return`wt-${`${t.getUTCFullYear()}${n(t.getUTCMonth()+1)}${n(t.getUTCDate())}-${n(t.getUTCHours())}${n(t.getUTCMinutes())}${n(t.getUTCSeconds())}`}-${Wt(2).toString("hex")}`}function Ze(e){return qt.test(e)&&e!=="."&&e!==".."}function Ye(e,t){return new Promise(n=>{jt("git",[...e],{cwd:t,windowsHide:!0},(r,i,o)=>{if(r!==null){let s=(o.trim()!==""?o:r.message).trim();n({ok:!1,message:s.slice(0,Yt)});return}n({ok:!0,stdout:i})})})}async function zt(e){if(e.name!==void 0&&!Ze(e.name))return{ok:!1,key:R.worktreeBadName,params:{name:e.name}};let t=await Ye(["rev-parse","--is-inside-work-tree"],e.cwd);if(!t.ok||t.stdout.trim()!=="true")return{ok:!1,key:R.worktreeNotGit,params:{cwd:e.cwd}};let n=e.name??Qe(e.now),r=ze.join(we(e.storageRoot),n);if(await Jt(we(e.storageRoot),{recursive:!0}),Vt(r))return{ok:!1,key:R.worktreeExists,params:{path:r}};let i=await Ye(["worktree","add",r,"HEAD"],e.cwd);return i.ok?{ok:!0,path:r,name:n}:{ok:!1,key:R.worktreeGitFailed,params:{message:i.message}}}import{spawn as Xt,spawnSync as Qt}from"node:child_process";import{randomBytes as Zt}from"node:crypto";import{open as en}from"node:fs/promises";var W="TANSR_BG_TASK_ID",tn=16;function et(e,t,n=process.platform){return{endpoint:pe(e,t,n),token:Zt(tn).toString("hex")}}function nn(e){return new Promise(t=>{e.once("spawn",()=>{t({ok:!0})}),e.once("error",n=>{t({ok:!1,message:n.message})})})}async function rn(e){let t=e.now??(()=>new Date),n=ce(t),r=se(e.storageRoot,n),i=e.stripArgv(e.argv),o=et(e.storageRoot,n),s={schemaVersion:1,id:n,promptSummary:de(e.prompt),cwd:e.cwd,argv:le(i),logPath:r,status:"running",startedAt:t().toISOString(),...e.worktreePath!==void 0?{worktreePath:e.worktreePath}:{},runner:o};await G(e.storageRoot,s);let a=e.spawnTarget??{execPath:process.execPath,execArgv:process.execArgv,scriptPath:process.argv[1]??""},u=await en(r,"a"),f,l;try{let k=Xt(a.execPath,[...a.execArgv,a.scriptPath,...i],{cwd:e.worktreePath??e.cwd,env:{...e.env,[W]:n,TANSR_STORAGE_ROOT:e.storageRoot,[X]:o.endpoint,[K]:o.token},detached:!0,windowsHide:!0,stdio:["ignore",u.fd,u.fd]});f=await nn(k),l=k.pid,k.unref()}finally{await u.close()}return f.ok?{ok:!0,record:await O(e.storageRoot,n,{...l!==void 0?{pid:l}:{}})??s}:(await v(e.storageRoot,n,{status:"failed",endedAt:t().toISOString()}),{ok:!1,key:R.bgSpawnFailed,params:{message:f.message}})}function Te(e){if(process.platform==="win32"){let t=Qt("taskkill",["/pid",String(e),"/T","/F"],{encoding:"utf8"});if(t.status===0)return{ok:!0};let n=`${t.stderr??""}${t.stdout??""}`.trim();return{ok:!1,message:n!==""?n:`taskkill exit ${String(t.status)}`}}try{try{process.kill(-e,"SIGKILL")}catch{process.kill(e,"SIGKILL")}return{ok:!0}}catch(t){return{ok:!1,message:t instanceof Error?t.message:String(t)}}}async function on(e,t,n){let r=e[W];if(r===void 0||r==="")return;let i=N(e);try{await O(i,r,{sessionId:t})===null&&n(c(d.registryWriteFailed,{message:c(d.notFound,{id:r})}))}catch(o){n(c(d.registryWriteFailed,{message:o instanceof Error?o.message:String(o)}))}}var Pe={active:!1,close:async()=>{}};async function sn(e,t,n={}){let r=e[W],i=e[X],o=e[K];if(e===process.env&&delete process.env[K],r===void 0||r===""||(await an(e,r,n.probeProcess??j,t),i===void 0||i===""||o===void 0||o===""))return Pe;let s=n.now??(()=>new Date),a=n.onStop??(()=>{process.emit("SIGTERM","SIGTERM")||tt(e,Z.aborted,t,s).finally(()=>{process.exit(Z.aborted)})}),u=await ge({endpoint:i,token:o,id:r,onStop:a});if(!u.ok)return t(c(d.runnerEndpointFailed,{message:u.message})),Pe;let f=u.handle;return{active:!0,close:()=>f.close()}}async function an(e,t,n,r){let i=await n(process.pid);if(i===null)return;let o=N(e);try{await O(o,t,{process:i})===null&&r(c(d.registryWriteFailed,{message:c(d.notFound,{id:t})}))}catch(s){r(c(d.registryWriteFailed,{message:s instanceof Error?s.message:String(s)}))}}async function tt(e,t,n,r=()=>new Date,i){let o=e[W];if(o===void 0||o==="")return;let s=N(e);try{await v(s,o,{status:t===0?"completed":"failed",endedAt:r().toISOString(),exitCode:t},i)===null&&n(c(d.registryWriteFailed,{message:c(d.notFound,{id:o})}))}catch(a){n(c(d.registryWriteFailed,{message:a instanceof Error?a.message:String(a)}))}}import{readFile as ot}from"node:fs/promises";var it=4096,st=20,at=5e3,ut=100;async function nt(e,t,n){let r=$(e,t);return r!=="running"||e.runner===void 0?r:(await n(e)).state==="match"?"running":"stale"}var un=/^bg-[0-9a-z]+-[0-9a-f]{4}$/;function rt(e){return un.test(e)}function ct(e){let t=!1,n=!1,r=!1,i=[];for(let u of e){if(u==="--json"){t=!0;continue}if(u==="--all"){n=!0;continue}if(u==="--force"){r=!0;continue}if(u.startsWith("-"))return{ok:!1,key:R.unknownFlag,params:{flag:u}};i.push(u)}let[o,s,a]=i;return a!==void 0?{ok:!1,key:R.unexpectedArg,params:{arg:a}}:n&&o!=="clean"?{ok:!1,key:R.unknownFlag,params:{flag:"--all"}}:r&&o!=="kill"?{ok:!1,key:R.unknownFlag,params:{flag:"--force"}}:o===void 0||o==="list"?s!==void 0?{ok:!1,key:R.unexpectedArg,params:{arg:s}}:{ok:!0,action:"list",json:t}:o==="show"?s===void 0||!rt(s)?{ok:!1,key:d.showUsage}:{ok:!0,action:"show",id:s,json:t}:o==="kill"?s===void 0||!rt(s)?{ok:!1,key:d.killUsage}:{ok:!0,action:"kill",id:s,json:t,...r?{force:!0}:{}}:o==="clean"?s!==void 0?{ok:!1,key:R.unexpectedArg,params:{arg:s}}:{ok:!0,action:"clean",all:n,json:t}:{ok:!1,key:R.unexpectedArg,params:{arg:o}}}async function dt(e){let t;try{let r=await ot(e);t=r.subarray(Math.max(0,r.length-it)).toString("utf8")}catch{return[]}return t.split(/\r?\n/).filter(r=>r!=="").slice(-st).map(r=>F(r))}function cn(e,t){return{...H(e),displayStatus:$(e,t)}}function dn(e){if(e.length===0)return c(d.listEmpty);let t=[c(d.listHeader,{count:e.length})];for(let n of e)t.push(c(d.listLine,{id:n.id,status:n.displayStatus,startedAt:n.startedAt,summary:n.promptSummary===""?"-":n.promptSummary}));return t.join(`
10
+ `)}function ln(e,t){let n=d,r=[c(n.showHeader,{id:e.id}),c(n.showStatus,{status:e.displayStatus})];if(e.selfHealed!==void 0&&r.push(c(n.showSelfHealed,{source:e.selfHealed})),e.pid!==void 0&&r.push(c(n.showPid,{pid:e.pid})),r.push(c(n.showStarted,{time:e.startedAt})),e.endedAt!==void 0&&r.push(c(n.showEnded,{time:e.endedAt})),e.exitCode!==void 0&&r.push(c(n.showExitCode,{code:e.exitCode})),r.push(c(n.showCwd,{cwd:e.cwd})),e.worktreePath!==void 0&&(r.push(c(n.showWorktree,{path:e.worktreePath})),r.push(c(R.worktreeKeepHint,{path:e.worktreePath}))),e.sessionId!==void 0&&r.push(c(n.showSession,{sessionId:e.sessionId})),e.promptSummary!==""&&r.push(c(n.showPrompt,{summary:e.promptSummary})),r.push(c(n.showLog,{path:e.logPath})),t.length>0){r.push(c(n.showTailHeader));for(let i of t)r.push(` ${i}`)}return r.join(`
11
+ `)}async function fn(e,t={}){let n=t.stdout??process.stdout,r=t.stderr??process.stderr,i=t.env??process.env,o=t.cwd??process.cwd(),s=t.pidAlive??D,a=t.killTree??Te,u=t.verifyRunner??(g=>ke(g)),f=t.requestStop??(g=>ye(g)),l=t.killGraceMs??at,h=t.now??(()=>Date.now()),k=t.sleep??(g=>new Promise(m=>setTimeout(m,g))),B=t.probeProcess??(g=>j(g)),b=async g=>({...H(g),displayStatus:await nt(g,s,u)}),P=await Ae({cwd:o,env:i,...t.loadOptions!==void 0?{loadOptions:t.loadOptions}:{}});xe(Ie({configLocale:P.loaded.locale,env:i}));let y=ct(e);if(!y.ok)return r.write(c(y.key,y.params)+`
12
+ `),1;let x=N(i);if(y.action==="list"){let g=[];for(let m of await z(x,{pidAlive:s}))g.push(await b(m));return n.write((y.json?JSON.stringify({tasks:g}):dn(g))+`
13
+ `),0}if(y.action==="clean"){let g=await z(x,{pidAlive:s}),m=[];for(let w of g)await nt(w,s,u)!=="running"&&m.push(w);for(let w of m)await fe(x,w,y.all);return y.json?(n.write(JSON.stringify({removed:m.map(w=>w.id),logsRemoved:y.all?m.length:0})+`
14
+ `),0):(n.write((m.length===0?c(d.cleanEmpty):y.all?c(d.cleanDoneWithLogs,{count:m.length}):c(d.cleanDone,{count:m.length}))+`
15
+ `),0)}let p=await Y(x,y.id,{pidAlive:s});if(p===null)return r.write(c(d.notFound,{id:y.id})+`
16
+ `),1;if(y.action==="kill"){let g=$(p,s);if(g==="completed"||g==="failed")return r.write(c(d.killNotRunning,{id:p.id,status:g})+`
17
+ `),1;if(g==="stale"||p.pid===void 0)return r.write(c(d.killStale,{id:p.id})+`
18
+ `),1;let m=p.pid,w=await u(p),_e=y.force===!0&&(w.state==="legacy"||w.state==="unreachable"),Q=_e?"process":"runner",be=async()=>{let S=s(m)?he(p.process,await B(m)):{state:"unverifiable"};return S.state==="match"?null:S.state==="mismatch"?"process_identity_mismatch":"process_identity_unverifiable"};if(w.state!=="match"){if(!_e)return r.write(c(d.killIdentity,{id:p.id,reason:w.reason})+`
19
+ `),1;let S=await be();if(S!==null)return r.write(c(d.killForceIdentity,{id:p.id,reason:S})+`
20
+ `),1}let lt=await f(p),ft=h()+l,C=null;for(;;){let S=null;try{S=A(await ot(_(x,p.id),"utf8"))}catch{S=null}if(S!==null&&S.status!=="running"){C="graceful";break}if(!s(m)){C="exited";break}if(!lt.ok||h()>=ft)break;await k(ut)}if(C===null){if(Q==="process"){let M=await be();if(M!==null)return r.write(c(d.killForceIdentity,{id:p.id,reason:M})+`
21
+ `),1}else{let M=await u(p);if(M.state!=="match")return r.write(c(d.killIdentity,{id:p.id,reason:M.reason})+`
22
+ `),1}let S=a(m);if(!S.ok)return r.write(c(d.killFailed,{id:p.id,message:S.message??""})+`
23
+ `),1}let J=null;C==="graceful"?J=await Y(x,p.id,{pidAlive:s}):J=(await v(x,p.id,{status:"failed",endedAt:new Date(h()).toISOString()}))?.record??null;let L=C??"forced";if(y.json)return n.write(JSON.stringify({id:p.id,pid:m,stopped:L,killed:L==="forced",force:y.force===!0,verifiedBy:Q,record:J===null?null:H(J)})+`
24
+ `),0;if(L==="forced"&&Q==="process")return n.write(c(d.killForced,{id:p.id,pid:m})+`
25
+ `),0;let pt=L==="graceful"?d.killStopped:L==="exited"?d.killExited:d.killDone;return n.write(c(pt,{id:p.id,pid:m})+`
26
+ `),0}let Ee=await b(p),Be=await dt(p.logPath);return n.write((y.json?JSON.stringify({...Ee,logTail:Be.join(`
27
+ `)}):ln(Ee,Be))+`
28
+ `),0}export{d as a,gt as b,ve as c,ne as d,De as e,Ce as f,Le as g,T as h,_ as i,se as j,U as k,ce as l,de as m,le as n,G as o,A as p,H as q,Y as r,O as s,v as t,z as u,bt as v,re as w,fe as x,D as y,$ as z,X as A,K as B,We as C,pe as D,ge as E,me as F,ke as G,ye as H,qe as I,j as J,he as K,Xe as L,we as M,Qe as N,Ze as O,zt as P,W as Q,et as R,rn as S,Te as T,on as U,sn as V,tt as W,it as X,st as Y,at as Z,ut as _,ct as $,dt as aa,cn as ba,fn as ca};
29
+ //# sourceMappingURL=tansr-chunk-2AJTBN37.mjs.map