@testmuai/kane-cli 0.8.8 → 0.8.9
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/dist/{ChatSurface-LS3KF7XY.js → ChatSurface-HXCRGPSE.js} +1 -1
- package/dist/{ChromeProfilePicker-UIJ5ZBLY.js → ChromeProfilePicker-PJS4NGEC.js} +1 -1
- package/dist/{CliFeedbackPrompt-EIQQBWDY.js → CliFeedbackPrompt-Q56VKWKM.js} +1 -1
- package/dist/{CliUploadProgress-6U77ZBAX.js → CliUploadProgress-TMVTKNOT.js} +1 -1
- package/dist/{ConfigView-MVFLCF5N.js → ConfigView-Y7ZVYT2C.js} +1 -1
- package/dist/{EvidenceViewOffer-ANVEOXJA.js → EvidenceViewOffer-XV3WF2EC.js} +1 -1
- package/dist/FolderPicker-UGHFCPUL.js +2 -0
- package/dist/{InfoBox-57MRRSJI.js → InfoBox-IDJYGPXF.js} +1 -1
- package/dist/{LinksBox-RKAEQBFS.js → LinksBox-5XNJ3UJJ.js} +1 -1
- package/dist/{ProfilesView-RQCQFIXH.js → ProfilesView-U73QBC5W.js} +1 -1
- package/dist/{ProjectPicker-5JEEHLY3.js → ProjectPicker-KCE2VZCO.js} +1 -1
- package/dist/{SaveSessionPrompt-TQROE5JM.js → SaveSessionPrompt-3FHLIRLS.js} +1 -1
- package/dist/SingleShotApp-ECA24PKW.js +2 -0
- package/dist/{SummaryBox-C4UY6R65.js → SummaryBox-GKHU4C4H.js} +1 -1
- package/dist/TestMdRunView-KLMMXQCN.js +2 -0
- package/dist/{TestrunEvidenceTable-LY24PK3T.js → TestrunEvidenceTable-INNZCGTM.js} +1 -1
- package/dist/{WhoamiView-2FIHHS4G.js → WhoamiView-PSL7PUVT.js} +1 -1
- package/dist/{app-download-TO672LBR.js → app-download-MBUJGT3R.js} +1 -1
- package/dist/{auth-EVXJVU72.js → auth-TYG473Z4.js} +1 -1
- package/dist/{binary-Y4DKNDQH.js → binary-QQXWA35Q.js} +1 -1
- package/dist/{bind-FVCVYYL3.js → bind-WJ5UEMMZ.js} +2 -2
- package/dist/{bootstrap-4XBQFKWF.js → bootstrap-MYG4TJVF.js} +1 -1
- package/dist/bridge-S3WZ4TH2.js +2 -0
- package/dist/{changelog-LAQ2VGK6.js → changelog-N4L5ZUGF.js} +1 -1
- package/dist/{chunk-AO5QH6UU.js → chunk-22HCCSL7.js} +1 -1
- package/dist/{chunk-5YCOYFZH.js → chunk-27P7PJAL.js} +1 -1
- package/dist/{chunk-UYLNH4SH.js → chunk-2DKJZPIH.js} +1 -1
- package/dist/{chunk-AS5UKK27.js → chunk-34VSIQNO.js} +1 -1
- package/dist/{chunk-7CXIOJB3.js → chunk-367NASYK.js} +1 -1
- package/dist/{chunk-H6YGG3GC.js → chunk-6MJGCETZ.js} +1 -1
- package/dist/{chunk-XFTF7OOY.js → chunk-6S426ODE.js} +3 -3
- package/dist/{chunk-VQVERWC3.js → chunk-6UNXON3J.js} +1 -1
- package/dist/{chunk-ATIX6CVS.js → chunk-6ZNRPDLP.js} +2 -2
- package/dist/{chunk-Q6743UUQ.js → chunk-7RAIRUXO.js} +1 -1
- package/dist/{chunk-HJOGBE23.js → chunk-AARF24Z3.js} +3 -3
- package/dist/{chunk-S6M36UIV.js → chunk-AOB2ZX45.js} +1 -1
- package/dist/{chunk-WRIPTYSN.js → chunk-AROBXG66.js} +1 -1
- package/dist/{chunk-JE6OO2Q6.js → chunk-BOZODWIZ.js} +1 -1
- package/dist/{chunk-UPHF2J5E.js → chunk-BVON52QL.js} +1 -1
- package/dist/{chunk-3GZ4FQ4L.js → chunk-CCEXSCTN.js} +1 -1
- package/dist/{chunk-PYHWCV2V.js → chunk-CJD3EEPT.js} +1 -1
- package/dist/{chunk-DHPBVHED.js → chunk-COJGXGKZ.js} +1 -1
- package/dist/{chunk-OQAN2WYO.js → chunk-D5MK4WTK.js} +2 -2
- package/dist/{chunk-P67CGWD6.js → chunk-DGNVKMGN.js} +1 -1
- package/dist/{chunk-OO7LFDET.js → chunk-DKUD2D5Y.js} +1 -1
- package/dist/{chunk-SQWVGI3J.js → chunk-DUEROGOF.js} +1 -1
- package/dist/{chunk-LPH4TERT.js → chunk-DWHXXPDX.js} +1 -1
- package/dist/{chunk-6T3DWH56.js → chunk-F5BI3ALG.js} +1 -1
- package/dist/{chunk-QXLX6LMJ.js → chunk-FC6DEFUP.js} +1 -1
- package/dist/{chunk-R4PLEH2A.js → chunk-FT23VFSR.js} +43 -43
- package/dist/{chunk-WDOEMLFZ.js → chunk-GWSGTZMK.js} +1 -1
- package/dist/{chunk-4BIJCAR4.js → chunk-H5TNYYZW.js} +1 -1
- package/dist/{chunk-V5DYLGAM.js → chunk-H6KL3FSB.js} +1 -1
- package/dist/{chunk-FL6TCYA5.js → chunk-HKCZ67AT.js} +1 -1
- package/dist/{chunk-K5DL7CZ4.js → chunk-IANCFSSL.js} +1 -1
- package/dist/{chunk-UY2ES2Z6.js → chunk-IBPF5IM5.js} +1 -1
- package/dist/{chunk-BYOXTXLC.js → chunk-IDQBMC3B.js} +1 -1
- package/dist/{chunk-CQCV2RJK.js → chunk-IJYV3KKD.js} +2 -2
- package/dist/{chunk-GZLQ2AR6.js → chunk-IPZFZUJX.js} +1 -1
- package/dist/{chunk-7UYSTQMI.js → chunk-JPZHCB4Z.js} +1 -1
- package/dist/{chunk-NAZ36RKI.js → chunk-KKBID6TD.js} +1 -1
- package/dist/{chunk-VCDXUUJQ.js → chunk-LRHSWJDR.js} +1 -1
- package/dist/{chunk-LMYE3M75.js → chunk-M7D7EHNN.js} +1 -1
- package/dist/{chunk-FGRTNRBS.js → chunk-ME3DGP7G.js} +2 -2
- package/dist/{chunk-N5I2QYFD.js → chunk-MJHLQKQC.js} +1 -1
- package/dist/{chunk-O4IEPE3T.js → chunk-NTEI2O3O.js} +1 -1
- package/dist/{chunk-HZDNGNO2.js → chunk-NVNPXOOC.js} +1 -1
- package/dist/{chunk-6TVNJDSE.js → chunk-O3RRCPIU.js} +1 -1
- package/dist/{chunk-7YX2HUHY.js → chunk-OEH4LU5L.js} +1 -1
- package/dist/{chunk-ZIJLOYXX.js → chunk-OLKHUNSQ.js} +7 -7
- package/dist/{chunk-WALVOFKR.js → chunk-OME5EJ5X.js} +4 -4
- package/dist/{chunk-HK3FFI7Y.js → chunk-OR6M5HCV.js} +2 -2
- package/dist/{chunk-WYOEOJM2.js → chunk-P2VERPOP.js} +1 -1
- package/dist/{chunk-ZSFOANLG.js → chunk-PH4RABYU.js} +1 -1
- package/dist/{chunk-AZ73FJRK.js → chunk-QDE2BBAK.js} +1 -1
- package/dist/{chunk-OGJR5VIG.js → chunk-QHUNFH5P.js} +1 -1
- package/dist/{chunk-ZKRL6HMY.js → chunk-QS3DXKZN.js} +1 -1
- package/dist/{chunk-2MQP4SSF.js → chunk-R5PIIYN2.js} +1 -1
- package/dist/{chunk-XJ4TJARR.js → chunk-R7GMVPAF.js} +1 -1
- package/dist/{chunk-5M5BG4MT.js → chunk-SJBIXLL3.js} +1 -1
- package/dist/{chunk-BAKOH2BR.js → chunk-SV5ZTCQA.js} +1 -1
- package/dist/{chunk-XLVH4CIZ.js → chunk-TJLGHGUO.js} +2 -2
- package/dist/{chunk-ZHKBSKCB.js → chunk-TJR4R45C.js} +1 -1
- package/dist/{chunk-5LYPSIBC.js → chunk-TN4SXGAP.js} +1 -1
- package/dist/{chunk-PQYBIWZH.js → chunk-UEIQTXB6.js} +1 -1
- package/dist/{chunk-JPGRUMCS.js → chunk-VDKGMVXZ.js} +1 -1
- package/dist/{chunk-UDW4ZZAW.js → chunk-VQFJM7VP.js} +1 -1
- package/dist/{chunk-LI5FMAUO.js → chunk-VSEWQEM5.js} +1 -1
- package/dist/{chunk-QVR2PB6Y.js → chunk-W5BTYVZD.js} +1 -1
- package/dist/{chunk-WPSQYEBP.js → chunk-WH5RVDD6.js} +1 -1
- package/dist/{chunk-RHL7KZNC.js → chunk-WHMMOMUY.js} +1 -1
- package/dist/{chunk-36ZVMJTJ.js → chunk-XPFFH2PC.js} +1 -1
- package/dist/{chunk-7RTITBZG.js → chunk-Z2DT2QMX.js} +1 -1
- package/dist/{chunk-BRE426DP.js → chunk-ZAKX5BN6.js} +1 -1
- package/dist/{chunk-6LYQ4MJH.js → chunk-ZBJAYCPS.js} +1 -1
- package/dist/{chunk-K6JRFRGS.js → chunk-ZHB7V3NY.js} +1 -1
- package/dist/{config-5UNFAVY6.js → config-ZDGCZZT3.js} +1 -1
- package/dist/{credentials-64JYS7AQ.js → credentials-YEWA7HXA.js} +1 -1
- package/dist/{deps-bundle-5JPHXHQV.js → deps-bundle-JQUW73W5.js} +1 -1
- package/dist/{deps-resolve-WFZZ22XH.js → deps-resolve-RXF3JWAP.js} +1 -1
- package/dist/{dispatch-JLMCXOSK.js → dispatch-TRYJZWJE.js} +1 -1
- package/dist/{doctor-KJMR7NRK.js → doctor-F7R4WUSI.js} +1 -1
- package/dist/{evidence-OFTY5U4X.js → evidence-F3CQJQIB.js} +1 -1
- package/dist/{evolve-cmd-LU6LPT4F.js → evolve-cmd-ICTXNYU4.js} +1 -1
- package/dist/{extract-bind-YYIOEAYR.js → extract-bind-PH3VB7PY.js} +2 -2
- package/dist/{extract-cmd-Q7OG6RY6.js → extract-cmd-HSESPCTL.js} +1 -1
- package/dist/{generate-headless-NCVM643E.js → generate-headless-Z5YF7UHX.js} +2 -2
- package/dist/index.js +15 -15
- package/dist/{ingest-cmd-42VRDSPV.js → ingest-cmd-SNPNVPIO.js} +1 -1
- package/dist/install-VBUDO2YW.js +2 -0
- package/dist/{interactive-bind-ZDJS7PCV.js → interactive-bind-HZG2KCTX.js} +3 -3
- package/dist/{list-commands-3IKFZSGB.js → list-commands-BHQHPHOH.js} +1 -1
- package/dist/login-flow-TWGSFMWW.js +2 -0
- package/dist/{mobile-prompts-XPQSRBIW.js → mobile-prompts-ELBW35KK.js} +1 -1
- package/dist/{persist-recorded-session-MFQ7JCLJ.js → persist-recorded-session-DXUJXHC5.js} +1 -1
- package/dist/{pipeline-2XITQU5W.js → pipeline-ULKJX3FG.js} +1 -1
- package/dist/prepare-target-M656XQLU.js +2 -0
- package/dist/{reconcile-cmd-BKIJFVQT.js → reconcile-cmd-DBOUGUEB.js} +1 -1
- package/dist/{reconcile-deps-Y5G456WD.js → reconcile-deps-RX66LB4B.js} +2 -2
- package/dist/{reconcile-engine-WDC2MEOY.js → reconcile-engine-OEDO57U7.js} +1 -1
- package/dist/{recording-banner-P3RUW62P.js → recording-banner-COX2HBLL.js} +1 -1
- package/dist/registry-PAVGNBIB.js +2 -0
- package/dist/{require-project-folder-ZGQLWZV5.js → require-project-folder-XFUJYJEA.js} +1 -1
- package/dist/{resolve-run-intent-DHZD6A4B.js → resolve-run-intent-24D3BV2J.js} +1 -1
- package/dist/{resolver-W54NOQXY.js → resolver-ITA6TGPJ.js} +1 -1
- package/dist/{run-7TZTUTTU.js → run-IHELHWA2.js} +1 -1
- package/dist/{run-BGQTRIU4.js → run-OTSAYPBQ.js} +1 -1
- package/dist/{run-test-md-WO2UDYPM.js → run-test-md-U5PSCPZU.js} +2 -2
- package/dist/{skill-installer-UTVUPOTD.js → skill-installer-STKFBIY4.js} +1 -1
- package/dist/{spawner-SHCGHLQS.js → spawner-R76ROCR2.js} +1 -1
- package/dist/tcg-generate-VJARWDD4.js +2 -0
- package/dist/{testmd-actions-UCJ4ULSX.js → testmd-actions-PXGLZV5L.js} +1 -1
- package/dist/token-refresh-ZFT457VI.js +2 -0
- package/dist/{validate-basic-XEPS5I6V.js → validate-basic-BPJVV64Y.js} +1 -1
- package/dist/{verdicts-SOX22V6V.js → verdicts-56ZZN3E4.js} +1 -1
- package/dist/{version-check-LWDLMWBJ.js → version-check-PWHLDMPD.js} +1 -1
- package/dist/{walk-session-M3OIWR5K.js → walk-session-OMUB7DPJ.js} +1 -1
- package/dist/{with-telemetry-SF5RHYQE.js → with-telemetry-WI5FZFEK.js} +1 -1
- package/package.json +11 -11
- package/dist/FolderPicker-HVI6KITN.js +0 -2
- package/dist/SingleShotApp-VJVY3F4H.js +0 -2
- package/dist/TestMdRunView-X3CCNYV5.js +0 -2
- package/dist/bridge-6DCBL3GY.js +0 -2
- package/dist/install-5NMP6ZV4.js +0 -2
- package/dist/login-flow-UXUQ7GQT.js +0 -2
- package/dist/prepare-target-CKRWHYXS.js +0 -2
- package/dist/registry-OEY4IXB6.js +0 -2
- package/dist/tcg-generate-YDNE643C.js +0 -2
- package/dist/token-refresh-ZNV2OSZC.js +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as $}from"./chunk-A2SQD2AY.js";import{a as F}from"./chunk-
|
|
2
|
+
import{a as $}from"./chunk-A2SQD2AY.js";import{a as F}from"./chunk-IDQBMC3B.js";import{a as ee}from"./chunk-JUJ4SAGH.js";import{f as Z,g as z}from"./chunk-34VSIQNO.js";import"./chunk-ZMNJBUAO.js";import"./chunk-W5TTF7GB.js";import"./chunk-I7TIGB7K.js";import"./chunk-VQFJM7VP.js";import"./chunk-ME3DGP7G.js";import"./chunk-5G22NOZK.js";import"./chunk-KKBID6TD.js";import"./chunk-BB2W35TW.js";import"./chunk-AXTPNZPX.js";import"./chunk-L2TV4G56.js";import"./chunk-BZAGVBCX.js";import"./chunk-IVQX3AKL.js";import"./chunk-KRKGZ2ZW.js";import{e as Y}from"./chunk-ZHB7V3NY.js";import"./chunk-WH5RVDD6.js";import"./chunk-OME5EJ5X.js";import"./chunk-2UIHS2FH.js";import{c as L}from"./chunk-YKTYVJBN.js";import"./chunk-EV64VI66.js";import"./chunk-GX3FPJUG.js";import"./chunk-427OQS2N.js";import"./chunk-54JZ6VEW.js";import"./chunk-DNNZ353O.js";import"./chunk-Q2F5QB2W.js";import"./chunk-R7QAS6LZ.js";import"./chunk-BKHXPBWN.js";import"./chunk-N2P4MI32.js";import{c as O}from"./chunk-5DT7PIGB.js";import"./chunk-NVGBE2DR.js";import{a as A}from"./chunk-CH273NAE.js";import{a as U,b as H}from"./chunk-VSEWQEM5.js";import"./chunk-4PMZ5FCD.js";import"./chunk-KBM3XHAM.js";import"./chunk-2YEHV2CX.js";import"./chunk-IDX3TOPY.js";import"./chunk-BKM2LWU2.js";import"./chunk-W3Z7AZNT.js";import"./chunk-JQW2QFSX.js";import"./chunk-6FCPS2VT.js";import"./chunk-UH2ZTX4E.js";import"./chunk-XMTSHHYQ.js";import"./chunk-DBIBROYW.js";import"./chunk-AKX4VRRR.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-MSGW4JDG.js";import"./chunk-RSSOJ3L2.js";import"./chunk-5EOX4MEY.js";import"./chunk-RZ4F3BHX.js";import"./chunk-DWHXXPDX.js";import"./chunk-UR6MHSHU.js";async function ue(t){let[{render:n},o,{QuestionBatchPrompt:f}]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./ui-JEJGTURD.js")]),g=o.default??o;return new Promise(y=>{let x=n(g.createElement(f,{questions:t,onSubmit:r=>{x.unmount(),y(r)}}))})}async function le(t,n){let[{render:o},f,{ReviewChecklist:g}]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./ui-JEJGTURD.js")]),y=f.default??f;return new Promise(x=>{let r=o(y.createElement(g,{items:t.map(v=>{let h=n.get(v.temp_ref);return{uc:v,dedupWith:h&&!h.archived?h.cid:void 0,archivedMatch:h?.archived?{cid:h.cid,reason:h.reason}:void 0}}),onSubmit:v=>{r.unmount(),x(v)}}))})}async function me(t){let{createInterface:n}=await import("readline/promises"),o=n({input:process.stdin,output:process.stdout});try{let f=await o.question(`${t} [y/N] `);return/^y(es)?$/i.test(f.trim())}finally{o.close()}}async function be(t){let n=A(process.cwd()),o=H({verb:"extract",mode:t.plan?"cli":"interactive",contextRoot:n,env:U(),resumeSid:t.resume,write:!0,longSession:!0}),g={...await Y(),...o.spawnEnv()},y=await L(g);if(!y.ok)return process.stderr.write((y.message??"error: turn-endpoint preflight failed")+`
|
|
3
3
|
`),process.stderr.write(o.supportFooter()+`
|
|
4
4
|
`),o.error("preflight_auth"),await o.end({exit_code:2}),2;let x=async()=>y;if(t.plan){let s=await z(t,{contextDir:n,agent:F,preflightTurn:x,ask:ue,review:le,confirmStale:me,out:l=>process.stdout.write(l+`
|
|
5
5
|
`),progress:l=>process.stderr.write(l+`
|
|
6
6
|
`),isTTY:O(),auth:g,telemetry:o});return s===1&&process.stderr.write(o.supportFooter()+`
|
|
7
|
-
`),await o.end({exit_code:s}),s}let[{render:r},v,{ScrollbackProvider:h},{ChatSurface:u},{ScrollbackTap:j},{makeChatController:Q},{setInkExit:_},W]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./scrollback-JLPJR25X.js"),import("./ChatSurface-
|
|
7
|
+
`),await o.end({exit_code:s}),s}let[{render:r},v,{ScrollbackProvider:h},{ChatSurface:u},{ScrollbackTap:j},{makeChatController:Q},{setInkExit:_},W]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./scrollback-JLPJR25X.js"),import("./ChatSurface-HXCRGPSE.js"),import("./ScrollbackTap-Q3IOKNMS.js"),import("./chat-controller-YJCNU76T.js"),import("./exit-manager-ZLDO54S4.js"),Promise.all([import("./chat-committer-K3NOTLOU.js"),import("./descriptor-PWUUNYV7.js"),import("./explain-3HAZY7Q6.js"),import("./readmodel-TDRFVDVI.js")])]),[{commitChatTurn:M},{topologyDescriptor:e},{explain:a},{openGraph:k}]=W,E=v.default??v,i=Q({commitChatTurn:M,descriptor:e(),contextDir:n,refreshGraph:()=>k(n),graph:k(n),explain:a,by:{kind:"human",id:"owner"},dedupFlags:s=>Z(s,k(n))}),q={current:null},P=null,J=0,G=null,V=!1,te=()=>{if(J+=1,J>=2){try{I.unmount()}catch{}$({state:"interrupted",reason:"ctrl+c \xD72",facts:["forced quit \u2014 anything already committed is safe in the store"]}),process.exit(130)}i.requestPause(),G=setTimeout(()=>{V||(V=!0,(async()=>{i.finalizeForExit(),await q.current?.flush();try{I.unmount()}catch{}$({state:"interrupted",facts:["the agent did not confirm the pause within 5s \u2014 nothing new was saved"]}),process.exit(130)})())},5e3)},re=await import("./dossier-Y6TJWFZU.js"),ne=s=>{try{return re.buildDossier(k(n),s)}catch{return null}},se={listUcs:()=>{let s=k(n),l=new Set(i.state.turns.flatMap(c=>(c.items??[]).map(m=>m.title.toLowerCase()))),d={high:0,med:1,low:2};return s.byLabel("usecase").filter(c=>!s.superseded.has(c.cid)).map((c,m)=>{let b=c.content,C=String(b.title??c.cid.slice(0,12)),N=ee(s,c.cid),S=N?N.designed_at_cid===c.cid?"current":"stale":void 0;return{key:c.cid,title:C,badge:S==="current"?"designed":S==="stale"?"designed \xB7 stale":l.has(C.toLowerCase())?"drafted this session":"existing",designed:S,risk:b.risk,i:m}}).sort((c,m)=>(d[c.risk??"zz"]??3)-(d[m.risk??"zz"]??3)||c.i-m.i).map(({key:c,title:m,badge:b,designed:C})=>({key:c,title:m,badge:b,designed:C}))},runDesignChild:async(s,l=!1,d="design")=>{try{let{designEntryCheck:p,confirmUnreviewedViaAsk:T}=await import("./trust-gate-EX7R2P4Y.js"),w=p(k(n),s);if(!w.ok&&(w.code==="UC_UNREVIEWED"||w.code==="UC_ARCHIVED")&&!await T(D=>i.ask(D),w))return i.note(`design child refused \u2014 approve it first: ${w.reviewCmd}`),2}catch{}let[{runDesign:c}]=await Promise.all([import("./run-OTSAYPBQ.js")]),m="",b=(()=>{try{let p=k(n),T=p.resolve(s);return(T?p.getNode(T.cid)?.content?.title:void 0)??s}catch{return s}})(),{collectSessionItems:C}=await import("./session-items-2ATN7VXG.js"),N=C(i.state.turns).entries.length,S=i.state.credits?.total,ce=Date.now();i.ledger({kind:"childOpen",verb:d,subject:b});let de=p=>{let T=Math.max(1,Math.round((Date.now()-ce)/1e3)),w=C(i.state.turns).entries.length-N,B=i.state.credits?.total,D=B!==void 0&&S!==void 0?B-S:B;i.ledger(p===0?{kind:"childClose",verb:d,subject:b,ok:!0,durS:T,...w>0?{results:`${w} item${w===1?"":"s"}`}:{},...D!==void 0&&D>0?{credits:D}:{}}:{kind:"childClose",verb:d,subject:b,ok:!1,durS:T,exitCode:p,fixCmd:`kane-cli design tests --use-case ${s}${l||d==="evolve"?" --force":""}`});let X=C(i.state.turns).entries.length;i.ledger({kind:"childBack",parentVerb:"extract",context:`${X} draft${X===1?"":"s"} saved`})},R=1;try{R=await c({useCase:s,force:l,mode:"interactive"},{contextDir:n,agent:F,preflightTurn:x,ask:p=>i.ask(p),chat:i,nested:!0,out:p=>{m=p},progress:()=>{},isTTY:!0,auth:g})}finally{de(R)}return R!==0&&m&&i.note(m),R}},{makeReconcileDeps:ie}=await import("./reconcile-deps-RX66LB4B.js"),oe=ie({contextDir:n,...t.changeContext?{changeContext:t.changeContext}:{},note:s=>i.note(s)}),ae={verb:"extract",sid:t.resume??o.ids.session_id,env:U(),...t.source?{subject:t.source}:{}},I=r(E.createElement(h,null,E.createElement(j,{into:q}),E.createElement(u,{controller:i,verb:"extract",onCtrlC:te,chain:se,inspect:ne,reconcile:oe,meta:ae})),{exitOnCtrlC:!1});_(()=>I.unmount());let K=null;try{let s=z(t,{contextDir:n,agent:F,preflightTurn:x,onSummary:d=>{P=d},ask:d=>i.ask(d),review:async d=>new Map(d.map(c=>[c.temp_ref,{resolution:"skipped"}])),confirmStale:async()=>!0,out:d=>i.note(d),progress:()=>{},isTTY:O(),auth:g,chat:i,telemetry:o});s.finally(()=>{V=!0});let l=await s;return K=l,l===1&&process.stderr.write(o.supportFooter()+`
|
|
8
8
|
`),await o.end({exit_code:l}),l}catch(s){throw P||(P={state:"crashed",facts:[`the session ended unexpectedly \u2014 ${s instanceof Error?s.name:"error"}`]}),s}finally{V=!0,G&&clearTimeout(G),i.finalizeForExit(),await q.current?.flush();try{I.unmount()}catch{}P?$(P):K===1&&$({state:"interrupted",facts:["the session ended without saving \u2014 see the error above"]})}}async function Ce(t){let n=H({verb:"extract",mode:t.mode,contextRoot:A(process.cwd()),env:U(),resumeSid:t.resume,write:!0,longSession:!0}),{makeHeadlessIO:o,resolveEncoding:f,guardedChannels:g}=await import("./headless-io-66RG5NN5.js"),{withStructuredNext:y,prepareStructuredResume:x}=await import("./structured-answers-YAVW65G4.js"),r=y(o(f(t.mode),"extract")),{runWithChannel:v}=await import("./run-channel-RGH4WIQX.js"),h=f(t.mode)==="ndjson"?e=>v({event:a=>r.event(a)},e):e=>e();for(let e of t.landed??[]){let a=e;r.event({type:"ingested",source_id:e.source_id,status:e.status,cid:e.source_cid,...a.warnings?.length?{warnings:a.warnings}:{},...a.media?{media:a.media}:{},...a.duplicate_of?{duplicate_of:a.duplicate_of}:{},...a.lineage_candidate?{lineage_candidate:a.lineage_candidate}:{}})}let u;try{u=x({opts:t,contextDir:A(process.cwd()),verb:"extract"})}catch(e){let a=e instanceof Error?e.message:String(e);return r.out(`error: ${a}`),t.mode==="agent"&&r.event({type:"error",message:a}),await n.end({exit_code:1}),t.mode==="agent"?r.done(1,"error"):1}if(u.kind==="refuse")return r.out(u.error),t.mode==="agent"&&r.event({type:"error",message:u.error,code:u.code}),await n.end({exit_code:2}),t.mode==="agent"?r.done(2,"refused"):2;let j=t;if(u.kind==="apply"){for(let e of u.notes)r.out(e);if(u.matchedQids.length>0){r.out(`applying ${u.matchedQids.length} structured answer(s) from --answer to the paused session's pending questions`);for(let e of u.matchedQids)r.event({type:"panel_resolved",id:e,by:"user",via:"flag"})}u.statement&&(j={...t,message:[t.message,u.statement].filter(Boolean).join(`
|
|
9
9
|
|
|
10
10
|
`)})}let{makeInterruptGuard:Q}=await import("./interrupt-guard-UREUWNRL.js"),_=Q(F,e=>r.out(e)),M=g(r,()=>_.interrupted(),/^error: (agent failed|repair run failed|agent ended)/);try{let e=await h(async()=>{let a={...await Y(),...n.spawnEnv()};return z(j,{contextDir:A(process.cwd()),agent:_.agent,preflightTurn:()=>L(a),ask:async()=>[],review:async k=>new Map(k.map(E=>[E.temp_ref,{resolution:"skipped"}])),confirmStale:async()=>!1,out:M.out,emit:M.emit,progress:r.progress,isTTY:!1,auth:a,telemetry:n})});return _.interrupted()&&e!==3?(r.out("interrupted \u2014 no session saved"),await n.end({exit_code:130}),r.done(130)):(e===1&&r.out(n.supportFooter()),await n.end({exit_code:e}),r.done(e))}catch(e){return r.event({type:"error",message:`error: extract failed: ${e instanceof Error?e.message:String(e)}`}),r.out(`error: extract failed: ${e instanceof Error?e.message:String(e)}`),r.out('hint: the full trace is in the file named on the "trace:" line at the start of this run'),r.done(1)}finally{_.dispose()}}export{Ce as bindExtractHeadless,be as bindExtractInteractive};
|
|
@@ -2,4 +2,4 @@ import { createRequire } from 'module'; const require = createRequire(import.met
|
|
|
2
2
|
import{a as i}from"./chunk-CH273NAE.js";import"./chunk-UR6MHSHU.js";import{existsSync as u}from"fs";async function g(e){if(e.mode!=null&&!["interactive","agent","ci","override"].includes(e.mode)){let{makeHeadlessIO:t,agentRefusal:r}=await import("./headless-io-66RG5NN5.js");return r(t("ndjson","extract"),`extract: --mode must be interactive | agent | ci | override, got '${e.mode}'`,"MODE_USAGE")}let n=async(t,r)=>{if(e.mode!=="agent")return process.stderr.write(t+`
|
|
3
3
|
`),2;let{makeHeadlessIO:o,agentRefusal:c}=await import("./headless-io-66RG5NN5.js");return c(o("ndjson","extract"),t,r)};if(e.apply)return n("extract: --apply is not implemented yet \u2014 coming with the plan\u2192apply workflow (run without --apply, or use --plan to preview)");{let{validateResumeMessage:t}=await import("./headless-io-66RG5NN5.js"),r=t(e,"extract");if(r)return n(r)}{let{gateStructuredFlags:t}=await import("./structured-answers-YAVW65G4.js"),r=t(e,"extract");if(r)return n(r,"STRUCTURED_FLAGS_USAGE")}if(e.withSource&&!e.resume)return n("extract: --with-source pairs with --resume \u2014 it lands the source and sets the resumed session's pending questions aside");if(e.queued)return n("extract: --queued is gone \u2014 extract sweeps every pending source by default (just run kane-cli context extract)");if(!u(i(process.cwd())))return n("error: no context store here (run `kane-cli context ingest <files>` first)","NO_STORE");if(!e.mode&&!process.stdin.isTTY)return process.stderr.write(`extract: no TTY \u2014 pass an explicit --mode agent|ci|override to run headless
|
|
4
4
|
`),2;let s=e.mode??"interactive";if(s==="interactive"){if(!process.stdin.isTTY||!process.stdout.isTTY)return process.stderr.write(`extract: --mode interactive needs a TTY on stdin and stdout (use --mode agent|ci|override headless)
|
|
5
|
-
`),2;let{bindExtractInteractive:t}=await import("./extract-bind-
|
|
5
|
+
`),2;let{bindExtractInteractive:t}=await import("./extract-bind-PH3VB7PY.js");return t(e)}let{bindExtractHeadless:a}=await import("./extract-bind-PH3VB7PY.js");return a({...e,mode:s})}export{g as extractCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as T,f as P,g as $,h as G,j as N,k as M,l as B,m as I,n as L,o as U,p as F,r as z,s as C,t as _,u as O,v as K}from"./chunk-
|
|
2
|
+
import{a as T,f as P,g as $,h as G,j as N,k as M,l as B,m as I,n as L,o as U,p as F,r as z,s as C,t as _,u as O,v as K}from"./chunk-JPZHCB4Z.js";import{b as k}from"./chunk-VDKGMVXZ.js";import{d as J}from"./chunk-O3RRCPIU.js";import{c as x}from"./chunk-DKUD2D5Y.js";import"./chunk-VZ7KXRXB.js";import"./chunk-CCEXSCTN.js";import"./chunk-TDPWFYTJ.js";import{a as A}from"./chunk-NTEI2O3O.js";import"./chunk-IBPF5IM5.js";import{h as H}from"./chunk-QS3DXKZN.js";import"./chunk-BPMSNGXQ.js";import"./chunk-VE3SUJMA.js";import"./chunk-R5PIIYN2.js";import"./chunk-MMBBQ4OZ.js";import"./chunk-OR6M5HCV.js";import"./chunk-MSGW4JDG.js";import{n as E,o as q}from"./chunk-RSSOJ3L2.js";import"./chunk-5EOX4MEY.js";import"./chunk-Z7S3IWUX.js";import"./chunk-4JOD47QI.js";import"./chunk-6UNXON3J.js";import"./chunk-IPZFZUJX.js";import{a as R}from"./chunk-H6KL3FSB.js";import"./chunk-DPUV6OSP.js";import"./chunk-NLCCBXXV.js";import"./chunk-RZ4F3BHX.js";import"./chunk-EYOCNMUM.js";import{a as j}from"./chunk-6MJGCETZ.js";import"./chunk-DWHXXPDX.js";import"./chunk-UR6MHSHU.js";import{join as se}from"path";async function V(t){let e=t.projectId,n=t.folderId,r=null;if(!e&&t.autoResolve){let l=await t.resolver.resolve();if(!l)throw new $("unauthorized; run `kane-cli login`");let u=await H({creds:t.autoResolve.creds,config:t.autoResolve.config,profile:t.autoResolve.profile,env:t.autoResolve.envName,tmsCreds:{username:l.username,access_key:l.access_key},isLocal:!1,log:t.log});u.status==="ok"&&(e=u.projectId,n=n??u.folderId,u.autoDefaulted&&(r={projectId:u.autoDefaulted.projectId,projectName:u.autoDefaulted.projectName,folderId:u.autoDefaulted.folderId,folderName:u.autoDefaulted.folderName}))}return{baseUrl:`${t.env.testGeneratorBaseUrl}/test-generator/api/v2`,tmsBaseUrl:t.env.tmsBaseUrl,authResolver:t.resolver,projectId:e,folderId:n,suiteName:t.suiteName,autoDefaulted:r,log:t.log}}function Z(t){return t.reduce((e,n)=>e+(n.test_cases?.length??0),0)}var y=class{constructor(e=n=>process.stdout.write(n)){this.write=e}emit(e){this.write(JSON.stringify(e)+`
|
|
3
3
|
`)}onStart(e){this.emit({type:"generate_start",request_id:e.requestId,objective_chars:e.objectiveChars,scenario_limit:e.scenarioLimit,per_scenario_limit:e.perScenarioLimit,is_refine:e.isRefine})}onUpload(e){this.emit({type:"generate_upload",file:e.file,index:e.index,total:e.total,status:e.status})}onThinking(e){this.emit({type:"generate_thinking",took_ms:e.tookMs})}onProgress(e){this.emit({type:"generate_progress",pct:e})}onSnapshot(e){this.emit({type:"generate_snapshot",scenario_count:e.scenarios.length,case_count:Z(e.scenarios),scenarios:e.scenarios})}onClarification(e){this.emit({type:"generate_clarification",text:e})}onChat(e){this.emit({type:"generate_chat",text:e})}onError(e){this.emit({type:"error",message:e})}onSaveResult(e){this.emit({type:"generate_save_result",suite_dir:e.suiteDir,saved:e.saved,fell_back:e.fellBack,...e.warning?{warning:e.warning}:{}})}onDone(e){this.emit({type:"generate_done",request_id:e.requestId,status:e.status,scenario_count:e.scenarioCount,case_count:e.caseCount,refine_hint:e.refineHint,save_hint:e.saveHint,...e.suiteDir?{suite_dir:e.suiteDir}:{}})}onUpdateAvailable(e){this.emit({type:"update_available",current:e.current,latest:e.latest,severity:e.severity})}},S=class{constructor(e=n=>process.stdout.write(n)){this.write=e}onStart(e){let n=e.isRefine?"Refining":"Generating";this.write(`${n} (request ${e.requestId})\u2026
|
|
4
4
|
`)}onUpload(e){e.status==="uploading"&&this.write(` uploading ${e.file} (${e.index}/${e.total})
|
|
5
5
|
`)}onThinking(e){let n=e.tookMs?` (${Math.round(e.tookMs/1e3)}s)`:"";this.write(` thinking${n}
|
|
@@ -16,6 +16,6 @@ import{a as T,f as P,g as $,h as G,j as N,k as M,l as B,m as I,n as L,o as U,p a
|
|
|
16
16
|
`),this.write(` Save: ${e.saveHint}
|
|
17
17
|
`),e.suiteDir&&this.write(` Saved: ${e.suiteDir}
|
|
18
18
|
`)}onUpdateAvailable(e){this.write(`(update available: ${e.current} \u2192 ${e.latest})
|
|
19
|
-
`)}};import{createHash as ee}from"crypto";function te(t){return ee("sha1").update(JSON.stringify({t:t.title,p:t.preconditions,m:t.manual_steps})).digest("hex")}function re(t){let e=[];for(let n of t.scenarios)for(let r of n.test_cases??[])I(r)&&r.manual_steps!=null&&e.push(r);return e}async function ne(t,e,n){let r=new Array(t.length),l=0,u=Array.from({length:Math.min(e,t.length)},async()=>{for(;;){let d=l++;if(d>=t.length)return;try{r[d]={ok:!0,value:await n(t[d])}}catch{r[d]={ok:!1}}}});return await Promise.all(u),r}async function Y(t,e,n){let r=re(t),l=n.run??(async(c,s)=>{let m=await n.resolveAuth(),o=U({objective:c,model:n.model,sessionId:n.sessionId,auth:m});return F(o,n.spawnOpts,s)}),u=r.map(te),d=[...new Set(u)],g=new Map;d.forEach(c=>{g.set(c,r[u.indexOf(c)])});let p=d.map(c=>g.get(c)),v=await ne(p,n.concurrency??3,c=>l(L(c))),i=new Map;d.forEach((c,s)=>{let m=v[s];m.ok&&i.set(c,m.value)});let f=new Map;r.forEach((c,s)=>{f.set(c.id,i.get(u[s]))});let a=0;for(let c of t.scenarios)for(let s of c.test_cases??[])I(s)&&!f.get(s.id)&&a++;let w=c=>{let s=f.get(c.id);return s?N(s,c):M(c)};return{...await B(t,e,{suiteName:n.suiteName,redirectBareCwd:!1},w),fellBack:a}}function Pe(t,e){let n=!!t.agent||!!t.refine||!!t.save||!e,r=t.agent?"agent":"plain";return{headless:n,mode:r}}function $e(t){return t.refine&&t.save?{error:"use --refine or --save, not both"}:t.save?t.objective?{error:"--save takes no objective; use --refine to add to a request"}:t.req?{op:"save"}:{error:"--save requires --req <id>"}:t.refine?t.req?t.objective?t.out?{error:"--out is only valid with --save"}:{op:"refine"}:{error:"--refine needs a refinement objective"}:{error:"--refine requires --req <id>"}:t.req?{error:"--req requires --refine or --save"}:t.out?{error:"--out is only valid with --save"}:t.objective?{op:"new"}:{error:"provide an objective, or use --refine/--save with --req"}}function ie(){return se(process.cwd(),".testmuai","tests")}function Ge(t){if(typeof t!="string")return;let e=t.split(",").map(n=>n.trim()).filter(Boolean);return e.length?e:void 0}var X="tcg-generate-headless";function Q(t){return{refineHint:`kane-cli generate "<refinement>" --refine --req ${t}`,saveHint:`kane-cli generate --save --req ${t}`}}function W(t){return t.scenarios.reduce((e,n)=>e+(n.test_cases?.length??0),0)}function oe(t){return t==="completed"?0:t==="stopped"?3:1}async function Ne(t,e){let n=e.write??(i=>process.stdout.write(i)),r=e.sink??(e.mode==="agent"?new y(n):new S(n)),l,u,d=null;try{let i=await e.makeClient();l=i.client,u=i.conn,d=i.autoDefaulted}catch(i){return r.onError(i.message),2}if(e.mode==="agent"&&d){let{buildAutoDefaultedNdjson:i}=await import("./require-project-folder-
|
|
19
|
+
`)}};import{createHash as ee}from"crypto";function te(t){return ee("sha1").update(JSON.stringify({t:t.title,p:t.preconditions,m:t.manual_steps})).digest("hex")}function re(t){let e=[];for(let n of t.scenarios)for(let r of n.test_cases??[])I(r)&&r.manual_steps!=null&&e.push(r);return e}async function ne(t,e,n){let r=new Array(t.length),l=0,u=Array.from({length:Math.min(e,t.length)},async()=>{for(;;){let d=l++;if(d>=t.length)return;try{r[d]={ok:!0,value:await n(t[d])}}catch{r[d]={ok:!1}}}});return await Promise.all(u),r}async function Y(t,e,n){let r=re(t),l=n.run??(async(c,s)=>{let m=await n.resolveAuth(),o=U({objective:c,model:n.model,sessionId:n.sessionId,auth:m});return F(o,n.spawnOpts,s)}),u=r.map(te),d=[...new Set(u)],g=new Map;d.forEach(c=>{g.set(c,r[u.indexOf(c)])});let p=d.map(c=>g.get(c)),v=await ne(p,n.concurrency??3,c=>l(L(c))),i=new Map;d.forEach((c,s)=>{let m=v[s];m.ok&&i.set(c,m.value)});let f=new Map;r.forEach((c,s)=>{f.set(c.id,i.get(u[s]))});let a=0;for(let c of t.scenarios)for(let s of c.test_cases??[])I(s)&&!f.get(s.id)&&a++;let w=c=>{let s=f.get(c.id);return s?N(s,c):M(c)};return{...await B(t,e,{suiteName:n.suiteName,redirectBareCwd:!1},w),fellBack:a}}function Pe(t,e){let n=!!t.agent||!!t.refine||!!t.save||!e,r=t.agent?"agent":"plain";return{headless:n,mode:r}}function $e(t){return t.refine&&t.save?{error:"use --refine or --save, not both"}:t.save?t.objective?{error:"--save takes no objective; use --refine to add to a request"}:t.req?{op:"save"}:{error:"--save requires --req <id>"}:t.refine?t.req?t.objective?t.out?{error:"--out is only valid with --save"}:{op:"refine"}:{error:"--refine needs a refinement objective"}:{error:"--refine requires --req <id>"}:t.req?{error:"--req requires --refine or --save"}:t.out?{error:"--out is only valid with --save"}:t.objective?{op:"new"}:{error:"provide an objective, or use --refine/--save with --req"}}function ie(){return se(process.cwd(),".testmuai","tests")}function Ge(t){if(typeof t!="string")return;let e=t.split(",").map(n=>n.trim()).filter(Boolean);return e.length?e:void 0}var X="tcg-generate-headless";function Q(t){return{refineHint:`kane-cli generate "<refinement>" --refine --req ${t}`,saveHint:`kane-cli generate --save --req ${t}`}}function W(t){return t.scenarios.reduce((e,n)=>e+(n.test_cases?.length??0),0)}function oe(t){return t==="completed"?0:t==="stopped"?3:1}async function Ne(t,e){let n=e.write??(i=>process.stdout.write(i)),r=e.sink??(e.mode==="agent"?new y(n):new S(n)),l,u,d=null;try{let i=await e.makeClient();l=i.client,u=i.conn,d=i.autoDefaulted}catch(i){return r.onError(i.message),2}if(e.mode==="agent"&&d){let{buildAutoDefaultedNdjson:i}=await import("./require-project-folder-XFUJYJEA.js");n(i(d))}try{let i=await(e.checkUpdate??J)();i&&r.onUpdateAvailable(i)}catch{}let g=t.reqId??null;E(X,()=>{g&&l.cancel(g).catch(()=>{})});let p=process.cwd(),v={validate:e.validate??z,upload:e.upload??O,buildMappings:K,onUpload:i=>r.onUpload(i)};try{if(t.op==="save"){let s;try{s=(await l.attach(t.reqId)).state}catch(D){return r.onError(D.message),2}g=s.requestId,r.onSnapshot(s);let m=t.outDir??ie(),o=await e.materialize(s,m,t.suiteName);r.onSaveResult({suiteDir:o.suiteDir,saved:o.paths.length,fellBack:o.fellBack,warning:o.warning});let h=Q(s.requestId);return r.onDone({requestId:s.requestId,status:"completed",scenarioCount:s.scenarios.length,caseCount:W(s),refineHint:h.refineHint,saveHint:h.saveHint,suiteDir:o.suiteDir}),0}let i=t.op==="refine",f,a;if(i){let s;try{s=await l.attach(t.reqId)}catch(o){return r.onError(o.message),2}if(a=s.state,g=a.requestId,a.error)return r.onError(a.error),2;let m;try{m=await _({promptText:t.objective,filePaths:t.files??[],cwd:p,scenarios:a.scenarios,isRefine:!0,conn:u,deps:v})}catch(o){if(o instanceof C){for(let h of o.errors)r.onError(h);return 2}return r.onError(o.message),2}for(let o of m.warnings)process.stderr.write(`warning: ${o}
|
|
20
20
|
`);r.onStart({requestId:a.requestId,objectiveChars:m.promptText.length,scenarioLimit:t.scenarioLimit,perScenarioLimit:t.perScenarioLimit,isRefine:!0});try{await l.chat(t.reqId,m.promptText,{mappings:m.mappings,attachments:m.attachments})}catch(o){return r.onError(o.message),2}f=s.events}else{let s;try{s=await _({promptText:t.objective,filePaths:t.files??[],cwd:p,scenarios:[],isRefine:!1,conn:u,deps:v})}catch(o){if(o instanceof C){for(let h of o.errors)r.onError(h);return 2}return r.onError(o.message),2}for(let o of s.warnings)process.stderr.write(`warning: ${o}
|
|
21
21
|
`);let m;try{m=await l.start({prompt:s.promptText,attachments:s.attachments,scenarioLimit:t.scenarioLimit,perScenarioLimit:t.perScenarioLimit,memoryEnhancement:t.memory})}catch(o){return r.onError(o.message),2}a=m.state,g=a.requestId,r.onStart({requestId:a.requestId,objectiveChars:s.promptText.length,scenarioLimit:t.scenarioLimit,perScenarioLimit:t.perScenarioLimit,isRefine:!1}),f=m.events}let w="";for await(let s of f){switch(a=P(a,s),s.type){case"thinking_done":r.onThinking({tookMs:s.tookMs});break;case"progress":r.onProgress(s.pct);break;case"clarification":r.onClarification(s.text);break;case"chat":r.onChat(s.text);break;case"error":r.onError(s.message);break;case"done":w=s.status;break;default:break}if(s.type==="done"||s.type!=="thinking"&&a.status&&T(a.status))break}r.onSnapshot(a);let b=w||a.status||"completed",c=Q(a.requestId);return r.onDone({requestId:a.requestId,status:b,scenarioCount:a.scenarios.length,caseCount:W(a),refineHint:c.refineHint,saveHint:c.saveHint,suiteDir:void 0}),oe(b)}finally{q(X)}}var ae=()=>{};async function Me(t){let e=new j,n=new A,r=e.getActiveProfile()??"default",l=t.env??e.getDefaultEnv()??"prod",u=R(l),d=new x;t.name&&d.setSessionName(t.name);let g=n.load().model,p=async()=>{let i=await k({creds:e,env:l,usernameFlag:t.username,accessKeyFlag:t.accessKey,log:()=>{}}),f=await V({resolver:i.resolver,env:u,log:ae,projectId:t.projectId,folderId:t.folderId,autoResolve:t.projectId?void 0:{creds:e,config:n,profile:r,envName:l}});return{client:G(f),conn:f,autoDefaulted:f.autoDefaulted??null}},v=async()=>{let i=await k({creds:e,env:l,usernameFlag:t.username,accessKeyFlag:t.accessKey,log:()=>{}});return i.basicAuth?{username:i.basicAuth.username,access_key:i.basicAuth.access_key}:i.token?{auth:{type:"bearer",token:i.token}}:{}};return{mode:t.mode,makeClient:p,materialize:(i,f,a)=>Y(i,f,{model:g,sessionId:d.sessionId,resolveAuth:v,spawnOpts:{environment:l},suiteName:a})}}export{Me as buildHeadlessDeps,Pe as decideGenerateMode,ie as defaultOutDir,Ge as parseFilesFlag,$e as resolveGenerateOp,Ne as runGenerateHeadless};
|