@pplethai/cli 0.2.1 → 0.2.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.
package/dist/commands/deploy.js
CHANGED
|
@@ -94,6 +94,14 @@ function report(deps, app, build) {
|
|
|
94
94
|
? "Show the message above to your AI coding agent — it says what to fix."
|
|
95
95
|
: `See what happened at https://console.ppleth.ai/apps/${app.slug}.`);
|
|
96
96
|
}
|
|
97
|
+
// Migrations are the part of a deploy a Builder can't see for themselves —
|
|
98
|
+
// no Cloudflare account (ADR-0001/0002) — so say when some landed. Silence
|
|
99
|
+
// means the database is unchanged (#75).
|
|
100
|
+
const applied = build.migrations.applied ?? [];
|
|
101
|
+
if (applied.length > 0) {
|
|
102
|
+
const what = applied.length === 1 ? "1 migration" : `${applied.length} migrations`;
|
|
103
|
+
deps.out.say(`Applied ${what} to your database.`);
|
|
104
|
+
}
|
|
97
105
|
if (build.status === "unverified") {
|
|
98
106
|
deps.out.say(`${app.name} was updated, but it hasn't answered yet.`);
|
|
99
107
|
deps.out.say(`Give it a minute, then open ${app.url}`);
|
package/package.json
CHANGED
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
"main": "src/index.ts",
|
|
10
10
|
"compatibility_date": "2026-06-01",
|
|
11
11
|
|
|
12
|
+
// Workers Logs: `console.log` and uncaught exceptions are retained, so a
|
|
13
|
+
// 500 in production can be read back instead of guessed at.
|
|
14
|
+
//
|
|
15
|
+
// This setting governs local development only. Your deployed app does not
|
|
16
|
+
// ship this file — the platform uploads the Worker through the Cloudflare
|
|
17
|
+
// API and sets observability itself (workers/src/provisioner/tenant-worker.ts),
|
|
18
|
+
// so logging is on in production whether or not this line survives.
|
|
19
|
+
"observability": { "enabled": true, "head_sampling_rate": 1 },
|
|
20
|
+
|
|
12
21
|
// The React SPA (built to dist/client by Vite) is served for any request
|
|
13
22
|
// that isn't worker-first. "/api/*" is the app's API; "/.pple/*" is reserved
|
|
14
23
|
// for the platform deploy probe. "single-page-application" makes every
|