create-efforge 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +140 -2
- package/dist/addon.js +115 -0
- package/dist/bin.js +6 -0
- package/dist/cli.js +9 -0
- package/dist/commands/add.js +440 -0
- package/dist/commands/create.js +186 -0
- package/dist/diff.js +72 -0
- package/dist/exec.js +20 -0
- package/dist/generate.js +181 -0
- package/dist/manifest.js +14 -0
- package/dist/projectName.js +41 -0
- package/dist/prompts/flow.js +111 -0
- package/dist/prompts/navigable.js +97 -0
- package/dist/routeTree.js +7 -0
- package/dist/rules.js +24 -0
- package/dist/slots.js +96 -0
- package/dist/stack.js +68 -0
- package/dist/transforms/addAlchemyResource.js +71 -0
- package/dist/transforms/addArrayItem.js +31 -0
- package/dist/transforms/addAuthPlugin.js +77 -0
- package/dist/transforms/addDevVar.js +18 -0
- package/dist/transforms/addExport.js +46 -0
- package/dist/transforms/addImport.js +11 -0
- package/dist/transforms/addLayer.js +31 -0
- package/dist/transforms/addServerFnMiddleware.js +62 -0
- package/dist/transforms/addWorkflowSecret.js +43 -0
- package/dist/transforms/addWranglerBinding.js +61 -0
- package/dist/transforms/appendAgentsSection.js +26 -0
- package/dist/transforms/errors.js +7 -0
- package/dist/transforms/index.js +40 -0
- package/dist/transforms/setWranglerValue.js +40 -0
- package/dist/transforms/util.js +219 -0
- package/dist/tree.js +1 -0
- package/dist/versions.js +73 -0
- package/dist/write.js +26 -0
- package/package.json +63 -4
- package/templates/ai/effect-ai-byok/addon.json +619 -0
- package/templates/ai/effect-ai-byok/files/core/llm-crypto.test.ts +47 -0
- package/templates/ai/effect-ai-byok/files/core/llm-crypto.ts +76 -0
- package/templates/ai/effect-ai-byok/files/core/llm-store.ts +21 -0
- package/templates/ai/effect-ai-byok/files/core/llm.ts +32 -0
- package/templates/ai/effect-ai-byok/files/drizzle/d1/20261018161056_llm_credential/migration.sql +9 -0
- package/templates/ai/effect-ai-byok/files/drizzle/d1/20261018161056_llm_credential/snapshot.json +944 -0
- package/templates/ai/effect-ai-byok/files/drizzle/pg/20261018161056_llm_credential/migration.sql +10 -0
- package/templates/ai/effect-ai-byok/files/drizzle/pg/20261018161056_llm_credential/snapshot.json +1232 -0
- package/templates/ai/effect-ai-byok/files/routes/ai.tsx +193 -0
- package/templates/ai/effect-ai-byok/files/schema/d1.ts +16 -0
- package/templates/ai/effect-ai-byok/files/schema/pg.ts +14 -0
- package/templates/ai/effect-ai-byok/files/server/ai-settings.ts +129 -0
- package/templates/ai/effect-ai-byok/files/server/ai.ts +25 -0
- package/templates/ai/effect-ai-byok/files/server/llm-env.ts +48 -0
- package/templates/ai/effect-ai-byok/files/server/llm-orgs.ts +146 -0
- package/templates/ai/effect-ai-byok/files/server/llm-provider.ts +56 -0
- package/templates/ai/effect-ai-byok/files/server/llm-store-drizzle.ts +48 -0
- package/templates/ai/effect-ai-byok/files/server/llm-store-sql-d1.ts +41 -0
- package/templates/ai/effect-ai-byok/files/server/llm-store-sql-pg.ts +41 -0
- package/templates/ai/effect-ai-byok/files/sql/d1.sql +8 -0
- package/templates/ai/effect-ai-byok/files/sql/pg.sql +8 -0
- package/templates/auth/better-auth/addon.json +424 -0
- package/templates/auth/better-auth/files/core/Auth.ts +18 -0
- package/templates/auth/better-auth/files/drizzle/d1/20261018161054_auth/migration.sql +51 -0
- package/templates/auth/better-auth/files/drizzle/d1/20261018161054_auth/snapshot.json +522 -0
- package/templates/auth/better-auth/files/drizzle/pg/20261018161053_auth/migration.sql +51 -0
- package/templates/auth/better-auth/files/drizzle/pg/20261018161053_auth/snapshot.json +680 -0
- package/templates/auth/better-auth/files/lib/auth-client.ts +4 -0
- package/templates/auth/better-auth/files/routes/app.tsx +54 -0
- package/templates/auth/better-auth/files/schema/d1/auth-schema.ts +86 -0
- package/templates/auth/better-auth/files/schema/pg/auth-schema.ts +73 -0
- package/templates/auth/better-auth/files/server/auth-live.ts +47 -0
- package/templates/auth/better-auth/files/server/session.ts +14 -0
- package/templates/auth/better-auth/files/shared/components/auth-card.tsx +32 -0
- package/templates/auth/better-auth/files/shared/components/user-menu.tsx +44 -0
- package/templates/auth/better-auth/files/shared/drizzle/d1/drizzle.config.ts +7 -0
- package/templates/auth/better-auth/files/shared/drizzle/pg/drizzle.config.ts +10 -0
- package/templates/auth/better-auth/files/shared/lib/form.ts +5 -0
- package/templates/auth/better-auth/files/shared/lib/redirect.ts +6 -0
- package/templates/auth/better-auth/files/shared/routes/app/index.tsx +54 -0
- package/templates/auth/better-auth/files/shared/routes/sign-in.tsx +85 -0
- package/templates/auth/better-auth/files/shared/routes/sign-up.tsx +91 -0
- package/templates/auth/better-auth/files/shared/server/auth-route.ts +15 -0
- package/templates/auth/better-auth/files/shared/server/auth.ts +22 -0
- package/templates/auth/better-auth/files/shared/server/db/d1-drizzle.ts +25 -0
- package/templates/auth/better-auth/files/shared/server/db/d1-effect-sql.ts +17 -0
- package/templates/auth/better-auth/files/shared/server/db/pg-drizzle.ts +32 -0
- package/templates/auth/better-auth/files/shared/server/db/pg-effect-sql.ts +29 -0
- package/templates/auth/better-auth/files/shared/server/require-session.ts +20 -0
- package/templates/auth/better-auth/files/sql/d1/0002_auth.sql +13 -0
- package/templates/auth/better-auth/files/sql/pg/0002_auth.sql +13 -0
- package/templates/auth/better-auth-orgs/addon.json +463 -0
- package/templates/auth/better-auth-orgs/files/components/org-switcher.tsx +65 -0
- package/templates/auth/better-auth-orgs/files/core/Auth.ts +20 -0
- package/templates/auth/better-auth-orgs/files/drizzle/d1/20261018161055_auth/migration.sql +88 -0
- package/templates/auth/better-auth-orgs/files/drizzle/d1/20261018161055_auth/snapshot.json +862 -0
- package/templates/auth/better-auth-orgs/files/drizzle/pg/20261018161055_auth/migration.sql +88 -0
- package/templates/auth/better-auth-orgs/files/drizzle/pg/20261018161055_auth/snapshot.json +1127 -0
- package/templates/auth/better-auth-orgs/files/lib/auth-client.ts +5 -0
- package/templates/auth/better-auth-orgs/files/routes/accept-invite.$id.tsx +68 -0
- package/templates/auth/better-auth-orgs/files/routes/app/settings/index.tsx +27 -0
- package/templates/auth/better-auth-orgs/files/routes/app/settings/members.tsx +198 -0
- package/templates/auth/better-auth-orgs/files/routes/app/settings.tsx +30 -0
- package/templates/auth/better-auth-orgs/files/routes/app.tsx +58 -0
- package/templates/auth/better-auth-orgs/files/routes/onboarding.tsx +66 -0
- package/templates/auth/better-auth-orgs/files/schema/d1/auth-schema.ts +139 -0
- package/templates/auth/better-auth-orgs/files/schema/pg/auth-schema.ts +124 -0
- package/templates/auth/better-auth-orgs/files/server/auth-live.ts +52 -0
- package/templates/auth/better-auth-orgs/files/server/session.ts +44 -0
- package/templates/auth/better-auth-orgs/files/sql/d1/0002_auth.sql +27 -0
- package/templates/auth/better-auth-orgs/files/sql/pg/0002_auth.sql +27 -0
- package/templates/base/addon.json +212 -0
- package/templates/base/files/AGENTS.md +70 -0
- package/templates/base/files/CLAUDE.md +1 -0
- package/templates/base/files/README.md +28 -0
- package/templates/base/files/core/package.json +13 -0
- package/templates/base/files/core/src/index.ts +2 -0
- package/templates/base/files/core/test/core.test.ts +4 -0
- package/templates/base/files/core/tsconfig.json +6 -0
- package/templates/base/files/gitignore +11 -0
- package/templates/base/files/pnpm-workspace.yaml +11 -0
- package/templates/base/files/root/package.json +16 -0
- package/templates/base/files/root/tsconfig.base.json +19 -0
- package/templates/base/files/root/turbo.json +9 -0
- package/templates/base/files/root/vite.config.ts +61 -0
- package/templates/base/files/web/components.json +21 -0
- package/templates/base/files/web/package.json +17 -0
- package/templates/base/files/web/src/components/theme-provider.tsx +57 -0
- package/templates/base/files/web/src/components/theme-toggle.tsx +34 -0
- package/templates/base/files/web/src/components/ui/avatar.tsx +93 -0
- package/templates/base/files/web/src/components/ui/button.tsx +61 -0
- package/templates/base/files/web/src/components/ui/card.tsx +74 -0
- package/templates/base/files/web/src/components/ui/dialog.tsx +141 -0
- package/templates/base/files/web/src/components/ui/dropdown-menu.tsx +225 -0
- package/templates/base/files/web/src/components/ui/input.tsx +20 -0
- package/templates/base/files/web/src/components/ui/label.tsx +18 -0
- package/templates/base/files/web/src/components/ui/sonner.tsx +45 -0
- package/templates/base/files/web/src/components/widgets.tsx +4 -0
- package/templates/base/files/web/src/lib/utils.ts +6 -0
- package/templates/base/files/web/src/router.tsx +12 -0
- package/templates/base/files/web/src/routes/__root.tsx +42 -0
- package/templates/base/files/web/src/routes/app/index.tsx +27 -0
- package/templates/base/files/web/src/routes/app/settings.tsx +29 -0
- package/templates/base/files/web/src/routes/app.tsx +47 -0
- package/templates/base/files/web/src/routes/index.tsx +51 -0
- package/templates/base/files/web/src/server/greeting.ts +12 -0
- package/templates/base/files/web/src/server/layers.ts +10 -0
- package/templates/base/files/web/src/server/runtime.ts +5 -0
- package/templates/base/files/web/src/styles.css +81 -0
- package/templates/base/files/web/tsconfig.json +11 -0
- package/templates/base/files/web/vite.config.ts +9 -0
- package/templates/database/d1/addon.json +118 -0
- package/templates/database/d1/files/package.json +12 -0
- package/templates/database/d1/files/tsconfig.json +5 -0
- package/templates/database/postgres/addon.json +142 -0
- package/templates/database/postgres/files/docker-compose.yml +21 -0
- package/templates/database/postgres/files/package.json +12 -0
- package/templates/database/postgres/files/runtime.ts +12 -0
- package/templates/database/postgres/files/tsconfig.json +5 -0
- package/templates/extras/browser/addon.json +173 -0
- package/templates/extras/browser/files/BrowserContainer.ts +14 -0
- package/templates/extras/browser/files/app/Dockerfile +15 -0
- package/templates/extras/browser/files/app/dockerignore +1 -0
- package/templates/extras/browser/files/app/package-lock +605 -0
- package/templates/extras/browser/files/app/package.json +9 -0
- package/templates/extras/browser/files/app/src/server.ts +78 -0
- package/templates/extras/browser/files/app/src/url-policy.ts +115 -0
- package/templates/extras/browser/files/app/tsconfig.json +6 -0
- package/templates/extras/browser/files/browser.ts +34 -0
- package/templates/extras/browser/files/core-browser.ts +21 -0
- package/templates/extras/browser/files/run-browser.ts +25 -0
- package/templates/extras/email/addon.json +182 -0
- package/templates/extras/email/files/core-mailer.ts +28 -0
- package/templates/extras/email/files/invitation-email.ts +38 -0
- package/templates/extras/email/files/mailer.ts +58 -0
- package/templates/extras/realtime/addon.json +135 -0
- package/templates/extras/realtime/files/Room.ts +46 -0
- package/templates/extras/realtime/files/core-realtime.ts +19 -0
- package/templates/extras/realtime/files/realtime-demo.tsx +40 -0
- package/templates/extras/realtime/files/realtime-limits.test.ts +32 -0
- package/templates/extras/realtime/files/realtime-limits.ts +35 -0
- package/templates/extras/realtime/files/realtime-route.ts +39 -0
- package/templates/extras/realtime/files/realtime.ts +39 -0
- package/templates/extras/realtime/files/use-room.ts +67 -0
- package/templates/extras/storage/addon.json +132 -0
- package/templates/extras/storage/files/core-storage.ts +64 -0
- package/templates/extras/storage/files/storage-route.ts +50 -0
- package/templates/extras/storage/files/storage-security.test.ts +71 -0
- package/templates/extras/storage/files/storage-security.ts +92 -0
- package/templates/extras/storage/files/storage.ts +84 -0
- package/templates/extras/workflows/addon.json +95 -0
- package/templates/extras/workflows/files/Example.ts +42 -0
- package/templates/extras/workflows/files/core-jobs.ts +45 -0
- package/templates/extras/workflows/files/example-job.ts +36 -0
- package/templates/extras/workflows/files/jobs.ts +34 -0
- package/templates/infra/alchemy/addon.json +37 -0
- package/templates/infra/alchemy/files/README.md +27 -0
- package/templates/infra/alchemy/files/alchemy.run.ts +36 -0
- package/templates/infra/alchemy/files/github/deploy.yml +63 -0
- package/templates/infra/alchemy/files/tsconfig.json +5 -0
- package/templates/infra/alchemy/files/vite.config.ts +30 -0
- package/templates/orm/drizzle/addon.json +188 -0
- package/templates/orm/drizzle/files/d1/Database.ts +7 -0
- package/templates/orm/drizzle/files/d1/drizzle/20261018154417_init/migration.sql +10 -0
- package/templates/orm/drizzle/files/d1/drizzle/20261018154417_init/snapshot.json +60 -0
- package/templates/orm/drizzle/files/d1/drizzle.config.ts +7 -0
- package/templates/orm/drizzle/files/d1/layer.ts +13 -0
- package/templates/orm/drizzle/files/d1/migrate.ts +37 -0
- package/templates/orm/drizzle/files/d1/schema.ts +15 -0
- package/templates/orm/drizzle/files/pg/Database.ts +7 -0
- package/templates/orm/drizzle/files/pg/drizzle/20261018154416_init/migration.sql +10 -0
- package/templates/orm/drizzle/files/pg/drizzle/20261018154416_init/snapshot.json +75 -0
- package/templates/orm/drizzle/files/pg/drizzle.config.ts +10 -0
- package/templates/orm/drizzle/files/pg/layer.ts +16 -0
- package/templates/orm/drizzle/files/pg/migrate.ts +24 -0
- package/templates/orm/drizzle/files/pg/schema.ts +11 -0
- package/templates/orm/drizzle/files/shared/index.ts +2 -0
- package/templates/orm/drizzle/files/shared/notes.ts +15 -0
- package/templates/orm/drizzle/files/shared/page.tsx +50 -0
- package/templates/orm/effect-sql/addon.json +124 -0
- package/templates/orm/effect-sql/files/d1/layer.ts +13 -0
- package/templates/orm/effect-sql/files/d1/migrate.ts +20 -0
- package/templates/orm/effect-sql/files/d1/schema.ts +7 -0
- package/templates/orm/effect-sql/files/d1-sql/0001_init.sql +10 -0
- package/templates/orm/effect-sql/files/pg/layer.ts +16 -0
- package/templates/orm/effect-sql/files/pg/migrate.ts +66 -0
- package/templates/orm/effect-sql/files/pg/schema.ts +7 -0
- package/templates/orm/effect-sql/files/pg-sql/0001_init.sql +10 -0
- package/templates/orm/effect-sql/files/shared/Database.ts +7 -0
- package/templates/orm/effect-sql/files/shared/index.ts +2 -0
- package/templates/orm/effect-sql/files/shared/notes.ts +18 -0
- package/templates/orm/effect-sql/files/shared/page.tsx +50 -0
- package/templates/runtime/cloudflare/addon.json +52 -0
- package/templates/runtime/cloudflare/files/cloudflare.ts +10 -0
- package/templates/runtime/cloudflare/files/routes.ts +5 -0
- package/templates/runtime/cloudflare/files/server.ts +22 -0
- package/templates/runtime/cloudflare/files/tsconfig.json +12 -0
- package/templates/runtime/cloudflare/files/vite.config.ts +20 -0
- package/templates/runtime/cloudflare/files/wrangler.jsonc +8 -0
|
@@ -0,0 +1,605 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "browser",
|
|
3
|
+
"lockfileVersion": 3,
|
|
4
|
+
"requires": true,
|
|
5
|
+
"packages": {
|
|
6
|
+
"": {
|
|
7
|
+
"name": "browser",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@effect/platform-node": "4.0.5",
|
|
10
|
+
"effect": "4.0.5",
|
|
11
|
+
"playwright": "1.64.1"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/node": "26.6.5",
|
|
15
|
+
"typescript": "7.0.2"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"node_modules/@effect/platform-node": {
|
|
19
|
+
"version": "4.0.5",
|
|
20
|
+
"resolved": "https://registry.npmjs.org/@effect/platform-node/-/platform-node-4.0.5.tgz",
|
|
21
|
+
"integrity": "sha512-v4KD5fWvEUa4QmWFpZFbBsRhmfnTP6ETCME2r9ifyXVDPjhfpxpTZl41prjgQFMqZBHdWWCl7YC5ImbXv5ui5g==",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@effect/platform-node-shared": "^4.0.5",
|
|
25
|
+
"undici": "^8.11.2"
|
|
26
|
+
},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=18.0.0"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"effect": "^4.0.5",
|
|
32
|
+
"redis": ">=5.0.0 <7.0.0"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"node_modules/@effect/platform-node-shared": {
|
|
36
|
+
"version": "4.0.5",
|
|
37
|
+
"resolved": "https://registry.npmjs.org/@effect/platform-node-shared/-/platform-node-shared-4.0.5.tgz",
|
|
38
|
+
"integrity": "sha512-a8rCdEkfZBGe9C6bsIjxVZuRp73svIyK5IHwHdDAVsvZXjrbkxusfI+rZ8WlX31RP1mKizwI/E72GQTNfdMWHw==",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@types/ws": "^8.18.2",
|
|
42
|
+
"ws": "^8.22.0"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"effect": "^4.0.5"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"node_modules/@redis/bloom": {
|
|
52
|
+
"version": "6.3.0",
|
|
53
|
+
"resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-6.3.0.tgz",
|
|
54
|
+
"integrity": "sha512-NQ5poYpZr0jv6zazN1cy6JY5kIipKFZ3R9GTL4kOUTX3a9YAfY29U8bsE4lWhVQEM+G4V0BXVC57mubIdDijeA==",
|
|
55
|
+
"license": "MIT",
|
|
56
|
+
"peer": true,
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">= 20.0.0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@redis/client": "^6.3.0"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"node_modules/@redis/client": {
|
|
65
|
+
"version": "6.3.0",
|
|
66
|
+
"resolved": "https://registry.npmjs.org/@redis/client/-/client-6.3.0.tgz",
|
|
67
|
+
"integrity": "sha512-fHrjwGCBvAANGi+TuRuwKi83sIOzgHr8eh+Uf48w3fSX7Hhrz174NrWqfJhAC2vnN0d/tfaZpdr6+o6JC3QHwg==",
|
|
68
|
+
"license": "MIT",
|
|
69
|
+
"peer": true,
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">= 20.0.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@node-rs/xxhash": "^1.1.0",
|
|
75
|
+
"@opentelemetry/api": ">=1 <2"
|
|
76
|
+
},
|
|
77
|
+
"peerDependenciesMeta": {
|
|
78
|
+
"@node-rs/xxhash": {
|
|
79
|
+
"optional": true
|
|
80
|
+
},
|
|
81
|
+
"@opentelemetry/api": {
|
|
82
|
+
"optional": true
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"node_modules/@redis/json": {
|
|
87
|
+
"version": "6.3.0",
|
|
88
|
+
"resolved": "https://registry.npmjs.org/@redis/json/-/json-6.3.0.tgz",
|
|
89
|
+
"integrity": "sha512-yt6vRfPBXtW/3qm53cF81TSQpLMjWdW4/2E9WQ2GgbvsKkuCKCFQIcMiKlil1ZMnezK+IQuS795xKU5psbaegw==",
|
|
90
|
+
"license": "MIT",
|
|
91
|
+
"peer": true,
|
|
92
|
+
"engines": {
|
|
93
|
+
"node": ">= 20.0.0"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"@redis/client": "^6.3.0"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"node_modules/@redis/search": {
|
|
100
|
+
"version": "6.3.0",
|
|
101
|
+
"resolved": "https://registry.npmjs.org/@redis/search/-/search-6.3.0.tgz",
|
|
102
|
+
"integrity": "sha512-RPXAZmKjZZG7Tm7m1w9keFdXzbL91PiSHQBfQRe9xwW40jNsTRbG0FwhIz4QlHPU4gKDAsCy8IQHj4yZl4H9rw==",
|
|
103
|
+
"license": "MIT",
|
|
104
|
+
"peer": true,
|
|
105
|
+
"engines": {
|
|
106
|
+
"node": ">= 20.0.0"
|
|
107
|
+
},
|
|
108
|
+
"peerDependencies": {
|
|
109
|
+
"@redis/client": "^6.3.0"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"node_modules/@redis/time-series": {
|
|
113
|
+
"version": "6.3.0",
|
|
114
|
+
"resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-6.3.0.tgz",
|
|
115
|
+
"integrity": "sha512-+fJOB8mN1z5WRakCJNh5lVdz1KqvHGSOistsKeitD24QsCtPwyRQXWC0iq6T/i/ubLE/YcguZqPm8F598MKk4A==",
|
|
116
|
+
"license": "MIT",
|
|
117
|
+
"peer": true,
|
|
118
|
+
"engines": {
|
|
119
|
+
"node": ">= 20.0.0"
|
|
120
|
+
},
|
|
121
|
+
"peerDependencies": {
|
|
122
|
+
"@redis/client": "^6.3.0"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"node_modules/@types/node": {
|
|
126
|
+
"version": "26.6.5",
|
|
127
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.5.tgz",
|
|
128
|
+
"integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==",
|
|
129
|
+
"license": "MIT",
|
|
130
|
+
"dependencies": {
|
|
131
|
+
"undici-types": "~8.9.0"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"node_modules/@types/ws": {
|
|
135
|
+
"version": "8.18.2",
|
|
136
|
+
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.2.tgz",
|
|
137
|
+
"integrity": "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==",
|
|
138
|
+
"license": "MIT",
|
|
139
|
+
"dependencies": {
|
|
140
|
+
"@types/node": "*"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"node_modules/@typescript/typescript-aix-ppc64": {
|
|
144
|
+
"version": "7.0.2",
|
|
145
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz",
|
|
146
|
+
"integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==",
|
|
147
|
+
"cpu": [
|
|
148
|
+
"ppc64"
|
|
149
|
+
],
|
|
150
|
+
"dev": true,
|
|
151
|
+
"license": "Apache-2.0",
|
|
152
|
+
"optional": true,
|
|
153
|
+
"os": [
|
|
154
|
+
"aix"
|
|
155
|
+
],
|
|
156
|
+
"engines": {
|
|
157
|
+
"node": ">=16.20.0"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"node_modules/@typescript/typescript-darwin-arm64": {
|
|
161
|
+
"version": "7.0.2",
|
|
162
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz",
|
|
163
|
+
"integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==",
|
|
164
|
+
"cpu": [
|
|
165
|
+
"arm64"
|
|
166
|
+
],
|
|
167
|
+
"dev": true,
|
|
168
|
+
"license": "Apache-2.0",
|
|
169
|
+
"optional": true,
|
|
170
|
+
"os": [
|
|
171
|
+
"darwin"
|
|
172
|
+
],
|
|
173
|
+
"engines": {
|
|
174
|
+
"node": ">=16.20.0"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"node_modules/@typescript/typescript-darwin-x64": {
|
|
178
|
+
"version": "7.0.2",
|
|
179
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz",
|
|
180
|
+
"integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==",
|
|
181
|
+
"cpu": [
|
|
182
|
+
"x64"
|
|
183
|
+
],
|
|
184
|
+
"dev": true,
|
|
185
|
+
"license": "Apache-2.0",
|
|
186
|
+
"optional": true,
|
|
187
|
+
"os": [
|
|
188
|
+
"darwin"
|
|
189
|
+
],
|
|
190
|
+
"engines": {
|
|
191
|
+
"node": ">=16.20.0"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"node_modules/@typescript/typescript-freebsd-arm64": {
|
|
195
|
+
"version": "7.0.2",
|
|
196
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz",
|
|
197
|
+
"integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==",
|
|
198
|
+
"cpu": [
|
|
199
|
+
"arm64"
|
|
200
|
+
],
|
|
201
|
+
"dev": true,
|
|
202
|
+
"license": "Apache-2.0",
|
|
203
|
+
"optional": true,
|
|
204
|
+
"os": [
|
|
205
|
+
"freebsd"
|
|
206
|
+
],
|
|
207
|
+
"engines": {
|
|
208
|
+
"node": ">=16.20.0"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"node_modules/@typescript/typescript-freebsd-x64": {
|
|
212
|
+
"version": "7.0.2",
|
|
213
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz",
|
|
214
|
+
"integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==",
|
|
215
|
+
"cpu": [
|
|
216
|
+
"x64"
|
|
217
|
+
],
|
|
218
|
+
"dev": true,
|
|
219
|
+
"license": "Apache-2.0",
|
|
220
|
+
"optional": true,
|
|
221
|
+
"os": [
|
|
222
|
+
"freebsd"
|
|
223
|
+
],
|
|
224
|
+
"engines": {
|
|
225
|
+
"node": ">=16.20.0"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"node_modules/@typescript/typescript-linux-arm": {
|
|
229
|
+
"version": "7.0.2",
|
|
230
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz",
|
|
231
|
+
"integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==",
|
|
232
|
+
"cpu": [
|
|
233
|
+
"arm"
|
|
234
|
+
],
|
|
235
|
+
"dev": true,
|
|
236
|
+
"license": "Apache-2.0",
|
|
237
|
+
"optional": true,
|
|
238
|
+
"os": [
|
|
239
|
+
"linux"
|
|
240
|
+
],
|
|
241
|
+
"engines": {
|
|
242
|
+
"node": ">=16.20.0"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"node_modules/@typescript/typescript-linux-arm64": {
|
|
246
|
+
"version": "7.0.2",
|
|
247
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz",
|
|
248
|
+
"integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==",
|
|
249
|
+
"cpu": [
|
|
250
|
+
"arm64"
|
|
251
|
+
],
|
|
252
|
+
"dev": true,
|
|
253
|
+
"license": "Apache-2.0",
|
|
254
|
+
"optional": true,
|
|
255
|
+
"os": [
|
|
256
|
+
"linux"
|
|
257
|
+
],
|
|
258
|
+
"engines": {
|
|
259
|
+
"node": ">=16.20.0"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"node_modules/@typescript/typescript-linux-loong64": {
|
|
263
|
+
"version": "7.0.2",
|
|
264
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz",
|
|
265
|
+
"integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==",
|
|
266
|
+
"cpu": [
|
|
267
|
+
"loong64"
|
|
268
|
+
],
|
|
269
|
+
"dev": true,
|
|
270
|
+
"license": "Apache-2.0",
|
|
271
|
+
"optional": true,
|
|
272
|
+
"os": [
|
|
273
|
+
"linux"
|
|
274
|
+
],
|
|
275
|
+
"engines": {
|
|
276
|
+
"node": ">=16.20.0"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"node_modules/@typescript/typescript-linux-mips64el": {
|
|
280
|
+
"version": "7.0.2",
|
|
281
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz",
|
|
282
|
+
"integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==",
|
|
283
|
+
"cpu": [
|
|
284
|
+
"mips64el"
|
|
285
|
+
],
|
|
286
|
+
"dev": true,
|
|
287
|
+
"license": "Apache-2.0",
|
|
288
|
+
"optional": true,
|
|
289
|
+
"os": [
|
|
290
|
+
"linux"
|
|
291
|
+
],
|
|
292
|
+
"engines": {
|
|
293
|
+
"node": ">=16.20.0"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"node_modules/@typescript/typescript-linux-ppc64": {
|
|
297
|
+
"version": "7.0.2",
|
|
298
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz",
|
|
299
|
+
"integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==",
|
|
300
|
+
"cpu": [
|
|
301
|
+
"ppc64"
|
|
302
|
+
],
|
|
303
|
+
"dev": true,
|
|
304
|
+
"license": "Apache-2.0",
|
|
305
|
+
"optional": true,
|
|
306
|
+
"os": [
|
|
307
|
+
"linux"
|
|
308
|
+
],
|
|
309
|
+
"engines": {
|
|
310
|
+
"node": ">=16.20.0"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"node_modules/@typescript/typescript-linux-riscv64": {
|
|
314
|
+
"version": "7.0.2",
|
|
315
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz",
|
|
316
|
+
"integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==",
|
|
317
|
+
"cpu": [
|
|
318
|
+
"riscv64"
|
|
319
|
+
],
|
|
320
|
+
"dev": true,
|
|
321
|
+
"license": "Apache-2.0",
|
|
322
|
+
"optional": true,
|
|
323
|
+
"os": [
|
|
324
|
+
"linux"
|
|
325
|
+
],
|
|
326
|
+
"engines": {
|
|
327
|
+
"node": ">=16.20.0"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"node_modules/@typescript/typescript-linux-s390x": {
|
|
331
|
+
"version": "7.0.2",
|
|
332
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz",
|
|
333
|
+
"integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==",
|
|
334
|
+
"cpu": [
|
|
335
|
+
"s390x"
|
|
336
|
+
],
|
|
337
|
+
"dev": true,
|
|
338
|
+
"license": "Apache-2.0",
|
|
339
|
+
"optional": true,
|
|
340
|
+
"os": [
|
|
341
|
+
"linux"
|
|
342
|
+
],
|
|
343
|
+
"engines": {
|
|
344
|
+
"node": ">=16.20.0"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"node_modules/@typescript/typescript-linux-x64": {
|
|
348
|
+
"version": "7.0.2",
|
|
349
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz",
|
|
350
|
+
"integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==",
|
|
351
|
+
"cpu": [
|
|
352
|
+
"x64"
|
|
353
|
+
],
|
|
354
|
+
"dev": true,
|
|
355
|
+
"license": "Apache-2.0",
|
|
356
|
+
"optional": true,
|
|
357
|
+
"os": [
|
|
358
|
+
"linux"
|
|
359
|
+
],
|
|
360
|
+
"engines": {
|
|
361
|
+
"node": ">=16.20.0"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"node_modules/@typescript/typescript-netbsd-arm64": {
|
|
365
|
+
"version": "7.0.2",
|
|
366
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz",
|
|
367
|
+
"integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==",
|
|
368
|
+
"cpu": [
|
|
369
|
+
"arm64"
|
|
370
|
+
],
|
|
371
|
+
"dev": true,
|
|
372
|
+
"license": "Apache-2.0",
|
|
373
|
+
"optional": true,
|
|
374
|
+
"os": [
|
|
375
|
+
"netbsd"
|
|
376
|
+
],
|
|
377
|
+
"engines": {
|
|
378
|
+
"node": ">=16.20.0"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"node_modules/@typescript/typescript-netbsd-x64": {
|
|
382
|
+
"version": "7.0.2",
|
|
383
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz",
|
|
384
|
+
"integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==",
|
|
385
|
+
"cpu": [
|
|
386
|
+
"x64"
|
|
387
|
+
],
|
|
388
|
+
"dev": true,
|
|
389
|
+
"license": "Apache-2.0",
|
|
390
|
+
"optional": true,
|
|
391
|
+
"os": [
|
|
392
|
+
"netbsd"
|
|
393
|
+
],
|
|
394
|
+
"engines": {
|
|
395
|
+
"node": ">=16.20.0"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"node_modules/@typescript/typescript-openbsd-arm64": {
|
|
399
|
+
"version": "7.0.2",
|
|
400
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz",
|
|
401
|
+
"integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==",
|
|
402
|
+
"cpu": [
|
|
403
|
+
"arm64"
|
|
404
|
+
],
|
|
405
|
+
"dev": true,
|
|
406
|
+
"license": "Apache-2.0",
|
|
407
|
+
"optional": true,
|
|
408
|
+
"os": [
|
|
409
|
+
"openbsd"
|
|
410
|
+
],
|
|
411
|
+
"engines": {
|
|
412
|
+
"node": ">=16.20.0"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"node_modules/@typescript/typescript-openbsd-x64": {
|
|
416
|
+
"version": "7.0.2",
|
|
417
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz",
|
|
418
|
+
"integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==",
|
|
419
|
+
"cpu": [
|
|
420
|
+
"x64"
|
|
421
|
+
],
|
|
422
|
+
"dev": true,
|
|
423
|
+
"license": "Apache-2.0",
|
|
424
|
+
"optional": true,
|
|
425
|
+
"os": [
|
|
426
|
+
"openbsd"
|
|
427
|
+
],
|
|
428
|
+
"engines": {
|
|
429
|
+
"node": ">=16.20.0"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"node_modules/@typescript/typescript-sunos-x64": {
|
|
433
|
+
"version": "7.0.2",
|
|
434
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz",
|
|
435
|
+
"integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==",
|
|
436
|
+
"cpu": [
|
|
437
|
+
"x64"
|
|
438
|
+
],
|
|
439
|
+
"dev": true,
|
|
440
|
+
"license": "Apache-2.0",
|
|
441
|
+
"optional": true,
|
|
442
|
+
"os": [
|
|
443
|
+
"sunos"
|
|
444
|
+
],
|
|
445
|
+
"engines": {
|
|
446
|
+
"node": ">=16.20.0"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"node_modules/@typescript/typescript-win32-arm64": {
|
|
450
|
+
"version": "7.0.2",
|
|
451
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz",
|
|
452
|
+
"integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==",
|
|
453
|
+
"cpu": [
|
|
454
|
+
"arm64"
|
|
455
|
+
],
|
|
456
|
+
"dev": true,
|
|
457
|
+
"license": "Apache-2.0",
|
|
458
|
+
"optional": true,
|
|
459
|
+
"os": [
|
|
460
|
+
"win32"
|
|
461
|
+
],
|
|
462
|
+
"engines": {
|
|
463
|
+
"node": ">=16.20.0"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"node_modules/@typescript/typescript-win32-x64": {
|
|
467
|
+
"version": "7.0.2",
|
|
468
|
+
"resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz",
|
|
469
|
+
"integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==",
|
|
470
|
+
"cpu": [
|
|
471
|
+
"x64"
|
|
472
|
+
],
|
|
473
|
+
"dev": true,
|
|
474
|
+
"license": "Apache-2.0",
|
|
475
|
+
"optional": true,
|
|
476
|
+
"os": [
|
|
477
|
+
"win32"
|
|
478
|
+
],
|
|
479
|
+
"engines": {
|
|
480
|
+
"node": ">=16.20.0"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"node_modules/effect": {
|
|
484
|
+
"version": "4.0.5",
|
|
485
|
+
"resolved": "https://registry.npmjs.org/effect/-/effect-4.0.5.tgz",
|
|
486
|
+
"integrity": "sha512-BY4/28NlpOd99yzmV741xbVGmp+1U7tks4oB7F/Png64bTa5tm5eCA6W0RiXsnuLDDoJpjfVSo4Dnq4BZb/89Q==",
|
|
487
|
+
"license": "MIT"
|
|
488
|
+
},
|
|
489
|
+
"node_modules/playwright": {
|
|
490
|
+
"version": "1.64.1",
|
|
491
|
+
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.1.tgz",
|
|
492
|
+
"integrity": "sha512-HCrVhHr5QQuwYoswEUGTb7gGp522yflbv/ST8nF4sFWGuLjQCt17Q/EubpGGSNKYn1tsTCPZxqHhHCfVURu7UA==",
|
|
493
|
+
"license": "Apache-2.0",
|
|
494
|
+
"dependencies": {
|
|
495
|
+
"playwright-core": "1.64.1"
|
|
496
|
+
},
|
|
497
|
+
"bin": {
|
|
498
|
+
"playwright": "cli.js"
|
|
499
|
+
},
|
|
500
|
+
"engines": {
|
|
501
|
+
"node": ">=20"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"node_modules/playwright-core": {
|
|
505
|
+
"version": "1.64.1",
|
|
506
|
+
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.1.tgz",
|
|
507
|
+
"integrity": "sha512-BC4s8y6SEVA6Q1rSxZTto8hI1KUI3xXlHGZgvGqP4IqPdI/a6FX9H29IDNz7vKo9l21b6LfYosScPL6M3xxyDQ==",
|
|
508
|
+
"license": "Apache-2.0",
|
|
509
|
+
"bin": {
|
|
510
|
+
"playwright-core": "cli.js"
|
|
511
|
+
},
|
|
512
|
+
"engines": {
|
|
513
|
+
"node": ">=20"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"node_modules/redis": {
|
|
517
|
+
"version": "6.3.0",
|
|
518
|
+
"resolved": "https://registry.npmjs.org/redis/-/redis-6.3.0.tgz",
|
|
519
|
+
"integrity": "sha512-XFQbPie1lGpKeUZ8ySYY43yLnQy/iIQtHNvIr/1XdaABpb96rUSdm3Mfl+98FEVbv9ZJIzINMno5s0Nh8E5LEw==",
|
|
520
|
+
"license": "MIT",
|
|
521
|
+
"peer": true,
|
|
522
|
+
"dependencies": {
|
|
523
|
+
"@redis/bloom": "6.3.0",
|
|
524
|
+
"@redis/client": "6.3.0",
|
|
525
|
+
"@redis/json": "6.3.0",
|
|
526
|
+
"@redis/search": "6.3.0",
|
|
527
|
+
"@redis/time-series": "6.3.0"
|
|
528
|
+
},
|
|
529
|
+
"engines": {
|
|
530
|
+
"node": ">= 20.0.0"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"node_modules/typescript": {
|
|
534
|
+
"version": "7.0.2",
|
|
535
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",
|
|
536
|
+
"integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==",
|
|
537
|
+
"dev": true,
|
|
538
|
+
"license": "Apache-2.0",
|
|
539
|
+
"bin": {
|
|
540
|
+
"tsc": "bin/tsc"
|
|
541
|
+
},
|
|
542
|
+
"engines": {
|
|
543
|
+
"node": ">=16.20.0"
|
|
544
|
+
},
|
|
545
|
+
"optionalDependencies": {
|
|
546
|
+
"@typescript/typescript-aix-ppc64": "7.0.2",
|
|
547
|
+
"@typescript/typescript-darwin-arm64": "7.0.2",
|
|
548
|
+
"@typescript/typescript-darwin-x64": "7.0.2",
|
|
549
|
+
"@typescript/typescript-freebsd-arm64": "7.0.2",
|
|
550
|
+
"@typescript/typescript-freebsd-x64": "7.0.2",
|
|
551
|
+
"@typescript/typescript-linux-arm": "7.0.2",
|
|
552
|
+
"@typescript/typescript-linux-arm64": "7.0.2",
|
|
553
|
+
"@typescript/typescript-linux-loong64": "7.0.2",
|
|
554
|
+
"@typescript/typescript-linux-mips64el": "7.0.2",
|
|
555
|
+
"@typescript/typescript-linux-ppc64": "7.0.2",
|
|
556
|
+
"@typescript/typescript-linux-riscv64": "7.0.2",
|
|
557
|
+
"@typescript/typescript-linux-s390x": "7.0.2",
|
|
558
|
+
"@typescript/typescript-linux-x64": "7.0.2",
|
|
559
|
+
"@typescript/typescript-netbsd-arm64": "7.0.2",
|
|
560
|
+
"@typescript/typescript-netbsd-x64": "7.0.2",
|
|
561
|
+
"@typescript/typescript-openbsd-arm64": "7.0.2",
|
|
562
|
+
"@typescript/typescript-openbsd-x64": "7.0.2",
|
|
563
|
+
"@typescript/typescript-sunos-x64": "7.0.2",
|
|
564
|
+
"@typescript/typescript-win32-arm64": "7.0.2",
|
|
565
|
+
"@typescript/typescript-win32-x64": "7.0.2"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"node_modules/undici": {
|
|
569
|
+
"version": "8.12.2",
|
|
570
|
+
"resolved": "https://registry.npmjs.org/undici/-/undici-8.12.2.tgz",
|
|
571
|
+
"integrity": "sha512-XtuDWVdqTLr3NAxm2ly9/hU6kUsJOgGh1RASzMBbsw6aWCOaQzHdW+QQDfdERjfJ2V5vL5pRPa4RetO9UfivDg==",
|
|
572
|
+
"license": "MIT",
|
|
573
|
+
"engines": {
|
|
574
|
+
"node": ">=22.19.0"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"node_modules/undici-types": {
|
|
578
|
+
"version": "8.9.0",
|
|
579
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
|
|
580
|
+
"integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
|
|
581
|
+
"license": "MIT"
|
|
582
|
+
},
|
|
583
|
+
"node_modules/ws": {
|
|
584
|
+
"version": "8.22.0",
|
|
585
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz",
|
|
586
|
+
"integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==",
|
|
587
|
+
"license": "MIT",
|
|
588
|
+
"engines": {
|
|
589
|
+
"node": ">=10.0.0"
|
|
590
|
+
},
|
|
591
|
+
"peerDependencies": {
|
|
592
|
+
"bufferutil": "^4.0.1",
|
|
593
|
+
"utf-8-validate": ">=5.0.2"
|
|
594
|
+
},
|
|
595
|
+
"peerDependenciesMeta": {
|
|
596
|
+
"bufferutil": {
|
|
597
|
+
"optional": true
|
|
598
|
+
},
|
|
599
|
+
"utf-8-validate": {
|
|
600
|
+
"optional": true
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { createServer } from "node:http"
|
|
2
|
+
import { NodeHttpServer, NodeRuntime } from "@effect/platform-node"
|
|
3
|
+
import { Effect, Layer, Schema } from "effect"
|
|
4
|
+
import { HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/http"
|
|
5
|
+
import { type Browser, chromium } from "playwright"
|
|
6
|
+
import { checkUrl } from "./url-policy.ts"
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* SECURITY (SSRF): this server loads any URL it is sent, from inside your network. Requests are
|
|
10
|
+
* checked against ./url-policy.ts: http(s) only, and by default no localhost, `.local`/`.internal`
|
|
11
|
+
* hosts or private, loopback and link-local IPs (such as the 169.254.169.254 metadata endpoint).
|
|
12
|
+
* Every request the page makes, including redirects, goes through the same check. DNS names that
|
|
13
|
+
* resolve to private addresses are not detected, so also limit what this container can reach.
|
|
14
|
+
* Only set ALLOW_PRIVATE_NETWORKS to true for a container that cannot reach anything sensitive.
|
|
15
|
+
*/
|
|
16
|
+
const ALLOW_PRIVATE_NETWORKS = false
|
|
17
|
+
|
|
18
|
+
const RunRequest = Schema.Struct({
|
|
19
|
+
url: Schema.String.check(Schema.isMaxLength(2048)),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
let browser: Promise<Browser> | undefined
|
|
23
|
+
const getBrowser = () => {
|
|
24
|
+
browser ??= chromium.launch({ args: ["--no-sandbox"] })
|
|
25
|
+
return browser
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Loads `url` in a fresh context and counts the requests the page made. */
|
|
29
|
+
const inspect = async (url: string) => {
|
|
30
|
+
const context = await (await getBrowser()).newContext()
|
|
31
|
+
try {
|
|
32
|
+
await context.route("**/*", (route) => {
|
|
33
|
+
const target = route.request().url()
|
|
34
|
+
const allowed = !/^https?:/i.test(target) || checkUrl(target, ALLOW_PRIVATE_NETWORKS).ok
|
|
35
|
+
return allowed ? route.continue() : route.abort("blockedbyclient")
|
|
36
|
+
})
|
|
37
|
+
const page = await context.newPage()
|
|
38
|
+
let requests = 0
|
|
39
|
+
page.on("request", () => {
|
|
40
|
+
requests += 1
|
|
41
|
+
})
|
|
42
|
+
await page.goto(url, { waitUntil: "load", timeout: 30_000 })
|
|
43
|
+
return { title: await page.title(), requests }
|
|
44
|
+
} finally {
|
|
45
|
+
await context.close()
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const run = HttpRouter.add(
|
|
50
|
+
"POST",
|
|
51
|
+
"/run",
|
|
52
|
+
Effect.gen(function* () {
|
|
53
|
+
const { url: raw } = yield* HttpServerRequest.schemaBodyJson(RunRequest)
|
|
54
|
+
const checked = checkUrl(raw, ALLOW_PRIVATE_NETWORKS)
|
|
55
|
+
if (!checked.ok)
|
|
56
|
+
return yield* HttpServerResponse.json({ error: checked.reason }, { status: 400 })
|
|
57
|
+
const url = checked.url.href
|
|
58
|
+
const result = yield* Effect.tryPromise({
|
|
59
|
+
try: () => inspect(url),
|
|
60
|
+
catch: (error) => (error instanceof Error ? error.message : String(error)),
|
|
61
|
+
})
|
|
62
|
+
return yield* HttpServerResponse.json(result)
|
|
63
|
+
}).pipe(
|
|
64
|
+
Effect.catch((error) =>
|
|
65
|
+
HttpServerResponse.json({ error: String(error) }, { status: 400 }).pipe(Effect.orDie),
|
|
66
|
+
),
|
|
67
|
+
),
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
const health = HttpRouter.add("GET", "/health", HttpServerResponse.text("ok"))
|
|
71
|
+
|
|
72
|
+
const port = Number(process.env.PORT ?? 8080)
|
|
73
|
+
|
|
74
|
+
const server = HttpRouter.serve(Layer.mergeAll(run, health)).pipe(
|
|
75
|
+
Layer.provide(NodeHttpServer.layer(createServer, { port, host: "0.0.0.0" })),
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
NodeRuntime.runMain(Layer.launch(server))
|