@percher/core 0.4.24 → 0.4.27

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 (67) hide show
  1. package/dist/commands/deploy-repo.d.ts.map +1 -1
  2. package/dist/commands/deploy-repo.js +8 -3
  3. package/dist/commands/deploy-repo.js.map +1 -1
  4. package/dist/commands/doctor.d.ts +23 -8
  5. package/dist/commands/doctor.d.ts.map +1 -1
  6. package/dist/commands/doctor.js +162 -33
  7. package/dist/commands/doctor.js.map +1 -1
  8. package/dist/commands/github.d.ts +2 -0
  9. package/dist/commands/github.d.ts.map +1 -1
  10. package/dist/commands/github.js +38 -8
  11. package/dist/commands/github.js.map +1 -1
  12. package/dist/commands/login.d.ts +1 -0
  13. package/dist/commands/login.d.ts.map +1 -1
  14. package/dist/commands/login.js +46 -1
  15. package/dist/commands/login.js.map +1 -1
  16. package/dist/commands/migrate-supabase-rewrite.d.ts.map +1 -1
  17. package/dist/commands/migrate-supabase-rewrite.js +9 -2
  18. package/dist/commands/migrate-supabase-rewrite.js.map +1 -1
  19. package/dist/commands/migrate-supabase-schema.d.ts.map +1 -1
  20. package/dist/commands/migrate-supabase-schema.js +9 -1
  21. package/dist/commands/migrate-supabase-schema.js.map +1 -1
  22. package/dist/commands/migrate-supabase-status.js +3 -1
  23. package/dist/commands/migrate-supabase-status.js.map +1 -1
  24. package/dist/commands/migrate-supabase.d.ts.map +1 -1
  25. package/dist/commands/migrate-supabase.js +21 -5
  26. package/dist/commands/migrate-supabase.js.map +1 -1
  27. package/dist/commands/publish-api-error.d.ts +11 -0
  28. package/dist/commands/publish-api-error.d.ts.map +1 -1
  29. package/dist/commands/publish-api-error.js +76 -35
  30. package/dist/commands/publish-api-error.js.map +1 -1
  31. package/dist/commands/publish-from-repo.d.ts.map +1 -1
  32. package/dist/commands/publish-from-repo.js +8 -3
  33. package/dist/commands/publish-from-repo.js.map +1 -1
  34. package/dist/commands/publish-inline.d.ts +11 -2
  35. package/dist/commands/publish-inline.d.ts.map +1 -1
  36. package/dist/commands/publish-inline.js +239 -17
  37. package/dist/commands/publish-inline.js.map +1 -1
  38. package/dist/commands/publish.d.ts.map +1 -1
  39. package/dist/commands/publish.js +3 -1
  40. package/dist/commands/publish.js.map +1 -1
  41. package/dist/commands/push.d.ts.map +1 -1
  42. package/dist/commands/push.js +24 -12
  43. package/dist/commands/push.js.map +1 -1
  44. package/dist/commands/redeploy.d.ts.map +1 -1
  45. package/dist/commands/redeploy.js +34 -19
  46. package/dist/commands/redeploy.js.map +1 -1
  47. package/dist/commands/wait-deploy.d.ts +10 -0
  48. package/dist/commands/wait-deploy.d.ts.map +1 -1
  49. package/dist/commands/wait-deploy.js +32 -3
  50. package/dist/commands/wait-deploy.js.map +1 -1
  51. package/dist/index.d.ts +3 -2
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +5 -3
  54. package/dist/index.js.map +1 -1
  55. package/dist/recovery.d.ts +58 -11
  56. package/dist/recovery.d.ts.map +1 -1
  57. package/dist/recovery.js +60 -16
  58. package/dist/recovery.js.map +1 -1
  59. package/dist/templates/ai-files/cursor-percher-mdc.js +2 -2
  60. package/dist/toml-recovery.d.ts.map +1 -1
  61. package/dist/toml-recovery.js +14 -1
  62. package/dist/toml-recovery.js.map +1 -1
  63. package/dist/untrusted.d.ts +111 -0
  64. package/dist/untrusted.d.ts.map +1 -0
  65. package/dist/untrusted.js +224 -0
  66. package/dist/untrusted.js.map +1 -0
  67. package/package.json +4 -4
@@ -0,0 +1,224 @@
1
+ import { relative } from "node:path";
2
+ /**
3
+ * Validators for values that arrive from outside this process.
4
+ *
5
+ * Two consumers, one contract: the CLI/MCP publish paths in this package and
6
+ * the MCP error boundary in `@percher/mcp`. Both build `recovery.prompt`
7
+ * strings, and agents are instructed to relay a prompt to the user verbatim
8
+ * and to dispatch on `recovery.args` — so a prompt is an instruction channel,
9
+ * not a log line.
10
+ *
11
+ * The API is not a trusted source for that channel. Its error messages splice
12
+ * in text from third parties (a clone failure carries the remote git host's
13
+ * stderr), and `PERCHER_API_URL` is configurable, so the endpoint itself may
14
+ * not be Percher's. The rule these helpers exist to enforce: a prompt is fixed
15
+ * text plus values that were *checked here*; free-form prose stays in the
16
+ * diagnostic fields (`error.message` / `explanation` / `summary`) where it is
17
+ * data rather than instruction.
18
+ *
19
+ * Every helper returns null (or an empty list) rather than a coerced value, so
20
+ * a caller that forgets to handle the null degrades to a vaguer prompt instead
21
+ * of rendering something unchecked.
22
+ */
23
+ /** Seconds a caller should wait, or null. Bounded to a day — the longest real
24
+ * Percher limiter window is 24 h, and an unbounded number renders absurd
25
+ * waits ("retry in 4·10^9 s") straight into a prompt. */
26
+ export function boundedSeconds(value, maxSeconds = 86_400) {
27
+ if (typeof value !== "number" || !Number.isFinite(value))
28
+ return null;
29
+ if (value <= 0 || value > maxSeconds)
30
+ return null;
31
+ return Math.ceil(value);
32
+ }
33
+ /** A non-negative counter (quota used/limit), or null. Bounded so a prompt
34
+ * can't be made to render an arbitrary attacker-chosen number.
35
+ *
36
+ * A fractional count is rejected rather than floored: "4.9 of 5.9 deploys"
37
+ * is not a real counter, and silently rendering it as "4/5" would state a
38
+ * quota figure that no counter ever held. */
39
+ export function boundedCount(value, max = 1_000_000) {
40
+ if (typeof value !== "number" || !Number.isInteger(value))
41
+ return null;
42
+ if (value < 0 || value > max)
43
+ return null;
44
+ return value;
45
+ }
46
+ const ISO_INSTANT = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?(?:Z|([+-])(\d{2}):(\d{2}))$/;
47
+ function daysInMonth(year, month) {
48
+ // month is 1-based. Day 0 of the next month is the last day of this one.
49
+ return new Date(Date.UTC(year, month, 0)).getUTCDate();
50
+ }
51
+ /**
52
+ * A real ISO-8601 instant, or null — never free-form prose.
53
+ *
54
+ * The shape regex alone would accept impossible values, and a `Date` parse is
55
+ * not enough either: JS rolls overflowed components over silently, so
56
+ * `2026-02-30` becomes March 2nd rather than an error. Comparing the parsed
57
+ * date back to itself proves nothing for the same reason. So each component is
58
+ * range-checked against the calendar before the instant is bounded to a
59
+ * plausible window.
60
+ */
61
+ export function isoInstant(value, opts = {}) {
62
+ if (typeof value !== "string")
63
+ return null;
64
+ const match = ISO_INSTANT.exec(value);
65
+ if (!match)
66
+ return null;
67
+ const [, y, mo, d, h, mi, s, , offH, offM] = match;
68
+ const year = Number(y);
69
+ const month = Number(mo);
70
+ const day = Number(d);
71
+ if (month < 1 || month > 12)
72
+ return null;
73
+ if (day < 1 || day > daysInMonth(year, month))
74
+ return null;
75
+ if (Number(h) > 23 || Number(mi) > 59)
76
+ return null;
77
+ if (s !== undefined && Number(s) > 59)
78
+ return null;
79
+ // A UTC offset runs to ±14:00 in practice; minutes are still minutes.
80
+ if (offH !== undefined && (Number(offH) > 14 || Number(offM) > 59))
81
+ return null;
82
+ const ms = new Date(value).getTime();
83
+ if (Number.isNaN(ms))
84
+ return null;
85
+ const now = (opts.now ?? Date.now)();
86
+ const delta = ms - now;
87
+ if (delta < -(opts.maxPastMs ?? 60 * 60_000))
88
+ return null;
89
+ if (delta > (opts.maxFutureMs ?? 48 * 60 * 60_000))
90
+ return null;
91
+ return value;
92
+ }
93
+ /**
94
+ * Percher's own error codes are literals at each throw site, but a client
95
+ * boundary can't prove a response came from one: the code is taken from the
96
+ * response body as-is. So a code is only named in a prompt when it *looks*
97
+ * like a code — screaming snake case, bounded length.
98
+ */
99
+ const ERROR_CODE = /^[A-Z][A-Z0-9_]{0,63}$/;
100
+ export function errorCode(value) {
101
+ return typeof value === "string" && ERROR_CODE.test(value) ? value : null;
102
+ }
103
+ /** Which daily deploy counter is exhausted — the OTHER one may still have room. */
104
+ export function quotaKind(value) {
105
+ return value === "live" || value === "preview" ? value : null;
106
+ }
107
+ /** True for the POSIX env-var name shape. */
108
+ export function isEnvKey(value) {
109
+ return typeof value === "string" && /^[A-Za-z_][A-Za-z0-9_]{0,127}$/.test(value);
110
+ }
111
+ /** Shell-safe env var names, deduped and capped. Anything not matching the
112
+ * POSIX env-name shape is dropped rather than rendered. */
113
+ export function envKeyList(value, max = 50) {
114
+ if (!Array.isArray(value))
115
+ return [];
116
+ return [...new Set(value.filter(isEnvKey))].slice(0, max);
117
+ }
118
+ /**
119
+ * An opaque platform identifier (deploy id, app id) safe to name in a prompt,
120
+ * or null.
121
+ *
122
+ * Percher mints these as `dep_<base36>`-style tokens, but a client can't prove
123
+ * a response came from Percher, and these ids get rendered into prompts and
124
+ * into suggested commands. Anything that isn't a bare token is dropped.
125
+ */
126
+ export function idToken(value) {
127
+ return typeof value === "string" && /^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/.test(value) ? value : null;
128
+ }
129
+ /** A 1-based source line/column, or null. */
130
+ export function boundedLine(value, max = 10_000_000) {
131
+ if (typeof value !== "number" || !Number.isInteger(value))
132
+ return null;
133
+ if (value < 1 || value > max)
134
+ return null;
135
+ return value;
136
+ }
137
+ /**
138
+ * Parse `extra.problems` from an API error into entries safe to act on.
139
+ *
140
+ * The value is `unknown` and stays that way until proven otherwise: callers
141
+ * used to type-assert it to an array of objects, so a body carrying
142
+ * `[null, "oops"]`, a bare string, or an object threw a TypeError out of the
143
+ * classifier instead of producing a recovery. Anything that fails validation is
144
+ * dropped rather than coerced — an entry naming a path the agent must not open
145
+ * is worse than no entry at all.
146
+ */
147
+ export function parseRemoteEnvProblems(value, max = 50) {
148
+ if (!Array.isArray(value))
149
+ return [];
150
+ const out = [];
151
+ // Bound what is INSPECTED, not only what is accepted: a body of a million
152
+ // invalid entries followed by one valid one would otherwise be a synchronous
153
+ // scan on the failure path, where the caller is already handling an error.
154
+ const scanLimit = Math.min(value.length, max * 20);
155
+ for (let i = 0; i < scanLimit; i++) {
156
+ const entry = value[i];
157
+ if (typeof entry !== "object" || entry === null || Array.isArray(entry))
158
+ continue;
159
+ const { key, file, line } = entry;
160
+ if (!isEnvKey(key) || !isSafeRelativePath(file))
161
+ continue;
162
+ const parsedLine = boundedLine(line);
163
+ out.push({ key, file, ...(parsedLine !== null ? { line: parsedLine } : {}) });
164
+ if (out.length >= max)
165
+ break;
166
+ }
167
+ return out;
168
+ }
169
+ /**
170
+ * Characters a source path segment may contain. Deliberately an ALLOWLIST.
171
+ *
172
+ * A denylist of the known-bad forms kept losing: `file:///etc/passwd`,
173
+ * `~/.ssh/config` and `%2e%2e/%2e%2e/.ssh/config` are none of "absolute",
174
+ * "drive-qualified" or literally `..`, yet each resolves outside the project
175
+ * once an agent expands a URI, a tilde or a percent-escape. Enumerating what a
176
+ * real source filename looks like is bounded; enumerating every alias for
177
+ * "somewhere else" is not. Note the absence of `:`, `%` and `~`.
178
+ */
179
+ const PATH_SEGMENT = /^[A-Za-z0-9._@+ ()'[\]-]+$/;
180
+ /** DOS device names, which Windows resolves as devices at any directory depth. */
181
+ const RESERVED_DEVICE_NAME = /^(?:CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(?:\.|$)/i;
182
+ /**
183
+ * True for a path that stays inside the project directory.
184
+ *
185
+ * A `fix_config` / `fix_problems` recovery names files for the agent to open
186
+ * and edit, so a path arriving from the API is an instruction about the local
187
+ * filesystem. An agent following the recovery must not be pointed at
188
+ * `/etc/passwd`, `../../.ssh/config`, or any spelling thereof.
189
+ */
190
+ export function isSafeRelativePath(value) {
191
+ if (typeof value !== "string" || value.length === 0 || value.length > 1024)
192
+ return false;
193
+ if (value.includes("\0"))
194
+ return false;
195
+ const segments = value.replace(/\\/g, "/").split("/");
196
+ // A leading "/" yields an empty first segment, so absolute paths fail here
197
+ // too; "." and ".." are rejected by name rather than by character class.
198
+ return segments.every((s) => {
199
+ if (s === "." || s === ".." || !PATH_SEGMENT.test(s))
200
+ return false;
201
+ // Windows strips trailing spaces and dots when it resolves a name, so the
202
+ // character class alone would let ".. " through as a spelling of "..".
203
+ if (/[ .]$/.test(s))
204
+ return false;
205
+ // Reserved DOS device names still resolve to the device, extension or not,
206
+ // so an agent told to edit "NUL.txt" would not be editing a project file.
207
+ return !RESERVED_DEVICE_NAME.test(s);
208
+ });
209
+ }
210
+ /**
211
+ * `abs` rendered relative to `cwd`, or null when that doesn't come out as a
212
+ * safe project-relative path.
213
+ *
214
+ * A directory the caller chose can be named anything the filesystem allows, so
215
+ * naming one inside a prompt an agent relays verbatim needs the same allowlist
216
+ * as any other untrusted path. Returns null for a path outside the project and
217
+ * for `cwd` itself (`relative` gives ""), leaving the caller to phrase those
218
+ * without a path rather than with a bare ".".
219
+ */
220
+ export function projectRelative(cwd, abs) {
221
+ const rel = relative(cwd, abs);
222
+ return isSafeRelativePath(rel) ? rel : null;
223
+ }
224
+ //# sourceMappingURL=untrusted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"untrusted.js","sourceRoot":"","sources":["../src/untrusted.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;0DAE0D;AAC1D,MAAM,UAAU,cAAc,CAAC,KAAc,EAAE,UAAU,GAAG,MAAM;IAChE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACtE,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,UAAU;QAAE,OAAO,IAAI,CAAC;IAClD,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC;AAED;;;;;8CAK8C;AAC9C,MAAM,UAAU,YAAY,CAAC,KAAc,EAAE,GAAG,GAAG,SAAS;IAC1D,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACvE,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,GAAG;QAAE,OAAO,IAAI,CAAC;IAC1C,OAAO,KAAK,CAAC;AACf,CAAC;AAWD,MAAM,WAAW,GACf,6F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,EAAE,EAAE;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QACnE,0EAA0E;QAC1E,uEAAuE;QACvE,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QAClC,2EAA2E;QAC3E,0EAA0E;QAC1E,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,GAAW,EAAE,GAAW;IACtD,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC/B,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percher/core",
3
- "version": "0.4.24",
3
+ "version": "0.4.27",
4
4
  "description": "Core logic and CLI commands for the Percher hosting platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -41,9 +41,9 @@
41
41
  "typecheck": "tsc --noEmit"
42
42
  },
43
43
  "dependencies": {
44
- "@percher/client": "^0.2.20",
45
- "@percher/shared": "^0.1.6",
46
- "@percher/toml": "^0.1.9",
44
+ "@percher/client": "^0.2.21",
45
+ "@percher/shared": "^0.1.7",
46
+ "@percher/toml": "^0.1.10",
47
47
  "@types/jscodeshift": "17.3.0",
48
48
  "cross-spawn": "^7.0.6",
49
49
  "ignore": "^7.0.5",