percher 1.4.1 → 1.5.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.
- package/LICENSE +0 -0
- package/THIRD-PARTY-NOTICES.txt +26 -0
- package/dist/bin/percher.d.ts +0 -0
- package/dist/bin/percher.d.ts.map +0 -0
- package/dist/bin/percher.js +1395 -330
- package/dist/bin/percher.js.map +0 -0
- package/dist/package.json +5 -5
- package/dist/src/ci-env.d.ts +0 -0
- package/dist/src/ci-env.d.ts.map +0 -0
- package/dist/src/ci-env.js +0 -0
- package/dist/src/ci-env.js.map +0 -0
- package/dist/src/cli-utils.d.ts +3 -0
- package/dist/src/cli-utils.d.ts.map +1 -1
- package/dist/src/cli-utils.js +4 -0
- package/dist/src/cli-utils.js.map +1 -1
- package/dist/src/commands/account.d.ts +0 -0
- package/dist/src/commands/account.d.ts.map +0 -0
- package/dist/src/commands/account.js +0 -0
- package/dist/src/commands/account.js.map +0 -0
- package/dist/src/commands/admin.d.ts +0 -0
- package/dist/src/commands/admin.d.ts.map +0 -0
- package/dist/src/commands/admin.js +0 -0
- package/dist/src/commands/admin.js.map +0 -0
- package/dist/src/commands/analytics.d.ts +0 -0
- package/dist/src/commands/analytics.d.ts.map +0 -0
- package/dist/src/commands/analytics.js +0 -0
- package/dist/src/commands/analytics.js.map +0 -0
- package/dist/src/commands/apps.d.ts +0 -0
- package/dist/src/commands/apps.d.ts.map +1 -1
- package/dist/src/commands/apps.js +4 -7
- package/dist/src/commands/apps.js.map +1 -1
- package/dist/src/commands/auth.d.ts +0 -0
- package/dist/src/commands/auth.d.ts.map +0 -0
- package/dist/src/commands/auth.js +0 -0
- package/dist/src/commands/auth.js.map +0 -0
- package/dist/src/commands/data-records.d.ts +0 -0
- package/dist/src/commands/data-records.d.ts.map +0 -0
- package/dist/src/commands/data-records.js +0 -0
- package/dist/src/commands/data-records.js.map +0 -0
- package/dist/src/commands/data.d.ts +0 -0
- package/dist/src/commands/data.d.ts.map +1 -1
- package/dist/src/commands/data.js +27 -5
- package/dist/src/commands/data.js.map +1 -1
- package/dist/src/commands/deploys.d.ts +0 -0
- package/dist/src/commands/deploys.d.ts.map +0 -0
- package/dist/src/commands/deploys.js +0 -0
- package/dist/src/commands/deploys.js.map +0 -0
- package/dist/src/commands/env.d.ts +0 -0
- package/dist/src/commands/env.d.ts.map +0 -0
- package/dist/src/commands/env.js +0 -0
- package/dist/src/commands/env.js.map +0 -0
- package/dist/src/commands/export.d.ts +0 -0
- package/dist/src/commands/export.d.ts.map +0 -0
- package/dist/src/commands/export.js +0 -0
- package/dist/src/commands/export.js.map +0 -0
- package/dist/src/commands/github.d.ts +0 -0
- package/dist/src/commands/github.d.ts.map +0 -0
- package/dist/src/commands/github.js +0 -0
- package/dist/src/commands/github.js.map +0 -0
- package/dist/src/commands/hooks.d.ts +0 -0
- package/dist/src/commands/hooks.d.ts.map +0 -0
- package/dist/src/commands/hooks.js +0 -0
- package/dist/src/commands/hooks.js.map +0 -0
- package/dist/src/commands/migrate.d.ts +0 -0
- package/dist/src/commands/migrate.d.ts.map +0 -0
- package/dist/src/commands/migrate.js +0 -0
- package/dist/src/commands/migrate.js.map +0 -0
- package/dist/src/commands/sharing.d.ts +0 -0
- package/dist/src/commands/sharing.d.ts.map +0 -0
- package/dist/src/commands/sharing.js +0 -0
- package/dist/src/commands/sharing.js.map +0 -0
- package/dist/src/commands/status.d.ts +0 -0
- package/dist/src/commands/status.d.ts.map +0 -0
- package/dist/src/commands/status.js +0 -0
- package/dist/src/commands/status.js.map +0 -0
- package/dist/src/commands/telemetry.d.ts +0 -0
- package/dist/src/commands/telemetry.d.ts.map +0 -0
- package/dist/src/commands/telemetry.js +0 -0
- package/dist/src/commands/telemetry.js.map +0 -0
- package/dist/src/commands/token.d.ts +0 -0
- package/dist/src/commands/token.d.ts.map +0 -0
- package/dist/src/commands/token.js +0 -0
- package/dist/src/commands/token.js.map +0 -0
- package/dist/src/commands/transfers.d.ts +0 -0
- package/dist/src/commands/transfers.d.ts.map +0 -0
- package/dist/src/commands/transfers.js +0 -0
- package/dist/src/commands/transfers.js.map +0 -0
- package/dist/src/context.d.ts +0 -0
- package/dist/src/context.d.ts.map +0 -0
- package/dist/src/context.js +0 -0
- package/dist/src/context.js.map +0 -0
- package/dist/src/data-oauth-input.d.ts +13 -0
- package/dist/src/data-oauth-input.d.ts.map +1 -0
- package/dist/src/data-oauth-input.js +60 -0
- package/dist/src/data-oauth-input.js.map +1 -0
- package/dist/src/env-set-input.d.ts +0 -0
- package/dist/src/env-set-input.d.ts.map +0 -0
- package/dist/src/env-set-input.js +0 -0
- package/dist/src/env-set-input.js.map +0 -0
- package/dist/src/index.d.ts +0 -0
- package/dist/src/index.d.ts.map +0 -0
- package/dist/src/index.js +0 -0
- package/dist/src/index.js.map +0 -0
- package/dist/src/open.d.ts +0 -0
- package/dist/src/open.d.ts.map +0 -0
- package/dist/src/open.js +0 -0
- package/dist/src/open.js.map +0 -0
- package/dist/src/output.d.ts +0 -0
- package/dist/src/output.d.ts.map +0 -0
- package/dist/src/output.js +0 -0
- package/dist/src/output.js.map +0 -0
- package/dist/src/prompt-hidden.d.ts +0 -0
- package/dist/src/prompt-hidden.d.ts.map +0 -0
- package/dist/src/prompt-hidden.js +0 -0
- package/dist/src/prompt-hidden.js.map +0 -0
- package/dist/src/prompt.d.ts +0 -0
- package/dist/src/prompt.d.ts.map +0 -0
- package/dist/src/prompt.js +0 -0
- package/dist/src/prompt.js.map +0 -0
- package/dist/src/security-output.d.ts +0 -0
- package/dist/src/security-output.d.ts.map +0 -0
- package/dist/src/security-output.js +0 -0
- package/dist/src/security-output.js.map +0 -0
- package/dist/src/telemetry.d.ts +0 -0
- package/dist/src/telemetry.d.ts.map +0 -0
- package/dist/src/telemetry.js +0 -0
- package/dist/src/telemetry.js.map +0 -0
- package/dist/src/version-check.d.ts +0 -0
- package/dist/src/version-check.d.ts.map +0 -0
- package/dist/src/version-check.js +0 -0
- package/dist/src/version-check.js.map +0 -0
- package/dist/templates/LICENSE +0 -0
- package/dist/templates/astro/Caddyfile +1 -1
- package/dist/templates/astro/Dockerfile +2 -2
- package/dist/templates/astro/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/astro/astro.config.mjs +0 -0
- package/dist/templates/astro/package.json +0 -0
- package/dist/templates/astro/percher.toml +0 -0
- package/dist/templates/astro/src/pages/index.astro +0 -0
- package/dist/templates/bun/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/bun/index.ts +0 -0
- package/dist/templates/bun/package.json +0 -0
- package/dist/templates/bun/percher.toml +0 -0
- package/dist/templates/capsule/Caddyfile +0 -0
- package/dist/templates/capsule/Dockerfile +1 -1
- package/dist/templates/capsule/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/capsule/index.html +0 -0
- package/dist/templates/capsule/package.json +0 -0
- package/dist/templates/capsule/pb/schema.json +0 -0
- package/dist/templates/capsule/percher.toml +0 -0
- package/dist/templates/capsule/src/App.tsx +0 -0
- package/dist/templates/capsule/src/components/Auth.tsx +0 -0
- package/dist/templates/capsule/src/components/SignInWithGoogle.tsx +0 -0
- package/dist/templates/capsule/src/lib/ai-client.ts +0 -0
- package/dist/templates/capsule/src/lib/ai.ts +0 -0
- package/dist/templates/capsule/src/lib/db.ts +0 -0
- package/dist/templates/capsule/src/lib/realtime.ts +0 -0
- package/dist/templates/capsule/src/main.tsx +0 -0
- package/dist/templates/capsule/tsconfig.json +0 -0
- package/dist/templates/capsule/vite.config.ts +0 -0
- package/dist/templates/django/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/django/Procfile +0 -0
- package/dist/templates/django/app/__init__.py +0 -0
- package/dist/templates/django/app/settings.py +0 -0
- package/dist/templates/django/app/urls.py +0 -0
- package/dist/templates/django/app/wsgi.py +0 -0
- package/dist/templates/django/manage.py +0 -0
- package/dist/templates/django/percher.toml +0 -0
- package/dist/templates/django/requirements.txt +0 -0
- package/dist/templates/dotnet/Dockerfile +0 -0
- package/dist/templates/dotnet/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/dotnet/Program.cs +0 -0
- package/dist/templates/dotnet/app.csproj +0 -0
- package/dist/templates/dotnet/percher.toml +0 -0
- package/dist/templates/eleventy/.eleventy.js +0 -0
- package/dist/templates/eleventy/Caddyfile +1 -1
- package/dist/templates/eleventy/Dockerfile +2 -2
- package/dist/templates/eleventy/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/eleventy/package.json +0 -0
- package/dist/templates/eleventy/percher.toml +0 -0
- package/dist/templates/eleventy/src/_includes/base.njk +0 -0
- package/dist/templates/eleventy/src/assets/style.css +0 -0
- package/dist/templates/eleventy/src/index.md +0 -0
- package/dist/templates/elysia/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/elysia/index.ts +0 -0
- package/dist/templates/elysia/package.json +0 -0
- package/dist/templates/elysia/percher.toml +0 -0
- package/dist/templates/express/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/express/index.ts +0 -0
- package/dist/templates/express/package.json +0 -0
- package/dist/templates/express/percher.toml +0 -0
- package/dist/templates/fastify/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/fastify/index.ts +0 -0
- package/dist/templates/fastify/package.json +0 -0
- package/dist/templates/fastify/percher.toml +0 -0
- package/dist/templates/flask/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/flask/main.py +0 -0
- package/dist/templates/flask/percher.toml +0 -0
- package/dist/templates/flask/requirements.txt +0 -0
- package/dist/templates/go/Dockerfile +0 -0
- package/dist/templates/go/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/go/go.mod +0 -0
- package/dist/templates/go/main.go +0 -0
- package/dist/templates/go/percher.toml +0 -0
- package/dist/templates/hono/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/hono/index.ts +0 -0
- package/dist/templates/hono/package.json +0 -0
- package/dist/templates/hono/percher.toml +0 -0
- package/dist/templates/htmx/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/htmx/index.ts +0 -0
- package/dist/templates/htmx/package.json +0 -0
- package/dist/templates/htmx/percher.toml +0 -0
- package/dist/templates/hugo/Caddyfile +0 -0
- package/dist/templates/hugo/Dockerfile +1 -1
- package/dist/templates/hugo/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/hugo/content/_index.md +0 -0
- package/dist/templates/hugo/hugo.toml +0 -0
- package/dist/templates/hugo/layouts/index.html +0 -0
- package/dist/templates/hugo/percher.toml +0 -0
- package/dist/templates/java/Dockerfile +0 -0
- package/dist/templates/java/Main.java +0 -0
- package/dist/templates/java/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/java/percher.toml +0 -0
- package/dist/templates/laravel/Dockerfile +0 -0
- package/dist/templates/laravel/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/laravel/composer.json +0 -0
- package/dist/templates/laravel/percher.toml +0 -0
- package/dist/templates/laravel/public/index.php +0 -0
- package/dist/templates/nextjs/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/nextjs/app/api/health/route.ts +0 -0
- package/dist/templates/nextjs/app/layout.tsx +0 -0
- package/dist/templates/nextjs/app/page.tsx +0 -0
- package/dist/templates/nextjs/next.config.mjs +0 -0
- package/dist/templates/nextjs/package.json +0 -0
- package/dist/templates/nextjs/percher.toml +0 -0
- package/dist/templates/node/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/node/index.js +0 -0
- package/dist/templates/node/package.json +0 -0
- package/dist/templates/node/percher.toml +0 -0
- package/dist/templates/nuxt/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/nuxt/app.vue +0 -0
- package/dist/templates/nuxt/nuxt.config.ts +0 -0
- package/dist/templates/nuxt/package.json +0 -0
- package/dist/templates/nuxt/percher.toml +0 -0
- package/dist/templates/nuxt/server/api/health.ts +0 -0
- package/dist/templates/phoenix/Dockerfile +0 -0
- package/dist/templates/phoenix/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/phoenix/lib/application.ex +0 -0
- package/dist/templates/phoenix/lib/router.ex +0 -0
- package/dist/templates/phoenix/mix.exs +0 -0
- package/dist/templates/phoenix/percher.toml +0 -0
- package/dist/templates/preact/Caddyfile +1 -1
- package/dist/templates/preact/Dockerfile +2 -2
- package/dist/templates/preact/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/preact/index.html +0 -0
- package/dist/templates/preact/package.json +0 -0
- package/dist/templates/preact/percher.toml +0 -0
- package/dist/templates/preact/src/main.tsx +0 -0
- package/dist/templates/preact/vite.config.ts +0 -0
- package/dist/templates/python/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/python/main.py +0 -0
- package/dist/templates/python/nixpacks.toml +0 -0
- package/dist/templates/python/percher.toml +0 -0
- package/dist/templates/python/requirements.txt +0 -0
- package/dist/templates/rails/Dockerfile +0 -0
- package/dist/templates/rails/Gemfile +0 -0
- package/dist/templates/rails/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/rails/config.ru +0 -0
- package/dist/templates/rails/percher.toml +0 -0
- package/dist/templates/remix/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/remix/app/root.tsx +0 -0
- package/dist/templates/remix/app/routes/_index.tsx +0 -0
- package/dist/templates/remix/app/routes/health.tsx +0 -0
- package/dist/templates/remix/package.json +0 -0
- package/dist/templates/remix/percher.toml +0 -0
- package/dist/templates/remix/vite.config.ts +0 -0
- package/dist/templates/rust/Cargo.toml +0 -0
- package/dist/templates/rust/Dockerfile +0 -0
- package/dist/templates/rust/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/rust/percher.toml +0 -0
- package/dist/templates/rust/src/main.rs +0 -0
- package/dist/templates/solid/Caddyfile +1 -1
- package/dist/templates/solid/Dockerfile +2 -2
- package/dist/templates/solid/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/solid/index.html +0 -0
- package/dist/templates/solid/package.json +0 -0
- package/dist/templates/solid/percher.toml +0 -0
- package/dist/templates/solid/src/main.tsx +0 -0
- package/dist/templates/solid/vite.config.ts +0 -0
- package/dist/templates/static/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/static/index.html +0 -0
- package/dist/templates/static/percher.toml +0 -0
- package/dist/templates/static/style.css +0 -0
- package/dist/templates/sveltekit/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/sveltekit/package.json +0 -0
- package/dist/templates/sveltekit/percher.toml +0 -0
- package/dist/templates/sveltekit/src/app.html +0 -0
- package/dist/templates/sveltekit/src/routes/+page.svelte +0 -0
- package/dist/templates/sveltekit/src/routes/health/+server.ts +0 -0
- package/dist/templates/sveltekit/svelte.config.js +0 -0
- package/dist/templates/sveltekit/vite.config.js +0 -0
- package/dist/templates/vite-react/Caddyfile +1 -1
- package/dist/templates/vite-react/Dockerfile +2 -2
- package/dist/templates/vite-react/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/vite-react/index.html +0 -0
- package/dist/templates/vite-react/package.json +0 -0
- package/dist/templates/vite-react/percher.toml +0 -0
- package/dist/templates/vite-react/src/main.tsx +0 -0
- package/dist/templates/vite-react/vite.config.ts +0 -0
- package/dist/templates/vite-vue/Caddyfile +1 -1
- package/dist/templates/vite-vue/Dockerfile +2 -2
- package/dist/templates/vite-vue/PERCHER-TEMPLATE-LICENSE.txt +0 -0
- package/dist/templates/vite-vue/index.html +0 -0
- package/dist/templates/vite-vue/package.json +0 -0
- package/dist/templates/vite-vue/percher.toml +0 -0
- package/dist/templates/vite-vue/src/main.ts +0 -0
- package/dist/templates/vite-vue/vite.config.ts +0 -0
- package/package.json +5 -5
|
@@ -12,7 +12,7 @@ RUN bun install && bun run build
|
|
|
12
12
|
|
|
13
13
|
# Preserve build inputs for deployment; only this filtered copy reaches /srv.
|
|
14
14
|
FROM build AS static-content
|
|
15
|
-
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink())
|
|
15
|
+
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]envrc|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]env-[^/]*|[.]env_[^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink()){console.error("Static content cannot contain symlinks");process.exit(1)};return true}})' '/app' '/app/dist' '/percher-static-content'
|
|
16
16
|
|
|
17
17
|
# --- Serve stage: minimal Caddy image --------------------------------
|
|
18
18
|
# Build pinned Caddy source with refreshed security modules. The scratch
|
|
@@ -23,7 +23,7 @@ RUN go mod download github.com/caddyserver/caddy/v2@v2.11.7 \
|
|
|
23
23
|
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.7 /src \
|
|
24
24
|
&& chmod -R u+w /src
|
|
25
25
|
WORKDIR /src
|
|
26
|
-
RUN go get github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
26
|
+
RUN go get github.com/go-jose/go-jose/v4@v4.1.6 github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
27
27
|
go.opentelemetry.io/otel@v1.46.0 go.opentelemetry.io/otel/sdk/log@v0.22.0 \
|
|
28
28
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc@v0.22.0 \
|
|
29
29
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp@v0.22.0 \
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
root * /srv
|
|
4
4
|
encode gzip zstd
|
|
5
5
|
route {
|
|
6
|
-
@percher_platform path_regexp percher_platform (?i)(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))
|
|
6
|
+
@percher_platform path_regexp percher_platform (?i)(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]envrc|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]env-[^/]*|[.]env_[^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))
|
|
7
7
|
respond @percher_platform 404
|
|
8
8
|
try_files {path} /index.html
|
|
9
9
|
file_server
|
|
@@ -12,7 +12,7 @@ RUN bun install && bun run build
|
|
|
12
12
|
|
|
13
13
|
# Preserve build inputs for deployment; only this filtered copy reaches /srv.
|
|
14
14
|
FROM build AS static-content
|
|
15
|
-
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink())
|
|
15
|
+
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]envrc|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]env-[^/]*|[.]env_[^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink()){console.error("Static content cannot contain symlinks");process.exit(1)};return true}})' '/app' '/app/dist' '/percher-static-content'
|
|
16
16
|
|
|
17
17
|
# --- Serve stage: minimal Caddy image --------------------------------
|
|
18
18
|
# Build pinned Caddy source with refreshed security modules. The scratch
|
|
@@ -23,7 +23,7 @@ RUN go mod download github.com/caddyserver/caddy/v2@v2.11.7 \
|
|
|
23
23
|
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.7 /src \
|
|
24
24
|
&& chmod -R u+w /src
|
|
25
25
|
WORKDIR /src
|
|
26
|
-
RUN go get github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
26
|
+
RUN go get github.com/go-jose/go-jose/v4@v4.1.6 github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
27
27
|
go.opentelemetry.io/otel@v1.46.0 go.opentelemetry.io/otel/sdk/log@v0.22.0 \
|
|
28
28
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc@v0.22.0 \
|
|
29
29
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp@v0.22.0 \
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
root * /srv
|
|
4
4
|
encode gzip zstd
|
|
5
5
|
route {
|
|
6
|
-
@percher_platform path_regexp percher_platform (?i)(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))
|
|
6
|
+
@percher_platform path_regexp percher_platform (?i)(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]envrc|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]env-[^/]*|[.]env_[^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))
|
|
7
7
|
respond @percher_platform 404
|
|
8
8
|
try_files {path} /index.html
|
|
9
9
|
file_server
|
|
@@ -12,7 +12,7 @@ RUN bun install && bun run build
|
|
|
12
12
|
|
|
13
13
|
# Preserve build inputs for deployment; only this filtered copy reaches /srv.
|
|
14
14
|
FROM build AS static-content
|
|
15
|
-
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink())
|
|
15
|
+
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]envrc|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]env-[^/]*|[.]env_[^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink()){console.error("Static content cannot contain symlinks");process.exit(1)};return true}})' '/app' '/app/dist' '/percher-static-content'
|
|
16
16
|
|
|
17
17
|
# --- Serve stage: minimal Caddy image --------------------------------
|
|
18
18
|
# Build pinned Caddy source with refreshed security modules. The scratch
|
|
@@ -23,7 +23,7 @@ RUN go mod download github.com/caddyserver/caddy/v2@v2.11.7 \
|
|
|
23
23
|
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.7 /src \
|
|
24
24
|
&& chmod -R u+w /src
|
|
25
25
|
WORKDIR /src
|
|
26
|
-
RUN go get github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
26
|
+
RUN go get github.com/go-jose/go-jose/v4@v4.1.6 github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
27
27
|
go.opentelemetry.io/otel@v1.46.0 go.opentelemetry.io/otel/sdk/log@v0.22.0 \
|
|
28
28
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc@v0.22.0 \
|
|
29
29
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp@v0.22.0 \
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
root * /srv
|
|
4
4
|
encode gzip zstd
|
|
5
5
|
route {
|
|
6
|
-
@percher_platform path_regexp percher_platform (?i)(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))
|
|
6
|
+
@percher_platform path_regexp percher_platform (?i)(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]envrc|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]env-[^/]*|[.]env_[^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))
|
|
7
7
|
respond @percher_platform 404
|
|
8
8
|
try_files {path} /index.html
|
|
9
9
|
file_server
|
|
@@ -12,7 +12,7 @@ RUN bun install && bun run build
|
|
|
12
12
|
|
|
13
13
|
# Preserve build inputs for deployment; only this filtered copy reaches /srv.
|
|
14
14
|
FROM build AS static-content
|
|
15
|
-
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink())
|
|
15
|
+
RUN bun -e 'const fs=require("node:fs"),path=require("node:path");const root=fs.realpathSync(process.argv[1]),dir=fs.realpathSync(process.argv[2]),dest=process.argv[3];const deny=new RegExp("(?:^/+(?:percher[.]toml|[.]percherignore|pb|Dockerfile|Caddyfile|[.]git|[.]env|[.]env[.][^/]*|[.]percher-[^/]*)(?:/|$)|(?:^|/)(?:[.]npmrc|[.]pypirc|[.]netrc|_netrc|[.]git-credentials|[.]htpasswd|[.]pgpass|[.]my[.]cnf|[.]dev[.]vars|id_rsa|id_dsa|id_ecdsa|id_ed25519|credentials[.]json|secrets[.]toml|wp-config[.]php|[.]env|[.]envrc|[.]ssh|[.]aws|[.]gnupg|[.]docker/config[.]json|[.]kube/config|[.]env[.][^/]*|[.]env-[^/]*|[.]env_[^/]*|[.]dev[.]vars[.][^/]*|[^/]*[.]pem|[^/]*[.]key|[^/]*[.]p12|[^/]*[.]pfx|[^/]*[.]jks|[^/]*[.]keystore)(?:/|$))","i");const reserved=p=>deny.test("/"+p.split(path.sep).join("/"));if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content");if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists");fs.cpSync(dir,dest,{recursive:true,filter:p=>{if(reserved(path.relative(dir,p))||reserved(path.relative(root,p)))return false;if(fs.lstatSync(p).isSymbolicLink()){console.error("Static content cannot contain symlinks");process.exit(1)};return true}})' '/app' '/app/dist' '/percher-static-content'
|
|
16
16
|
|
|
17
17
|
# --- Serve stage: minimal Caddy image --------------------------------
|
|
18
18
|
# Build pinned Caddy source with refreshed security modules. The scratch
|
|
@@ -23,7 +23,7 @@ RUN go mod download github.com/caddyserver/caddy/v2@v2.11.7 \
|
|
|
23
23
|
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.7 /src \
|
|
24
24
|
&& chmod -R u+w /src
|
|
25
25
|
WORKDIR /src
|
|
26
|
-
RUN go get github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
26
|
+
RUN go get github.com/go-jose/go-jose/v4@v4.1.6 github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \
|
|
27
27
|
go.opentelemetry.io/otel@v1.46.0 go.opentelemetry.io/otel/sdk/log@v0.22.0 \
|
|
28
28
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc@v0.22.0 \
|
|
29
29
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp@v0.22.0 \
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "percher",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "CLI for the Percher hosting platform — publish apps with one command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"typecheck": "tsc --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@percher/shared": "^1.
|
|
32
|
-
"@percher/client": "^1.
|
|
33
|
-
"@percher/core": "^1.
|
|
34
|
-
"@percher/toml": "^1.0
|
|
31
|
+
"@percher/shared": "^1.4.0",
|
|
32
|
+
"@percher/client": "^1.5.0",
|
|
33
|
+
"@percher/core": "^1.5.0",
|
|
34
|
+
"@percher/toml": "^1.1.0",
|
|
35
35
|
"cac": "^7.0.0",
|
|
36
36
|
"picocolors": "^1.1.1"
|
|
37
37
|
},
|