create-veil-app 0.3.0 → 0.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.
@@ -374,7 +374,7 @@ async function addVeilToProject(projectPath, config) {
374
374
  generateVeilProvider: generateVeilProvider2,
375
375
  generateVeilHooks: generateVeilHooks2,
376
376
  generateShadowPayModule: generateShadowPayModule2
377
- } = await import("./templates-TJ2JYQDS.js");
377
+ } = await import("./templates-XMR2GBMZ.js");
378
378
  const dirs = ["privacy", "infra", "contexts", "hooks"];
379
379
  for (const dir of dirs) {
380
380
  await fs2.ensureDir(path2.join(projectPath, dir));
package/dist/index.js CHANGED
@@ -3,8 +3,7 @@ import {
3
3
  TEMPLATE_INFO,
4
4
  runAdd,
5
5
  runInit
6
- } from "./chunk-QWU7D5FV.js";
7
- import "./chunk-QGM4M3NI.js";
6
+ } from "./chunk-ZVIMTG22.js";
8
7
 
9
8
  // src/index.ts
10
9
  import { Command } from "commander";
@@ -24,7 +23,7 @@ var createDexClient;
24
23
  var TOKENS;
25
24
  async function loadSDK() {
26
25
  try {
27
- const sdk = await import("./dist-7HFJSUBN.js");
26
+ const sdk = await import("@veil-protocol/sdk");
28
27
  VeilClient = sdk.VeilClient;
29
28
  createShieldedClient = sdk.createShieldedClient;
30
29
  createTransferClient = sdk.createTransferClient;
@@ -180,7 +179,10 @@ function displayTemplates() {
180
179
  }
181
180
  }
182
181
  var program = new Command();
183
- program.name("veil").description("Privacy infrastructure for Solana \u2014 DeFi, DApps, Exchanges, Wallets").version("0.3.0");
182
+ program.name("create-veil-app").description("Privacy infrastructure for Solana \u2014 DeFi, DApps, Exchanges, Wallets").version("0.3.1").argument("[name]", "Project name").option("-t, --template <template>", "Template: dex, lending, yield, pool, gaming, nft, social, governance, cex, aggregator, trading, wallet, portfolio, payments, basic").option("-f, --framework <framework>", "Framework: nextjs or vite").option("--helius", "Enable Helius RPC (default: true)").option("--no-helius", "Disable Helius RPC").option("--shadow-pay", "Enable ShadowPay mainnet integration").option("--no-shadow-pay", "Disable ShadowPay").option("--network <network>", "Veil features network: devnet or localnet").action(async (name, options) => {
183
+ displayBanner();
184
+ await runInit({ ...options, name });
185
+ });
184
186
  program.command("init [name]").description("Create a new project with full Veil + ShadowWire privacy stack").option("-t, --template <template>", "Template: dex, lending, yield, pool, gaming, nft, social, governance, cex, aggregator, trading, wallet, portfolio, payments, basic").option("-f, --framework <framework>", "Framework: nextjs or vite").option("--helius", "Enable Helius RPC (default: true)").option("--no-helius", "Disable Helius RPC").option("--shadow-pay", "Enable ShadowPay mainnet integration").option("--no-shadow-pay", "Disable ShadowPay").option("--network <network>", "Veil features network: devnet or localnet").action(async (name, options) => {
185
187
  displayBanner();
186
188
  await runInit({ ...options, name });
@@ -202,20 +204,20 @@ program.command("identity <action>").description("Manage ZK identities (create,
202
204
  if (process.argv.length === 2) {
203
205
  displayBanner();
204
206
  console.log(chalk2.bold("Quick Start:\n"));
205
- console.log(` ${chalk2.cyan("veil init my-dex --template=dex")}`);
206
- console.log(` ${chalk2.cyan("veil init my-wallet --template=wallet")}`);
207
- console.log(` ${chalk2.cyan("veil init my-dao --template=governance")}`);
207
+ console.log(` ${chalk2.cyan("npx create-veil-app my-dex --template=dex")}`);
208
+ console.log(` ${chalk2.cyan("npx create-veil-app my-wallet --template=wallet")}`);
209
+ console.log(` ${chalk2.cyan("npx create-veil-app my-dao --template=governance")}`);
208
210
  console.log();
209
- console.log(chalk2.dim("Commands:"));
210
- console.log(` ${chalk2.cyan("veil init [name]")} Create new project with privacy stack`);
211
- console.log(` ${chalk2.cyan("veil add")} Add Veil to existing project`);
212
- console.log(` ${chalk2.cyan("veil templates")} List all available templates`);
213
- console.log(` ${chalk2.cyan("veil demo")} Interactive SDK demo`);
211
+ console.log(chalk2.dim("Usage:"));
212
+ console.log(` ${chalk2.cyan("npx create-veil-app [name]")} Create new project`);
213
+ console.log(` ${chalk2.cyan("npx create-veil-app [name] -t dex")} Use specific template`);
214
+ console.log(` ${chalk2.cyan("npx create-veil-app init [name]")} Alternative syntax`);
215
+ console.log(` ${chalk2.cyan("npx create-veil-app templates")} List all templates`);
216
+ console.log(` ${chalk2.cyan("npx create-veil-app demo")} Interactive SDK demo`);
214
217
  console.log();
215
218
  console.log(chalk2.dim("Network Info:"));
216
219
  console.log(` ${chalk2.yellow("ShadowPay")} runs on ${chalk2.bold("mainnet")} (real private transfers)`);
217
220
  console.log(` ${chalk2.cyan("Veil features")} run on ${chalk2.bold("devnet")} (voting, staking, multisig)`);
218
221
  console.log();
219
- } else {
220
- program.parse();
221
222
  }
223
+ program.parse();
@@ -24,8 +24,7 @@ import {
24
24
  generateVeilHooks,
25
25
  generateVeilProvider,
26
26
  generateWalletButton
27
- } from "./chunk-QWU7D5FV.js";
28
- import "./chunk-QGM4M3NI.js";
27
+ } from "./chunk-ZVIMTG22.js";
29
28
  export {
30
29
  generateAccessTs,
31
30
  generateAppEntry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-veil-app",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Privacy-first project scaffolding CLI for Solana - 15 templates with full Veil + ShadowWire stack",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "homepage": "https://veil-protocol.io",
39
39
  "dependencies": {
40
- "@fezzola/veil-sdk": "^0.1.0",
40
+ "@veil-protocol/sdk": "^0.1.0",
41
41
  "@solana/web3.js": "^1.87.0",
42
42
  "chalk": "^5.3.0",
43
43
  "commander": "^12.0.0",
@@ -1,37 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __commonJS = (cb, mod) => function __require2() {
14
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from))
19
- if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
- mod
31
- ));
32
-
33
- export {
34
- __require,
35
- __commonJS,
36
- __toESM
37
- };