@stacksjs/defaults 0.75.539 → 0.75.541

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 (152) hide show
  1. package/ai/AGENTS.md +2 -0
  2. package/ai/skills/stacks-actions/SKILL.md +1 -1
  3. package/ai/skills/stacks-auth/SKILL.md +8 -1
  4. package/ai/skills/stacks-dashboard/SKILL.md +196 -3
  5. package/ai/skills/stacks-dependencies/SKILL.md +46 -0
  6. package/ai/skills/stacks-development/SKILL.md +1 -1
  7. package/ai/skills/stacks-flow/SKILL.md +7 -0
  8. package/ai/skills/stacks-hq/SKILL.md +146 -0
  9. package/ai/skills/stacks-models/SKILL.md +21 -3
  10. package/ai/skills/stacks-native/CATALOG.md +22 -9
  11. package/ai/skills/stacks-new-app/SKILL.md +175 -0
  12. package/ai/skills/stacks-repl/SKILL.md +61 -43
  13. package/ai/skills/stacks-stx/SKILL.md +6 -2
  14. package/ai/skills/stacks-upstream/SKILL.md +188 -0
  15. package/ai/skills/stacks-writing-for-agents/SKILL.md +1 -1
  16. package/app/Actions/Dashboard/Data/UserIndexAction.ts +20 -2
  17. package/app/Actions/Dashboard/Models/ModelDestroyAction.ts +48 -12
  18. package/app/Actions/Dashboard/Models/ModelOptionsAction.ts +103 -0
  19. package/app/Actions/Dashboard/Models/ModelRelatedAction.ts +42 -0
  20. package/app/Actions/Dashboard/Models/ModelShowAction.ts +75 -12
  21. package/app/Actions/Dashboard/Models/ModelStoreAction.ts +7 -1
  22. package/app/Actions/Dashboard/Models/ModelUpdateAction.ts +16 -2
  23. package/app/Actions/Dashboard/Models/model-destroy.ts +75 -0
  24. package/app/Actions/Dashboard/Models/model-options.ts +56 -0
  25. package/app/Actions/Dashboard/Models/model-related.ts +202 -0
  26. package/app/Actions/Dashboard/Models/model-relations.ts +172 -0
  27. package/app/Actions/Dashboard/Models/model-write.ts +240 -51
  28. package/app/Actions/Dashboard/Users/UserInviteAction.ts +50 -0
  29. package/app/Actions/Dashboard/Users/user-invitation.ts +110 -0
  30. package/app/Models/Activity.ts +4 -0
  31. package/app/Models/AnalyticsEvent.ts +4 -0
  32. package/app/Models/Automation.ts +4 -0
  33. package/app/Models/AutomationRun.ts +4 -0
  34. package/app/Models/Board.ts +4 -1
  35. package/app/Models/BoardColumn.ts +4 -1
  36. package/app/Models/Campaign.ts +4 -0
  37. package/app/Models/CampaignSend.ts +4 -0
  38. package/app/Models/CampaignVariant.ts +4 -0
  39. package/app/Models/Card.ts +4 -1
  40. package/app/Models/CardAttachment.ts +4 -0
  41. package/app/Models/CommunicationSuppression.ts +4 -0
  42. package/app/Models/ConsentEvent.ts +4 -0
  43. package/app/Models/Deployment.ts +1 -0
  44. package/app/Models/EmailList.ts +4 -0
  45. package/app/Models/EmailListSubscriber.ts +4 -0
  46. package/app/Models/Error.ts +4 -0
  47. package/app/Models/FailedJob.ts +4 -0
  48. package/app/Models/FeedbackToken.ts +4 -0
  49. package/app/Models/GdprRequest.ts +4 -0
  50. package/app/Models/Job.ts +4 -0
  51. package/app/Models/Log.ts +4 -0
  52. package/app/Models/MagicLinkToken.ts +4 -0
  53. package/app/Models/MailPreference.ts +4 -0
  54. package/app/Models/Notification.ts +4 -0
  55. package/app/Models/NotificationDelivery.ts +4 -0
  56. package/app/Models/PersonalAccessToken.ts +4 -0
  57. package/app/Models/QueryLog.ts +4 -0
  58. package/app/Models/Referral.ts +4 -0
  59. package/app/Models/Release.ts +1 -0
  60. package/app/Models/Request.ts +4 -0
  61. package/app/Models/SenderDomain.ts +4 -0
  62. package/app/Models/Site.ts +1 -0
  63. package/app/Models/SiteDomain.ts +4 -0
  64. package/app/Models/SocialPost.ts +4 -0
  65. package/app/Models/StorageItemTask.ts +4 -1
  66. package/app/Models/Subscriber.ts +4 -0
  67. package/app/Models/Subscription.ts +4 -0
  68. package/app/Models/Team.ts +1 -0
  69. package/app/Models/TeamInvitation.ts +1 -0
  70. package/app/Models/TeamMember.ts +1 -0
  71. package/app/Models/UsageEvent.ts +4 -0
  72. package/app/Models/User.ts +15 -3
  73. package/functions/dashboard-model-record.test.ts +276 -18
  74. package/functions/dashboard-model-record.ts +412 -55
  75. package/functions/data.ts +2 -0
  76. package/ide/vscode/package.json +1 -1
  77. package/package.json +5 -5
  78. package/resources/components/Dashboard/Analytics/AnalyticsHub.stx +1 -1
  79. package/resources/components/Dashboard/Analytics/CampaignAnalytics.stx +1 -1
  80. package/resources/components/Dashboard/Analytics/EventAnalytics.stx +1 -1
  81. package/resources/components/Dashboard/Analytics/SalesAnalytics.stx +1 -1
  82. package/resources/components/Dashboard/Analytics/WebAnalyticsBreakdown.stx +1 -1
  83. package/resources/components/Dashboard/App/RequestsOverview.stx +1 -1
  84. package/resources/components/Dashboard/App/SourceInventory.stx +1 -1
  85. package/resources/components/Dashboard/Auth/AccessTokens.stx +1 -1
  86. package/resources/components/Dashboard/Buddy/BuddyAssistant.stx +1 -1
  87. package/resources/components/Dashboard/Ci/CiDashboard.stx +1 -1
  88. package/resources/components/Dashboard/Commerce/Delivery/DeliveryPagination.stx +1 -1
  89. package/resources/components/Dashboard/Commerce/ProductWaitlistDashboard.stx +1 -1
  90. package/resources/components/Dashboard/Commerce/RestaurantWaitlistDashboard.stx +1 -1
  91. package/resources/components/Dashboard/Content/BlogDashboard.stx +1 -1
  92. package/resources/components/Dashboard/DashboardLayout.stx +1 -1
  93. package/resources/components/Dashboard/Data/DataRecords.stx +43 -22
  94. package/resources/components/Dashboard/Data/UserInvite.stx +107 -0
  95. package/resources/components/Dashboard/Email/CapturedMailDashboard.stx +1 -1
  96. package/resources/components/Dashboard/Email/EmailActivityDashboard.stx +1 -1
  97. package/resources/components/Dashboard/Email/InboxDashboard.stx +1 -1
  98. package/resources/components/Dashboard/Email/InboxMessageDetail.stx +2 -2
  99. package/resources/components/Dashboard/Email/InboxSettingsDashboard.stx +1 -1
  100. package/resources/components/Dashboard/Home/DashboardHome.stx +6 -1
  101. package/resources/components/Dashboard/Infrastructure/CloudDashboard.stx +1 -1
  102. package/resources/components/Dashboard/Infrastructure/DnsDashboard.stx +1 -1
  103. package/resources/components/Dashboard/Infrastructure/HealthDashboard.stx +1 -1
  104. package/resources/components/Dashboard/Infrastructure/InsightsDashboard.stx +1 -1
  105. package/resources/components/Dashboard/Infrastructure/LogsDashboard.stx +1 -1
  106. package/resources/components/Dashboard/Infrastructure/MailboxesDashboard.stx +1 -1
  107. package/resources/components/Dashboard/Infrastructure/ServerDetailsDashboard.stx +1 -1
  108. package/resources/components/Dashboard/Infrastructure/ServerlessDashboard.stx +1 -1
  109. package/resources/components/Dashboard/Infrastructure/ServersDashboard.stx +1 -1
  110. package/resources/components/Dashboard/Jobs/JobDetail.stx +1 -1
  111. package/resources/components/Dashboard/Jobs/JobTable.stx +2 -2
  112. package/resources/components/Dashboard/Kanban/KanbanBoardDashboard.stx +1 -1
  113. package/resources/components/Dashboard/Kanban/KanbanBoardsDashboard.stx +1 -1
  114. package/resources/components/Dashboard/Management/PermissionsDashboard.stx +1 -1
  115. package/resources/components/Dashboard/Marketing/AbandonedCartsDashboard.stx +1 -1
  116. package/resources/components/Dashboard/Marketing/CampaignsDashboard.stx +1 -1
  117. package/resources/components/Dashboard/Marketing/MarketingListsDashboard.stx +1 -1
  118. package/resources/components/Dashboard/Marketing/SocialPostsDashboard.stx +1 -1
  119. package/resources/components/Dashboard/Models/ModelFieldInputs.stx +125 -0
  120. package/resources/components/Dashboard/Models/ModelRecordCreate.stx +24 -66
  121. package/resources/components/Dashboard/Models/ModelRecordDetail.stx +36 -8
  122. package/resources/components/Dashboard/Models/ModelRecordEdit.stx +36 -32
  123. package/resources/components/Dashboard/Models/ModelRecordsDashboard.stx +72 -28
  124. package/resources/components/Dashboard/Models/ModelRelatedPanels.stx +99 -0
  125. package/resources/components/Dashboard/Models/ModelRelationPicker.stx +247 -0
  126. package/resources/components/Dashboard/Models/ModelsOverview.stx +1 -1
  127. package/resources/components/Dashboard/Notifications/NotificationDeliveries.stx +1 -1
  128. package/resources/components/Dashboard/Notifications/NotificationDeliveryHistory.stx +1 -1
  129. package/resources/components/Dashboard/Notifications/NotificationDeliveryOverview.stx +1 -1
  130. package/resources/components/Dashboard/Queries/QueryDashboard.stx +1 -1
  131. package/resources/components/Dashboard/Queries/QueryDetail.stx +1 -1
  132. package/resources/components/Dashboard/Queue/QueueDashboard.stx +1 -1
  133. package/resources/components/Dashboard/Realtime/RealtimeDashboard.stx +1 -1
  134. package/resources/components/Dashboard/Releases/ReleaseDashboard.stx +1 -1
  135. package/resources/components/Dashboard/Search/SearchEngineDashboard.stx +1 -1
  136. package/resources/components/Dashboard/Settings/MailSettingsDashboard.stx +1 -1
  137. package/resources/components/Dashboard/Settings/SettingsDashboard.stx +1 -1
  138. package/resources/components/Dashboard/Teams/TeamPeopleDashboard.stx +1 -1
  139. package/resources/components/Dashboard/UI/Drawer.stx +1 -1
  140. package/resources/components/Dashboard/UI/Input.stx +3 -2
  141. package/resources/components/Dashboard/UI/Modal.stx +1 -1
  142. package/resources/components/Dashboard/UI/Select.stx +8 -4
  143. package/resources/components/Dashboard/UI/Textarea.stx +18 -12
  144. package/resources/emails/password-reset.stx +3 -1
  145. package/routes/dashboard-api.ts +9 -0
  146. package/scaffold/config/analytics.ts +5 -3
  147. package/scaffold/resources/components/NextStep.stx +13 -0
  148. package/scaffold/resources/partials/head.stx +31 -0
  149. package/scaffold/resources/views/index.stx +23 -47
  150. package/scaffold/resources/views/layouts/default.stx +23 -0
  151. package/views/dashboard/data/users/invite.stx +8 -0
  152. package/views/dashboard/layouts/default.stx +21 -2
@@ -107,4 +107,8 @@ export default defineModel({
107
107
  factory: faker => faker.number.int({ min: 1000, max: 500_000 }),
108
108
  },
109
109
  },
110
+
111
+ dashboard: {
112
+ columns: ['path', 'card', 'mimeType', 'sizeBytes', 'createdAt'],
113
+ },
110
114
  } as const)
@@ -20,4 +20,8 @@ export default defineModel({
20
20
  suppressedAt: { required: true, fillable: true, validation: { rule: schema.timestamp() }, factory: () => new Date().toISOString() },
21
21
  liftedAt: { required: false, fillable: false, validation: { rule: schema.timestamp() }, factory: () => null },
22
22
  },
23
+
24
+ dashboard: {
25
+ columns: ['recipient', 'channel', 'reason', 'suppressedAt', 'liftedAt'],
26
+ },
23
27
  } as const)
@@ -28,4 +28,8 @@ export default defineModel({
28
28
  ipAddress: { personal: true, required: false, fillable: true, validation: { rule: schema.string().max(45) }, factory: faker => faker.internet.ip() },
29
29
  occurredAt: { required: true, fillable: true, validation: { rule: schema.timestamp() }, factory: () => new Date().toISOString() },
30
30
  },
31
+
32
+ dashboard: {
33
+ columns: ['recipient', 'channel', 'action', 'purpose', 'occurredAt'],
34
+ },
31
35
  } as const)
@@ -112,6 +112,7 @@ export default defineModel({
112
112
  },
113
113
 
114
114
  dashboard: {
115
+ columns: ['commitMessage', 'branch', 'environment', 'status', 'duration', 'createdAt'],
115
116
  highlight: true,
116
117
  },
117
118
  } as const)
@@ -137,4 +137,8 @@ export default defineModel({
137
137
  factory: () => 1,
138
138
  },
139
139
  },
140
+
141
+ dashboard: {
142
+ columns: ['name', 'status', 'subscriberCount', 'activeCount', 'isPublic', 'createdAt'],
143
+ },
140
144
  } as const)
@@ -89,4 +89,8 @@ export default defineModel({
89
89
  factory: () => null,
90
90
  },
91
91
  },
92
+
93
+ dashboard: {
94
+ columns: ['subscriber', 'emailList', 'status', 'source', 'subscribedAt'],
95
+ },
92
96
  } as const)
@@ -100,4 +100,8 @@ export default defineModel({
100
100
  factory: faker => faker.lorem.paragraph(),
101
101
  },
102
102
  },
103
+
104
+ dashboard: {
105
+ columns: ['type', 'message', 'status', 'createdAt'],
106
+ },
103
107
  } as const)
@@ -86,4 +86,8 @@ export default defineModel({
86
86
  factory: () => '2024-12-23 13:32:19',
87
87
  },
88
88
  },
89
+
90
+ dashboard: {
91
+ columns: ['queue', 'connection', 'exception', 'attempts', 'failedAt'],
92
+ },
89
93
  } as const)
@@ -126,4 +126,8 @@ export default defineModel({
126
126
  factory: () => null,
127
127
  },
128
128
  },
129
+
130
+ dashboard: {
131
+ columns: ['label', 'board', 'expiresAt', 'lastUsedAt', 'revokedAt'],
132
+ },
129
133
  } as const)
@@ -74,4 +74,8 @@ export default defineModel({
74
74
  factory: () => new Date().toISOString(),
75
75
  },
76
76
  },
77
+
78
+ dashboard: {
79
+ columns: ['type', 'subjectId', 'actor', 'status', 'occurredAt'],
80
+ },
77
81
  } as const)
package/app/Models/Job.ts CHANGED
@@ -71,4 +71,8 @@ export default defineModel({
71
71
  factory: () => null,
72
72
  },
73
73
  },
74
+
75
+ dashboard: {
76
+ columns: ['queue', 'attempts', 'availableAt', 'reservedAt', 'createdAt'],
77
+ },
74
78
  } as const)
package/app/Models/Log.ts CHANGED
@@ -133,4 +133,8 @@ export default defineModel({
133
133
  factory: faker => faker.system.filePath().substring(0, 255),
134
134
  },
135
135
  },
136
+
137
+ dashboard: {
138
+ columns: ['timestamp', 'type', 'source', 'message'],
139
+ },
136
140
  } as const)
@@ -89,4 +89,8 @@ export default defineModel({
89
89
  factory: () => null,
90
90
  },
91
91
  },
92
+
93
+ dashboard: {
94
+ columns: ['email', 'user', 'expiresAt', 'consumedAt', 'createdAt'],
95
+ },
92
96
  } as const)
@@ -215,4 +215,8 @@ export default defineModel({
215
215
  },
216
216
  },
217
217
  },
218
+
219
+ dashboard: {
220
+ columns: ['mailbox', 'accountName', 'theme', 'language', 'displayDensity'],
221
+ },
218
222
  } as const)
@@ -69,4 +69,8 @@ export default defineModel({
69
69
  },
70
70
 
71
71
  },
72
+
73
+ dashboard: {
74
+ columns: ['type', 'user', 'readAt', 'createdAt'],
75
+ },
72
76
  } as const)
@@ -107,4 +107,8 @@ export default defineModel({
107
107
  },
108
108
  },
109
109
  },
110
+
111
+ dashboard: {
112
+ columns: ['recipient', 'channel', 'subject', 'status', 'sentAt'],
113
+ },
110
114
  } as const)
@@ -220,4 +220,8 @@ export default defineModel({
220
220
  },
221
221
  },
222
222
  },
223
+
224
+ dashboard: {
225
+ columns: ['name', 'userId', 'scopes', 'revoked', 'expiresAt', 'createdAt'],
226
+ },
223
227
  } as const)
@@ -189,4 +189,8 @@ export default defineModel({
189
189
  },
190
190
  },
191
191
  },
192
+
193
+ dashboard: {
194
+ columns: ['query', 'duration', 'status', 'connection', 'model', 'executedAt'],
195
+ },
192
196
  } as const)
@@ -16,4 +16,8 @@ export default defineModel({
16
16
  status: { required: true, default: 'registered', validation: { rule: schema.enum(['registered', 'qualified']) } },
17
17
  qualifiedAt: { nullable: true, validation: { rule: schema.date() } },
18
18
  },
19
+
20
+ dashboard: {
21
+ columns: ['code', 'status', 'referrerId', 'referredUserId', 'qualifiedAt'],
22
+ },
19
23
  } as const)
@@ -88,6 +88,7 @@ export default defineModel({
88
88
  },
89
89
 
90
90
  dashboard: {
91
+ columns: ['version', 'type', 'status', 'downloads', 'author', 'createdAt'],
91
92
  highlight: true,
92
93
  },
93
94
  } as const)
@@ -144,4 +144,8 @@ export default defineModel({
144
144
  factory: faker => faker.helpers.maybe(() => faker.lorem.sentence(), { probability: 0.2 }),
145
145
  },
146
146
  },
147
+
148
+ dashboard: {
149
+ columns: ['method', 'path', 'statusCode', 'durationMs', 'ipAddress', 'createdAt'],
150
+ },
147
151
  } as const)
@@ -21,4 +21,8 @@ export default defineModel({
21
21
  verifiedAt: { required: false, fillable: true, validation: { rule: schema.timestamp() }, factory: () => null },
22
22
  lastCheckedAt: { required: false, fillable: true, validation: { rule: schema.timestamp() }, factory: () => null },
23
23
  },
24
+
25
+ dashboard: {
26
+ columns: ['domain', 'status', 'team', 'verifiedAt', 'lastCheckedAt'],
27
+ },
24
28
  } as const)
@@ -107,6 +107,7 @@ export default defineModel({
107
107
  },
108
108
 
109
109
  dashboard: {
110
+ columns: ['name', 'subdomain', 'status', 'timezone', 'team'],
110
111
  highlight: true,
111
112
  },
112
113
  })
@@ -75,4 +75,8 @@ export default defineModel({
75
75
  factory: () => 'pending',
76
76
  },
77
77
  },
78
+
79
+ dashboard: {
80
+ columns: ['domain', 'site', 'isPrimary', 'sslStatus', 'verifiedAt'],
81
+ },
78
82
  })
@@ -143,4 +143,8 @@ export default defineModel({
143
143
  factory: faker => faker.string.alphanumeric(20),
144
144
  },
145
145
  },
146
+
147
+ dashboard: {
148
+ columns: ['content', 'platform', 'status', 'scheduledAt', 'publishedAt', 'likes'],
149
+ },
146
150
  } as const)
@@ -136,5 +136,8 @@ export default defineModel({
136
136
  },
137
137
  },
138
138
 
139
- dashboard: { enabled: false },
139
+ dashboard: {
140
+ columns: ['path', 'disk', 'kind', 'state', 'attempts', 'finishedAt'],
141
+ enabled: false,
142
+ },
140
143
  } as const)
@@ -88,4 +88,8 @@ export default defineModel({
88
88
  factory: () => null,
89
89
  },
90
90
  },
91
+
92
+ dashboard: {
93
+ columns: ['email', 'status', 'source', 'user', 'createdAt'],
94
+ },
91
95
  } as const)
@@ -153,4 +153,8 @@ export default defineModel({
153
153
  },
154
154
  },
155
155
  },
156
+
157
+ dashboard: {
158
+ columns: ['plan', 'type', 'providerStatus', 'quantity', 'user', 'endsAt'],
159
+ },
156
160
  } as const)
@@ -75,6 +75,7 @@ export default defineModel({
75
75
  },
76
76
 
77
77
  dashboard: {
78
+ columns: ['name', 'memberCount', 'status', 'createdAt'],
78
79
  highlight: true,
79
80
  },
80
81
  } as const)
@@ -156,6 +156,7 @@ export default defineModel({
156
156
  },
157
157
 
158
158
  dashboard: {
159
+ columns: ['email', 'team', 'role', 'status', 'deliveryStatus', 'expiresAt'],
159
160
  enabled: false,
160
161
  },
161
162
  } as const)
@@ -84,6 +84,7 @@ export default defineModel({
84
84
  },
85
85
 
86
86
  dashboard: {
87
+ columns: ['user', 'team', 'role', 'status', 'createdAt'],
87
88
  enabled: false,
88
89
  },
89
90
  } as const)
@@ -21,4 +21,8 @@ export default defineModel({
21
21
  metadata: { required: false, fillable: true, validation: { rule: schema.json() }, factory: () => JSON.stringify({}) },
22
22
  occurredAt: { required: true, fillable: true, validation: { rule: schema.timestamp() }, factory: () => new Date().toISOString() },
23
23
  },
24
+
25
+ dashboard: {
26
+ columns: ['meter', 'quantity', 'team', 'occurredAt'],
27
+ },
24
28
  } as const)
@@ -77,10 +77,13 @@ export default defineModel({
77
77
  order: 2,
78
78
  fillable: true,
79
79
  validation: {
80
- rule: schema.string().required().min(5).max(100),
80
+ // The same floor registration applies. This rule said five while its
81
+ // message said three, so "Ava" could sign up and then could not have
82
+ // a letter of her name corrected. The ceiling is the column's.
83
+ rule: schema.string().required().min(2).max(100),
81
84
  message: {
82
- min: 'Name must have a minimum of 3 characters',
83
- max: 'Name must have a maximum of 255 characters',
85
+ min: 'Name must have a minimum of 2 characters',
86
+ max: 'Name must have a maximum of 100 characters',
84
87
  },
85
88
  },
86
89
 
@@ -157,5 +160,14 @@ export default defineModel({
157
160
  },
158
161
  dashboard: {
159
162
  highlight: true,
163
+ // The list is for telling accounts apart. The two-factor step, the
164
+ // billing id and the rest are on the account's own page.
165
+ columns: ['name', 'email', 'emailVerifiedAt', 'createdAt'],
166
+ // Operators add, edit and remove accounts from the dashboard. Not through
167
+ // `useApi` above: a generated PATCH would let any signed-in caller change
168
+ // their own email and password outside the flows that verify them.
169
+ // `store` is by invitation: no form can supply a password, so the account
170
+ // is created and its holder is mailed a link to choose one.
171
+ writes: ['store', 'update', 'destroy'],
160
172
  },
161
173
  } as const)