@percher/core 0.4.28 → 1.0.0

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 (349) hide show
  1. package/LICENSE +132 -0
  2. package/dist/appstore-artifacts.d.ts +8 -0
  3. package/dist/appstore-artifacts.d.ts.map +1 -1
  4. package/dist/appstore-artifacts.js +11 -15
  5. package/dist/appstore-artifacts.js.map +1 -1
  6. package/dist/commands/account.d.ts +1 -1
  7. package/dist/commands/account.js +3 -3
  8. package/dist/commands/account.js.map +1 -1
  9. package/dist/commands/admin-legacy-audit.d.ts +40 -0
  10. package/dist/commands/admin-legacy-audit.d.ts.map +1 -0
  11. package/dist/commands/admin-legacy-audit.js +57 -0
  12. package/dist/commands/admin-legacy-audit.js.map +1 -0
  13. package/dist/commands/admin-legacy-inventory.d.ts +27 -0
  14. package/dist/commands/admin-legacy-inventory.d.ts.map +1 -0
  15. package/dist/commands/admin-legacy-inventory.js +37 -0
  16. package/dist/commands/admin-legacy-inventory.js.map +1 -0
  17. package/dist/commands/admin-migrate-networks.d.ts +15 -0
  18. package/dist/commands/admin-migrate-networks.d.ts.map +1 -0
  19. package/dist/commands/admin-migrate-networks.js +15 -0
  20. package/dist/commands/admin-migrate-networks.js.map +1 -0
  21. package/dist/commands/alerts.js.map +1 -1
  22. package/dist/commands/analytics.js.map +1 -1
  23. package/dist/commands/app-resources.d.ts +1 -1
  24. package/dist/commands/app-resources.js.map +1 -1
  25. package/dist/commands/app-topology.js.map +1 -1
  26. package/dist/commands/appstore-kit.d.ts +1 -1
  27. package/dist/commands/appstore-kit.js +1 -1
  28. package/dist/commands/appstore-kit.js.map +1 -1
  29. package/dist/commands/billing.d.ts +1 -1
  30. package/dist/commands/billing.js.map +1 -1
  31. package/dist/commands/cache.js.map +1 -1
  32. package/dist/commands/capabilities.js.map +1 -1
  33. package/dist/commands/claim.js.map +1 -1
  34. package/dist/commands/dashboard.js.map +1 -1
  35. package/dist/commands/data-export.d.ts.map +1 -1
  36. package/dist/commands/data-export.js +5 -4
  37. package/dist/commands/data-export.js.map +1 -1
  38. package/dist/commands/data-oauth.js.map +1 -1
  39. package/dist/commands/data.js.map +1 -1
  40. package/dist/commands/deploy-repo.js.map +1 -1
  41. package/dist/commands/deploys.js.map +1 -1
  42. package/dist/commands/diagnose.js.map +1 -1
  43. package/dist/commands/diff.js.map +1 -1
  44. package/dist/commands/doctor.d.ts +23 -4
  45. package/dist/commands/doctor.d.ts.map +1 -1
  46. package/dist/commands/doctor.js +58 -9
  47. package/dist/commands/doctor.js.map +1 -1
  48. package/dist/commands/domains.js.map +1 -1
  49. package/dist/commands/env-scan.js.map +1 -1
  50. package/dist/commands/env.d.ts +3 -3
  51. package/dist/commands/env.js.map +1 -1
  52. package/dist/commands/export.d.ts +1 -1
  53. package/dist/commands/generate.js.map +1 -1
  54. package/dist/commands/hooks.js.map +1 -1
  55. package/dist/commands/import-project.d.ts +1 -1
  56. package/dist/commands/import-project.js.map +1 -1
  57. package/dist/commands/init.d.ts +1 -1
  58. package/dist/commands/init.js.map +1 -1
  59. package/dist/commands/insights.d.ts +28 -0
  60. package/dist/commands/insights.d.ts.map +1 -1
  61. package/dist/commands/insights.js.map +1 -1
  62. package/dist/commands/inspect-link.d.ts +1 -1
  63. package/dist/commands/inspect-link.js.map +1 -1
  64. package/dist/commands/login.js.map +1 -1
  65. package/dist/commands/logs.d.ts +3 -3
  66. package/dist/commands/logs.js.map +1 -1
  67. package/dist/commands/mcp.d.ts +4 -4
  68. package/dist/commands/mcp.d.ts.map +1 -1
  69. package/dist/commands/mcp.js +28 -8
  70. package/dist/commands/mcp.js.map +1 -1
  71. package/dist/commands/migrate-supabase-map.d.ts +1 -1
  72. package/dist/commands/migrate-supabase-map.js.map +1 -1
  73. package/dist/commands/migrate-supabase-schema.d.ts +4 -1
  74. package/dist/commands/migrate-supabase-schema.d.ts.map +1 -1
  75. package/dist/commands/migrate-supabase-schema.js +4 -1
  76. package/dist/commands/migrate-supabase-schema.js.map +1 -1
  77. package/dist/commands/migrate-supabase-scripts.d.ts.map +1 -1
  78. package/dist/commands/migrate-supabase-sdk.d.ts +1 -1
  79. package/dist/commands/migrate-supabase-sdk.js.map +1 -1
  80. package/dist/commands/migrate-supabase-status.js.map +1 -1
  81. package/dist/commands/migrate-supabase.d.ts +1 -1
  82. package/dist/commands/migrate-supabase.js +1 -1
  83. package/dist/commands/open.js.map +1 -1
  84. package/dist/commands/preview-branch.js.map +1 -1
  85. package/dist/commands/publish-api-error.d.ts +12 -2
  86. package/dist/commands/publish-api-error.d.ts.map +1 -1
  87. package/dist/commands/publish-api-error.js +128 -5
  88. package/dist/commands/publish-api-error.js.map +1 -1
  89. package/dist/commands/publish-failure.d.ts.map +1 -1
  90. package/dist/commands/publish-failure.js +47 -32
  91. package/dist/commands/publish-failure.js.map +1 -1
  92. package/dist/commands/publish-inline.d.ts +1 -1
  93. package/dist/commands/publish-inline.js +1 -1
  94. package/dist/commands/publish.d.ts.map +1 -1
  95. package/dist/commands/publish.js +48 -10
  96. package/dist/commands/publish.js.map +1 -1
  97. package/dist/commands/push.d.ts.map +1 -1
  98. package/dist/commands/push.js +11 -1
  99. package/dist/commands/push.js.map +1 -1
  100. package/dist/commands/redeploy.js.map +1 -1
  101. package/dist/commands/reproduce.js.map +1 -1
  102. package/dist/commands/reset-superuser.js.map +1 -1
  103. package/dist/commands/restore.d.ts +1 -1
  104. package/dist/commands/restore.js.map +1 -1
  105. package/dist/commands/resume.js.map +1 -1
  106. package/dist/commands/rollback.d.ts +2 -1
  107. package/dist/commands/rollback.d.ts.map +1 -1
  108. package/dist/commands/rollback.js +74 -4
  109. package/dist/commands/rollback.js.map +1 -1
  110. package/dist/commands/sharing.js.map +1 -1
  111. package/dist/commands/status.js.map +1 -1
  112. package/dist/commands/token.d.ts +2 -2
  113. package/dist/commands/transfers.js.map +1 -1
  114. package/dist/commands/versions.d.ts +12 -0
  115. package/dist/commands/versions.d.ts.map +1 -1
  116. package/dist/commands/versions.js.map +1 -1
  117. package/dist/commands/wait-deploy.d.ts +1 -1
  118. package/dist/error-classifier.d.ts +1 -1
  119. package/dist/error-classifier.d.ts.map +1 -1
  120. package/dist/error-classifier.js +66 -0
  121. package/dist/error-classifier.js.map +1 -1
  122. package/dist/errors.d.ts +1 -1
  123. package/dist/errors.d.ts.map +1 -1
  124. package/dist/errors.js.map +1 -1
  125. package/dist/event-renderer.d.ts.map +1 -1
  126. package/dist/event-renderer.js +12 -2
  127. package/dist/event-renderer.js.map +1 -1
  128. package/dist/index.d.ts +5 -1
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +8 -1
  131. package/dist/index.js.map +1 -1
  132. package/dist/plans.d.ts +23 -1
  133. package/dist/plans.d.ts.map +1 -1
  134. package/dist/plans.js +26 -1
  135. package/dist/plans.js.map +1 -1
  136. package/dist/publish-retry.d.ts.map +1 -1
  137. package/dist/publish-retry.js +26 -1
  138. package/dist/publish-retry.js.map +1 -1
  139. package/dist/recovery.d.ts +25 -2
  140. package/dist/recovery.d.ts.map +1 -1
  141. package/dist/recovery.js +59 -4
  142. package/dist/recovery.js.map +1 -1
  143. package/dist/static-docker.d.ts +8 -13
  144. package/dist/static-docker.d.ts.map +1 -1
  145. package/dist/static-docker.js +38 -27
  146. package/dist/static-docker.js.map +1 -1
  147. package/dist/stream-utils.d.ts +9 -14
  148. package/dist/stream-utils.d.ts.map +1 -1
  149. package/dist/stream-utils.js +164 -0
  150. package/dist/stream-utils.js.map +1 -1
  151. package/dist/structured-error-codes.d.ts +1 -1
  152. package/dist/structured-error-codes.d.ts.map +1 -1
  153. package/dist/structured-error-codes.js +123 -0
  154. package/dist/structured-error-codes.js.map +1 -1
  155. package/dist/templates/ai-files/claude-md.d.ts.map +1 -1
  156. package/dist/templates/ai-files/claude-md.js +18 -1
  157. package/dist/templates/ai-files/claude-md.js.map +1 -1
  158. package/dist/templates/ai-files/cursor-percher-mdc.d.ts.map +1 -1
  159. package/dist/templates/ai-files/cursor-percher-mdc.js +18 -1
  160. package/dist/templates/ai-files/cursor-percher-mdc.js.map +1 -1
  161. package/dist/templates.js.map +1 -1
  162. package/dist/untrusted.js.map +1 -1
  163. package/package.json +9 -8
  164. package/templates/LICENSE +14 -0
  165. package/templates/astro/Caddyfile +6 -0
  166. package/templates/astro/Dockerfile +51 -0
  167. package/templates/astro/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  168. package/templates/astro/astro.config.mjs +3 -0
  169. package/templates/astro/package.json +14 -0
  170. package/templates/astro/percher.toml +11 -0
  171. package/templates/astro/src/pages/index.astro +15 -0
  172. package/templates/bun/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  173. package/templates/bun/index.ts +23 -0
  174. package/templates/bun/package.json +8 -0
  175. package/templates/bun/percher.toml +10 -0
  176. package/templates/capsule/Caddyfile +7 -0
  177. package/templates/capsule/Dockerfile +57 -0
  178. package/templates/capsule/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  179. package/templates/capsule/index.html +12 -0
  180. package/templates/capsule/package.json +20 -0
  181. package/templates/capsule/pb/schema.json +18 -0
  182. package/templates/capsule/percher.toml +13 -0
  183. package/templates/capsule/src/App.tsx +65 -0
  184. package/templates/capsule/src/components/Auth.tsx +75 -0
  185. package/templates/capsule/src/components/SignInWithGoogle.tsx +27 -0
  186. package/templates/capsule/src/lib/ai-client.ts +193 -0
  187. package/templates/capsule/src/lib/ai.ts +15 -0
  188. package/templates/capsule/src/lib/db.ts +14 -0
  189. package/templates/capsule/src/lib/realtime.ts +16 -0
  190. package/templates/capsule/src/main.tsx +5 -0
  191. package/templates/capsule/tsconfig.json +15 -0
  192. package/templates/capsule/vite.config.ts +6 -0
  193. package/templates/django/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  194. package/templates/django/Procfile +1 -0
  195. package/templates/django/app/__init__.py +0 -0
  196. package/templates/django/app/settings.py +44 -0
  197. package/templates/django/app/urls.py +21 -0
  198. package/templates/django/app/wsgi.py +5 -0
  199. package/templates/django/manage.py +19 -0
  200. package/templates/django/percher.toml +12 -0
  201. package/templates/django/requirements.txt +2 -0
  202. package/templates/dotnet/Dockerfile +18 -0
  203. package/templates/dotnet/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  204. package/templates/dotnet/Program.cs +23 -0
  205. package/templates/dotnet/app.csproj +9 -0
  206. package/templates/dotnet/percher.toml +11 -0
  207. package/templates/eleventy/.eleventy.js +12 -0
  208. package/templates/eleventy/Caddyfile +6 -0
  209. package/templates/eleventy/Dockerfile +51 -0
  210. package/templates/eleventy/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  211. package/templates/eleventy/package.json +12 -0
  212. package/templates/eleventy/percher.toml +11 -0
  213. package/templates/eleventy/src/_includes/base.njk +12 -0
  214. package/templates/eleventy/src/assets/style.css +12 -0
  215. package/templates/eleventy/src/index.md +10 -0
  216. package/templates/elysia/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  217. package/templates/elysia/index.ts +8 -0
  218. package/templates/elysia/package.json +12 -0
  219. package/templates/elysia/percher.toml +11 -0
  220. package/templates/express/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  221. package/templates/express/index.ts +16 -0
  222. package/templates/express/package.json +12 -0
  223. package/templates/express/percher.toml +11 -0
  224. package/templates/fastify/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  225. package/templates/fastify/index.ts +13 -0
  226. package/templates/fastify/package.json +12 -0
  227. package/templates/fastify/percher.toml +11 -0
  228. package/templates/flask/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  229. package/templates/flask/main.py +23 -0
  230. package/templates/flask/percher.toml +12 -0
  231. package/templates/flask/requirements.txt +2 -0
  232. package/templates/go/Dockerfile +11 -0
  233. package/templates/go/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  234. package/templates/go/go.mod +3 -0
  235. package/templates/go/main.go +53 -0
  236. package/templates/go/percher.toml +11 -0
  237. package/templates/hono/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  238. package/templates/hono/index.ts +14 -0
  239. package/templates/hono/package.json +13 -0
  240. package/templates/hono/percher.toml +11 -0
  241. package/templates/htmx/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  242. package/templates/htmx/index.ts +32 -0
  243. package/templates/htmx/package.json +15 -0
  244. package/templates/htmx/percher.toml +11 -0
  245. package/templates/hugo/Caddyfile +6 -0
  246. package/templates/hugo/Dockerfile +49 -0
  247. package/templates/hugo/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  248. package/templates/hugo/content/_index.md +7 -0
  249. package/templates/hugo/hugo.toml +11 -0
  250. package/templates/hugo/layouts/index.html +22 -0
  251. package/templates/hugo/percher.toml +11 -0
  252. package/templates/java/Dockerfile +15 -0
  253. package/templates/java/Main.java +77 -0
  254. package/templates/java/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  255. package/templates/java/percher.toml +11 -0
  256. package/templates/laravel/Dockerfile +19 -0
  257. package/templates/laravel/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  258. package/templates/laravel/composer.json +15 -0
  259. package/templates/laravel/percher.toml +11 -0
  260. package/templates/laravel/public/index.php +37 -0
  261. package/templates/nextjs/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  262. package/templates/nextjs/app/api/health/route.ts +3 -0
  263. package/templates/nextjs/app/layout.tsx +11 -0
  264. package/templates/nextjs/app/page.tsx +10 -0
  265. package/templates/nextjs/next.config.mjs +8 -0
  266. package/templates/nextjs/package.json +21 -0
  267. package/templates/nextjs/percher.toml +15 -0
  268. package/templates/node/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  269. package/templates/node/index.js +26 -0
  270. package/templates/node/package.json +8 -0
  271. package/templates/node/percher.toml +10 -0
  272. package/templates/nuxt/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  273. package/templates/nuxt/app.vue +6 -0
  274. package/templates/nuxt/nuxt.config.ts +4 -0
  275. package/templates/nuxt/package.json +15 -0
  276. package/templates/nuxt/percher.toml +15 -0
  277. package/templates/nuxt/server/api/health.ts +1 -0
  278. package/templates/phoenix/Dockerfile +15 -0
  279. package/templates/phoenix/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  280. package/templates/phoenix/lib/application.ex +15 -0
  281. package/templates/phoenix/lib/router.ex +39 -0
  282. package/templates/phoenix/mix.exs +30 -0
  283. package/templates/phoenix/percher.toml +11 -0
  284. package/templates/preact/Caddyfile +7 -0
  285. package/templates/preact/Dockerfile +51 -0
  286. package/templates/preact/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  287. package/templates/preact/index.html +12 -0
  288. package/templates/preact/package.json +19 -0
  289. package/templates/preact/percher.toml +11 -0
  290. package/templates/preact/src/main.tsx +13 -0
  291. package/templates/preact/vite.config.ts +6 -0
  292. package/templates/python/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  293. package/templates/python/main.py +13 -0
  294. package/templates/python/nixpacks.toml +8 -0
  295. package/templates/python/percher.toml +12 -0
  296. package/templates/python/requirements.txt +2 -0
  297. package/templates/rails/Dockerfile +11 -0
  298. package/templates/rails/Gemfile +12 -0
  299. package/templates/rails/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  300. package/templates/rails/config.ru +32 -0
  301. package/templates/rails/percher.toml +11 -0
  302. package/templates/remix/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  303. package/templates/remix/app/root.tsx +19 -0
  304. package/templates/remix/app/routes/_index.tsx +10 -0
  305. package/templates/remix/app/routes/health.tsx +5 -0
  306. package/templates/remix/package.json +30 -0
  307. package/templates/remix/percher.toml +15 -0
  308. package/templates/remix/vite.config.ts +7 -0
  309. package/templates/rust/Cargo.toml +19 -0
  310. package/templates/rust/Dockerfile +18 -0
  311. package/templates/rust/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  312. package/templates/rust/percher.toml +11 -0
  313. package/templates/rust/src/main.rs +45 -0
  314. package/templates/solid/Caddyfile +7 -0
  315. package/templates/solid/Dockerfile +51 -0
  316. package/templates/solid/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  317. package/templates/solid/index.html +12 -0
  318. package/templates/solid/package.json +19 -0
  319. package/templates/solid/percher.toml +11 -0
  320. package/templates/solid/src/main.tsx +13 -0
  321. package/templates/solid/vite.config.ts +6 -0
  322. package/templates/static/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  323. package/templates/static/index.html +15 -0
  324. package/templates/static/percher.toml +6 -0
  325. package/templates/static/style.css +32 -0
  326. package/templates/sveltekit/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  327. package/templates/sveltekit/package.json +19 -0
  328. package/templates/sveltekit/percher.toml +15 -0
  329. package/templates/sveltekit/src/app.html +12 -0
  330. package/templates/sveltekit/src/routes/+page.svelte +2 -0
  331. package/templates/sveltekit/src/routes/health/+server.ts +5 -0
  332. package/templates/sveltekit/svelte.config.js +8 -0
  333. package/templates/sveltekit/vite.config.js +6 -0
  334. package/templates/vite-react/Caddyfile +7 -0
  335. package/templates/vite-react/Dockerfile +51 -0
  336. package/templates/vite-react/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  337. package/templates/vite-react/index.html +12 -0
  338. package/templates/vite-react/package.json +22 -0
  339. package/templates/vite-react/percher.toml +11 -0
  340. package/templates/vite-react/src/main.tsx +20 -0
  341. package/templates/vite-react/vite.config.ts +6 -0
  342. package/templates/vite-vue/Caddyfile +7 -0
  343. package/templates/vite-vue/Dockerfile +51 -0
  344. package/templates/vite-vue/PERCHER-TEMPLATE-LICENSE.txt +14 -0
  345. package/templates/vite-vue/index.html +12 -0
  346. package/templates/vite-vue/package.json +19 -0
  347. package/templates/vite-vue/percher.toml +11 -0
  348. package/templates/vite-vue/src/main.ts +12 -0
  349. package/templates/vite-vue/vite.config.ts +6 -0
package/LICENSE ADDED
@@ -0,0 +1,132 @@
1
+ # Scope and exceptions
2
+
3
+ This licence applies to Percher-authored source, tests, scripts, configuration
4
+ and generated artefacts in this package, whether published or unpublished.
5
+ Versions below 1.0.0 retain their original MIT grants; version 1.0.0 and later
6
+ use FSL-1.1-MIT. Earlier MIT permissions are not revoked or withdrawn.
7
+
8
+ Scaffold payloads from packages/core/templates and AI instruction payloads
9
+ from packages/core/src/templates/ai-files and docs/CLAUDE.md, including their distributed copies
10
+ and generated output, are licensed under 0BSD, as carried with those payloads.
11
+ This exception does not change the licence of a customer's existing project.
12
+
13
+ Third-party components retain their own licences, including components named
14
+ in THIRD-PARTY-NOTICES.txt and the Apache-2.0 fixture files enumerated in
15
+ packages/core/test/fixtures/supabase-apps/*/SOURCES.md under their own LICENSE.
16
+ FSL does not relicense those components. packages/mark is private and excluded
17
+ from all MIT, 0BSD and FSL grants here.
18
+
19
+ In case of overlap, third-party component licences take precedence, followed
20
+ by packages/mark/LICENSE, the 0BSD payload exception, this package LICENSE,
21
+ and finally the repository root LICENSE.
22
+
23
+ # Functional Source License, Version 1.1, MIT Future License
24
+
25
+ ## Abbreviation
26
+
27
+ FSL-1.1-MIT
28
+
29
+ ## Notice
30
+
31
+ Copyright 2026 Mattias Malmborg
32
+
33
+ ## Terms and Conditions
34
+
35
+ ### Licensor ("We")
36
+
37
+ The party offering the Software under these Terms and Conditions.
38
+
39
+ ### The Software
40
+
41
+ The "Software" is each version of the software that we make available under
42
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
43
+ Conditions with the Software.
44
+
45
+ ### License Grant
46
+
47
+ Subject to your compliance with this License Grant and the Patents,
48
+ Redistribution and Trademark clauses below, we hereby grant you the right to
49
+ use, copy, modify, create derivative works, publicly perform, publicly display
50
+ and redistribute the Software for any Permitted Purpose identified below.
51
+
52
+ ### Permitted Purpose
53
+
54
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
55
+ means making the Software available to others in a commercial product or
56
+ service that:
57
+
58
+ 1. substitutes for the Software;
59
+
60
+ 2. substitutes for any other product or service we offer using the Software
61
+ that exists as of the date we make the Software available; or
62
+
63
+ 3. offers the same or substantially similar functionality as the Software.
64
+
65
+ Permitted Purposes specifically include using the Software:
66
+
67
+ 1. for your internal use and access;
68
+
69
+ 2. for non-commercial education;
70
+
71
+ 3. for non-commercial research; and
72
+
73
+ 4. in connection with professional services that you provide to a licensee
74
+ using the Software in accordance with these Terms and Conditions.
75
+
76
+ ### Patents
77
+
78
+ To the extent your use for a Permitted Purpose would necessarily infringe our
79
+ patents, the license grant above includes a license under our patents. If you
80
+ make a claim against any party that the Software infringes or contributes to
81
+ the infringement of any patent, then your patent license to the Software ends
82
+ immediately.
83
+
84
+ ### Redistribution
85
+
86
+ The Terms and Conditions apply to all copies, modifications and derivatives of
87
+ the Software.
88
+
89
+ If you redistribute any copies, modifications or derivatives of the Software,
90
+ you must include a copy of or a link to these Terms and Conditions and not
91
+ remove any copyright notices provided in or with the Software.
92
+
93
+ ### Disclaimer
94
+
95
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
96
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
97
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
98
+
99
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
100
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
101
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
102
+
103
+ ### Trademarks
104
+
105
+ Except for displaying the License Details and identifying us as the origin of
106
+ the Software, you have no right under these Terms and Conditions to use our
107
+ trademarks, trade names, service marks or product names.
108
+
109
+ ## Grant of Future License
110
+
111
+ We hereby irrevocably grant you an additional license to use the Software under
112
+ the MIT license that is effective on the second anniversary of the date we make
113
+ the Software available. On or after that date, you may use the Software under
114
+ the MIT license, in which case the following will apply:
115
+
116
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
117
+ this software and associated documentation files (the "Software"), to deal in
118
+ the Software without restriction, including without limitation the rights to
119
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
120
+ of the Software, and to permit persons to whom the Software is furnished to do
121
+ so, subject to the following conditions:
122
+
123
+ The above copyright notice and this permission notice shall be included in all
124
+ copies or substantial portions of the Software.
125
+
126
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
127
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
128
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
129
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
130
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
131
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
132
+ SOFTWARE.
@@ -1,3 +1,11 @@
1
+ /**
2
+ * The owner-picked icon colour as a literal hex for the manifest's
3
+ * theme_color/background. A manifest is a downloadable file that ends up on
4
+ * somebody else's server, so it needs a real hex, never a CSS variable — which
5
+ * is exactly why the mapping lives in @percher/shared rather than here: this
6
+ * file used to carry its own copy and was still emitting the terracotta accent
7
+ * months after the palette moved. Unknown or null falls back to brand green.
8
+ */
1
9
  export declare function themeColorForToken(token: string | null): string;
2
10
  /**
3
11
  * Minimal VALID manifest.json starter. It is a file the user downloads and
@@ -1 +1 @@
1
- {"version":3,"file":"appstore-artifacts.d.ts","sourceRoot":"","sources":["../src/appstore-artifacts.ts"],"names":[],"mappings":"AAwBA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAG/D;AAiBD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,aAAa,GACd,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,MAAM,CAaT;AAED,8EAA8E;AAC9E,wBAAgB,oBAAoB,IAAI,MAAM,CAyB7C;AAED,2EAA2E;AAC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AAoD;AACpD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAUpF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,iBAAiB,GAClB,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GAAG,MAAM,CAWT;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAST"}
@@ -1,4 +1,4 @@
1
- // App-store kit generators (FUTURE_app-store-publishing-bridge).
1
+ // App-store kit generators (app-store-publishing-bridge).
2
2
  //
3
3
  // Pure, dependency-free functions that emit *starter* artifacts for taking a
4
4
  // Percher-hosted app to the app stores. Shared by the dashboard "App store kit"
@@ -8,21 +8,17 @@
8
8
  //
9
9
  // None of these make the app a PWA or publish it anywhere; they produce files
10
10
  // the user still has to wire up + serve (or let Percher edge-serve, C3).
11
- const BRAND_GREEN = "#2d6a4f";
12
- // Maps the owner-picked iconColour token to a literal brand hex for the
13
- // manifest's theme_color/background. A manifest is a downloadable file, so it
14
- // needs a real hex — not a CSS var. Defaults to brand green when null/unknown.
15
- const ICON_COLOUR_HEX = {
16
- green: BRAND_GREEN,
17
- terracotta: "#d0653a",
18
- blue: "#4a6fa4",
19
- purple: "#6e4dba",
20
- olive: "#b8923a",
21
- };
11
+ import { iconColourHex } from "@percher/shared";
12
+ /**
13
+ * The owner-picked icon colour as a literal hex for the manifest's
14
+ * theme_color/background. A manifest is a downloadable file that ends up on
15
+ * somebody else's server, so it needs a real hex, never a CSS variable — which
16
+ * is exactly why the mapping lives in @percher/shared rather than here: this
17
+ * file used to carry its own copy and was still emitting the terracotta accent
18
+ * months after the palette moved. Unknown or null falls back to brand green.
19
+ */
22
20
  export function themeColorForToken(token) {
23
- if (token && token in ICON_COLOUR_HEX)
24
- return ICON_COLOUR_HEX[token] ?? BRAND_GREEN;
25
- return BRAND_GREEN;
21
+ return iconColourHex(token);
26
22
  }
27
23
  /** Best-effort hostname from an app URL; falls back to the raw input. */
28
24
  function hostFromUrl(url) {
@@ -1 +1 @@
1
- {"version":3,"file":"appstore-artifacts.js","sourceRoot":"","sources":["../src/appstore-artifacts.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,iFAAiF;AACjF,8EAA8E;AAC9E,yEAAyE;AACzE,EAAE;AACF,8EAA8E;AAC9E,yEAAyE;AAEzE,MAAM,WAAW,GAAG,SAAS,CAAC;AAE9B,wEAAwE;AACxE,8EAA8E;AAC9E,+EAA+E;AAC/E,MAAM,eAAe,GAA2B;IAC9C,KAAK,EAAE,WAAW;IAClB,UAAU,EAAE,SAAS;IACrB,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,KAAoB;IACrD,IAAI,KAAK,IAAI,KAAK,IAAI,eAAe;QAAE,OAAO,eAAe,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC;IACpF,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,yEAAyE;AACzE,SAAS,WAAW,CAAC,GAAW;IAC9B,IAAI,CAAC;QACH,OAAO,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;AACH,CAAC;AAED,kFAAkF;AAClF,SAAS,SAAS,CAAC,IAAY;IAC7B,MAAM,O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CAAC,IAAI,EAAE,IAAI,6BAA6B,CAAC;IACrE,OAAO;;;;sBAIa,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;mCACN,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;;GAElD,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,EACtC,MAAM,EACN,QAAQ,GAIT;IACC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,QAAQ,CAAC;IACvC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,qBAAqB,CAAC;IACxD,OAAO;;;6BAGoB,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,IAAI,MAAM,EAAE,CAAC;;EAE9D,CAAC;AACH,CAAC"}
@@ -35,7 +35,7 @@ export interface AccountExportResult {
35
35
  }
36
36
  export declare function accountExport(ctx: Context, input: AccountExportInput): Promise<AccountExportResult>;
37
37
  /**
38
- * FUTURE_account-deletion-guards Fas 4 — read-only preview of what
38
+ * account-deletion-guards Fas 4 — read-only preview of what
39
39
  * would block account deletion. Pure passthrough to the API's
40
40
  * GET /account/deletion-preview; the CLI's `account preview-delete`
41
41
  * action surfaces this with a human-readable blocker list so users
@@ -2,7 +2,7 @@ import { mkdir, writeFile } from "node:fs/promises";
2
2
  import { join, resolve } from "node:path";
3
3
  import { z } from "zod";
4
4
  import { PercherCoreError } from "../errors.js";
5
- import { writeResponseToFile } from "../stream-utils.js";
5
+ import { writeGzipResponseToFileAtomic } from "../stream-utils.js";
6
6
  /**
7
7
  * IMPLEMENTING-followup item 7 — GDPR account commands. The server
8
8
  * already exposes GET /account/export (Art. 20) and DELETE /account
@@ -38,7 +38,7 @@ export async function accountExport(ctx, input) {
38
38
  try {
39
39
  const res = await ctx.client.apps.streamDataExport(entry.appName);
40
40
  const tarPath = join(dir, "apps", `${entry.appName}-pb.tar.gz`);
41
- const bytesWritten = await writeResponseToFile(res, tarPath);
41
+ const bytesWritten = await writeGzipResponseToFileAtomic(res, tarPath);
42
42
  appTarballs.push({ app: entry.appName, path: tarPath, bytes: bytesWritten });
43
43
  }
44
44
  catch (err) {
@@ -67,7 +67,7 @@ export async function accountExport(ctx, input) {
67
67
  };
68
68
  }
69
69
  /**
70
- * FUTURE_account-deletion-guards Fas 4 — read-only preview of what
70
+ * account-deletion-guards Fas 4 — read-only preview of what
71
71
  * would block account deletion. Pure passthrough to the API's
72
72
  * GET /account/deletion-preview; the CLI's `account preview-delete`
73
73
  * action surfaces this with a human-readable blocker list so users
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/commands/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iKAAiK,CAClK;IACH,cAAc,EAAE,CAAC;SACd,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,kPAAkP,CACnP;CACJ,CAAC,CAAC;AAkBH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,GAAY,EACZ,KAAyB;IAEzB,GAAG,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;IACtC,MAAM,IAAI,GAAkB,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;IAClE,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IA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uGAAuG,EACvG;YACE,IAAI,EAAE,sCAAsC;YAC5C,IAAI,EAAE,2DAA2D;SAClE,CACF,CAAC;IACJ,CAAC;IACD,GAAG,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACvE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { AdminLegacyAuditResult } from "@percher/client";
2
+ import type { Context } from "../context.js";
3
+ /**
4
+ * `percher admin legacy-audit` — the zero-legacy audit (§11).
5
+ *
6
+ * A thin wrapper, exactly like the inventory one beside it: the server is the
7
+ * authority on every verdict and nothing here re-derives a term.
8
+ */
9
+ export declare function adminLegacyAudit(ctx: Context): Promise<AdminLegacyAuditResult>;
10
+ /**
11
+ * The terms this CLI release knows the audit is a conjunction of.
12
+ *
13
+ * A duplicate of the API's list, and deliberately so — the client package
14
+ * cannot import from the API, and the alternative (trusting whatever list
15
+ * arrives) is what this constant exists to catch. It is a FLOOR, not an
16
+ * allowlist: a future API that adds a ninth term still has that term
17
+ * evaluated below, because the check is "every term present is measured and
18
+ * ok" AND "none of the terms I know about is missing". Only the second half
19
+ * needs a local list, and only to stop a SHORTER conjunction reading greener.
20
+ */
21
+ export declare const LEGACY_AUDIT_REQUIRED_CONJUNCTS: readonly ["evidence_complete", "counters_zero", "desired_live_apps_present", "volumes_attributed", "scans_complete", "runtime_evidence_complete", "clabbe_attestation_complete", "launch_gate_ready"];
22
+ /**
23
+ * Whether the audit is green, decided here rather than taken on trust.
24
+ *
25
+ * THREE independent conditions, and none of them is redundant:
26
+ *
27
+ * 1. `zeroLegacy === true` STRICTLY. An API that predates this endpoint, a
28
+ * proxy that returned something else, or a body with the field missing
29
+ * all deserialise to `undefined`, and `undefined` is not `true`.
30
+ * 2. Every term present is `measured` AND `ok`. A server that computed a
31
+ * verdict from terms it could not measure does not get an exit 0 out of
32
+ * this CLI, whatever it put in `zeroLegacy`.
33
+ * 3. Every term this release knows is required is actually present. Without
34
+ * it, condition 2 is vacuously true over an empty list — a conjunction
35
+ * that quietly stopped evaluating a term would read as the cleanest
36
+ * possible fleet, which is the exact shape of failure this whole
37
+ * programme is a response to.
38
+ */
39
+ export declare function legacyAuditIsGreen(result: AdminLegacyAuditResult): boolean;
40
+ //# sourceMappingURL=admin-legacy-audit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-legacy-audit.d.ts","sourceRoot":"","sources":["../../src/commands/admin-legacy-audit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAEpF;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,+BAA+B,YAC1C,mBAAmB,EACnB,eAAe,EACf,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EAChB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,CACX,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAM1E"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * `percher admin legacy-audit` — the zero-legacy audit (§11).
3
+ *
4
+ * A thin wrapper, exactly like the inventory one beside it: the server is the
5
+ * authority on every verdict and nothing here re-derives a term.
6
+ */
7
+ export async function adminLegacyAudit(ctx) {
8
+ return ctx.client.platform.adminLegacyAudit();
9
+ }
10
+ /**
11
+ * The terms this CLI release knows the audit is a conjunction of.
12
+ *
13
+ * A duplicate of the API's list, and deliberately so — the client package
14
+ * cannot import from the API, and the alternative (trusting whatever list
15
+ * arrives) is what this constant exists to catch. It is a FLOOR, not an
16
+ * allowlist: a future API that adds a ninth term still has that term
17
+ * evaluated below, because the check is "every term present is measured and
18
+ * ok" AND "none of the terms I know about is missing". Only the second half
19
+ * needs a local list, and only to stop a SHORTER conjunction reading greener.
20
+ */
21
+ export const LEGACY_AUDIT_REQUIRED_CONJUNCTS = [
22
+ "evidence_complete",
23
+ "counters_zero",
24
+ "desired_live_apps_present",
25
+ "volumes_attributed",
26
+ "scans_complete",
27
+ "runtime_evidence_complete",
28
+ "clabbe_attestation_complete",
29
+ "launch_gate_ready",
30
+ ];
31
+ /**
32
+ * Whether the audit is green, decided here rather than taken on trust.
33
+ *
34
+ * THREE independent conditions, and none of them is redundant:
35
+ *
36
+ * 1. `zeroLegacy === true` STRICTLY. An API that predates this endpoint, a
37
+ * proxy that returned something else, or a body with the field missing
38
+ * all deserialise to `undefined`, and `undefined` is not `true`.
39
+ * 2. Every term present is `measured` AND `ok`. A server that computed a
40
+ * verdict from terms it could not measure does not get an exit 0 out of
41
+ * this CLI, whatever it put in `zeroLegacy`.
42
+ * 3. Every term this release knows is required is actually present. Without
43
+ * it, condition 2 is vacuously true over an empty list — a conjunction
44
+ * that quietly stopped evaluating a term would read as the cleanest
45
+ * possible fleet, which is the exact shape of failure this whole
46
+ * programme is a response to.
47
+ */
48
+ export function legacyAuditIsGreen(result) {
49
+ if (result.zeroLegacy !== true)
50
+ return false;
51
+ const terms = Array.isArray(result.conjuncts) ? result.conjuncts : [];
52
+ const present = new Set(terms.map((term) => term.name));
53
+ if (LEGACY_AUDIT_REQUIRED_CONJUNCTS.some((name) => !present.has(name)))
54
+ return false;
55
+ return terms.every((term) => term.measured === true && term.ok === true);
56
+ }
57
+ //# sourceMappingURL=admin-legacy-audit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-legacy-audit.js","sourceRoot":"","sources":["../../src/commands/admin-legacy-audit.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,GAAY;IACjD,OAAO,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;AAChD,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,mBAAmB;IACnB,eAAe;IACf,2BAA2B;IAC3B,oBAAoB;IACpB,gBAAgB;IAChB,2BAA2B;IAC3B,6BAA6B;IAC7B,mBAAmB;CACX,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAA8B;IAC/D,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC7C,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACxD,IAAI,+BAA+B,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IACrF,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,IAAI,IAAI,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;AAC3E,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { AdminLegacyInventoryResult } from "@percher/client";
2
+ import type { Context } from "../context.js";
3
+ /**
4
+ * `percher admin legacy-inventory` — the authoritative fleet inventory.
5
+ *
6
+ * A thin wrapper so the CLI, tests and any future tooling read the counters
7
+ * through one place. The server is the authority on the shape and on every
8
+ * verdict inside it; nothing here re-derives a class.
9
+ */
10
+ export declare function adminLegacyInventory(ctx: Context): Promise<AdminLegacyInventoryResult>;
11
+ /**
12
+ * Whether the inventory is red.
13
+ *
14
+ * TWO independent conditions, and the second is the one that gets forgotten:
15
+ * a fleet with `unknownGenerationCount === 0` is only green if the evidence
16
+ * behind that zero was COMPLETE. An inventory that could not read half the
17
+ * daemon reports few legacy resources precisely because it saw few resources,
18
+ * so `complete === false` is red on its own and the CLI exits non-zero for it.
19
+ */
20
+ export declare function legacyInventoryIsRed(result: AdminLegacyInventoryResult): boolean;
21
+ /**
22
+ * Whether every legacy counter has reached zero. Distinct from the red check:
23
+ * a fleet can be fully attributed and completely measured (not red) while
24
+ * still carrying legacy runtimes to migrate.
25
+ */
26
+ export declare function legacyInventoryIsZeroLegacy(result: AdminLegacyInventoryResult): boolean;
27
+ //# sourceMappingURL=admin-legacy-inventory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-legacy-inventory.d.ts","sourceRoot":"","sources":["../../src/commands/admin-legacy-inventory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAE5F;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAEhF;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAUvF"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * `percher admin legacy-inventory` — the authoritative fleet inventory.
3
+ *
4
+ * A thin wrapper so the CLI, tests and any future tooling read the counters
5
+ * through one place. The server is the authority on the shape and on every
6
+ * verdict inside it; nothing here re-derives a class.
7
+ */
8
+ export async function adminLegacyInventory(ctx) {
9
+ return ctx.client.platform.adminLegacyInventory();
10
+ }
11
+ /**
12
+ * Whether the inventory is red.
13
+ *
14
+ * TWO independent conditions, and the second is the one that gets forgotten:
15
+ * a fleet with `unknownGenerationCount === 0` is only green if the evidence
16
+ * behind that zero was COMPLETE. An inventory that could not read half the
17
+ * daemon reports few legacy resources precisely because it saw few resources,
18
+ * so `complete === false` is red on its own and the CLI exits non-zero for it.
19
+ */
20
+ export function legacyInventoryIsRed(result) {
21
+ return !result.complete || result.counters.unknownGenerationCount > 0;
22
+ }
23
+ /**
24
+ * Whether every legacy counter has reached zero. Distinct from the red check:
25
+ * a fleet can be fully attributed and completely measured (not red) while
26
+ * still carrying legacy runtimes to migrate.
27
+ */
28
+ export function legacyInventoryIsZeroLegacy(result) {
29
+ const c = result.counters;
30
+ return (result.complete &&
31
+ c.legacyRuntimeCount === 0 &&
32
+ c.legacyPocketBaseSidecarCount === 0 &&
33
+ c.legacyTopologyCount === 0 &&
34
+ c.incompatibleRollbackImageCount === 0 &&
35
+ c.unknownGenerationCount === 0);
36
+ }
37
+ //# sourceMappingURL=admin-legacy-inventory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-legacy-inventory.js","sourceRoot":"","sources":["../../src/commands/admin-legacy-inventory.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,GAAY;IACrD,OAAO,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC;AACpD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAkC;IACrE,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,sBAAsB,GAAG,CAAC,CAAC;AACxE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAAkC;IAC5E,MAAM,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC1B,OAAO,CACL,MAAM,CAAC,QAAQ;QACf,CAAC,CAAC,kBAAkB,KAAK,CAAC;QAC1B,CAAC,CAAC,4BAA4B,KAAK,CAAC;QACpC,CAAC,CAAC,mBAAmB,KAAK,CAAC;QAC3B,CAAC,CAAC,8BAA8B,KAAK,CAAC;QACtC,CAAC,CAAC,sBAAsB,KAAK,CAAC,CAC/B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { AdminMigrateNetworksResult } from "@percher/client";
2
+ import { z } from "zod";
3
+ import type { Context } from "../context.js";
4
+ export declare const adminMigrateNetworksInputSchema: z.ZodObject<{
5
+ appIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ limit: z.ZodOptional<z.ZodNumber>;
7
+ dryRun: z.ZodOptional<z.ZodBoolean>;
8
+ direction: z.ZodOptional<z.ZodEnum<{
9
+ "to-per-app": "to-per-app";
10
+ "to-shared": "to-shared";
11
+ }>>;
12
+ }, z.core.$strip>;
13
+ export type AdminMigrateNetworksInput = z.infer<typeof adminMigrateNetworksInputSchema>;
14
+ export declare function adminMigrateNetworks(ctx: Context, input: AdminMigrateNetworksInput): Promise<AdminMigrateNetworksResult>;
15
+ //# sourceMappingURL=admin-migrate-networks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-migrate-networks.d.ts","sourceRoot":"","sources":["../../src/commands/admin-migrate-networks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,+BAA+B;;;;;;;;iBAS1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,0BAA0B,CAAC,CAErC"}
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export const adminMigrateNetworksInputSchema = z.object({
3
+ appIds: z
4
+ .array(z.string().regex(/^app_[0-9a-z]{20}$/))
5
+ .min(1)
6
+ .max(20)
7
+ .optional(),
8
+ limit: z.number().int().min(1).max(20).optional(),
9
+ dryRun: z.boolean().optional(),
10
+ direction: z.enum(["to-per-app", "to-shared"]).optional(),
11
+ });
12
+ export async function adminMigrateNetworks(ctx, input) {
13
+ return ctx.client.platform.adminMigrateNetworks(adminMigrateNetworksInputSchema.parse(input));
14
+ }
15
+ //# sourceMappingURL=admin-migrate-networks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-migrate-networks.js","sourceRoot":"","sources":["../../src/commands/admin-migrate-networks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;SAC7C,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,EAAE;IACb,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC;AAIH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,GAAY,EACZ,KAAgC;IAEhC,OAAO,GAAG,CAAC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AAE;YACtD,IAAI,EAAE,yBAAyB;YAC/B,IAAI,EAAE,iDAAiD;SACxD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,sBAAsB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,gBAAgB,CAAC,4CAA4C,EAAE;YACvE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,6DAA6D;SACpE,CAAC,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;AACnE,CAAC"}
@@ -6,8 +6,8 @@ export declare const appResourcesInputSchema: z.ZodObject<{
6
6
  window: z.ZodOptional<z.ZodEnum<{
7
7
  "1h": "1h";
8
8
  "24h": "24h";
9
- "7d": "7d";
10
9
  "30d": "30d";
10
+ "7d": "7d";
11
11
  }>>;
12
12
  metrics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
13
13
  cpu: "cpu";
@@ -1 +1 @@
1
- {"version":3,"file":"app-resources.js","sourceRoot":"","sources":["../../src/commands/app-resources.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrD,OAAO,EAAE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AC;IACD,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import type { Context } from "../context.js";
3
3
  /**
4
- * FUTURE_app-store-publishing-bridge D — emit the app-store starter artifacts
4
+ * app-store-publishing-bridge D — emit the app-store starter artifacts
5
5
  * from the terminal / an AI assistant, the CLI+MCP parity for the dashboard's
6
6
  * "App store kit" panel (C2). Writes manifest.json, sw.js, capacitor.config.ts,
7
7
  * and `.well-known/{assetlinks.json,apple-app-site-association}` templates into
@@ -5,7 +5,7 @@ import { readPercherTomlAppName } from "../app-name.js";
5
5
  import { appleAppSiteAssociation, assetlinksJson, bubblewrapCommand, capacitorConfig, manifestStarter, serviceWorkerStarter, swRegistrationSnippet, themeColorForToken, } from "../appstore-artifacts.js";
6
6
  import { PercherCoreError } from "../errors.js";
7
7
  /**
8
- * FUTURE_app-store-publishing-bridge D — emit the app-store starter artifacts
8
+ * app-store-publishing-bridge D — emit the app-store starter artifacts
9
9
  * from the terminal / an AI assistant, the CLI+MCP parity for the dashboard's
10
10
  * "App store kit" panel (C2). Writes manifest.json, sw.js, capacitor.config.ts,
11
11
  * and `.well-known/{assetlinks.json,apple-app-site-association}` templates into
@@ -1 +1 @@
1
- {"version":3,"file":"appstore-kit.js","sourceRoot":"","sources":["../../src/commands/appstore-kit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACxF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,cAAc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AAc,EAAE,qBAAqB,EAAE;KACxC,CAAC;AACJ,CAAC"}
@@ -2,9 +2,9 @@ import { z } from "zod";
2
2
  import type { Context } from "../context.js";
3
3
  export declare const billingUpgradeInputSchema: z.ZodObject<{
4
4
  plan: z.ZodEnum<{
5
+ maker: "maker";
5
6
  max: "max";
6
7
  starter: "starter";
7
- maker: "maker";
8
8
  }>;
9
9
  }, z.core.$strip>;
10
10
  export type BillingUpgradeInput = z.infer<typeof billingUpgradeInputSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"billing.js","sourceRoot":"","sources":["../../src/commands/billing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;CAC1C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAarD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,GAAY,EACZ,KAA0B;IAE1B,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzD,OAAO;YACL,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,OAAO,EAAE,+BAA+B,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,GAAG,EAAE;SACjE,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,gBAAgB,CAAC,wCAAyC,GAAa,CAAC,OAAO,EAAE,EAAE;YAC3F,IAAI,EAAE,yBAAyB;YAC/B,IA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G,KAAK,CAAC,GAAG,IAAI,sBAAsB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1D,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,gBAAgB,CAAC,4CAA4C,EAAE;YACvE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,6DAA6D;SACpE,CAAC,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/commands/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAGpD,qEAAqE;AACrE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAY,EAAE,SAA4B,EAAE;IAC7E,OAAO,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;AAC5C,CAAC"}
1
+ {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/commands/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAGpD,qEAAqE;AACrE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,GAAY,EAAE,MAAM,GAAsB,EAAE;IAC7E,OAAO,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;AAC5C,CAAC"}