@npayload/sdk 5.0.5 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2G46BKEC.mjs +1 -0
- package/dist/{chunk-KUJJYP3K.mjs → chunk-2WG7FETK.mjs} +1 -1
- package/dist/chunk-5R5L7GTT.mjs +17 -0
- package/dist/{chunk-PYLSDRRO.mjs → chunk-6R2QLUWE.mjs} +2 -2
- package/dist/chunk-7IFTQ52O.mjs +1 -0
- package/dist/chunk-7QTR5IWG.mjs +1 -0
- package/dist/{chunk-UJP3Q23X.mjs → chunk-AECDYMA2.mjs} +1 -1
- package/dist/{chunk-455C67EN.mjs → chunk-AGDMCMF3.mjs} +1 -1
- package/dist/chunk-C5EDDEPR.mjs +1 -0
- package/dist/{chunk-6BBB7BRP.mjs → chunk-CDA75PLA.mjs} +1 -1
- package/dist/{chunk-JUXYOKI2.mjs → chunk-CFM43QNN.mjs} +4 -4
- package/dist/{chunk-UNDT7J2V.mjs → chunk-GG7UQYUV.mjs} +1 -1
- package/dist/{chunk-FAO3QJC5.mjs → chunk-HX6PH7C3.mjs} +1 -1
- package/dist/{chunk-IK32U5FV.mjs → chunk-IH2OLS7G.mjs} +1 -1
- package/dist/{chunk-5WGVEULS.mjs → chunk-K3YY77PG.mjs} +1 -1
- package/dist/{chunk-CWBN2DOO.mjs → chunk-KQCX2PCW.mjs} +1 -1
- package/dist/{chunk-I7YPDC7V.mjs → chunk-LCUELOEE.mjs} +1 -1
- package/dist/{chunk-2XQXDEXA.mjs → chunk-M7WGBUJ2.mjs} +1 -1
- package/dist/{chunk-LVVHOJLW.mjs → chunk-N6NIJISZ.mjs} +1 -1
- package/dist/chunk-ONTNXGOM.mjs +1 -0
- package/dist/{chunk-HTQLUO4J.mjs → chunk-ORT5FUFW.mjs} +1 -1
- package/dist/chunk-R6DPWMZM.mjs +1 -0
- package/dist/{chunk-MPYL6HQR.mjs → chunk-STS7CL74.mjs} +1 -1
- package/dist/{chunk-A7HA64P6.mjs → chunk-TUWFD3AZ.mjs} +1 -1
- package/dist/chunk-UDLS46F5.mjs +1 -0
- package/dist/{chunk-QGH4LHSH.mjs → chunk-VZT7RCAC.mjs} +3 -3
- package/dist/{chunk-SRQQNHSX.mjs → chunk-WOMYXKGW.mjs} +3 -3
- package/dist/{chunk-K3SNPW2B.mjs → chunk-X3CZMXOZ.mjs} +1 -1
- package/dist/{chunk-P5GCOROB.mjs → chunk-YFFHEYYK.mjs} +1 -1
- package/dist/chunk-YHUBO6K4.mjs +1 -0
- package/dist/{chunk-QHGF2GC6.mjs → chunk-YLV3KSNV.mjs} +1 -1
- package/dist/{chunk-MW4TLR2T.mjs → chunk-ZDOLKWQD.mjs} +1 -1
- package/dist/cli/index.js +247 -272
- package/dist/cli/index.mjs +177 -202
- package/dist/index.d.mts +4795 -1890
- package/dist/index.d.ts +4795 -1890
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-5KFQTEH3.mjs +0 -1
- package/dist/chunk-6HF3N3NR.mjs +0 -1
- package/dist/chunk-6ITUDSL7.mjs +0 -17
- package/dist/chunk-APBVAT7F.mjs +0 -1
- package/dist/chunk-CNAIHF3M.mjs +0 -1
- package/dist/chunk-I3UZ2FRE.mjs +0 -1
- package/dist/chunk-JNYV4RW3.mjs +0 -1
- package/dist/chunk-O7HHWVMT.mjs +0 -1
- package/dist/chunk-X3VVI7V3.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npayload/sdk",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "The SDK and CLI for npayload, one platform that makes your systems autonomous: events, pipes, AI agents, partner connections and feeds.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
package/dist/chunk-5KFQTEH3.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as a,m as b}from"./chunk-6ITUDSL7.mjs";import"./chunk-JUXYOKI2.mjs";import"./chunk-TQFAYJEP.mjs";import"./chunk-4NWQCPI4.mjs";import"./chunk-CJDCY2NH.mjs";import"./chunk-2XQXDEXA.mjs";import"./chunk-XLK55DEY.mjs";import"./chunk-LVVHOJLW.mjs";import"./chunk-I7YPDC7V.mjs";import"./chunk-OA73YMB6.mjs";import"./chunk-P5GCOROB.mjs";import"./chunk-UJP3Q23X.mjs";import"./chunk-QGH4LHSH.mjs";import"./chunk-GGXNXM73.mjs";import"./chunk-LJNU5QHZ.mjs";export{a as buildReport,b as registerDoctor};
|
package/dist/chunk-6HF3N3NR.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-SRQQNHSX.mjs";import"./chunk-4NWQCPI4.mjs";import"./chunk-2XQXDEXA.mjs";import"./chunk-UJP3Q23X.mjs";import"./chunk-QGH4LHSH.mjs";import"./chunk-GGXNXM73.mjs";import"./chunk-LJNU5QHZ.mjs";export{b as computePushGrant,a as reconcileOpScopes,c as syncCredentialScopes,d as syncExactGrant};
|
package/dist/chunk-6ITUDSL7.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{Z as Y}from"./chunk-JUXYOKI2.mjs";import{b as U}from"./chunk-TQFAYJEP.mjs";import{f as T,i as v}from"./chunk-LVVHOJLW.mjs";import{a as S,e as I}from"./chunk-I7YPDC7V.mjs";import{b as M,c as F}from"./chunk-OA73YMB6.mjs";import{b as D}from"./chunk-UJP3Q23X.mjs";import{ca as E}from"./chunk-QGH4LHSH.mjs";import{a as s}from"./chunk-LJNU5QHZ.mjs";import{existsSync as W,readFileSync as ae}from"fs";import{join as B}from"path";import p from"chalk";import u from"chalk";import ee from"ora";var b=class{static{s(this,"Spinner")}instance;constructor(t){this.instance=ee({text:t,isSilent:!process.stderr.isTTY})}start(t){return t&&(this.instance.text=t),this.instance.start(),this}succeed(t){this.instance.succeed(t)}fail(t){this.instance.fail(t)}warn(t){this.instance.warn(t)}info(t){this.instance.info(t)}stop(){this.instance.stop()}set text(t){this.instance.text=t}};function le(e){return new b(e).start()}s(le,"spin");var te=new Set(["human","table","json","yaml","ndjson"]);function q(e){if(e===void 0)return"human";let t=e.toLowerCase();if(!te.has(t))throw new Error(`Unknown --output "${e}". Use one of: human, table, json, yaml, ndjson.`);return t}s(q,"resolveOutputFormat");function y(e){return e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}s(y,"isScalar");function j(e){return e===null?"":String(e)}s(j,"scalarToString");function O(e){if(e==null)return"null";if(typeof e=="number"||typeof e=="boolean")return String(e);let t=String(e);return t===""||/[:#\-?,[\]{}&*!|>'"%@`]/.test(t)||/^\s|\s$/.test(t)||/^(true|false|null|~|\d)/i.test(t)?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:t}s(O,"yamlScalar");function k(e,t=0){let n=" ".repeat(t);if(y(e)||e===void 0)return`${n}${O(e)}`;if(Array.isArray(e))return e.length===0?`${n}[]`:e.map(r=>{if(y(r)||r===void 0)return`${n}- ${O(r)}`;let i=k(r,t+1).replace(/^ {2}/,"");return`${n}- ${i.replace(/^\s+/,"")}
|
|
2
|
-
${k(r,t+1).split(`
|
|
3
|
-
`).slice(1).join(`
|
|
4
|
-
`)}`.trimEnd()}).join(`
|
|
5
|
-
`);let a=Object.entries(e);return a.length===0?`${n}{}`:a.map(([r,i])=>y(i)||i===void 0?`${n}${r}: ${O(i)}`:Array.isArray(i)&&i.length===0?`${n}${r}: []`:!Array.isArray(i)&&Object.keys(i).length===0?`${n}${r}: {}`:`${n}${r}:
|
|
6
|
-
${k(i,t+1)}`).join(`
|
|
7
|
-
`)}s(k,"toYaml");function ne(e){if(e.length===0)return"(no rows)";let t=[];for(let o of e)for(let l of Object.keys(o))t.includes(l)||t.push(l);let n=s(o=>o==null?"":y(o)?j(o):JSON.stringify(o),"cell"),a=t.map(o=>Math.max(o.length,...e.map(l=>n(l[o]).length))),r=s(o=>o.map((l,f)=>l.padEnd(a[f])).join(" ").trimEnd(),"fmtRow"),i=r(t),c=a.map(o=>"-".repeat(o)).join(" "),h=e.map(o=>r(t.map(l=>n(o[l]))));return[i,c,...h].join(`
|
|
8
|
-
`)}s(ne,"toTable");function z(e,t){switch(t){case"json":return JSON.stringify(e,null,2);case"ndjson":return(Array.isArray(e)?e:[e]).map(n=>JSON.stringify(n)).join(`
|
|
9
|
-
`);case"yaml":return k(e);case"table":{let n=Array.isArray(e)?e:[e];return n.every(r=>r!==null&&typeof r=="object"&&!Array.isArray(r))?ne(n):k(e)}case"human":default:return w(e)}}s(z,"renderResult");function w(e,t=0){let n=" ".repeat(t);if(y(e)||e===void 0)return`${n}${e===void 0?"":j(e)}`;if(Array.isArray(e))return e.length===0?`${n}${u.dim("(none)")}`:e.map((i,c)=>`${n}${u.dim(`[${c}]`)}
|
|
10
|
-
${w(i,t+1)}`).join(`
|
|
11
|
-
`);let a=Object.entries(e);if(a.length===0)return`${n}${u.dim("(empty)")}`;let r=Math.max(...a.map(([i])=>i.length));return a.map(([i,c])=>{let h=u.cyan(i.padEnd(r));return y(c)||c===void 0?`${n}${h} ${c===void 0?"":j(c)}`:`${n}${h}
|
|
12
|
-
${w(c,t+1)}`}).join(`
|
|
13
|
-
`)}s(w,"renderHuman");var H=class{constructor(t){this.format=t;this.tty=t==="human"&&!!process.stderr.isTTY}static{s(this,"StepLog")}tty;spinner=null;lines=[];start(t){this.tty&&(this.spinner=new b(`\u25C9 ${t}`).start())}finish(t){if(this.lines.push(t),!this.tty)return;let n=t.message?u.dim(` (${t.message})`):"",a=`${t.label}${n}`;this.spinner?(t.status==="succeeded"?this.spinner.succeed(`\u2713 ${a}`):t.status==="failed"?this.spinner.fail(`\u2716 ${a}`):t.status==="skipped"?this.spinner.warn(`\u293F ${a}`):this.spinner.info(a),this.spinner=null):process.stderr.write(`${re(t.status)} ${a}
|
|
14
|
-
`)}all(){return this.lines}hasFailure(){return this.lines.some(t=>t.status==="failed")}};function re(e){switch(e){case"succeeded":return u.green("\u2713");case"failed":return u.red("\u2716");case"skipped":return u.yellow("\u293F");default:return u.cyan("\u25C9")}}s(re,"glyph");var ge="__set_by_npayload_login__",be="__set_by_npayload_login__",ke="__set_by_npayload_login__";function N(e){if(e==null)return!0;let t=e.trim();return t.length===0?!0:t.startsWith("__set_by_npayload_login__")}s(N,"isPlaceholderCredential");var K="f4d5410c733e4c4a28858907bb7addc6d1fd34280961bdfb74cf0ac7a0a8419b",Ae={$schema:"http://json-schema.org/draft-07/schema#",title:"EventsConfig",type:"object",additionalProperties:!1,properties:{channels:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{name:{type:"string",maxLength:4096},idempotencyKey:{type:"string",maxLength:4096},description:{type:"string",maxLength:4096},type:{type:"string",enum:["topic","queue","stream"]},schema:{type:"object",properties:{type:{type:"string",enum:["json","avro","protobuf"]},definition:{type:"string",maxLength:4096},strict:{type:"boolean"}},required:["type"],additionalProperties:!1},settings:{type:"object",properties:{retentionMs:{type:"number"},maxMessageSize:{type:"number"},maxSubscriptions:{type:"number"},idempotencyWindowMs:{type:"number"}},additionalProperties:!1},metadata:{type:"object",additionalProperties:{oneOf:[{type:"string",maxLength:4096},{type:"number"},{type:"boolean"},{type:"null"}]},propertyNames:{maxLength:256,not:{enum:["__proto__","constructor","prototype"]}}},retentionMode:{type:"string",enum:["standard","compacted","compacted_with_log"]},compactionConfig:{type:"object",properties:{minAge:{type:"number"},deletePolicy:{type:"string",enum:["compact","delete","compact_and_delete"]}},additionalProperties:!1},nppMinQos:{type:"number"},rateLimit:{type:"object",properties:{ratePerSec:{type:"number"},burst:{type:"number"}},required:["ratePerSec","burst"],additionalProperties:!1},complianceClass:{type:"string",enum:["NONE","SOC2","GDPR","HIPAA","PCI","FEDRAMP_MOD","FEDRAMP_HIGH","IL5","ITAR"]},privacy:{type:"object",properties:{mode:{type:"string",enum:["standard","e2e","hybrid"]},encryptionProvider:{type:"string",enum:["none","publisher","platform"]}},required:["mode","encryptionProvider"],additionalProperties:!1},privacyMode:{type:"string",enum:["standard","hybrid","e2e"]},pii:{type:"string",enum:["strip","allow","block"]}},required:["name"]}},consumerGroups:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{channelGid:{type:"string",maxLength:4096},strategy:{type:"string",enum:["competing","sticky","broadcast"]},maxConcurrency:{type:"number"}},required:["strategy"]}},eventTypes:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{displayName:{type:"string",maxLength:4096},description:{type:"string",maxLength:4096},domain:{type:"string",maxLength:4096},entity:{type:"string",maxLength:4096},action:{type:"string",maxLength:4096},ownership:{type:"object",properties:{team:{type:"string",maxLength:4096},contact:{type:"string",maxLength:4096},slackChannel:{type:"string",maxLength:4096}},required:["team","contact"],additionalProperties:!1},channels:{type:"array",items:{type:"string",maxLength:4096}},tags:{type:"array",items:{type:"string",maxLength:4096}},schema:{type:"object",properties:{format:{type:"string",enum:["json_schema","avro","protobuf"]},definition:{type:"string",maxLength:4096}},required:["format","definition"],additionalProperties:!1}},required:["displayName","description","ownership"]}},exchanges:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["direct","fanout","topic","headers"]},config:{type:"object",properties:{headersMatchMode:{}},additionalProperties:!1}}}},subscriptions:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{channelGid:{type:"string",maxLength:4096},subscribesTo:{type:"string",enum:["messages","failures"]},idempotencyKey:{type:"string",maxLength:4096},consumerAppId:{type:"string",maxLength:4096},description:{type:"string",maxLength:4096},type:{type:"string",enum:["webhook","queue","adapter"]},filter:{type:"object",properties:{where:{type:"object",additionalProperties:{oneOf:[{type:"string",maxLength:4096},{type:"number"},{type:"boolean"}]},propertyNames:{maxLength:256,not:{enum:["__proto__","constructor","prototype"]}}},routingKey:{type:"string",maxLength:4096},subject:{type:"string",maxLength:4096}},additionalProperties:!1},subjectFilter:{type:"string",maxLength:4096},endpoint:{type:"object",properties:{url:{type:"string",format:"npayload-safe-url",maxLength:4096},method:{type:"string",enum:["POST","PUT"]},headers:{type:"object",additionalProperties:{type:"string",pattern:"^[^\\r\\n]*$",maxLength:4096},propertyNames:{pattern:"^[A-Za-z0-9!#$%&'*+.^_`|~-]{1,128}$"}},queueName:{type:"string",maxLength:4096}},additionalProperties:!1},delivery:{type:"object",properties:{timeoutMs:{type:"number"},retryPolicy:{type:"object",properties:{maxAttempts:{type:"number"},backoffStrategy:{type:"string",enum:["exponential","linear","constant"]},initialDelayMs:{type:"number"},maxDelayMs:{type:"number"},backoffMultiplier:{type:"number"}},additionalProperties:!1},batchSize:{type:"number"},batchWindowMs:{type:"number"}},additionalProperties:!1},dlq:{type:"object",properties:{enabled:{type:"boolean"},maxAge:{type:"number"}},required:["enabled"],additionalProperties:!1},deliveryConfig:{type:"object",properties:{maxPerMinute:{type:"number"}},additionalProperties:!1},metadata:{type:"object",additionalProperties:{oneOf:[{type:"string",maxLength:4096},{type:"number"},{type:"boolean"},{type:"null"}]},propertyNames:{maxLength:256,not:{enum:["__proto__","constructor","prototype"]}}},transformPipeId:{type:"string",maxLength:4096},transformTimeout:{type:"number"},transformOnFailure:{type:"string",enum:["deliver_raw","drop_to_dlq"]}},required:["endpoint"]}}}};async function G(e,t){try{let n=new URL("/health",e);return await D(I())(n,{signal:AbortSignal.timeout(2500)}),"reachable"}catch(n){return n instanceof E?(t.push(n),"refused"):"unreachable"}}s(G,"reachable");function se(){let e=process.env.npm_config_user_agent??"";return e.startsWith("bun")?"bun":e.startsWith("pnpm")?"pnpm":e.startsWith("yarn")?"yarn":e.startsWith("npm")?"npm":process.env.BUN_INSTALL?"bun":"unknown"}s(se,"detectPackageManager");function oe(){switch(process.platform){case"darwin":return"macOS Keychain";case"win32":return"Windows Credential Manager";case"linux":return"Linux Secret Service (libsecret)";default:return`${process.platform} (unsupported)`}}s(oe,"keychainBackend");async function ie(){let e=await M(),t=!1;if(e)try{let m=await F();t=!!(m?.clientId&&m?.hmacSecret)}catch{t=!1}let n=!!process.env.NPAYLOAD_TOKEN,a=!!(process.env.NPAYLOAD_CLIENT_ID&&(process.env.NPAYLOAD_CLIENT_SECRET||process.env.NPAYLOAD_HMAC_SECRET)),r=U(),i=!!(r?.clientId&&r?.hmacSecret&&!N(r.clientId)&&!N(r.hmacSecret)),c=t||n||a||i,h=[];(process.env.NPAYLOAD_CLIENT_SECRET||process.env.NPAYLOAD_HMAC_SECRET)&&h.push("A client secret is set in the environment. Prefer a short-lived NPAYLOAD_TOKEN, source it from a secret manager, and never commit it to a .env file.");let o=[];c||(e||o.push(process.platform==="linux"?"No OS keychain: install and start a Secret Service (e.g. `gnome-keyring` or KWallet).":"OS keychain is not reachable on this host."),o.push("In a project: run `npx @npayload/sdk init` (provisions machine credentials into .npayload.json).","Interactive: run `npayload login` (stores the session in the OS keychain).","Headless / CI: export NPAYLOAD_CLIENT_ID + NPAYLOAD_CLIENT_SECRET (or NPAYLOAD_TOKEN)."));let l=!1,f=S(process.env.NPAYLOAD_API_URL,"apiUrl")??"https://api.npayload.com",g=S(process.env.NPAYLOAD_AUTH_URL,"authUrl")??null,$=[],L=await G(f,$),_=g?await G(g,$):null,J=L==="reachable",Q=_===null?null:_==="reachable";for(let m of $)o.push(T(`Not probed: ${m.message}`,m));L==="unreachable"&&o.push(`API endpoint ${f} is unreachable \u2014 check your network / status page.`),g&&_==="unreachable"&&o.push(`Auth endpoint ${g} is unreachable \u2014 token minting will fail until it is back.`);let P="n/a",R=B(process.cwd(),"npayload","_generated","contract.lock");if(W(R)){try{P=JSON.parse(ae(R,"utf8")).hash===K?"ok":"stale"}catch{P="stale"}P==="stale"&&o.push("npayload/_generated/contract.lock disagrees with the installed npayload contract \u2014 this project was authored against a different version; re-run `npayload validate` after upgrading (or reinstall the pinned version).")}let x="n/a";try{let m=Y(),C=B(m,"..","permissions.generated.ts"),{projectAllPermissions:Z}=await import("./chunk-CNAIHF3M.mjs"),{checkScopesDrift:X}=await import("./chunk-A7HA64P6.mjs"),A=X(await Z(),C);x=A.ok?"ok":W(C)?"stale":"missing",!A.ok&&A.reason&&o.push(A.reason)}catch{x="n/a"}return{os:process.platform,arch:process.arch,node:process.version,packageManager:se(),keychain:{reachable:e,backend:oe()},credentials:{envToken:n,envClient:a,project:i,keychain:t},authReady:c,stack:{apiUrl:f,apiReachable:J,apiProbe:L,authUrl:g,authReachable:Q,authProbe:_,contractLock:P,permissions:x},warnings:h,remediation:o}}s(ie,"buildReport");function V(e){return e==="reachable"?p.green("reachable"):e==="refused"?p.yellow("refused by this run's estate (TRANSPORT_UNAVAILABLE)"):p.red("unreachable")}s(V,"probeWords");function d(e){return e?p.green("\u2713"):p.dim("\u25CB")}s(d,"mark");function pe(e){let t=["",p.bold(" npayload doctor"),""];t.push(` ${p.dim("platform")} ${e.os} ${e.arch} \xB7 node ${e.node} \xB7 pm ${e.packageManager}`),t.push(` ${d(e.keychain.reachable)} ${p.dim("keychain")} ${e.keychain.backend} \u2014 ${e.keychain.reachable?p.green("reachable"):p.yellow("not reachable")}`),t.push(""),t.push(` ${p.bold("credentials")}`),t.push(` ${d(e.credentials.project)} project credentials (.npayload.json)`),t.push(` ${d(e.credentials.keychain)} login session in OS keychain`),t.push(` ${d(e.credentials.envClient)} NPAYLOAD_CLIENT_ID + NPAYLOAD_CLIENT_SECRET (env)`),t.push(` ${d(e.credentials.envToken)} NPAYLOAD_TOKEN (env, short-lived)`),t.push(""),t.push(` ${p.bold("stack")}`),t.push(` ${d(e.stack.apiReachable)} API ${p.dim(e.stack.apiUrl)} \u2014 ${V(e.stack.apiProbe)}`),e.stack.authUrl&&e.stack.authProbe!==null&&t.push(` ${d(e.stack.authReachable===!0)} auth ${p.dim(e.stack.authUrl)} \u2014 ${V(e.stack.authProbe)}`),e.stack.contractLock!=="n/a"&&t.push(` ${d(e.stack.contractLock==="ok")} contract.lock \u2014 ${e.stack.contractLock}`),e.stack.permissions!=="n/a"&&t.push(` ${d(e.stack.permissions==="ok")} permissions.generated.ts \u2014 ${e.stack.permissions}`),t.push("");let n=!e.stack.apiReachable||e.stack.authReachable===!1,a=e.stack.apiProbe==="refused"||e.stack.authProbe==="refused";e.authReady?a?t.push(` ${p.yellow("! credentials present, but this run's estate refused a probe \u2014 see next")}`):n?t.push(` ${p.yellow("! credentials present, but the stack is unreachable \u2014 see next")}`):t.push(` ${p.green("\u2713 ready \u2014 credentials present and the stack is reachable")}`):t.push(` ${p.red("\u2716 no credential source available")}`);for(let r of e.warnings)t.push(p.yellow(` ! ${r}`));if(e.remediation.length){t.push(""),t.push(` ${p.bold("next")}`);for(let r of e.remediation)t.push(p.dim(` \u2022 ${r}`))}return t.push(""),t.join(`
|
|
15
|
-
`)}s(pe,"renderHuman");function Ue(e){e.command("doctor").description("diagnose OS / package manager / keychain reachability + which credential source is available").option("--output <fmt>","human | table | json | yaml | ndjson").action(async t=>{try{let n=q(t.output),a=await ie();n==="human"?process.stdout.write(pe(a)+`
|
|
16
|
-
`):process.stdout.write(`${z(a,n)}
|
|
17
|
-
`);let r=a.stack.authReachable===!1;(!a.authReady||!a.stack.apiReachable||r)&&(process.exitCode=1)}catch(n){v(n)}})}s(Ue,"registerDoctor");export{b as a,le as b,ge as c,be as d,ke as e,N as f,q as g,z as h,H as i,K as j,Ae as k,ie as l,Ue as m};
|
package/dist/chunk-APBVAT7F.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-MPYL6HQR.mjs";import"./chunk-455C67EN.mjs";import"./chunk-LJNU5QHZ.mjs";export{b as adminExtraCommands,d as loadExtraCommandRows,a as loadPrimusCliCommands,c as pipesExtraCommands};
|
package/dist/chunk-CNAIHF3M.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-MW4TLR2T.mjs";import"./chunk-JUXYOKI2.mjs";import"./chunk-TQFAYJEP.mjs";import"./chunk-4NWQCPI4.mjs";import"./chunk-FAO3QJC5.mjs";import"./chunk-455C67EN.mjs";import"./chunk-CJDCY2NH.mjs";import"./chunk-2XQXDEXA.mjs";import"./chunk-XLK55DEY.mjs";import"./chunk-LVVHOJLW.mjs";import"./chunk-I7YPDC7V.mjs";import"./chunk-OA73YMB6.mjs";import"./chunk-P5GCOROB.mjs";import"./chunk-UJP3Q23X.mjs";import"./chunk-QGH4LHSH.mjs";import"./chunk-GGXNXM73.mjs";import"./chunk-LJNU5QHZ.mjs";export{a as projectAllPermissions};
|
package/dist/chunk-I3UZ2FRE.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as a,j as b,k as c,l as d,m as e}from"./chunk-5WGVEULS.mjs";import"./chunk-I7YPDC7V.mjs";import"./chunk-OA73YMB6.mjs";import"./chunk-JNYV4RW3.mjs";import"./chunk-P5GCOROB.mjs";import"./chunk-UJP3Q23X.mjs";import"./chunk-QGH4LHSH.mjs";import"./chunk-GGXNXM73.mjs";import"./chunk-LJNU5QHZ.mjs";export{a as CliSession,e as appCreateRefusalMessage,d as deviceLogin,b as restoreSession,c as verificationPage};
|
package/dist/chunk-JNYV4RW3.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e="5.0.5";var t=e,i="npayload",o=`${i}/${t}`;export{t as a,i as b,o as c};
|
package/dist/chunk-O7HHWVMT.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"./chunk-IK32U5FV.mjs";import"./chunk-SRQQNHSX.mjs";import"./chunk-MW4TLR2T.mjs";import"./chunk-JUXYOKI2.mjs";import"./chunk-TQFAYJEP.mjs";import"./chunk-4NWQCPI4.mjs";import"./chunk-FAO3QJC5.mjs";import"./chunk-455C67EN.mjs";import"./chunk-CJDCY2NH.mjs";import"./chunk-2XQXDEXA.mjs";import"./chunk-XLK55DEY.mjs";import"./chunk-LVVHOJLW.mjs";import"./chunk-I7YPDC7V.mjs";import"./chunk-OA73YMB6.mjs";import"./chunk-P5GCOROB.mjs";import"./chunk-UJP3Q23X.mjs";import"./chunk-QGH4LHSH.mjs";import"./chunk-GGXNXM73.mjs";import"./chunk-LJNU5QHZ.mjs";export{a as computeFloor,c as coversFloor,b as floorGap};
|
package/dist/chunk-X3VVI7V3.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a,e as b,f as c,g as d}from"./chunk-PYLSDRRO.mjs";import"./chunk-MDW42OG6.mjs";import"./chunk-UNDT7J2V.mjs";import"./chunk-IK32U5FV.mjs";import"./chunk-SRQQNHSX.mjs";import"./chunk-MW4TLR2T.mjs";import"./chunk-JUXYOKI2.mjs";import"./chunk-TQFAYJEP.mjs";import"./chunk-4NWQCPI4.mjs";import"./chunk-FAO3QJC5.mjs";import"./chunk-455C67EN.mjs";import"./chunk-CJDCY2NH.mjs";import"./chunk-2XQXDEXA.mjs";import"./chunk-XLK55DEY.mjs";import"./chunk-LVVHOJLW.mjs";import"./chunk-I7YPDC7V.mjs";import"./chunk-OA73YMB6.mjs";import"./chunk-P5GCOROB.mjs";import"./chunk-UJP3Q23X.mjs";import"./chunk-QGH4LHSH.mjs";import"./chunk-GGXNXM73.mjs";import"./chunk-LJNU5QHZ.mjs";export{c as pullScopesIntoManifest,d as registerScopes,b as runScopesDiff,a as runScopesFix};
|