@vibecloudtr/cli 0.0.1 → 0.0.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/main.js +696 -24456
- package/dist/vibe.mjs +5 -29
- package/package.json +1 -1
- package/dist/main.js.map +0 -7
- package/dist/vibe.mjs.map +0 -7
package/dist/vibe.mjs.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/bin/preamble.ts"],
|
|
4
|
-
"sourcesContent": ["// The `vibe` entry point, and the only file compiled for an OLD runtime.\n//\n// \uD83D\uDD34 WHY THIS IS A SEPARATE FILE. `npx @vibecloudtr/cli` runs on whatever Node the\n// customer happens to have. If the whole program were one bundle targeting Node 22,\n// a customer on Node 18 would get a SyntaxError from the parser \u2014 a stack trace\n// naming a line inside a bundle, with no indication that the answer is \"upgrade\n// Node\". Nothing in the program would run, so nothing could explain itself.\n//\n// So: this file is built for es2019 and does the version check, and the real\n// program lives behind a dynamic `import()` that is not PARSED until the check has\n// passed. `import()` itself is ES2020 / Node 12.17, safe under anything that could\n// plausibly execute this.\n//\n// \u26A0 Keep this file boring. No optional chaining, no nullish coalescing, no\n// top-level await, and no imports of anything in src/ except through the dynamic\n// import below. Every construct here has to parse on a runtime we are rejecting.\n\nconst MINIMUM_MAJOR = 22;\n\nfunction main(): void {\n const major = Number(process.versions.node.split('.')[0]);\n\n // Number('') is 0 and Number(undefined) is NaN; both mean we could not read a\n // version, and refusing is the fail-fast answer \u2014 a CLI that cannot tell whether\n // it is supported must not write to a credential file.\n if (!Number.isInteger(major) || major < MINIMUM_MAJOR) {\n const found = process.versions.node;\n process.stderr.write(\n 'vibe: Node.js ' +\n MINIMUM_MAJOR +\n ' veya ustu gerekir; bu makinede ' +\n found +\n ' calisiyor.\\n' +\n ' Node surumunu yukseltin (https://nodejs.org), ya da surum yoneticisi kullanin:\\n' +\n ' nvm install ' +\n MINIMUM_MAJOR +\n ' && nvm use ' +\n MINIMUM_MAJOR +\n '\\n',\n );\n process.exitCode = 1;\n return;\n }\n\n // The real program. Loaded, and therefore parsed, only now.\n void import('./main.js').then(\n function (mod: { main: () => Promise<void> }) {\n return mod.main();\n },\n function (err: unknown) {\n process.stderr.write('vibe: baslatilamadi: ' + describe(err) + '\\n');\n process.exitCode = 1;\n },\n );\n}\n\nfunction describe(err: unknown): string {\n if (err instanceof Error) return err.message;\n return String(err);\n}\n\nmain();\n"],
|
|
5
|
-
"mappings": ";;;AAiBA,IAAM,gBAAgB;AAEtB,SAAS,OAAa;AACpB,QAAM,QAAQ,OAAO,QAAQ,SAAS,KAAK,MAAM,GAAG,EAAE,CAAC,CAAC;AAKxD,MAAI,CAAC,OAAO,UAAU,KAAK,KAAK,QAAQ,eAAe;AACrD,UAAM,QAAQ,QAAQ,SAAS;AAC/B,YAAQ,OAAO;AAAA,MACb,mBACE,gBACA,qCACA,QACA,oHAGA,gBACA,iBACA,gBACA;AAAA,IACJ;AACA,YAAQ,WAAW;AACnB;AAAA,EACF;AAGA,OAAK,OAAO,WAAW,EAAE;AAAA,IACvB,SAAU,KAAoC;AAC5C,aAAO,IAAI,KAAK;AAAA,IAClB;AAAA,IACA,SAAU,KAAc;AACtB,cAAQ,OAAO,MAAM,0BAA0B,SAAS,GAAG,IAAI,IAAI;AACnE,cAAQ,WAAW;AAAA,IACrB;AAAA,EACF;AACF;AAEA,SAAS,SAAS,KAAsB;AACtC,MAAI,eAAe,MAAO,QAAO,IAAI;AACrC,SAAO,OAAO,GAAG;AACnB;AAEA,KAAK;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|