percher 0.5.12 → 0.5.13

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.
@@ -106572,10 +106572,10 @@ class LogsResource {
106572
106572
  const query = buildLogFilterQuery(options ?? {}, { lines: String(lines) });
106573
106573
  return this.http.get(`/apps/${encodeURIComponent(appId)}/logs?${query}`);
106574
106574
  }
106575
- streamRaw(appRef, options) {
106575
+ streamRaw(appRef, options, signal) {
106576
106576
  const query = buildLogFilterQuery(options ?? {});
106577
106577
  const suffix = query ? `?${query}` : "";
106578
- return this.http.stream(`/apps/${encodeURIComponent(appRef)}/logs/stream${suffix}`);
106578
+ return this.http.stream(`/apps/${encodeURIComponent(appRef)}/logs/stream${suffix}`, signal);
106579
106579
  }
106580
106580
  async* stream(appId, options) {
106581
106581
  const query = buildLogFilterQuery(options ?? {});
@@ -114641,6 +114641,27 @@ function tomlErrorToRecoveryProblems(err) {
114641
114641
  // ../core/dist/commands/env-scan.js
114642
114642
  import { readdirSync as readdirSync3, readFileSync as readFileSync10, statSync as statSync3 } from "node:fs";
114643
114643
  import { join as join22 } from "node:path";
114644
+ function platformInjectedClientEnvKeys(config2) {
114645
+ const data2 = config2.data;
114646
+ if (!data2)
114647
+ return [];
114648
+ switch (data2.mode) {
114649
+ case "pocketbase":
114650
+ return ["VITE_POCKETBASE_URL", "VITE_PERCHER_AI_URL"];
114651
+ case "convex":
114652
+ return data2.convex?.deployment_url ? ["VITE_CONVEX_URL"] : [];
114653
+ case "supabase": {
114654
+ const keys = [];
114655
+ if (data2.supabase?.url)
114656
+ keys.push("VITE_SUPABASE_URL");
114657
+ if (data2.supabase?.anon_key)
114658
+ keys.push("VITE_SUPABASE_ANON_KEY");
114659
+ return keys;
114660
+ }
114661
+ default:
114662
+ return [];
114663
+ }
114664
+ }
114644
114665
  var SOURCE_EXTS = new Set([
114645
114666
  ".ts",
114646
114667
  ".tsx",
@@ -115340,6 +115361,8 @@ ${bullets}`,
115340
115361
  let missingBuildEnvKeys = [];
115341
115362
  try {
115342
115363
  const existingEnvKeys = new Set(Object.keys(await ctx.client.env.list(app.id)));
115364
+ for (const k of platformInjectedClientEnvKeys(config2))
115365
+ existingEnvKeys.add(k);
115343
115366
  missingBuildEnvKeys = scanForMissingBuildEnvRefs(ctx.cwd, existingEnvKeys);
115344
115367
  } catch {}
115345
115368
  if (missingBuildEnvKeys.length > 0 && !input.force) {
@@ -119308,7 +119331,7 @@ async function renderError(stderr, error48) {
119308
119331
  // package.json
119309
119332
  var package_default = {
119310
119333
  name: "percher",
119311
- version: "0.5.12",
119334
+ version: "0.5.13",
119312
119335
  description: "CLI for the Percher hosting platform — publish apps with one command",
119313
119336
  type: "module",
119314
119337
  bin: {
@@ -119333,7 +119356,7 @@ var package_default = {
119333
119356
  },
119334
119357
  dependencies: {
119335
119358
  "@percher/client": "^0.2.16",
119336
- "@percher/core": "^0.4.16",
119359
+ "@percher/core": "^0.4.17",
119337
119360
  "@percher/toml": "^0.1.5",
119338
119361
  cac: "^7.0.0",
119339
119362
  picocolors: "^1.1.1"
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "percher",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "CLI for the Percher hosting platform \u2014 publish apps with one command",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@percher/client": "^0.2.16",
28
- "@percher/core": "^0.4.16",
28
+ "@percher/core": "^0.4.17",
29
29
  "@percher/toml": "^0.1.5",
30
30
  "cac": "^7.0.0",
31
31
  "picocolors": "^1.1.1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "percher",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "CLI for the Percher hosting platform \u2014 publish apps with one command",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@percher/client": "^0.2.16",
28
- "@percher/core": "^0.4.16",
28
+ "@percher/core": "^0.4.17",
29
29
  "@percher/toml": "^0.1.5",
30
30
  "cac": "^7.0.0",
31
31
  "picocolors": "^1.1.1"