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
package/dist/bin/percher.js
CHANGED
|
@@ -55,7 +55,7 @@ var __exportCjs = (target, getters, setters) => {
|
|
|
55
55
|
};
|
|
56
56
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
57
57
|
|
|
58
|
-
//
|
|
58
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js
|
|
59
59
|
var require_parser = __commonJS(function(exports2, module2) {
|
|
60
60
|
var ParserEND = 1114112;
|
|
61
61
|
|
|
@@ -185,7 +185,7 @@ var require_parser = __commonJS(function(exports2, module2) {
|
|
|
185
185
|
module2.exports = Parser;
|
|
186
186
|
});
|
|
187
187
|
|
|
188
|
-
//
|
|
188
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime.js
|
|
189
189
|
var require_create_datetime = __commonJS(function(exports2, module2) {
|
|
190
190
|
module2.exports = (value) => {
|
|
191
191
|
const date = new Date(value);
|
|
@@ -197,7 +197,7 @@ var require_create_datetime = __commonJS(function(exports2, module2) {
|
|
|
197
197
|
};
|
|
198
198
|
});
|
|
199
199
|
|
|
200
|
-
//
|
|
200
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/format-num.js
|
|
201
201
|
var require_format_num = __commonJS(function(exports2, module2) {
|
|
202
202
|
module2.exports = (d, num) => {
|
|
203
203
|
num = String(num);
|
|
@@ -207,7 +207,7 @@ var require_format_num = __commonJS(function(exports2, module2) {
|
|
|
207
207
|
};
|
|
208
208
|
});
|
|
209
209
|
|
|
210
|
-
//
|
|
210
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime-float.js
|
|
211
211
|
var require_create_datetime_float = __commonJS(function(exports2, module2) {
|
|
212
212
|
var f = require_format_num();
|
|
213
213
|
|
|
@@ -232,7 +232,7 @@ var require_create_datetime_float = __commonJS(function(exports2, module2) {
|
|
|
232
232
|
};
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
//
|
|
235
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-date.js
|
|
236
236
|
var require_create_date = __commonJS(function(exports2, module2) {
|
|
237
237
|
var f = require_format_num();
|
|
238
238
|
var DateTime = global.Date;
|
|
@@ -256,7 +256,7 @@ var require_create_date = __commonJS(function(exports2, module2) {
|
|
|
256
256
|
};
|
|
257
257
|
});
|
|
258
258
|
|
|
259
|
-
//
|
|
259
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-time.js
|
|
260
260
|
var require_create_time = __commonJS(function(exports2, module2) {
|
|
261
261
|
var f = require_format_num();
|
|
262
262
|
|
|
@@ -279,7 +279,7 @@ var require_create_time = __commonJS(function(exports2, module2) {
|
|
|
279
279
|
};
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
-
//
|
|
282
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js
|
|
283
283
|
var require_toml_parser = __commonJS(function(exports, module) {
|
|
284
284
|
module.exports = makeParserClass(require_parser());
|
|
285
285
|
module.exports.makeParserClass = makeParserClass;
|
|
@@ -1587,7 +1587,7 @@ var require_toml_parser = __commonJS(function(exports, module) {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
});
|
|
1589
1589
|
|
|
1590
|
-
//
|
|
1590
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-pretty-error.js
|
|
1591
1591
|
var require_parse_pretty_error = __commonJS(function(exports2, module2) {
|
|
1592
1592
|
module2.exports = prettyError;
|
|
1593
1593
|
function prettyError(err, buf) {
|
|
@@ -1627,7 +1627,7 @@ var require_parse_pretty_error = __commonJS(function(exports2, module2) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
});
|
|
1629
1629
|
|
|
1630
|
-
//
|
|
1630
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-string.js
|
|
1631
1631
|
var require_parse_string = __commonJS(function(exports2, module2) {
|
|
1632
1632
|
module2.exports = parseString;
|
|
1633
1633
|
var TOMLParser = require_toml_parser();
|
|
@@ -1646,7 +1646,7 @@ var require_parse_string = __commonJS(function(exports2, module2) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
});
|
|
1648
1648
|
|
|
1649
|
-
//
|
|
1649
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-async.js
|
|
1650
1650
|
var require_parse_async = __commonJS(function(exports2, module2) {
|
|
1651
1651
|
module2.exports = parseAsync;
|
|
1652
1652
|
var TOMLParser = require_toml_parser();
|
|
@@ -1678,7 +1678,7 @@ var require_parse_async = __commonJS(function(exports2, module2) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
});
|
|
1680
1680
|
|
|
1681
|
-
//
|
|
1681
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-stream.js
|
|
1682
1682
|
var require_parse_stream = __commonJS(function(exports2, module2) {
|
|
1683
1683
|
module2.exports = parseStream;
|
|
1684
1684
|
var stream = __require("stream");
|
|
@@ -1757,7 +1757,7 @@ var require_parse_stream = __commonJS(function(exports2, module2) {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
});
|
|
1759
1759
|
|
|
1760
|
-
//
|
|
1760
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse.js
|
|
1761
1761
|
var require_parse = __commonJS(function(exports2, module2) {
|
|
1762
1762
|
module2.exports = require_parse_string();
|
|
1763
1763
|
module2.exports.async = require_parse_async();
|
|
@@ -1765,7 +1765,7 @@ var require_parse = __commonJS(function(exports2, module2) {
|
|
|
1765
1765
|
module2.exports.prettyError = require_parse_pretty_error();
|
|
1766
1766
|
});
|
|
1767
1767
|
|
|
1768
|
-
//
|
|
1768
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js
|
|
1769
1769
|
var require_stringify = __commonJS(function(exports2, module2) {
|
|
1770
1770
|
module2.exports = stringify;
|
|
1771
1771
|
module2.exports.value = stringifyInline;
|
|
@@ -2044,7 +2044,7 @@ var require_stringify = __commonJS(function(exports2, module2) {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
});
|
|
2046
2046
|
|
|
2047
|
-
//
|
|
2047
|
+
// ../../node_modules/.bun/fast-fifo@1.3.2/node_modules/fast-fifo/fixed-size.js
|
|
2048
2048
|
var require_fixed_size = __commonJS(function(exports2, module2) {
|
|
2049
2049
|
module2.exports = class FixedFIFO {
|
|
2050
2050
|
constructor(hwm) {
|
|
@@ -2085,7 +2085,7 @@ var require_fixed_size = __commonJS(function(exports2, module2) {
|
|
|
2085
2085
|
};
|
|
2086
2086
|
});
|
|
2087
2087
|
|
|
2088
|
-
//
|
|
2088
|
+
// ../../node_modules/.bun/fast-fifo@1.3.2/node_modules/fast-fifo/index.js
|
|
2089
2089
|
var require_fast_fifo = __commonJS(function(exports2, module2) {
|
|
2090
2090
|
var FixedFIFO = require_fixed_size();
|
|
2091
2091
|
module2.exports = class FastFIFO {
|
|
@@ -2132,7 +2132,7 @@ var require_fast_fifo = __commonJS(function(exports2, module2) {
|
|
|
2132
2132
|
};
|
|
2133
2133
|
});
|
|
2134
2134
|
|
|
2135
|
-
//
|
|
2135
|
+
// ../../node_modules/.bun/b4a@1.8.0/node_modules/b4a/index.js
|
|
2136
2136
|
var require_b4a = __commonJS(function(exports2, module2) {
|
|
2137
2137
|
function isBuffer(value) {
|
|
2138
2138
|
return Buffer.isBuffer(value) || value instanceof Uint8Array;
|
|
@@ -2288,7 +2288,7 @@ var require_b4a = __commonJS(function(exports2, module2) {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
});
|
|
2290
2290
|
|
|
2291
|
-
//
|
|
2291
|
+
// ../../node_modules/.bun/text-decoder@1.2.7/node_modules/text-decoder/lib/pass-through-decoder.js
|
|
2292
2292
|
var require_pass_through_decoder = __commonJS(function(exports2, module2) {
|
|
2293
2293
|
var b4a = require_b4a();
|
|
2294
2294
|
module2.exports = class PassThroughDecoder {
|
|
@@ -2307,7 +2307,7 @@ var require_pass_through_decoder = __commonJS(function(exports2, module2) {
|
|
|
2307
2307
|
};
|
|
2308
2308
|
});
|
|
2309
2309
|
|
|
2310
|
-
//
|
|
2310
|
+
// ../../node_modules/.bun/text-decoder@1.2.7/node_modules/text-decoder/lib/utf8-decoder.js
|
|
2311
2311
|
var require_utf8_decoder = __commonJS(function(exports2, module2) {
|
|
2312
2312
|
var b4a = require_b4a();
|
|
2313
2313
|
module2.exports = class UTF8Decoder {
|
|
@@ -2481,7 +2481,7 @@ var require_utf8_decoder = __commonJS(function(exports2, module2) {
|
|
|
2481
2481
|
}
|
|
2482
2482
|
});
|
|
2483
2483
|
|
|
2484
|
-
//
|
|
2484
|
+
// ../../node_modules/.bun/text-decoder@1.2.7/node_modules/text-decoder/index.js
|
|
2485
2485
|
var require_text_decoder = __commonJS(function(exports2, module2) {
|
|
2486
2486
|
var PassThroughDecoder = require_pass_through_decoder();
|
|
2487
2487
|
var UTF8Decoder = require_utf8_decoder();
|
|
@@ -2542,7 +2542,7 @@ var require_text_decoder = __commonJS(function(exports2, module2) {
|
|
|
2542
2542
|
}
|
|
2543
2543
|
});
|
|
2544
2544
|
|
|
2545
|
-
//
|
|
2545
|
+
// ../../node_modules/.bun/streamx@2.25.0/node_modules/streamx/index.js
|
|
2546
2546
|
var require_streamx = __commonJS(function(exports2, module2) {
|
|
2547
2547
|
var { EventEmitter } = __require("events");
|
|
2548
2548
|
var STREAM_DESTROYED = new Error("Stream was destroyed");
|
|
@@ -3617,7 +3617,7 @@ var require_streamx = __commonJS(function(exports2, module2) {
|
|
|
3617
3617
|
};
|
|
3618
3618
|
});
|
|
3619
3619
|
|
|
3620
|
-
//
|
|
3620
|
+
// ../../node_modules/.bun/b4a@1.8.1/node_modules/b4a/index.js
|
|
3621
3621
|
var require_b4a2 = __commonJS(function(exports2, module2) {
|
|
3622
3622
|
function isBuffer(value) {
|
|
3623
3623
|
return Buffer.isBuffer(value) || value instanceof Uint8Array;
|
|
@@ -3773,7 +3773,7 @@ var require_b4a2 = __commonJS(function(exports2, module2) {
|
|
|
3773
3773
|
};
|
|
3774
3774
|
});
|
|
3775
3775
|
|
|
3776
|
-
//
|
|
3776
|
+
// ../../node_modules/.bun/tar-stream@3.1.9/node_modules/tar-stream/headers.js
|
|
3777
3777
|
var require_headers = __commonJS(function(exports2) {
|
|
3778
3778
|
var b4a = require_b4a2();
|
|
3779
3779
|
var ZEROS = "0000000000000000000";
|
|
@@ -4069,7 +4069,7 @@ var require_headers = __commonJS(function(exports2) {
|
|
|
4069
4069
|
}
|
|
4070
4070
|
});
|
|
4071
4071
|
|
|
4072
|
-
//
|
|
4072
|
+
// ../../node_modules/.bun/tar-stream@3.1.9/node_modules/tar-stream/extract.js
|
|
4073
4073
|
var require_extract = __commonJS(function(exports2, module2) {
|
|
4074
4074
|
var { Writable, Readable, getStreamError } = require_streamx();
|
|
4075
4075
|
var FIFO = require_fast_fifo();
|
|
@@ -4437,7 +4437,7 @@ var require_extract = __commonJS(function(exports2, module2) {
|
|
|
4437
4437
|
}
|
|
4438
4438
|
});
|
|
4439
4439
|
|
|
4440
|
-
//
|
|
4440
|
+
// ../../node_modules/.bun/tar-stream@3.1.9/node_modules/tar-stream/constants.js
|
|
4441
4441
|
var require_constants = __commonJS(function(exports2, module2) {
|
|
4442
4442
|
var constants = {
|
|
4443
4443
|
S_IFMT: 61440,
|
|
@@ -4454,7 +4454,7 @@ var require_constants = __commonJS(function(exports2, module2) {
|
|
|
4454
4454
|
}
|
|
4455
4455
|
});
|
|
4456
4456
|
|
|
4457
|
-
//
|
|
4457
|
+
// ../../node_modules/.bun/tar-stream@3.1.9/node_modules/tar-stream/pack.js
|
|
4458
4458
|
var require_pack = __commonJS(function(exports2, module2) {
|
|
4459
4459
|
var { Readable, Writable, getStreamError } = require_streamx();
|
|
4460
4460
|
var b4a = require_b4a2();
|
|
@@ -4854,7 +4854,7 @@ var package_default;
|
|
|
4854
4854
|
var init_package = __esm(() => {
|
|
4855
4855
|
package_default = {
|
|
4856
4856
|
name: "@percher/client",
|
|
4857
|
-
version: "1.
|
|
4857
|
+
version: "1.5.0",
|
|
4858
4858
|
description: "Official TypeScript SDK for Percher: deploy apps, manage env vars, stream logs, and automate hosting workflows.",
|
|
4859
4859
|
keywords: [
|
|
4860
4860
|
"percher",
|
|
@@ -4895,8 +4895,8 @@ var init_package = __esm(() => {
|
|
|
4895
4895
|
typecheck: "tsc --noEmit"
|
|
4896
4896
|
},
|
|
4897
4897
|
dependencies: {
|
|
4898
|
-
"@percher/shared": "^1.
|
|
4899
|
-
"@percher/toml": "^1.0
|
|
4898
|
+
"@percher/shared": "^1.4.0",
|
|
4899
|
+
"@percher/toml": "^1.1.0"
|
|
4900
4900
|
},
|
|
4901
4901
|
devDependencies: {
|
|
4902
4902
|
"bun-types": "^1.1.0",
|
|
@@ -5414,6 +5414,23 @@ class AnonResource {
|
|
|
5414
5414
|
}
|
|
5415
5415
|
}
|
|
5416
5416
|
|
|
5417
|
+
// ../client/dist/resources/app-mcp.js
|
|
5418
|
+
class AppMcpResource {
|
|
5419
|
+
http;
|
|
5420
|
+
constructor(http) {
|
|
5421
|
+
this.http = http;
|
|
5422
|
+
}
|
|
5423
|
+
get(appRef) {
|
|
5424
|
+
return this.http.get(`/apps/${encodeURIComponent(appRef)}/app-mcp`);
|
|
5425
|
+
}
|
|
5426
|
+
accept(appRef, input) {
|
|
5427
|
+
return this.http.post(`/apps/${encodeURIComponent(appRef)}/app-mcp/accept`, input);
|
|
5428
|
+
}
|
|
5429
|
+
disable(appRef) {
|
|
5430
|
+
return this.http.post(`/apps/${encodeURIComponent(appRef)}/app-mcp/disable`, {});
|
|
5431
|
+
}
|
|
5432
|
+
}
|
|
5433
|
+
|
|
5417
5434
|
// ../client/dist/resources/apps-publish.js
|
|
5418
5435
|
function publishInline(http, input) {
|
|
5419
5436
|
const params = new URLSearchParams;
|
|
@@ -6014,12 +6031,12 @@ function record2(value, keys) {
|
|
|
6014
6031
|
function instant(value) {
|
|
6015
6032
|
return typeof value === "string" && value.length === 24 && Number.isFinite(Date.parse(value)) && new Date(value).toISOString() === value;
|
|
6016
6033
|
}
|
|
6017
|
-
function
|
|
6034
|
+
function identifier2(value) {
|
|
6018
6035
|
return typeof value === "string" && /^[A-Za-z0-9_-]{1,128}$/.test(value);
|
|
6019
6036
|
}
|
|
6020
6037
|
function status(value) {
|
|
6021
6038
|
const v = record2(value, ["operationId", "state", "revision", "deadline", "cleanupReason"]);
|
|
6022
|
-
if (!
|
|
6039
|
+
if (!identifier2(v.operationId) || typeof v.state !== "string" || !["NOT_REQUESTED", "REQUESTED", "PREPARING", "READY", "CLEANUP_REQUIRED"].includes(v.state) || typeof v.revision !== "number" || !Number.isSafeInteger(v.revision) || v.revision < 0 || typeof v.deadline !== "number" || !Number.isSafeInteger(v.deadline) || v.deadline <= 0 || (v.state === "CLEANUP_REQUIRED" ? typeof v.cleanupReason !== "string" || !["INTERRUPTED", "AUTHORITY_LOST", "EXPIRED", "PROCESSOR_FAILED"].includes(v.cleanupReason) : v.cleanupReason !== null))
|
|
6023
6040
|
return invalid();
|
|
6024
6041
|
return Object.freeze({ ...v });
|
|
6025
6042
|
}
|
|
@@ -6040,7 +6057,7 @@ class ExportResource {
|
|
|
6040
6057
|
"ttlSeconds",
|
|
6041
6058
|
"includeSecrets"
|
|
6042
6059
|
]);
|
|
6043
|
-
if (v.protocolVersion !== 2 || !
|
|
6060
|
+
if (v.protocolVersion !== 2 || !identifier2(v.operationId) || !identifier2(v.tokenId) || typeof v.preparationToken !== "string" || !/^pce_[A-Za-z0-9_-]{43}$/.test(v.preparationToken) || !instant(v.expiresAt) || Date.parse(v.expiresAt) > Date.now() + 900000 || v.ttlSeconds !== 900 || v.includeSecrets !== false)
|
|
6044
6061
|
return invalid();
|
|
6045
6062
|
if (Date.parse(v.expiresAt) <= Date.now())
|
|
6046
6063
|
throw new PercherApiError("Export preparation expired. Start a new export.", {
|
|
@@ -6392,6 +6409,55 @@ class SourceResource {
|
|
|
6392
6409
|
}
|
|
6393
6410
|
}
|
|
6394
6411
|
|
|
6412
|
+
// ../client/dist/resources/source-reviews.js
|
|
6413
|
+
class SourceReviewsResource {
|
|
6414
|
+
http;
|
|
6415
|
+
constructor(http) {
|
|
6416
|
+
this.http = http;
|
|
6417
|
+
}
|
|
6418
|
+
base(appRef) {
|
|
6419
|
+
return `/apps/${encodeURIComponent(appRef)}/source-reviews`;
|
|
6420
|
+
}
|
|
6421
|
+
query(options) {
|
|
6422
|
+
const query = new URLSearchParams;
|
|
6423
|
+
if (options?.afterId)
|
|
6424
|
+
query.set("afterId", options.afterId);
|
|
6425
|
+
if (options?.limit !== undefined)
|
|
6426
|
+
query.set("limit", String(options.limit));
|
|
6427
|
+
return query.size ? `?${query}` : "";
|
|
6428
|
+
}
|
|
6429
|
+
list(appRef, options) {
|
|
6430
|
+
return this.http.get(this.base(appRef) + this.query(options));
|
|
6431
|
+
}
|
|
6432
|
+
submit(appRef, assessmentId, findingId, bytes, consent) {
|
|
6433
|
+
if (consent !== "complete-file" || bytes.byteLength > 1024 * 1024)
|
|
6434
|
+
throw new Error("Complete file consent and at most 1 MiB required");
|
|
6435
|
+
return this.http.postBinary(`${this.base(appRef)}/${encodeURIComponent(assessmentId)}/${encodeURIComponent(findingId)}`, bytes, {
|
|
6436
|
+
"X-Percher-Source-Review-Consent": consent
|
|
6437
|
+
});
|
|
6438
|
+
}
|
|
6439
|
+
get(appRef, requestId) {
|
|
6440
|
+
return this.http.get(`${this.base(appRef)}/requests/${encodeURIComponent(requestId)}`);
|
|
6441
|
+
}
|
|
6442
|
+
withdraw(appRef, requestId, revision) {
|
|
6443
|
+
return this.http.post(`${this.base(appRef)}/requests/${encodeURIComponent(requestId)}/withdraw`, { revision });
|
|
6444
|
+
}
|
|
6445
|
+
listAdmin(options) {
|
|
6446
|
+
return this.http.get(`/admin/source-reviews${this.query(options)}`);
|
|
6447
|
+
}
|
|
6448
|
+
open(requestId) {
|
|
6449
|
+
return this.http.post(`/admin/source-reviews/${encodeURIComponent(requestId)}/open`, {});
|
|
6450
|
+
}
|
|
6451
|
+
decide(requestId, decision) {
|
|
6452
|
+
return this.http.post(`/admin/source-reviews/${encodeURIComponent(requestId)}/decide`, decision);
|
|
6453
|
+
}
|
|
6454
|
+
revoke(requestId, revision) {
|
|
6455
|
+
return this.http.post(`/admin/source-reviews/${encodeURIComponent(requestId)}/revoke`, {
|
|
6456
|
+
revision
|
|
6457
|
+
});
|
|
6458
|
+
}
|
|
6459
|
+
}
|
|
6460
|
+
|
|
6395
6461
|
// ../client/dist/resources/support.js
|
|
6396
6462
|
class SupportResource {
|
|
6397
6463
|
http;
|
|
@@ -6477,6 +6543,7 @@ class PercherClient {
|
|
|
6477
6543
|
sessionId;
|
|
6478
6544
|
clientVersion;
|
|
6479
6545
|
apps;
|
|
6546
|
+
appMcp;
|
|
6480
6547
|
anon;
|
|
6481
6548
|
data;
|
|
6482
6549
|
env;
|
|
@@ -6496,6 +6563,7 @@ class PercherClient {
|
|
|
6496
6563
|
transfers;
|
|
6497
6564
|
support;
|
|
6498
6565
|
source;
|
|
6566
|
+
sourceReviews;
|
|
6499
6567
|
constructor(options = {}) {
|
|
6500
6568
|
const bothExplicit = options.apiUrl !== undefined && options.token !== undefined;
|
|
6501
6569
|
const defaults = bothExplicit ? undefined : loadConfig();
|
|
@@ -6530,6 +6598,8 @@ class PercherClient {
|
|
|
6530
6598
|
this.transfers = new TransfersResource(http);
|
|
6531
6599
|
this.support = new SupportResource(http);
|
|
6532
6600
|
this.source = new SourceResource(http);
|
|
6601
|
+
this.sourceReviews = new SourceReviewsResource(http);
|
|
6602
|
+
this.appMcp = new AppMcpResource(http);
|
|
6533
6603
|
}
|
|
6534
6604
|
}
|
|
6535
6605
|
var init_client = __esm(() => {
|
|
@@ -6723,7 +6793,7 @@ var init_dist = __esm(() => {
|
|
|
6723
6793
|
init_telemetry_consent();
|
|
6724
6794
|
});
|
|
6725
6795
|
|
|
6726
|
-
//
|
|
6796
|
+
// ../../node_modules/.bun/ignore@7.0.5/node_modules/ignore/index.js
|
|
6727
6797
|
var require_ignore = __commonJS(function(exports2, module2) {
|
|
6728
6798
|
function makeArray(subject) {
|
|
6729
6799
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -7050,7 +7120,7 @@ var require_ignore = __commonJS(function(exports2, module2) {
|
|
|
7050
7120
|
define2(module2.exports, Symbol.for("setupWindows"), setupWindows);
|
|
7051
7121
|
});
|
|
7052
7122
|
|
|
7053
|
-
//
|
|
7123
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/utils/intersection.js
|
|
7054
7124
|
var require_intersection = __commonJS(function(exports2, module2) {
|
|
7055
7125
|
module2.exports = function(arrays) {
|
|
7056
7126
|
const result = new Set(arrays[0]);
|
|
@@ -7072,7 +7142,7 @@ var require_intersection = __commonJS(function(exports2, module2) {
|
|
|
7072
7142
|
};
|
|
7073
7143
|
});
|
|
7074
7144
|
|
|
7075
|
-
//
|
|
7145
|
+
// ../../node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.js
|
|
7076
7146
|
var require_tslib = __commonJS(function(exports2, module2) {
|
|
7077
7147
|
var __extends;
|
|
7078
7148
|
var __assign;
|
|
@@ -7677,7 +7747,7 @@ var require_tslib = __commonJS(function(exports2, module2) {
|
|
|
7677
7747
|
});
|
|
7678
7748
|
});
|
|
7679
7749
|
|
|
7680
|
-
//
|
|
7750
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/shared.js
|
|
7681
7751
|
var require_shared = __commonJS(function(exports2) {
|
|
7682
7752
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7683
7753
|
exports2.maybeSetModuleExports = undefined;
|
|
@@ -7747,7 +7817,7 @@ var require_shared = __commonJS(function(exports2) {
|
|
|
7747
7817
|
exports2.maybeSetModuleExports = maybeSetModuleExports;
|
|
7748
7818
|
});
|
|
7749
7819
|
|
|
7750
|
-
//
|
|
7820
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/types.js
|
|
7751
7821
|
var require_types = __commonJS(function(exports2, module2) {
|
|
7752
7822
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7753
7823
|
exports2.Def = undefined;
|
|
@@ -8409,7 +8479,7 @@ var require_types = __commonJS(function(exports2, module2) {
|
|
|
8409
8479
|
});
|
|
8410
8480
|
});
|
|
8411
8481
|
|
|
8412
|
-
//
|
|
8482
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/path.js
|
|
8413
8483
|
var require_path = __commonJS(function(exports2, module2) {
|
|
8414
8484
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8415
8485
|
var tslib_1 = require_tslib();
|
|
@@ -8710,7 +8780,7 @@ var require_path = __commonJS(function(exports2, module2) {
|
|
|
8710
8780
|
});
|
|
8711
8781
|
});
|
|
8712
8782
|
|
|
8713
|
-
//
|
|
8783
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/scope.js
|
|
8714
8784
|
var require_scope = __commonJS(function(exports2, module2) {
|
|
8715
8785
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8716
8786
|
var tslib_1 = require_tslib();
|
|
@@ -8978,7 +9048,7 @@ var require_scope = __commonJS(function(exports2, module2) {
|
|
|
8978
9048
|
});
|
|
8979
9049
|
});
|
|
8980
9050
|
|
|
8981
|
-
//
|
|
9051
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/node-path.js
|
|
8982
9052
|
var require_node_path = __commonJS(function(exports2, module2) {
|
|
8983
9053
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8984
9054
|
var tslib_1 = require_tslib();
|
|
@@ -9333,7 +9403,7 @@ var require_node_path = __commonJS(function(exports2, module2) {
|
|
|
9333
9403
|
});
|
|
9334
9404
|
});
|
|
9335
9405
|
|
|
9336
|
-
//
|
|
9406
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/path-visitor.js
|
|
9337
9407
|
var require_path_visitor = __commonJS(function(exports2, module2) {
|
|
9338
9408
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9339
9409
|
var tslib_1 = require_tslib();
|
|
@@ -9624,7 +9694,7 @@ var require_path_visitor = __commonJS(function(exports2, module2) {
|
|
|
9624
9694
|
});
|
|
9625
9695
|
});
|
|
9626
9696
|
|
|
9627
|
-
//
|
|
9697
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/equiv.js
|
|
9628
9698
|
var require_equiv = __commonJS(function(exports2, module2) {
|
|
9629
9699
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9630
9700
|
var tslib_1 = require_tslib();
|
|
@@ -9775,7 +9845,7 @@ var require_equiv = __commonJS(function(exports2, module2) {
|
|
|
9775
9845
|
});
|
|
9776
9846
|
});
|
|
9777
9847
|
|
|
9778
|
-
//
|
|
9848
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/fork.js
|
|
9779
9849
|
var require_fork = __commonJS(function(exports2, module2) {
|
|
9780
9850
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9781
9851
|
var tslib_1 = require_tslib();
|
|
@@ -9833,7 +9903,7 @@ var require_fork = __commonJS(function(exports2, module2) {
|
|
|
9833
9903
|
});
|
|
9834
9904
|
});
|
|
9835
9905
|
|
|
9836
|
-
//
|
|
9906
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/core.js
|
|
9837
9907
|
var require_core = __commonJS(function(exports2, module2) {
|
|
9838
9908
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9839
9909
|
var shared_1 = require_shared();
|
|
@@ -9888,7 +9958,7 @@ var require_core = __commonJS(function(exports2, module2) {
|
|
|
9888
9958
|
});
|
|
9889
9959
|
});
|
|
9890
9960
|
|
|
9891
|
-
//
|
|
9961
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2016.js
|
|
9892
9962
|
var require_es2016 = __commonJS(function(exports2, module2) {
|
|
9893
9963
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9894
9964
|
var tslib_1 = require_tslib();
|
|
@@ -9910,7 +9980,7 @@ var require_es2016 = __commonJS(function(exports2, module2) {
|
|
|
9910
9980
|
});
|
|
9911
9981
|
});
|
|
9912
9982
|
|
|
9913
|
-
//
|
|
9983
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2020.js
|
|
9914
9984
|
var require_es2020 = __commonJS(function(exports2, module2) {
|
|
9915
9985
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9916
9986
|
var tslib_1 = require_tslib();
|
|
@@ -9929,7 +9999,7 @@ var require_es2020 = __commonJS(function(exports2, module2) {
|
|
|
9929
9999
|
});
|
|
9930
10000
|
});
|
|
9931
10001
|
|
|
9932
|
-
//
|
|
10002
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2021.js
|
|
9933
10003
|
var require_es2021 = __commonJS(function(exports2, module2) {
|
|
9934
10004
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9935
10005
|
var tslib_1 = require_tslib();
|
|
@@ -9951,7 +10021,7 @@ var require_es2021 = __commonJS(function(exports2, module2) {
|
|
|
9951
10021
|
});
|
|
9952
10022
|
});
|
|
9953
10023
|
|
|
9954
|
-
//
|
|
10024
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/core.js
|
|
9955
10025
|
var require_core2 = __commonJS(function(exports2, module2) {
|
|
9956
10026
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9957
10027
|
var tslib_1 = require_tslib();
|
|
@@ -10040,7 +10110,7 @@ var require_core2 = __commonJS(function(exports2, module2) {
|
|
|
10040
10110
|
});
|
|
10041
10111
|
});
|
|
10042
10112
|
|
|
10043
|
-
//
|
|
10113
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es6.js
|
|
10044
10114
|
var require_es6 = __commonJS(function(exports2, module2) {
|
|
10045
10115
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10046
10116
|
var tslib_1 = require_tslib();
|
|
@@ -10105,7 +10175,7 @@ var require_es6 = __commonJS(function(exports2, module2) {
|
|
|
10105
10175
|
});
|
|
10106
10176
|
});
|
|
10107
10177
|
|
|
10108
|
-
//
|
|
10178
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es2016.js
|
|
10109
10179
|
var require_es20162 = __commonJS(function(exports2, module2) {
|
|
10110
10180
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10111
10181
|
var tslib_1 = require_tslib();
|
|
@@ -10122,7 +10192,7 @@ var require_es20162 = __commonJS(function(exports2, module2) {
|
|
|
10122
10192
|
});
|
|
10123
10193
|
});
|
|
10124
10194
|
|
|
10125
|
-
//
|
|
10195
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es2017.js
|
|
10126
10196
|
var require_es2017 = __commonJS(function(exports2, module2) {
|
|
10127
10197
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10128
10198
|
var tslib_1 = require_tslib();
|
|
@@ -10143,7 +10213,7 @@ var require_es2017 = __commonJS(function(exports2, module2) {
|
|
|
10143
10213
|
});
|
|
10144
10214
|
});
|
|
10145
10215
|
|
|
10146
|
-
//
|
|
10216
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es2018.js
|
|
10147
10217
|
var require_es2018 = __commonJS(function(exports2, module2) {
|
|
10148
10218
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10149
10219
|
var tslib_1 = require_tslib();
|
|
@@ -10169,7 +10239,7 @@ var require_es2018 = __commonJS(function(exports2, module2) {
|
|
|
10169
10239
|
});
|
|
10170
10240
|
});
|
|
10171
10241
|
|
|
10172
|
-
//
|
|
10242
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es2019.js
|
|
10173
10243
|
var require_es2019 = __commonJS(function(exports2, module2) {
|
|
10174
10244
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10175
10245
|
var tslib_1 = require_tslib();
|
|
@@ -10190,7 +10260,7 @@ var require_es2019 = __commonJS(function(exports2, module2) {
|
|
|
10190
10260
|
});
|
|
10191
10261
|
});
|
|
10192
10262
|
|
|
10193
|
-
//
|
|
10263
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es2020.js
|
|
10194
10264
|
var require_es20202 = __commonJS(function(exports2, module2) {
|
|
10195
10265
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10196
10266
|
var tslib_1 = require_tslib();
|
|
@@ -10221,7 +10291,7 @@ var require_es20202 = __commonJS(function(exports2, module2) {
|
|
|
10221
10291
|
});
|
|
10222
10292
|
});
|
|
10223
10293
|
|
|
10224
|
-
//
|
|
10294
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es2021.js
|
|
10225
10295
|
var require_es20212 = __commonJS(function(exports2, module2) {
|
|
10226
10296
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10227
10297
|
var tslib_1 = require_tslib();
|
|
@@ -10238,7 +10308,7 @@ var require_es20212 = __commonJS(function(exports2, module2) {
|
|
|
10238
10308
|
});
|
|
10239
10309
|
});
|
|
10240
10310
|
|
|
10241
|
-
//
|
|
10311
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es2022.js
|
|
10242
10312
|
var require_es2022 = __commonJS(function(exports2, module2) {
|
|
10243
10313
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10244
10314
|
var tslib_1 = require_tslib();
|
|
@@ -10257,7 +10327,7 @@ var require_es2022 = __commonJS(function(exports2, module2) {
|
|
|
10257
10327
|
});
|
|
10258
10328
|
});
|
|
10259
10329
|
|
|
10260
|
-
//
|
|
10330
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/es-proposals.js
|
|
10261
10331
|
var require_es_proposals = __commonJS(function(exports2, module2) {
|
|
10262
10332
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10263
10333
|
var tslib_1 = require_tslib();
|
|
@@ -10296,7 +10366,7 @@ var require_es_proposals = __commonJS(function(exports2, module2) {
|
|
|
10296
10366
|
});
|
|
10297
10367
|
});
|
|
10298
10368
|
|
|
10299
|
-
//
|
|
10369
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/jsx.js
|
|
10300
10370
|
var require_jsx = __commonJS(function(exports2, module2) {
|
|
10301
10371
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10302
10372
|
var tslib_1 = require_tslib();
|
|
@@ -10342,7 +10412,7 @@ var require_jsx = __commonJS(function(exports2, module2) {
|
|
|
10342
10412
|
});
|
|
10343
10413
|
});
|
|
10344
10414
|
|
|
10345
|
-
//
|
|
10415
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/type-annotations.js
|
|
10346
10416
|
var require_type_annotations = __commonJS(function(exports2, module2) {
|
|
10347
10417
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10348
10418
|
var tslib_1 = require_tslib();
|
|
@@ -10372,7 +10442,7 @@ var require_type_annotations = __commonJS(function(exports2, module2) {
|
|
|
10372
10442
|
});
|
|
10373
10443
|
});
|
|
10374
10444
|
|
|
10375
|
-
//
|
|
10445
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/flow.js
|
|
10376
10446
|
var require_flow = __commonJS(function(exports2, module2) {
|
|
10377
10447
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10378
10448
|
var tslib_1 = require_tslib();
|
|
@@ -10478,7 +10548,7 @@ var require_flow = __commonJS(function(exports2, module2) {
|
|
|
10478
10548
|
});
|
|
10479
10549
|
});
|
|
10480
10550
|
|
|
10481
|
-
//
|
|
10551
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/esprima.js
|
|
10482
10552
|
var require_esprima = __commonJS(function(exports2, module2) {
|
|
10483
10553
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10484
10554
|
var tslib_1 = require_tslib();
|
|
@@ -10507,7 +10577,7 @@ var require_esprima = __commonJS(function(exports2, module2) {
|
|
|
10507
10577
|
});
|
|
10508
10578
|
});
|
|
10509
10579
|
|
|
10510
|
-
//
|
|
10580
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/babel-core.js
|
|
10511
10581
|
var require_babel_core = __commonJS(function(exports2, module2) {
|
|
10512
10582
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10513
10583
|
var tslib_1 = require_tslib();
|
|
@@ -10616,7 +10686,7 @@ var require_babel_core = __commonJS(function(exports2, module2) {
|
|
|
10616
10686
|
});
|
|
10617
10687
|
});
|
|
10618
10688
|
|
|
10619
|
-
//
|
|
10689
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/babel.js
|
|
10620
10690
|
var require_babel = __commonJS(function(exports2, module2) {
|
|
10621
10691
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10622
10692
|
var tslib_1 = require_tslib();
|
|
@@ -10638,7 +10708,7 @@ var require_babel = __commonJS(function(exports2, module2) {
|
|
|
10638
10708
|
});
|
|
10639
10709
|
});
|
|
10640
10710
|
|
|
10641
|
-
//
|
|
10711
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/def/typescript.js
|
|
10642
10712
|
var require_typescript = __commonJS(function(exports2, module2) {
|
|
10643
10713
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10644
10714
|
var tslib_1 = require_tslib();
|
|
@@ -10765,7 +10835,7 @@ var require_typescript = __commonJS(function(exports2, module2) {
|
|
|
10765
10835
|
});
|
|
10766
10836
|
});
|
|
10767
10837
|
|
|
10768
|
-
//
|
|
10838
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/gen/namedTypes.js
|
|
10769
10839
|
var require_namedTypes = __commonJS(function(exports2) {
|
|
10770
10840
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10771
10841
|
exports2.namedTypes = undefined;
|
|
@@ -10773,7 +10843,7 @@ var require_namedTypes = __commonJS(function(exports2) {
|
|
|
10773
10843
|
(function(namedTypes) {})(namedTypes = exports2.namedTypes || (exports2.namedTypes = {}));
|
|
10774
10844
|
});
|
|
10775
10845
|
|
|
10776
|
-
//
|
|
10846
|
+
// ../../node_modules/.bun/ast-types@0.16.1/node_modules/ast-types/lib/main.js
|
|
10777
10847
|
var require_main = __commonJS(function(exports2) {
|
|
10778
10848
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10779
10849
|
exports2.visit = exports2.use = exports2.Type = exports2.someField = exports2.PathVisitor = exports2.Path = exports2.NodePath = exports2.namedTypes = exports2.getSupertypeNames = exports2.getFieldValue = exports2.getFieldNames = exports2.getBuilderName = exports2.finalize = exports2.eachField = exports2.defineMethod = exports2.builtInTypes = exports2.builders = exports2.astNodesAreEquivalent = undefined;
|
|
@@ -10835,7 +10905,7 @@ var require_main = __commonJS(function(exports2) {
|
|
|
10835
10905
|
Object.assign(namedTypes_1.namedTypes, n);
|
|
10836
10906
|
});
|
|
10837
10907
|
|
|
10838
|
-
//
|
|
10908
|
+
// ../../node_modules/.bun/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js
|
|
10839
10909
|
var require_tiny_invariant_cjs = __commonJS(function(exports2, module2) {
|
|
10840
10910
|
var isProduction = false;
|
|
10841
10911
|
var prefix = "Invariant failed";
|
|
@@ -10853,7 +10923,7 @@ var require_tiny_invariant_cjs = __commonJS(function(exports2, module2) {
|
|
|
10853
10923
|
module2.exports = invariant;
|
|
10854
10924
|
});
|
|
10855
10925
|
|
|
10856
|
-
//
|
|
10926
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/base64.js
|
|
10857
10927
|
var require_base64 = __commonJS(function(exports2) {
|
|
10858
10928
|
var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
10859
10929
|
exports2.encode = function(number) {
|
|
@@ -10892,7 +10962,7 @@ var require_base64 = __commonJS(function(exports2) {
|
|
|
10892
10962
|
};
|
|
10893
10963
|
});
|
|
10894
10964
|
|
|
10895
|
-
//
|
|
10965
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js
|
|
10896
10966
|
var require_base64_vlq = __commonJS(function(exports2) {
|
|
10897
10967
|
var base64 = require_base64();
|
|
10898
10968
|
var VLQ_BASE_SHIFT = 5;
|
|
@@ -10944,7 +11014,7 @@ var require_base64_vlq = __commonJS(function(exports2) {
|
|
|
10944
11014
|
};
|
|
10945
11015
|
});
|
|
10946
11016
|
|
|
10947
|
-
//
|
|
11017
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/util.js
|
|
10948
11018
|
var require_util = __commonJS(function(exports2) {
|
|
10949
11019
|
function getArg(aArgs, aName, aDefaultValue) {
|
|
10950
11020
|
if (aName in aArgs) {
|
|
@@ -11243,7 +11313,7 @@ var require_util = __commonJS(function(exports2) {
|
|
|
11243
11313
|
exports2.computeSourceURL = computeSourceURL;
|
|
11244
11314
|
});
|
|
11245
11315
|
|
|
11246
|
-
//
|
|
11316
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/array-set.js
|
|
11247
11317
|
var require_array_set = __commonJS(function(exports2) {
|
|
11248
11318
|
var util = require_util();
|
|
11249
11319
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -11311,7 +11381,7 @@ var require_array_set = __commonJS(function(exports2) {
|
|
|
11311
11381
|
exports2.ArraySet = ArraySet;
|
|
11312
11382
|
});
|
|
11313
11383
|
|
|
11314
|
-
//
|
|
11384
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js
|
|
11315
11385
|
var require_mapping_list = __commonJS(function(exports2) {
|
|
11316
11386
|
var util = require_util();
|
|
11317
11387
|
function generatedPositionAfter(mappingA, mappingB) {
|
|
@@ -11348,7 +11418,7 @@ var require_mapping_list = __commonJS(function(exports2) {
|
|
|
11348
11418
|
exports2.MappingList = MappingList;
|
|
11349
11419
|
});
|
|
11350
11420
|
|
|
11351
|
-
//
|
|
11421
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js
|
|
11352
11422
|
var require_source_map_generator = __commonJS(function(exports2) {
|
|
11353
11423
|
var base64VLQ = require_base64_vlq();
|
|
11354
11424
|
var util = require_util();
|
|
@@ -11618,7 +11688,7 @@ var require_source_map_generator = __commonJS(function(exports2) {
|
|
|
11618
11688
|
exports2.SourceMapGenerator = SourceMapGenerator;
|
|
11619
11689
|
});
|
|
11620
11690
|
|
|
11621
|
-
//
|
|
11691
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/binary-search.js
|
|
11622
11692
|
var require_binary_search = __commonJS(function(exports2) {
|
|
11623
11693
|
exports2.GREATEST_LOWER_BOUND = 1;
|
|
11624
11694
|
exports2.LEAST_UPPER_BOUND = 2;
|
|
@@ -11665,7 +11735,7 @@ var require_binary_search = __commonJS(function(exports2) {
|
|
|
11665
11735
|
};
|
|
11666
11736
|
});
|
|
11667
11737
|
|
|
11668
|
-
//
|
|
11738
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js
|
|
11669
11739
|
var require_quick_sort = __commonJS(function(exports2) {
|
|
11670
11740
|
function swap(ary, x, y) {
|
|
11671
11741
|
var temp = ary[x];
|
|
@@ -11698,7 +11768,7 @@ var require_quick_sort = __commonJS(function(exports2) {
|
|
|
11698
11768
|
};
|
|
11699
11769
|
});
|
|
11700
11770
|
|
|
11701
|
-
//
|
|
11771
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js
|
|
11702
11772
|
var require_source_map_consumer = __commonJS(function(exports2) {
|
|
11703
11773
|
var util = require_util();
|
|
11704
11774
|
var binarySearch = require_binary_search();
|
|
@@ -12267,7 +12337,7 @@ var require_source_map_consumer = __commonJS(function(exports2) {
|
|
|
12267
12337
|
exports2.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
|
|
12268
12338
|
});
|
|
12269
12339
|
|
|
12270
|
-
//
|
|
12340
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/source-node.js
|
|
12271
12341
|
var require_source_node = __commonJS(function(exports2) {
|
|
12272
12342
|
var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
|
|
12273
12343
|
var util = require_util();
|
|
@@ -12521,14 +12591,14 @@ var require_source_node = __commonJS(function(exports2) {
|
|
|
12521
12591
|
exports2.SourceNode = SourceNode;
|
|
12522
12592
|
});
|
|
12523
12593
|
|
|
12524
|
-
//
|
|
12594
|
+
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/source-map.js
|
|
12525
12595
|
var require_source_map = __commonJS(function(exports2) {
|
|
12526
12596
|
exports2.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
|
|
12527
12597
|
exports2.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
|
|
12528
12598
|
exports2.SourceNode = require_source_node().SourceNode;
|
|
12529
12599
|
});
|
|
12530
12600
|
|
|
12531
|
-
//
|
|
12601
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/util.js
|
|
12532
12602
|
var require_util2 = __commonJS(function(exports2) {
|
|
12533
12603
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12534
12604
|
exports2.isTrailingCommaEnabled = exports2.getParentExportDeclaration = exports2.isExportDeclaration = exports2.fixFaultyLocations = exports2.getTrueLoc = exports2.composeSourceMaps = exports2.copyPos = exports2.comparePos = exports2.getUnionOfKeys = exports2.getOption = exports2.isBrowser = exports2.getLineTerminator = undefined;
|
|
@@ -12807,7 +12877,7 @@ var require_util2 = __commonJS(function(exports2) {
|
|
|
12807
12877
|
exports2.isTrailingCommaEnabled = isTrailingCommaEnabled;
|
|
12808
12878
|
});
|
|
12809
12879
|
|
|
12810
|
-
//
|
|
12880
|
+
// ../../node_modules/.bun/esprima@4.0.1/node_modules/esprima/dist/esprima.js
|
|
12811
12881
|
var require_esprima2 = __commonJS(function(exports2, module2) {
|
|
12812
12882
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
12813
12883
|
if (typeof exports2 === "object" && typeof module2 === "object")
|
|
@@ -18947,7 +19017,7 @@ var require_esprima2 = __commonJS(function(exports2, module2) {
|
|
|
18947
19017
|
});
|
|
18948
19018
|
});
|
|
18949
19019
|
|
|
18950
|
-
//
|
|
19020
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/parsers/esprima.js
|
|
18951
19021
|
var require_esprima3 = __commonJS(function(exports2) {
|
|
18952
19022
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18953
19023
|
exports2.parse = undefined;
|
|
@@ -18973,7 +19043,7 @@ var require_esprima3 = __commonJS(function(exports2) {
|
|
|
18973
19043
|
exports2.parse = parse;
|
|
18974
19044
|
});
|
|
18975
19045
|
|
|
18976
|
-
//
|
|
19046
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/options.js
|
|
18977
19047
|
var require_options = __commonJS(function(exports2) {
|
|
18978
19048
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18979
19049
|
exports2.normalize = undefined;
|
|
@@ -19030,7 +19100,7 @@ var require_options = __commonJS(function(exports2) {
|
|
|
19030
19100
|
exports2.normalize = normalize;
|
|
19031
19101
|
});
|
|
19032
19102
|
|
|
19033
|
-
//
|
|
19103
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/mapping.js
|
|
19034
19104
|
var require_mapping = __commonJS(function(exports2) {
|
|
19035
19105
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19036
19106
|
var tslib_1 = require_tslib();
|
|
@@ -19213,7 +19283,7 @@ var require_mapping = __commonJS(function(exports2) {
|
|
|
19213
19283
|
}
|
|
19214
19284
|
});
|
|
19215
19285
|
|
|
19216
|
-
//
|
|
19286
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/lines.js
|
|
19217
19287
|
var require_lines = __commonJS(function(exports2) {
|
|
19218
19288
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19219
19289
|
exports2.concat = exports2.fromString = exports2.countSpaces = exports2.Lines = undefined;
|
|
@@ -19827,7 +19897,7 @@ var require_lines = __commonJS(function(exports2) {
|
|
|
19827
19897
|
var emptyLines = fromString("");
|
|
19828
19898
|
});
|
|
19829
19899
|
|
|
19830
|
-
//
|
|
19900
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/comments.js
|
|
19831
19901
|
var require_comments = __commonJS(function(exports2) {
|
|
19832
19902
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19833
19903
|
exports2.printComments = exports2.attach = undefined;
|
|
@@ -20077,7 +20147,7 @@ var require_comments = __commonJS(function(exports2) {
|
|
|
20077
20147
|
exports2.printComments = printComments;
|
|
20078
20148
|
});
|
|
20079
20149
|
|
|
20080
|
-
//
|
|
20150
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/parser.js
|
|
20081
20151
|
var require_parser2 = __commonJS(function(exports2) {
|
|
20082
20152
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
20083
20153
|
exports2.parse = undefined;
|
|
@@ -20264,7 +20334,7 @@ var require_parser2 = __commonJS(function(exports2) {
|
|
|
20264
20334
|
};
|
|
20265
20335
|
});
|
|
20266
20336
|
|
|
20267
|
-
//
|
|
20337
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/fast-path.js
|
|
20268
20338
|
var require_fast_path = __commonJS(function(exports2) {
|
|
20269
20339
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
20270
20340
|
var tslib_1 = require_tslib();
|
|
@@ -20696,7 +20766,7 @@ var require_fast_path = __commonJS(function(exports2) {
|
|
|
20696
20766
|
exports2.default = FastPath;
|
|
20697
20767
|
});
|
|
20698
20768
|
|
|
20699
|
-
//
|
|
20769
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/patcher.js
|
|
20700
20770
|
var require_patcher = __commonJS(function(exports2) {
|
|
20701
20771
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
20702
20772
|
exports2.getReprinter = exports2.Patcher = undefined;
|
|
@@ -20994,7 +21064,7 @@ var require_patcher = __commonJS(function(exports2) {
|
|
|
20994
21064
|
}
|
|
20995
21065
|
});
|
|
20996
21066
|
|
|
20997
|
-
//
|
|
21067
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/lib/printer.js
|
|
20998
21068
|
var require_printer = __commonJS(function(exports2) {
|
|
20999
21069
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
21000
21070
|
exports2.Printer = undefined;
|
|
@@ -23262,7 +23332,7 @@ while`);
|
|
|
23262
23332
|
}
|
|
23263
23333
|
});
|
|
23264
23334
|
|
|
23265
|
-
//
|
|
23335
|
+
// ../../node_modules/.bun/recast@0.23.11/node_modules/recast/main.js
|
|
23266
23336
|
var require_main2 = __commonJS(function(exports2) {
|
|
23267
23337
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
23268
23338
|
exports2.run = exports2.prettyPrint = exports2.print = exports2.visit = exports2.types = exports2.parse = undefined;
|
|
@@ -23311,7 +23381,7 @@ var require_main2 = __commonJS(function(exports2) {
|
|
|
23311
23381
|
}
|
|
23312
23382
|
});
|
|
23313
23383
|
|
|
23314
|
-
//
|
|
23384
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/utils/union.js
|
|
23315
23385
|
var require_union = __commonJS(function(exports2, module2) {
|
|
23316
23386
|
module2.exports = function(arrays) {
|
|
23317
23387
|
const result = new Set(arrays[0]);
|
|
@@ -23326,7 +23396,7 @@ var require_union = __commonJS(function(exports2, module2) {
|
|
|
23326
23396
|
};
|
|
23327
23397
|
});
|
|
23328
23398
|
|
|
23329
|
-
//
|
|
23399
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/Collection.js
|
|
23330
23400
|
var require_Collection = __commonJS(function(exports2) {
|
|
23331
23401
|
var assert = __require("assert");
|
|
23332
23402
|
var intersection = require_intersection();
|
|
@@ -23555,7 +23625,7 @@ There are existing registrations for that method with `;
|
|
|
23555
23625
|
exports2.setDefaultCollectionType = setDefaultCollectionType;
|
|
23556
23626
|
});
|
|
23557
23627
|
|
|
23558
|
-
//
|
|
23628
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/matchNode.js
|
|
23559
23629
|
var require_matchNode = __commonJS(function(exports2, module2) {
|
|
23560
23630
|
var hasOwn = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);
|
|
23561
23631
|
function matchNode(haystack, needle) {
|
|
@@ -23575,7 +23645,7 @@ var require_matchNode = __commonJS(function(exports2, module2) {
|
|
|
23575
23645
|
module2.exports = matchNode;
|
|
23576
23646
|
});
|
|
23577
23647
|
|
|
23578
|
-
//
|
|
23648
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/utils/once.js
|
|
23579
23649
|
var require_once = __commonJS(function(exports2, module2) {
|
|
23580
23650
|
module2.exports = function(func) {
|
|
23581
23651
|
let called = false;
|
|
@@ -23590,7 +23660,7 @@ var require_once = __commonJS(function(exports2, module2) {
|
|
|
23590
23660
|
};
|
|
23591
23661
|
});
|
|
23592
23662
|
|
|
23593
|
-
//
|
|
23663
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/collections/Node.js
|
|
23594
23664
|
var require_Node = __commonJS(function(exports2) {
|
|
23595
23665
|
var Collection = require_Collection();
|
|
23596
23666
|
var matchNode = require_matchNode();
|
|
@@ -23689,7 +23759,7 @@ var require_Node = __commonJS(function(exports2) {
|
|
|
23689
23759
|
exports2.register = once(register);
|
|
23690
23760
|
});
|
|
23691
23761
|
|
|
23692
|
-
//
|
|
23762
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/collections/VariableDeclarator.js
|
|
23693
23763
|
var require_VariableDeclarator = __commonJS(function(exports2) {
|
|
23694
23764
|
var Collection = require_Collection();
|
|
23695
23765
|
var NodeCollection = require_Node();
|
|
@@ -23785,7 +23855,7 @@ var require_VariableDeclarator = __commonJS(function(exports2) {
|
|
|
23785
23855
|
exports2.filters = filterMethods;
|
|
23786
23856
|
});
|
|
23787
23857
|
|
|
23788
|
-
//
|
|
23858
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/collections/JSXElement.js
|
|
23789
23859
|
var require_JSXElement = __commonJS(function(exports2) {
|
|
23790
23860
|
var Collection = require_Collection();
|
|
23791
23861
|
var NodeCollection = require_Node();
|
|
@@ -23904,7 +23974,7 @@ var require_JSXElement = __commonJS(function(exports2) {
|
|
|
23904
23974
|
exports2.mappings = mappingMethods;
|
|
23905
23975
|
});
|
|
23906
23976
|
|
|
23907
|
-
//
|
|
23977
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/collections/ImportDeclaration.js
|
|
23908
23978
|
var require_ImportDeclaration = __commonJS(function(exports2) {
|
|
23909
23979
|
var Collection = require_Collection();
|
|
23910
23980
|
var NodeCollection = require_Node();
|
|
@@ -23951,7 +24021,7 @@ var require_ImportDeclaration = __commonJS(function(exports2) {
|
|
|
23951
24021
|
exports2.register = once(register);
|
|
23952
24022
|
});
|
|
23953
24023
|
|
|
23954
|
-
//
|
|
24024
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/collections/index.js
|
|
23955
24025
|
var require_collections = __commonJS(function(exports2, module2) {
|
|
23956
24026
|
module2.exports = {
|
|
23957
24027
|
Node: require_Node(),
|
|
@@ -23961,7 +24031,7 @@ var require_collections = __commonJS(function(exports2, module2) {
|
|
|
23961
24031
|
};
|
|
23962
24032
|
});
|
|
23963
24033
|
|
|
23964
|
-
//
|
|
24034
|
+
// ../../node_modules/.bun/@babel+parser@7.29.3/node_modules/@babel/parser/lib/index.js
|
|
23965
24035
|
var require_lib = __commonJS(function(exports2) {
|
|
23966
24036
|
Object.defineProperty(exports2, "__esModule", {
|
|
23967
24037
|
value: true
|
|
@@ -38761,7 +38831,7 @@ var require_lib = __commonJS(function(exports2) {
|
|
|
38761
38831
|
exports2.tokTypes = tokTypes;
|
|
38762
38832
|
});
|
|
38763
38833
|
|
|
38764
|
-
//
|
|
38834
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/parser/babylon.js
|
|
38765
38835
|
var require_babylon = __commonJS(function(exports2, module2) {
|
|
38766
38836
|
var babylon = require_lib();
|
|
38767
38837
|
var defaultOptions = {
|
|
@@ -38806,7 +38876,7 @@ var require_babylon = __commonJS(function(exports2, module2) {
|
|
|
38806
38876
|
};
|
|
38807
38877
|
});
|
|
38808
38878
|
|
|
38809
|
-
//
|
|
38879
|
+
// ../../node_modules/.bun/flow-parser@0.314.0/node_modules/flow-parser/flow_parser.js
|
|
38810
38880
|
var require_flow_parser = __commonJS(function(exports2) {
|
|
38811
38881
|
(function(a) {
|
|
38812
38882
|
typeof globalThis !== "object" && (this ? b() : (a.defineProperty(a.prototype, "_T_", { configurable: true, get: b }), _T_));
|
|
@@ -87077,7 +87147,7 @@ var require_flow_parser = __commonJS(function(exports2) {
|
|
|
87077
87147
|
})(globalThis);
|
|
87078
87148
|
});
|
|
87079
87149
|
|
|
87080
|
-
//
|
|
87150
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/parser/flow.js
|
|
87081
87151
|
var require_flow2 = __commonJS(function(exports2, module2) {
|
|
87082
87152
|
var flowParser = require_flow_parser();
|
|
87083
87153
|
var defaultOptions = {
|
|
@@ -87100,7 +87170,7 @@ var require_flow2 = __commonJS(function(exports2, module2) {
|
|
|
87100
87170
|
};
|
|
87101
87171
|
});
|
|
87102
87172
|
|
|
87103
|
-
//
|
|
87173
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/parser/tsOptions.js
|
|
87104
87174
|
var require_tsOptions = __commonJS(function(exports2, module2) {
|
|
87105
87175
|
module2.exports = {
|
|
87106
87176
|
sourceType: "module",
|
|
@@ -87137,7 +87207,7 @@ var require_tsOptions = __commonJS(function(exports2, module2) {
|
|
|
87137
87207
|
};
|
|
87138
87208
|
});
|
|
87139
87209
|
|
|
87140
|
-
//
|
|
87210
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/parser/ts.js
|
|
87141
87211
|
var require_ts = __commonJS(function(exports2, module2) {
|
|
87142
87212
|
var babylon = require_lib();
|
|
87143
87213
|
var options = require_tsOptions();
|
|
@@ -87150,7 +87220,7 @@ var require_ts = __commonJS(function(exports2, module2) {
|
|
|
87150
87220
|
};
|
|
87151
87221
|
});
|
|
87152
87222
|
|
|
87153
|
-
//
|
|
87223
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/parser/tsx.js
|
|
87154
87224
|
var require_tsx = __commonJS(function(exports2, module2) {
|
|
87155
87225
|
var babylon = require_lib();
|
|
87156
87226
|
var baseOptions = require_tsOptions();
|
|
@@ -87165,7 +87235,7 @@ var require_tsx = __commonJS(function(exports2, module2) {
|
|
|
87165
87235
|
};
|
|
87166
87236
|
});
|
|
87167
87237
|
|
|
87168
|
-
//
|
|
87238
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/parser/babel5Compat.js
|
|
87169
87239
|
var require_babel5Compat = __commonJS(function(exports2, module2) {
|
|
87170
87240
|
var babylon = require_lib();
|
|
87171
87241
|
var options = {
|
|
@@ -87201,7 +87271,7 @@ var require_babel5Compat = __commonJS(function(exports2, module2) {
|
|
|
87201
87271
|
};
|
|
87202
87272
|
});
|
|
87203
87273
|
|
|
87204
|
-
//
|
|
87274
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/getParser.js
|
|
87205
87275
|
var require_getParser = __commonJS(function(exports2, module2) {
|
|
87206
87276
|
module2.exports = function getParser(parserName, options) {
|
|
87207
87277
|
switch (parserName) {
|
|
@@ -87220,7 +87290,7 @@ var require_getParser = __commonJS(function(exports2, module2) {
|
|
|
87220
87290
|
};
|
|
87221
87291
|
});
|
|
87222
87292
|
|
|
87223
|
-
//
|
|
87293
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/template.js
|
|
87224
87294
|
var require_template = __commonJS(function(exports2, module2) {
|
|
87225
87295
|
var recast = require_main2();
|
|
87226
87296
|
var builders = recast.types.builders;
|
|
@@ -87321,7 +87391,7 @@ var require_template = __commonJS(function(exports2, module2) {
|
|
|
87321
87391
|
};
|
|
87322
87392
|
});
|
|
87323
87393
|
|
|
87324
|
-
//
|
|
87394
|
+
// ../../node_modules/.bun/jscodeshift@17.4.0/node_modules/jscodeshift/src/core.js
|
|
87325
87395
|
var require_core3 = __commonJS(function(exports2, module2) {
|
|
87326
87396
|
var Collection = require_Collection();
|
|
87327
87397
|
var collections = require_collections();
|
|
@@ -87418,7 +87488,7 @@ var require_core3 = __commonJS(function(exports2, module2) {
|
|
|
87418
87488
|
module2.exports = enrichCore(core, getParser());
|
|
87419
87489
|
});
|
|
87420
87490
|
|
|
87421
|
-
//
|
|
87491
|
+
// ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js
|
|
87422
87492
|
var require_windows = __commonJS(function(exports2, module2) {
|
|
87423
87493
|
module2.exports = isexe;
|
|
87424
87494
|
isexe.sync = sync;
|
|
@@ -87456,7 +87526,7 @@ var require_windows = __commonJS(function(exports2, module2) {
|
|
|
87456
87526
|
}
|
|
87457
87527
|
});
|
|
87458
87528
|
|
|
87459
|
-
//
|
|
87529
|
+
// ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js
|
|
87460
87530
|
var require_mode = __commonJS(function(exports2, module2) {
|
|
87461
87531
|
module2.exports = isexe;
|
|
87462
87532
|
isexe.sync = sync;
|
|
@@ -87487,7 +87557,7 @@ var require_mode = __commonJS(function(exports2, module2) {
|
|
|
87487
87557
|
}
|
|
87488
87558
|
});
|
|
87489
87559
|
|
|
87490
|
-
//
|
|
87560
|
+
// ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js
|
|
87491
87561
|
var require_isexe = __commonJS(function(exports2, module2) {
|
|
87492
87562
|
var fs = __require("fs");
|
|
87493
87563
|
var core;
|
|
@@ -87540,7 +87610,7 @@ var require_isexe = __commonJS(function(exports2, module2) {
|
|
|
87540
87610
|
}
|
|
87541
87611
|
});
|
|
87542
87612
|
|
|
87543
|
-
//
|
|
87613
|
+
// ../../node_modules/.bun/which@2.0.2/node_modules/which/which.js
|
|
87544
87614
|
var require_which = __commonJS(function(exports2, module2) {
|
|
87545
87615
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
87546
87616
|
var path = __require("path");
|
|
@@ -87631,7 +87701,7 @@ var require_which = __commonJS(function(exports2, module2) {
|
|
|
87631
87701
|
which.sync = whichSync;
|
|
87632
87702
|
});
|
|
87633
87703
|
|
|
87634
|
-
//
|
|
87704
|
+
// ../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js
|
|
87635
87705
|
var require_path_key = __commonJS(function(exports2, module2) {
|
|
87636
87706
|
var pathKey = (options = {}) => {
|
|
87637
87707
|
const environment = options.env || process.env;
|
|
@@ -87645,7 +87715,7 @@ var require_path_key = __commonJS(function(exports2, module2) {
|
|
|
87645
87715
|
module2.exports.default = pathKey;
|
|
87646
87716
|
});
|
|
87647
87717
|
|
|
87648
|
-
//
|
|
87718
|
+
// ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
87649
87719
|
var require_resolveCommand = __commonJS(function(exports2, module2) {
|
|
87650
87720
|
var path = __require("path");
|
|
87651
87721
|
var which = require_which();
|
|
@@ -87682,7 +87752,7 @@ var require_resolveCommand = __commonJS(function(exports2, module2) {
|
|
|
87682
87752
|
module2.exports = resolveCommand;
|
|
87683
87753
|
});
|
|
87684
87754
|
|
|
87685
|
-
//
|
|
87755
|
+
// ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
87686
87756
|
var require_escape = __commonJS(function(exports2, module2) {
|
|
87687
87757
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
87688
87758
|
function escapeCommand(arg) {
|
|
@@ -87704,12 +87774,12 @@ var require_escape = __commonJS(function(exports2, module2) {
|
|
|
87704
87774
|
exports2.argument = escapeArgument;
|
|
87705
87775
|
});
|
|
87706
87776
|
|
|
87707
|
-
//
|
|
87777
|
+
// ../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
87708
87778
|
var require_shebang_regex = __commonJS(function(exports2, module2) {
|
|
87709
87779
|
module2.exports = /^#!(.*)/;
|
|
87710
87780
|
});
|
|
87711
87781
|
|
|
87712
|
-
//
|
|
87782
|
+
// ../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
87713
87783
|
var require_shebang_command = __commonJS(function(exports2, module2) {
|
|
87714
87784
|
var shebangRegex = require_shebang_regex();
|
|
87715
87785
|
module2.exports = (string = "") => {
|
|
@@ -87726,7 +87796,7 @@ var require_shebang_command = __commonJS(function(exports2, module2) {
|
|
|
87726
87796
|
};
|
|
87727
87797
|
});
|
|
87728
87798
|
|
|
87729
|
-
//
|
|
87799
|
+
// ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
87730
87800
|
var require_readShebang = __commonJS(function(exports2, module2) {
|
|
87731
87801
|
var fs = __require("fs");
|
|
87732
87802
|
var shebangCommand = require_shebang_command();
|
|
@@ -87744,7 +87814,7 @@ var require_readShebang = __commonJS(function(exports2, module2) {
|
|
|
87744
87814
|
module2.exports = readShebang;
|
|
87745
87815
|
});
|
|
87746
87816
|
|
|
87747
|
-
//
|
|
87817
|
+
// ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
87748
87818
|
var require_parse2 = __commonJS(function(exports2, module2) {
|
|
87749
87819
|
var path = __require("path");
|
|
87750
87820
|
var resolveCommand = require_resolveCommand();
|
|
@@ -87803,7 +87873,7 @@ var require_parse2 = __commonJS(function(exports2, module2) {
|
|
|
87803
87873
|
module2.exports = parse;
|
|
87804
87874
|
});
|
|
87805
87875
|
|
|
87806
|
-
//
|
|
87876
|
+
// ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
87807
87877
|
var require_enoent = __commonJS(function(exports2, module2) {
|
|
87808
87878
|
var isWin = process.platform === "win32";
|
|
87809
87879
|
function notFoundError(original, syscall) {
|
|
@@ -87850,7 +87920,7 @@ var require_enoent = __commonJS(function(exports2, module2) {
|
|
|
87850
87920
|
};
|
|
87851
87921
|
});
|
|
87852
87922
|
|
|
87853
|
-
//
|
|
87923
|
+
// ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
87854
87924
|
var require_cross_spawn = __commonJS(function(exports2, module2) {
|
|
87855
87925
|
var cp = __require("child_process");
|
|
87856
87926
|
var parse = require_parse2();
|
|
@@ -87874,14 +87944,14 @@ var require_cross_spawn = __commonJS(function(exports2, module2) {
|
|
|
87874
87944
|
module2.exports._enoent = enoent;
|
|
87875
87945
|
});
|
|
87876
87946
|
|
|
87877
|
-
//
|
|
87947
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js
|
|
87878
87948
|
var require_can_promise = __commonJS(function(exports2, module2) {
|
|
87879
87949
|
module2.exports = function() {
|
|
87880
87950
|
return typeof Promise === "function" && Promise.prototype && Promise.prototype.then;
|
|
87881
87951
|
};
|
|
87882
87952
|
});
|
|
87883
87953
|
|
|
87884
|
-
//
|
|
87954
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js
|
|
87885
87955
|
var require_utils = __commonJS(function(exports2) {
|
|
87886
87956
|
var toSJISFunction;
|
|
87887
87957
|
var CODEWORDS_COUNT = [
|
|
@@ -87959,7 +88029,7 @@ var require_utils = __commonJS(function(exports2) {
|
|
|
87959
88029
|
};
|
|
87960
88030
|
});
|
|
87961
88031
|
|
|
87962
|
-
//
|
|
88032
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js
|
|
87963
88033
|
var require_error_correction_level = __commonJS(function(exports2) {
|
|
87964
88034
|
exports2.L = { bit: 1 };
|
|
87965
88035
|
exports2.M = { bit: 0 };
|
|
@@ -88002,7 +88072,7 @@ var require_error_correction_level = __commonJS(function(exports2) {
|
|
|
88002
88072
|
};
|
|
88003
88073
|
});
|
|
88004
88074
|
|
|
88005
|
-
//
|
|
88075
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js
|
|
88006
88076
|
var require_bit_buffer = __commonJS(function(exports2, module2) {
|
|
88007
88077
|
function BitBuffer() {
|
|
88008
88078
|
this.buffer = [];
|
|
@@ -88035,7 +88105,7 @@ var require_bit_buffer = __commonJS(function(exports2, module2) {
|
|
|
88035
88105
|
module2.exports = BitBuffer;
|
|
88036
88106
|
});
|
|
88037
88107
|
|
|
88038
|
-
//
|
|
88108
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js
|
|
88039
88109
|
var require_bit_matrix = __commonJS(function(exports2, module2) {
|
|
88040
88110
|
function BitMatrix(size) {
|
|
88041
88111
|
if (!size || size < 1) {
|
|
@@ -88063,7 +88133,7 @@ var require_bit_matrix = __commonJS(function(exports2, module2) {
|
|
|
88063
88133
|
module2.exports = BitMatrix;
|
|
88064
88134
|
});
|
|
88065
88135
|
|
|
88066
|
-
//
|
|
88136
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js
|
|
88067
88137
|
var require_alignment_pattern = __commonJS(function(exports2) {
|
|
88068
88138
|
var getSymbolSize = require_utils().getSymbolSize;
|
|
88069
88139
|
exports2.getRowColCoords = function getRowColCoords(version) {
|
|
@@ -88095,7 +88165,7 @@ var require_alignment_pattern = __commonJS(function(exports2) {
|
|
|
88095
88165
|
};
|
|
88096
88166
|
});
|
|
88097
88167
|
|
|
88098
|
-
//
|
|
88168
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js
|
|
88099
88169
|
var require_finder_pattern = __commonJS(function(exports2) {
|
|
88100
88170
|
var getSymbolSize = require_utils().getSymbolSize;
|
|
88101
88171
|
var FINDER_PATTERN_SIZE = 7;
|
|
@@ -88109,7 +88179,7 @@ var require_finder_pattern = __commonJS(function(exports2) {
|
|
|
88109
88179
|
};
|
|
88110
88180
|
});
|
|
88111
88181
|
|
|
88112
|
-
//
|
|
88182
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js
|
|
88113
88183
|
var require_mask_pattern = __commonJS(function(exports2) {
|
|
88114
88184
|
exports2.Patterns = {
|
|
88115
88185
|
PATTERN000: 0,
|
|
@@ -88258,7 +88328,7 @@ var require_mask_pattern = __commonJS(function(exports2) {
|
|
|
88258
88328
|
};
|
|
88259
88329
|
});
|
|
88260
88330
|
|
|
88261
|
-
//
|
|
88331
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js
|
|
88262
88332
|
var require_error_correction_code = __commonJS(function(exports2) {
|
|
88263
88333
|
var ECLevel = require_error_correction_level();
|
|
88264
88334
|
var EC_BLOCKS_TABLE = [
|
|
@@ -88615,7 +88685,7 @@ var require_error_correction_code = __commonJS(function(exports2) {
|
|
|
88615
88685
|
};
|
|
88616
88686
|
});
|
|
88617
88687
|
|
|
88618
|
-
//
|
|
88688
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js
|
|
88619
88689
|
var require_galois_field = __commonJS(function(exports2) {
|
|
88620
88690
|
var EXP_TABLE = new Uint8Array(512);
|
|
88621
88691
|
var LOG_TABLE = new Uint8Array(256);
|
|
@@ -88648,7 +88718,7 @@ var require_galois_field = __commonJS(function(exports2) {
|
|
|
88648
88718
|
};
|
|
88649
88719
|
});
|
|
88650
88720
|
|
|
88651
|
-
//
|
|
88721
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js
|
|
88652
88722
|
var require_polynomial = __commonJS(function(exports2) {
|
|
88653
88723
|
var GF = require_galois_field();
|
|
88654
88724
|
exports2.mul = function mul2(p1, p2) {
|
|
@@ -88683,7 +88753,7 @@ var require_polynomial = __commonJS(function(exports2) {
|
|
|
88683
88753
|
};
|
|
88684
88754
|
});
|
|
88685
88755
|
|
|
88686
|
-
//
|
|
88756
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js
|
|
88687
88757
|
var require_reed_solomon_encoder = __commonJS(function(exports2, module2) {
|
|
88688
88758
|
var Polynomial = require_polynomial();
|
|
88689
88759
|
function ReedSolomonEncoder(degree) {
|
|
@@ -88714,14 +88784,14 @@ var require_reed_solomon_encoder = __commonJS(function(exports2, module2) {
|
|
|
88714
88784
|
module2.exports = ReedSolomonEncoder;
|
|
88715
88785
|
});
|
|
88716
88786
|
|
|
88717
|
-
//
|
|
88787
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js
|
|
88718
88788
|
var require_version_check = __commonJS(function(exports2) {
|
|
88719
88789
|
exports2.isValid = function isValid(version) {
|
|
88720
88790
|
return !isNaN(version) && version >= 1 && version <= 40;
|
|
88721
88791
|
};
|
|
88722
88792
|
});
|
|
88723
88793
|
|
|
88724
|
-
//
|
|
88794
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js
|
|
88725
88795
|
var require_regex = __commonJS(function(exports2) {
|
|
88726
88796
|
var numeric = "[0-9]+";
|
|
88727
88797
|
var alphanumeric = "[A-Z $%*+\\-./:]+";
|
|
@@ -88748,7 +88818,7 @@ var require_regex = __commonJS(function(exports2) {
|
|
|
88748
88818
|
};
|
|
88749
88819
|
});
|
|
88750
88820
|
|
|
88751
|
-
//
|
|
88821
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js
|
|
88752
88822
|
var require_mode2 = __commonJS(function(exports2) {
|
|
88753
88823
|
var VersionCheck = require_version_check();
|
|
88754
88824
|
var Regex = require_regex();
|
|
@@ -88835,7 +88905,7 @@ var require_mode2 = __commonJS(function(exports2) {
|
|
|
88835
88905
|
};
|
|
88836
88906
|
});
|
|
88837
88907
|
|
|
88838
|
-
//
|
|
88908
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js
|
|
88839
88909
|
var require_version = __commonJS(function(exports2) {
|
|
88840
88910
|
var Utils = require_utils();
|
|
88841
88911
|
var ECCode = require_error_correction_code();
|
|
@@ -88930,7 +89000,7 @@ var require_version = __commonJS(function(exports2) {
|
|
|
88930
89000
|
};
|
|
88931
89001
|
});
|
|
88932
89002
|
|
|
88933
|
-
//
|
|
89003
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js
|
|
88934
89004
|
var require_format_info = __commonJS(function(exports2) {
|
|
88935
89005
|
var Utils = require_utils();
|
|
88936
89006
|
var G15 = 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0;
|
|
@@ -88946,7 +89016,7 @@ var require_format_info = __commonJS(function(exports2) {
|
|
|
88946
89016
|
};
|
|
88947
89017
|
});
|
|
88948
89018
|
|
|
88949
|
-
//
|
|
89019
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js
|
|
88950
89020
|
var require_numeric_data = __commonJS(function(exports2, module2) {
|
|
88951
89021
|
var Mode = require_mode2();
|
|
88952
89022
|
function NumericData(data) {
|
|
@@ -88979,7 +89049,7 @@ var require_numeric_data = __commonJS(function(exports2, module2) {
|
|
|
88979
89049
|
module2.exports = NumericData;
|
|
88980
89050
|
});
|
|
88981
89051
|
|
|
88982
|
-
//
|
|
89052
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js
|
|
88983
89053
|
var require_alphanumeric_data = __commonJS(function(exports2, module2) {
|
|
88984
89054
|
var Mode = require_mode2();
|
|
88985
89055
|
var ALPHA_NUM_CHARS = [
|
|
@@ -89056,7 +89126,7 @@ var require_alphanumeric_data = __commonJS(function(exports2, module2) {
|
|
|
89056
89126
|
module2.exports = AlphanumericData;
|
|
89057
89127
|
});
|
|
89058
89128
|
|
|
89059
|
-
//
|
|
89129
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js
|
|
89060
89130
|
var require_byte_data = __commonJS(function(exports2, module2) {
|
|
89061
89131
|
var Mode = require_mode2();
|
|
89062
89132
|
function ByteData(data) {
|
|
@@ -89084,7 +89154,7 @@ var require_byte_data = __commonJS(function(exports2, module2) {
|
|
|
89084
89154
|
module2.exports = ByteData;
|
|
89085
89155
|
});
|
|
89086
89156
|
|
|
89087
|
-
//
|
|
89157
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js
|
|
89088
89158
|
var require_kanji_data = __commonJS(function(exports2, module2) {
|
|
89089
89159
|
var Mode = require_mode2();
|
|
89090
89160
|
var Utils = require_utils();
|
|
@@ -89120,7 +89190,7 @@ var require_kanji_data = __commonJS(function(exports2, module2) {
|
|
|
89120
89190
|
module2.exports = KanjiData;
|
|
89121
89191
|
});
|
|
89122
89192
|
|
|
89123
|
-
//
|
|
89193
|
+
// ../../node_modules/.bun/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js
|
|
89124
89194
|
var require_dijkstra = __commonJS(function(exports2, module2) {
|
|
89125
89195
|
var dijkstra = {
|
|
89126
89196
|
single_source_shortest_paths: function(graph, s, d) {
|
|
@@ -89205,7 +89275,7 @@ var require_dijkstra = __commonJS(function(exports2, module2) {
|
|
|
89205
89275
|
}
|
|
89206
89276
|
});
|
|
89207
89277
|
|
|
89208
|
-
//
|
|
89278
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js
|
|
89209
89279
|
var require_segments = __commonJS(function(exports2) {
|
|
89210
89280
|
var Mode = require_mode2();
|
|
89211
89281
|
var NumericData = require_numeric_data();
|
|
@@ -89389,7 +89459,7 @@ var require_segments = __commonJS(function(exports2) {
|
|
|
89389
89459
|
};
|
|
89390
89460
|
});
|
|
89391
89461
|
|
|
89392
|
-
//
|
|
89462
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js
|
|
89393
89463
|
var require_qrcode = __commonJS(function(exports2) {
|
|
89394
89464
|
var Utils = require_utils();
|
|
89395
89465
|
var ECLevel = require_error_correction_level();
|
|
@@ -89649,7 +89719,7 @@ var require_qrcode = __commonJS(function(exports2) {
|
|
|
89649
89719
|
};
|
|
89650
89720
|
});
|
|
89651
89721
|
|
|
89652
|
-
//
|
|
89722
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/chunkstream.js
|
|
89653
89723
|
var require_chunkstream = __commonJS(function(exports2, module2) {
|
|
89654
89724
|
var util = __require("util");
|
|
89655
89725
|
var Stream = __require("stream");
|
|
@@ -89781,7 +89851,7 @@ var require_chunkstream = __commonJS(function(exports2, module2) {
|
|
|
89781
89851
|
};
|
|
89782
89852
|
});
|
|
89783
89853
|
|
|
89784
|
-
//
|
|
89854
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/interlace.js
|
|
89785
89855
|
var require_interlace = __commonJS(function(exports2) {
|
|
89786
89856
|
var imagePasses = [
|
|
89787
89857
|
{
|
|
@@ -89854,7 +89924,7 @@ var require_interlace = __commonJS(function(exports2) {
|
|
|
89854
89924
|
};
|
|
89855
89925
|
});
|
|
89856
89926
|
|
|
89857
|
-
//
|
|
89927
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/paeth-predictor.js
|
|
89858
89928
|
var require_paeth_predictor = __commonJS(function(exports2, module2) {
|
|
89859
89929
|
module2.exports = function paethPredictor(left, above, upLeft) {
|
|
89860
89930
|
let paeth = left + above - upLeft;
|
|
@@ -89871,7 +89941,7 @@ var require_paeth_predictor = __commonJS(function(exports2, module2) {
|
|
|
89871
89941
|
};
|
|
89872
89942
|
});
|
|
89873
89943
|
|
|
89874
|
-
//
|
|
89944
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/filter-parse.js
|
|
89875
89945
|
var require_filter_parse = __commonJS(function(exports2, module2) {
|
|
89876
89946
|
var interlaceUtils = require_interlace();
|
|
89877
89947
|
var paethPredictor = require_paeth_predictor();
|
|
@@ -90006,7 +90076,7 @@ var require_filter_parse = __commonJS(function(exports2, module2) {
|
|
|
90006
90076
|
};
|
|
90007
90077
|
});
|
|
90008
90078
|
|
|
90009
|
-
//
|
|
90079
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/filter-parse-async.js
|
|
90010
90080
|
var require_filter_parse_async = __commonJS(function(exports2, module2) {
|
|
90011
90081
|
var util = __require("util");
|
|
90012
90082
|
var ChunkStream = require_chunkstream();
|
|
@@ -90029,7 +90099,7 @@ var require_filter_parse_async = __commonJS(function(exports2, module2) {
|
|
|
90029
90099
|
util.inherits(FilterAsync, ChunkStream);
|
|
90030
90100
|
});
|
|
90031
90101
|
|
|
90032
|
-
//
|
|
90102
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/constants.js
|
|
90033
90103
|
var require_constants2 = __commonJS(function(exports2, module2) {
|
|
90034
90104
|
module2.exports = {
|
|
90035
90105
|
PNG_SIGNATURE: [137, 80, 78, 71, 13, 10, 26, 10],
|
|
@@ -90056,7 +90126,7 @@ var require_constants2 = __commonJS(function(exports2, module2) {
|
|
|
90056
90126
|
};
|
|
90057
90127
|
});
|
|
90058
90128
|
|
|
90059
|
-
//
|
|
90129
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/crc.js
|
|
90060
90130
|
var require_crc = __commonJS(function(exports2, module2) {
|
|
90061
90131
|
var crcTable = [];
|
|
90062
90132
|
(function() {
|
|
@@ -90093,7 +90163,7 @@ var require_crc = __commonJS(function(exports2, module2) {
|
|
|
90093
90163
|
};
|
|
90094
90164
|
});
|
|
90095
90165
|
|
|
90096
|
-
//
|
|
90166
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/parser.js
|
|
90097
90167
|
var require_parser3 = __commonJS(function(exports2, module2) {
|
|
90098
90168
|
var constants = require_constants2();
|
|
90099
90169
|
var CrcCalculator = require_crc();
|
|
@@ -90310,7 +90380,7 @@ var require_parser3 = __commonJS(function(exports2, module2) {
|
|
|
90310
90380
|
};
|
|
90311
90381
|
});
|
|
90312
90382
|
|
|
90313
|
-
//
|
|
90383
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/bitmapper.js
|
|
90314
90384
|
var require_bitmapper = __commonJS(function(exports2) {
|
|
90315
90385
|
var interlaceUtils = require_interlace();
|
|
90316
90386
|
var pixelBppMapper = [
|
|
@@ -90521,7 +90591,7 @@ var require_bitmapper = __commonJS(function(exports2) {
|
|
|
90521
90591
|
};
|
|
90522
90592
|
});
|
|
90523
90593
|
|
|
90524
|
-
//
|
|
90594
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/format-normaliser.js
|
|
90525
90595
|
var require_format_normaliser = __commonJS(function(exports2, module2) {
|
|
90526
90596
|
function dePalette(indata, outdata, width, height, palette) {
|
|
90527
90597
|
let pxPos = 0;
|
|
@@ -90597,7 +90667,7 @@ var require_format_normaliser = __commonJS(function(exports2, module2) {
|
|
|
90597
90667
|
};
|
|
90598
90668
|
});
|
|
90599
90669
|
|
|
90600
|
-
//
|
|
90670
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/parser-async.js
|
|
90601
90671
|
var require_parser_async = __commonJS(function(exports2, module2) {
|
|
90602
90672
|
var util = __require("util");
|
|
90603
90673
|
var zlib = __require("zlib");
|
|
@@ -90719,7 +90789,7 @@ var require_parser_async = __commonJS(function(exports2, module2) {
|
|
|
90719
90789
|
};
|
|
90720
90790
|
});
|
|
90721
90791
|
|
|
90722
|
-
//
|
|
90792
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/bitpacker.js
|
|
90723
90793
|
var require_bitpacker = __commonJS(function(exports2, module2) {
|
|
90724
90794
|
var constants = require_constants2();
|
|
90725
90795
|
module2.exports = function(dataIn, width, height, options) {
|
|
@@ -90848,7 +90918,7 @@ var require_bitpacker = __commonJS(function(exports2, module2) {
|
|
|
90848
90918
|
};
|
|
90849
90919
|
});
|
|
90850
90920
|
|
|
90851
|
-
//
|
|
90921
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/filter-pack.js
|
|
90852
90922
|
var require_filter_pack = __commonJS(function(exports2, module2) {
|
|
90853
90923
|
var paethPredictor = require_paeth_predictor();
|
|
90854
90924
|
function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
|
|
@@ -90987,7 +91057,7 @@ var require_filter_pack = __commonJS(function(exports2, module2) {
|
|
|
90987
91057
|
};
|
|
90988
91058
|
});
|
|
90989
91059
|
|
|
90990
|
-
//
|
|
91060
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/packer.js
|
|
90991
91061
|
var require_packer = __commonJS(function(exports2, module2) {
|
|
90992
91062
|
var constants = require_constants2();
|
|
90993
91063
|
var CrcStream = require_crc();
|
|
@@ -91075,7 +91145,7 @@ var require_packer = __commonJS(function(exports2, module2) {
|
|
|
91075
91145
|
};
|
|
91076
91146
|
});
|
|
91077
91147
|
|
|
91078
|
-
//
|
|
91148
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/packer-async.js
|
|
91079
91149
|
var require_packer_async = __commonJS(function(exports2, module2) {
|
|
91080
91150
|
var util = __require("util");
|
|
91081
91151
|
var Stream = __require("stream");
|
|
@@ -91108,7 +91178,7 @@ var require_packer_async = __commonJS(function(exports2, module2) {
|
|
|
91108
91178
|
};
|
|
91109
91179
|
});
|
|
91110
91180
|
|
|
91111
|
-
//
|
|
91181
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/sync-inflate.js
|
|
91112
91182
|
var require_sync_inflate = __commonJS(function(exports2, module2) {
|
|
91113
91183
|
var assert = __require("assert").ok;
|
|
91114
91184
|
var zlib = __require("zlib");
|
|
@@ -91227,7 +91297,7 @@ var require_sync_inflate = __commonJS(function(exports2, module2) {
|
|
|
91227
91297
|
exports2.inflateSync = inflateSync;
|
|
91228
91298
|
});
|
|
91229
91299
|
|
|
91230
|
-
//
|
|
91300
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/sync-reader.js
|
|
91231
91301
|
var require_sync_reader = __commonJS(function(exports2, module2) {
|
|
91232
91302
|
var SyncReader = module2.exports = function(buffer) {
|
|
91233
91303
|
this._buffer = buffer;
|
|
@@ -91261,7 +91331,7 @@ var require_sync_reader = __commonJS(function(exports2, module2) {
|
|
|
91261
91331
|
};
|
|
91262
91332
|
});
|
|
91263
91333
|
|
|
91264
|
-
//
|
|
91334
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/filter-parse-sync.js
|
|
91265
91335
|
var require_filter_parse_sync = __commonJS(function(exports2) {
|
|
91266
91336
|
var SyncReader = require_sync_reader();
|
|
91267
91337
|
var Filter = require_filter_parse();
|
|
@@ -91281,7 +91351,7 @@ var require_filter_parse_sync = __commonJS(function(exports2) {
|
|
|
91281
91351
|
};
|
|
91282
91352
|
});
|
|
91283
91353
|
|
|
91284
|
-
//
|
|
91354
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/parser-sync.js
|
|
91285
91355
|
var require_parser_sync = __commonJS(function(exports2, module2) {
|
|
91286
91356
|
var hasSyncZlib = true;
|
|
91287
91357
|
var zlib = __require("zlib");
|
|
@@ -91367,7 +91437,7 @@ var require_parser_sync = __commonJS(function(exports2, module2) {
|
|
|
91367
91437
|
};
|
|
91368
91438
|
});
|
|
91369
91439
|
|
|
91370
|
-
//
|
|
91440
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/packer-sync.js
|
|
91371
91441
|
var require_packer_sync = __commonJS(function(exports2, module2) {
|
|
91372
91442
|
var hasSyncZlib = true;
|
|
91373
91443
|
var zlib = __require("zlib");
|
|
@@ -91400,7 +91470,7 @@ var require_packer_sync = __commonJS(function(exports2, module2) {
|
|
|
91400
91470
|
};
|
|
91401
91471
|
});
|
|
91402
91472
|
|
|
91403
|
-
//
|
|
91473
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/png-sync.js
|
|
91404
91474
|
var require_png_sync = __commonJS(function(exports2) {
|
|
91405
91475
|
var parse = require_parser_sync();
|
|
91406
91476
|
var pack = require_packer_sync();
|
|
@@ -91412,7 +91482,7 @@ var require_png_sync = __commonJS(function(exports2) {
|
|
|
91412
91482
|
};
|
|
91413
91483
|
});
|
|
91414
91484
|
|
|
91415
|
-
//
|
|
91485
|
+
// ../../node_modules/.bun/pngjs@5.0.0/node_modules/pngjs/lib/png.js
|
|
91416
91486
|
var require_png = __commonJS(function(exports2) {
|
|
91417
91487
|
var util = __require("util");
|
|
91418
91488
|
var Stream = __require("stream");
|
|
@@ -91536,7 +91606,7 @@ var require_png = __commonJS(function(exports2) {
|
|
|
91536
91606
|
};
|
|
91537
91607
|
});
|
|
91538
91608
|
|
|
91539
|
-
//
|
|
91609
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js
|
|
91540
91610
|
var require_utils2 = __commonJS(function(exports2) {
|
|
91541
91611
|
function hex2rgba(hex) {
|
|
91542
91612
|
if (typeof hex === "number") {
|
|
@@ -91617,7 +91687,7 @@ var require_utils2 = __commonJS(function(exports2) {
|
|
|
91617
91687
|
};
|
|
91618
91688
|
});
|
|
91619
91689
|
|
|
91620
|
-
//
|
|
91690
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/png.js
|
|
91621
91691
|
var require_png2 = __commonJS(function(exports2) {
|
|
91622
91692
|
var fs = __require("fs");
|
|
91623
91693
|
var PNG = require_png().PNG;
|
|
@@ -91684,7 +91754,7 @@ var require_png2 = __commonJS(function(exports2) {
|
|
|
91684
91754
|
};
|
|
91685
91755
|
});
|
|
91686
91756
|
|
|
91687
|
-
//
|
|
91757
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utf8.js
|
|
91688
91758
|
var require_utf8 = __commonJS(function(exports2) {
|
|
91689
91759
|
var Utils = require_utils2();
|
|
91690
91760
|
var BLOCK_CHAR = {
|
|
@@ -91749,7 +91819,7 @@ var require_utf8 = __commonJS(function(exports2) {
|
|
|
91749
91819
|
};
|
|
91750
91820
|
});
|
|
91751
91821
|
|
|
91752
|
-
//
|
|
91822
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/terminal/terminal.js
|
|
91753
91823
|
var require_terminal = __commonJS(function(exports2) {
|
|
91754
91824
|
exports2.render = function(qrData, options, cb) {
|
|
91755
91825
|
const size = qrData.modules.size;
|
|
@@ -91778,7 +91848,7 @@ var require_terminal = __commonJS(function(exports2) {
|
|
|
91778
91848
|
};
|
|
91779
91849
|
});
|
|
91780
91850
|
|
|
91781
|
-
//
|
|
91851
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/terminal/terminal-small.js
|
|
91782
91852
|
var require_terminal_small = __commonJS(function(exports2) {
|
|
91783
91853
|
var backgroundWhite = "\x1B[47m";
|
|
91784
91854
|
var backgroundBlack = "\x1B[40m";
|
|
@@ -91837,7 +91907,7 @@ var require_terminal_small = __commonJS(function(exports2) {
|
|
|
91837
91907
|
};
|
|
91838
91908
|
});
|
|
91839
91909
|
|
|
91840
|
-
//
|
|
91910
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/terminal.js
|
|
91841
91911
|
var require_terminal2 = __commonJS(function(exports2) {
|
|
91842
91912
|
var big = require_terminal();
|
|
91843
91913
|
var small = require_terminal_small();
|
|
@@ -91849,7 +91919,7 @@ var require_terminal2 = __commonJS(function(exports2) {
|
|
|
91849
91919
|
};
|
|
91850
91920
|
});
|
|
91851
91921
|
|
|
91852
|
-
//
|
|
91922
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js
|
|
91853
91923
|
var require_svg_tag = __commonJS(function(exports2) {
|
|
91854
91924
|
var Utils = require_utils2();
|
|
91855
91925
|
function getColorAttrib(color, attrib) {
|
|
@@ -91908,7 +91978,7 @@ var require_svg_tag = __commonJS(function(exports2) {
|
|
|
91908
91978
|
};
|
|
91909
91979
|
});
|
|
91910
91980
|
|
|
91911
|
-
//
|
|
91981
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg.js
|
|
91912
91982
|
var require_svg = __commonJS(function(exports2) {
|
|
91913
91983
|
var svgTagRenderer = require_svg_tag();
|
|
91914
91984
|
exports2.render = svgTagRenderer.render;
|
|
@@ -91924,7 +91994,7 @@ var require_svg = __commonJS(function(exports2) {
|
|
|
91924
91994
|
};
|
|
91925
91995
|
});
|
|
91926
91996
|
|
|
91927
|
-
//
|
|
91997
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js
|
|
91928
91998
|
var require_canvas = __commonJS(function(exports2) {
|
|
91929
91999
|
var Utils = require_utils2();
|
|
91930
92000
|
function clearCanvas(ctx, canvas, size) {
|
|
@@ -91977,7 +92047,7 @@ var require_canvas = __commonJS(function(exports2) {
|
|
|
91977
92047
|
};
|
|
91978
92048
|
});
|
|
91979
92049
|
|
|
91980
|
-
//
|
|
92050
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/browser.js
|
|
91981
92051
|
var require_browser = __commonJS(function(exports2) {
|
|
91982
92052
|
var canPromise = require_can_promise();
|
|
91983
92053
|
var QRCode = require_qrcode();
|
|
@@ -92045,7 +92115,7 @@ var require_browser = __commonJS(function(exports2) {
|
|
|
92045
92115
|
});
|
|
92046
92116
|
});
|
|
92047
92117
|
|
|
92048
|
-
//
|
|
92118
|
+
// ../../node_modules/.bun/qrcode@1.5.4/node_modules/qrcode/lib/server.js
|
|
92049
92119
|
function checkParams(text, opts, cb) {
|
|
92050
92120
|
if (typeof text === "undefined") {
|
|
92051
92121
|
throw new Error("String required as first argument");
|
|
@@ -92142,7 +92212,7 @@ var init_qr = __esm(() => {
|
|
|
92142
92212
|
init_server();
|
|
92143
92213
|
});
|
|
92144
92214
|
|
|
92145
|
-
//
|
|
92215
|
+
// ../../node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
92146
92216
|
var require_picocolors = __commonJS(function(exports2, module2) {
|
|
92147
92217
|
var p = process || {};
|
|
92148
92218
|
var argv = p.argv || [];
|
|
@@ -92247,101 +92317,62 @@ function detectCiBranchMessage(env) {
|
|
|
92247
92317
|
}
|
|
92248
92318
|
var MAX_BRANCH_LEN = 80;
|
|
92249
92319
|
|
|
92250
|
-
// src/
|
|
92251
|
-
function
|
|
92252
|
-
|
|
92253
|
-
|
|
92254
|
-
|
|
92255
|
-
|
|
92256
|
-
|
|
92257
|
-
|
|
92258
|
-
|
|
92259
|
-
|
|
92260
|
-
|
|
92261
|
-
|
|
92262
|
-
|
|
92263
|
-
|
|
92264
|
-
|
|
92265
|
-
|
|
92266
|
-
throw new EnvSetInputError("Cannot combine --from-stdin and --from-file");
|
|
92267
|
-
}
|
|
92268
|
-
if (fromEnvFile) {
|
|
92269
|
-
if (args.length > 0) {
|
|
92270
|
-
throw new EnvSetInputError("--from-env-file takes no KEY arguments — every KEY=VALUE line in the file is set");
|
|
92271
|
-
}
|
|
92272
|
-
let raw;
|
|
92273
|
-
try {
|
|
92274
|
-
raw = await opts.readFile(fromEnvFile);
|
|
92275
|
-
} catch (err) {
|
|
92276
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
92277
|
-
throw new EnvSetInputError(`Couldn't read ${fromEnvFile}: ${message}`);
|
|
92278
|
-
}
|
|
92279
|
-
const parsed = parseEnvFile(raw);
|
|
92280
|
-
if (parsed.invalidLines.length > 0) {
|
|
92281
|
-
const listing = parsed.invalidLines.map((l) => {
|
|
92282
|
-
const redacted = redactEnvLine(l.text);
|
|
92283
|
-
return `line ${l.lineNumber}${redacted ? `: ${redacted}` : ""}`;
|
|
92284
|
-
}).join(`
|
|
92285
|
-
`);
|
|
92286
|
-
throw new EnvSetInputError(`Nothing was set. These lines in ${fromEnvFile} are not NAME=VALUE with a name of A-Z, 0-9 and _ (not starting with a digit, at most 256 characters):
|
|
92287
|
-
${listing}`);
|
|
92288
|
-
}
|
|
92289
|
-
if (parsed.entries.length === 0) {
|
|
92290
|
-
throw new EnvSetInputError(`No KEY=VALUE lines found in ${fromEnvFile}`);
|
|
92291
|
-
}
|
|
92292
|
-
const out = {};
|
|
92293
|
-
for (const entry of parsed.entries) {
|
|
92294
|
-
out[entry.key] = entry.value;
|
|
92295
|
-
}
|
|
92296
|
-
return out;
|
|
92320
|
+
// src/data-oauth-input.ts
|
|
92321
|
+
async function readOauthSecretStdin(input) {
|
|
92322
|
+
const chunks = [];
|
|
92323
|
+
let size = 0;
|
|
92324
|
+
try {
|
|
92325
|
+
for await (const chunk of input) {
|
|
92326
|
+
const bytes = Buffer.from(chunk);
|
|
92327
|
+
size += bytes.length;
|
|
92328
|
+
if (size > MAX_SECRET_BYTES)
|
|
92329
|
+
throw new OauthSecretInputError("Client secret exceeds 64 KiB.");
|
|
92330
|
+
chunks.push(bytes);
|
|
92331
|
+
}
|
|
92332
|
+
} catch (error) {
|
|
92333
|
+
if (error instanceof OauthSecretInputError)
|
|
92334
|
+
throw error;
|
|
92335
|
+
throw new OauthSecretInputError("Could not read client secret from stdin.");
|
|
92297
92336
|
}
|
|
92298
|
-
|
|
92299
|
-
|
|
92300
|
-
|
|
92301
|
-
|
|
92302
|
-
|
|
92303
|
-
|
|
92304
|
-
|
|
92305
|
-
|
|
92306
|
-
|
|
92307
|
-
|
|
92308
|
-
if (value.length === 0) {
|
|
92309
|
-
throw new EnvSetInputError(`Empty value for ${key}`);
|
|
92310
|
-
}
|
|
92311
|
-
return { [key]: value };
|
|
92337
|
+
return Buffer.concat(chunks).toString("utf8");
|
|
92338
|
+
}
|
|
92339
|
+
async function resolveOauthSecret(options) {
|
|
92340
|
+
const argv = options.clientSecret !== undefined;
|
|
92341
|
+
const stdin = options.fromStdin === true;
|
|
92342
|
+
const configuring = options.clientId !== undefined;
|
|
92343
|
+
if (argv && stdin)
|
|
92344
|
+
throw new OauthSecretInputError("Choose --client-secret or --client-secret-stdin, not both.");
|
|
92345
|
+
if (options.remove && (configuring || argv || stdin)) {
|
|
92346
|
+
throw new OauthSecretInputError("Do not combine --remove with OAuth credentials.");
|
|
92312
92347
|
}
|
|
92313
|
-
|
|
92314
|
-
|
|
92315
|
-
|
|
92316
|
-
|
|
92317
|
-
|
|
92318
|
-
|
|
92319
|
-
}
|
|
92320
|
-
out[arg] = value;
|
|
92321
|
-
} else {
|
|
92322
|
-
const eqIdx = arg.indexOf("=");
|
|
92323
|
-
const key = arg.slice(0, eqIdx);
|
|
92324
|
-
const value = arg.slice(eqIdx + 1);
|
|
92325
|
-
if (key.length === 0) {
|
|
92326
|
-
throw new EnvSetInputError(`Empty key in "${arg}"`);
|
|
92327
|
-
}
|
|
92328
|
-
if (value.length === 0) {
|
|
92329
|
-
throw new EnvSetInputError(`Empty value for ${key}`);
|
|
92330
|
-
}
|
|
92331
|
-
out[key] = value;
|
|
92332
|
-
}
|
|
92348
|
+
if (options.remove)
|
|
92349
|
+
return;
|
|
92350
|
+
if (!configuring) {
|
|
92351
|
+
if (argv || stdin)
|
|
92352
|
+
throw new OauthSecretInputError("--client-id is required when supplying a client secret.");
|
|
92353
|
+
return;
|
|
92333
92354
|
}
|
|
92334
|
-
|
|
92355
|
+
if (!options.clientId?.trim())
|
|
92356
|
+
throw new OauthSecretInputError("Client ID must not be empty.");
|
|
92357
|
+
let value;
|
|
92358
|
+
try {
|
|
92359
|
+
value = argv ? options.clientSecret : stdin ? (await options.readStdin()).replace(/\r?\n$/, "") : await options.promptHidden("OAuth client secret:");
|
|
92360
|
+
} catch {
|
|
92361
|
+
throw new OauthSecretInputError("Could not read client secret.");
|
|
92362
|
+
}
|
|
92363
|
+
if (!value.length)
|
|
92364
|
+
throw new OauthSecretInputError("Client secret must not be empty.");
|
|
92365
|
+
if (Buffer.byteLength(value, "utf8") > MAX_SECRET_BYTES)
|
|
92366
|
+
throw new OauthSecretInputError("Client secret exceeds 64 KiB.");
|
|
92367
|
+
if (argv)
|
|
92368
|
+
await options.warn();
|
|
92369
|
+
return value;
|
|
92335
92370
|
}
|
|
92336
|
-
var
|
|
92337
|
-
var
|
|
92338
|
-
|
|
92339
|
-
EnvSetInputError = class EnvSetInputError extends Error {
|
|
92340
|
-
constructor(message) {
|
|
92341
|
-
super(message);
|
|
92342
|
-
this.name = "EnvSetInputError";
|
|
92343
|
-
}
|
|
92371
|
+
var OauthSecretInputError, MAX_SECRET_BYTES;
|
|
92372
|
+
var init_data_oauth_input = __esm(() => {
|
|
92373
|
+
OauthSecretInputError = class OauthSecretInputError extends Error {
|
|
92344
92374
|
};
|
|
92375
|
+
MAX_SECRET_BYTES = 64 * 1024;
|
|
92345
92376
|
});
|
|
92346
92377
|
|
|
92347
92378
|
// src/prompt-hidden.ts
|
|
@@ -92437,7 +92468,104 @@ async function promptHidden(question) {
|
|
|
92437
92468
|
}
|
|
92438
92469
|
var init_prompt_hidden = () => {};
|
|
92439
92470
|
|
|
92440
|
-
//
|
|
92471
|
+
// src/env-set-input.ts
|
|
92472
|
+
function trimTrailingNewline(s) {
|
|
92473
|
+
return s.replace(/\r?\n$/, "");
|
|
92474
|
+
}
|
|
92475
|
+
function isBareKey(arg) {
|
|
92476
|
+
return !arg.includes("=");
|
|
92477
|
+
}
|
|
92478
|
+
async function resolveEnvSetInputs(opts) {
|
|
92479
|
+
const { args, fromStdin, fromFile, fromEnvFile } = opts;
|
|
92480
|
+
if (fromEnvFile && fromStdin) {
|
|
92481
|
+
throw new EnvSetInputError("Cannot combine --from-env-file and --from-stdin");
|
|
92482
|
+
}
|
|
92483
|
+
if (fromEnvFile && fromFile) {
|
|
92484
|
+
throw new EnvSetInputError("Cannot combine --from-env-file and --from-file");
|
|
92485
|
+
}
|
|
92486
|
+
if (fromStdin && fromFile) {
|
|
92487
|
+
throw new EnvSetInputError("Cannot combine --from-stdin and --from-file");
|
|
92488
|
+
}
|
|
92489
|
+
if (fromEnvFile) {
|
|
92490
|
+
if (args.length > 0) {
|
|
92491
|
+
throw new EnvSetInputError("--from-env-file takes no KEY arguments — every KEY=VALUE line in the file is set");
|
|
92492
|
+
}
|
|
92493
|
+
let raw;
|
|
92494
|
+
try {
|
|
92495
|
+
raw = await opts.readFile(fromEnvFile);
|
|
92496
|
+
} catch (err) {
|
|
92497
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
92498
|
+
throw new EnvSetInputError(`Couldn't read ${fromEnvFile}: ${message}`);
|
|
92499
|
+
}
|
|
92500
|
+
const parsed = parseEnvFile(raw);
|
|
92501
|
+
if (parsed.invalidLines.length > 0) {
|
|
92502
|
+
const listing = parsed.invalidLines.map((l) => {
|
|
92503
|
+
const redacted = redactEnvLine(l.text);
|
|
92504
|
+
return `line ${l.lineNumber}${redacted ? `: ${redacted}` : ""}`;
|
|
92505
|
+
}).join(`
|
|
92506
|
+
`);
|
|
92507
|
+
throw new EnvSetInputError(`Nothing was set. These lines in ${fromEnvFile} are not NAME=VALUE with a name of A-Z, 0-9 and _ (not starting with a digit, at most 256 characters):
|
|
92508
|
+
${listing}`);
|
|
92509
|
+
}
|
|
92510
|
+
if (parsed.entries.length === 0) {
|
|
92511
|
+
throw new EnvSetInputError(`No KEY=VALUE lines found in ${fromEnvFile}`);
|
|
92512
|
+
}
|
|
92513
|
+
const out = {};
|
|
92514
|
+
for (const entry of parsed.entries) {
|
|
92515
|
+
out[entry.key] = entry.value;
|
|
92516
|
+
}
|
|
92517
|
+
return out;
|
|
92518
|
+
}
|
|
92519
|
+
if (fromStdin || fromFile) {
|
|
92520
|
+
if (args.length !== 1) {
|
|
92521
|
+
throw new EnvSetInputError("--from-stdin/--from-file expects exactly one KEY (without =VALUE)");
|
|
92522
|
+
}
|
|
92523
|
+
const key = args[0] ?? "";
|
|
92524
|
+
if (!isBareKey(key)) {
|
|
92525
|
+
throw new EnvSetInputError("--from-stdin/--from-file expects bare KEY, not KEY=VALUE");
|
|
92526
|
+
}
|
|
92527
|
+
const raw = fromStdin ? await opts.readStdin() : await opts.readFile(fromFile ?? "");
|
|
92528
|
+
const value = trimTrailingNewline(raw);
|
|
92529
|
+
if (value.length === 0) {
|
|
92530
|
+
throw new EnvSetInputError(`Empty value for ${key}`);
|
|
92531
|
+
}
|
|
92532
|
+
return { [key]: value };
|
|
92533
|
+
}
|
|
92534
|
+
const out = {};
|
|
92535
|
+
for (const arg of args) {
|
|
92536
|
+
if (isBareKey(arg)) {
|
|
92537
|
+
const value = await opts.promptHidden(`Value for ${arg}:`);
|
|
92538
|
+
if (value.length === 0) {
|
|
92539
|
+
throw new EnvSetInputError(`Empty value for ${arg}`);
|
|
92540
|
+
}
|
|
92541
|
+
out[arg] = value;
|
|
92542
|
+
} else {
|
|
92543
|
+
const eqIdx = arg.indexOf("=");
|
|
92544
|
+
const key = arg.slice(0, eqIdx);
|
|
92545
|
+
const value = arg.slice(eqIdx + 1);
|
|
92546
|
+
if (key.length === 0) {
|
|
92547
|
+
throw new EnvSetInputError(`Empty key in "${arg}"`);
|
|
92548
|
+
}
|
|
92549
|
+
if (value.length === 0) {
|
|
92550
|
+
throw new EnvSetInputError(`Empty value for ${key}`);
|
|
92551
|
+
}
|
|
92552
|
+
out[key] = value;
|
|
92553
|
+
}
|
|
92554
|
+
}
|
|
92555
|
+
return out;
|
|
92556
|
+
}
|
|
92557
|
+
var EnvSetInputError;
|
|
92558
|
+
var init_env_set_input = __esm(() => {
|
|
92559
|
+
init_dist();
|
|
92560
|
+
EnvSetInputError = class EnvSetInputError extends Error {
|
|
92561
|
+
constructor(message) {
|
|
92562
|
+
super(message);
|
|
92563
|
+
this.name = "EnvSetInputError";
|
|
92564
|
+
}
|
|
92565
|
+
};
|
|
92566
|
+
});
|
|
92567
|
+
|
|
92568
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js
|
|
92441
92569
|
var exports_toml = {};
|
|
92442
92570
|
__exportCjs(exports_toml, {
|
|
92443
92571
|
parse: () => $parse,
|
|
@@ -92447,7 +92575,7 @@ __exportCjs(exports_toml, {
|
|
|
92447
92575
|
stringify: (value) => $stringify = value
|
|
92448
92576
|
});
|
|
92449
92577
|
|
|
92450
|
-
//
|
|
92578
|
+
// ../../node_modules/.bun/cac@7.0.0/node_modules/cac/dist/index.js
|
|
92451
92579
|
function toArr(any) {
|
|
92452
92580
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
92453
92581
|
}
|
|
@@ -93295,8 +93423,8 @@ var EMAIL_BRAND_HEADER = `<p style="margin:0 0 20px;line-height:28px;">
|
|
|
93295
93423
|
// ../shared/dist/legal.js
|
|
93296
93424
|
var LEGAL_DOCUMENT_VERSIONS = {
|
|
93297
93425
|
terms: "1.0.3",
|
|
93298
|
-
aup: "1.
|
|
93299
|
-
privacy: "1.
|
|
93426
|
+
aup: "1.1.1",
|
|
93427
|
+
privacy: "1.1.1",
|
|
93300
93428
|
cookies: "1.0.4",
|
|
93301
93429
|
dpa: "1.1",
|
|
93302
93430
|
subprocessors: "1.2",
|
|
@@ -93367,13 +93495,19 @@ var SECRET_BASENAMES = new Set([
|
|
|
93367
93495
|
"secrets.toml",
|
|
93368
93496
|
"wp-config.php"
|
|
93369
93497
|
]);
|
|
93370
|
-
var SECRET_PREFIXES = [".
|
|
93498
|
+
var SECRET_PREFIXES = [".dev.vars."];
|
|
93499
|
+
var ENV_NAMES = [".env", ".envrc"];
|
|
93500
|
+
var ENV_PREFIXES = [".env.", ".env-", ".env_"];
|
|
93501
|
+
var ENV_FILE_IGNORE_PATTERNS = [
|
|
93502
|
+
...ENV_NAMES,
|
|
93503
|
+
...ENV_PREFIXES.map((p) => `${p}*`)
|
|
93504
|
+
];
|
|
93371
93505
|
var SECRET_EXTENSIONS = [".pem", ".key", ".p12", ".pfx", ".jks", ".keystore"];
|
|
93372
93506
|
var SECRET_DIRS = new Set([".ssh", ".aws", ".gnupg"]);
|
|
93373
93507
|
var SECRET_PATH_SUFFIXES = [".docker/config.json", ".kube/config"];
|
|
93374
93508
|
var STATIC_CREDENTIAL_PATH_PATTERN = `(?i)(?:^|/)(?:${[
|
|
93375
|
-
...[...SECRET_BASENAMES,
|
|
93376
|
-
...SECRET_PREFIXES.map((p) => `${p.replaceAll(".", "[.]")}[^/]*`),
|
|
93509
|
+
...[...SECRET_BASENAMES, ...ENV_NAMES, ...SECRET_DIRS, ...SECRET_PATH_SUFFIXES].map((p) => p.replaceAll(".", "[.]")),
|
|
93510
|
+
...[...ENV_PREFIXES, ...SECRET_PREFIXES].map((p) => `${p.replaceAll(".", "[.]")}[^/]*`),
|
|
93377
93511
|
...SECRET_EXTENSIONS.map((p) => `[^/]*${p.replaceAll(".", "[.]")}`)
|
|
93378
93512
|
].join("|")})(?:/|$)`;
|
|
93379
93513
|
// ../shared/dist/signup-day.js
|
|
@@ -93448,6 +93582,7 @@ var bool = (name, readers, purpose, enabled, def = "disabled", disabled = OFF_SP
|
|
|
93448
93582
|
default: def
|
|
93449
93583
|
});
|
|
93450
93584
|
var SWITCHES = [
|
|
93585
|
+
bool("PERCHER_SOURCE_REVIEW_ENABLED", ["api", "worker", "dashboard"], "accept voluntary source-review submissions and browser staff decisions", ONE, "disabled", ["0"]),
|
|
93451
93586
|
bool("PERCHER_PB_CREDENTIAL_LEDGER", ["api", "worker"], "serialize owner PocketBase reset with durable credential evidence", ONE, "disabled"),
|
|
93452
93587
|
bool("PERCHER_EXPORT_V2", ["api", "dashboard"], "prepare verified encrypted exports before separate one-use binary delivery", ONE, "disabled"),
|
|
93453
93588
|
bool("PERCHER_BACKUP_VOLUME_REQUIRED", ["api", "worker"], "require verified backup Volume identity; missing or invalid state never falls back to root storage", ONE, "disabled", ["0"]),
|
|
@@ -93559,6 +93694,795 @@ var TIMEOUTS = {
|
|
|
93559
93694
|
};
|
|
93560
93695
|
// ../shared/dist/waitlist.js
|
|
93561
93696
|
var WAITLIST_THROTTLE_WINDOW_MS = 60 * 60 * 1000;
|
|
93697
|
+
// ../../node_modules/.bun/croner@10.0.1/node_modules/croner/dist/croner.js
|
|
93698
|
+
function T(s) {
|
|
93699
|
+
return Date.UTC(s.y, s.m - 1, s.d, s.h, s.i, s.s);
|
|
93700
|
+
}
|
|
93701
|
+
function D(s, e) {
|
|
93702
|
+
return s.y === e.y && s.m === e.m && s.d === e.d && s.h === e.h && s.i === e.i && s.s === e.s;
|
|
93703
|
+
}
|
|
93704
|
+
function A(s, e) {
|
|
93705
|
+
let t = new Date(Date.parse(s));
|
|
93706
|
+
if (isNaN(t))
|
|
93707
|
+
throw new Error("Invalid ISO8601 passed to timezone parser.");
|
|
93708
|
+
let r = s.substring(9);
|
|
93709
|
+
return r.includes("Z") || r.includes("+") || r.includes("-") ? b(t.getUTCFullYear(), t.getUTCMonth() + 1, t.getUTCDate(), t.getUTCHours(), t.getUTCMinutes(), t.getUTCSeconds(), "Etc/UTC") : b(t.getFullYear(), t.getMonth() + 1, t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), e);
|
|
93710
|
+
}
|
|
93711
|
+
function v(s, e, t) {
|
|
93712
|
+
return k(A(s, e), t);
|
|
93713
|
+
}
|
|
93714
|
+
function k(s, e) {
|
|
93715
|
+
let t = new Date(T(s)), r = g(t, s.tz), n = T(s), i = T(r), a = n - i, o = new Date(t.getTime() + a), h = g(o, s.tz);
|
|
93716
|
+
if (D(h, s)) {
|
|
93717
|
+
let u = new Date(o.getTime() - 3600000), d = g(u, s.tz);
|
|
93718
|
+
return D(d, s) ? u : o;
|
|
93719
|
+
}
|
|
93720
|
+
let l = new Date(o.getTime() + T(s) - T(h)), y = g(l, s.tz);
|
|
93721
|
+
if (D(y, s))
|
|
93722
|
+
return l;
|
|
93723
|
+
if (e)
|
|
93724
|
+
throw new Error("Invalid date passed to fromTZ()");
|
|
93725
|
+
return o.getTime() > l.getTime() ? o : l;
|
|
93726
|
+
}
|
|
93727
|
+
function g(s, e) {
|
|
93728
|
+
let t, r;
|
|
93729
|
+
try {
|
|
93730
|
+
t = new Intl.DateTimeFormat("en-US", { timeZone: e, year: "numeric", month: "numeric", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric", hour12: false }), r = t.formatToParts(s);
|
|
93731
|
+
} catch (i) {
|
|
93732
|
+
let a = i instanceof Error ? i.message : String(i);
|
|
93733
|
+
throw new RangeError(`toTZ: Invalid timezone '${e}' or date. Please provide a valid IANA timezone (e.g., 'America/New_York', 'Europe/Stockholm'). Original error: ${a}`);
|
|
93734
|
+
}
|
|
93735
|
+
let n = { year: 0, month: 0, day: 0, hour: 0, minute: 0, second: 0 };
|
|
93736
|
+
for (let i of r)
|
|
93737
|
+
(i.type === "year" || i.type === "month" || i.type === "day" || i.type === "hour" || i.type === "minute" || i.type === "second") && (n[i.type] = parseInt(i.value, 10));
|
|
93738
|
+
if (isNaN(n.year) || isNaN(n.month) || isNaN(n.day) || isNaN(n.hour) || isNaN(n.minute) || isNaN(n.second))
|
|
93739
|
+
throw new Error(`toTZ: Failed to parse all date components from timezone '${e}'. This may indicate an invalid date or timezone configuration. Parsed components: ${JSON.stringify(n)}`);
|
|
93740
|
+
return n.hour === 24 && (n.hour = 0), { y: n.year, m: n.month, d: n.day, h: n.hour, i: n.minute, s: n.second, tz: e };
|
|
93741
|
+
}
|
|
93742
|
+
function b(s, e, t, r, n, i, a) {
|
|
93743
|
+
return { y: s, m: e, d: t, h: r, i: n, s: i, tz: a };
|
|
93744
|
+
}
|
|
93745
|
+
var O = [1, 2, 4, 8, 16];
|
|
93746
|
+
var C = class {
|
|
93747
|
+
pattern;
|
|
93748
|
+
timezone;
|
|
93749
|
+
mode;
|
|
93750
|
+
alternativeWeekdays;
|
|
93751
|
+
sloppyRanges;
|
|
93752
|
+
second;
|
|
93753
|
+
minute;
|
|
93754
|
+
hour;
|
|
93755
|
+
day;
|
|
93756
|
+
month;
|
|
93757
|
+
dayOfWeek;
|
|
93758
|
+
year;
|
|
93759
|
+
lastDayOfMonth;
|
|
93760
|
+
lastWeekday;
|
|
93761
|
+
nearestWeekdays;
|
|
93762
|
+
starDOM;
|
|
93763
|
+
starDOW;
|
|
93764
|
+
starYear;
|
|
93765
|
+
useAndLogic;
|
|
93766
|
+
constructor(e, t, r) {
|
|
93767
|
+
this.pattern = e, this.timezone = t, this.mode = r?.mode ?? "auto", this.alternativeWeekdays = r?.alternativeWeekdays ?? false, this.sloppyRanges = r?.sloppyRanges ?? false, this.second = Array(60).fill(0), this.minute = Array(60).fill(0), this.hour = Array(24).fill(0), this.day = Array(31).fill(0), this.month = Array(12).fill(0), this.dayOfWeek = Array(7).fill(0), this.year = Array(1e4).fill(0), this.lastDayOfMonth = false, this.lastWeekday = false, this.nearestWeekdays = Array(31).fill(0), this.starDOM = false, this.starDOW = false, this.starYear = false, this.useAndLogic = false, this.parse();
|
|
93768
|
+
}
|
|
93769
|
+
parse() {
|
|
93770
|
+
if (!(typeof this.pattern == "string" || this.pattern instanceof String))
|
|
93771
|
+
throw new TypeError("CronPattern: Pattern has to be of type string.");
|
|
93772
|
+
this.pattern.indexOf("@") >= 0 && (this.pattern = this.handleNicknames(this.pattern).trim());
|
|
93773
|
+
let e = this.pattern.match(/\S+/g) || [""], t = e.length;
|
|
93774
|
+
if (e.length < 5 || e.length > 7)
|
|
93775
|
+
throw new TypeError("CronPattern: invalid configuration format ('" + this.pattern + "'), exactly five, six, or seven space separated parts are required.");
|
|
93776
|
+
if (this.mode !== "auto") {
|
|
93777
|
+
let n;
|
|
93778
|
+
switch (this.mode) {
|
|
93779
|
+
case "5-part":
|
|
93780
|
+
n = 5;
|
|
93781
|
+
break;
|
|
93782
|
+
case "6-part":
|
|
93783
|
+
n = 6;
|
|
93784
|
+
break;
|
|
93785
|
+
case "7-part":
|
|
93786
|
+
n = 7;
|
|
93787
|
+
break;
|
|
93788
|
+
case "5-or-6-parts":
|
|
93789
|
+
n = [5, 6];
|
|
93790
|
+
break;
|
|
93791
|
+
case "6-or-7-parts":
|
|
93792
|
+
n = [6, 7];
|
|
93793
|
+
break;
|
|
93794
|
+
default:
|
|
93795
|
+
n = 0;
|
|
93796
|
+
}
|
|
93797
|
+
if (!(Array.isArray(n) ? n.includes(t) : t === n)) {
|
|
93798
|
+
let a = Array.isArray(n) ? n.join(" or ") : n.toString();
|
|
93799
|
+
throw new TypeError(`CronPattern: mode '${this.mode}' requires exactly ${a} parts, but pattern '${this.pattern}' has ${t} parts.`);
|
|
93800
|
+
}
|
|
93801
|
+
}
|
|
93802
|
+
if (e.length === 5 && e.unshift("0"), e.length === 6 && e.push("*"), e[3].toUpperCase() === "LW" ? (this.lastWeekday = true, e[3] = "") : e[3].toUpperCase().indexOf("L") >= 0 && (e[3] = e[3].replace(/L/gi, ""), this.lastDayOfMonth = true), e[3] == "*" && (this.starDOM = true), e[6] == "*" && (this.starYear = true), e[4].length >= 3 && (e[4] = this.replaceAlphaMonths(e[4])), e[5].length >= 3 && (e[5] = this.alternativeWeekdays ? this.replaceAlphaDaysQuartz(e[5]) : this.replaceAlphaDays(e[5])), e[5].startsWith("+") && (this.useAndLogic = true, e[5] = e[5].substring(1), e[5] === ""))
|
|
93803
|
+
throw new TypeError("CronPattern: Day-of-week field cannot be empty after '+' modifier.");
|
|
93804
|
+
switch (e[5] == "*" && (this.starDOW = true), this.pattern.indexOf("?") >= 0 && (e[0] = e[0].replace(/\?/g, "*"), e[1] = e[1].replace(/\?/g, "*"), e[2] = e[2].replace(/\?/g, "*"), e[3] = e[3].replace(/\?/g, "*"), e[4] = e[4].replace(/\?/g, "*"), e[5] = e[5].replace(/\?/g, "*"), e[6] && (e[6] = e[6].replace(/\?/g, "*"))), this.mode) {
|
|
93805
|
+
case "5-part":
|
|
93806
|
+
e[0] = "0", e[6] = "*";
|
|
93807
|
+
break;
|
|
93808
|
+
case "6-part":
|
|
93809
|
+
e[6] = "*";
|
|
93810
|
+
break;
|
|
93811
|
+
case "5-or-6-parts":
|
|
93812
|
+
e[6] = "*";
|
|
93813
|
+
break;
|
|
93814
|
+
case "6-or-7-parts":
|
|
93815
|
+
break;
|
|
93816
|
+
case "7-part":
|
|
93817
|
+
case "auto":
|
|
93818
|
+
break;
|
|
93819
|
+
}
|
|
93820
|
+
this.throwAtIllegalCharacters(e), this.partToArray("second", e[0], 0, 1), this.partToArray("minute", e[1], 0, 1), this.partToArray("hour", e[2], 0, 1), this.partToArray("day", e[3], -1, 1), this.partToArray("month", e[4], -1, 1);
|
|
93821
|
+
let r = this.alternativeWeekdays ? -1 : 0;
|
|
93822
|
+
this.partToArray("dayOfWeek", e[5], r, 63), this.partToArray("year", e[6], 0, 1), !this.alternativeWeekdays && this.dayOfWeek[7] && (this.dayOfWeek[0] = this.dayOfWeek[7]);
|
|
93823
|
+
}
|
|
93824
|
+
partToArray(e, t, r, n) {
|
|
93825
|
+
let i = this[e], a = e === "day" && this.lastDayOfMonth, o = e === "day" && this.lastWeekday;
|
|
93826
|
+
if (t === "" && !a && !o)
|
|
93827
|
+
throw new TypeError("CronPattern: configuration entry " + e + " (" + t + ") is empty, check for trailing spaces.");
|
|
93828
|
+
if (t === "*")
|
|
93829
|
+
return i.fill(n);
|
|
93830
|
+
let h = t.split(",");
|
|
93831
|
+
if (h.length > 1)
|
|
93832
|
+
for (let l = 0;l < h.length; l++)
|
|
93833
|
+
this.partToArray(e, h[l], r, n);
|
|
93834
|
+
else
|
|
93835
|
+
t.indexOf("-") !== -1 && t.indexOf("/") !== -1 ? this.handleRangeWithStepping(t, e, r, n) : t.indexOf("-") !== -1 ? this.handleRange(t, e, r, n) : t.indexOf("/") !== -1 ? this.handleStepping(t, e, r, n) : t !== "" && this.handleNumber(t, e, r, n);
|
|
93836
|
+
}
|
|
93837
|
+
throwAtIllegalCharacters(e) {
|
|
93838
|
+
for (let t = 0;t < e.length; t++)
|
|
93839
|
+
if ((t === 3 ? /[^/*0-9,\-WwLl]+/ : t === 5 ? /[^/*0-9,\-#Ll]+/ : /[^/*0-9,\-]+/).test(e[t]))
|
|
93840
|
+
throw new TypeError("CronPattern: configuration entry " + t + " (" + e[t] + ") contains illegal characters.");
|
|
93841
|
+
}
|
|
93842
|
+
handleNumber(e, t, r, n) {
|
|
93843
|
+
let i = this.extractNth(e, t), a = e.toUpperCase().includes("W");
|
|
93844
|
+
if (t !== "day" && a)
|
|
93845
|
+
throw new TypeError("CronPattern: Nearest weekday modifier (W) only allowed in day-of-month.");
|
|
93846
|
+
a && (t = "nearestWeekdays");
|
|
93847
|
+
let o = parseInt(i[0], 10) + r;
|
|
93848
|
+
if (isNaN(o))
|
|
93849
|
+
throw new TypeError("CronPattern: " + t + " is not a number: '" + e + "'");
|
|
93850
|
+
this.setPart(t, o, i[1] || n);
|
|
93851
|
+
}
|
|
93852
|
+
setPart(e, t, r) {
|
|
93853
|
+
if (!Object.prototype.hasOwnProperty.call(this, e))
|
|
93854
|
+
throw new TypeError("CronPattern: Invalid part specified: " + e);
|
|
93855
|
+
if (e === "dayOfWeek") {
|
|
93856
|
+
if (t === 7 && (t = 0), t < 0 || t > 6)
|
|
93857
|
+
throw new RangeError("CronPattern: Invalid value for dayOfWeek: " + t);
|
|
93858
|
+
this.setNthWeekdayOfMonth(t, r);
|
|
93859
|
+
return;
|
|
93860
|
+
}
|
|
93861
|
+
if (e === "second" || e === "minute") {
|
|
93862
|
+
if (t < 0 || t >= 60)
|
|
93863
|
+
throw new RangeError("CronPattern: Invalid value for " + e + ": " + t);
|
|
93864
|
+
} else if (e === "hour") {
|
|
93865
|
+
if (t < 0 || t >= 24)
|
|
93866
|
+
throw new RangeError("CronPattern: Invalid value for " + e + ": " + t);
|
|
93867
|
+
} else if (e === "day" || e === "nearestWeekdays") {
|
|
93868
|
+
if (t < 0 || t >= 31)
|
|
93869
|
+
throw new RangeError("CronPattern: Invalid value for " + e + ": " + t);
|
|
93870
|
+
} else if (e === "month") {
|
|
93871
|
+
if (t < 0 || t >= 12)
|
|
93872
|
+
throw new RangeError("CronPattern: Invalid value for " + e + ": " + t);
|
|
93873
|
+
} else if (e === "year" && (t < 1 || t >= 1e4))
|
|
93874
|
+
throw new RangeError("CronPattern: Invalid value for " + e + ": " + t + " (supported range: 1-9999)");
|
|
93875
|
+
this[e][t] = r;
|
|
93876
|
+
}
|
|
93877
|
+
validateNotNaN(e, t) {
|
|
93878
|
+
if (isNaN(e))
|
|
93879
|
+
throw new TypeError(t);
|
|
93880
|
+
}
|
|
93881
|
+
validateRange(e, t, r, n, i) {
|
|
93882
|
+
if (e > t)
|
|
93883
|
+
throw new TypeError("CronPattern: From value is larger than to value: '" + i + "'");
|
|
93884
|
+
if (r !== undefined) {
|
|
93885
|
+
if (r === 0)
|
|
93886
|
+
throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");
|
|
93887
|
+
if (r > this[n].length)
|
|
93888
|
+
throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part (" + this[n].length + ")");
|
|
93889
|
+
}
|
|
93890
|
+
}
|
|
93891
|
+
handleRangeWithStepping(e, t, r, n) {
|
|
93892
|
+
if (e.toUpperCase().includes("W"))
|
|
93893
|
+
throw new TypeError("CronPattern: Syntax error, W is not allowed in ranges with stepping.");
|
|
93894
|
+
let i = this.extractNth(e, t), a = i[0].match(/^(\d+)-(\d+)\/(\d+)$/);
|
|
93895
|
+
if (a === null)
|
|
93896
|
+
throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '" + e + "'");
|
|
93897
|
+
let [, o, h, l] = a, y = parseInt(o, 10) + r, u = parseInt(h, 10) + r, d = parseInt(l, 10);
|
|
93898
|
+
this.validateNotNaN(y, "CronPattern: Syntax error, illegal lower range (NaN)"), this.validateNotNaN(u, "CronPattern: Syntax error, illegal upper range (NaN)"), this.validateNotNaN(d, "CronPattern: Syntax error, illegal stepping: (NaN)"), this.validateRange(y, u, d, t, e);
|
|
93899
|
+
for (let c = y;c <= u; c += d)
|
|
93900
|
+
this.setPart(t, c, i[1] || n);
|
|
93901
|
+
}
|
|
93902
|
+
extractNth(e, t) {
|
|
93903
|
+
let r = e, n;
|
|
93904
|
+
if (r.includes("#")) {
|
|
93905
|
+
if (t !== "dayOfWeek")
|
|
93906
|
+
throw new Error("CronPattern: nth (#) only allowed in day-of-week field");
|
|
93907
|
+
n = r.split("#")[1], r = r.split("#")[0];
|
|
93908
|
+
} else if (r.toUpperCase().endsWith("L")) {
|
|
93909
|
+
if (t !== "dayOfWeek")
|
|
93910
|
+
throw new Error("CronPattern: L modifier only allowed in day-of-week field (use L alone for day-of-month)");
|
|
93911
|
+
n = "L", r = r.slice(0, -1);
|
|
93912
|
+
}
|
|
93913
|
+
return [r, n];
|
|
93914
|
+
}
|
|
93915
|
+
handleRange(e, t, r, n) {
|
|
93916
|
+
if (e.toUpperCase().includes("W"))
|
|
93917
|
+
throw new TypeError("CronPattern: Syntax error, W is not allowed in a range.");
|
|
93918
|
+
let i = this.extractNth(e, t), a = i[0].split("-");
|
|
93919
|
+
if (a.length !== 2)
|
|
93920
|
+
throw new TypeError("CronPattern: Syntax error, illegal range: '" + e + "'");
|
|
93921
|
+
let o = parseInt(a[0], 10) + r, h = parseInt(a[1], 10) + r;
|
|
93922
|
+
this.validateNotNaN(o, "CronPattern: Syntax error, illegal lower range (NaN)"), this.validateNotNaN(h, "CronPattern: Syntax error, illegal upper range (NaN)"), this.validateRange(o, h, undefined, t, e);
|
|
93923
|
+
for (let l = o;l <= h; l++)
|
|
93924
|
+
this.setPart(t, l, i[1] || n);
|
|
93925
|
+
}
|
|
93926
|
+
handleStepping(e, t, r, n) {
|
|
93927
|
+
if (e.toUpperCase().includes("W"))
|
|
93928
|
+
throw new TypeError("CronPattern: Syntax error, W is not allowed in parts with stepping.");
|
|
93929
|
+
let i = this.extractNth(e, t), a = i[0].split("/");
|
|
93930
|
+
if (a.length !== 2)
|
|
93931
|
+
throw new TypeError("CronPattern: Syntax error, illegal stepping: '" + e + "'");
|
|
93932
|
+
if (this.sloppyRanges)
|
|
93933
|
+
a[0] === "" && (a[0] = "*");
|
|
93934
|
+
else {
|
|
93935
|
+
if (a[0] === "")
|
|
93936
|
+
throw new TypeError("CronPattern: Syntax error, stepping with missing prefix ('" + e + "') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.");
|
|
93937
|
+
if (a[0] !== "*")
|
|
93938
|
+
throw new TypeError("CronPattern: Syntax error, stepping with numeric prefix ('" + e + "') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.");
|
|
93939
|
+
}
|
|
93940
|
+
let o = 0;
|
|
93941
|
+
a[0] !== "*" && (o = parseInt(a[0], 10) + r);
|
|
93942
|
+
let h = parseInt(a[1], 10);
|
|
93943
|
+
this.validateNotNaN(h, "CronPattern: Syntax error, illegal stepping: (NaN)"), this.validateRange(0, this[t].length - 1, h, t, e);
|
|
93944
|
+
for (let l = o;l < this[t].length; l += h)
|
|
93945
|
+
this.setPart(t, l, i[1] || n);
|
|
93946
|
+
}
|
|
93947
|
+
replaceAlphaDays(e) {
|
|
93948
|
+
return e.replace(/-sun/gi, "-7").replace(/sun/gi, "0").replace(/mon/gi, "1").replace(/tue/gi, "2").replace(/wed/gi, "3").replace(/thu/gi, "4").replace(/fri/gi, "5").replace(/sat/gi, "6");
|
|
93949
|
+
}
|
|
93950
|
+
replaceAlphaDaysQuartz(e) {
|
|
93951
|
+
return e.replace(/sun/gi, "1").replace(/mon/gi, "2").replace(/tue/gi, "3").replace(/wed/gi, "4").replace(/thu/gi, "5").replace(/fri/gi, "6").replace(/sat/gi, "7");
|
|
93952
|
+
}
|
|
93953
|
+
replaceAlphaMonths(e) {
|
|
93954
|
+
return e.replace(/jan/gi, "1").replace(/feb/gi, "2").replace(/mar/gi, "3").replace(/apr/gi, "4").replace(/may/gi, "5").replace(/jun/gi, "6").replace(/jul/gi, "7").replace(/aug/gi, "8").replace(/sep/gi, "9").replace(/oct/gi, "10").replace(/nov/gi, "11").replace(/dec/gi, "12");
|
|
93955
|
+
}
|
|
93956
|
+
handleNicknames(e) {
|
|
93957
|
+
let t = e.trim().toLowerCase();
|
|
93958
|
+
if (t === "@yearly" || t === "@annually")
|
|
93959
|
+
return "0 0 1 1 *";
|
|
93960
|
+
if (t === "@monthly")
|
|
93961
|
+
return "0 0 1 * *";
|
|
93962
|
+
if (t === "@weekly")
|
|
93963
|
+
return "0 0 * * 0";
|
|
93964
|
+
if (t === "@daily" || t === "@midnight")
|
|
93965
|
+
return "0 0 * * *";
|
|
93966
|
+
if (t === "@hourly")
|
|
93967
|
+
return "0 * * * *";
|
|
93968
|
+
if (t === "@reboot")
|
|
93969
|
+
throw new TypeError("CronPattern: @reboot is not supported in this environment. This is an event-based trigger that requires system startup detection.");
|
|
93970
|
+
return e;
|
|
93971
|
+
}
|
|
93972
|
+
setNthWeekdayOfMonth(e, t) {
|
|
93973
|
+
if (typeof t != "number" && t.toUpperCase() === "L")
|
|
93974
|
+
this.dayOfWeek[e] = this.dayOfWeek[e] | 32;
|
|
93975
|
+
else if (t === 63)
|
|
93976
|
+
this.dayOfWeek[e] = 63;
|
|
93977
|
+
else if (t < 6 && t > 0)
|
|
93978
|
+
this.dayOfWeek[e] = this.dayOfWeek[e] | O[t - 1];
|
|
93979
|
+
else
|
|
93980
|
+
throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${t}, Type: ${typeof t}`);
|
|
93981
|
+
}
|
|
93982
|
+
};
|
|
93983
|
+
var P = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
93984
|
+
var f = [["month", "year", 0], ["day", "month", -1], ["hour", "day", 0], ["minute", "hour", 0], ["second", "minute", 0]];
|
|
93985
|
+
var m = class s {
|
|
93986
|
+
tz;
|
|
93987
|
+
ms;
|
|
93988
|
+
second;
|
|
93989
|
+
minute;
|
|
93990
|
+
hour;
|
|
93991
|
+
day;
|
|
93992
|
+
month;
|
|
93993
|
+
year;
|
|
93994
|
+
constructor(e, t) {
|
|
93995
|
+
if (this.tz = t, e && e instanceof Date)
|
|
93996
|
+
if (!isNaN(e))
|
|
93997
|
+
this.fromDate(e);
|
|
93998
|
+
else
|
|
93999
|
+
throw new TypeError("CronDate: Invalid date passed to CronDate constructor");
|
|
94000
|
+
else if (e == null)
|
|
94001
|
+
this.fromDate(new Date);
|
|
94002
|
+
else if (e && typeof e == "string")
|
|
94003
|
+
this.fromString(e);
|
|
94004
|
+
else if (e instanceof s)
|
|
94005
|
+
this.fromCronDate(e);
|
|
94006
|
+
else
|
|
94007
|
+
throw new TypeError("CronDate: Invalid type (" + typeof e + ") passed to CronDate constructor");
|
|
94008
|
+
}
|
|
94009
|
+
getLastDayOfMonth(e, t) {
|
|
94010
|
+
return t !== 1 ? P[t] : new Date(Date.UTC(e, t + 1, 0)).getUTCDate();
|
|
94011
|
+
}
|
|
94012
|
+
getLastWeekday(e, t) {
|
|
94013
|
+
let r = this.getLastDayOfMonth(e, t), i = new Date(Date.UTC(e, t, r)).getUTCDay();
|
|
94014
|
+
return i === 0 ? r - 2 : i === 6 ? r - 1 : r;
|
|
94015
|
+
}
|
|
94016
|
+
getNearestWeekday(e, t, r) {
|
|
94017
|
+
let n = this.getLastDayOfMonth(e, t);
|
|
94018
|
+
if (r > n)
|
|
94019
|
+
return -1;
|
|
94020
|
+
let a = new Date(Date.UTC(e, t, r)).getUTCDay();
|
|
94021
|
+
return a === 0 ? r === n ? r - 2 : r + 1 : a === 6 ? r === 1 ? r + 2 : r - 1 : r;
|
|
94022
|
+
}
|
|
94023
|
+
isNthWeekdayOfMonth(e, t, r, n) {
|
|
94024
|
+
let a = new Date(Date.UTC(e, t, r)).getUTCDay(), o = 0;
|
|
94025
|
+
for (let h = 1;h <= r; h++)
|
|
94026
|
+
new Date(Date.UTC(e, t, h)).getUTCDay() === a && o++;
|
|
94027
|
+
if (n & 63 && O[o - 1] & n)
|
|
94028
|
+
return true;
|
|
94029
|
+
if (n & 32) {
|
|
94030
|
+
let h = this.getLastDayOfMonth(e, t);
|
|
94031
|
+
for (let l = r + 1;l <= h; l++)
|
|
94032
|
+
if (new Date(Date.UTC(e, t, l)).getUTCDay() === a)
|
|
94033
|
+
return false;
|
|
94034
|
+
return true;
|
|
94035
|
+
}
|
|
94036
|
+
return false;
|
|
94037
|
+
}
|
|
94038
|
+
fromDate(e) {
|
|
94039
|
+
if (this.tz !== undefined)
|
|
94040
|
+
if (typeof this.tz == "number")
|
|
94041
|
+
this.ms = e.getUTCMilliseconds(), this.second = e.getUTCSeconds(), this.minute = e.getUTCMinutes() + this.tz, this.hour = e.getUTCHours(), this.day = e.getUTCDate(), this.month = e.getUTCMonth(), this.year = e.getUTCFullYear(), this.apply();
|
|
94042
|
+
else
|
|
94043
|
+
try {
|
|
94044
|
+
let t = g(e, this.tz);
|
|
94045
|
+
this.ms = e.getMilliseconds(), this.second = t.s, this.minute = t.i, this.hour = t.h, this.day = t.d, this.month = t.m - 1, this.year = t.y;
|
|
94046
|
+
} catch (t) {
|
|
94047
|
+
let r = t instanceof Error ? t.message : String(t);
|
|
94048
|
+
throw new TypeError(`CronDate: Failed to convert date to timezone '${this.tz}'. This may happen with invalid timezone names or dates. Original error: ${r}`);
|
|
94049
|
+
}
|
|
94050
|
+
else
|
|
94051
|
+
this.ms = e.getMilliseconds(), this.second = e.getSeconds(), this.minute = e.getMinutes(), this.hour = e.getHours(), this.day = e.getDate(), this.month = e.getMonth(), this.year = e.getFullYear();
|
|
94052
|
+
}
|
|
94053
|
+
fromCronDate(e) {
|
|
94054
|
+
this.tz = e.tz, this.year = e.year, this.month = e.month, this.day = e.day, this.hour = e.hour, this.minute = e.minute, this.second = e.second, this.ms = e.ms;
|
|
94055
|
+
}
|
|
94056
|
+
apply() {
|
|
94057
|
+
if (this.month > 11 || this.month < 0 || this.day > P[this.month] || this.day < 1 || this.hour > 59 || this.minute > 59 || this.second > 59 || this.hour < 0 || this.minute < 0 || this.second < 0) {
|
|
94058
|
+
let e = new Date(Date.UTC(this.year, this.month, this.day, this.hour, this.minute, this.second, this.ms));
|
|
94059
|
+
return this.ms = e.getUTCMilliseconds(), this.second = e.getUTCSeconds(), this.minute = e.getUTCMinutes(), this.hour = e.getUTCHours(), this.day = e.getUTCDate(), this.month = e.getUTCMonth(), this.year = e.getUTCFullYear(), true;
|
|
94060
|
+
} else
|
|
94061
|
+
return false;
|
|
94062
|
+
}
|
|
94063
|
+
fromString(e) {
|
|
94064
|
+
if (typeof this.tz == "number") {
|
|
94065
|
+
let t = v(e);
|
|
94066
|
+
this.ms = t.getUTCMilliseconds(), this.second = t.getUTCSeconds(), this.minute = t.getUTCMinutes(), this.hour = t.getUTCHours(), this.day = t.getUTCDate(), this.month = t.getUTCMonth(), this.year = t.getUTCFullYear(), this.apply();
|
|
94067
|
+
} else
|
|
94068
|
+
return this.fromDate(v(e, this.tz));
|
|
94069
|
+
}
|
|
94070
|
+
findNext(e, t, r, n) {
|
|
94071
|
+
return this._findMatch(e, t, r, n, 1);
|
|
94072
|
+
}
|
|
94073
|
+
_findMatch(e, t, r, n, i) {
|
|
94074
|
+
let a = this[t], o;
|
|
94075
|
+
r.lastDayOfMonth && (o = this.getLastDayOfMonth(this.year, this.month));
|
|
94076
|
+
let h = !r.starDOW && t == "day" ? new Date(Date.UTC(this.year, this.month, 1, 0, 0, 0, 0)).getUTCDay() : undefined, l = this[t] + n, y = i === 1 ? (u) => u < r[t].length : (u) => u >= 0;
|
|
94077
|
+
for (let u = l;y(u); u += i) {
|
|
94078
|
+
let d = r[t][u];
|
|
94079
|
+
if (t === "day" && !d) {
|
|
94080
|
+
for (let c = 0;c < r.nearestWeekdays.length; c++)
|
|
94081
|
+
if (r.nearestWeekdays[c]) {
|
|
94082
|
+
let M = this.getNearestWeekday(this.year, this.month, c - n);
|
|
94083
|
+
if (M === -1)
|
|
94084
|
+
continue;
|
|
94085
|
+
if (M === u - n) {
|
|
94086
|
+
d = 1;
|
|
94087
|
+
break;
|
|
94088
|
+
}
|
|
94089
|
+
}
|
|
94090
|
+
}
|
|
94091
|
+
if (t === "day" && r.lastWeekday) {
|
|
94092
|
+
let c = this.getLastWeekday(this.year, this.month);
|
|
94093
|
+
u - n === c && (d = 1);
|
|
94094
|
+
}
|
|
94095
|
+
if (t === "day" && r.lastDayOfMonth && u - n == o && (d = 1), t === "day" && !r.starDOW) {
|
|
94096
|
+
let c = r.dayOfWeek[(h + (u - n - 1)) % 7];
|
|
94097
|
+
if (c && c & 63)
|
|
94098
|
+
c = this.isNthWeekdayOfMonth(this.year, this.month, u - n, c) ? 1 : 0;
|
|
94099
|
+
else if (c)
|
|
94100
|
+
throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${c}`);
|
|
94101
|
+
r.useAndLogic ? d = d && c : !e.domAndDow && !r.starDOM ? d = d || c : d = d && c;
|
|
94102
|
+
}
|
|
94103
|
+
if (d)
|
|
94104
|
+
return this[t] = u - n, a !== this[t] ? 2 : 1;
|
|
94105
|
+
}
|
|
94106
|
+
return 3;
|
|
94107
|
+
}
|
|
94108
|
+
recurse(e, t, r) {
|
|
94109
|
+
if (r === 0 && !e.starYear) {
|
|
94110
|
+
if (this.year >= 0 && this.year < e.year.length && e.year[this.year] === 0) {
|
|
94111
|
+
let i = -1;
|
|
94112
|
+
for (let a = this.year + 1;a < e.year.length && a < 1e4; a++)
|
|
94113
|
+
if (e.year[a] === 1) {
|
|
94114
|
+
i = a;
|
|
94115
|
+
break;
|
|
94116
|
+
}
|
|
94117
|
+
if (i === -1)
|
|
94118
|
+
return null;
|
|
94119
|
+
this.year = i, this.month = 0, this.day = 1, this.hour = 0, this.minute = 0, this.second = 0, this.ms = 0;
|
|
94120
|
+
}
|
|
94121
|
+
if (this.year >= 1e4)
|
|
94122
|
+
return null;
|
|
94123
|
+
}
|
|
94124
|
+
let n = this.findNext(t, f[r][0], e, f[r][2]);
|
|
94125
|
+
if (n > 1) {
|
|
94126
|
+
let i = r + 1;
|
|
94127
|
+
for (;i < f.length; )
|
|
94128
|
+
this[f[i][0]] = -f[i][2], i++;
|
|
94129
|
+
if (n === 3) {
|
|
94130
|
+
if (this[f[r][1]]++, this[f[r][0]] = -f[r][2], this.apply(), r === 0 && !e.starYear) {
|
|
94131
|
+
for (;this.year >= 0 && this.year < e.year.length && e.year[this.year] === 0 && this.year < 1e4; )
|
|
94132
|
+
this.year++;
|
|
94133
|
+
if (this.year >= 1e4 || this.year >= e.year.length)
|
|
94134
|
+
return null;
|
|
94135
|
+
}
|
|
94136
|
+
return this.recurse(e, t, 0);
|
|
94137
|
+
} else if (this.apply())
|
|
94138
|
+
return this.recurse(e, t, r - 1);
|
|
94139
|
+
}
|
|
94140
|
+
return r += 1, r >= f.length ? this : (e.starYear ? this.year >= 3000 : this.year >= 1e4) ? null : this.recurse(e, t, r);
|
|
94141
|
+
}
|
|
94142
|
+
increment(e, t, r) {
|
|
94143
|
+
return this.second += t.interval !== undefined && t.interval > 1 && r ? t.interval : 1, this.ms = 0, this.apply(), this.recurse(e, t, 0);
|
|
94144
|
+
}
|
|
94145
|
+
decrement(e, t) {
|
|
94146
|
+
return this.second -= t.interval !== undefined && t.interval > 1 ? t.interval : 1, this.ms = 0, this.apply(), this.recurseBackward(e, t, 0, 0);
|
|
94147
|
+
}
|
|
94148
|
+
recurseBackward(e, t, r, n = 0) {
|
|
94149
|
+
if (n > 1e4)
|
|
94150
|
+
return null;
|
|
94151
|
+
if (r === 0 && !e.starYear) {
|
|
94152
|
+
if (this.year >= 0 && this.year < e.year.length && e.year[this.year] === 0) {
|
|
94153
|
+
let a = -1;
|
|
94154
|
+
for (let o = this.year - 1;o >= 0; o--)
|
|
94155
|
+
if (e.year[o] === 1) {
|
|
94156
|
+
a = o;
|
|
94157
|
+
break;
|
|
94158
|
+
}
|
|
94159
|
+
if (a === -1)
|
|
94160
|
+
return null;
|
|
94161
|
+
this.year = a, this.month = 11, this.day = 31, this.hour = 23, this.minute = 59, this.second = 59, this.ms = 0;
|
|
94162
|
+
}
|
|
94163
|
+
if (this.year < 0)
|
|
94164
|
+
return null;
|
|
94165
|
+
}
|
|
94166
|
+
let i = this.findPrevious(t, f[r][0], e, f[r][2]);
|
|
94167
|
+
if (i > 1) {
|
|
94168
|
+
let a = r + 1;
|
|
94169
|
+
for (;a < f.length; ) {
|
|
94170
|
+
let o = f[a][0], h = f[a][2], l = this.getMaxPatternValue(o, e, h);
|
|
94171
|
+
this[o] = l, a++;
|
|
94172
|
+
}
|
|
94173
|
+
if (i === 3) {
|
|
94174
|
+
if (this[f[r][1]]--, r === 0) {
|
|
94175
|
+
let y = this.getLastDayOfMonth(this.year, this.month);
|
|
94176
|
+
this.day > y && (this.day = y);
|
|
94177
|
+
}
|
|
94178
|
+
if (r === 1)
|
|
94179
|
+
if (this.day <= 0)
|
|
94180
|
+
this.day = 1;
|
|
94181
|
+
else {
|
|
94182
|
+
let y = this.year, u = this.month;
|
|
94183
|
+
for (;u < 0; )
|
|
94184
|
+
u += 12, y--;
|
|
94185
|
+
for (;u > 11; )
|
|
94186
|
+
u -= 12, y++;
|
|
94187
|
+
let d = u !== 1 ? P[u] : new Date(Date.UTC(y, u + 1, 0)).getUTCDate();
|
|
94188
|
+
this.day > d && (this.day = d);
|
|
94189
|
+
}
|
|
94190
|
+
this.apply();
|
|
94191
|
+
let o = f[r][0], h = f[r][2], l = this.getMaxPatternValue(o, e, h);
|
|
94192
|
+
if (o === "day") {
|
|
94193
|
+
let y = this.getLastDayOfMonth(this.year, this.month);
|
|
94194
|
+
this[o] = Math.min(l, y);
|
|
94195
|
+
} else
|
|
94196
|
+
this[o] = l;
|
|
94197
|
+
if (this.apply(), r === 0) {
|
|
94198
|
+
let y = f[1][2], u = this.getMaxPatternValue("day", e, y), d = this.getLastDayOfMonth(this.year, this.month), c = Math.min(u, d);
|
|
94199
|
+
c !== this.day && (this.day = c, this.hour = this.getMaxPatternValue("hour", e, f[2][2]), this.minute = this.getMaxPatternValue("minute", e, f[3][2]), this.second = this.getMaxPatternValue("second", e, f[4][2]));
|
|
94200
|
+
}
|
|
94201
|
+
if (r === 0 && !e.starYear) {
|
|
94202
|
+
for (;this.year >= 0 && this.year < e.year.length && e.year[this.year] === 0; )
|
|
94203
|
+
this.year--;
|
|
94204
|
+
if (this.year < 0)
|
|
94205
|
+
return null;
|
|
94206
|
+
}
|
|
94207
|
+
return this.recurseBackward(e, t, 0, n + 1);
|
|
94208
|
+
} else if (this.apply())
|
|
94209
|
+
return this.recurseBackward(e, t, r - 1, n + 1);
|
|
94210
|
+
}
|
|
94211
|
+
return r += 1, r >= f.length ? this : this.year < 0 ? null : this.recurseBackward(e, t, r, n + 1);
|
|
94212
|
+
}
|
|
94213
|
+
getMaxPatternValue(e, t, r) {
|
|
94214
|
+
if (e === "day" && t.lastDayOfMonth)
|
|
94215
|
+
return this.getLastDayOfMonth(this.year, this.month);
|
|
94216
|
+
if (e === "day" && !t.starDOW)
|
|
94217
|
+
return this.getLastDayOfMonth(this.year, this.month);
|
|
94218
|
+
for (let n = t[e].length - 1;n >= 0; n--)
|
|
94219
|
+
if (t[e][n])
|
|
94220
|
+
return n - r;
|
|
94221
|
+
return t[e].length - 1 - r;
|
|
94222
|
+
}
|
|
94223
|
+
findPrevious(e, t, r, n) {
|
|
94224
|
+
return this._findMatch(e, t, r, n, -1);
|
|
94225
|
+
}
|
|
94226
|
+
getDate(e) {
|
|
94227
|
+
return e || this.tz === undefined ? new Date(this.year, this.month, this.day, this.hour, this.minute, this.second, this.ms) : typeof this.tz == "number" ? new Date(Date.UTC(this.year, this.month, this.day, this.hour, this.minute - this.tz, this.second, this.ms)) : k(b(this.year, this.month + 1, this.day, this.hour, this.minute, this.second, this.tz), false);
|
|
94228
|
+
}
|
|
94229
|
+
getTime() {
|
|
94230
|
+
return this.getDate(false).getTime();
|
|
94231
|
+
}
|
|
94232
|
+
match(e, t) {
|
|
94233
|
+
if (!e.starYear && (this.year < 0 || this.year >= e.year.length || e.year[this.year] === 0))
|
|
94234
|
+
return false;
|
|
94235
|
+
for (let r = 0;r < f.length; r++) {
|
|
94236
|
+
let n = f[r][0], i = f[r][2], a = this[n];
|
|
94237
|
+
if (a + i < 0 || a + i >= e[n].length)
|
|
94238
|
+
return false;
|
|
94239
|
+
let o = e[n][a + i];
|
|
94240
|
+
if (n === "day") {
|
|
94241
|
+
if (!o) {
|
|
94242
|
+
for (let h = 0;h < e.nearestWeekdays.length; h++)
|
|
94243
|
+
if (e.nearestWeekdays[h]) {
|
|
94244
|
+
let l = this.getNearestWeekday(this.year, this.month, h - i);
|
|
94245
|
+
if (l !== -1 && l === a) {
|
|
94246
|
+
o = 1;
|
|
94247
|
+
break;
|
|
94248
|
+
}
|
|
94249
|
+
}
|
|
94250
|
+
}
|
|
94251
|
+
if (e.lastWeekday) {
|
|
94252
|
+
let h = this.getLastWeekday(this.year, this.month);
|
|
94253
|
+
a === h && (o = 1);
|
|
94254
|
+
}
|
|
94255
|
+
if (e.lastDayOfMonth) {
|
|
94256
|
+
let h = this.getLastDayOfMonth(this.year, this.month);
|
|
94257
|
+
a === h && (o = 1);
|
|
94258
|
+
}
|
|
94259
|
+
if (!e.starDOW) {
|
|
94260
|
+
let h = new Date(Date.UTC(this.year, this.month, 1, 0, 0, 0, 0)).getUTCDay(), l = e.dayOfWeek[(h + (a - 1)) % 7];
|
|
94261
|
+
l && l & 63 && (l = this.isNthWeekdayOfMonth(this.year, this.month, a, l) ? 1 : 0), e.useAndLogic ? o = o && l : !t.domAndDow && !e.starDOM ? o = o || l : o = o && l;
|
|
94262
|
+
}
|
|
94263
|
+
}
|
|
94264
|
+
if (!o)
|
|
94265
|
+
return false;
|
|
94266
|
+
}
|
|
94267
|
+
return true;
|
|
94268
|
+
}
|
|
94269
|
+
};
|
|
94270
|
+
function R(s) {
|
|
94271
|
+
if (s === undefined && (s = {}), delete s.name, s.legacyMode !== undefined && s.domAndDow === undefined ? s.domAndDow = !s.legacyMode : s.domAndDow === undefined && (s.domAndDow = false), s.legacyMode = !s.domAndDow, s.paused = s.paused === undefined ? false : s.paused, s.maxRuns = s.maxRuns === undefined ? 1 / 0 : s.maxRuns, s.catch = s.catch === undefined ? false : s.catch, s.interval = s.interval === undefined ? 0 : parseInt(s.interval.toString(), 10), s.utcOffset = s.utcOffset === undefined ? undefined : parseInt(s.utcOffset.toString(), 10), s.dayOffset = s.dayOffset === undefined ? 0 : parseInt(s.dayOffset.toString(), 10), s.unref = s.unref === undefined ? false : s.unref, s.mode = s.mode === undefined ? "auto" : s.mode, s.alternativeWeekdays = s.alternativeWeekdays === undefined ? false : s.alternativeWeekdays, s.sloppyRanges = s.sloppyRanges === undefined ? false : s.sloppyRanges, !["auto", "5-part", "6-part", "7-part", "5-or-6-parts", "6-or-7-parts"].includes(s.mode))
|
|
94272
|
+
throw new Error("CronOptions: mode must be one of 'auto', '5-part', '6-part', '7-part', '5-or-6-parts', or '6-or-7-parts'.");
|
|
94273
|
+
if (s.startAt && (s.startAt = new m(s.startAt, s.timezone)), s.stopAt && (s.stopAt = new m(s.stopAt, s.timezone)), s.interval !== null) {
|
|
94274
|
+
if (isNaN(s.interval))
|
|
94275
|
+
throw new Error("CronOptions: Supplied value for interval is not a number");
|
|
94276
|
+
if (s.interval < 0)
|
|
94277
|
+
throw new Error("CronOptions: Supplied value for interval can not be negative");
|
|
94278
|
+
}
|
|
94279
|
+
if (s.utcOffset !== undefined) {
|
|
94280
|
+
if (isNaN(s.utcOffset))
|
|
94281
|
+
throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");
|
|
94282
|
+
if (s.utcOffset < -870 || s.utcOffset > 870)
|
|
94283
|
+
throw new Error("CronOptions: utcOffset out of bounds.");
|
|
94284
|
+
if (s.utcOffset !== undefined && s.timezone)
|
|
94285
|
+
throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.");
|
|
94286
|
+
}
|
|
94287
|
+
if (s.unref !== true && s.unref !== false)
|
|
94288
|
+
throw new Error("CronOptions: Unref should be either true, false or undefined(false).");
|
|
94289
|
+
if (s.dayOffset !== undefined && s.dayOffset !== 0 && isNaN(s.dayOffset))
|
|
94290
|
+
throw new Error("CronOptions: Invalid value passed for dayOffset, should be a number representing days to offset.");
|
|
94291
|
+
return s;
|
|
94292
|
+
}
|
|
94293
|
+
function p(s) {
|
|
94294
|
+
return Object.prototype.toString.call(s) === "[object Function]" || typeof s == "function" || s instanceof Function;
|
|
94295
|
+
}
|
|
94296
|
+
function _(s) {
|
|
94297
|
+
return p(s);
|
|
94298
|
+
}
|
|
94299
|
+
function x(s) {
|
|
94300
|
+
typeof Deno < "u" && typeof Deno.unrefTimer < "u" ? Deno.unrefTimer(s) : s && typeof s.unref < "u" && s.unref();
|
|
94301
|
+
}
|
|
94302
|
+
var W = 30 * 1000;
|
|
94303
|
+
var w = [];
|
|
94304
|
+
var E = class {
|
|
94305
|
+
name;
|
|
94306
|
+
options;
|
|
94307
|
+
_states;
|
|
94308
|
+
fn;
|
|
94309
|
+
getTz() {
|
|
94310
|
+
return this.options.timezone || this.options.utcOffset;
|
|
94311
|
+
}
|
|
94312
|
+
applyDayOffset(e) {
|
|
94313
|
+
if (this.options.dayOffset !== undefined && this.options.dayOffset !== 0) {
|
|
94314
|
+
let t = this.options.dayOffset * 24 * 60 * 60 * 1000;
|
|
94315
|
+
return new Date(e.getTime() + t);
|
|
94316
|
+
}
|
|
94317
|
+
return e;
|
|
94318
|
+
}
|
|
94319
|
+
constructor(e, t, r) {
|
|
94320
|
+
let n, i;
|
|
94321
|
+
if (p(t))
|
|
94322
|
+
i = t;
|
|
94323
|
+
else if (typeof t == "object")
|
|
94324
|
+
n = t;
|
|
94325
|
+
else if (t !== undefined)
|
|
94326
|
+
throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");
|
|
94327
|
+
if (p(r))
|
|
94328
|
+
i = r;
|
|
94329
|
+
else if (typeof r == "object")
|
|
94330
|
+
n = r;
|
|
94331
|
+
else if (r !== undefined)
|
|
94332
|
+
throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");
|
|
94333
|
+
if (this.name = n?.name, this.options = R(n), this._states = { kill: false, blocking: false, previousRun: undefined, currentRun: undefined, once: undefined, currentTimeout: undefined, maxRuns: n ? n.maxRuns : undefined, paused: n ? n.paused : false, pattern: new C("* * * * *", undefined, { mode: "auto" }) }, e && (e instanceof Date || typeof e == "string" && e.indexOf(":") > 0) ? this._states.once = new m(e, this.getTz()) : this._states.pattern = new C(e, this.options.timezone, { mode: this.options.mode, alternativeWeekdays: this.options.alternativeWeekdays, sloppyRanges: this.options.sloppyRanges }), this.name) {
|
|
94334
|
+
if (w.find((o) => o.name === this.name))
|
|
94335
|
+
throw new Error("Cron: Tried to initialize new named job '" + this.name + "', but name already taken.");
|
|
94336
|
+
w.push(this);
|
|
94337
|
+
}
|
|
94338
|
+
return i !== undefined && _(i) && (this.fn = i, this.schedule()), this;
|
|
94339
|
+
}
|
|
94340
|
+
nextRun(e) {
|
|
94341
|
+
let t = this._next(e);
|
|
94342
|
+
return t ? this.applyDayOffset(t.getDate(false)) : null;
|
|
94343
|
+
}
|
|
94344
|
+
nextRuns(e, t) {
|
|
94345
|
+
this._states.maxRuns !== undefined && e > this._states.maxRuns && (e = this._states.maxRuns);
|
|
94346
|
+
let r = t || this._states.currentRun || undefined;
|
|
94347
|
+
return this._enumerateRuns(e, r, "next");
|
|
94348
|
+
}
|
|
94349
|
+
previousRuns(e, t) {
|
|
94350
|
+
return this._enumerateRuns(e, t || undefined, "previous");
|
|
94351
|
+
}
|
|
94352
|
+
_enumerateRuns(e, t, r) {
|
|
94353
|
+
let n = [], i = t ? new m(t, this.getTz()) : null, a = r === "next" ? this._next : this._previous;
|
|
94354
|
+
for (;e--; ) {
|
|
94355
|
+
let o = a.call(this, i);
|
|
94356
|
+
if (!o)
|
|
94357
|
+
break;
|
|
94358
|
+
let h = o.getDate(false);
|
|
94359
|
+
n.push(this.applyDayOffset(h)), i = o;
|
|
94360
|
+
}
|
|
94361
|
+
return n;
|
|
94362
|
+
}
|
|
94363
|
+
match(e) {
|
|
94364
|
+
if (this._states.once) {
|
|
94365
|
+
let r = new m(e, this.getTz());
|
|
94366
|
+
r.ms = 0;
|
|
94367
|
+
let n = new m(this._states.once, this.getTz());
|
|
94368
|
+
return n.ms = 0, r.getTime() === n.getTime();
|
|
94369
|
+
}
|
|
94370
|
+
let t = new m(e, this.getTz());
|
|
94371
|
+
return t.ms = 0, t.match(this._states.pattern, this.options);
|
|
94372
|
+
}
|
|
94373
|
+
getPattern() {
|
|
94374
|
+
if (!this._states.once)
|
|
94375
|
+
return this._states.pattern ? this._states.pattern.pattern : undefined;
|
|
94376
|
+
}
|
|
94377
|
+
getOnce() {
|
|
94378
|
+
return this._states.once ? this._states.once.getDate() : null;
|
|
94379
|
+
}
|
|
94380
|
+
isRunning() {
|
|
94381
|
+
let e = this.nextRun(this._states.currentRun), t = !this._states.paused, r = this.fn !== undefined, n = !this._states.kill;
|
|
94382
|
+
return t && r && n && e !== null;
|
|
94383
|
+
}
|
|
94384
|
+
isStopped() {
|
|
94385
|
+
return this._states.kill;
|
|
94386
|
+
}
|
|
94387
|
+
isBusy() {
|
|
94388
|
+
return this._states.blocking;
|
|
94389
|
+
}
|
|
94390
|
+
currentRun() {
|
|
94391
|
+
return this._states.currentRun ? this._states.currentRun.getDate() : null;
|
|
94392
|
+
}
|
|
94393
|
+
previousRun() {
|
|
94394
|
+
return this._states.previousRun ? this._states.previousRun.getDate() : null;
|
|
94395
|
+
}
|
|
94396
|
+
msToNext(e) {
|
|
94397
|
+
let t = this._next(e);
|
|
94398
|
+
return t ? e instanceof m || e instanceof Date ? t.getTime() - e.getTime() : t.getTime() - new m(e).getTime() : null;
|
|
94399
|
+
}
|
|
94400
|
+
stop() {
|
|
94401
|
+
this._states.kill = true, this._states.currentTimeout && clearTimeout(this._states.currentTimeout);
|
|
94402
|
+
let e = w.indexOf(this);
|
|
94403
|
+
e >= 0 && w.splice(e, 1);
|
|
94404
|
+
}
|
|
94405
|
+
pause() {
|
|
94406
|
+
return this._states.paused = true, !this._states.kill;
|
|
94407
|
+
}
|
|
94408
|
+
resume() {
|
|
94409
|
+
return this._states.paused = false, !this._states.kill;
|
|
94410
|
+
}
|
|
94411
|
+
schedule(e) {
|
|
94412
|
+
if (e && this.fn)
|
|
94413
|
+
throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");
|
|
94414
|
+
e && (this.fn = e);
|
|
94415
|
+
let t = this.msToNext(), r = this.nextRun(this._states.currentRun);
|
|
94416
|
+
return t == null || isNaN(t) || r === null ? this : (t > W && (t = W), this._states.currentTimeout = setTimeout(() => this._checkTrigger(r), t), this._states.currentTimeout && this.options.unref && x(this._states.currentTimeout), this);
|
|
94417
|
+
}
|
|
94418
|
+
async _trigger(e) {
|
|
94419
|
+
this._states.blocking = true, this._states.currentRun = new m(undefined, this.getTz());
|
|
94420
|
+
try {
|
|
94421
|
+
if (this.options.catch)
|
|
94422
|
+
try {
|
|
94423
|
+
this.fn !== undefined && await this.fn(this, this.options.context);
|
|
94424
|
+
} catch (t) {
|
|
94425
|
+
if (p(this.options.catch))
|
|
94426
|
+
try {
|
|
94427
|
+
this.options.catch(t, this);
|
|
94428
|
+
} catch {}
|
|
94429
|
+
}
|
|
94430
|
+
else
|
|
94431
|
+
this.fn !== undefined && await this.fn(this, this.options.context);
|
|
94432
|
+
} finally {
|
|
94433
|
+
this._states.previousRun = new m(e, this.getTz()), this._states.blocking = false;
|
|
94434
|
+
}
|
|
94435
|
+
}
|
|
94436
|
+
async trigger() {
|
|
94437
|
+
await this._trigger();
|
|
94438
|
+
}
|
|
94439
|
+
runsLeft() {
|
|
94440
|
+
return this._states.maxRuns;
|
|
94441
|
+
}
|
|
94442
|
+
_checkTrigger(e) {
|
|
94443
|
+
let t = new Date, r = !this._states.paused && t.getTime() >= e.getTime(), n = this._states.blocking && this.options.protect;
|
|
94444
|
+
r && !n ? (this._states.maxRuns !== undefined && this._states.maxRuns--, this._trigger()) : r && n && p(this.options.protect) && setTimeout(() => this.options.protect(this), 0), this.schedule();
|
|
94445
|
+
}
|
|
94446
|
+
_next(e) {
|
|
94447
|
+
let t = !!(e || this._states.currentRun), r = false;
|
|
94448
|
+
!e && this.options.startAt && this.options.interval && ([e, t] = this._calculatePreviousRun(e, t), r = !e), e = new m(e, this.getTz()), this.options.startAt && e && e.getTime() < this.options.startAt.getTime() && (e = this.options.startAt);
|
|
94449
|
+
let n = this._states.once || new m(e, this.getTz());
|
|
94450
|
+
return !r && n !== this._states.once && (n = n.increment(this._states.pattern, this.options, t)), this._states.once && this._states.once.getTime() <= e.getTime() || n === null || this._states.maxRuns !== undefined && this._states.maxRuns <= 0 || this._states.kill || this.options.stopAt && n.getTime() >= this.options.stopAt.getTime() ? null : n;
|
|
94451
|
+
}
|
|
94452
|
+
_previous(e) {
|
|
94453
|
+
let t = new m(e, this.getTz());
|
|
94454
|
+
this.options.stopAt && t.getTime() > this.options.stopAt.getTime() && (t = this.options.stopAt);
|
|
94455
|
+
let r = new m(t, this.getTz());
|
|
94456
|
+
return this._states.once ? this._states.once.getTime() < t.getTime() ? this._states.once : null : (r = r.decrement(this._states.pattern, this.options), r === null || this.options.startAt && r.getTime() < this.options.startAt.getTime() ? null : r);
|
|
94457
|
+
}
|
|
94458
|
+
_calculatePreviousRun(e, t) {
|
|
94459
|
+
let r = new m(undefined, this.getTz()), n = e;
|
|
94460
|
+
if (this.options.startAt.getTime() <= r.getTime()) {
|
|
94461
|
+
n = this.options.startAt;
|
|
94462
|
+
let i = n.getTime() + this.options.interval * 1000;
|
|
94463
|
+
for (;i <= r.getTime(); )
|
|
94464
|
+
n = new m(n, this.getTz()).increment(this._states.pattern, this.options, true), i = n.getTime() + this.options.interval * 1000;
|
|
94465
|
+
t = true;
|
|
94466
|
+
}
|
|
94467
|
+
return n === null && (n = undefined), [n, t];
|
|
94468
|
+
}
|
|
94469
|
+
};
|
|
94470
|
+
|
|
94471
|
+
// ../toml/dist/cron-schedule.js
|
|
94472
|
+
function cronSchedulePolicy(schedule) {
|
|
94473
|
+
let cron;
|
|
94474
|
+
try {
|
|
94475
|
+
cron = new E(schedule, { timezone: "UTC" });
|
|
94476
|
+
if (cron.getOnce())
|
|
94477
|
+
return "valid";
|
|
94478
|
+
const seconds = new C(schedule, "UTC").second.filter((value) => value !== 0).length;
|
|
94479
|
+
return seconds > 1 ? "subminute" : seconds === 1 ? "valid" : "invalid";
|
|
94480
|
+
} catch {
|
|
94481
|
+
return "invalid";
|
|
94482
|
+
} finally {
|
|
94483
|
+
cron?.stop();
|
|
94484
|
+
}
|
|
94485
|
+
}
|
|
93562
94486
|
// ../toml/dist/errors.js
|
|
93563
94487
|
class PercherTomlError extends Error {
|
|
93564
94488
|
code;
|
|
@@ -93590,14 +94514,7 @@ function generateName(input) {
|
|
|
93590
94514
|
}
|
|
93591
94515
|
return result;
|
|
93592
94516
|
}
|
|
93593
|
-
//
|
|
93594
|
-
import { readFile } from "node:fs/promises";
|
|
93595
|
-
|
|
93596
|
-
// ../../../../../../../../../../../home/matti/percher-ci-b2/node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js
|
|
93597
|
-
var $parse = require_parse();
|
|
93598
|
-
var $stringify = require_stringify();
|
|
93599
|
-
|
|
93600
|
-
// ../../../../../../../../../../../home/matti/percher-ci-b2/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
94517
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
93601
94518
|
var NEVER = Object.freeze({
|
|
93602
94519
|
status: "aborted"
|
|
93603
94520
|
});
|
|
@@ -93673,7 +94590,7 @@ function config(newConfig) {
|
|
|
93673
94590
|
Object.assign(globalConfig, newConfig);
|
|
93674
94591
|
return globalConfig;
|
|
93675
94592
|
}
|
|
93676
|
-
//
|
|
94593
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
93677
94594
|
function getEnumValues(entries) {
|
|
93678
94595
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
93679
94596
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -94096,7 +95013,7 @@ function issue(...args) {
|
|
|
94096
95013
|
return { ...iss };
|
|
94097
95014
|
}
|
|
94098
95015
|
|
|
94099
|
-
//
|
|
95016
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
94100
95017
|
var initializer = (inst, def) => {
|
|
94101
95018
|
inst.name = "$ZodError";
|
|
94102
95019
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -94162,7 +95079,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
94162
95079
|
return fieldErrors;
|
|
94163
95080
|
}
|
|
94164
95081
|
|
|
94165
|
-
//
|
|
95082
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
94166
95083
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
94167
95084
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
94168
95085
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -94239,7 +95156,7 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
94239
95156
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
94240
95157
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
94241
95158
|
};
|
|
94242
|
-
//
|
|
95159
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
94243
95160
|
var cuid = /^[cC][^\s-]{8,}$/;
|
|
94244
95161
|
var cuid2 = /^[0-9a-z]+$/;
|
|
94245
95162
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -94295,7 +95212,7 @@ var boolean = /^(?:true|false)$/i;
|
|
|
94295
95212
|
var lowercase = /^[^A-Z]*$/;
|
|
94296
95213
|
var uppercase = /^[^a-z]*$/;
|
|
94297
95214
|
|
|
94298
|
-
//
|
|
95215
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
94299
95216
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
94300
95217
|
var _a;
|
|
94301
95218
|
inst._zod ?? (inst._zod = {});
|
|
@@ -94684,7 +95601,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
94684
95601
|
};
|
|
94685
95602
|
});
|
|
94686
95603
|
|
|
94687
|
-
//
|
|
95604
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
94688
95605
|
class Doc {
|
|
94689
95606
|
constructor(args = []) {
|
|
94690
95607
|
this.content = [];
|
|
@@ -94722,14 +95639,14 @@ class Doc {
|
|
|
94722
95639
|
}
|
|
94723
95640
|
}
|
|
94724
95641
|
|
|
94725
|
-
//
|
|
95642
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
94726
95643
|
var version = {
|
|
94727
95644
|
major: 4,
|
|
94728
95645
|
minor: 3,
|
|
94729
95646
|
patch: 6
|
|
94730
95647
|
};
|
|
94731
95648
|
|
|
94732
|
-
//
|
|
95649
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
94733
95650
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
94734
95651
|
var _a;
|
|
94735
95652
|
inst ?? (inst = {});
|
|
@@ -96031,7 +96948,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
96031
96948
|
payload.issues.push(issue(_iss));
|
|
96032
96949
|
}
|
|
96033
96950
|
}
|
|
96034
|
-
//
|
|
96951
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
96035
96952
|
var error = () => {
|
|
96036
96953
|
const Sizable = {
|
|
96037
96954
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -96137,7 +97054,7 @@ function en_default() {
|
|
|
96137
97054
|
localeError: error()
|
|
96138
97055
|
};
|
|
96139
97056
|
}
|
|
96140
|
-
//
|
|
97057
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
96141
97058
|
var _a;
|
|
96142
97059
|
var $output = Symbol("ZodOutput");
|
|
96143
97060
|
var $input = Symbol("ZodInput");
|
|
@@ -96187,7 +97104,7 @@ function registry() {
|
|
|
96187
97104
|
}
|
|
96188
97105
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
96189
97106
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
96190
|
-
//
|
|
97107
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
96191
97108
|
function _string(Class, params) {
|
|
96192
97109
|
return new Class({
|
|
96193
97110
|
type: "string",
|
|
@@ -96636,7 +97553,7 @@ function _check(fn, params) {
|
|
|
96636
97553
|
ch._zod.check = fn;
|
|
96637
97554
|
return ch;
|
|
96638
97555
|
}
|
|
96639
|
-
//
|
|
97556
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
96640
97557
|
function initializeContext(params) {
|
|
96641
97558
|
let target = params?.target ?? "draft-2020-12";
|
|
96642
97559
|
if (target === "draft-4")
|
|
@@ -96981,7 +97898,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
96981
97898
|
extractDefs(ctx, schema);
|
|
96982
97899
|
return finalize(ctx, schema);
|
|
96983
97900
|
};
|
|
96984
|
-
//
|
|
97901
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
96985
97902
|
var formatMap = {
|
|
96986
97903
|
guid: "uuid",
|
|
96987
97904
|
url: "uri",
|
|
@@ -97307,7 +98224,7 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
97307
98224
|
const seen = ctx.seen.get(schema);
|
|
97308
98225
|
seen.ref = def.innerType;
|
|
97309
98226
|
};
|
|
97310
|
-
//
|
|
98227
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
97311
98228
|
var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
97312
98229
|
$ZodISODateTime.init(inst, def);
|
|
97313
98230
|
ZodStringFormat.init(inst, def);
|
|
@@ -97337,7 +98254,7 @@ function duration2(params) {
|
|
|
97337
98254
|
return _isoDuration(ZodISODuration, params);
|
|
97338
98255
|
}
|
|
97339
98256
|
|
|
97340
|
-
//
|
|
98257
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
97341
98258
|
var initializer2 = (inst, issues) => {
|
|
97342
98259
|
$ZodError.init(inst, issues);
|
|
97343
98260
|
inst.name = "ZodError";
|
|
@@ -97372,7 +98289,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
97372
98289
|
Parent: Error
|
|
97373
98290
|
});
|
|
97374
98291
|
|
|
97375
|
-
//
|
|
98292
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
97376
98293
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
97377
98294
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
97378
98295
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -97386,7 +98303,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
97386
98303
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
97387
98304
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
97388
98305
|
|
|
97389
|
-
//
|
|
98306
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
97390
98307
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
97391
98308
|
$ZodType.init(inst, def);
|
|
97392
98309
|
Object.assign(inst["~standard"], {
|
|
@@ -97991,7 +98908,7 @@ function refine(fn, _params = {}) {
|
|
|
97991
98908
|
function superRefine(fn) {
|
|
97992
98909
|
return _superRefine(fn);
|
|
97993
98910
|
}
|
|
97994
|
-
//
|
|
98911
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
97995
98912
|
var ZodIssueCode = {
|
|
97996
98913
|
invalid_type: "invalid_type",
|
|
97997
98914
|
too_big: "too_big",
|
|
@@ -98007,8 +98924,81 @@ var ZodIssueCode = {
|
|
|
98007
98924
|
};
|
|
98008
98925
|
var ZodFirstPartyTypeKind;
|
|
98009
98926
|
(function(ZodFirstPartyTypeKind) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
98010
|
-
//
|
|
98927
|
+
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
98011
98928
|
config(en_default());
|
|
98929
|
+
// ../toml/dist/mcp-schema.js
|
|
98930
|
+
var identifier = string2().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/);
|
|
98931
|
+
var collectionId = string2().regex(/^[A-Za-z0-9_]{1,100}$/);
|
|
98932
|
+
var httpsUrl = string2().max(2048).refine((value) => {
|
|
98933
|
+
try {
|
|
98934
|
+
const url = new URL(value);
|
|
98935
|
+
return url.protocol === "https:" && !url.username && !url.password;
|
|
98936
|
+
} catch {
|
|
98937
|
+
return false;
|
|
98938
|
+
}
|
|
98939
|
+
}, "must be an HTTPS URL without credentials");
|
|
98940
|
+
var tool = object({
|
|
98941
|
+
name: identifier,
|
|
98942
|
+
auth_collection_id: collectionId,
|
|
98943
|
+
collection_id: collectionId,
|
|
98944
|
+
owner_field: identifier,
|
|
98945
|
+
fields: array(identifier).min(1).max(32),
|
|
98946
|
+
scope: literal("read"),
|
|
98947
|
+
operations: array(_enum(["list", "view"])).min(1).max(2)
|
|
98948
|
+
}).strict();
|
|
98949
|
+
var mcpSchema = object({
|
|
98950
|
+
version: literal(1),
|
|
98951
|
+
terms_url: httpsUrl,
|
|
98952
|
+
privacy_url: httpsUrl,
|
|
98953
|
+
auth_collection_id: collectionId,
|
|
98954
|
+
tools: array(tool).min(1).max(32)
|
|
98955
|
+
}).strict().superRefine((value, ctx) => {
|
|
98956
|
+
const names = new Set;
|
|
98957
|
+
const contexts = new Map;
|
|
98958
|
+
for (const [i, entry] of value.tools.entries()) {
|
|
98959
|
+
const issue = (message) => ctx.addIssue({ code: "custom", path: ["tools", i], message });
|
|
98960
|
+
if (names.has(entry.name))
|
|
98961
|
+
issue("duplicate tool name");
|
|
98962
|
+
names.add(entry.name);
|
|
98963
|
+
if (entry.auth_collection_id !== value.auth_collection_id)
|
|
98964
|
+
issue("tool auth collection must match login");
|
|
98965
|
+
if (new Set(entry.fields).size !== entry.fields.length)
|
|
98966
|
+
issue("duplicate field");
|
|
98967
|
+
if (new Set(entry.operations).size !== entry.operations.length)
|
|
98968
|
+
issue("duplicate operation");
|
|
98969
|
+
const context = JSON.stringify([entry.auth_collection_id, entry.owner_field]);
|
|
98970
|
+
if (contexts.has(entry.collection_id) && contexts.get(entry.collection_id) !== context)
|
|
98971
|
+
issue("conflicting collection context");
|
|
98972
|
+
contexts.set(entry.collection_id, context);
|
|
98973
|
+
}
|
|
98974
|
+
if (new TextEncoder().encode(serializeMcpDeclaration(value)).byteLength > 32768) {
|
|
98975
|
+
ctx.addIssue({ code: "custom", message: "MCP declaration exceeds 32 KiB" });
|
|
98976
|
+
}
|
|
98977
|
+
});
|
|
98978
|
+
function serializeMcpDeclaration(value) {
|
|
98979
|
+
return JSON.stringify({
|
|
98980
|
+
version: value.version,
|
|
98981
|
+
terms_url: value.terms_url,
|
|
98982
|
+
privacy_url: value.privacy_url,
|
|
98983
|
+
auth_collection_id: value.auth_collection_id,
|
|
98984
|
+
tools: [...value.tools].sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0).map((entry) => ({
|
|
98985
|
+
name: entry.name,
|
|
98986
|
+
auth_collection_id: entry.auth_collection_id,
|
|
98987
|
+
collection_id: entry.collection_id,
|
|
98988
|
+
owner_field: entry.owner_field,
|
|
98989
|
+
fields: [...entry.fields].sort(),
|
|
98990
|
+
scope: entry.scope,
|
|
98991
|
+
operations: [...entry.operations].sort()
|
|
98992
|
+
}))
|
|
98993
|
+
});
|
|
98994
|
+
}
|
|
98995
|
+
// ../toml/dist/parse.js
|
|
98996
|
+
import { readFile } from "node:fs/promises";
|
|
98997
|
+
|
|
98998
|
+
// ../../node_modules/.bun/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js
|
|
98999
|
+
var $parse = require_parse();
|
|
99000
|
+
var $stringify = require_stringify();
|
|
99001
|
+
|
|
98012
99002
|
// ../toml/dist/schema.js
|
|
98013
99003
|
var appSchema = object({
|
|
98014
99004
|
name: string2().regex(APP_NAME_RE, "must be 3–40 chars, lowercase, start with a letter, [a-z0-9-] only"),
|
|
@@ -98096,8 +99086,16 @@ var dataSchema = object({
|
|
|
98096
99086
|
mode: _enum(["pocketbase", "postgres", "sqlite", "convex", "supabase", "external", "none"]),
|
|
98097
99087
|
file: string2().min(1).optional(),
|
|
98098
99088
|
convex: convexConfigSchema.optional(),
|
|
98099
|
-
supabase: supabaseConfigSchema.optional()
|
|
99089
|
+
supabase: supabaseConfigSchema.optional(),
|
|
99090
|
+
superuser_env: boolean2().optional()
|
|
98100
99091
|
}).strict().superRefine((value, ctx) => {
|
|
99092
|
+
if (value.superuser_env !== undefined && value.mode !== "pocketbase") {
|
|
99093
|
+
ctx.addIssue({
|
|
99094
|
+
code: "custom",
|
|
99095
|
+
path: ["superuser_env"],
|
|
99096
|
+
message: "Only supported when mode = 'pocketbase'."
|
|
99097
|
+
});
|
|
99098
|
+
}
|
|
98101
99099
|
if (value.mode === "sqlite" && !value.file) {
|
|
98102
99100
|
ctx.addIssue({
|
|
98103
99101
|
code: ZodIssueCode.custom,
|
|
@@ -98253,7 +99251,14 @@ var devSchema = object({
|
|
|
98253
99251
|
}).strict();
|
|
98254
99252
|
var requiredEnvSchema = record(string2(), _enum(["secret", "url", "string"]));
|
|
98255
99253
|
var cronSchema = object({
|
|
98256
|
-
schedule: string2().min(1),
|
|
99254
|
+
schedule: string2().min(1).superRefine((value, ctx) => {
|
|
99255
|
+
const policy = cronSchedulePolicy(value);
|
|
99256
|
+
if (policy !== "valid")
|
|
99257
|
+
ctx.addIssue({
|
|
99258
|
+
code: "custom",
|
|
99259
|
+
message: policy === "subminute" ? "Recurring cron schedules must be at least one minute apart." : "Invalid cron schedule."
|
|
99260
|
+
});
|
|
99261
|
+
}),
|
|
98257
99262
|
command: string2().min(1),
|
|
98258
99263
|
description: string2().max(200).optional()
|
|
98259
99264
|
}).strict();
|
|
@@ -98410,6 +99415,7 @@ var percherConfigSchema = object({
|
|
|
98410
99415
|
build: buildSchema.optional(),
|
|
98411
99416
|
web: webSchema.optional(),
|
|
98412
99417
|
data: dataSchema.optional(),
|
|
99418
|
+
mcp: mcpSchema.optional(),
|
|
98413
99419
|
env: envSchema.optional(),
|
|
98414
99420
|
domain: domainSchema.optional(),
|
|
98415
99421
|
resources: resourcesSchema.optional(),
|
|
@@ -98533,7 +99539,7 @@ import { posix } from "node:path";
|
|
|
98533
99539
|
import { Transform } from "node:stream";
|
|
98534
99540
|
import { createGunzip } from "node:zlib";
|
|
98535
99541
|
|
|
98536
|
-
//
|
|
99542
|
+
// ../../node_modules/.bun/tar-stream@3.1.9/node_modules/tar-stream/index.js
|
|
98537
99543
|
var $extract = require_extract();
|
|
98538
99544
|
var $pack = require_pack();
|
|
98539
99545
|
|
|
@@ -98883,7 +99889,7 @@ function classifyFile(projectRoot, template, manifest) {
|
|
|
98883
99889
|
var CLAUDE_MD = {
|
|
98884
99890
|
id: "claude-md",
|
|
98885
99891
|
path: "CLAUDE.md",
|
|
98886
|
-
version: "1.
|
|
99892
|
+
version: "1.4.0",
|
|
98887
99893
|
content: `# CLAUDE.md — Percher publishing instructions
|
|
98888
99894
|
|
|
98889
99895
|
This project is hosted on **Percher** (https://percher.app). Apps run
|
|
@@ -98901,6 +99907,17 @@ This single command:
|
|
|
98901
99907
|
- Packages, uploads, builds, deploys
|
|
98902
99908
|
- Returns the live URL
|
|
98903
99909
|
|
|
99910
|
+
## PocketBase admin credentials
|
|
99911
|
+
|
|
99912
|
+
Managed PocketBase injects admin credentials by default. If your server does not
|
|
99913
|
+
use POCKETBASE_ADMIN_*, set [data] superuser_env = false. False persists across
|
|
99914
|
+
omission and old-version redeploys; only superuser_env = true in a new live
|
|
99915
|
+
publish re-enables it. Percher data tools and reset-superuser --reveal still work.
|
|
99916
|
+
This does not erase copied credentials or old processes. Reset after suspected
|
|
99917
|
+
exposure; reset does not re-enable app injection. Rollback to a version deployed while admin env was on is refused: redeploy its
|
|
99918
|
+
retained source or publish it again. Rotation makes the old admin password stop
|
|
99919
|
+
working; it does not revoke other secrets your app holds.
|
|
99920
|
+
|
|
98904
99921
|
## Setting secrets
|
|
98905
99922
|
|
|
98906
99923
|
Never put secret values in \`percher.toml\` or anywhere in source.
|
|
@@ -99594,7 +100611,7 @@ import { join as join9, resolve as resolve5 } from "node:path";
|
|
|
99594
100611
|
// ../core/dist/templates.js
|
|
99595
100612
|
import { existsSync as existsSync5, mkdirSync as mkdirSync6, readdirSync, readFileSync as readFileSync6, statSync, writeFileSync as writeFileSync6 } from "node:fs";
|
|
99596
100613
|
import { basename as basename2, join as join8, normalize, relative as relative2, resolve as resolve4 } from "node:path";
|
|
99597
|
-
var __dirname = "/mnt/c/dev/Percher-lc-evidence/hardening-
|
|
100614
|
+
var __dirname = "/mnt/c/dev/Percher-lc-evidence/hardening-20261102/release963/worktree/packages/core/dist";
|
|
99598
100615
|
var TEMPLATES_DIR = resolve4(import.meta.dirname ?? __dirname, "../templates");
|
|
99599
100616
|
var PLACEHOLDER = "__APP_NAME__";
|
|
99600
100617
|
function listTemplates() {
|
|
@@ -100763,6 +101780,15 @@ function replacedDeploymentResult(app, deployment) {
|
|
|
100763
101780
|
};
|
|
100764
101781
|
}
|
|
100765
101782
|
|
|
101783
|
+
// ../core/dist/pb-superuser-env-note.js
|
|
101784
|
+
function pbSuperuserEnvNote(deployment) {
|
|
101785
|
+
if (deployment.pocketbaseSuperuserEnv !== false)
|
|
101786
|
+
return;
|
|
101787
|
+
if (deployment.pocketbaseSuperuserEnvOptInSuperseded)
|
|
101788
|
+
return "PocketBase admin env stays off: another publish changed the policy before this opt-in completed. Publish again with superuser_env = true to re-enable it.";
|
|
101789
|
+
return deployment.pocketbaseSuperuserEnvInherited ? "PocketBase admin env is still off from an earlier publish. Set [data] superuser_env = true in a new live publish to re-enable it." : "PocketBase admin env is off. Set [data] superuser_env = true in a new live publish to re-enable it.";
|
|
101790
|
+
}
|
|
101791
|
+
|
|
100766
101792
|
// ../core/dist/poll-deployment.js
|
|
100767
101793
|
init_dist();
|
|
100768
101794
|
class DeployPollLostContactError extends PercherCoreError {
|
|
@@ -101481,12 +102507,12 @@ import { existsSync as existsSync8 } from "node:fs";
|
|
|
101481
102507
|
import { join as join13 } from "node:path";
|
|
101482
102508
|
|
|
101483
102509
|
// ../core/dist/tarball.js
|
|
101484
|
-
var import_ignore = __toESM(require_ignore(), 1);
|
|
101485
102510
|
import { createHash as createHash2 } from "node:crypto";
|
|
101486
102511
|
import { closeSync as closeSync2, constants, existsSync as existsSync6, fstatSync, lstatSync as lstatSync2, openSync as openSync2, readdirSync as readdirSync2, readFileSync as readFileSync7, realpathSync } from "node:fs";
|
|
101487
102512
|
import { isAbsolute as isAbsolute2, join as join11, relative as relative4, sep as sep2 } from "node:path";
|
|
101488
102513
|
import { Readable } from "node:stream";
|
|
101489
102514
|
import { createGzip } from "node:zlib";
|
|
102515
|
+
var import_ignore = __toESM(require_ignore(), 1);
|
|
101490
102516
|
function isFilesOptions(options) {
|
|
101491
102517
|
return "files" in options;
|
|
101492
102518
|
}
|
|
@@ -101498,13 +102524,12 @@ var DEFAULT_IGNORE = [
|
|
|
101498
102524
|
".svelte-kit",
|
|
101499
102525
|
"build",
|
|
101500
102526
|
"coverage",
|
|
101501
|
-
|
|
101502
|
-
".env.*",
|
|
102527
|
+
...ENV_FILE_IGNORE_PATTERNS,
|
|
101503
102528
|
".bun",
|
|
101504
102529
|
"*.log",
|
|
101505
102530
|
".DS_Store"
|
|
101506
102531
|
];
|
|
101507
|
-
var ALWAYS_IGNORE_SECRETS =
|
|
102532
|
+
var ALWAYS_IGNORE_SECRETS = ENV_FILE_IGNORE_PATTERNS;
|
|
101508
102533
|
function inspectSourcePath(root, path, entry = lstatSync2(path)) {
|
|
101509
102534
|
if (entry.isSymbolicLink()) {
|
|
101510
102535
|
throw new Error(`Refusing symlink in publish source: ${relative4(root, path)}`);
|
|
@@ -101569,7 +102594,7 @@ function normalizeInlinePath(raw) {
|
|
|
101569
102594
|
}
|
|
101570
102595
|
return cleaned;
|
|
101571
102596
|
}
|
|
101572
|
-
function buildTarball(fileBuffers) {
|
|
102597
|
+
function buildTarball(fileBuffers, emptyDirs = []) {
|
|
101573
102598
|
fileBuffers.sort((a, b) => a.path < b.path ? -1 : a.path > b.path ? 1 : 0);
|
|
101574
102599
|
const totalBytes = fileBuffers.reduce((sum, f) => sum + f.size, 0);
|
|
101575
102600
|
const contentHasher = createHash2("sha256");
|
|
@@ -101585,6 +102610,9 @@ function buildTarball(fileBuffers) {
|
|
|
101585
102610
|
contentHasher.update(`
|
|
101586
102611
|
`);
|
|
101587
102612
|
}
|
|
102613
|
+
for (const dir of emptyDirs)
|
|
102614
|
+
contentHasher.update(`DIR:${dir.length}:${dir}
|
|
102615
|
+
`);
|
|
101588
102616
|
const contentHash = contentHasher.digest("hex");
|
|
101589
102617
|
const pack = $pack();
|
|
101590
102618
|
(async () => {
|
|
@@ -101597,6 +102625,11 @@ function buildTarball(fileBuffers) {
|
|
|
101597
102625
|
}, file.data, (err) => err ? reject(err) : resolve());
|
|
101598
102626
|
});
|
|
101599
102627
|
}
|
|
102628
|
+
for (const dir of emptyDirs) {
|
|
102629
|
+
await new Promise((resolve, reject) => {
|
|
102630
|
+
pack.entry({ name: `${dir}/`, type: "directory" }, (err) => err ? reject(err) : resolve());
|
|
102631
|
+
});
|
|
102632
|
+
}
|
|
101600
102633
|
pack.finalize();
|
|
101601
102634
|
})();
|
|
101602
102635
|
const gzip = createGzip();
|
|
@@ -101649,7 +102682,7 @@ async function createTarball(options) {
|
|
|
101649
102682
|
}
|
|
101650
102683
|
return buildTarball(fileBuffers);
|
|
101651
102684
|
}
|
|
101652
|
-
function createTarballFromFiles(files, _config) {
|
|
102685
|
+
function createTarballFromFiles(files, _config, options = {}) {
|
|
101653
102686
|
const seen = new Set;
|
|
101654
102687
|
const fileBuffers = [];
|
|
101655
102688
|
for (const file of files) {
|
|
@@ -101668,13 +102701,17 @@ function createTarballFromFiles(files, _config) {
|
|
|
101668
102701
|
...file.mode !== undefined ? { mode: file.mode } : {}
|
|
101669
102702
|
});
|
|
101670
102703
|
}
|
|
101671
|
-
|
|
102704
|
+
const emptyDirs = (options.emptyDirs ?? []).map(normalizeInlinePath).sort();
|
|
102705
|
+
if (new Set(emptyDirs).size !== emptyDirs.length) {
|
|
102706
|
+
throw new Error("duplicate empty directory in inline source");
|
|
102707
|
+
}
|
|
102708
|
+
return buildTarball(fileBuffers, emptyDirs);
|
|
101672
102709
|
}
|
|
101673
102710
|
|
|
101674
102711
|
// ../core/dist/watcher.js
|
|
101675
|
-
var import_ignore2 = __toESM(require_ignore(), 1);
|
|
101676
102712
|
import { existsSync as existsSync7, lstatSync as lstatSync3, readFileSync as readFileSync8, watch } from "node:fs";
|
|
101677
102713
|
import { join as join12, sep as sep3 } from "node:path";
|
|
102714
|
+
var import_ignore2 = __toESM(require_ignore(), 1);
|
|
101678
102715
|
var DEFAULT_IGNORE2 = [
|
|
101679
102716
|
"node_modules",
|
|
101680
102717
|
".git",
|
|
@@ -101683,8 +102720,7 @@ var DEFAULT_IGNORE2 = [
|
|
|
101683
102720
|
".svelte-kit",
|
|
101684
102721
|
"build",
|
|
101685
102722
|
"coverage",
|
|
101686
|
-
|
|
101687
|
-
".env.*",
|
|
102723
|
+
...ENV_FILE_IGNORE_PATTERNS,
|
|
101688
102724
|
".bun",
|
|
101689
102725
|
"*.log",
|
|
101690
102726
|
".DS_Store",
|
|
@@ -102055,6 +103091,7 @@ async function waitForDeploy(ctx, input, opts) {
|
|
|
102055
103091
|
const rc = deployment.runtimeCapture;
|
|
102056
103092
|
return {
|
|
102057
103093
|
status: "live",
|
|
103094
|
+
pocketbaseSuperuserEnvNote: pbSuperuserEnvNote(deployment),
|
|
102058
103095
|
app: { id: app.id, name: app.name, url: app.url },
|
|
102059
103096
|
deployment,
|
|
102060
103097
|
url,
|
|
@@ -103671,7 +104708,7 @@ function renderStaticFrameworkDockerfile(input) {
|
|
|
103671
104708
|
'const reserved=p=>deny.test("/"+p.split(path.sep).join("/"))',
|
|
103672
104709
|
'if((dir!==root&&!dir.startsWith(root+path.sep))||reserved(path.relative(root,dir)))throw Error("Static output escapes the project or selects platform content")',
|
|
103673
104710
|
'if(fs.existsSync(dest))throw Error("Reserved static staging directory already exists")',
|
|
103674
|
-
'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())
|
|
104711
|
+
'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}})'
|
|
103675
104712
|
].join(";");
|
|
103676
104713
|
return `# Multi-stage build: a Bun stage compiles the static bundle, then a
|
|
103677
104714
|
# minimal Caddy image serves it. This project uses runtime = "docker"
|
|
@@ -103698,7 +104735,7 @@ RUN go mod download github.com/caddyserver/caddy/v2@v2.11.7 \\
|
|
|
103698
104735
|
&& cp -R /go/pkg/mod/github.com/caddyserver/caddy/v2@v2.11.7 /src \\
|
|
103699
104736
|
&& chmod -R u+w /src
|
|
103700
104737
|
WORKDIR /src
|
|
103701
|
-
RUN go get github.com/go-chi/chi/v5@v5.3.2 github.com/klauspost/compress@v1.20.1 \\
|
|
104738
|
+
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 \\
|
|
103702
104739
|
go.opentelemetry.io/otel@v1.46.0 go.opentelemetry.io/otel/sdk/log@v0.22.0 \\
|
|
103703
104740
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc@v0.22.0 \\
|
|
103704
104741
|
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp@v0.22.0 \\
|
|
@@ -110550,6 +111587,7 @@ async function finalizeDeploy(opts) {
|
|
|
110550
111587
|
});
|
|
110551
111588
|
return {
|
|
110552
111589
|
status: "live",
|
|
111590
|
+
pocketbaseSuperuserEnvNote: pbSuperuserEnvNote(deployment),
|
|
110553
111591
|
url,
|
|
110554
111592
|
qrDataUri,
|
|
110555
111593
|
app,
|
|
@@ -111466,6 +112504,7 @@ async function redeploy(ctx, input = {}) {
|
|
|
111466
112504
|
const cacheTag = cacheHit ? "cached, " : "";
|
|
111467
112505
|
return {
|
|
111468
112506
|
status: "live",
|
|
112507
|
+
pocketbaseSuperuserEnvNote: pbSuperuserEnvNote(deployment),
|
|
111469
112508
|
app,
|
|
111470
112509
|
deployment,
|
|
111471
112510
|
url,
|
|
@@ -112585,6 +113624,10 @@ async function writeStageTimeline(ctx, events) {
|
|
|
112585
113624
|
await writeLine2(ctx, ` ${r.stage.padEnd(stageW)} ${dur} ${mark}`);
|
|
112586
113625
|
}
|
|
112587
113626
|
}
|
|
113627
|
+
async function printPbSuperuserEnvNote(ctx, result) {
|
|
113628
|
+
if (result.pocketbaseSuperuserEnvNote)
|
|
113629
|
+
await writeLine2(ctx, result.pocketbaseSuperuserEnvNote);
|
|
113630
|
+
}
|
|
112588
113631
|
async function printSuperuserResetResult(ctx, result) {
|
|
112589
113632
|
await writeLine2(ctx, `${import_picocolors.default.green("✓")} ${result.message}`);
|
|
112590
113633
|
if (result.password) {
|
|
@@ -113254,6 +114297,7 @@ async function handlePublishResult(ctx, result, options = {}) {
|
|
|
113254
114297
|
case "live": {
|
|
113255
114298
|
const timing = result.timing ? ` (${result.timing.totalSeconds}s)` : "";
|
|
113256
114299
|
await writeLine2(ctx, `${import_picocolors5.default.green("✓")} Published to ${result.url}${timing}`);
|
|
114300
|
+
await printPbSuperuserEnvNote(ctx, result);
|
|
113257
114301
|
if (result.traceId) {
|
|
113258
114302
|
await writeLine2(ctx, import_picocolors5.default.dim(` Trace: ${result.traceId}`));
|
|
113259
114303
|
}
|
|
@@ -113404,6 +114448,7 @@ function registerAppsCommands(cli, ctx) {
|
|
|
113404
114448
|
}
|
|
113405
114449
|
throw new SilentExitError;
|
|
113406
114450
|
}
|
|
114451
|
+
await printPbSuperuserEnvNote(ctx, result);
|
|
113407
114452
|
const timing = result.timing ? ` (${result.timing.totalSeconds.toFixed(0)}s)` : "";
|
|
113408
114453
|
await writeLine2(ctx, `${import_picocolors5.default.green("✓")} Redeployed to ${result.url}${timing}`);
|
|
113409
114454
|
});
|
|
@@ -113453,6 +114498,7 @@ function registerAppsCommands(cli, ctx) {
|
|
|
113453
114498
|
await writeLine2(ctx, import_picocolors5.default.dim(`${lastStatus}...`));
|
|
113454
114499
|
}
|
|
113455
114500
|
if (result.status === "live") {
|
|
114501
|
+
await printPbSuperuserEnvNote(ctx, result);
|
|
113456
114502
|
await writeLine2(ctx, `${import_picocolors5.default.green("✓")} ${result.summary}`);
|
|
113457
114503
|
return;
|
|
113458
114504
|
}
|
|
@@ -113862,7 +114908,7 @@ var DATA_VALUE_FLAGS = new Set([
|
|
|
113862
114908
|
"--client-secret"
|
|
113863
114909
|
]);
|
|
113864
114910
|
function registerDataCommands(cli, ctx, argv) {
|
|
113865
|
-
cli.command("data [app] [...rest]", "Show app data status and collections").option("--json", "Output as JSON").option("--reveal", "(reset-superuser only) also print the plaintext password once").option("--out <path>", "(export only) Output file (default: ./<app>-pb-<timestamp>.tar.gz)").option("--provider <name>", "(oauth only) OAuth provider (default: google)").option("--app <name>", "Target app (default: read percher.toml); names an app called like a subcommand, e.g. `data --app get`").option("--client-id <id>", "(oauth only) OAuth client id").option("--client-secret <secret>", "(oauth only)
|
|
114911
|
+
cli.command("data [app] [...rest]", "Show app data status and collections").option("--json", "Output as JSON").option("--reveal", "(reset-superuser only) also print the plaintext password once").option("--out <path>", "(export only) Output file (default: ./<app>-pb-<timestamp>.tar.gz)").option("--provider <name>", "(oauth only) OAuth provider (default: google)").option("--app <name>", "Target app (default: read percher.toml); names an app called like a subcommand, e.g. `data --app get`").option("--client-id <id>", "(oauth only) OAuth client id").option("--client-secret <secret>", "(oauth only, deprecated) Client secret; prefer the hidden prompt or --client-secret-stdin").option("--client-secret-stdin", "(oauth only) Read client secret from stdin").option("--remove", "(oauth only) remove the provider instead of setting it").option("--filter <expr>", "(query only) filter over the collection's fields").option("--sort <fields>", "(query only) comma-separated fields, - for descending (write --sort=-field)").option("--page <n>", "(query only) page number").option("--per-page <n>", "(query only) records per page (max 100)").option("--fields <fields>", "(query only) comma-separated fields to return").option("--data <json>", "(create, update) field values as a JSON object").option("--id <id>", "(create only) id for the new record").option("--if-updated <timestamp>", "(update only) refuse if the record changed since").action(async (app, _rest, options) => {
|
|
113866
114912
|
if (app !== undefined && DATA_RECORD_SUBCOMMANDS.has(app)) {
|
|
113867
114913
|
await runDataRecordCommand(ctx, argv, app, _rest, options);
|
|
113868
114914
|
return;
|
|
@@ -113889,11 +114935,30 @@ function registerDataCommands(cli, ctx, argv) {
|
|
|
113889
114935
|
if (app === "oauth") {
|
|
113890
114936
|
const idx = argv.indexOf("oauth");
|
|
113891
114937
|
const provider = (idx >= 0 ? firstNonFlagAfter(argv, idx, DATA_VALUE_FLAGS) : undefined) ?? options.provider ?? "google";
|
|
114938
|
+
await Promise.resolve().then(() => init_data_oauth_input());
|
|
114939
|
+
await Promise.resolve().then(() => init_prompt_hidden());
|
|
114940
|
+
let clientSecret;
|
|
114941
|
+
try {
|
|
114942
|
+
clientSecret = await resolveOauthSecret({
|
|
114943
|
+
clientId: options.clientId,
|
|
114944
|
+
clientSecret: options.clientSecret,
|
|
114945
|
+
fromStdin: argv.includes("--client-secret-stdin"),
|
|
114946
|
+
remove: options.remove,
|
|
114947
|
+
readStdin: () => readOauthSecretStdin(process.stdin),
|
|
114948
|
+
promptHidden,
|
|
114949
|
+
warn: () => writeLine2(ctx, "Warning: --client-secret exposes the value in process arguments and shell history. Use the hidden prompt or --client-secret-stdin.")
|
|
114950
|
+
});
|
|
114951
|
+
} catch (error) {
|
|
114952
|
+
if (!(error instanceof OauthSecretInputError))
|
|
114953
|
+
throw error;
|
|
114954
|
+
await writeLine2(ctx, error.message);
|
|
114955
|
+
throw new SilentExitError;
|
|
114956
|
+
}
|
|
113892
114957
|
const result = await dataOauth(ctx, {
|
|
113893
114958
|
app: options.app,
|
|
113894
114959
|
provider,
|
|
113895
114960
|
clientId: options.clientId,
|
|
113896
|
-
clientSecret
|
|
114961
|
+
clientSecret,
|
|
113897
114962
|
remove: options.remove
|
|
113898
114963
|
});
|
|
113899
114964
|
if (result.action === "removed") {
|
|
@@ -113943,11 +115008,11 @@ function registerDataCommands(cli, ctx, argv) {
|
|
|
113943
115008
|
}
|
|
113944
115009
|
});
|
|
113945
115010
|
registerDataRecordHelp(cli);
|
|
113946
|
-
cli.command("data reset-superuser [app]", "
|
|
115011
|
+
cli.command("data reset-superuser [app]", "Rotate PocketBase superuser credentials (app injection follows its policy)").option("--reveal", "Also print the plaintext password once (default: hidden)").action(async (app, options) => {
|
|
113947
115012
|
const result = await resetSuperuser(ctx, { app, reveal: options.reveal });
|
|
113948
115013
|
await printSuperuserResetResult(ctx, result);
|
|
113949
115014
|
});
|
|
113950
|
-
cli.command("data oauth [provider]", "Configure capsule OAuth sign-in
|
|
115015
|
+
cli.command("data oauth [provider]", "Configure capsule OAuth sign-in: data oauth google --client-id <id> (hidden secret prompt)").action(async () => {});
|
|
113951
115016
|
cli.command("data export [app]", "Download a snapshot of your app's PocketBase data as a .tar.gz").action(async () => {});
|
|
113952
115017
|
cli.command("backups [app]", "List available backups for an app").action(async (app) => {
|
|
113953
115018
|
const { backups, skipped } = await listBackups(ctx, { app });
|
|
@@ -114849,7 +115914,7 @@ import { createInterface } from "node:readline";
|
|
|
114849
115914
|
// package.json
|
|
114850
115915
|
var package_default2 = {
|
|
114851
115916
|
name: "percher",
|
|
114852
|
-
version: "1.
|
|
115917
|
+
version: "1.5.0",
|
|
114853
115918
|
description: "CLI for the Percher hosting platform — publish apps with one command",
|
|
114854
115919
|
type: "module",
|
|
114855
115920
|
bin: {
|
|
@@ -114877,10 +115942,10 @@ var package_default2 = {
|
|
|
114877
115942
|
typecheck: "tsc --noEmit"
|
|
114878
115943
|
},
|
|
114879
115944
|
dependencies: {
|
|
114880
|
-
"@percher/shared": "^1.
|
|
114881
|
-
"@percher/client": "^1.
|
|
114882
|
-
"@percher/core": "^1.
|
|
114883
|
-
"@percher/toml": "^1.0
|
|
115945
|
+
"@percher/shared": "^1.4.0",
|
|
115946
|
+
"@percher/client": "^1.5.0",
|
|
115947
|
+
"@percher/core": "^1.5.0",
|
|
115948
|
+
"@percher/toml": "^1.1.0",
|
|
114884
115949
|
cac: "^7.0.0",
|
|
114885
115950
|
picocolors: "^1.1.1"
|
|
114886
115951
|
},
|