@goldskycom/cli 13.3.1 → 13.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -8
package/dist/index.js
CHANGED
|
@@ -655,7 +655,7 @@ ${Qg.default.goldsky.pink.underline(Dve)}`,Qg.default.goldsky.orange.bold("Suppo
|
|
|
655
655
|
--host ${e.url.substring(8)} \\
|
|
656
656
|
--user "${e.username}" \\
|
|
657
657
|
--password "${e.password}"
|
|
658
|
-
`)}function YWe(){let e="clickhouse";return _ue()==="currentDir"&&(e=`./${e}`),e}var gbr="connect",ybr="Connect to your Goldsky ClickHouse database",bbr=e=>e,Sbr=async()=>{console.log(""),Nf("Goldsky ClickHouse - Connect"),Ff("Goldsky ClickHouse is based on ClickHouse (https://clickhouse.com).","Get started"),XWe();let e=await VWe();switch(await eh({message:"How would you like to connect?",options:[{label:"Automatically connect",value:"automatically",hint:"Once you hit Enter, you will be connected to the ClickHouse database."},{label:"Manually connect",value:"manually",hint:"Once you hit Enter, you will see the connection details."}]})){case"automatically":KWe(e);break;case"manually":ZWe(e);break}};var xbr="clickhouse",vbr="Commands related to Goldsky ClickHouse",_br=e=>e.command(wue).version(!1).demandCommand(1),wbr=async()=>{};var Cbr="db",Abr="Commands related to Goldsky DB",Ebr=e=>e.command(Cue).version(!1).demandCommand(1),Dbr=async()=>{};var ade={};zl(ade,{builder:()=>d0r,command:()=>l0r,describe:()=>u0r,handler:()=>p0r});var ide={};zl(ide,{builder:()=>e0r,command:()=>JSr,describe:()=>QSr,handler:()=>nde});var o9e=po(r9e()),Que=require("crypto");var TI=po(require("os"));var LE={name:"@goldskycom/cli",version:"13.3.
|
|
658
|
+
`)}function YWe(){let e="clickhouse";return _ue()==="currentDir"&&(e=`./${e}`),e}var gbr="connect",ybr="Connect to your Goldsky ClickHouse database",bbr=e=>e,Sbr=async()=>{console.log(""),Nf("Goldsky ClickHouse - Connect"),Ff("Goldsky ClickHouse is based on ClickHouse (https://clickhouse.com).","Get started"),XWe();let e=await VWe();switch(await eh({message:"How would you like to connect?",options:[{label:"Automatically connect",value:"automatically",hint:"Once you hit Enter, you will be connected to the ClickHouse database."},{label:"Manually connect",value:"manually",hint:"Once you hit Enter, you will see the connection details."}]})){case"automatically":KWe(e);break;case"manually":ZWe(e);break}};var xbr="clickhouse",vbr="Commands related to Goldsky ClickHouse",_br=e=>e.command(wue).version(!1).demandCommand(1),wbr=async()=>{};var Cbr="db",Abr="Commands related to Goldsky DB",Ebr=e=>e.command(Cue).version(!1).demandCommand(1),Dbr=async()=>{};var ade={};zl(ade,{builder:()=>d0r,command:()=>l0r,describe:()=>u0r,handler:()=>p0r});var ide={};zl(ide,{builder:()=>e0r,command:()=>JSr,describe:()=>QSr,handler:()=>nde});var o9e=po(r9e()),Que=require("crypto");var TI=po(require("os"));var LE={name:"@goldskycom/cli",version:"13.3.2",description:"The Goldsky CLI to deploy subgraphs, index & transform blockchain data, configure webhooks, and access your data in real-time.",main:"dist/index.js",keywords:["goldsky","web3","blockchain","real-time","data pipelines","streams","webhooks"],author:"Goldsky",scripts:{"binaries:build":"pnpm build && rimraf ./binaries && node ./scripts/binaries-build.js","binaries:deploy":"node ./scripts/binaries-deploy.js",build:"pnpm clean && tsc --noEmit --skipLibCheck && node ./scripts/build.js && chmod a+x bin/goldsky",clean:"rimraf ./binaries ./dist ./tsconfig.tsbuildinfo",dev:"NODE_ENV=development ts-node src/index.ts","docs:reference:generate":"pnpm build && GOLDSKY_PARSE_CLI_OUTPUT_FOR_DOCS=true ts-node ./scripts/reference-docs/index.ts","docs:reference:copy":"test -f ./cli-reference.md && test -f ../../../docs/reference/cli.mdx && cp ./cli-reference.md ../../../docs/reference/cli.mdx","docs:reference:update":"pnpm docs:reference:generate && pnpm docs:reference:copy",lint:"eslint --max-warnings 0 .","lint:summary":"pnpm lint --format summary || pnpm lint",prepublishOnly:"pnpm build","test:unit":"vitest --run",typecheck:"tsc --noEmit"},bin:{goldsky:"bin/goldsky"},files:["bin/goldsky","dist"],devDependencies:{"@aws-sdk/abort-controller":"^3.272.0","@aws-sdk/client-s3":"^3.272.0","@clack/prompts":"^0.7.0","@goldskyio/core":"workspace:*","@sinclair/typebox":"^0.32.34","@types/cli-progress":"^3.11.0","@types/form-data":"^2.5.0","@types/jszip":"^3.4.1","@types/node":"^22.13.17","@types/readline-sync":"^1.4.4","@types/semver":"^7.5.1","@types/yaml":"^1.9.7","@types/yargs":"^17.0.7","@yao-pkg/pkg":"^6.14.1",cuid:"^2.1.8","parse-duration":"^2.1.3","readline-sync":"^1.4.10","timeago.js":"^4.0.2",tsx:"^4.19.0",abitype:"0.1.7",ajv:"^8.11.2",axios:"^1.4.0",chalk:"^4.1.2","cli-progress":"^3.12.0",conf:"10.2.0","form-data":"^4.0.0",jszip:"^3.7.1",ora:"4.1.1","s3-sync-client":"^4.3.1",semver:"^7.3.7","simple-update-notifier":"^2.0.0",table:"^6.8.1",typescript:"^5.3.3",yaml:"^1.10.2",yargs:"^17.7.2"},license:"",dependencies:{}};var v9;function n9e(){if(v9)return v9;let e=TI.default.cpus()||[];return v9={systemPlatform:TI.default.platform(),systemRelease:TI.default.release(),systemArchitecture:TI.default.arch(),cpuCount:e.length,cpuModel:e.length?e[0].model:null,cpuSpeed:e.length?e[0].speed:null,memoryInMb:Math.trunc(TI.default.totalmem()/Math.pow(1024,2)),isCI:!!process.env.CI,cliVersion:LE.version},v9}var a9e=po(uf());var _9="telemetry.enabled",i9e="telemetry.notifiedAt",s9e="telemetry.anonymousId",Ub=KSr(),WSr=(0,Que.randomBytes)(32).toString("hex"),XSr=YSr();ZSr();function ede(){Ub&&Ub.set(_9,!0)}function c9e(){Ub&&Ub.set(_9,!1)}function l9e(){return!!Ub?.get(_9,!1)}function HSr(){return Ub?Ub.get(_9,!0)!==!1:!1}function u9e(e){return tde("CLI_COMMAND",{command:rde(e)})}function d9e(e){return tde("CLI_COMMAND_FAILED",{...e,command:rde(e.command)})}function p9e(e){return tde("CLI_COMMAND_SUCCEEDED",{...e,command:rde(e.command)})}function KSr(){try{return new o9e.default({projectName:"goldsky"})}catch{return null}}function ZSr(){!Ub||m9e()||Ub.get(i9e)===void 0&&(Ub.set(i9e,Date.now().toString()),ede(),console.log(`${(0,a9e.cyan)("Attention")}: Goldsky now collects completely anonymous telemetry regarding usage. This is used to guide Goldsky's CLI roadmap and to provide support.`),console.log("You can learn more, including how to opt-out of this anonymous program, by heading over to:"),console.log(Pve),console.log())}function m9e(){return!HSr()||!!process.env.GOLDSKY_CLI_TELEMETRY_DISABLED}async function tde(e,t){if(m9e())return Promise.resolve();let r={anonymousId:XSr,sessionId:WSr};try{so.setAuth(""),await so.post("/api/public/telemetry/v1/cli",{body:{context:r,environment:n9e(),events:[{name:e,properties:t}]}})}catch{}finally{await oM()}}function YSr(){let e=Ub&&Ub.get(s9e);if(e)return e;let t=(0,Que.randomBytes)(32).toString("hex");return Ub&&Ub.set(s9e,t),t}function rde(e){return e.replace(/--token\s+\S+\s?/,"").trim()}var JSr="status",QSr="Display the CLI telemetry status",e0r=e=>e,nde=()=>{console.log(`Anonymous CLI telemetry is ${l9e()?"enabled":"disabled"}.`)};var sde={};zl(sde,{builder:()=>n0r,command:()=>t0r,describe:()=>r0r,handler:()=>i0r});var t0r="enable",r0r="Enable anonymous CLI telemetry",n0r=e=>e,i0r=()=>{ede(),console.log("Anonymous CLI telemetry enabled.")};var ode={};zl(ode,{builder:()=>a0r,command:()=>s0r,describe:()=>o0r,handler:()=>c0r});var s0r="disable",o0r="Disable anonymous CLI telemetry",a0r=e=>e,c0r=()=>{c9e(),console.log("Anonymous CLI telemetry disabled.")};var l0r="telemetry",u0r="Commands related to CLI telemetry",d0r=e=>e.command(ide).command(sde).command(ode).version(!1),p0r=()=>{nde()};var mde={};zl(mde,{builder:()=>h0r,command:()=>m0r,describe:()=>f0r,handler:()=>g0r});var pde=po(uf());var cde=po(require("node:fs")),f9e=po(require("node:os")),h9e=po(require("node:path")),lde=h9e.default.join(f9e.default.homedir(),".goldsky","bin","turbo");function ude(){try{return cde.default.accessSync(lde,cde.default.constants.X_OK),!0}catch{return!1}}var g9e=require("node:child_process");var N2=po(uf());var w9="https://install-turbo.goldsky.com";async function y9e(){if(console.log(`
|
|
659
659
|
The ${N2.default.bold("turbo")} binary is not installed.
|
|
660
660
|
Please install it by running:
|
|
661
661
|
${N2.default.bold(`curl ${w9} | sh`)}
|