@whop/cli 0.14.3 → 0.16.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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +33549 -21195
  3. package/dist/index.js.map +1 -1
  4. package/dist/vite.d.ts +1 -1
  5. package/dist/vite.js +37 -1
  6. package/dist/vite.js.map +1 -1
  7. package/package.json +1 -1
  8. package/skills/whop-accounts/SKILL.md +38 -16
  9. package/skills/whop-ad-groups/SKILL.md +8 -8
  10. package/skills/whop-api-keys/SKILL.md +2 -0
  11. package/skills/whop-apps/SKILL.md +19 -4
  12. package/skills/whop-audiences/SKILL.md +3 -3
  13. package/skills/whop-bounties/SKILL.md +28 -0
  14. package/skills/whop-bounty-submissions/SKILL.md +3 -3
  15. package/skills/whop-cards/SKILL.md +2 -2
  16. package/skills/whop-dispute-alerts/SKILL.md +42 -0
  17. package/skills/whop-disputes/SKILL.md +2 -2
  18. package/skills/whop-events/SKILL.md +1 -1
  19. package/skills/whop-exports/SKILL.md +38 -3
  20. package/skills/whop-ledgers/SKILL.md +1 -0
  21. package/skills/whop-memberships/SKILL.md +18 -1
  22. package/skills/whop-notifications/SKILL.md +1 -1
  23. package/skills/whop-payment-method-domains/SKILL.md +93 -0
  24. package/skills/whop-payments/SKILL.md +1 -1
  25. package/skills/whop-payouts/SKILL.md +36 -11
  26. package/skills/whop-people/SKILL.md +1 -1
  27. package/skills/whop-plans/SKILL.md +2 -0
  28. package/skills/whop-products/SKILL.md +1 -0
  29. package/skills/whop-recommended-actions/SKILL.md +59 -0
  30. package/skills/whop-setup-intents/SKILL.md +20 -0
  31. package/skills/whop-social-accounts/SKILL.md +2 -2
  32. package/skills/whop-stats/SKILL.md +2 -0
  33. package/skills/whop-swaps/SKILL.md +2 -1
  34. package/skills/whop-transfers/SKILL.md +2 -2
  35. package/skills/whop-users/SKILL.md +3 -0
  36. package/skills/whop-verifications/SKILL.md +2 -2
package/dist/vite.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from 'vite';
2
2
 
3
- declare function whop(): Plugin;
3
+ declare function whop(): Plugin[];
4
4
 
5
5
  export { whop as default, whop };
package/dist/vite.js CHANGED
@@ -788,7 +788,40 @@ function pack(distDir) {
788
788
  `[whop] packed ${client.length + server.length} files \u2192 dist/${OUTPUT_ZIP} (sha256 ${checksum.slice(0, 12)}\u2026)`
789
789
  );
790
790
  }
791
- function whop() {
791
+ function whopDevServer() {
792
+ return {
793
+ name: "whop-dev-server",
794
+ apply: "serve",
795
+ config() {
796
+ const port = Number(process.env.WHOP_DEV_PORT);
797
+ const publicOrigin = process.env.WHOP_DEV_PUBLIC_ORIGIN;
798
+ const server = {};
799
+ if (Number.isFinite(port) && port > 0) {
800
+ server.port = port;
801
+ server.strictPort = true;
802
+ }
803
+ if (process.env.WHOP_DEV_HOST) server.host = process.env.WHOP_DEV_HOST;
804
+ if (publicOrigin) {
805
+ let parsed;
806
+ try {
807
+ parsed = new URL(publicOrigin);
808
+ } catch {
809
+ parsed = void 0;
810
+ }
811
+ if (parsed) {
812
+ server.allowedHosts = [parsed.hostname];
813
+ server.hmr = {
814
+ protocol: parsed.protocol === "https:" ? "wss" : "ws",
815
+ host: parsed.hostname,
816
+ clientPort: parsed.port ? Number(parsed.port) : parsed.protocol === "https:" ? 443 : 80
817
+ };
818
+ }
819
+ }
820
+ return Object.keys(server).length > 0 ? { server } : {};
821
+ }
822
+ };
823
+ }
824
+ function whopPack() {
792
825
  let distDir = "dist";
793
826
  return {
794
827
  name: "whop-hosting",
@@ -803,6 +836,9 @@ function whop() {
803
836
  }
804
837
  };
805
838
  }
839
+ function whop() {
840
+ return [whopDevServer(), whopPack()];
841
+ }
806
842
  var vite_default = whop;
807
843
  export {
808
844
  vite_default as default,