@palettelab/cli 0.3.20 → 0.3.22
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/README.md
CHANGED
|
@@ -75,6 +75,8 @@ the declared Alembic migrations and platform-managed Postgres/RLS.
|
|
|
75
75
|
|
|
76
76
|
`pltt dev --sandbox` skips Docker and publishes a reviewable preview to a configured Palette sandbox. This is the payment-gateway-style flow: your app uses local SDKs, while real platform services such as login, Data Room, storage, database policies, logs, review, and publish lifecycle run in the hosted sandbox. It defaults to `--env staging` unless `--env` or `PALETTE_ENV` is set, adds a 24-hour preview TTL by default, and prints the preview/status/log commands returned by the platform.
|
|
77
77
|
|
|
78
|
+
For developer sandboxes where manual approval should not block OS testing, run the sandbox backend with `APPSTORE_AUTO_APPROVE_SANDBOX_PREVIEWS=true`. Preview publishes are still checked by the automated review gates; passing preview publishes are marked active and synced immediately so backend routes, installs, logs, permissions, and platform APIs can be tested in the OS without Docker.
|
|
79
|
+
|
|
78
80
|
`pltt dev --cloud` is kept as an alias for `--sandbox`.
|
|
79
81
|
|
|
80
82
|
`pltt sandbox --env staging` is the same hosted preview flow as
|
|
@@ -90,6 +92,7 @@ Environment variables:
|
|
|
90
92
|
| `PALETTE_FRONTEND_PORT` | `3000` | Preferred starting host port for the frontend |
|
|
91
93
|
| `PALETTE_BACKEND_PORT` | `8000` | Preferred starting host port for the backend |
|
|
92
94
|
| `PALETTE_DEV_DATABASE_URL` | `.palette/dev/<plugin-id>.sqlite3` | Override the local dev database URL |
|
|
95
|
+
| `APPSTORE_AUTO_APPROVE_SANDBOX_PREVIEWS` | `false` | Backend setting for hosted sandboxes; auto-approve passing preview publishes so developers can test full OS behavior without manual review |
|
|
93
96
|
|
|
94
97
|
### `pltt login`
|
|
95
98
|
|
package/lib/commands/publish.js
CHANGED
|
@@ -210,8 +210,12 @@ async function run(argv, { cwd }) {
|
|
|
210
210
|
console.log(
|
|
211
211
|
`[pltt] published ${record.plugin_id}@${record.version} (status=${record.status})`,
|
|
212
212
|
)
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
if (record.status === "active") {
|
|
214
|
+
console.log(`[pltt] active on ${env.url}`)
|
|
215
|
+
} else {
|
|
216
|
+
console.log(`[pltt] awaiting superadmin review on ${env.url}`)
|
|
217
|
+
}
|
|
218
|
+
if (record.review_url && record.status !== "active") {
|
|
215
219
|
console.log(`[pltt] review queue: ${record.review_url}`)
|
|
216
220
|
}
|
|
217
221
|
if (record.preview_url) {
|
|
@@ -220,7 +224,11 @@ async function run(argv, { cwd }) {
|
|
|
220
224
|
if (record.preview_expires_at) {
|
|
221
225
|
console.log(`[pltt] preview expires: ${record.preview_expires_at}`)
|
|
222
226
|
}
|
|
223
|
-
|
|
227
|
+
if (record.status === "active") {
|
|
228
|
+
console.log(`[pltt] live at ${env.url}${record.catalog_url}`)
|
|
229
|
+
} else {
|
|
230
|
+
console.log(`[pltt] once approved, live at ${env.url}${record.catalog_url}`)
|
|
231
|
+
}
|
|
224
232
|
return record
|
|
225
233
|
}
|
|
226
234
|
|
package/package.json
CHANGED