dispach 0.2.0 → 0.2.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.
- package/README.md +58 -18
- package/dist/APEv2Parser-9wqew3zv.js +5 -0
- package/dist/{APEv2Parser-jdp5yp24.js.map → APEv2Parser-9wqew3zv.js.map} +1 -1
- package/dist/{AiffParser-n65syezh.js → AiffParser-tbx3xkmk.js} +3 -3
- package/dist/{AiffParser-n65syezh.js.map → AiffParser-tbx3xkmk.js.map} +1 -1
- package/dist/App-hjn867nc.js +11 -0
- package/dist/{App-pmqmzsb3.js.map → App-hjn867nc.js.map} +1 -1
- package/dist/{AsfParser-da1fqvxz.js → AsfParser-d784ak3y.js} +3 -3
- package/dist/{AsfParser-da1fqvxz.js.map → AsfParser-d784ak3y.js.map} +1 -1
- package/dist/{ConfigEditor-4nqbeejh.js → ConfigEditor-g7eb2wsm.js} +3 -3
- package/dist/{ConfigEditor-4nqbeejh.js.map → ConfigEditor-g7eb2wsm.js.map} +1 -1
- package/dist/{DsdiffParser-gk95sj7t.js → DsdiffParser-vxnfx80c.js} +2 -2
- package/dist/{DsfParser-b0enevjw.js → DsfParser-0xsh0zzk.js} +3 -3
- package/dist/{DsfParser-b0enevjw.js.map → DsfParser-0xsh0zzk.js.map} +1 -1
- package/dist/FlacParser-bf8y3e0w.js +5 -0
- package/dist/{KeyProbe-rspsxpsr.js → KeyProbe-w8c37s9q.js} +3 -3
- package/dist/{KeyProbe-rspsxpsr.js.map → KeyProbe-w8c37s9q.js.map} +1 -1
- package/dist/{MP4Parser-ph7rv2fn.js → MP4Parser-tq7r7wd4.js} +3 -3
- package/dist/{MP4Parser-ph7rv2fn.js.map → MP4Parser-tq7r7wd4.js.map} +1 -1
- package/dist/{MatroskaParser-fjk1mpct.js → MatroskaParser-a79gsmzb.js} +3 -3
- package/dist/{MatroskaParser-fjk1mpct.js.map → MatroskaParser-a79gsmzb.js.map} +1 -1
- package/dist/{MpegParser-vp7cj8ts.js → MpegParser-zs61b3wq.js} +3 -3
- package/dist/{MpegParser-vp7cj8ts.js.map → MpegParser-zs61b3wq.js.map} +1 -1
- package/dist/{MusepackParser-v22gft1f.js → MusepackParser-bp8dm6nz.js} +3 -3
- package/dist/{MusepackParser-v22gft1f.js.map → MusepackParser-bp8dm6nz.js.map} +1 -1
- package/dist/{OggParser-as1m8xsa.js → OggParser-7pxr1sn9.js} +3 -3
- package/dist/{OggParser-as1m8xsa.js.map → OggParser-7pxr1sn9.js.map} +1 -1
- package/dist/{Picker-jkmd5xnx.js → Picker-b09hr4tk.js} +3 -3
- package/dist/{Picker-jkmd5xnx.js.map → Picker-b09hr4tk.js.map} +1 -1
- package/dist/{SessionPicker-3712ke3k.js → SessionPicker-wtfxwdxg.js} +3 -3
- package/dist/{SessionPicker-3712ke3k.js.map → SessionPicker-wtfxwdxg.js.map} +1 -1
- package/dist/{SkillBrowser-qhsyszt4.js → SkillBrowser-p9ht63c7.js} +3 -3
- package/dist/{SkillBrowser-qhsyszt4.js.map → SkillBrowser-p9ht63c7.js.map} +1 -1
- package/dist/{WavPackParser-b4qqavzg.js → WavPackParser-gpf3r92t.js} +3 -3
- package/dist/{WavPackParser-b4qqavzg.js.map → WavPackParser-gpf3r92t.js.map} +1 -1
- package/dist/{WaveParser-fqs1h38f.js → WaveParser-3kcak550.js} +3 -3
- package/dist/{WaveParser-fqs1h38f.js.map → WaveParser-3kcak550.js.map} +1 -1
- package/dist/WizardApp-494018sk.js +5 -0
- package/dist/{WizardApp-qrq36nv8.js.map → WizardApp-494018sk.js.map} +1 -1
- package/dist/{channels-gf31stv7.js → channels-yhdvxxrb.js} +14 -14
- package/dist/{channels-gf31stv7.js.map → channels-yhdvxxrb.js.map} +1 -1
- package/dist/config-g0ybmm4t.js +24 -0
- package/dist/{config-z2cd0c5f.js.map → config-g0ybmm4t.js.map} +1 -1
- package/dist/credential-pkme1sfe.js +19 -0
- package/dist/{credential-h0wmsjsw.js.map → credential-pkme1sfe.js.map} +1 -1
- package/dist/{index-dwxmy0kx.js → index-0mz7wpbw.js} +6 -6
- package/dist/{index-dwxmy0kx.js.map → index-0mz7wpbw.js.map} +1 -1
- package/dist/{index-fcqy46mh.js → index-0pddq849.js} +25 -25
- package/dist/{index-fcqy46mh.js.map → index-0pddq849.js.map} +1 -1
- package/dist/{index-2yj11ykt.js → index-1f1erzfx.js} +4 -4
- package/dist/{index-2yj11ykt.js.map → index-1f1erzfx.js.map} +1 -1
- package/dist/{index-1h9pqnec.js → index-26ejkp8q.js} +189 -189
- package/dist/{index-1h9pqnec.js.map → index-26ejkp8q.js.map} +7 -7
- package/dist/{index-ccpq4k6r.js → index-307qmvb0.js} +25 -25
- package/dist/{index-ccpq4k6r.js.map → index-307qmvb0.js.map} +1 -1
- package/dist/index-3b3h8kyh.js +5 -0
- package/dist/{index-3mvenfbg.js.map → index-3b3h8kyh.js.map} +1 -1
- package/dist/{index-0p9p6fvc.js → index-3fgq1acj.js} +10 -10
- package/dist/{index-0p9p6fvc.js.map → index-3fgq1acj.js.map} +3 -3
- package/dist/{index-dh2g58s1.js → index-4emtktc0.js} +3 -3
- package/dist/{index-dh2g58s1.js.map → index-4emtktc0.js.map} +1 -1
- package/dist/{index-026q0y3a.js → index-4t3p7vm9.js} +4 -4
- package/dist/{index-026q0y3a.js.map → index-4t3p7vm9.js.map} +1 -1
- package/dist/{index-t5d8ey5t.js → index-5m9wydxb.js} +4 -4
- package/dist/{index-t5d8ey5t.js.map → index-5m9wydxb.js.map} +1 -1
- package/dist/{index-g1d06ct5.js → index-633eqxry.js} +7 -7
- package/dist/{index-g1d06ct5.js.map → index-633eqxry.js.map} +1 -1
- package/dist/index-6r9h7ftn.js +308 -0
- package/dist/index-6r9h7ftn.js.map +21 -0
- package/dist/{index-kktaw552.js → index-7gsbzvnc.js} +2 -2
- package/dist/{index-z88f35vs.js → index-94k4mh6s.js} +13 -13
- package/dist/{index-z88f35vs.js.map → index-94k4mh6s.js.map} +3 -3
- package/dist/index-9dmgk6d3.js +5 -0
- package/dist/{index-tny7c703.js.map → index-9dmgk6d3.js.map} +1 -1
- package/dist/index-9qv87rq7.js +9 -0
- package/dist/{index-s4a28ctb.js.map → index-9qv87rq7.js.map} +1 -1
- package/dist/{index-k2q76dhw.js → index-a6mtqkth.js} +6 -6
- package/dist/{index-k2q76dhw.js.map → index-a6mtqkth.js.map} +1 -1
- package/dist/{index-0m0x1454.js → index-ac2wzspd.js} +4 -4
- package/dist/{index-0m0x1454.js.map → index-ac2wzspd.js.map} +1 -1
- package/dist/{index-wxmqyv4c.js → index-ad5c9t83.js} +4 -4
- package/dist/{index-wxmqyv4c.js.map → index-ad5c9t83.js.map} +1 -1
- package/dist/{index-b7qc21s7.js → index-akv6e7ge.js} +6 -6
- package/dist/{index-b7qc21s7.js.map → index-akv6e7ge.js.map} +1 -1
- package/dist/{index-v271gbaz.js → index-ec101x93.js} +4 -4
- package/dist/{index-v271gbaz.js.map → index-ec101x93.js.map} +1 -1
- package/dist/{index-rhv6gqpt.js → index-f056wkb4.js} +4 -4
- package/dist/{index-rhv6gqpt.js.map → index-f056wkb4.js.map} +1 -1
- package/dist/{index-c2qjdz4q.js → index-gqaa06yh.js} +8 -8
- package/dist/{index-c2qjdz4q.js.map → index-gqaa06yh.js.map} +1 -1
- package/dist/{index-rfa0ztab.js → index-j20k6k0m.js} +4 -4
- package/dist/{index-rfa0ztab.js.map → index-j20k6k0m.js.map} +1 -1
- package/dist/{index-2pzgta33.js → index-jh2az41t.js} +4 -4
- package/dist/{index-2pzgta33.js.map → index-jh2az41t.js.map} +1 -1
- package/dist/{index-gace5ac7.js → index-mn34kj95.js} +4 -4
- package/dist/{index-gace5ac7.js.map → index-mn34kj95.js.map} +1 -1
- package/dist/{index-rvq7t636.js → index-myg5enf5.js} +2 -2
- package/dist/{index-s78sq9g1.js → index-pdsey1ab.js} +45 -45
- package/dist/{index-s78sq9g1.js.map → index-pdsey1ab.js.map} +1 -1
- package/dist/{index-jmnjcw61.js → index-psk6q25h.js} +4 -4
- package/dist/{index-jmnjcw61.js.map → index-psk6q25h.js.map} +1 -1
- package/dist/{index-3s2q0m64.js → index-q8b1fc3k.js} +4 -4
- package/dist/{index-3s2q0m64.js.map → index-q8b1fc3k.js.map} +1 -1
- package/dist/{index-g8n8rhtr.js → index-qh82wtpa.js} +3 -3
- package/dist/{index-g8n8rhtr.js.map → index-qh82wtpa.js.map} +1 -1
- package/dist/{index-gqbny9gy.js → index-s2tzq27a.js} +6 -6
- package/dist/{index-gqbny9gy.js.map → index-s2tzq27a.js.map} +1 -1
- package/dist/{index-1wxw30j1.js → index-s57ztjhq.js} +35 -35
- package/dist/index-s57ztjhq.js.map +13 -0
- package/dist/{index-jv7egrh2.js → index-skkddg44.js} +4 -4
- package/dist/{index-jv7egrh2.js.map → index-skkddg44.js.map} +1 -1
- package/dist/{index-9m6b14b4.js → index-thmq816c.js} +4 -4
- package/dist/{index-9m6b14b4.js.map → index-thmq816c.js.map} +1 -1
- package/dist/{index-es4bgkbh.js → index-trx9xb59.js} +6 -6
- package/dist/{index-es4bgkbh.js.map → index-trx9xb59.js.map} +1 -1
- package/dist/{index-60jxyzbe.js → index-twcgf73h.js} +4 -4
- package/dist/{index-60jxyzbe.js.map → index-twcgf73h.js.map} +1 -1
- package/dist/index-vw2hf4d8.js +6 -0
- package/dist/{index-v6taf4vn.js.map → index-vw2hf4d8.js.map} +1 -1
- package/dist/{index-m5rmhcez.js → index-w97gprre.js} +4 -4
- package/dist/{index-m5rmhcez.js.map → index-w97gprre.js.map} +1 -1
- package/dist/index-wk6andxq.js +5 -0
- package/dist/{index-ak304afj.js.map → index-wk6andxq.js.map} +1 -1
- package/dist/index-x9z2xnct.js +11 -0
- package/dist/{index-5nprb9px.js.map → index-x9z2xnct.js.map} +1 -1
- package/dist/index-xa9crtzq.js +6 -0
- package/dist/{index-qe3ybzh6.js.map → index-xa9crtzq.js.map} +1 -1
- package/dist/{index-0v2gw4mk.js → index-y34s71qe.js} +3 -3
- package/dist/{index-0v2gw4mk.js.map → index-y34s71qe.js.map} +1 -1
- package/dist/{index-y6r1k2yd.js → index-ye2yb3xf.js} +7 -7
- package/dist/{index-y6r1k2yd.js.map → index-ye2yb3xf.js.map} +1 -1
- package/dist/{index-y605a1rj.js → index-z0dgxd7d.js} +10 -10
- package/dist/{index-y605a1rj.js.map → index-z0dgxd7d.js.map} +2 -2
- package/dist/{index-m01mb74d.js → index-zg89tq04.js} +4 -4
- package/dist/{index-m01mb74d.js.map → index-zg89tq04.js.map} +1 -1
- package/dist/{index-dgrwpzz9.js → index-zjphh8ch.js} +4 -4
- package/dist/{index-dgrwpzz9.js.map → index-zjphh8ch.js.map} +1 -1
- package/dist/index.js +172 -172
- package/dist/index.js.map +4 -4
- package/dist/transcript.d.ts.map +1 -1
- package/dist/web-f6869dy2.js +14 -0
- package/dist/{web-stkkwyka.js.map → web-f6869dy2.js.map} +1 -1
- package/dist/wrapper-52c0vacs.js +5 -0
- package/dist/{wrapper-bwxbqa53.js.map → wrapper-52c0vacs.js.map} +1 -1
- package/package.json +2 -2
- package/dist/APEv2Parser-jdp5yp24.js +0 -5
- package/dist/App-pmqmzsb3.js +0 -11
- package/dist/FlacParser-6jwner07.js +0 -5
- package/dist/WizardApp-qrq36nv8.js +0 -5
- package/dist/config-z2cd0c5f.js +0 -24
- package/dist/credential-h0wmsjsw.js +0 -19
- package/dist/index-1wxw30j1.js.map +0 -13
- package/dist/index-358nsn9t.js +0 -65
- package/dist/index-358nsn9t.js.map +0 -21
- package/dist/index-3mvenfbg.js +0 -5
- package/dist/index-5nprb9px.js +0 -11
- package/dist/index-ak304afj.js +0 -5
- package/dist/index-qe3ybzh6.js +0 -6
- package/dist/index-s4a28ctb.js +0 -9
- package/dist/index-tny7c703.js +0 -5
- package/dist/index-v6taf4vn.js +0 -6
- package/dist/web-stkkwyka.js +0 -14
- package/dist/wrapper-bwxbqa53.js +0 -5
- /package/dist/{DsdiffParser-gk95sj7t.js.map → DsdiffParser-vxnfx80c.js.map} +0 -0
- /package/dist/{FlacParser-6jwner07.js.map → FlacParser-bf8y3e0w.js.map} +0 -0
- /package/dist/{index-kktaw552.js.map → index-7gsbzvnc.js.map} +0 -0
- /package/dist/{index-rvq7t636.js.map → index-myg5enf5.js.map} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{Te,le,V,He,X,gt,yt,K,ct,Xe,Ce,WA,$e,lt,Qt,zA,ZA}from"./index-0pddq849.js";var{awsEndpointFunctions:Us,emitWarningIfUnsupportedVersion:ws,createDefaultUserAgentProvider:Hs,NODE_APP_ID_CONFIG_OPTIONS:js,getAwsRegionExtensionConfiguration:zs,resolveAwsRegionExtensionConfiguration:Bs,resolveUserAgentConfig:qs,resolveHostHeaderConfig:Ks,getUserAgentPlugin:Js,getHostHeaderPlugin:Zs,getLoggerPlugin:Qs,getRecursionDetectionPlugin:Ws}=Ce(),{resolveEventStreamConfig:Xs,getEventStreamPlugin:Ys}=WA(),{getHttpAuthSchemeEndpointRuleSetPlugin:en,DefaultIdentityProviderConfig:tn,getHttpSigningPlugin:sn,createPaginator:nn}=Xe(),{normalizeProvider:Ke,getSmithyContext:on,ServiceException:rn,NoOpLogger:an,emitWarningIfUnsupportedVersion:cn,loadConfigsForDefaultMode:pn,getDefaultExtensionConfiguration:un,resolveDefaultRuntimeConfig:ln,Client:Je,makeBuilder:dn,createAggregatedClient:Sn}=le(),{Command:xn}=le();var Ri=xn,Di=Je;var{resolveDefaultsModeConfig:hn,loadConfig:L,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:En,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:mn,NODE_REGION_CONFIG_OPTIONS:_n,NODE_REGION_CONFIG_FILE_OPTIONS:gn,resolveRegionConfig:vn}=V(),{BinaryDecisionDiagram:Ln,EndpointCache:Tn,decideEndpoint:yn,customEndpointFunctions:In,resolveEndpointConfig:$n,getEndpointPlugin:On}=He(),{eventStreamSerdeProvider:fn,resolveEventStreamSerdeConfig:Pn}=yt(),{parseUrl:An,getHttpHandlerExtensionConfiguration:Cn,resolveHttpHandlerRuntimeConfig:Nn,getContentLengthPlugin:kn}=K(),{DEFAULT_RETRY_MODE:Rn,NODE_RETRY_MODE_CONFIG_OPTIONS:Dn,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:bn,resolveRetryConfig:Fn,getRetryPlugin:Mn}=ct(),{TypeRegistry:Ze,getSchemaSerdePlugin:Gn}=Te(),{resolveAwsSdkSigV4Config:Vn,AwsSdkSigV4Signer:Un,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:wn}=$e(),{defaultProvider:Hn}=zA(),{eventStreamPayloadHandlerProvider:jn}=ZA(),{toUtf8:zn,fromUtf8:Bn,sdkStreamMixin:qn,toBase64:Kn,fromBase64:Jn,calculateBodyLength:Zn}=X(),{streamCollector:Qn,NodeHttp2Handler:Wn}=lt(),{AwsRestJsonProtocol:Xn}=Qt(),{Sha256:Yn}=gt(),eo=async(e,s,p)=>({operation:on(s).operation,region:await Ke(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function to(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"polly",region:e.region},propertiesExtractor:(s,p)=>({signingProperties:{config:s,context:p}})}}var so=(e)=>{let s=[];switch(e.operation){default:s.push(to(e))}return s},no=(e)=>{let s=Vn(e);return Object.assign(s,{authSchemePreference:Ke(e.authSchemePreference??[])})},oo=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"polly"}),ro={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},io="3.1140.0",ao={version:io},f="ref",T=-1,A=!0,Me="isSet",Qe="PartitionResult",C="booleanEquals",Ge="getAttr",Ve={[f]:"Endpoint"},Ue={[f]:Qe},O={},we=[{[f]:"Region"}],je={conditions:[[Me,[Ve]],[Me,we],["aws.partition",we,Qe],[C,[{[f]:"UseFIPS"},A]],[C,[{[f]:"UseDualStack"},A]],[C,[{fn:Ge,argv:[Ue,"supportsDualStack"]},A]],[C,[{fn:Ge,argv:[Ue,"supportsFIPS"]},A]]],results:[[T],[T,"Invalid Configuration: FIPS and custom endpoint are not supported"],[T,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ve,O],["https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",O],[T,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://polly-fips.{Region}.{PartitionResult#dnsSuffix}",O],[T,"FIPS is enabled but this partition does not support FIPS"],["https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}",O],[T,"DualStack is enabled but this partition does not support DualStack"],["https://polly.{Region}.{PartitionResult#dnsSuffix}",O],[T,"Invalid Configuration: Missing Region"]]},co=2,l=1e8,po=new Int32Array([-1,1,-1,0,12,3,1,4,l+11,2,5,l+11,3,8,6,4,7,l+10,5,l+8,l+9,4,10,9,6,l+6,l+7,5,11,l+5,6,l+4,l+5,3,l+1,13,4,l+2,l+3]),uo=Ln.from(po,co,je.conditions,je.results),lo=new Tn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),So=(e,s={})=>lo.get(e,()=>yn(uo,{endpointParams:e,logger:s.logger}));In.aws=Us;class n extends rn{constructor(e){super(e);Object.setPrototypeOf(this,n.prototype)}}class N extends n{name="LexiconNotFoundException";$fault="client";constructor(e){super({name:"LexiconNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,N.prototype)}}class k extends n{name="ServiceFailureException";$fault="server";constructor(e){super({name:"ServiceFailureException",$fault:"server",...e});Object.setPrototypeOf(this,k.prototype)}}class R extends n{name="InvalidNextTokenException";$fault="client";constructor(e){super({name:"InvalidNextTokenException",$fault:"client",...e});Object.setPrototypeOf(this,R.prototype)}}class D extends n{name="EngineNotSupportedException";$fault="client";constructor(e){super({name:"EngineNotSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype)}}class b extends n{name="InvalidTaskIdException";$fault="client";constructor(e){super({name:"InvalidTaskIdException",$fault:"client",...e});Object.setPrototypeOf(this,b.prototype)}}class F extends n{name="SynthesisTaskNotFoundException";$fault="client";constructor(e){super({name:"SynthesisTaskNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class M extends n{name="InvalidLexiconException";$fault="client";constructor(e){super({name:"InvalidLexiconException",$fault:"client",...e});Object.setPrototypeOf(this,M.prototype)}}class G extends n{name="InvalidS3BucketException";$fault="client";constructor(e){super({name:"InvalidS3BucketException",$fault:"client",...e});Object.setPrototypeOf(this,G.prototype)}}class U extends n{name="InvalidS3KeyException";$fault="client";constructor(e){super({name:"InvalidS3KeyException",$fault:"client",...e});Object.setPrototypeOf(this,U.prototype)}}class w extends n{name="InvalidSampleRateException";$fault="client";constructor(e){super({name:"InvalidSampleRateException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype)}}class H extends n{name="InvalidSnsTopicArnException";$fault="client";constructor(e){super({name:"InvalidSnsTopicArnException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype)}}class j extends n{name="InvalidSsmlException";$fault="client";constructor(e){super({name:"InvalidSsmlException",$fault:"client",...e});Object.setPrototypeOf(this,j.prototype)}}class z extends n{name="LanguageNotSupportedException";$fault="client";constructor(e){super({name:"LanguageNotSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,z.prototype)}}class B extends n{name="LexiconSizeExceededException";$fault="client";constructor(e){super({name:"LexiconSizeExceededException",$fault:"client",...e});Object.setPrototypeOf(this,B.prototype)}}class q extends n{name="MarksNotSupportedForFormatException";$fault="client";constructor(e){super({name:"MarksNotSupportedForFormatException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class J extends n{name="MaxLexemeLengthExceededException";$fault="client";constructor(e){super({name:"MaxLexemeLengthExceededException",$fault:"client",...e});Object.setPrototypeOf(this,J.prototype)}}class Z extends n{name="MaxLexiconsNumberExceededException";$fault="client";constructor(e){super({name:"MaxLexiconsNumberExceededException",$fault:"client",...e});Object.setPrototypeOf(this,Z.prototype)}}class Q extends n{name="UnsupportedPlsAlphabetException";$fault="client";constructor(e){super({name:"UnsupportedPlsAlphabetException",$fault:"client",...e});Object.setPrototypeOf(this,Q.prototype)}}class W extends n{name="UnsupportedPlsLanguageException";$fault="client";constructor(e){super({name:"UnsupportedPlsLanguageException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype)}}class Y extends n{name="ServiceQuotaExceededException";$fault="client";quotaCode;serviceCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.quotaCode=e.quotaCode,this.serviceCode=e.serviceCode}}class ee extends n{name="ThrottlingException";$fault="client";throttlingReasons;constructor(e){super({name:"ThrottlingException",$fault:"client",...e});Object.setPrototypeOf(this,ee.prototype),this.throttlingReasons=e.throttlingReasons}}class te extends n{name="ValidationException";$fault="client";reason;fields;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,te.prototype),this.reason=e.reason,this.fields=e.fields}}class se extends n{name="SsmlMarksNotSupportedForTextTypeException";$fault="client";constructor(e){super({name:"SsmlMarksNotSupportedForTextTypeException",$fault:"client",...e});Object.setPrototypeOf(this,se.prototype)}}class ne extends n{name="TextLengthExceededException";$fault="client";constructor(e){super({name:"TextLengthExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ne.prototype)}}var xo="Alphabet",ho="AudioChunk",We="AudioEvent",Eo="AdditionalLanguageCodes",Ye="AudioStream",mo="ActionStream",_o="Attributes",et="Content",tt="CloseStreamEvent",go="CreationTime",vo="Content-Type",Lo="ContentType",To="DeleteLexicon",yo="DeleteLexiconInput",Io="DeleteLexiconOutput",$o="DescribeVoices",Oo="DescribeVoicesInput",fo="DescribeVoicesOutput",y="Engine",Po="EngineNotSupportedException",Ao="EventStream",Co="Force",st="FlushStreamConfiguration",No="Gender",ko="GetLexicon",Ro="GetLexiconInput",Do="GetLexiconOutput",bo="GetSpeechSynthesisTask",Fo="GetSpeechSynthesisTaskInput",Mo="GetSpeechSynthesisTaskOutput",Go="Id",ze="IncludeAdditionalLanguageCodes",Vo="InvalidLexiconException",Uo="InvalidNextTokenException",wo="InvalidS3BucketException",Ho="InvalidSsmlException",jo="InvalidS3KeyException",zo="InvalidSampleRateException",Bo="InvalidSnsTopicArnException",qo="InvalidTaskIdException",nt="Lexicon",ot="LexiconAttributes",Ko="LexiconArn",Jo="LexiconContent",v="LanguageCode",Zo="LexemesCount",Qo="LexiconDescription",Wo="LexiconDescriptionList",Xo="ListLexicons",Yo="ListLexiconsInput",er="ListLexiconsOutput",tr="LastModified",oe="LexiconNames",sr="LexiconNotFoundException",nr="LanguageNotSupportedException",or="LanguageName",rr="LexiconSizeExceededException",ir="ListSpeechSynthesisTasks",ar="ListSpeechSynthesisTasksInput",cr="ListSpeechSynthesisTasksOutput",pr="Lexicons",ur="MaxLexemeLengthExceededException",lr="MaxLexiconsNumberExceededException",dr="MarksNotSupportedForFormatException",Be="MaxResults",I="Name",E="NextToken",re="OutputFormat",Sr="OutputS3BucketName",xr="OutputS3KeyPrefix",hr="OutputUri",Er="PutLexicon",mr="PutLexiconInput",_r="PutLexiconOutput",xe="RequestCharacters",gr="Size",rt="StreamClosedEvent",vr="SupportedEngines",it="ServiceFailureException",Lr="SsmlMarksNotSupportedForTextTypeException",he="SpeechMarkTypes",at="ServiceQuotaExceededException",ie="SampleRate",Tr="SynthesizeSpeech",yr="SynthesizeSpeechInput",Ir="SynthesizeSpeechOutput",$r="StartSpeechSynthesisStream",Or="StartSpeechSynthesisStreamActionStream",fr="StartSpeechSynthesisStreamEventStream",Pr="StartSpeechSynthesisStreamInput",Ar="StartSpeechSynthesisStreamOutput",Cr="StartSpeechSynthesisTask",Nr="StartSpeechSynthesisTaskInput",kr="StartSpeechSynthesisTaskOutput",Ee="SynthesisTask",pt="SnsTopicArn",Rr="SynthesisTaskNotFoundException",ut="SynthesisTasks",qe="Status",me="Text",dt="ThrottlingException",St="TextEvent",xt="TaskId",Dr="TextLengthExceededException",br="ThrottlingReason",Fr="ThrottlingReasonList",Mr="TaskStatus",Gr="TaskStatusReason",ae="TextType",Vr="UnsupportedPlsAlphabetException",Ur="UnsupportedPlsLanguageException",wr="Voices",ht="ValidationException",Hr="ValidationExceptionField",jr="ValidationExceptionFieldList",ce="VoiceId",zr="VoiceList",Br="Voice",qr="awsQueryError",c="client",i="error",Kr="eventPayload",Jr="fields",S="http",a="httpError",_="httpHeader",g="httpQuery",o="message",Zr="name",Qr="quotaCode",Et="reason",Wr="resource",mt="smithy.ts.sdk.synthetic.com.amazonaws.polly",Xr="serviceCode",Yr="server",_e="streaming",ei="throttlingReasons",ti="x-amzn-Engine",si="x-amzn-LanguageCode",ni="x-amzn-LexiconNames",oi="x-amzn-OutputFormat",ri="x-amzn-RequestCharacters",ii="x-amzn-SampleRate",ai="x-amzn-VoiceId",t="com.amazonaws.polly",_t=new Ze(mt),vt=[-3,mt,"PollyServiceException",0,[],[]];_t.registerError(vt,n);var r=new Ze(t),Lt=[-3,t,Po,{[i]:c,[a]:400},[o],[0]];r.registerError(Lt,D);var Tt=[-3,t,Vo,{[i]:c,[a]:400},[o],[0]];r.registerError(Tt,M);var It=[-3,t,Uo,{[i]:c,[a]:400},[o],[0]];r.registerError(It,R);var $t=[-3,t,wo,{[i]:c,[a]:400},[o],[0]];r.registerError($t,G);var Ot=[-3,t,jo,{[i]:c,[a]:400},[o],[0]];r.registerError(Ot,U);var ft=[-3,t,zo,{[i]:c,[a]:400},[o],[0]];r.registerError(ft,w);var Pt=[-3,t,Bo,{[i]:c,[a]:400},[o],[0]];r.registerError(Pt,H);var At=[-3,t,Ho,{[i]:c,[a]:400},[o],[0]];r.registerError(At,j);var Ct=[-3,t,qo,{[i]:c,[a]:400},[o],[0]];r.registerError(Ct,b);var Nt=[-3,t,nr,{[i]:c,[a]:400},[o],[0]];r.registerError(Nt,z);var kt=[-3,t,sr,{[i]:c,[a]:404},[o],[0]];r.registerError(kt,N);var Rt=[-3,t,rr,{[i]:c,[a]:400},[o],[0]];r.registerError(Rt,B);var Dt=[-3,t,dr,{[i]:c,[a]:400},[o],[0]];r.registerError(Dt,q);var bt=[-3,t,ur,{[i]:c,[a]:400},[o],[0]];r.registerError(bt,J);var Ft=[-3,t,lr,{[i]:c,[a]:400},[o],[0]];r.registerError(Ft,Z);var ge=[-3,t,it,{[i]:Yr,[a]:500},[o],[0]];r.registerError(ge,k);var ve=[-3,t,at,{[i]:c,[a]:402},[o,Qr,Xr],[0,0,0],3];r.registerError(ve,Y);var Mt=[-3,t,Lr,{[i]:c,[a]:400},[o],[0]];r.registerError(Mt,se);var Gt=[-3,t,Rr,{[i]:c,[a]:400},[o],[0]];r.registerError(Gt,F);var Vt=[-3,t,Dr,{[i]:c,[a]:400},[o],[0]];r.registerError(Vt,ne);var Le=[-3,t,dt,{[qr]:["Throttling",400],[i]:c,[a]:400},[o,ei],[0,()=>li]];r.registerError(Le,ee);var Ut=[-3,t,Vr,{[i]:c,[a]:400},[o],[0]];r.registerError(Ut,Q);var wt=[-3,t,Ur,{[i]:c,[a]:400},[o],[0]];r.registerError(wt,W);var ye=[-3,t,ht,{[i]:c,[a]:400},[o,Et,Jr],[0,0,()=>di],2];r.registerError(ye,te);var Ht=[_t,r],ci=[0,t,Ye,{[_e]:1},42],jt=[0,t,Jo,8,0],zt=[3,t,We,0,[ho],[[21,{[Kr]:1}]]],Bt=[3,t,tt,0,[],[]],qt=[3,t,yo,0,[I],[[0,1]],1],Kt=[3,t,Io,0,[],[]],Jt=[3,t,Oo,0,[y,v,ze,E],[[0,{[g]:y}],[0,{[g]:v}],[2,{[g]:ze}],[0,{[g]:E}]]],Zt=[3,t,fo,0,[wr,E],[()=>Si,0]],Wt=[3,t,st,0,[Co],[2]],Xt=[3,t,Ro,0,[I],[[0,1]],1],Yt=[3,t,Do,0,[nt,ot],[[()=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()=>pe],li=[1,t,Fr,0,()=>_s],di=[1,t,jr,0,()=>gs],Si=[1,t,zr,0,()=>vs],Ls=[4,t,Or,{[_e]:1},[St,tt],[()=>ms,()=>Bt]],Ts=[4,t,fr,{[_e]:1},[We,rt,ht,at,it,dt],[[()=>zt,0],()=>xs,[()=>ye,0],[()=>ve,0],[()=>ge,0],[()=>Le,0]]],ys=[9,t,To,{[S]:["DELETE","/v1/lexicons/{Name}",200]},()=>qt,()=>Kt],Is=[9,t,$o,{[S]:["GET","/v1/voices",200]},()=>Jt,()=>Zt],$s=[9,t,ko,{[S]:["GET","/v1/lexicons/{Name}",200]},()=>Xt,()=>Yt],Os=[9,t,bo,{[S]:["GET","/v1/synthesisTasks/{TaskId}",200]},()=>es,()=>ts],fs=[9,t,Xo,{[S]:["GET","/v1/lexicons",200]},()=>os,()=>rs],Ps=[9,t,ir,{[S]:["GET","/v1/synthesisTasks",200]},()=>is,()=>as],As=[9,t,Er,{[S]:["PUT","/v1/lexicons/{Name}",200]},()=>cs,()=>ps],Cs=[9,t,$r,{[S]:["POST","/v1/synthesisStream",200]},()=>us,()=>ls],Ns=[9,t,Cr,{[S]:["POST","/v1/synthesisTasks",200]},()=>ds,()=>Ss],ks=[9,t,Tr,{[S]:["POST","/v1/speech",200]},()=>hs,()=>Es],xi=(e)=>({apiVersion:"2016-06-10",base64Decoder:e?.base64Decoder??Jn,base64Encoder:e?.base64Encoder??Kn,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??So,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??so,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new Un}],logger:e?.logger??new an,protocol:e?.protocol??Xn,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.polly",errorTypeRegistries:Ht,xmlNamespace:"http://polly.amazonaws.com/doc/v1",version:"2016-06-10",serviceTarget:"Parrot_v1"},sdkStreamMixin:e?.sdkStreamMixin??qn,serviceId:e?.serviceId??"Polly",sha256:e?.sha256??Yn,urlParser:e?.urlParser??An,utf8Decoder:e?.utf8Decoder??Bn,utf8Encoder:e?.utf8Encoder??zn}),hi=(e)=>{cn(process.version);let s=hn(e),p=()=>s().then(pn),d=xi(e);ws(process.version);let u={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:s,authSchemePreference:e?.authSchemePreference??L(wn,u),bodyLengthChecker:e?.bodyLengthChecker??Zn,credentialDefaultProvider:e?.credentialDefaultProvider??Hn,defaultUserAgentProvider:e?.defaultUserAgentProvider??Hs({serviceId:d.serviceId,clientVersion:ao.version}),eventStreamPayloadHandlerProvider:e?.eventStreamPayloadHandlerProvider??jn,eventStreamSerdeProvider:e?.eventStreamSerdeProvider??fn,maxAttempts:e?.maxAttempts??L(bn,e),region:e?.region??L(_n,{...gn,...u}),requestHandler:Wn.create(e?.requestHandler??(async()=>({...await p(),disableConcurrentStreams:!0}))),retryMode:e?.retryMode??L({...Dn,default:async()=>(await p()).retryMode||Rn},e),streamCollector:e?.streamCollector??Qn,useDualstackEndpoint:e?.useDualstackEndpoint??L(mn,u),useFipsEndpoint:e?.useFipsEndpoint??L(En,u),userAgentAppId:e?.userAgentAppId??L(js,u)}},Ei=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:p,credentials:d}=e;return{setHttpAuthScheme(u){let P=s.findIndex((Se)=>Se.schemeId===u.schemeId);if(P===-1)s.push(u);else s.splice(P,1,u)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(u){p=u},httpAuthSchemeProvider(){return p},setCredentials(u){d=u},credentials(){return d}}},mi=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),_i=(e,s)=>{let p=Object.assign(zs(e),un(e),Cn(e),Ei(e));return s.forEach((d)=>d.configure(p)),Object.assign(e,Bs(p),ln(p),Nn(p),mi(p))};class ue extends Je{config;constructor(...[e]){let s=hi(e||{});super(s);this.initConfig=s;let p=oo(s),d=qs(p),u=Fn(d),P=vn(u),Se=Ks(P),Ds=$n(Se),bs=Pn(Ds),Fs=no(bs),Ms=Xs(Fs),Gs=_i(Ms,e?.extensions||[]);this.config=Gs,this.middlewareStack.use(Gn(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(Mn(this.config)),this.middlewareStack.use(kn(this.config)),this.middlewareStack.use(Zs(this.config)),this.middlewareStack.use(Qs(this.config)),this.middlewareStack.use(Ws(this.config)),this.middlewareStack.use(en(this.config,{httpAuthSchemeParametersProvider:eo,identityProviderConfigProvider:async(Vs)=>new tn({"aws.auth#sigv4":Vs.credentials})})),this.middlewareStack.use(sn(this.config))}destroy(){super.destroy()}}var x=dn(ro,"Parrot_v1","PollyClient",On),h={},m=(e,s,p,d)=>[],gi=(e,s,p,d)=>[Ys(p)];class Oe extends x(h,m,"DeleteLexicon",ys){}class fe extends x(h,m,"DescribeVoices",Is){}class Pe extends x(h,m,"GetLexicon",$s){}class Ae extends x(h,m,"GetSpeechSynthesisTask",Os){}class Ne extends x(h,m,"ListLexicons",fs){}class de extends x(h,m,"ListSpeechSynthesisTasks",Ps){}class ke extends x(h,m,"PutLexicon",As){}class Re extends x(h,gi,"StartSpeechSynthesisStream",Cs){}class De extends x(h,m,"StartSpeechSynthesisTask",Ns){}class be extends x(h,m,"SynthesizeSpeech",ks){}var Rs=nn(ue,de,"NextToken","NextToken","MaxResults"),vi={DeleteLexiconCommand:Oe,DescribeVoicesCommand:fe,GetLexiconCommand:Pe,GetSpeechSynthesisTaskCommand:Ae,ListLexiconsCommand:Ne,ListSpeechSynthesisTasksCommand:de,PutLexiconCommand:ke,StartSpeechSynthesisStreamCommand:Re,StartSpeechSynthesisTaskCommand:De,SynthesizeSpeechCommand:be},Li={paginateListSpeechSynthesisTasks:Rs};class Fe extends ue{}Sn(vi,Fe,{paginators:Li});var Ti={GENERATIVE:"generative",LONG_FORM:"long-form",NEURAL:"neural",STANDARD:"standard"},yi={ar_AE:"ar-AE",arb:"arb",ca_ES:"ca-ES",cmn_CN:"cmn-CN",cs_CZ:"cs-CZ",cy_GB:"cy-GB",da_DK:"da-DK",de_AT:"de-AT",de_CH:"de-CH",de_DE:"de-DE",en_AU:"en-AU",en_GB:"en-GB",en_GB_WLS:"en-GB-WLS",en_IE:"en-IE",en_IN:"en-IN",en_NZ:"en-NZ",en_SG:"en-SG",en_US:"en-US",en_ZA:"en-ZA",es_ES:"es-ES",es_MX:"es-MX",es_US:"es-US",fi_FI:"fi-FI",fr_BE:"fr-BE",fr_CA:"fr-CA",fr_FR:"fr-FR",hi_IN:"hi-IN",is_IS:"is-IS",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",nb_NO:"nb-NO",nl_BE:"nl-BE",nl_NL:"nl-NL",pl_PL:"pl-PL",pt_BR:"pt-BR",pt_PT:"pt-PT",ro_RO:"ro-RO",ru_RU:"ru-RU",sv_SE:"sv-SE",tr_TR:"tr-TR",yue_CN:"yue-CN"},Ii={Female:"Female",Male:"Male"},$i={Aditi:"Aditi",Adriano:"Adriano",Ambre:"Ambre",Amy:"Amy",Andres:"Andres",Aria:"Aria",Arlet:"Arlet",Arthur:"Arthur",Astrid:"Astrid",Ayanda:"Ayanda",Beatrice:"Beatrice",Bianca:"Bianca",Brian:"Brian",Burcu:"Burcu",Camila:"Camila",Carla:"Carla",Carmen:"Carmen",Celine:"Celine",Chantal:"Chantal",Conchita:"Conchita",Cristiano:"Cristiano",Daniel:"Daniel",Danielle:"Danielle",Dora:"Dora",Elin:"Elin",Emma:"Emma",Enrique:"Enrique",Ewa:"Ewa",Filiz:"Filiz",Florian:"Florian",Gabrielle:"Gabrielle",Geraint:"Geraint",Giorgio:"Giorgio",Gregory:"Gregory",Gwyneth:"Gwyneth",Hala:"Hala",Hannah:"Hannah",Hans:"Hans",Hiujin:"Hiujin",Ida:"Ida",Ines:"Ines",Isabelle:"Isabelle",Ivy:"Ivy",Jacek:"Jacek",Jan:"Jan",Jasmine:"Jasmine",Jihye:"Jihye",Jitka:"Jitka",Joanna:"Joanna",Joey:"Joey",Justin:"Justin",Kajal:"Kajal",Karl:"Karl",Kazuha:"Kazuha",Kendra:"Kendra",Kevin:"Kevin",Kimberly:"Kimberly",Laura:"Laura",Lea:"Lea",Lennart:"Lennart",Liam:"Liam",Lisa:"Lisa",Liv:"Liv",Lorenzo:"Lorenzo",Lotte:"Lotte",Lucia:"Lucia",Lupe:"Lupe",Mads:"Mads",Maja:"Maja",Marlene:"Marlene",Mathieu:"Mathieu",Matthew:"Matthew",Maxim:"Maxim",Mia:"Mia",Miguel:"Miguel",Mizuki:"Mizuki",Naja:"Naja",Niamh:"Niamh",Nicole:"Nicole",Ola:"Ola",Olivia:"Olivia",Pedro:"Pedro",Penelope:"Penelope",Raveena:"Raveena",Remi:"Remi",Ricardo:"Ricardo",Ruben:"Ruben",Russell:"Russell",Ruth:"Ruth",Sabrina:"Sabrina",Salli:"Salli",Seoyeon:"Seoyeon",Sergio:"Sergio",Sofie:"Sofie",Stephen:"Stephen",Suvi:"Suvi",Takumi:"Takumi",Tatyana:"Tatyana",Thiago:"Thiago",Tiffany:"Tiffany",Tomoko:"Tomoko",Vicki:"Vicki",Vitoria:"Vitoria",Zayd:"Zayd",Zeina:"Zeina",Zhiyu:"Zhiyu"},Oi={ALAW:"alaw",JSON:"json",MP3:"mp3",MULAW:"mulaw",OGG_OPUS:"ogg_opus",OGG_VORBIS:"ogg_vorbis",PCM:"pcm"},fi={SENTENCE:"sentence",SSML:"ssml",VISEME:"viseme",WORD:"word"},Pi={COMPLETED:"completed",FAILED:"failed",IN_PROGRESS:"inProgress",SCHEDULED:"scheduled"},Ai={SSML:"ssml",TEXT:"text"},Ci={INPUT_STREAM_INBOUND_EVENT_TIMEOUT:"input-stream-inbound-event-timeout",INPUT_STREAM_TIMEOUT:"input-stream-timeout"},Ni={POLLY:"polly"},ki={FIELD_VALIDATION_FAILED:"fieldValidationFailed",INVALID_INBOUND_EVENT:"invalidInboundEvent",OTHER:"other",UNSUPPORTED_OPERATION:"unsupportedOperation"};var bi=zt,Fi=Bt,Mi=ys,Gi=Oe,Vi=qt,Ui=Kt,wi=Is,Hi=fe,ji=Jt,zi=Zt,Bi=Ti,qi=D,Ki=Lt,Ji=Wt,Zi=Ii,Qi=$s,Wi=Pe,Xi=Xt,Yi=Yt,ea=Os,ta=Ae,sa=es,na=ts,oa=M,ra=Tt,ia=R,aa=It,ca=G,pa=$t,ua=U,la=Ot,da=w,Sa=ft,xa=H,ha=Pt,Ea=j,ma=At,_a=b,ga=Ct,va=yi,La=z,Ta=Nt,ya=ss,Ia=Ie,$a=ns,Oa=N,fa=kt,Pa=B,Aa=Rt,Ca=fs,Na=Ne,ka=os,Ra=rs,Da=Ps,ba=de,Fa=is,Ma=as,Ga=q,Va=Dt,Ua=J,wa=bt,Ha=Z,ja=Ft,za=Oi,Ba=Fe,qa=ue,Ka=n,Ja=vt,Za=As,Qa=ke,Wa=cs,Xa=ps,Ya=Ci,ec=Ni,tc=k,sc=ge,nc=Y,oc=ve,rc=fi,ic=se,ac=Mt,cc=Cs,pc=Ls,uc=Re,lc=Ts,dc=us,Sc=ls,xc=Ns,hc=De,Ec=ds,mc=Ss,_c=xs,gc=pe,vc=F,Lc=Gt,Tc=ks,yc=be,Ic=hs,$c=Es,Oc=Pi,fc=ms,Pc=ne,Ac=Vt,Cc=Ai,Nc=ee,kc=Le,Rc=_s,Dc=Q,bc=Ut,Fc=W,Mc=wt,Gc=te,Vc=ye,Uc=gs,wc=ki,Hc=vs,jc=$i,zc=Ht,Bc=Rs;export{Ri as $Command,Di as __Client,bi as AudioEvent$,Fi as CloseStreamEvent$,Mi as DeleteLexicon$,Gi as DeleteLexiconCommand,Vi as DeleteLexiconInput$,Ui as DeleteLexiconOutput$,wi as DescribeVoices$,Hi as DescribeVoicesCommand,ji as DescribeVoicesInput$,zi as DescribeVoicesOutput$,Bi as Engine,qi as EngineNotSupportedException,Ki as EngineNotSupportedException$,Ji as FlushStreamConfiguration$,Zi as Gender,Qi as GetLexicon$,Wi as GetLexiconCommand,Xi as GetLexiconInput$,Yi as GetLexiconOutput$,ea as GetSpeechSynthesisTask$,ta as GetSpeechSynthesisTaskCommand,sa as GetSpeechSynthesisTaskInput$,na as GetSpeechSynthesisTaskOutput$,oa as InvalidLexiconException,ra as InvalidLexiconException$,ia as InvalidNextTokenException,aa as InvalidNextTokenException$,ca as InvalidS3BucketException,pa as InvalidS3BucketException$,ua as InvalidS3KeyException,la as InvalidS3KeyException$,da as InvalidSampleRateException,Sa as InvalidSampleRateException$,xa as InvalidSnsTopicArnException,ha as InvalidSnsTopicArnException$,Ea as InvalidSsmlException,ma as InvalidSsmlException$,_a as InvalidTaskIdException,ga as InvalidTaskIdException$,va as LanguageCode,La as LanguageNotSupportedException,Ta as LanguageNotSupportedException$,ya as Lexicon$,Ia as LexiconAttributes$,$a as LexiconDescription$,Oa as LexiconNotFoundException,fa as LexiconNotFoundException$,Pa as LexiconSizeExceededException,Aa as LexiconSizeExceededException$,Ca as ListLexicons$,Na as ListLexiconsCommand,ka as ListLexiconsInput$,Ra as ListLexiconsOutput$,Da as ListSpeechSynthesisTasks$,ba as ListSpeechSynthesisTasksCommand,Fa as ListSpeechSynthesisTasksInput$,Ma as ListSpeechSynthesisTasksOutput$,Ga as MarksNotSupportedForFormatException,Va as MarksNotSupportedForFormatException$,Ua as MaxLexemeLengthExceededException,wa as MaxLexemeLengthExceededException$,Ha as MaxLexiconsNumberExceededException,ja as MaxLexiconsNumberExceededException$,za as OutputFormat,Ba as Polly,qa as PollyClient,Ka as PollyServiceException,Ja as PollyServiceException$,Za as PutLexicon$,Qa as PutLexiconCommand,Wa as PutLexiconInput$,Xa as PutLexiconOutput$,Ya as QuotaCode,ec as ServiceCode,tc as ServiceFailureException,sc as ServiceFailureException$,nc as ServiceQuotaExceededException,oc as ServiceQuotaExceededException$,rc as SpeechMarkType,ic as SsmlMarksNotSupportedForTextTypeException,ac as SsmlMarksNotSupportedForTextTypeException$,cc as StartSpeechSynthesisStream$,pc as StartSpeechSynthesisStreamActionStream$,uc as StartSpeechSynthesisStreamCommand,lc as StartSpeechSynthesisStreamEventStream$,dc as StartSpeechSynthesisStreamInput$,Sc as StartSpeechSynthesisStreamOutput$,xc as StartSpeechSynthesisTask$,hc as StartSpeechSynthesisTaskCommand,Ec as StartSpeechSynthesisTaskInput$,mc as StartSpeechSynthesisTaskOutput$,_c as StreamClosedEvent$,gc as SynthesisTask$,vc as SynthesisTaskNotFoundException,Lc as SynthesisTaskNotFoundException$,Tc as SynthesizeSpeech$,yc as SynthesizeSpeechCommand,Ic as SynthesizeSpeechInput$,$c as SynthesizeSpeechOutput$,Oc as TaskStatus,fc as TextEvent$,Pc as TextLengthExceededException,Ac as TextLengthExceededException$,Cc as TextType,Nc as ThrottlingException,kc as ThrottlingException$,Rc as ThrottlingReason$,Dc as UnsupportedPlsAlphabetException,bc as UnsupportedPlsAlphabetException$,Fc as UnsupportedPlsLanguageException,Mc as UnsupportedPlsLanguageException$,Gc as ValidationException,Vc as ValidationException$,Uc as ValidationExceptionField$,wc as ValidationExceptionReason,Hc as Voice$,jc as VoiceId,zc as errorTypeRegistries,Bc as paginateListSpeechSynthesisTasks};
|
|
3
|
+
|
|
4
|
+
//# debugId=39ED795F4FD3C25D64756E2164756E21
|
|
5
|
+
//# sourceMappingURL=index-9dmgk6d3.js.map
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require(\"@aws-sdk/core/client\");\nconst { resolveEventStreamConfig, getEventStreamPlugin } = require(\"@aws-sdk/middleware-eventstream\");\nconst { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require(\"@smithy/core\");\nconst { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require(\"@smithy/core/client\");\nconst { Command: $Command } = require(\"@smithy/core/client\");\nexports.$Command = $Command;\nexports.__Client = Client;\nconst { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require(\"@smithy/core/config\");\nconst { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require(\"@smithy/core/endpoints\");\nconst { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = require(\"@smithy/core/event-streams\");\nconst { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require(\"@smithy/core/protocols\");\nconst { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require(\"@smithy/core/retry\");\nconst { TypeRegistry, getSchemaSerdePlugin } = require(\"@smithy/core/schema\");\nconst { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require(\"@aws-sdk/core/httpAuthSchemes\");\nconst { defaultProvider } = require(\"@aws-sdk/credential-provider-node\");\nconst { eventStreamPayloadHandlerProvider } = require(\"@aws-sdk/eventstream-handler-node\");\nconst { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, calculateBodyLength } = require(\"@smithy/core/serde\");\nconst { streamCollector, NodeHttp2Handler } = require(\"@smithy/node-http-handler\");\nconst { AwsRestJsonProtocol } = require(\"@aws-sdk/core/protocols\");\nconst { Sha256 } = require(\"@smithy/core/checksum\");\n\nconst defaultPollyHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: getSmithyContext(context).operation,\n region: await normalizeProvider(config.region)() || (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"polly\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nconst defaultPollyHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = resolveAwsSdkSigV4Config(config);\n return Object.assign(config_0, {\n authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),\n });\n};\n\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"polly\",\n });\n};\nconst commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n\nvar version = \"3.1140.0\";\nvar packageInfo = {\n\tversion: version};\n\nconst k = \"ref\";\nconst a = -1, b = true, c = \"isSet\", d = \"PartitionResult\", e = \"booleanEquals\", f = \"getAttr\", g = { [k]: \"Endpoint\" }, h = { [k]: d }, i = {}, j = [{ [k]: \"Region\" }];\nconst _data = {\n conditions: [\n [c, [g]],\n [c, j],\n [\"aws.partition\", j, d],\n [e, [{ [k]: \"UseFIPS\" }, b]],\n [e, [{ [k]: \"UseDualStack\" }, b]],\n [e, [{ fn: f, argv: [h, \"supportsDualStack\"] }, b]],\n [e, [{ fn: f, argv: [h, \"supportsFIPS\"] }, b]]\n ],\n results: [\n [a],\n [a, \"Invalid Configuration: FIPS and custom endpoint are not supported\"],\n [a, \"Invalid Configuration: Dualstack and custom endpoint are not supported\"],\n [g, i],\n [\"https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\", i],\n [a, \"FIPS and DualStack are enabled, but this partition does not support one or both\"],\n [\"https://polly-fips.{Region}.{PartitionResult#dnsSuffix}\", i],\n [a, \"FIPS is enabled but this partition does not support FIPS\"],\n [\"https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}\", i],\n [a, \"DualStack is enabled but this partition does not support DualStack\"],\n [\"https://polly.{Region}.{PartitionResult#dnsSuffix}\", i],\n [a, \"Invalid Configuration: Missing Region\"]\n ]\n};\nconst root = 2;\nconst r = 100_000_000;\nconst nodes = new Int32Array([\n -1, 1, -1,\n 0, 12, 3,\n 1, 4, r + 11,\n 2, 5, r + 11,\n 3, 8, 6,\n 4, 7, r + 10,\n 5, r + 8, r + 9,\n 4, 10, 9,\n 6, r + 6, r + 7,\n 5, 11, r + 5,\n 6, r + 4, r + 5,\n 3, r + 1, 13,\n 4, r + 2, r + 3,\n]);\nconst bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);\n\nconst cache = new EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => decideEndpoint(bdd, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\ncustomEndpointFunctions.aws = awsEndpointFunctions;\n\nclass PollyServiceException extends ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, PollyServiceException.prototype);\n }\n}\n\nclass LexiconNotFoundException extends PollyServiceException {\n name = \"LexiconNotFoundException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"LexiconNotFoundException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, LexiconNotFoundException.prototype);\n }\n}\nclass ServiceFailureException extends PollyServiceException {\n name = \"ServiceFailureException\";\n $fault = \"server\";\n constructor(opts) {\n super({\n name: \"ServiceFailureException\",\n $fault: \"server\",\n ...opts,\n });\n Object.setPrototypeOf(this, ServiceFailureException.prototype);\n }\n}\nclass InvalidNextTokenException extends PollyServiceException {\n name = \"InvalidNextTokenException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidNextTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidNextTokenException.prototype);\n }\n}\nclass EngineNotSupportedException extends PollyServiceException {\n name = \"EngineNotSupportedException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"EngineNotSupportedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, EngineNotSupportedException.prototype);\n }\n}\nclass InvalidTaskIdException extends PollyServiceException {\n name = \"InvalidTaskIdException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidTaskIdException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidTaskIdException.prototype);\n }\n}\nclass SynthesisTaskNotFoundException extends PollyServiceException {\n name = \"SynthesisTaskNotFoundException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"SynthesisTaskNotFoundException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, SynthesisTaskNotFoundException.prototype);\n }\n}\nclass InvalidLexiconException extends PollyServiceException {\n name = \"InvalidLexiconException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidLexiconException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidLexiconException.prototype);\n }\n}\nclass InvalidS3BucketException extends PollyServiceException {\n name = \"InvalidS3BucketException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidS3BucketException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidS3BucketException.prototype);\n }\n}\nclass InvalidS3KeyException extends PollyServiceException {\n name = \"InvalidS3KeyException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidS3KeyException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidS3KeyException.prototype);\n }\n}\nclass InvalidSampleRateException extends PollyServiceException {\n name = \"InvalidSampleRateException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidSampleRateException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidSampleRateException.prototype);\n }\n}\nclass InvalidSnsTopicArnException extends PollyServiceException {\n name = \"InvalidSnsTopicArnException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidSnsTopicArnException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidSnsTopicArnException.prototype);\n }\n}\nclass InvalidSsmlException extends PollyServiceException {\n name = \"InvalidSsmlException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidSsmlException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidSsmlException.prototype);\n }\n}\nclass LanguageNotSupportedException extends PollyServiceException {\n name = \"LanguageNotSupportedException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"LanguageNotSupportedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, LanguageNotSupportedException.prototype);\n }\n}\nclass LexiconSizeExceededException extends PollyServiceException {\n name = \"LexiconSizeExceededException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"LexiconSizeExceededException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);\n }\n}\nclass MarksNotSupportedForFormatException extends PollyServiceException {\n name = \"MarksNotSupportedForFormatException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"MarksNotSupportedForFormatException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, MarksNotSupportedForFormatException.prototype);\n }\n}\nclass MaxLexemeLengthExceededException extends PollyServiceException {\n name = \"MaxLexemeLengthExceededException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"MaxLexemeLengthExceededException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, MaxLexemeLengthExceededException.prototype);\n }\n}\nclass MaxLexiconsNumberExceededException extends PollyServiceException {\n name = \"MaxLexiconsNumberExceededException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"MaxLexiconsNumberExceededException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);\n }\n}\nclass UnsupportedPlsAlphabetException extends PollyServiceException {\n name = \"UnsupportedPlsAlphabetException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"UnsupportedPlsAlphabetException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnsupportedPlsAlphabetException.prototype);\n }\n}\nclass UnsupportedPlsLanguageException extends PollyServiceException {\n name = \"UnsupportedPlsLanguageException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"UnsupportedPlsLanguageException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnsupportedPlsLanguageException.prototype);\n }\n}\nclass ServiceQuotaExceededException extends PollyServiceException {\n name = \"ServiceQuotaExceededException\";\n $fault = \"client\";\n quotaCode;\n serviceCode;\n constructor(opts) {\n super({\n name: \"ServiceQuotaExceededException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);\n this.quotaCode = opts.quotaCode;\n this.serviceCode = opts.serviceCode;\n }\n}\nclass ThrottlingException extends PollyServiceException {\n name = \"ThrottlingException\";\n $fault = \"client\";\n throttlingReasons;\n constructor(opts) {\n super({\n name: \"ThrottlingException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ThrottlingException.prototype);\n this.throttlingReasons = opts.throttlingReasons;\n }\n}\nclass ValidationException extends PollyServiceException {\n name = \"ValidationException\";\n $fault = \"client\";\n reason;\n fields;\n constructor(opts) {\n super({\n name: \"ValidationException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ValidationException.prototype);\n this.reason = opts.reason;\n this.fields = opts.fields;\n }\n}\nclass SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {\n name = \"SsmlMarksNotSupportedForTextTypeException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"SsmlMarksNotSupportedForTextTypeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, SsmlMarksNotSupportedForTextTypeException.prototype);\n }\n}\nclass TextLengthExceededException extends PollyServiceException {\n name = \"TextLengthExceededException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"TextLengthExceededException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, TextLengthExceededException.prototype);\n }\n}\n\nconst _A = \"Alphabet\";\nconst _AC = \"AudioChunk\";\nconst _AE = \"AudioEvent\";\nconst _ALC = \"AdditionalLanguageCodes\";\nconst _AS = \"AudioStream\";\nconst _ASc = \"ActionStream\";\nconst _At = \"Attributes\";\nconst _C = \"Content\";\nconst _CSE = \"CloseStreamEvent\";\nconst _CT = \"CreationTime\";\nconst _CT_ = \"Content-Type\";\nconst _CTo = \"ContentType\";\nconst _DL = \"DeleteLexicon\";\nconst _DLI = \"DeleteLexiconInput\";\nconst _DLO = \"DeleteLexiconOutput\";\nconst _DV = \"DescribeVoices\";\nconst _DVI = \"DescribeVoicesInput\";\nconst _DVO = \"DescribeVoicesOutput\";\nconst _E = \"Engine\";\nconst _ENSE = \"EngineNotSupportedException\";\nconst _ES = \"EventStream\";\nconst _F = \"Force\";\nconst _FSC = \"FlushStreamConfiguration\";\nconst _G = \"Gender\";\nconst _GL = \"GetLexicon\";\nconst _GLI = \"GetLexiconInput\";\nconst _GLO = \"GetLexiconOutput\";\nconst _GSST = \"GetSpeechSynthesisTask\";\nconst _GSSTI = \"GetSpeechSynthesisTaskInput\";\nconst _GSSTO = \"GetSpeechSynthesisTaskOutput\";\nconst _I = \"Id\";\nconst _IALC = \"IncludeAdditionalLanguageCodes\";\nconst _ILE = \"InvalidLexiconException\";\nconst _INTE = \"InvalidNextTokenException\";\nconst _ISBE = \"InvalidS3BucketException\";\nconst _ISE = \"InvalidSsmlException\";\nconst _ISKE = \"InvalidS3KeyException\";\nconst _ISRE = \"InvalidSampleRateException\";\nconst _ISTAE = \"InvalidSnsTopicArnException\";\nconst _ITIE = \"InvalidTaskIdException\";\nconst _L = \"Lexicon\";\nconst _LA = \"LexiconAttributes\";\nconst _LAe = \"LexiconArn\";\nconst _LC = \"LexiconContent\";\nconst _LCa = \"LanguageCode\";\nconst _LCe = \"LexemesCount\";\nconst _LD = \"LexiconDescription\";\nconst _LDL = \"LexiconDescriptionList\";\nconst _LL = \"ListLexicons\";\nconst _LLI = \"ListLexiconsInput\";\nconst _LLO = \"ListLexiconsOutput\";\nconst _LM = \"LastModified\";\nconst _LN = \"LexiconNames\";\nconst _LNFE = \"LexiconNotFoundException\";\nconst _LNSE = \"LanguageNotSupportedException\";\nconst _LNa = \"LanguageName\";\nconst _LSEE = \"LexiconSizeExceededException\";\nconst _LSST = \"ListSpeechSynthesisTasks\";\nconst _LSSTI = \"ListSpeechSynthesisTasksInput\";\nconst _LSSTO = \"ListSpeechSynthesisTasksOutput\";\nconst _Le = \"Lexicons\";\nconst _MLLEE = \"MaxLexemeLengthExceededException\";\nconst _MLNEE = \"MaxLexiconsNumberExceededException\";\nconst _MNSFFE = \"MarksNotSupportedForFormatException\";\nconst _MR = \"MaxResults\";\nconst _N = \"Name\";\nconst _NT = \"NextToken\";\nconst _OF = \"OutputFormat\";\nconst _OSBN = \"OutputS3BucketName\";\nconst _OSKP = \"OutputS3KeyPrefix\";\nconst _OU = \"OutputUri\";\nconst _PL = \"PutLexicon\";\nconst _PLI = \"PutLexiconInput\";\nconst _PLO = \"PutLexiconOutput\";\nconst _RC = \"RequestCharacters\";\nconst _S = \"Size\";\nconst _SCE = \"StreamClosedEvent\";\nconst _SE = \"SupportedEngines\";\nconst _SFE = \"ServiceFailureException\";\nconst _SMNSFTTE = \"SsmlMarksNotSupportedForTextTypeException\";\nconst _SMT = \"SpeechMarkTypes\";\nconst _SQEE = \"ServiceQuotaExceededException\";\nconst _SR = \"SampleRate\";\nconst _SS = \"SynthesizeSpeech\";\nconst _SSI = \"SynthesizeSpeechInput\";\nconst _SSO = \"SynthesizeSpeechOutput\";\nconst _SSSS = \"StartSpeechSynthesisStream\";\nconst _SSSSAS = \"StartSpeechSynthesisStreamActionStream\";\nconst _SSSSES = \"StartSpeechSynthesisStreamEventStream\";\nconst _SSSSI = \"StartSpeechSynthesisStreamInput\";\nconst _SSSSO = \"StartSpeechSynthesisStreamOutput\";\nconst _SSST = \"StartSpeechSynthesisTask\";\nconst _SSSTI = \"StartSpeechSynthesisTaskInput\";\nconst _SSSTO = \"StartSpeechSynthesisTaskOutput\";\nconst _ST = \"SynthesisTask\";\nconst _STA = \"SnsTopicArn\";\nconst _STNFE = \"SynthesisTaskNotFoundException\";\nconst _STy = \"SynthesisTasks\";\nconst _St = \"Status\";\nconst _T = \"Text\";\nconst _TE = \"ThrottlingException\";\nconst _TEe = \"TextEvent\";\nconst _TI = \"TaskId\";\nconst _TLEE = \"TextLengthExceededException\";\nconst _TR = \"ThrottlingReason\";\nconst _TRL = \"ThrottlingReasonList\";\nconst _TS = \"TaskStatus\";\nconst _TSR = \"TaskStatusReason\";\nconst _TT = \"TextType\";\nconst _UPAE = \"UnsupportedPlsAlphabetException\";\nconst _UPLE = \"UnsupportedPlsLanguageException\";\nconst _V = \"Voices\";\nconst _VE = \"ValidationException\";\nconst _VEF = \"ValidationExceptionField\";\nconst _VEFL = \"ValidationExceptionFieldList\";\nconst _VI = \"VoiceId\";\nconst _VL = \"VoiceList\";\nconst _Vo = \"Voice\";\nconst _aQE = \"awsQueryError\";\nconst _c = \"client\";\nconst _e = \"error\";\nconst _eP = \"eventPayload\";\nconst _f = \"fields\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _hH = \"httpHeader\";\nconst _hQ = \"httpQuery\";\nconst _m = \"message\";\nconst _n = \"name\";\nconst _qC = \"quotaCode\";\nconst _r = \"reason\";\nconst _re = \"resource\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.polly\";\nconst _sC = \"serviceCode\";\nconst _se = \"server\";\nconst _st = \"streaming\";\nconst _tR = \"throttlingReasons\";\nconst _xaE = \"x-amzn-Engine\";\nconst _xaL = \"x-amzn-LanguageCode\";\nconst _xaL_ = \"x-amzn-LexiconNames\";\nconst _xaO = \"x-amzn-OutputFormat\";\nconst _xaR = \"x-amzn-RequestCharacters\";\nconst _xaS = \"x-amzn-SampleRate\";\nconst _xaV = \"x-amzn-VoiceId\";\nconst n0 = \"com.amazonaws.polly\";\nconst _s_registry = new TypeRegistry(_s);\nvar PollyServiceException$ = [-3, _s, \"PollyServiceException\", 0, [], []];\n_s_registry.registerError(PollyServiceException$, PollyServiceException);\nconst n0_registry = new TypeRegistry(n0);\nvar EngineNotSupportedException$ = [-3, n0, _ENSE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(EngineNotSupportedException$, EngineNotSupportedException);\nvar InvalidLexiconException$ = [-3, n0, _ILE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(InvalidLexiconException$, InvalidLexiconException);\nvar InvalidNextTokenException$ = [-3, n0, _INTE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);\nvar InvalidS3BucketException$ = [-3, n0, _ISBE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(InvalidS3BucketException$, InvalidS3BucketException);\nvar InvalidS3KeyException$ = [-3, n0, _ISKE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(InvalidS3KeyException$, InvalidS3KeyException);\nvar InvalidSampleRateException$ = [-3, n0, _ISRE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(InvalidSampleRateException$, InvalidSampleRateException);\nvar InvalidSnsTopicArnException$ = [-3, n0, _ISTAE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(InvalidSnsTopicArnException$, InvalidSnsTopicArnException);\nvar InvalidSsmlException$ = [-3, n0, _ISE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(InvalidSsmlException$, InvalidSsmlException);\nvar InvalidTaskIdException$ = [-3, n0, _ITIE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(InvalidTaskIdException$, InvalidTaskIdException);\nvar LanguageNotSupportedException$ = [-3, n0, _LNSE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(LanguageNotSupportedException$, LanguageNotSupportedException);\nvar LexiconNotFoundException$ = [-3, n0, _LNFE,\n { [_e]: _c, [_hE]: 404 },\n [_m],\n [0]\n];\nn0_registry.registerError(LexiconNotFoundException$, LexiconNotFoundException);\nvar LexiconSizeExceededException$ = [-3, n0, _LSEE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(LexiconSizeExceededException$, LexiconSizeExceededException);\nvar MarksNotSupportedForFormatException$ = [-3, n0, _MNSFFE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(MarksNotSupportedForFormatException$, MarksNotSupportedForFormatException);\nvar MaxLexemeLengthExceededException$ = [-3, n0, _MLLEE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(MaxLexemeLengthExceededException$, MaxLexemeLengthExceededException);\nvar MaxLexiconsNumberExceededException$ = [-3, n0, _MLNEE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(MaxLexiconsNumberExceededException$, MaxLexiconsNumberExceededException);\nvar ServiceFailureException$ = [-3, n0, _SFE,\n { [_e]: _se, [_hE]: 500 },\n [_m],\n [0]\n];\nn0_registry.registerError(ServiceFailureException$, ServiceFailureException);\nvar ServiceQuotaExceededException$ = [-3, n0, _SQEE,\n { [_e]: _c, [_hE]: 402 },\n [_m, _qC, _sC],\n [0, 0, 0], 3\n];\nn0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);\nvar SsmlMarksNotSupportedForTextTypeException$ = [-3, n0, _SMNSFTTE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(SsmlMarksNotSupportedForTextTypeException$, SsmlMarksNotSupportedForTextTypeException);\nvar SynthesisTaskNotFoundException$ = [-3, n0, _STNFE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(SynthesisTaskNotFoundException$, SynthesisTaskNotFoundException);\nvar TextLengthExceededException$ = [-3, n0, _TLEE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(TextLengthExceededException$, TextLengthExceededException);\nvar ThrottlingException$ = [-3, n0, _TE,\n { [_aQE]: [`Throttling`, 400], [_e]: _c, [_hE]: 400 },\n [_m, _tR],\n [0, () => ThrottlingReasonList]\n];\nn0_registry.registerError(ThrottlingException$, ThrottlingException);\nvar UnsupportedPlsAlphabetException$ = [-3, n0, _UPAE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(UnsupportedPlsAlphabetException$, UnsupportedPlsAlphabetException);\nvar UnsupportedPlsLanguageException$ = [-3, n0, _UPLE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nn0_registry.registerError(UnsupportedPlsLanguageException$, UnsupportedPlsLanguageException);\nvar ValidationException$ = [-3, n0, _VE,\n { [_e]: _c, [_hE]: 400 },\n [_m, _r, _f],\n [0, 0, () => ValidationExceptionFieldList], 2\n];\nn0_registry.registerError(ValidationException$, ValidationException);\nconst errorTypeRegistries = [\n _s_registry,\n n0_registry,\n];\nvar AudioStream = [0, n0, _AS, { [_st]: 1 }, 42];\nvar LexiconContent = [0, n0, _LC, 8, 0];\nvar AudioEvent$ = [3, n0, _AE,\n 0,\n [_AC],\n [[21, { [_eP]: 1 }]]\n];\nvar CloseStreamEvent$ = [3, n0, _CSE,\n 0,\n [],\n []\n];\nvar DeleteLexiconInput$ = [3, n0, _DLI,\n 0,\n [_N],\n [[0, 1]], 1\n];\nvar DeleteLexiconOutput$ = [3, n0, _DLO,\n 0,\n [],\n []\n];\nvar DescribeVoicesInput$ = [3, n0, _DVI,\n 0,\n [_E, _LCa, _IALC, _NT],\n [[0, { [_hQ]: _E }], [0, { [_hQ]: _LCa }], [2, { [_hQ]: _IALC }], [0, { [_hQ]: _NT }]]\n];\nvar DescribeVoicesOutput$ = [3, n0, _DVO,\n 0,\n [_V, _NT],\n [() => VoiceList, 0]\n];\nvar FlushStreamConfiguration$ = [3, n0, _FSC,\n 0,\n [_F],\n [2]\n];\nvar GetLexiconInput$ = [3, n0, _GLI,\n 0,\n [_N],\n [[0, 1]], 1\n];\nvar GetLexiconOutput$ = [3, n0, _GLO,\n 0,\n [_L, _LA],\n [[() => Lexicon$, 0], () => LexiconAttributes$]\n];\nvar GetSpeechSynthesisTaskInput$ = [3, n0, _GSSTI,\n 0,\n [_TI],\n [[0, 1]], 1\n];\nvar GetSpeechSynthesisTaskOutput$ = [3, n0, _GSSTO,\n 0,\n [_ST],\n [() => SynthesisTask$]\n];\nvar Lexicon$ = [3, n0, _L,\n 0,\n [_C, _N],\n [[() => LexiconContent, 0], 0]\n];\nvar LexiconAttributes$ = [3, n0, _LA,\n 0,\n [_A, _LCa, _LM, _LAe, _LCe, _S],\n [0, 0, 4, 0, 1, 1]\n];\nvar LexiconDescription$ = [3, n0, _LD,\n 0,\n [_N, _At],\n [0, () => LexiconAttributes$]\n];\nvar ListLexiconsInput$ = [3, n0, _LLI,\n 0,\n [_NT],\n [[0, { [_hQ]: _NT }]]\n];\nvar ListLexiconsOutput$ = [3, n0, _LLO,\n 0,\n [_Le, _NT],\n [() => LexiconDescriptionList, 0]\n];\nvar ListSpeechSynthesisTasksInput$ = [3, n0, _LSSTI,\n 0,\n [_MR, _NT, _St],\n [[1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }], [0, { [_hQ]: _St }]]\n];\nvar ListSpeechSynthesisTasksOutput$ = [3, n0, _LSSTO,\n 0,\n [_NT, _STy],\n [0, () => SynthesisTasks]\n];\nvar PutLexiconInput$ = [3, n0, _PLI,\n 0,\n [_N, _C],\n [[0, 1], [() => LexiconContent, 0]], 2\n];\nvar PutLexiconOutput$ = [3, n0, _PLO,\n 0,\n [],\n []\n];\nvar StartSpeechSynthesisStreamInput$ = [3, n0, _SSSSI,\n 0,\n [_E, _OF, _VI, _LCa, _LN, _SR, _ASc],\n [[0, { [_hH]: _xaE }], [0, { [_hH]: _xaO }], [0, { [_hH]: _xaV }], [0, { [_hH]: _xaL }], [64 | 0, { [_hH]: _xaL_ }], [0, { [_hH]: _xaS }], [() => StartSpeechSynthesisStreamActionStream$, 16]], 3\n];\nvar StartSpeechSynthesisStreamOutput$ = [3, n0, _SSSSO,\n 0,\n [_ES],\n [[() => StartSpeechSynthesisStreamEventStream$, 16]]\n];\nvar StartSpeechSynthesisTaskInput$ = [3, n0, _SSSTI,\n 0,\n [_OF, _OSBN, _T, _VI, _E, _LCa, _LN, _OSKP, _SR, _STA, _SMT, _TT],\n [0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0, 64 | 0, 0], 4\n];\nvar StartSpeechSynthesisTaskOutput$ = [3, n0, _SSSTO,\n 0,\n [_ST],\n [() => SynthesisTask$]\n];\nvar StreamClosedEvent$ = [3, n0, _SCE,\n 0,\n [_RC],\n [1]\n];\nvar SynthesisTask$ = [3, n0, _ST,\n 0,\n [_E, _TI, _TS, _TSR, _OU, _CT, _RC, _STA, _LN, _OF, _SR, _SMT, _TT, _VI, _LCa],\n [0, 0, 0, 0, 0, 4, 1, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0]\n];\nvar SynthesizeSpeechInput$ = [3, n0, _SSI,\n 0,\n [_OF, _T, _VI, _E, _LCa, _LN, _SR, _SMT, _TT],\n [0, 0, 0, 0, 0, 64 | 0, 0, 64 | 0, 0], 3\n];\nvar SynthesizeSpeechOutput$ = [3, n0, _SSO,\n 0,\n [_AS, _CTo, _RC],\n [[() => AudioStream, 16], [0, { [_hH]: _CT_ }], [1, { [_hH]: _xaR }]]\n];\nvar TextEvent$ = [3, n0, _TEe,\n 0,\n [_T, _TT, _FSC],\n [0, 0, () => FlushStreamConfiguration$], 1\n];\nvar ThrottlingReason$ = [3, n0, _TR,\n 0,\n [_r, _re],\n [0, 0]\n];\nvar ValidationExceptionField$ = [3, n0, _VEF,\n 0,\n [_n, _m],\n [0, 0], 2\n];\nvar Voice$ = [3, n0, _Vo,\n 0,\n [_G, _I, _LCa, _LNa, _N, _ALC, _SE],\n [0, 0, 0, 0, 0, 64 | 0, 64 | 0]\n];\nvar LexiconDescriptionList = [1, n0, _LDL,\n 0, () => LexiconDescription$\n];\nvar SynthesisTasks = [1, n0, _STy,\n 0, () => SynthesisTask$\n];\nvar ThrottlingReasonList = [1, n0, _TRL,\n 0, () => ThrottlingReason$\n];\nvar ValidationExceptionFieldList = [1, n0, _VEFL,\n 0, () => ValidationExceptionField$\n];\nvar VoiceList = [1, n0, _VL,\n 0, () => Voice$\n];\nvar StartSpeechSynthesisStreamActionStream$ = [4, n0, _SSSSAS,\n { [_st]: 1 },\n [_TEe, _CSE],\n [() => TextEvent$, () => CloseStreamEvent$]\n];\nvar StartSpeechSynthesisStreamEventStream$ = [4, n0, _SSSSES,\n { [_st]: 1 },\n [_AE, _SCE, _VE, _SQEE, _SFE, _TE],\n [[() => AudioEvent$, 0], () => StreamClosedEvent$, [() => ValidationException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceFailureException$, 0], [() => ThrottlingException$, 0]]\n];\nvar DeleteLexicon$ = [9, n0, _DL,\n { [_h]: [\"DELETE\", \"/v1/lexicons/{Name}\", 200] }, () => DeleteLexiconInput$, () => DeleteLexiconOutput$\n];\nvar DescribeVoices$ = [9, n0, _DV,\n { [_h]: [\"GET\", \"/v1/voices\", 200] }, () => DescribeVoicesInput$, () => DescribeVoicesOutput$\n];\nvar GetLexicon$ = [9, n0, _GL,\n { [_h]: [\"GET\", \"/v1/lexicons/{Name}\", 200] }, () => GetLexiconInput$, () => GetLexiconOutput$\n];\nvar GetSpeechSynthesisTask$ = [9, n0, _GSST,\n { [_h]: [\"GET\", \"/v1/synthesisTasks/{TaskId}\", 200] }, () => GetSpeechSynthesisTaskInput$, () => GetSpeechSynthesisTaskOutput$\n];\nvar ListLexicons$ = [9, n0, _LL,\n { [_h]: [\"GET\", \"/v1/lexicons\", 200] }, () => ListLexiconsInput$, () => ListLexiconsOutput$\n];\nvar ListSpeechSynthesisTasks$ = [9, n0, _LSST,\n { [_h]: [\"GET\", \"/v1/synthesisTasks\", 200] }, () => ListSpeechSynthesisTasksInput$, () => ListSpeechSynthesisTasksOutput$\n];\nvar PutLexicon$ = [9, n0, _PL,\n { [_h]: [\"PUT\", \"/v1/lexicons/{Name}\", 200] }, () => PutLexiconInput$, () => PutLexiconOutput$\n];\nvar StartSpeechSynthesisStream$ = [9, n0, _SSSS,\n { [_h]: [\"POST\", \"/v1/synthesisStream\", 200] }, () => StartSpeechSynthesisStreamInput$, () => StartSpeechSynthesisStreamOutput$\n];\nvar StartSpeechSynthesisTask$ = [9, n0, _SSST,\n { [_h]: [\"POST\", \"/v1/synthesisTasks\", 200] }, () => StartSpeechSynthesisTaskInput$, () => StartSpeechSynthesisTaskOutput$\n];\nvar SynthesizeSpeech$ = [9, n0, _SS,\n { [_h]: [\"POST\", \"/v1/speech\", 200] }, () => SynthesizeSpeechInput$, () => SynthesizeSpeechOutput$\n];\n\nconst getRuntimeConfig$1 = (config) => {\n return {\n apiVersion: \"2016-06-10\",\n base64Decoder: config?.base64Decoder ?? fromBase64,\n base64Encoder: config?.base64Encoder ?? toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPollyHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new AwsSdkSigV4Signer(),\n },\n ],\n logger: config?.logger ?? new NoOpLogger(),\n protocol: config?.protocol ?? AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.polly\",\n errorTypeRegistries,\n xmlNamespace: \"http://polly.amazonaws.com/doc/v1\",\n version: \"2016-06-10\",\n serviceTarget: \"Parrot_v1\",\n },\n sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,\n serviceId: config?.serviceId ?? \"Polly\",\n sha256: config?.sha256 ?? Sha256,\n urlParser: config?.urlParser ?? parseUrl,\n utf8Decoder: config?.utf8Decoder ?? fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? toUtf8,\n };\n};\n\nconst getRuntimeConfig = (config) => {\n emitWarningIfUnsupportedVersion(process.version);\n const defaultsMode = resolveDefaultsModeConfig(config);\n const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);\n const clientSharedValues = getRuntimeConfig$1(config);\n emitWarningIfUnsupportedVersion$1(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,\n credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),\n eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,\n eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,\n maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({\n ...await defaultConfigProvider(),\n disableConcurrentStreams: true\n }))),\n retryMode: config?.retryMode ??\n loadConfig({\n ...NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,\n }, config),\n streamCollector: config?.streamCollector ?? streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\n\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n\nclass PollyClient extends Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = resolveUserAgentConfig(_config_1);\n const _config_3 = resolveRetryConfig(_config_2);\n const _config_4 = resolveRegionConfig(_config_3);\n const _config_5 = resolveHostHeaderConfig(_config_4);\n const _config_6 = resolveEndpointConfig(_config_5);\n const _config_7 = resolveEventStreamSerdeConfig(_config_6);\n const _config_8 = resolveHttpAuthSchemeConfig(_config_7);\n const _config_9 = resolveEventStreamConfig(_config_8);\n const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);\n this.config = _config_10;\n this.middlewareStack.use(getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(getUserAgentPlugin(this.config));\n this.middlewareStack.use(getRetryPlugin(this.config));\n this.middlewareStack.use(getContentLengthPlugin(this.config));\n this.middlewareStack.use(getHostHeaderPlugin(this.config));\n this.middlewareStack.use(getLoggerPlugin(this.config));\n this.middlewareStack.use(getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: defaultPollyHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n\nconst command = makeBuilder(commonParams, \"Parrot_v1\", \"PollyClient\", getEndpointPlugin);\nconst _ep0 = {};\nconst _mw0 = (Command, cs, config, o) => [];\nconst _mw1 = (Command, cs, config, o) => [\n getEventStreamPlugin(config),\n];\n\nclass DeleteLexiconCommand extends command(_ep0, _mw0, \"DeleteLexicon\", DeleteLexicon$) {\n}\n\nclass DescribeVoicesCommand extends command(_ep0, _mw0, \"DescribeVoices\", DescribeVoices$) {\n}\n\nclass GetLexiconCommand extends command(_ep0, _mw0, \"GetLexicon\", GetLexicon$) {\n}\n\nclass GetSpeechSynthesisTaskCommand extends command(_ep0, _mw0, \"GetSpeechSynthesisTask\", GetSpeechSynthesisTask$) {\n}\n\nclass ListLexiconsCommand extends command(_ep0, _mw0, \"ListLexicons\", ListLexicons$) {\n}\n\nclass ListSpeechSynthesisTasksCommand extends command(_ep0, _mw0, \"ListSpeechSynthesisTasks\", ListSpeechSynthesisTasks$) {\n}\n\nclass PutLexiconCommand extends command(_ep0, _mw0, \"PutLexicon\", PutLexicon$) {\n}\n\nclass StartSpeechSynthesisStreamCommand extends command(_ep0, _mw1, \"StartSpeechSynthesisStream\", StartSpeechSynthesisStream$) {\n}\n\nclass StartSpeechSynthesisTaskCommand extends command(_ep0, _mw0, \"StartSpeechSynthesisTask\", StartSpeechSynthesisTask$) {\n}\n\nclass SynthesizeSpeechCommand extends command(_ep0, _mw0, \"SynthesizeSpeech\", SynthesizeSpeech$) {\n}\n\nconst paginateListSpeechSynthesisTasks = createPaginator(PollyClient, ListSpeechSynthesisTasksCommand, \"NextToken\", \"NextToken\", \"MaxResults\");\n\nconst commands = {\n DeleteLexiconCommand,\n DescribeVoicesCommand,\n GetLexiconCommand,\n GetSpeechSynthesisTaskCommand,\n ListLexiconsCommand,\n ListSpeechSynthesisTasksCommand,\n PutLexiconCommand,\n StartSpeechSynthesisStreamCommand,\n StartSpeechSynthesisTaskCommand,\n SynthesizeSpeechCommand,\n};\nconst paginators = {\n paginateListSpeechSynthesisTasks,\n};\nclass Polly extends PollyClient {\n}\ncreateAggregatedClient(commands, Polly, { paginators });\n\nconst Engine = {\n GENERATIVE: \"generative\",\n LONG_FORM: \"long-form\",\n NEURAL: \"neural\",\n STANDARD: \"standard\",\n};\nconst LanguageCode = {\n ar_AE: \"ar-AE\",\n arb: \"arb\",\n ca_ES: \"ca-ES\",\n cmn_CN: \"cmn-CN\",\n cs_CZ: \"cs-CZ\",\n cy_GB: \"cy-GB\",\n da_DK: \"da-DK\",\n de_AT: \"de-AT\",\n de_CH: \"de-CH\",\n de_DE: \"de-DE\",\n en_AU: \"en-AU\",\n en_GB: \"en-GB\",\n en_GB_WLS: \"en-GB-WLS\",\n en_IE: \"en-IE\",\n en_IN: \"en-IN\",\n en_NZ: \"en-NZ\",\n en_SG: \"en-SG\",\n en_US: \"en-US\",\n en_ZA: \"en-ZA\",\n es_ES: \"es-ES\",\n es_MX: \"es-MX\",\n es_US: \"es-US\",\n fi_FI: \"fi-FI\",\n fr_BE: \"fr-BE\",\n fr_CA: \"fr-CA\",\n fr_FR: \"fr-FR\",\n hi_IN: \"hi-IN\",\n is_IS: \"is-IS\",\n it_IT: \"it-IT\",\n ja_JP: \"ja-JP\",\n ko_KR: \"ko-KR\",\n nb_NO: \"nb-NO\",\n nl_BE: \"nl-BE\",\n nl_NL: \"nl-NL\",\n pl_PL: \"pl-PL\",\n pt_BR: \"pt-BR\",\n pt_PT: \"pt-PT\",\n ro_RO: \"ro-RO\",\n ru_RU: \"ru-RU\",\n sv_SE: \"sv-SE\",\n tr_TR: \"tr-TR\",\n yue_CN: \"yue-CN\",\n};\nconst Gender = {\n Female: \"Female\",\n Male: \"Male\",\n};\nconst VoiceId = {\n Aditi: \"Aditi\",\n Adriano: \"Adriano\",\n Ambre: \"Ambre\",\n Amy: \"Amy\",\n Andres: \"Andres\",\n Aria: \"Aria\",\n Arlet: \"Arlet\",\n Arthur: \"Arthur\",\n Astrid: \"Astrid\",\n Ayanda: \"Ayanda\",\n Beatrice: \"Beatrice\",\n Bianca: \"Bianca\",\n Brian: \"Brian\",\n Burcu: \"Burcu\",\n Camila: \"Camila\",\n Carla: \"Carla\",\n Carmen: \"Carmen\",\n Celine: \"Celine\",\n Chantal: \"Chantal\",\n Conchita: \"Conchita\",\n Cristiano: \"Cristiano\",\n Daniel: \"Daniel\",\n Danielle: \"Danielle\",\n Dora: \"Dora\",\n Elin: \"Elin\",\n Emma: \"Emma\",\n Enrique: \"Enrique\",\n Ewa: \"Ewa\",\n Filiz: \"Filiz\",\n Florian: \"Florian\",\n Gabrielle: \"Gabrielle\",\n Geraint: \"Geraint\",\n Giorgio: \"Giorgio\",\n Gregory: \"Gregory\",\n Gwyneth: \"Gwyneth\",\n Hala: \"Hala\",\n Hannah: \"Hannah\",\n Hans: \"Hans\",\n Hiujin: \"Hiujin\",\n Ida: \"Ida\",\n Ines: \"Ines\",\n Isabelle: \"Isabelle\",\n Ivy: \"Ivy\",\n Jacek: \"Jacek\",\n Jan: \"Jan\",\n Jasmine: \"Jasmine\",\n Jihye: \"Jihye\",\n Jitka: \"Jitka\",\n Joanna: \"Joanna\",\n Joey: \"Joey\",\n Justin: \"Justin\",\n Kajal: \"Kajal\",\n Karl: \"Karl\",\n Kazuha: \"Kazuha\",\n Kendra: \"Kendra\",\n Kevin: \"Kevin\",\n Kimberly: \"Kimberly\",\n Laura: \"Laura\",\n Lea: \"Lea\",\n Lennart: \"Lennart\",\n Liam: \"Liam\",\n Lisa: \"Lisa\",\n Liv: \"Liv\",\n Lorenzo: \"Lorenzo\",\n Lotte: \"Lotte\",\n Lucia: \"Lucia\",\n Lupe: \"Lupe\",\n Mads: \"Mads\",\n Maja: \"Maja\",\n Marlene: \"Marlene\",\n Mathieu: \"Mathieu\",\n Matthew: \"Matthew\",\n Maxim: \"Maxim\",\n Mia: \"Mia\",\n Miguel: \"Miguel\",\n Mizuki: \"Mizuki\",\n Naja: \"Naja\",\n Niamh: \"Niamh\",\n Nicole: \"Nicole\",\n Ola: \"Ola\",\n Olivia: \"Olivia\",\n Pedro: \"Pedro\",\n Penelope: \"Penelope\",\n Raveena: \"Raveena\",\n Remi: \"Remi\",\n Ricardo: \"Ricardo\",\n Ruben: \"Ruben\",\n Russell: \"Russell\",\n Ruth: \"Ruth\",\n Sabrina: \"Sabrina\",\n Salli: \"Salli\",\n Seoyeon: \"Seoyeon\",\n Sergio: \"Sergio\",\n Sofie: \"Sofie\",\n Stephen: \"Stephen\",\n Suvi: \"Suvi\",\n Takumi: \"Takumi\",\n Tatyana: \"Tatyana\",\n Thiago: \"Thiago\",\n Tiffany: \"Tiffany\",\n Tomoko: \"Tomoko\",\n Vicki: \"Vicki\",\n Vitoria: \"Vitoria\",\n Zayd: \"Zayd\",\n Zeina: \"Zeina\",\n Zhiyu: \"Zhiyu\",\n};\nconst OutputFormat = {\n ALAW: \"alaw\",\n JSON: \"json\",\n MP3: \"mp3\",\n MULAW: \"mulaw\",\n OGG_OPUS: \"ogg_opus\",\n OGG_VORBIS: \"ogg_vorbis\",\n PCM: \"pcm\",\n};\nconst SpeechMarkType = {\n SENTENCE: \"sentence\",\n SSML: \"ssml\",\n VISEME: \"viseme\",\n WORD: \"word\",\n};\nconst TaskStatus = {\n COMPLETED: \"completed\",\n FAILED: \"failed\",\n IN_PROGRESS: \"inProgress\",\n SCHEDULED: \"scheduled\",\n};\nconst TextType = {\n SSML: \"ssml\",\n TEXT: \"text\",\n};\nconst QuotaCode = {\n INPUT_STREAM_INBOUND_EVENT_TIMEOUT: \"input-stream-inbound-event-timeout\",\n INPUT_STREAM_TIMEOUT: \"input-stream-timeout\",\n};\nconst ServiceCode = {\n POLLY: \"polly\",\n};\nconst ValidationExceptionReason = {\n FIELD_VALIDATION_FAILED: \"fieldValidationFailed\",\n INVALID_INBOUND_EVENT: \"invalidInboundEvent\",\n OTHER: \"other\",\n UNSUPPORTED_OPERATION: \"unsupportedOperation\",\n};\n\nexports.AudioEvent$ = AudioEvent$;\nexports.CloseStreamEvent$ = CloseStreamEvent$;\nexports.DeleteLexicon$ = DeleteLexicon$;\nexports.DeleteLexiconCommand = DeleteLexiconCommand;\nexports.DeleteLexiconInput$ = DeleteLexiconInput$;\nexports.DeleteLexiconOutput$ = DeleteLexiconOutput$;\nexports.DescribeVoices$ = DescribeVoices$;\nexports.DescribeVoicesCommand = DescribeVoicesCommand;\nexports.DescribeVoicesInput$ = DescribeVoicesInput$;\nexports.DescribeVoicesOutput$ = DescribeVoicesOutput$;\nexports.Engine = Engine;\nexports.EngineNotSupportedException = EngineNotSupportedException;\nexports.EngineNotSupportedException$ = EngineNotSupportedException$;\nexports.FlushStreamConfiguration$ = FlushStreamConfiguration$;\nexports.Gender = Gender;\nexports.GetLexicon$ = GetLexicon$;\nexports.GetLexiconCommand = GetLexiconCommand;\nexports.GetLexiconInput$ = GetLexiconInput$;\nexports.GetLexiconOutput$ = GetLexiconOutput$;\nexports.GetSpeechSynthesisTask$ = GetSpeechSynthesisTask$;\nexports.GetSpeechSynthesisTaskCommand = GetSpeechSynthesisTaskCommand;\nexports.GetSpeechSynthesisTaskInput$ = GetSpeechSynthesisTaskInput$;\nexports.GetSpeechSynthesisTaskOutput$ = GetSpeechSynthesisTaskOutput$;\nexports.InvalidLexiconException = InvalidLexiconException;\nexports.InvalidLexiconException$ = InvalidLexiconException$;\nexports.InvalidNextTokenException = InvalidNextTokenException;\nexports.InvalidNextTokenException$ = InvalidNextTokenException$;\nexports.InvalidS3BucketException = InvalidS3BucketException;\nexports.InvalidS3BucketException$ = InvalidS3BucketException$;\nexports.InvalidS3KeyException = InvalidS3KeyException;\nexports.InvalidS3KeyException$ = InvalidS3KeyException$;\nexports.InvalidSampleRateException = InvalidSampleRateException;\nexports.InvalidSampleRateException$ = InvalidSampleRateException$;\nexports.InvalidSnsTopicArnException = InvalidSnsTopicArnException;\nexports.InvalidSnsTopicArnException$ = InvalidSnsTopicArnException$;\nexports.InvalidSsmlException = InvalidSsmlException;\nexports.InvalidSsmlException$ = InvalidSsmlException$;\nexports.InvalidTaskIdException = InvalidTaskIdException;\nexports.InvalidTaskIdException$ = InvalidTaskIdException$;\nexports.LanguageCode = LanguageCode;\nexports.LanguageNotSupportedException = LanguageNotSupportedException;\nexports.LanguageNotSupportedException$ = LanguageNotSupportedException$;\nexports.Lexicon$ = Lexicon$;\nexports.LexiconAttributes$ = LexiconAttributes$;\nexports.LexiconDescription$ = LexiconDescription$;\nexports.LexiconNotFoundException = LexiconNotFoundException;\nexports.LexiconNotFoundException$ = LexiconNotFoundException$;\nexports.LexiconSizeExceededException = LexiconSizeExceededException;\nexports.LexiconSizeExceededException$ = LexiconSizeExceededException$;\nexports.ListLexicons$ = ListLexicons$;\nexports.ListLexiconsCommand = ListLexiconsCommand;\nexports.ListLexiconsInput$ = ListLexiconsInput$;\nexports.ListLexiconsOutput$ = ListLexiconsOutput$;\nexports.ListSpeechSynthesisTasks$ = ListSpeechSynthesisTasks$;\nexports.ListSpeechSynthesisTasksCommand = ListSpeechSynthesisTasksCommand;\nexports.ListSpeechSynthesisTasksInput$ = ListSpeechSynthesisTasksInput$;\nexports.ListSpeechSynthesisTasksOutput$ = ListSpeechSynthesisTasksOutput$;\nexports.MarksNotSupportedForFormatException = MarksNotSupportedForFormatException;\nexports.MarksNotSupportedForFormatException$ = MarksNotSupportedForFormatException$;\nexports.MaxLexemeLengthExceededException = MaxLexemeLengthExceededException;\nexports.MaxLexemeLengthExceededException$ = MaxLexemeLengthExceededException$;\nexports.MaxLexiconsNumberExceededException = MaxLexiconsNumberExceededException;\nexports.MaxLexiconsNumberExceededException$ = MaxLexiconsNumberExceededException$;\nexports.OutputFormat = OutputFormat;\nexports.Polly = Polly;\nexports.PollyClient = PollyClient;\nexports.PollyServiceException = PollyServiceException;\nexports.PollyServiceException$ = PollyServiceException$;\nexports.PutLexicon$ = PutLexicon$;\nexports.PutLexiconCommand = PutLexiconCommand;\nexports.PutLexiconInput$ = PutLexiconInput$;\nexports.PutLexiconOutput$ = PutLexiconOutput$;\nexports.QuotaCode = QuotaCode;\nexports.ServiceCode = ServiceCode;\nexports.ServiceFailureException = ServiceFailureException;\nexports.ServiceFailureException$ = ServiceFailureException$;\nexports.ServiceQuotaExceededException = ServiceQuotaExceededException;\nexports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;\nexports.SpeechMarkType = SpeechMarkType;\nexports.SsmlMarksNotSupportedForTextTypeException = SsmlMarksNotSupportedForTextTypeException;\nexports.SsmlMarksNotSupportedForTextTypeException$ = SsmlMarksNotSupportedForTextTypeException$;\nexports.StartSpeechSynthesisStream$ = StartSpeechSynthesisStream$;\nexports.StartSpeechSynthesisStreamActionStream$ = StartSpeechSynthesisStreamActionStream$;\nexports.StartSpeechSynthesisStreamCommand = StartSpeechSynthesisStreamCommand;\nexports.StartSpeechSynthesisStreamEventStream$ = StartSpeechSynthesisStreamEventStream$;\nexports.StartSpeechSynthesisStreamInput$ = StartSpeechSynthesisStreamInput$;\nexports.StartSpeechSynthesisStreamOutput$ = StartSpeechSynthesisStreamOutput$;\nexports.StartSpeechSynthesisTask$ = StartSpeechSynthesisTask$;\nexports.StartSpeechSynthesisTaskCommand = StartSpeechSynthesisTaskCommand;\nexports.StartSpeechSynthesisTaskInput$ = StartSpeechSynthesisTaskInput$;\nexports.StartSpeechSynthesisTaskOutput$ = StartSpeechSynthesisTaskOutput$;\nexports.StreamClosedEvent$ = StreamClosedEvent$;\nexports.SynthesisTask$ = SynthesisTask$;\nexports.SynthesisTaskNotFoundException = SynthesisTaskNotFoundException;\nexports.SynthesisTaskNotFoundException$ = SynthesisTaskNotFoundException$;\nexports.SynthesizeSpeech$ = SynthesizeSpeech$;\nexports.SynthesizeSpeechCommand = SynthesizeSpeechCommand;\nexports.SynthesizeSpeechInput$ = SynthesizeSpeechInput$;\nexports.SynthesizeSpeechOutput$ = SynthesizeSpeechOutput$;\nexports.TaskStatus = TaskStatus;\nexports.TextEvent$ = TextEvent$;\nexports.TextLengthExceededException = TextLengthExceededException;\nexports.TextLengthExceededException$ = TextLengthExceededException$;\nexports.TextType = TextType;\nexports.ThrottlingException = ThrottlingException;\nexports.ThrottlingException$ = ThrottlingException$;\nexports.ThrottlingReason$ = ThrottlingReason$;\nexports.UnsupportedPlsAlphabetException = UnsupportedPlsAlphabetException;\nexports.UnsupportedPlsAlphabetException$ = UnsupportedPlsAlphabetException$;\nexports.UnsupportedPlsLanguageException = UnsupportedPlsLanguageException;\nexports.UnsupportedPlsLanguageException$ = UnsupportedPlsLanguageException$;\nexports.ValidationException = ValidationException;\nexports.ValidationException$ = ValidationException$;\nexports.ValidationExceptionField$ = ValidationExceptionField$;\nexports.ValidationExceptionReason = ValidationExceptionReason;\nexports.Voice$ = Voice$;\nexports.VoiceId = VoiceId;\nexports.errorTypeRegistries = errorTypeRegistries;\nexports.paginateListSpeechSynthesisTasks = paginateListSpeechSynthesisTasks;\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";iFAAA,IAAQ,wBAAsB,gCAAiC,GAA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AC3B,GAAgC,EAChC,GAAiC,GACjC,GAAiB,GACjB,GAA4C,GAC5C,GAA6C,GAC7C,GAA8B,GAC9B,GAA0C,GAC1C,GAAoC,GACpC,GAAyC,GACzC,GAAmC,GACnC,GAAoC,GACpC,GAA4B,GAC5B,GAAkC,GAClC,GAAiC,GACjC,GAAkC,GAClC,GAAqB,GACrB,GAAiB,GACjB,GAAiC,EACjC,GAAkC,GAClC,GAAoB,GACpB,GAA0B,GAC1B,GAAyB,GACzB,GAA0B,GAC1B,GAAa,GACb,GAAa,GACb,GAA8B,GAC9B,GAA+B,GAC/B,GAAW,GACX,GAAsB,GACtB,GAAuB,GACvB,GAAoB,GACpB,GAAkC,EAClC,GAAmC,GACnC,GAAkC,EAClC,GAAmC,GACnC,GAAsB,GACtB,GAAuB,GACvB,GAA4B,GAC5B,GAA4B,GAC5B,GAAS,GACT,GAAU,GACV,GAAsB,GACtB,GAAmC",
|
|
8
|
-
"debugId": "
|
|
8
|
+
"debugId": "39ED795F4FD3C25D64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{A,st,gA,cA}from"./index-26ejkp8q.js";import{Gt,An}from"./index-ac2wzspd.js";import{zn,Zn,Ye}from"./index-x9z2xnct.js";import{d,k,Q,y}from"./index-a6mtqkth.js";import{readFileSync as u}from"node:fs";function qA(n){if(n===void 0||n===null)return"(not set)";if(typeof n==="string")return n===""?'""':n;if(typeof n==="boolean"||typeof n==="number")return String(n);return JSON.stringify(n)}function h(n){return n.split(/[.[]/)[0]??n}function Ni(n,e){let t=[`${e}`,""],i=new Map;for(let r of n){let a=h(r.setting.path);i.set(a,[...i.get(a)??[],r])}let o=!0;for(let[r,a]of i){t.push(k(r,o)),o=!1;for(let s of a){let l=s.setting.agentListed?"":" · yours only",g=s.setting.via===void 0?"":` · set with \`${s.setting.via}\``,p=s.setting.confirm===void 0?"":" · asks first";t.push(d([{label:s.setting.path,value:qA(s.value)}]),y(`${s.setting.means}${l}${g}${p}`,4))}}return t.push("","A change takes effect the next time the agent starts. `yours only` marks a field the agent is","refused: what it may do is its to ask for, where it writes and who may reach it are yours."),t.join(`
|
|
3
|
+
`)}function Mi(n,e){return[d([{label:n.path,value:qA(e)}]),y(n.means,4),...n.toAgent===void 0?[]:[y(`to the agent: ${n.toAgent}`,4)]].join(`
|
|
4
|
+
`)}function Ti(n,e){if(n.confirm===void 0)return;if(n.path==="tools.untrusted.onMutate"&&String(e).toLowerCase()!=="allow")return;return n.confirm}function Ri(n){let e=[d([{label:"set",value:`${n.path} = ${qA(n.after)}`},{label:"was",value:n.before===void 0?"(not set)":qA(n.before)},{label:"file",value:n.file}])];if(n.reflowed)e.push("",Q("the block could not be edited in place, so the file was re-serialised — it is valid, and comments may have moved"));if(n.running!==void 0)e.push("",Q(`this agent is running (pid ${n.running.pid}, ${n.running.mode}) and holds its settings for its lifetime — the change applies after ${n.restartHint}`));for(let t of n.pending)e.push(Q(`${t.name} is not set — ${t.why}`)),e.push(Q(`fill it in with \`config env <agent> ${t.name}\``));return e.join(`
|
|
5
|
+
`)}function _i(){return cA.filter((n)=>n.via===void 0&&!/[[<]/.test(n.path)).map((n)=>n.path)}function VA(n){if(typeof n!=="object"||n===null)return[];let e=n,t=[],i=(s,l)=>{if(typeof s==="string"&&s!=="")t.push({name:s,why:l})},o=f(e.model);for(let s of["main","selector","compactor"]){let l=f(o?.[s]);i(l?.apiKeyEnv,"the manifest will not load until it is set")}if(Array.isArray(e.channels))for(let s of e.channels){let l=f(s);if(l===void 0||l.enabled===!1)continue;i(l.tokenEnv,`the ${String(l.id??l.type??"channel")} channel is read at boot, so the agent will not start until it is set`)}let r=f(e.server);if(r?.enabled===!0)i(r.tokenEnv,"the HTTP API would accept unauthenticated requests. This does not stop the agent starting");let a=f(f(e.tools)?.providers);for(let[s,l]of Object.entries(a??{}))i(f(l)?.apiKeyEnv,`the ${s} provider's tools will not work until it is set`);return t}function f(n){if(typeof n!=="object"||n===null||Array.isArray(n))return;return n}function jo(n,e){return n.filter((t)=>e[t.name]===void 0||e[t.name]==="")}function c(n,e){let t=[],i=new Map;for(let o of n){if(o.setting.via!==void 0||/[[<]/.test(o.setting.path))continue;let r=o.setting.path.split(".")[0]??o.setting.path;i.set(r,[...i.get(r)??[],o])}for(let[o,r]of i){t.push({kind:"heading",label:o});for(let a of r)t.push({kind:"setting",setting:a.setting,value:a.value})}if(e.channels.length>0){t.push({kind:"heading",label:"who may reach it"});for(let o of e.channels)t.push({kind:"allow",channelId:o.id,channelType:o.type,handles:o.allowFrom})}if(e.secrets.length>0){t.push({kind:"heading",label:"secrets — written to the .env, never shown"});for(let o of e.secrets)t.push({kind:"secret",name:o.name,why:o.why,present:e.present(o.name)})}return t}function Jo(n){let e=u(n,"utf8");return cA.map((t)=>{if(t.path==="channels[].allowFrom"){let i=st(e,["channels"]);if(!Array.isArray(i))return{setting:t,value:void 0};let o={};for(let r of i){if(typeof r!=="object"||r===null)continue;let a=r;if(typeof a.id!=="string")continue;o[a.id]=a.allowFrom??[]}return{setting:t,value:Object.keys(o).length===0?void 0:o}}if(t.path==="tools.providers.<id>.writeRoots"){let i=st(e,["tools","providers"]);if(typeof i!=="object"||i===null||Array.isArray(i))return{setting:t,value:void 0};let o={};for(let[r,a]of Object.entries(i)){if(typeof a!=="object"||a===null)continue;let s=a.writeRoots;if(s!==void 0)o[r]=s}return{setting:t,value:Object.keys(o).length===0?void 0:o}}return{setting:t,value:st(e,t.path.split("."))}})}function pA(n){let e=u(n,"utf8"),t=gA(e),i=Gt(n),o=st(e,["channels"]);return c(Jo(n),{channels:(Array.isArray(o)?o:[]).filter((r)=>typeof r==="object"&&r!==null&&!Array.isArray(r)).map((r)=>({id:String(r.id??""),type:String(r.type??""),allowFrom:Array.isArray(r.allowFrom)?r.allowFrom.map(String):[]})).filter((r)=>r.id!==""),secrets:VA(t),present:(r)=>An(i,r)})}async function Dn(n,e,t){switch(e.kind){case"setting":{if(t.trim()==="")throw new A({code:"cli_config_value_missing",message:`No value given for ${e.setting.path}.`,hint:'A bare word, a number, a list as ["a", "b"], or a map as {k: v}.',field:"value"});return(await zn(n,e.setting.path,t)).note}case"allow":{let i=t.trim()===""?[]:t.trim().split(/\s+/);return(await Zn(n,e.channelId,i)).note}case"secret":return Ye(n,e.name,t).note;case"heading":return""}}
|
|
6
|
+
export{qA,Ni,Mi,Ti,Ri,_i,VA,jo,Jo,pA,Dn};
|
|
7
|
+
|
|
8
|
+
//# debugId=542D1771E8AEDAF264756E2164756E21
|
|
9
|
+
//# sourceMappingURL=index-9qv87rq7.js.map
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
"/**\n * What `config` prints, and what a person has to confirm. Pure, so both are asserted as strings.\n *\n * The policy lives here rather than in the command for the same reason `remove-plan.ts` does: this\n * surface can disable the write gate and open a bind address to the network, and \"which edits need a\n * confirmation\" is exactly the thing that must be checkable without performing one.\n *\n * ## Why the person's policy is not the agent's\n *\n * Decision 11.29: *enabling a capability answers \"what may I do\"; a write root, an allowlist and a\n * bind address answer \"who and where\", and those are the person's by definition.* The agent's floor\n * exists because an agent that could widen its own inbound gate could be **talked into** widening it\n * by the very message it is reading — `config_set` sits in `policy.allow` on a real manifest, so the\n * write gate would not stop that. A person typing at a terminal is not that threat, and refusing them\n * is what left the fields reserved for them with the worst ergonomics in the system.\n *\n * So nothing here is floored. Two edits are confirmed, both from decision 4.50, and only those two:\n * a confirmation that fires on `limits.maxSteps` is one nobody reads by the time it fires on the\n * write gate.\n */\n\nimport { SETTINGS, type Setting } from \"@dispach/core\"\nimport type { EditorRow } from \"#lib/config-editor\"\nimport { bullet, indent, keyValue, section } from \"#lib/render\"\n\n/** A setting with whatever the manifest currently has in it. */\nexport interface SettingValue {\n readonly setting: Setting\n /** Plain JS, or `undefined` when the field is absent from the file. */\n readonly value: unknown\n}\n\n/**\n * How a value appears in a listing.\n *\n * Lists and maps as JSON rather than flattened YAML, which is the lesson from `config_read`: collapsing\n * a block's newlines rendered `[type: telegram id: tg tokenEnv: …]`, one run-on string where the reader\n * needed fields. A sequence of maps went through `String(entry)` and wrote `[object Object]` — the same\n * defect, three times, in three renderers.\n */\nexport function showValue(value: unknown): string {\n if (value === undefined || value === null) return \"(not set)\"\n if (typeof value === \"string\") return value === \"\" ? '\"\"' : value\n if (typeof value === \"boolean\" || typeof value === \"number\") return String(value)\n return JSON.stringify(value)\n}\n\n/** The top-level key a path belongs under, for grouping. */\nfunction group(path: string): string {\n return path.split(/[.[]/)[0] ?? path\n}\n\n/**\n * The whole catalogue, grouped by the block it lives in, each row carrying who owns it.\n *\n * Grouped by manifest block rather than by owner, because the question a reader arrives with is \"what\n * can I change about tools\" far more often than \"what is mine versus the agent's\" — and the ownership\n * still shows on every row that is not the default.\n */\nexport function renderSettings(rows: readonly SettingValue[], file: string): string {\n const out: string[] = [`${file}`, \"\"]\n\n // Collected by block rather than emitted in catalogue order. Printing a heading whenever the block\n // *changes* looks equivalent and is not: the person-only rows sit at the end of the catalogue, so a\n // real listing came out with `server` and `tools` as two sections each, reading as though there\n // were two of them. Grouping here rather than reordering the catalogue keeps the render correct\n // whatever order the rows arrive in, which is the property worth having.\n const blocks = new Map<string, SettingValue[]>()\n for (const row of rows) {\n const block = group(row.setting.path)\n blocks.set(block, [...(blocks.get(block) ?? []), row])\n }\n\n let first = true\n for (const [block, members] of blocks) {\n out.push(section(block, first))\n first = false\n for (const row of members) {\n const owner = row.setting.agentListed ? \"\" : \" · yours only\"\n const via = row.setting.via === undefined ? \"\" : ` · set with \\`${row.setting.via}\\``\n const guard = row.setting.confirm === undefined ? \"\" : \" · asks first\"\n out.push(\n keyValue([{ label: row.setting.path, value: showValue(row.value) }]),\n indent(`${row.setting.means}${owner}${via}${guard}`, 4),\n )\n }\n }\n out.push(\n \"\",\n \"A change takes effect the next time the agent starts. `yours only` marks a field the agent is\",\n \"refused: what it may do is its to ask for, where it writes and who may reach it are yours.\",\n )\n return out.join(\"\\n\")\n}\n\n/** One field, for `config get`. */\nexport function renderOne(setting: Setting, value: unknown): string {\n return [\n keyValue([{ label: setting.path, value: showValue(value) }]),\n indent(setting.means, 4),\n ...(setting.toAgent === undefined ? [] : [indent(`to the agent: ${setting.toAgent}`, 4)]),\n ].join(\"\\n\")\n}\n\n/**\n * What a confirmation says before a guard-weakening edit, or `undefined` when none is needed.\n *\n * The value matters, not only the path: `onMutate: confirm` tightens the gate and `allow` removes it,\n * and asking about both would teach people to agree to the one that matters. Same asymmetry the agent's\n * floor has, where `confirm` is settable and `allow` is refused.\n */\nexport function confirmationFor(setting: Setting, value: unknown): string | undefined {\n if (setting.confirm === undefined) return undefined\n if (setting.path === \"tools.untrusted.onMutate\" && String(value).toLowerCase() !== \"allow\") {\n return undefined\n }\n return setting.confirm\n}\n\n/**\n * The report after a successful set.\n *\n * `reflowed` is surfaced rather than swallowed: the file is correct and its comments have moved, which\n * is a surprise better heard from the command than found later in a diff.\n */\nexport function renderChange(input: {\n readonly path: string\n readonly before: unknown\n readonly after: unknown\n readonly file: string\n readonly reflowed: boolean\n /** A live process holding this agent, if there is one. */\n readonly running?: { readonly pid: number; readonly mode: string }\n /**\n * Env variables this edit has *newly* made load-bearing and that are not set.\n *\n * Newly, not \"all of them\": a note about tokens printed on every `limits.maxSteps` change is a note\n * nobody reads by the time it matters — the same reasoning that makes `config_set` report a pending\n * secret only for a write that could have introduced one. What is already missing is `config list`'s\n * to report, because that is the command whose job is the overview.\n */\n readonly pending: readonly EnvNeed[]\n readonly restartHint: string\n}): string {\n const out: string[] = [\n keyValue([\n { label: \"set\", value: `${input.path} = ${showValue(input.after)}` },\n {\n label: \"was\",\n value: input.before === undefined ? \"(not set)\" : showValue(input.before),\n },\n { label: \"file\", value: input.file },\n ]),\n ]\n if (input.reflowed) {\n out.push(\n \"\",\n bullet(\n \"the block could not be edited in place, so the file was re-serialised — it is valid, and comments may have moved\",\n ),\n )\n }\n if (input.running !== undefined) {\n // Never a refusal. Fixing a misconfiguration while it is running and broken is the main use of\n // this command, so the state it would refuse in is the state somebody is trying to get out of.\n out.push(\n \"\",\n bullet(\n `this agent is running (pid ${input.running.pid}, ${input.running.mode}) and holds its settings for its lifetime — the change applies after ${input.restartHint}`,\n ),\n )\n }\n for (const need of input.pending) {\n out.push(bullet(`${need.name} is not set — ${need.why}`))\n out.push(bullet(`fill it in with \\`config env <agent> ${need.name}\\``))\n }\n return out.join(\"\\n\")\n}\n\n/** Every setting with a real dotted path, in catalogue order. `config set`'s accepted list. */\nexport function settablePaths(): readonly string[] {\n return SETTINGS.filter((entry) => entry.via === undefined && !/[[<]/.test(entry.path)).map(\n (entry) => entry.path,\n )\n}\n\n/** An env variable this manifest depends on, and what actually happens without it. */\nexport interface EnvNeed {\n readonly name: string\n /** The real consequence, which differs per source and is not interchangeable. */\n readonly why: string\n}\n\n/**\n * The env variables a manifest depends on, each with the consequence of it being unset.\n *\n * One message for all of them was wrong, and a live run showed it: the API token variable reported as\n * \"read at boot — the agent will refuse to start until it is filled in\", printed for an agent with\n * `server.enabled: false` that starts perfectly well. Three sources, three different outcomes:\n *\n * - `model.<role>.apiKeyEnv` — a **load failure**. `validateApiKeyEnv` refuses the manifest outright.\n * - an enabled channel's `tokenEnv` — a **boot failure**, because the factory reads it inside\n * `Runtime.create`. A channel with `enabled: false` is never constructed, so it needs nothing.\n * - `server.tokenEnv` — **no failure at all**. The API serves unauthenticated and the banner says so,\n * which is worth telling somebody and is not the same sentence as \"will not start\".\n * - a provider's `apiKeyEnv` — that provider's tools do not work; the agent runs.\n *\n * A disabled block contributes nothing. Claiming a dependency that does not exist is worse than\n * claiming none, because it is the kind of warning that teaches people to ignore this line.\n */\nexport function envNeeds(document: unknown): readonly EnvNeed[] {\n if (typeof document !== \"object\" || document === null) return []\n const doc = document as Record<string, unknown>\n const needs: EnvNeed[] = []\n const add = (name: unknown, why: string) => {\n if (typeof name === \"string\" && name !== \"\") needs.push({ name, why })\n }\n\n const model = asRecord(doc.model)\n for (const role of [\"main\", \"selector\", \"compactor\"]) {\n const config = asRecord(model?.[role])\n add(config?.apiKeyEnv, \"the manifest will not load until it is set\")\n }\n\n if (Array.isArray(doc.channels)) {\n for (const entry of doc.channels) {\n const channel = asRecord(entry)\n if (channel === undefined || channel.enabled === false) continue\n add(\n channel.tokenEnv,\n `the ${String(channel.id ?? channel.type ?? \"channel\")} channel is read at boot, so the agent will not start until it is set`,\n )\n }\n }\n\n const server = asRecord(doc.server)\n if (server?.enabled === true) {\n add(\n server.tokenEnv,\n \"the HTTP API would accept unauthenticated requests. This does not stop the agent starting\",\n )\n }\n\n const providers = asRecord(asRecord(doc.tools)?.providers)\n for (const [id, config] of Object.entries(providers ?? {})) {\n add(asRecord(config)?.apiKeyEnv, `the ${id} provider's tools will not work until it is set`)\n }\n\n return needs\n}\n\nfunction asRecord(value: unknown): Record<string, unknown> | undefined {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined\n return value as Record<string, unknown>\n}\n\n/** Those of `needs` the environment does not supply. */\nexport function unmet(\n needs: readonly EnvNeed[],\n env: Readonly<Record<string, string | undefined>>,\n): readonly EnvNeed[] {\n return needs.filter((need) => env[need.name] === undefined || env[need.name] === \"\")\n}\n\n/**\n * The editor's rows for a manifest: every setting, one `allowFrom` per channel, and every secret.\n *\n * Here rather than in the component because it is the whole shape of the surface and it is pure — what\n * appears, in what order, under which heading — and because both hosts build it the same way.\n *\n * The two catalogue rows that are not dotted paths are *replaced* by their expansions rather than shown\n * beside them: `channels[].allowFrom` becomes one row per declared channel, and\n * `tools.providers.<id>.writeRoots` is left as a listing-only row, because writing it means naming a\n * provider and the editor has no way to ask which. A row nobody can act on would be the dead end this\n * surface exists to remove, so it is not offered at all — `config list` still shows it.\n */\nexport function editorRows(\n settings: readonly SettingValue[],\n input: {\n readonly channels: readonly {\n readonly id: string\n readonly type: string\n readonly allowFrom: readonly string[]\n }[]\n readonly secrets: readonly EnvNeed[]\n readonly present: (name: string) => boolean\n },\n): readonly EditorRow[] {\n const out: EditorRow[] = []\n\n // Collected by block, not emitted when the block *changes* — the same distinction `renderSettings`\n // records above, which this renderer had never been given. The two are not equivalent: the\n // person-only rows sit at the end of the catalogue, so `server.host` and `server.tokenEnv` were\n // already a second `server` section here, and inserting any row between `server.port` and them\n // made it visible. `schedules` was that row. Grouping keeps the render correct whatever order the\n // catalogue arrives in, which is the property worth having and the reason not to fix it by\n // reordering the table.\n const blocks = new Map<string, SettingValue[]>()\n for (const row of settings) {\n if (row.setting.via !== undefined || /[[<]/.test(row.setting.path)) continue\n const key = row.setting.path.split(\".\")[0] ?? row.setting.path\n blocks.set(key, [...(blocks.get(key) ?? []), row])\n }\n for (const [label, members] of blocks) {\n out.push({ kind: \"heading\", label })\n for (const row of members) {\n out.push({ kind: \"setting\", setting: row.setting, value: row.value })\n }\n }\n\n if (input.channels.length > 0) {\n out.push({ kind: \"heading\", label: \"who may reach it\" })\n for (const channel of input.channels) {\n out.push({\n kind: \"allow\",\n channelId: channel.id,\n channelType: channel.type,\n handles: channel.allowFrom,\n })\n }\n }\n\n if (input.secrets.length > 0) {\n out.push({ kind: \"heading\", label: \"secrets — written to the .env, never shown\" })\n for (const need of input.secrets) {\n out.push({\n kind: \"secret\",\n name: need.name,\n why: need.why,\n present: input.present(need.name),\n })\n }\n }\n\n return out\n}\n"
|
|
7
7
|
],
|
|
8
8
|
"mappings": ";sKAUA,uBAAS,gBC8BF,SAAS,EAAS,CAAC,EAAwB,CAC9C,GAAI,IAAU,QAAa,IAAU,KAAM,MAAO,YAClD,GAAI,OAAO,IAAU,SAAU,OAAO,IAAU,GAAK,KAAO,EAC5D,GAAI,OAAO,IAAU,WAAa,OAAO,IAAU,SAAU,OAAO,OAAO,CAAK,EAChF,OAAO,KAAK,UAAU,CAAK,EAI/B,SAAS,CAAK,CAAC,EAAsB,CACjC,OAAO,EAAK,MAAM,MAAM,EAAE,IAAM,EAU7B,SAAS,EAAc,CAAC,EAA+B,EAAsB,CAChF,IAAM,EAAgB,CAAC,GAAG,IAAQ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AAW,CAAO,GAAG,IACpE,CACA,IAAK,SACD,OAAO,GAAY,EAAc,EAAI,KAAM,CAAG,EAAE,KACpD,IAAK,UACD,MAAO",
|
|
9
|
-
"debugId": "
|
|
9
|
+
"debugId": "542D1771E8AEDAF264756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{D}from"./index-
|
|
2
|
+
import{D}from"./index-j20k6k0m.js";var u=" ",i=2;function d(t){let r=t.filter((n)=>n.value!=="");if(r.length===0)return"";let e=Math.max(...r.map((n)=>n.label.length));return r.map((n)=>{let o=`${u}${n.label.padEnd(e)}${" ".repeat(i)}${n.value}`;return n.note===void 0?o:`${o}${" ".repeat(i)}${n.note}`}).join(`
|
|
3
3
|
`)}function k(t,r=!1){return r?t:`
|
|
4
|
-
${t}`}function Q(t){return`${
|
|
4
|
+
${t}`}function Q(t){return`${u}${D.bullet}${t}`}function y(t,r=2){let e=" ".repeat(r);return t.split(`
|
|
5
5
|
`).map((n)=>n===""?n:`${e}${n}`).join(`
|
|
6
|
-
`)}function
|
|
7
|
-
export{
|
|
6
|
+
`)}function tA(t){if(!Number.isFinite(t)||t<0)return"unknown";if(t<1024)return`${Math.round(t)} B`;let r=["KB","MB","GB","TB"],e=t/1024,n=0;while(e>=1024&&n<r.length-1)e/=1024,n+=1;return`${e<10?e.toFixed(1):Math.round(e)} ${r[n]}`}function ln(t){if(!Number.isFinite(t)||t<0)return"unknown";let r=Math.floor(t/1000);if(r<60)return`${r}s`;let e=Math.floor(r/60);if(e<60)return`${e}m ${r%60}s`;let n=Math.floor(e/60);if(n<24)return`${n}h ${e%60}m`;return`${Math.floor(n/24)}d ${n%24}h`}function AA(t,r){if(r===""||!t.startsWith(r))return t;let e=t.slice(r.length);return e===""?"~":e.startsWith("/")?`~${e}`:t}var a=60000,s=24;function nA(t,r){let e=r-Date.parse(t);if(Number.isNaN(e))return t;let n=Math.floor(e/a);if(n<1)return"just now";if(n<60)return`${n}m ago`;let o=Math.floor(n/60);if(o<s)return`${o}h ago`;return`${Math.floor(o/s)}d ago`}
|
|
7
|
+
export{d,k,Q,y,tA,ln,AA,nA};
|
|
8
8
|
|
|
9
|
-
//# debugId=
|
|
10
|
-
//# sourceMappingURL=index-
|
|
9
|
+
//# debugId=73808B06875EC2C964756E2164756E21
|
|
10
|
+
//# sourceMappingURL=index-a6mtqkth.js.map
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"/**\n * The plain path's shared vocabulary — the half of the house style that never had one.\n *\n * `theme.ts` serves the Ink path. The plain path is most of the binary, and until this file every\n * command that printed a labelled block invented its own: eight hand-rolled `padEnd` widths across\n * seven files (9, 14, `FLAG_COLUMN`, `ENV_COLUMN`, `COMMAND_COLUMN`, and three computed maxima),\n * with `agents.ts` emitting tab-separated columns while everything beside it emitted padded ones.\n * `agents` and `validate` genuinely looked like output from two different products.\n *\n * So this is not a new style — it is the existing one, written down once. A new surface that wants\n * a labelled block, a status word or a byte count reaches here rather than adding a ninth variant.\n *\n * **Pure.** No `node:*`, no `process`, no colour decision. Every function is text in, text out, so\n * it belongs on the boundaries test's `PURE` list and every rendering rule is unit-testable without\n * capturing stdout. Colour is deliberately *not* applied here: the plain path is read as often from\n * a log file as from a terminal, and a module that emitted escape codes would have to know which,\n * which is `resolveMode`'s job and nowhere near a formatter's.\n */\n\nimport { GLYPH } from \"#lib/theme\"\n\n/** Where a labelled block starts, and the space between the widest label and its value. */\nconst INDENT = \" \"\nconst GAP = 2\n\nexport interface Row {\n readonly label: string\n readonly value: string\n /**\n * Trailing text, aligned past the value.\n *\n * Its own field rather than something the caller concatenates, because the interesting rows\n * are the ones carrying a fact *and* its consequence — \"2463 · launchd has restarted this\n * 2463 times\" — and a caller building that by hand loses the alignment on the next row.\n */\n readonly note?: string\n}\n\n/**\n * A labelled block: two-space indent, labels padded to the widest, values aligned.\n *\n * Rows with an empty value are dropped rather than printed blank. A field that does not apply is\n * not the same as a field that is empty, and printing `logs` with nothing after it invites the\n * reader to wonder which one they are looking at.\n */\nexport function keyValue(rows: readonly Row[]): string {\n const shown = rows.filter((row) => row.value !== \"\")\n if (shown.length === 0) return \"\"\n const width = Math.max(...shown.map((row) => row.label.length))\n return shown\n .map((row) => {\n const head = `${INDENT}${row.label.padEnd(width)}${\" \".repeat(GAP)}${row.value}`\n return row.note === undefined ? head : `${head}${\" \".repeat(GAP)}${row.note}`\n })\n .join(\"\\n\")\n}\n\n/** A heading with its own blank line above, unless it opens the output. */\nexport function section(title: string, first = false): string {\n return first ? title : `\\n${title}`\n}\n\nexport function bullet(text: string): string {\n return `${INDENT}${GLYPH.bullet}${text}`\n}\n\n/** Indent a block that was rendered elsewhere — a log tail, a nested report. */\nexport function indent(text: string, depth = 2): string {\n const pad = \" \".repeat(depth)\n return text\n .split(\"\\n\")\n .map((line) => (line === \"\" ? line : `${pad}${line}`))\n .join(\"\\n\")\n}\n\n/**\n * Bytes as a person reads them.\n *\n * Binary units, and the decimal place only below 10 in each unit — `1.2 MB` is worth a digit,\n * `847 MB` is not, and the extra precision only makes a size harder to compare at a glance.\n */\nexport function bytes(count: number): string {\n if (!Number.isFinite(count) || count < 0) return \"unknown\"\n if (count < 1024) return `${Math.round(count)} B`\n const units = [\"KB\", \"MB\", \"GB\", \"TB\"]\n let value = count / 1024\n let unit = 0\n while (value >= 1024 && unit < units.length - 1) {\n value /= 1024\n unit += 1\n }\n return `${value < 10 ? value.toFixed(1) : Math.round(value)} ${units[unit]}`\n}\n\n/**\n * A span, in the largest two units that carry information.\n *\n * \"3h 12m\" rather than \"3.2 hours\" or \"11520 seconds\": an uptime is read to answer \"since roughly\n * when\", and two units is where that question stops getting better answers.\n */\nexport function duration(ms: number): string {\n if (!Number.isFinite(ms) || ms < 0) return \"unknown\"\n const seconds = Math.floor(ms / 1000)\n if (seconds < 60) return `${seconds}s`\n const minutes = Math.floor(seconds / 60)\n if (minutes < 60) return `${minutes}m ${seconds % 60}s`\n const hours = Math.floor(minutes / 60)\n if (hours < 24) return `${hours}h ${minutes % 60}m`\n return `${Math.floor(hours / 24)}d ${hours % 24}h`\n}\n\n/**\n * `~/…` for a path under home, so a block of paths stays readable at a glance.\n *\n * Takes `home` rather than reading it, because this module is pure — and because the daemon's\n * output has to be able to render a path under a *different* home than the current process's when\n * it is describing a service definition it did not write.\n */\nexport function tildify(path: string, home: string): string {\n if (home === \"\" || !path.startsWith(home)) return path\n const rest = path.slice(home.length)\n return rest === \"\" ? \"~\" : rest.startsWith(\"/\") ? `~${rest}` : path\n}\n\nconst MINUTE_MS = 60_000\nconst HOURS_PER_DAY = 24\n\n/**\n * How long ago, in the shortest honest form.\n *\n * `now` is a parameter rather than a `Date.now()` call, which is what lets this live in a pure module and\n * be shared. It was previously private to `sessions.ts` and read the clock itself, so the session picker\n * would have had to reimplement it — and two renderings of \"how old is this conversation\" that disagree\n * is the drift this module exists to end.\n *\n * An unparseable timestamp is returned as itself. A store row with a bad date is a real thing to see, and\n * \"NaNm ago\" says nothing about it.\n */\nexport function ago(iso: string, now: number): string {\n const ms = now - Date.parse(iso)\n if (Number.isNaN(ms)) return iso\n const mins = Math.floor(ms / MINUTE_MS)\n if (mins < 1) return \"just now\"\n if (mins < 60) return `${mins}m ago`\n const hours = Math.floor(mins / 60)\n if (hours < HOURS_PER_DAY) return `${hours}h ago`\n return `${Math.floor(hours / HOURS_PER_DAY)}d ago`\n}\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";mCAsBA,IAAM,EAAS,KACT,EAAM,EAsBL,SAAS,CAAQ,CAAC,EAA8B,CACnD,IAAM,EAAQ,EAAK,OAAO,CAAC,IAAQ,EAAI,QAAU,EAAE,EACnD,GAAI,EAAM,SAAW,EAAG,MAAO,GAC/B,IAAM,EAAQ,KAAK,IAAI,GAAG,EAAM,IAAI,CAAC,IAAQ,EAAI,MAAM,MAAM,CAAC,EAC9D,OAAO,EACF,IAAI,CAAC,IAAQ,CACV,IAAM,EAAO,GA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,EAAQ,GAAI,MAAO,GAAG,MAAU,EAAU,MAC9C,MAAO,GAAG,KAAK,MAAM,EAAQ,EAAE,MAAM,EAAQ,MAU1C,SAAS,EAAO,CAAC,EAAc,EAAsB,CACxD,GAAI,IAAS,IAAM,CAAC,EAAK,WAAW,CAAI,EAAG,OAAO,EAClD,IAAM,EAAO,EAAK,MAAM,EAAK,MAAM,EACnC,OAAO,IAAS,GAAK,IAAM,EAAK,WAAW,GAAG,EAAI,IAAI,IAAS,EAGnE,IAAM,EAAY,MACZ,EAAgB,GAaf,SAAS,EAAG,CAAC,EAAa,EAAqB,CAClD,IAAM,EAAK,EAAM,KAAK,MAAM,CAAG,EAC/B,GAAI,OAAO,MAAM,CAAE,EAAG,OAAO,EAC7B,IAAM,EAAO,KAAK,MAAM,EAAK,CAAS,EACtC,GAAI,EAAO,EAAG,MAAO,WACrB,GAAI,EAAO,GAAI,MAAO,GAAG,SACzB,IAAM,EAAQ,KAAK,MAAM,EAAO,EAAE,EAClC,GAAI,EAAQ,EAAe,MAAO,GAAG,SACrC,MAAO,GAAG,KAAK,MAAM,EAAQ,CAAa",
|
|
8
|
-
"debugId": "
|
|
8
|
+
"debugId": "73808B06875EC2C964756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
3
|
-
export{
|
|
2
|
+
import{Tt,yo,hn,_}from"./index-26ejkp8q.js";import{existsSync as b,readFileSync as E}from"node:fs";import{dirname as l,join as o,resolve as u}from"node:path";function Gt(n){let e=o(l(n),".env"),r={};if(b(e))try{r=Tt(E(e,"utf8"))}catch{}return yo(r,_([n]))}function An(n,e){let r=n[e];return r!==void 0&&r!==""}function f(n,e,r={}){let i=l(n),t=u(r.cwd??process.cwd()),d=r.readDir??hn,v=r.env??process.env,g=_([n],r),m=d(i),p=d(t),a=g[e];if(a!==void 0&&a!==""){let y=u(i)===t,c=p[e];if(!y&&c!==void 0&&v[e]===c)return{kind:"ambiguous",path:o(t,".env")};return{kind:"export"}}let s=m[e];if(s!==void 0&&s!=="")return{kind:"agent",path:o(i,".env")};return{kind:"unset"}}function ji(n){switch(n.kind){case"export":return"from the environment, not a .env file";case"ambiguous":return"from the environment or ./.env — indistinguishable";case"agent":return;case"unset":return"not set"}}function Ji(n){let e=[],r=h(n.rawModelId);if(r!==void 0)e.push({field:"model.main.id",variable:r,origin:f(n.manifestPath,r,n.options??{})});if(n.apiKeyEnv!==void 0)e.push({field:"model.main.apiKeyEnv",variable:n.apiKeyEnv,origin:f(n.manifestPath,n.apiKeyEnv,n.options??{})});return e}function h(n){if(n===void 0)return;return/^\$\{([A-Za-z_][A-Za-z0-9_]*)\}$/.exec(n.trim())?.[1]}
|
|
3
|
+
export{Gt,An,ji,Ji};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
6
|
-
//# sourceMappingURL=index-
|
|
5
|
+
//# debugId=915042F99A6BC0D564756E2164756E21
|
|
6
|
+
//# sourceMappingURL=index-ac2wzspd.js.map
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"/**\n * Whether a variable an agent depends on is actually set, from that agent's point of view.\n *\n * `ambientEnv` is **not** this. It layers the *cwd*'s `.env` against an agent's — demoting a colliding\n * variable so a project checkout cannot silently change which model a sandbox agent runs on — and it\n * returns `process.env` unchanged whenever nothing is in tension. It never *adds* the agent's own file.\n *\n * The agent's `.env` is merged by `loadManifest`, through core's `layeredEnv`, and that is the answer a\n * question about this agent needs. Reading `process.env` alone reported a variable as unset while the\n * file beside the manifest plainly had it — the same class of mistake `serve` made once, reporting\n * \"unauthenticated\" for a token sitting next to the manifest. It showed up here as an editor row that\n * still read `(not set)` immediately after somebody set it, which is the \"did that work?\" failure this\n * whole surface exists to remove.\n *\n * Precedence is core's, unchanged: the real environment wins, because an operator's export has to beat\n * a file for a container to be able to configure the agent it runs.\n */\n\nimport { existsSync, readFileSync } from \"node:fs\"\nimport { dirname, join, resolve } from \"node:path\"\nimport { type EnvSource, layeredEnv, parseDotEnv } from \"@dispach/core\"\nimport { type AmbientOptions, ambientEnv, readDotEnv } from \"#lib/ambient\"\n\n/** The environment this agent will actually see: its own `.env` under the ambient one. */\nexport function agentEnv(manifestPath: string): EnvSource {\n const path = join(dirname(manifestPath), \".env\")\n let beside: Record<string, string> = {}\n if (existsSync(path)) {\n try {\n beside = parseDotEnv(readFileSync(path, \"utf8\"))\n } catch {\n // An unreadable `.env` is reported by the loader, in the words the loader uses. Here it\n // simply means nothing is known to be set, which is the safe reading for a \"is it set?\"\n // question — claiming a variable is present when the file cannot be read would be worse.\n }\n }\n return layeredEnv(beside, ambientEnv([manifestPath]))\n}\n\n/** Whether `name` has a non-empty value. Empty counts as unset: it fails a load exactly as absent does. */\nexport function isSet(env: EnvSource, name: string): boolean {\n const value = env[name]\n return value !== undefined && value !== \"\"\n}\n\n/**\n * Where a value came from, which is a different question from whether it is set.\n *\n * Three layers can supply one variable and the winner is not obvious from any of them:\n *\n * 1. the real environment — an operator's export, or a container's `environment:` block\n * 2. the `.env` beside the agent's manifest\n * 3. a `.env` in the directory the command was run from, demoted beneath (2) by `ambientEnv`\n *\n * Every one of those is correct on its own, and the composition is unreadable. It produced a real\n * confusion in a container: `docker compose` passes `MODEL_ID` and friends as process environment,\n * so an agent scaffolded inside that container silently ran on the *mounted*\n * agent's model, and the `0600` `.env` that `init` had just written was ignored for exactly those\n * keys — with nothing anywhere saying so.\n *\n * The precedence is not the bug and is not changed here. What was missing is a sentence, and the\n * recorded lesson from the last time this surfaced is that *a warning explained the surprise and\n * did not remove it* — so this reports rather than intervenes.\n */\nexport type EnvOrigin =\n /** The real environment won: an export, or a container's own configuration. */\n | { readonly kind: \"export\" }\n /** The `.env` beside the manifest won. */\n | { readonly kind: \"agent\"; readonly path: string }\n /**\n * Either an export or the cwd's `.env`, and **they cannot be told apart**.\n *\n * Bun auto-loads a `.env` from the current directory into `process.env` before any of this code\n * runs, so once the two agree on a string there is no evidence left distinguishing them. Said\n * rather than guessed: naming one would be a coin toss printed as a fact.\n */\n | { readonly kind: \"ambiguous\"; readonly path: string }\n | { readonly kind: \"unset\" }\n\n/**\n * Which layer supplies `name` for this agent.\n *\n * Mirrors `ambientEnv`'s precedence by *calling* it rather than by restating it — the demotion rule\n * is subtle (a cwd variable is demoted only when the agent's own file also sets it *and* the values\n * match), and a second implementation of that would drift on the first edit.\n */\nexport function sourceOf(\n manifestPath: string,\n name: string,\n options: AmbientOptions = {},\n): EnvOrigin {\n const agentDir = dirname(manifestPath)\n const cwd = resolve(options.cwd ?? process.cwd())\n const read = options.readDir ?? readDotEnv\n const raw = options.env ?? process.env\n\n const ambient = ambientEnv([manifestPath], options)\n const beside = read(agentDir)\n const inCwd = read(cwd)\n\n const fromAmbient = ambient[name]\n if (fromAmbient !== undefined && fromAmbient !== \"\") {\n // The cwd file is only a candidate when it is a *different* directory from the agent's: when\n // they are the same directory, that file **is** the agent's own and `ambientEnv` says so.\n const sameDir = resolve(agentDir) === cwd\n const cwdValue = inCwd[name]\n if (!sameDir && cwdValue !== undefined && raw[name] === cwdValue) {\n return { kind: \"ambiguous\", path: join(cwd, \".env\") }\n }\n return { kind: \"export\" }\n }\n\n const fromFile = beside[name]\n if (fromFile !== undefined && fromFile !== \"\") {\n return { kind: \"agent\", path: join(agentDir, \".env\") }\n }\n\n return { kind: \"unset\" }\n}\n\n/**\n * The phrase for a status line — short, because it rides after a value somebody is already reading.\n *\n * Returns `undefined` for the ordinary case, which is the whole point: a line that always carries a\n * provenance note is a line nobody reads it on. The agent's own `.env` winning is what an author\n * expects, so only the surprising sources say anything.\n */\nexport function describeOrigin(origin: EnvOrigin): string | undefined {\n switch (origin.kind) {\n case \"export\":\n return \"from the environment, not a .env file\"\n case \"ambiguous\":\n return \"from the environment or ./.env — indistinguishable\"\n case \"agent\":\n return undefined\n case \"unset\":\n return \"not set\"\n }\n}\n\n/** One env-backed field, the variable behind it, and where the value came from. */\nexport interface Provenance {\n readonly field: string\n readonly variable: string\n readonly origin: EnvOrigin\n}\n\n/**\n * The env-backed fields worth saying something about, and only when there is something to say.\n *\n * Two fields, chosen because they are the two that produced a real confusion in a container:\n * `docker compose` passes `MODEL_ID` and `MODEL_API_KEY` as process environment, and the ambient\n * environment deliberately beats the agent's own file so an operator can configure the agent their\n * container runs. So an agent scaffolded in that container ran on the *mounted*\n * agent's model and ignored the `0600` `.env` init had just written.\n *\n * The model id is included **only when the manifest writes it as a variable**. A generated manifest\n * carries it literally (which is why `readManifestHeader` can list agents without credentials), and\n * a literal has no provenance to report — printing \"from the environment\" about a value nothing read\n * from the environment would be worse than silence. `apiKeyEnv` is always a variable name by hard\n * rule 10, so it is always askable.\n */\nexport function envProvenance(input: {\n readonly manifestPath: string\n /** The raw, unexpanded `model.main.id` — `readManifestHeader().modelId`. */\n readonly rawModelId: string | undefined\n readonly apiKeyEnv: string | undefined\n readonly options?: AmbientOptions\n}): readonly Provenance[] {\n const rows: Provenance[] = []\n const variable = soleVariable(input.rawModelId)\n if (variable !== undefined) {\n rows.push({\n field: \"model.main.id\",\n variable,\n origin: sourceOf(input.manifestPath, variable, input.options ?? {}),\n })\n }\n if (input.apiKeyEnv !== undefined) {\n rows.push({\n field: \"model.main.apiKeyEnv\",\n variable: input.apiKeyEnv,\n origin: sourceOf(input.manifestPath, input.apiKeyEnv, input.options ?? {}),\n })\n }\n return rows\n}\n\n/**\n * The variable name when a value is exactly one `${VAR}` reference, and nothing otherwise.\n *\n * Deliberately narrow. `prefix-${VAR}` expands from the environment too, but its provenance is a\n * sentence about part of a string, and a half-true note on a compound value is the kind of detail\n * that gets believed whole.\n */\nfunction soleVariable(raw: string | undefined): string | undefined {\n if (raw === undefined) return undefined\n const match = /^\\$\\{([A-Za-z_][A-Za-z0-9_]*)\\}$/.exec(raw.trim())\n return match?.[1]\n}\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";4CAkBA,qBAAS,kBAAY,gBACrB,kBAAS,UAAS,aAAM,kBAKjB,SAAS,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AW,EAAa,EAAM,UAAU,EAC9C,GAAI,IAAa,OACb,EAAK,KAAK,CACN,MAAO,gBACP,WACA,OAAQ,EAAS,EAAM,aAAc,EAAU,EAAM,SAAW,CAAC,CAAC,CACtE,CAAC,EAEL,GAAI,EAAM,YAAc,OACpB,EAAK,KAAK,CACN,MAAO,uBACP,SAAU,EAAM,UAChB,OAAQ,EAAS,EAAM,aAAc,EAAM,UAAW,EAAM,SAAW,CAAC,CAAC,CAC7E,CAAC,EAEL,OAAO,EAUX,SAAS,CAAY,CAAC,EAA6C,CAC/D,GAAI,IAAQ,OAAW,OAEvB,MADc,mCAAmC,KAAK,EAAI,KAAK,CAAC,IACjD",
|
|
8
|
-
"debugId": "
|
|
8
|
+
"debugId": "915042F99A6BC0D564756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{cs}from"./index-
|
|
3
|
-
export{Pe,
|
|
2
|
+
import{cs}from"./index-akv6e7ge.js";import{Wt}from"./index-0mz7wpbw.js";function Pe(e){if(e??Wt().noEnhancedKeys)return{};return cs(),{kittyKeyboard:{mode:"enabled",flags:["disambiguateEscapeCodes","reportEventTypes"]}}}function o(e){if(e.json)return{mode:"json",because:"--json was passed"};if(e.plain)return{mode:"plain",because:"--plain was passed"};if(e.oneShot)return{mode:"plain",because:"--input is always plain"};if(!e.stdoutIsTTY)return{mode:"plain",because:"stdout is not a terminal"};if(!e.stdinIsTTY)return{mode:"plain",because:"stdin is not a terminal"};if(e.env.noColor)return{mode:"plain",because:"NO_COLOR is set"};if(e.env.dumbTerminal)return{mode:"plain",because:"TERM is dumb"};if(e.env.ci)return{mode:"plain",because:"CI is set"};return{mode:"rich",because:"stdout and stdin are both terminals"}}function ot(e){return o({...e,stdinIsTTY:process.stdin.isTTY===!0,stdoutIsTTY:process.stdout.isTTY===!0,env:Wt()})}
|
|
3
|
+
export{Pe,ot};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
6
|
-
//# sourceMappingURL=index-
|
|
5
|
+
//# debugId=E385DC912775A7B464756E2164756E21
|
|
6
|
+
//# sourceMappingURL=index-ad5c9t83.js.map
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
"/**\n * How output is rendered, resolved once per process.\n *\n * This mirrors the reasoning behind decision 3.5, which forbids the tool dialect from changing with\n * the model: behaviour that shifts silently with the environment cannot be reasoned about. So the\n * resolution is total and ordered, and it returns *why* it chose — the reason is printable, which is\n * what turns \"it wasn't interactive and I don't know why\" into a question with an answer.\n *\n * Measured, not assumed: importing Ink and React costs ~65 ms under Bun and ~170-210 ms under Node,\n * against a ~70 ms total runtime for `validate --json`. Nothing on a non-rich path may import them,\n * which is why this returns a mode rather than a renderer.\n */\n\nimport { readEnv } from \"#lib/env\"\nimport type { ModeDecision, ModeInputs } from \"#lib/schema\"\n\n/**\n * Total and ordered. Every branch is reachable and every input is consulted, so no combination of\n * flags and environment lands somewhere undocumented.\n */\nexport function resolveMode(inputs: ModeInputs): ModeDecision {\n if (inputs.json) return { mode: \"json\", because: \"--json was passed\" }\n if (inputs.plain) return { mode: \"plain\", because: \"--plain was passed\" }\n\n // A one-shot is a scripting affordance. Its output must not depend on whether a human happened\n // to be at a terminal, or `--input` would mean two different things in a shell script and in a\n // shell.\n if (inputs.oneShot) return { mode: \"plain\", because: \"--input is always plain\" }\n\n if (!inputs.stdoutIsTTY) return { mode: \"plain\", because: \"stdout is not a terminal\" }\n // A live transcript with no way to type into it is a worse plain renderer, not a better one.\n if (!inputs.stdinIsTTY) return { mode: \"plain\", because: \"stdin is not a terminal\" }\n\n if (inputs.env.noColor) return { mode: \"plain\", because: \"NO_COLOR is set\" }\n if (inputs.env.dumbTerminal) return { mode: \"plain\", because: \"TERM is dumb\" }\n // CI logs are files that happen to scroll. Cursor movement in one is noise forever.\n if (inputs.env.ci) return { mode: \"plain\", because: \"CI is set\" }\n\n return { mode: \"rich\", because: \"stdout and stdin are both terminals\" }\n}\n\n/**\n * Deliberately not consulted: `FORCE_COLOR`. It says how much colour a stream can carry, not\n * whether a human is watching, and honouring it here would turn a CI job that wanted coloured logs\n * into one driving a cursor around a file. Ink's own colour depth still respects it.\n */\nexport function resolveModeFromProcess(flags: {\n readonly json: boolean\n readonly plain: boolean\n readonly oneShot: boolean\n}): ModeDecision {\n return resolveMode({\n ...flags,\n stdinIsTTY: process.stdin.isTTY === true,\n stdoutIsTTY: process.stdout.isTTY === true,\n env: readEnv(),\n })\n}\n"
|
|
7
7
|
],
|
|
8
8
|
"mappings": ";wEAuFO,SAAS,EAAiB,CAAC,EAAqC,CAInE,GAAI,GAAY,GAAQ,EAAE,eAAgB,MAAO,CAAC,EAElD,OADA,GAAiB,EACV,CACH,cAAe,CAEX,KAAM,UACN,MAAO,CAAC,0BAA2B,kBAAkB,CACzD,CACJ,EC/EG,SAAS,CAAW,CAAC,EAAkC,CAC1D,GAAI,EAAO,KAAM,MAAO,CAAE,KAAM,OAAQ,QAAS,mBAAoB,EACrE,GAAI,EAAO,MAAO,MAAO,CAAE,KAAM,QAAS,QAAS,oBAAqB,EAKxE,GAAI,EAAO,QAAS,MAAO,CAAE,KAAM,QAAS,QAAS,yBAA0B,EAE/E,GAAI,CAAC,EAAO,YAAa,MAAO,CAAE,KAAM,QAAS,QAAS,0BAA2B,EAErF,GAAI,CAAC,EAAO,WAAY,MAAO,CAAE,KAAM,QAAS,QAAS,yBAA0B,EAEnF,GAAI,EAAO,IAAI,QAAS,MAAO,CAAE,KAAM,QAAS,QAAS,iBAAkB,EAC3E,GAAI,EAAO,IAAI,aAAc,MAAO,CAAE,KAAM,QAAS,QAAS,cAAe,EAE7E,GAAI,EAAO,IAAI,GAAI,MAAO,CAAE,KAAM,QAAS,QAAS,WAAY,EAEhE,MAAO,CAAE,KAAM,OAAQ,QAAS,qCAAsC,EAQnE,SAAS,EAAsB,CAAC,EAItB,CACb,OAAO,EAAY,IACZ,EACH,WAAY,QAAQ,MAAM,QAAU,GACpC,YAAa,QAAQ,OAAO,QAAU,GACtC,IAAK,GAAQ,CACjB,CAAC",
|
|
9
|
-
"debugId": "
|
|
9
|
+
"debugId": "E385DC912775A7B464756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{Xs}from"./index-
|
|
3
|
-
`)}n.length=0}async function m(e){await E(),qe(),process.exitCode=e,await
|
|
2
|
+
import{Xs}from"./index-j20k6k0m.js";import{oa,Ro,ia,sa,u,ua}from"./index-vw2hf4d8.js";function p(){return{out:process.stdout,in:process.stdin}}var n=[],i=!1,s=!1,o=!1,a=!1,c=!1,d=!1,l=!1;function Ao(){o=!0}function St(){o=!0,a=!0}function gs(){o=!0,c=!0}function cs(){o=!0,d=!0}function U(e){n.push(e)}function ls(){l=!0}function qe(e=p()){if(s||!o)return;if(s=!0,e.in.isTTY===!0&&e.in.setRawMode!==void 0)e.in.setRawMode(!1);if(e.out.isTTY!==!0)return;if(e.out.write(`${Ro}${oa}`),c)e.out.write(Xs);if(d)e.out.write(sa);if(a)e.out.write(ia)}async function Et(e=process.stdout){if(e.writableEnded===!0||e.destroyed===!0)return;await new Promise((r)=>{e.write("",()=>r())})}async function E(){for(let e of[...n].reverse())try{await e()}catch(r){process.stderr.write(`warning: cleanup failed: ${r instanceof Error?r.message:String(r)}
|
|
3
|
+
`)}n.length=0}async function m(e){await E(),qe(),process.exitCode=e,await Et()}async function gr(e){await m(e),process.exit(e)}function Is(){if(i)return;i=!0,process.on("exit",()=>qe()),process.on("SIGTERM",()=>{if(l)return;gr(ua)});let e=(r)=>(t)=>{qe();let f=t instanceof Error?t.stack??t.message:String(t);process.stderr.write(`
|
|
4
4
|
${r}: ${f}
|
|
5
|
-
`),gr(
|
|
6
|
-
export{
|
|
5
|
+
`),gr(u)};process.on("uncaughtException",e("uncaught exception")),process.on("unhandledRejection",e("unhandled rejection"));for(let r of[process.stdout,process.stderr])r.on("error",(t)=>{if(t.code==="EPIPE"||t.code==="ERR_STREAM_DESTROYED")return;e("output error")(t)})}
|
|
6
|
+
export{Ao,St,gs,cs,U,ls,qe,Et,gr,Is};
|
|
7
7
|
|
|
8
|
-
//# debugId=
|
|
9
|
-
//# sourceMappingURL=index-
|
|
8
|
+
//# debugId=275EFC2B5DA05FE164756E2164756E21
|
|
9
|
+
//# sourceMappingURL=index-akv6e7ge.js.map
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"/**\n * One way out of the process.\n *\n * Two failure modes this exists to prevent, both of which the previous CLI had:\n *\n * **A hidden cursor and a terminal left in raw mode.** Ink hides the cursor and puts stdin in raw\n * mode. `process.exit()` from anywhere else — an error path, a signal, an uncaught rejection —\n * skips React's cleanup, and the shell you get back does not echo what you type. Recovering needs\n * `stty sane`, and nothing tells you that. So the restore is registered on `process.on(\"exit\")`\n * as well as run explicitly: whatever route the process takes out, the terminal is handed back.\n *\n * **Truncated output.** `process.stdout.write` to a *pipe* is asynchronous, and `process.exit()`\n * discards whatever has not flushed — so a `sessions … | head` invocation could lose its last lines,\n * intermittently and only when piped. Measured: 10 MB written and then exited immediately arrives as\n * **65,536 bytes**, one pipe buffer.\n *\n * The rule used to be \"set `process.exitCode` and let the event loop drain\", and that rule assumed the\n * loop *can* drain. It cannot. A command that boots a runtime leaves a keep-alive TLS socket to the\n * tool provider in Node's global `fetch` pool — `backend.composio.dev:443`, opened by the\n * post-readiness refresh — and that socket is ref'd, with no public API to close it. Measured: the\n * process was still alive **180 seconds** after `/exit`, and the `tools` command had to be killed at 30 s.\n * `^C` appeared to work only because SIGINT is deliberately unhandled here, so the default action kills\n * the process. a `tools --json | jq` invocation would have waited forever.\n *\n * So the rule is now: run the teardowns, drain the output *properly*, then leave. Both halves are\n * load-bearing — draining without leaving is the hang above, and leaving without draining is the\n * truncation above.\n */\n\nimport {\n DISABLE_ENHANCED_KEYS,\n EXIT_FAILURE,\n EXIT_SIGTERM,\n LEAVE_ALT_SCREEN,\n RESET_STYLE,\n SHOW_CURSOR,\n} from \"#lib/const\"\nimport { DISABLE_MOUSE } from \"#lib/mouse\"\nimport type { TerminalHandles } from \"#lib/schema\"\n\n/**\n * The real streams. Spelled out rather than passing `process` itself, which has no `in`/`out` —\n * that mistake typechecked against the structural type and threw only at runtime, inside the one\n * function whose entire job is to run when things have already gone wrong.\n */\nfunction processHandles(): TerminalHandles {\n return { out: process.stdout, in: process.stdin }\n}\n\ntype Teardown = () => void | Promise<void>\n\nconst teardowns: Teardown[] = []\nlet guardsInstalled = false\nlet restored = false\nlet dirty = false\nlet altScreen = false\nlet mouse = false\nlet enhancedKeys = false\nlet signalsClaimed = false\n\n/**\n * Declare that the terminal has been put into a state that needs undoing — raw mode, a hidden\n * cursor, alternate styling. Only the rich path does this.\n *\n * Without the flag, the restore would fire on *every* exit, including the plain path, which puts a\n * cursor-and-style reset at the end of output that is otherwise pure text. That breaks the property\n * plain mode exists for: `--plain` at a terminal has to produce exactly what a pipe produces.\n */\nexport function markTerminalDirty(): void {\n dirty = true\n}\n\n/**\n * Declare that the alternate screen buffer has been entered, so the restore swaps back out of it.\n *\n * Separate from `markTerminalDirty` rather than folded into it, because the two are not the same\n * claim: every rich surface dirties the terminal, and only the ones that *take* it need swapping\n * back. Folding them together would write the leave sequence after every wizard and every chat\n * session, and a `1049l` sent to a terminal that never entered the buffer clears the screen the\n * output was just written to — the plain path's parity rule, broken in the least debuggable way.\n *\n * Setting this and never entering is therefore worse than the reverse. The host that writes\n * `ENTER_ALT_SCREEN` calls this in the same statement.\n */\nexport function markAltScreen(): void {\n dirty = true\n altScreen = true\n}\n\n/**\n * The session asked the terminal to report the mouse, so the terminal has to be told to stop.\n *\n * Separate from `markAltScreen` because only the chat reads mouse reports. A surface that enabled\n * tracking without claiming every report would have them typed into it as text, which is what Ink does\n * with one — so the flag follows whoever handles them rather than whoever took the screen.\n *\n * Left on, the shell that gets the terminal back emits a report on every click and scroll, into a prompt\n * that has no idea what they are. That is the failure worth being loud about: it outlives the process.\n */\nexport function markMouse(): void {\n dirty = true\n mouse = true\n}\n\n/**\n * Ink negotiated the kitty keyboard protocol, so the terminal has to be told to stop reporting that way.\n *\n * Ink pops it itself on unmount and around a suspend — this exists for the path it cannot cover, which is\n * the same one `markMouse` exists for: a signal. `SIGTERM` is the only route a service manager uses, and\n * a terminal left in the protocol hands the next shell `CSI u` for every Ctrl chord, which reads as a\n * broken keyboard and outlives the process.\n *\n * Set by the render sites rather than derived, because whether the protocol was actually *pushed* depends\n * on the terminal answering a query 200 ms after mount — so the honest flag is \"we asked\", and popping a\n * protocol that was never pushed is a no-op on every terminal.\n */\nexport function markEnhancedKeys(): void {\n dirty = true\n enhancedKeys = true\n}\n\n/**\n * Run before the process ends. Registration order is preserved and reversed on the way out, so a\n * later-registered resource is released before the thing it depends on.\n */\nexport function onExit(teardown: Teardown): void {\n teardowns.push(teardown)\n}\n\n/**\n * Take ownership of SIGTERM, for a command whose shutdown *is* the point.\n *\n * The default guard answers SIGTERM with `finishNow(EXIT_SIGTERM)`, which is right for a command\n * that was interrupted: 143 is the shell convention and the work was not finished. It is wrong for\n * `serve`, where a signal is the ordinary and expected way to stop — the work was to stay up, and\n * being asked to stop is the successful end of it, not a failure.\n *\n * That distinction is not cosmetic once a service manager is involved. The generated service\n * definition restarts only on a crash, precisely so a misconfiguration stops once instead of\n * looping forever; a graceful stop reported as 143 is indistinguishable from that misconfiguration,\n * so the supervisor would refuse to bring the agent back.\n *\n * The caller must resolve its own wait on the signal and return an exit code normally. Everything\n * registered with `onExit` still runs, because `finish` awaits the teardowns either way.\n */\nexport function claimSignals(): void {\n signalsClaimed = true\n}\n\n/**\n * Synchronous by necessity — `process.on(\"exit\")` cannot await. Idempotent, because it runs both\n * explicitly and from the exit hook.\n */\nexport function restoreTerminal(handles: TerminalHandles = processHandles()): void {\n if (restored || !dirty) return\n restored = true\n if (handles.in.isTTY === true && handles.in.setRawMode !== undefined) {\n handles.in.setRawMode(false)\n }\n if (handles.out.isTTY !== true) return\n // Style and cursor first, buffer swap second. A reset applies to the buffer that is current when\n // it arrives, so resetting after the swap leaves the app's last colour on the shell's screen and\n // dutifully resets the one being thrown away.\n handles.out.write(`${RESET_STYLE}${SHOW_CURSOR}`)\n // Before the buffer swap, for the same reason the style reset is: the request was made against this\n // buffer and the shell must not be left with a terminal that reports clicks at it.\n if (mouse) handles.out.write(DISABLE_MOUSE)\n // Before the buffer swap for the same reason, and after the mouse for no reason but stable ordering\n // — a test asserts the sequence, and an order nothing pins is an order that drifts.\n //\n // This is usually the *second* pop: Ink pops on unmount, and on both the normal and the signal path\n // the unmount teardown has already run by the time this fires. Kept anyway, because the path it exists\n // for is the one where teardowns do not run at all — a hard crash — and a terminal left reporting\n // `CSI u` for every Ctrl chord outlives the process. Seen in a capture as `[<u[<u`.\n //\n // The cost is stated rather than hidden. A pop on an empty stack is ignored, so standalone this is\n // harmless; nested inside *another* application that pushed its own flags, the extra pop takes that\n // application's entry instead. That trade is accepted for a top-level CLI and would be the wrong one\n // for a library.\n if (enhancedKeys) handles.out.write(DISABLE_ENHANCED_KEYS)\n if (altScreen) handles.out.write(LEAVE_ALT_SCREEN)\n}\n\n/** Test seam. Nothing in `src/` outside this module calls it. */\nexport function resetForTests(\n options: {\n readonly dirty?: boolean\n readonly altScreen?: boolean\n readonly mouse?: boolean\n readonly enhancedKeys?: boolean\n } = {},\n): void {\n teardowns.length = 0\n restored = false\n dirty = options.dirty ?? true\n altScreen = options.altScreen ?? false\n mouse = options.mouse ?? false\n enhancedKeys = options.enhancedKeys ?? false\n signalsClaimed = false\n}\n\n/** Enough of a stream to wait on. Spelled out so a test can supply one without a pipe. */\ninterface Drainable {\n write(chunk: string, callback: () => void): unknown\n readonly writableEnded?: boolean\n readonly destroyed?: boolean\n}\n\n/**\n * Wait until everything written to stdout has actually reached the operating system.\n *\n * This used to test `writableNeedDrain` and await a `drain` event, which is a weaker claim than it\n * reads as: the flag is only true once the buffer is *over* the high-water mark, so a modest pending\n * write to a pipe reported nothing to wait for and the function named \"flush\" returned immediately.\n * That was survivable while the process went on to idle until the loop emptied, and is not survivable\n * now that it exits on purpose.\n *\n * A zero-length write is the receipt. `Writable` invokes callbacks in write order once the underlying\n * write completes, so a chunk queued behind everything else calls back only after everything else has\n * gone out. Measured against a pipe with a sleeping reader: 10 MB exits complete, where an immediate\n * `process.exit` delivered 65,536 bytes.\n *\n * **The wait is deliberately unbounded.** A timeout would trade a silent truncation for a bounded exit,\n * and with a slow reader — `| less`, a terminal being scrolled — truncation is the worse of the two. A\n * closed reader is not the hazard it looks like: the callback still fires, carrying `EPIPE`.\n *\n * Also awaited between turns, where the point is different: a long session feeding a slow reader\n * accumulates unwritten output in memory, and this bounds that to one turn's worth.\n */\nexport async function flushOutput(stream: Drainable = process.stdout): Promise<void> {\n // Nothing to wait for, and writing would throw. Checked rather than caught, because a throw here\n // lands inside the function whose whole job is to run when things are already ending.\n if (stream.writableEnded === true || stream.destroyed === true) return\n await new Promise<void>((resolve) => {\n stream.write(\"\", () => resolve())\n })\n}\n\nasync function runTeardowns(): Promise<void> {\n for (const teardown of [...teardowns].reverse()) {\n try {\n await teardown()\n } catch (error) {\n // A failing teardown must not mask the exit code that brought us here, and must not\n // stop the remaining teardowns — the terminal restore is one of them.\n process.stderr.write(\n `warning: cleanup failed: ${error instanceof Error ? error.message : String(error)}\\n`,\n )\n }\n }\n teardowns.length = 0\n}\n\n/**\n * Everything that has to happen before the process ends: teardowns, the terminal, the exit code, and\n * the output.\n *\n * Sets `process.exitCode` rather than exiting, so a caller that has its own reason to stay alive can.\n * Nothing in `src/` is such a caller any more — the entry point uses `finishNow` — but the split is\n * what makes this testable: a `finish` that exited would take the test runner with it.\n */\nexport async function finish(code: number): Promise<void> {\n await runTeardowns()\n restoreTerminal()\n process.exitCode = code\n await flushOutput()\n}\n\n/**\n * Finish, and then actually leave.\n *\n * The ordinary way out, not the exceptional one. It was written for a signal or a crash — \"where\n * waiting for the loop to drain would mean hanging\" — on the assumption that the ordinary path could\n * wait. It cannot: the module docstring records the measurement, a keep-alive socket in the global\n * `fetch` pool that outlived the process by three minutes.\n *\n * Safe to call here and nowhere earlier, because `finish` has already awaited the teardowns and the\n * output. Anything still holding the loop open at this point is a resource with no owner, and waiting\n * on one is what the hang was.\n */\nexport async function finishNow(code: number): Promise<never> {\n await finish(code)\n process.exit(code)\n}\n\n/**\n * Guards for the ways a process dies without being asked to.\n *\n * `SIGINT` is deliberately **not** handled here. During a turn it means \"cancel this turn\", not\n * \"exit\" — the chat path owns it, and a guard that exited would break the contract Phase 1\n * established and measured.\n */\nexport function installGuards(): void {\n if (guardsInstalled) return\n guardsInstalled = true\n\n // Last line of defence. Runs even when something calls process.exit directly.\n process.on(\"exit\", () => restoreTerminal())\n\n process.on(\"SIGTERM\", () => {\n // Yield to a command that owns its own shutdown. Without this the two handlers raced and\n // the hard exit won: `serve`'s graceful path started, `process.exit(143)` landed first, and\n // `runtime.stop()` never completed — so the outbox was not flushed, the database was not\n // closed, and the child processes `exec` backgrounds were never reaped. Invisible at a\n // terminal, because ctrl-C sends SIGINT and this guard deliberately ignores that one.\n if (signalsClaimed) return\n void finishNow(EXIT_SIGTERM)\n })\n\n const crash = (label: string) => (error: unknown) => {\n restoreTerminal()\n const message = error instanceof Error ? (error.stack ?? error.message) : String(error)\n // Loud and non-zero. An unexpected failure that exits 0 is the thing hard rule 8 forbids.\n process.stderr.write(`\\n${label}: ${message}\\n`)\n void finishNow(EXIT_FAILURE)\n }\n process.on(\"uncaughtException\", crash(\"uncaught exception\"))\n process.on(\"unhandledRejection\", crash(\"unhandled rejection\"))\n\n // A reader that closed early — `<cli> validate | head -1` — is the reader deciding it has what it\n // wanted, not this command failing: every write after it raises EPIPE (then ERR_STREAM_DESTROYED)\n // as an 'error' event, and unhandled that became \"uncaught exception: write EPIPE\" on stderr and,\n // under some timings, exit 134. The command's own exit code stands. Anything else on these streams\n // still goes to the crash path above, loudly.\n for (const stream of [process.stdout, process.stderr]) {\n stream.on(\"error\", (error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