@wraps.dev/cli 2.30.2 → 3.0.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 (147) hide show
  1. package/README.md +11 -14
  2. package/dist/cli.js +952 -2214
  3. package/dist/cli.js.map +1 -1
  4. package/dist/console/assets/{index-P0x5JCC4.js → index--39O8UcT.js} +3 -3
  5. package/dist/console/assets/index-D6au_OkL.css +1 -0
  6. package/dist/console/index.html +2 -2
  7. package/dist/lambda/agent-enforcer/.bundled +1 -1
  8. package/dist/lambda/event-processor/.bundled +1 -1
  9. package/dist/lambda/inbound-processor/.bundled +1 -1
  10. package/dist/lambda/sms-event-processor/.bundled +1 -1
  11. package/package.json +3 -4
  12. package/dist/api-lambda.zip +0 -0
  13. package/dist/console/assets/index-BP4FpEpn.css +0 -1
  14. package/dist/selfhost-migrations/0000_absent_rogue.sql +0 -203
  15. package/dist/selfhost-migrations/0001_polite_maverick.sql +0 -17
  16. package/dist/selfhost-migrations/0002_perpetual_scorpion.sql +0 -1
  17. package/dist/selfhost-migrations/0003_wealthy_absorbing_man.sql +0 -1
  18. package/dist/selfhost-migrations/0004_opposite_blur.sql +0 -1
  19. package/dist/selfhost-migrations/0005_clear_terror.sql +0 -4
  20. package/dist/selfhost-migrations/0006_soft_black_widow.sql +0 -20
  21. package/dist/selfhost-migrations/0007_dazzling_saracen.sql +0 -124
  22. package/dist/selfhost-migrations/0008_broad_hannibal_king.sql +0 -33
  23. package/dist/selfhost-migrations/0009_bouncy_mystique.sql +0 -73
  24. package/dist/selfhost-migrations/0010_cheerful_valeria_richards.sql +0 -18
  25. package/dist/selfhost-migrations/0011_absent_thunderbolts.sql +0 -2
  26. package/dist/selfhost-migrations/0012_demonic_donald_blake.sql +0 -1
  27. package/dist/selfhost-migrations/0013_nifty_preak.sql +0 -143
  28. package/dist/selfhost-migrations/0014_hesitant_beast.sql +0 -2
  29. package/dist/selfhost-migrations/0015_blue_giant_girl.sql +0 -1
  30. package/dist/selfhost-migrations/0016_cooing_overlord.sql +0 -1
  31. package/dist/selfhost-migrations/0017_tranquil_ender_wiggin.sql +0 -11
  32. package/dist/selfhost-migrations/0018_talented_groot.sql +0 -8
  33. package/dist/selfhost-migrations/0019_ambitious_devos.sql +0 -3
  34. package/dist/selfhost-migrations/0020_misty_master_mold.sql +0 -95
  35. package/dist/selfhost-migrations/0021_regular_harrier.sql +0 -14
  36. package/dist/selfhost-migrations/0022_sour_blizzard.sql +0 -10
  37. package/dist/selfhost-migrations/0023_flawless_psynapse.sql +0 -1
  38. package/dist/selfhost-migrations/0024_premium_blindfold.sql +0 -1
  39. package/dist/selfhost-migrations/0025_unusual_santa_claus.sql +0 -1
  40. package/dist/selfhost-migrations/0026_volatile_pandemic.sql +0 -2
  41. package/dist/selfhost-migrations/0027_workable_logan.sql +0 -4
  42. package/dist/selfhost-migrations/0028_familiar_prodigy.sql +0 -1
  43. package/dist/selfhost-migrations/0029_cute_maddog.sql +0 -13
  44. package/dist/selfhost-migrations/0030_adorable_scarecrow.sql +0 -1
  45. package/dist/selfhost-migrations/0031_material_slapstick.sql +0 -10
  46. package/dist/selfhost-migrations/0032_hot_dust.sql +0 -11
  47. package/dist/selfhost-migrations/0033_slow_deathbird.sql +0 -1
  48. package/dist/selfhost-migrations/0034_lush_rafael_vega.sql +0 -12
  49. package/dist/selfhost-migrations/0035_normal_red_hulk.sql +0 -8
  50. package/dist/selfhost-migrations/0036_marvelous_ezekiel.sql +0 -1
  51. package/dist/selfhost-migrations/0037_swift_talisman.sql +0 -8
  52. package/dist/selfhost-migrations/0038_first_mandroid.sql +0 -1
  53. package/dist/selfhost-migrations/0039_fixed_stryfe.sql +0 -1
  54. package/dist/selfhost-migrations/0040_add_channel_check_constraints.sql +0 -2
  55. package/dist/selfhost-migrations/0041_black_spencer_smythe.sql +0 -1
  56. package/dist/selfhost-migrations/0042_plain_marvel_zombies.sql +0 -2
  57. package/dist/selfhost-migrations/0043_curved_champions.sql +0 -1
  58. package/dist/selfhost-migrations/0044_clean_iceman.sql +0 -1
  59. package/dist/selfhost-migrations/0045_condemned_steel_serpent.sql +0 -1
  60. package/dist/selfhost-migrations/0046_steep_ultimo.sql +0 -2
  61. package/dist/selfhost-migrations/0047_empty_sleepwalker.sql +0 -2
  62. package/dist/selfhost-migrations/0048_cheerful_multiple_man.sql +0 -1
  63. package/dist/selfhost-migrations/0049_nostalgic_loki.sql +0 -3
  64. package/dist/selfhost-migrations/0050_add_engagement_metadata.sql +0 -4
  65. package/dist/selfhost-migrations/0051_odd_marrow.sql +0 -2
  66. package/dist/selfhost-migrations/0052_redundant_siren.sql +0 -5
  67. package/dist/selfhost-migrations/0053_soft_carnage.sql +0 -31
  68. package/dist/selfhost-migrations/0054_blushing_vin_gonzales.sql +0 -1
  69. package/dist/selfhost-migrations/0055_broadcast_resume_columns.sql +0 -12
  70. package/dist/selfhost-migrations/0056_broadcast_resume_dedup_cleanup.sql +0 -31
  71. package/dist/selfhost-migrations/0057_audit_log_actoremail_jsonb.sql +0 -5
  72. package/dist/selfhost-migrations/0058_email_log_sent_at_idx.sql +0 -1
  73. package/dist/selfhost-migrations/0059_message_send_claimed_at.sql +0 -1
  74. package/dist/selfhost-migrations/0060_harsh_nehzno.sql +0 -1
  75. package/dist/selfhost-migrations/0061_flashy_spirit.sql +0 -1
  76. package/dist/selfhost-migrations/0062_next_timeslip.sql +0 -2
  77. package/dist/selfhost-migrations/0063_greedy_legion.sql +0 -17
  78. package/dist/selfhost-migrations/0064_wise_brood.sql +0 -42
  79. package/dist/selfhost-migrations/0065_public_the_fallen.sql +0 -2
  80. package/dist/selfhost-migrations/0066_odd_yellow_claw.sql +0 -3
  81. package/dist/selfhost-migrations/CLAUDE.md +0 -49
  82. package/dist/selfhost-migrations/meta/0000_snapshot.json +0 -1311
  83. package/dist/selfhost-migrations/meta/0001_snapshot.json +0 -1454
  84. package/dist/selfhost-migrations/meta/0002_snapshot.json +0 -1460
  85. package/dist/selfhost-migrations/meta/0003_snapshot.json +0 -1467
  86. package/dist/selfhost-migrations/meta/0004_snapshot.json +0 -1473
  87. package/dist/selfhost-migrations/meta/0005_snapshot.json +0 -1499
  88. package/dist/selfhost-migrations/meta/0006_snapshot.json +0 -1617
  89. package/dist/selfhost-migrations/meta/0007_snapshot.json +0 -2581
  90. package/dist/selfhost-migrations/meta/0008_snapshot.json +0 -2861
  91. package/dist/selfhost-migrations/meta/0009_snapshot.json +0 -3447
  92. package/dist/selfhost-migrations/meta/0010_snapshot.json +0 -3586
  93. package/dist/selfhost-migrations/meta/0011_snapshot.json +0 -3600
  94. package/dist/selfhost-migrations/meta/0012_snapshot.json +0 -3607
  95. package/dist/selfhost-migrations/meta/0013_snapshot.json +0 -4697
  96. package/dist/selfhost-migrations/meta/0014_snapshot.json +0 -4704
  97. package/dist/selfhost-migrations/meta/0015_snapshot.json +0 -4697
  98. package/dist/selfhost-migrations/meta/0016_snapshot.json +0 -4703
  99. package/dist/selfhost-migrations/meta/0017_snapshot.json +0 -4769
  100. package/dist/selfhost-migrations/meta/0018_snapshot.json +0 -4821
  101. package/dist/selfhost-migrations/meta/0019_snapshot.json +0 -4840
  102. package/dist/selfhost-migrations/meta/0020_snapshot.json +0 -5602
  103. package/dist/selfhost-migrations/meta/0021_snapshot.json +0 -5729
  104. package/dist/selfhost-migrations/meta/0022_snapshot.json +0 -5792
  105. package/dist/selfhost-migrations/meta/0023_snapshot.json +0 -5799
  106. package/dist/selfhost-migrations/meta/0024_snapshot.json +0 -5821
  107. package/dist/selfhost-migrations/meta/0025_snapshot.json +0 -5831
  108. package/dist/selfhost-migrations/meta/0026_snapshot.json +0 -5844
  109. package/dist/selfhost-migrations/meta/0027_snapshot.json +0 -5864
  110. package/dist/selfhost-migrations/meta/0028_snapshot.json +0 -5871
  111. package/dist/selfhost-migrations/meta/0029_snapshot.json +0 -5984
  112. package/dist/selfhost-migrations/meta/0030_snapshot.json +0 -5990
  113. package/dist/selfhost-migrations/meta/0031_snapshot.json +0 -5950
  114. package/dist/selfhost-migrations/meta/0032_snapshot.json +0 -6042
  115. package/dist/selfhost-migrations/meta/0033_snapshot.json +0 -6057
  116. package/dist/selfhost-migrations/meta/0034_snapshot.json +0 -6130
  117. package/dist/selfhost-migrations/meta/0035_snapshot.json +0 -6195
  118. package/dist/selfhost-migrations/meta/0036_snapshot.json +0 -6201
  119. package/dist/selfhost-migrations/meta/0037_snapshot.json +0 -6265
  120. package/dist/selfhost-migrations/meta/0038_snapshot.json +0 -6271
  121. package/dist/selfhost-migrations/meta/0039_snapshot.json +0 -6278
  122. package/dist/selfhost-migrations/meta/0041_snapshot.json +0 -6284
  123. package/dist/selfhost-migrations/meta/0042_snapshot.json +0 -6297
  124. package/dist/selfhost-migrations/meta/0043_snapshot.json +0 -6297
  125. package/dist/selfhost-migrations/meta/0044_snapshot.json +0 -6297
  126. package/dist/selfhost-migrations/meta/0045_snapshot.json +0 -6303
  127. package/dist/selfhost-migrations/meta/0046_snapshot.json +0 -6315
  128. package/dist/selfhost-migrations/meta/0047_snapshot.json +0 -6330
  129. package/dist/selfhost-migrations/meta/0048_snapshot.json +0 -6336
  130. package/dist/selfhost-migrations/meta/0049_snapshot.json +0 -6366
  131. package/dist/selfhost-migrations/meta/0050_snapshot.json +0 -6390
  132. package/dist/selfhost-migrations/meta/0051_snapshot.json +0 -6403
  133. package/dist/selfhost-migrations/meta/0052_snapshot.json +0 -6470
  134. package/dist/selfhost-migrations/meta/0053_snapshot.json +0 -6470
  135. package/dist/selfhost-migrations/meta/0054_snapshot.json +0 -6646
  136. package/dist/selfhost-migrations/meta/0055_snapshot.json +0 -6713
  137. package/dist/selfhost-migrations/meta/0056_snapshot.json +0 -6713
  138. package/dist/selfhost-migrations/meta/0057_snapshot.json +0 -6731
  139. package/dist/selfhost-migrations/meta/0059_snapshot.json +0 -6764
  140. package/dist/selfhost-migrations/meta/0060_snapshot.json +0 -7125
  141. package/dist/selfhost-migrations/meta/0061_snapshot.json +0 -7131
  142. package/dist/selfhost-migrations/meta/0062_snapshot.json +0 -7143
  143. package/dist/selfhost-migrations/meta/0063_snapshot.json +0 -7282
  144. package/dist/selfhost-migrations/meta/0064_snapshot.json +0 -7626
  145. package/dist/selfhost-migrations/meta/0065_snapshot.json +0 -7662
  146. package/dist/selfhost-migrations/meta/0066_snapshot.json +0 -7682
  147. package/dist/selfhost-migrations/meta/_journal.json +0 -475
package/README.md CHANGED
@@ -101,11 +101,11 @@ npm install @wraps.dev/sms
101
101
  **Send your first email:**
102
102
 
103
103
  ```typescript
104
- import { Wraps } from '@wraps.dev/email';
104
+ import { WrapsEmail } from '@wraps.dev/email';
105
105
 
106
- const wraps = new Wraps();
106
+ const email = new WrapsEmail();
107
107
 
108
- await wraps.emails.send({
108
+ await email.send({
109
109
  from: 'hello@yourapp.com',
110
110
  to: 'user@example.com',
111
111
  subject: 'Welcome!',
@@ -116,11 +116,11 @@ await wraps.emails.send({
116
116
  **Send your first SMS:**
117
117
 
118
118
  ```typescript
119
- import { Wraps } from '@wraps.dev/sms';
119
+ import { WrapsSMS } from '@wraps.dev/sms';
120
120
 
121
- const wraps = new Wraps();
121
+ const sms = new WrapsSMS();
122
122
 
123
- await wraps.sms.send({
123
+ await sms.send({
124
124
  to: '+14155551234',
125
125
  message: 'Your code is 123456',
126
126
  });
@@ -363,22 +363,19 @@ wraps cdn init --provider vercel --region us-east-1 --domain cdn.myapp.com
363
363
  Run the Wraps control plane in your own AWS account instead of app.wraps.dev.
364
364
  Requires an enterprise license key.
365
365
 
366
+ Deploy it with `pnpm selfhost:deploy` from a fork — see the
367
+ [self-hosted guide](https://wraps.dev/docs/guides/self-hosted). These commands
368
+ operate on a deployment that already exists:
369
+
366
370
  | Command | Description |
367
371
  |---------|-------------|
368
- | `wraps selfhost deploy` | Deploy an API-only control plane to your AWS account |
369
- | `wraps selfhost upgrade` | Rebuild and redeploy the self-hosted API |
370
372
  | `wraps selfhost status` | Show self-hosted deployment details |
371
373
  | `wraps selfhost env` | Print env vars for hosting `apps/web` against your control plane |
372
374
  | `wraps selfhost login` | Sign in to your self-hosted instance (not wraps.dev) |
373
375
  | `wraps selfhost logout` | Sign out of your self-hosted instance |
374
376
  | `wraps selfhost connect` | Connect your AWS account to your self-hosted instance |
375
377
  | `wraps selfhost update-role` | Refresh your self-hosted console role's permissions |
376
- | `wraps selfhost destroy` | Tear down the self-hosted control plane |
377
-
378
- `wraps selfhost deploy` gives you the API only — you host the dashboard
379
- yourself. For the full platform (API, dashboard, and workers) deployed via SST
380
- from a fork, see the [self-hosted guide](https://wraps.dev/docs/guides/self-hosted).
381
- The two variants cannot coexist in one AWS account.
378
+ | `wraps selfhost logs` | Stream logs from your self-hosted API, dashboard, and workers |
382
379
 
383
380
  `selfhost connect` and `selfhost update-role` write
384
381
  `wraps-selfhost-console-access-role`, which trusts your own AWS account. Their